"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(c){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=c||[]};
(0,_._F_toggles_initialize)([0x8000000, 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 fr,cPY,qCz,jM,rz,Zrh,MMz,Fk,Kr,rPk,CeM,glk,$l,l4n,skC,SM,Tzz,FhN,Khl,nl4,SCM,Lhr,JPG,XNP,ukk,hGC,cH,WhN,ro,DN4,go,eGe,k_,s3,I4h,PeG,aK,VF,UNk,c3k,fOl,h3,jK4,q3N,Zjk,r3N,dHn,yF,g_k,lOG,mH4,MQ,HjP,A3n,Y3k,FTr,tu4,Zp,Bor,jF,ijk,ToP,LTY,J3P,aO4,lC,uyN,XHC,v_4,h_e,wHk,WTk,DHr,IOC,PrP,pHz,o_k,cHn,Z3P,rHP,MFe,L3,CCG,sGP,BJr,TJY,Yrz,H3k,FcY,AHh,JH,y3z,Xi,uC,hH,tFe,wJ,ESn,b3G,Kck,NQ,nSz,$Qe,Srh,z3r,Lcr,JHz,ape,VFh,WD,uin,h3n,GC,yHz,NJP,fq,R3Y,xQC,Wcz,oSk,cvk,fJM,CXk,qWM,k8N,lJl,shN,iqr,T8k,FEN,nhM,JvN,
uDe,DSN,FD,N8N,PXC,RhG,$h,SP,Jv,ah,DJ,eP,jZn,M8C,rDN,k5N,ldY,qO,sZe,MO,rd,CT,gd,iTe,Tdn,mOr,HTN,ADk,F0G,t8k,bTC,K0z,nwz,Bk,sl,$ON,QZk,SlG,zUk,L0P,JDM,ad4,V8h,tD,KT,El,nT,Ql,umr,S8,hUN,eUM,z5,Ndh,Idl,PYM,aZ,RUP,UOP,pkk,Vl,G5k,uY,dzP,j8l,vk,ZGN,qMG,M5N,rTn,C5z,gcr,Wk,kVk,OGe,Dd,lgY,s8z,e8,NO,IZ,Pk,BkC,TkC,iGn,RZ,HGr,ATN,YMe,pT,oZ,G5,cv,fG,dk,FCN,t5N,KC4,EcG,ncn,$zl,Q8e,SMh,LCC,zRl,JTe,agl,V5k,XvG,qz,u1z,vch,kc,hRn,sM,i5,wvk,Dz4,eRN,Nkh,P5e,RRz,Uze,GVN,c5N,fUY,dxN,jOP,qSC,Z1n,g6M,Hv,kDN,O1P,lUz,sOG,
Bbk,i1P,mxn,SSk,LAN,zW4,VQN,Xun,$c,uEC,wue,Dxh,eWC,NbY,IUC,Pn4,RWz,Uxn,pun,o6C,GDY,y5r,coN,faP,dar,juh,qTh,ZLz,Mhk,roz,CmN,lah,kZn,iLe,suk,B$e,HLC,Aor,YTM,T$Y,thG,maM,KKr,e5,Ekr,Nz,R8,nkz,Qun,STz,Jo4,Daz,VhM,aae,uCh,hEh,XV4,Uak,Ial,pVG,xaP,okl,GZe,ckn,dDY,f5e,jwn,q6e,Z9h,MZ4,Cdn,k4l,O9n,l5M,Biz,swN,n5n,o8,$D4,S6M,Lfe,zrk,Jkk,a5z,XCh,urn,v5N,ZU,Mx,hrl,Nih,gb,k6,UDl,xDN,r4l,Bu,ODe,lMM,Txr,BxM,iDh,t5,VAh,Xql,vKY,hvz,wqe,y4l,WuN,DlM,evr,IMl,PFk,Ulk,RvN,oKN,zD,V2,cwN,feY,dRn,j7n,qNN,Zur,rwk,gOk,CxG,Pu,
US,p1,cV,KwC,EOk,fL,$RP,nOG,uhk,vOl,hfk,ywh,NR4,Pxh,Rfk,URN,psz,oOe,cNY,fZY,Za,jbl,M_C,rNe,C6M,gzG,OWr,ZWh,due,kPz,r$,sbz,muk,iWh,kk,ANk,Fjn,t_k,bWN,KjN,BV,EzP,$uk,nzY,QbC,LjM,mK,vze,wwh,WjN,e2e,FC,IZY,KL,nL,ET,pwk,NKe,xuN,Sh,fBM,Jo,au,qun,r8r,gDe,kAz,Ohz,V4,lBz,XC,sll,ihk,Tu4,mdC,HhC,Yuk,w$,F4Y,tRY,WV,Na,EDn,nDn,$dl,PV,L4N,zwG,aBh,GZ,y8C,W4M,vD4,ewr,Nuk,IBN,Z5,ri,gi,pWG,xdk,O6,oDY,GAh,ciM,fzk,jSN,qcM,ZeC,Msk,dTe,riY,BC,gnN,OeN,id,kck,lzY,CVN,sSC,mf,ieN,T2z,mTk,HeM,Yc4,Aiz,FFN,KFz,tsG,nn4,JiN,Vsk,
XiP,vnG,yir,wil,hgh,WFh,eg4,IzY,N2h,RgM,piN,xTz,onz,Gck,ZZz,qXh,MON,rQM,z4,Jk,Cl4,kiC,lrl,iZe,m9e,TSC,cq,HZk,OZn,Etn,$9n,QcY,SXC,Ml,LnN,JQ4,XOY,h5n,vtk,D9C,e5k,NSG,IrY,R5n,GiG,U9h,x9n,otr,cEz,f8k,jnz,d$h,ZCC,qxk,Hq,MUN,CIN,gCP,snk,nD,$K,BWn,iCz,QW,AEN,VW,XJ,uF,bCN,vq,nCC,yW,$$l,Qnk,SxN,Lde,eA,z4C,JEY,a8l,Xbk,vCh,yEl,D$z,cs,e4C,NWk,I8n,PIk,R4N,U$M,pbG,x$N,j6,chP,fme,dLP,jV4,qON,ZXk,Mvh,rhG,CoP,g0k,kXN,OXl,lmM,kO,Kqz,E0k,ON,lx,sN,n0e,$Lk,QVk,SOl,Lqk,zNY,Jhz,v04,hNr,wSM,yhP,Wqe,mw,Aw,YO,Fh,EN,nu,$O,
eNr,S6,ImN,Lu,Pok,RNY,zr,ULl,pSh,xLr,MBC,CaM,saP,mhC,T1N,rYz,H$k,F5P,Xje,$hk,yY4,Skr,wjG,W54,vs,eBr,wR,I_C,Pae,Uhn,pjN,xhY,GaM,De,f9P,dVh,jfC,qDh,Zxn,MqG,reh,ceY,kue,OxY,l9N,NR,Hxz,Aer,mVh,Ftk,tqr,Kte,EpG,bxh,Je4,VqG,uNY,hD4,j_,NNC,eDY,phr,opM,GuN,cpr,f7e,d5C,jTh,l6,l7z,B_k,k3z,gZz,sTY,Zsz,T_k,$5z,Apn,YVh,F$e,vZG,wrh,uYe,I7l,Xrk,qVN,N_k,Hsk,nZk,hYN,isN,rpr,MCY,CSn,OsP,VCl,S_,Mck,C7G,gvC,kxk,Oar,YRC,nvl,$Yn,DZ,SRr,JcY,u8Y,X9M,hcY,w9n,W_k,ecn,DYz,Ny4,GP,IW4,P7C,UYk,RcP,cW,fLG,c9G,Gxr,ZO4,dCk,M4h,qol,
r9h,du,Ch4,lLk,k6C,OOr,BBr,mCN,Md,Yok,HOz,Foe,EsN,nsY,Soh,zaP,kD,Ou,XZe,udN,lW,su,vsn,BW,iW,haC,TA,wZk,m4,y9r,Wok,A8,DCk,eaM,NBk,ILN,Phn,UCr,Rah,xCe,cKG,G6l,fhN,doY,pZC,jvG,MJN,Zpr,osP,rKz,Cke,nh,gRY,OpN,kdM,lhz,svl,ipz,BOz,TOC,Qg,HpP,AKz,mok,FaG,tJh,bpG,$or,Lae,X5k,w5h,SR,Dol,eJk,Lh,NOl,Vg,Xs,xoh,J8,h8,oRr,GdN,f2n,d6z,qJl,M7r,rrN,Cf4,g9P,l2n,m6C,iSP,OSC,HSk,ArY,DB,TnN,YJY,Il,F8M,t7h,bSh,K8C,QWG,E9Y,$6k,JrC,a2l,hHh,v9l,W8z,RHP,U6k,x6C,GKr,cqe,d0Y,j_M,q54,MjN,rqN,C4C,Ook,ioG,T4l,lDe,Hoh,Y5N,Aq4,m0G,
FbY,bok,KbC,ExP,nxN,$0Y,qT,Zz,Ce,kn,LbC,JqN,Vjr,vxe,Oc,lV,h8G,sc,WbG,D0z,e8C,iV,U0N,GU4,fHY,dUz,jpP,qAr,ZFr,CpG,mF,gok,lHk,Hi,spM,T7Y,mUC,HFN,iFM,KJe,$UG,EoN,QpM,zqC,aHM,X2z,w2l,hqk,eq4,bV,N7h,IHP,Ke,Pp4,Ec,Rql,UUY,p2n,ooe,xUn,GoG,cM4,fkC,dKY,gGz,O0P,s5M,lkl,Mnk,qKC,i0Y,mKG,tnz,b0e,nGh,JMl,VnN,Ss,Xfh,vGM,hIe,yMh,N3k,RIG,xK4,oGC,Gel,cWn,Zie,fnn,g3M,kNn,Oie,s$l,Ji,BEY,TEl,m_P,HiC,AWk,Y4k,Fpk,tk4,KpP,E3r,uV,n3l,$_G,S4k,hi,Q$l,zOC,Xah,Wi,uek,v3P,hOr,Wpe,D_C,wah,NEz,paG,x_k,o3Y,RS,GNk,jY4,qPN,oS,rRP,Z84,
Mlk,gXM,O8G,lu4,sYM,mMP,YPG,ARG,H8z,FPN,b8Y,KPC,SPG,EXk,LPN,JR4,z9k,h9l,WPk,e9r,Iuk,pdC,jJN,ZnN,MgG,k0n,lGC,zi,y_,Hnz,tgk,F3Y,K3M,E$G,$Ar,n$G,QJC,SUk,WO,B1l,AsM,bnl,YUn,hQ,Jsn,aG4,VgN,XKl,u$z,v$k,hiz,wKn,yse,W3N,cb,DA4,fC,eir,Nqk,IGC,PsG,q$,RiM,xAP,G0n,cBN,rBz,gfN,k2C,OzP,sEN,BFr,iI,TFz,mBY,HzP,ABY,YBN,Fve,bzr,EfC,$BP,QEC,VwG,JBr,XQe,h1e,wQz,tE,yBn,Wvz,DBN,IjP,R1N,Pqk,pQn,ofh,nC,cue,fKN,G24,dIe,jXk,Z5k,ruN,MYG,Cjl,q8k,g2n,kGk,O5r,lKz,sXC,Bl4,i5k,TlP,mIY,Y8l,Auh,FZ4,b5r,tYP,$C,KZC,$IG,zee,E2M,VYe,
X_h,u7r,v2k,yuP,Rek,UIN,xIN,o2n,yR,d2k,M3e,gHr,Wb,sMl,lVC,BUz,N$,ite,TUM,m2N,A$N,Y2h,F1C,t3k,K1M,EHk,XLh,zzP,aVG,vHY,uQk,hzn,wLM,W1P,ezC,IVC,RzC,VIn,vdY,wxN,yL4,WNM,Djl,exe,I$C,Pwe,pxN,xjn,odN,G1h,cxG,fsC,dsn,j0e,Mt4,ktM,qL,Zm,ML,rD,Ogl,k0,s0z,ttC,Q0h,nqG,NtG,Isz,P2r,igr,FRN,HgN,Ush,pAr,xsk,KRk,GtN,fbC,jQY,MDn,r2e,bo,nX,$0,B9Y,sQG,Hmh,A2z,QQP,LDN,J2C,abh,uTP,hmh,vQk,WDk,emh,xez,Uen,Ibr,pPn,P9M,oQl,dPe,Dm,Od4,Cck,sgC,BYN,TYP,mPl,NL,Hde,FUn,bdn,KUk,neh,EeP,RV,J6z,cj,VXl,XRh,d1,uSr,veN,huC,wRG,y6N,WUN,
DP4,eul,NYl,I3z,Pcz,Rur,UPN,pRr,xPl,jB,oer,GnC,cde,fTr,dgC,jFG,q7Y,ZQr,MzP,rdz,Cgr,g4n,Z_,OQk,sFG,iQl,HQC,FHC,tzr,bQN,E4Y,$gk,QFC,S7n,sk,Vzh,JdY,XXk,uHG,v4e,ydY,WHh,Dgk,NAl,n$,Pge,K$,Ugl,pXz,$E,xgN,o4h,GHr,cbN,za,qQn,Mye,OlG,kRh,sA4,BGG,hY,ilP,TGk,Hlk,YQn,FgY,blN,Kge,Abh,Eur,LgC,VyM,XBC,w1,uoN,vuG,DvP,hjr,ybC,Wgl,Uvl,NGC,pBe,oul,cUY,fln,dkr,j2N,qIC,Z2C,rUe,C1N,gIl,kFC,O2r,s2C,i2k,H2z,trk,EIC,$kY,LLl,Pj,zVN,JUG,ale,Vrh,Xen,vIY,hVk,weM,yUY,WLz,DkN,eVM,NgC,Iln,P1e,RVh,peM,Ukz,GFk,f0G,p$,dGr,ZfC,qeN,
CyN,gir,kSn,Ofr,BPh,mGN,TPM,sHk,YeP,AAh,EiN,FYk,jq,bfe,JAC,QHk,Se4,LYl,zKY,a0C,XyM,VEl,qV,Z9,DGh,viz,WYk,yA4,hKz,wyk,I0M,RKC,pyr,UGk,cXk,GSC,jPk,qyn,M$N,rXk,ZAk,CzN,kpN,gF4,lcz,iAC,sD,Tve,mbG,YyN,EFY,zdM,iP,ack,vFG,WQ4,yXG,hd4,wnl,Yp,IcP,Dbn,edh,Pzh,Ubh,RdY,oFN,GpY,fFN,dXG,jDl,qFN,ZMn,rZk,C3z,af,kwC,XN,OMn,iMe,TH4,y1,mXY,AZN,QDh,If,bMz,$X4,Kzk,Ear,uxk,aFY,val,hsC,Rf,yZk,WzY,DXl,wTe,xp,esn,UD,Rse,foP,dWG,jCk,qqN,ZKN,M1Y,kON,Cve,gy4,rJY,lon,iKM,HKP,AJP,FrG,KrY,t1M,bKN,Eyl,$W4,QCN,SqG,Lr4,zZn,JJ4,V1M,
M5,uGY,wMh,hZz,Wrk,yJh,DWY,eZr,Npn,r_,PvG,qvk,d4k,rzC,CQk,BVM,iJk,TVk,m4N,HJN,Azh,tNn,bJn,KsY,EjN,QqG,SvN,Lsk,znr,Jzk,aYe,VNN,XGM,upl,vjC,hnM,yzY,Wsh,D4P,NV4,PQz,x4n,pG4,U4e,RnP,fNl,Gj4,jde,ZPn,MaC,r0l,EV,CDz,gWr,k$Y,Bwk,OPl,iPh,lNe,TwN,SC,mJY,HPY,A0n,sdP,Y9h,EWN,$JP,Jp,L7P,Vy,J0k,aNN,Vae,zSl,Xpk,uPz,vW4,hS4,wp4,W7M,DJC,eSn,Nwn,RSk,PDN,G$n,INh,XY,cyN,UJN,oWl,jyY,ZkY,kIr,CNe,gBz,ryk,MHN,OkM,ltY,IT,ikN,mmM,Hkk,AyN,YYz,FOr,nBk,bkP,tHk,KON,vBl,XFr,EBk,VHe,Nmr,ItN,PNM,Rbe,Ume,pFP,xml,oBz,fie,jxh,ZBn,rOk,
CuC,gAN,sxz,liN,BaN,Tae,l7,AOG,YZ4,Fee,teN,B9,i7,EAk,QxG,VeC,hCe,wEG,yON,We4,DpY,eCM,IiY,RCM,Puk,UpN,xpC,oAr,GkN,car,fwn,dfl,F8,jrl,kmn,OYn,raM,MKn,gbM,CiY,Aal,T64,Ybl,FGe,tKG,bYz,KGr,Ebl,nbe,Qrk,LG4,JaP,VKz,uOl,yan,WGP,Dfh,Iwe,N6C,eyn,Pi4,RyP,p8C,xfh,obe,Gmn,Sc,f6k,dZ4,jLn,ZVP,qfh,MLY,CTC,OVe,l6k,sLY,Bfl,iVl,HVe,Afh,Tfk,mZY,n7h,$ZG,Sfn,LyP,zpP,JfY,a6C,VLG,v7M,hph,yfr,DZk,Wyn,epN,wy,NfP,I6N,PTe,RpM,o7k,xZn,fS4,d3n,Z6n,rmG,CRP,gg4,kBk,O6e,lSP,sUh,BXr,i6k,TXG,H6r,m3C,Amr,YpC,F9M,tpY,b6N,K9z,EgY,$3e,
QUN,ngk,P9,L9e,z$h,Jme,aSG,X3h,vgC,h$h,w3N,ymN,W9N,D34,NXk,ISl,R$k,p3G,ogl,d8P,cVz,GBY,fCC,jiM,qgC,Z7M,C_4,gNz,ksN,O74,siz,Brk,i7k,m8r,TrC,H7n,AVY,Ygn,Fin,Kin,ENe,nNl,$8e,Qil,Sgl,LiM,aCn,V9P,ZL,wtY,yVr,D8l,ICk,Nrk,P_P,RAh,MC,CO,ptl,x8n,Oo,lh,fEh,oNN,GsM,qLC,Zcz,M2h,rtM,OcY,s6l,BC4,icz,TCz,mte,AtG,YLn,Fx4,t2k,bch,KxM,E8Y,ih,n8l,$tG,mo,Q6h,SLn,LxN,zPM,Jtn,aEC,Ys,Fd,V2e,X6G,t9,u3e,v8N,hPn,w6r,Wxk,Dtk,NCr,p6G,UtG,RPP,xtG,o8e,qsM,fQk,dnh,c_N,j1P,KO,r_n,CHk,gVk,kzP,OIn,s1z,iIr,HIh,tSl,YsG,Eo,A_z,$nY,SsN,
LMC,zLN,J_l,aQh,XoY,uaM,vVl,hLN,y_z,WMN,DnG,Nel,IQ4,RLr,Unk,cln,dqr,fyM,qtY,gMe,kgY,OUk,lyl,iUr,HUP,z6,AlN,Ytz,FSl,tmG,KS4,EMG,nMC,$qM,StG,z6C,Jlk,ayN,a9,Vmr,Xzk,h6e,wzz,V0,Xd,Dqk,ylP,IyC,e6N,PZk,UqP,wB,pzk,xqP,c1k,dcr,y0,qnP,ZRe,MiN,r1z,COn,gTk,kqG,lPk,TLC,mcz,YnG,HRz,A14,FXl,ETn,tih,KXN,nTC,$ce,QjN,zMl,J1N,aPP,XYk,uqr,Dc4,WXk,UcP,oTn,xs,GqG,QwN,cje,fRl,jzN,MoG,rjn,BQC,ibM,TQG,m1M,Hbh,AjG,Fmh,toN,Km4,nUC,bbN,EUh,Qz4,$1k,Jjl,LmG,aRh,Voh,XcG,uZY,vU4,wck,h7l,e7Y,P8C,NQP,R7M,U1N,pcz,Zh,x1M,oUn,rO,cGG,
GQY,fXl,dyN,qdk,ZE4,rGl,CGY,gLN,kW4,OEz,B0n,myG,YdC,AGk,FI4,tbN,ELk,XJP,Sdz,vLh,hXC,yGk,WIG,IX4,PGe,UyY,pJY,xyk,GWY,cSl,fxk,d7e,jmk,qGM,Z_k,rSk,kEP,O_z,lxn,sme,BZk,i_Y,TZn,ASe,H_M,b_k,KBG,E1n,n1N,$7N,SG4,QmG,zQh,uAr,D7N,ySk,eQn,NZP,Ixl,RQM,SJ,pIl,av,o1n,cgk,fIr,MTe,CAY,lIY,Bsr,iwh,mrn,HwY,Agk,FVM,bwk,KVn,nJP,S$k,QIh,$rG,hK,zkM,LVk,JgC,aIN,VTk,X4N,uVz,vJk,hkl,ygC,WVz,DrN,ekr,NsY,IIY,PAG,RkN,UrC,xrr,oJM,M04,rFr,Cbr,kbr,ONM,l1l,iNe,Iv,Fkn,t0h,bNM,KkP,ErP,P5,Rv,RO,U_,xR,a1M,uFl,hoY,vrh,Gd,w0Y,yFN,Wkr;
_.cN=function(c,f){if(Error.captureStackTrace)Error.captureStackTrace(this,_.cN);else{var d=Error().stack;d&&(this.stack=d)}c&&(this.message=String(c));f!==void 0&&(this.cause=f)};
fr=function(){throw Error("E");};
cPY=function(c,f){f=String.fromCharCode.apply(null,f);return c==null?f:c+f};
qCz=function(c){var f=!1;f=f===void 0?!1:f;if(f4l){if(f&&(dNk?!c.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(c)))throw Error("F");c=(jkk||(jkk=new TextEncoder)).encode(c)}else{for(var d=0,q=new Uint8Array(3*c.length),Z=0;Z<c.length;Z++){var M=c.charCodeAt(Z);if(M<128)q[d++]=M;else{if(M<2048)q[d++]=M>>6|192;else{if(M>=55296&&M<=57343){if(M<=56319&&Z<c.length){var g=c.charCodeAt(++Z);if(g>=56320&&g<=57343){M=(M-55296)*1024+g-56320+65536;q[d++]=M>>18|
240;q[d++]=M>>12&63|128;q[d++]=M>>6&63|128;q[d++]=M&63|128;continue}else Z--}if(f)throw Error("F");M=65533}q[d++]=M>>12|224;q[d++]=M>>6&63|128}q[d++]=M&63|128}}c=d===q.length?q:q.subarray(0,d)}return c};
jM=function(c){_.dz.setTimeout(function(){throw c;},0)};
_.Z4=function(c,f){return c.lastIndexOf(f,0)==0};
rz=function(c,f){var d=c.length-f.length;return d>=0&&c.indexOf(f,d)==d};
_.gz=function(c){return/^[\s\xa0]*$/.test(c)};
_.OC=function(c,f){return c.indexOf(f)!=-1};
_.le=function(c,f){return _.OC(c.toLowerCase(),f.toLowerCase())};
_.ie=function(c,f){var d=0;c=sC(String(c)).split(".");f=sC(String(f)).split(".");for(var q=Math.max(c.length,f.length),Z=0;d==0&&Z<q;Z++){var M=c[Z]||"",g=f[Z]||"";do{M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(M[0].length==0&&g[0].length==0)break;d=Zrh(M[1].length==0?0:parseInt(M[1],10),g[1].length==0?0:parseInt(g[1],10))||Zrh(M[2].length==0,g[2].length==0)||Zrh(M[2],g[2]);M=M[3];g=g[3]}while(d==0)}return d};
Zrh=function(c,f){return c<f?-1:c>f?1:0};
_.TY=function(){var c=_.dz.navigator;return c&&(c=c.userAgent)?c:""};
MMz=function(c){if(!HN||!Yl)return!1;for(var f=0;f<Yl.brands.length;f++){var d=Yl.brands[f].brand;if(d&&_.OC(d,c))return!0}return!1};
Fk=function(c){return _.OC(_.TY(),c)};
Kr=function(){return HN?!!Yl&&Yl.brands.length>0:!1};
rPk=function(){return Kr()?!1:Fk("Opera")};
CeM=function(){return Kr()?!1:Fk("Trident")||Fk("MSIE")};
glk=function(){return Kr()?MMz("Microsoft Edge"):Fk("Edg/")};
$l=function(){return Fk("Firefox")||Fk("FxiOS")};
_.kYn=function(){return Fk("Safari")&&!(_.Qn()||(Kr()?0:Fk("Coast"))||rPk()||(Kr()?0:Fk("Edge"))||glk()||(Kr()?MMz("Opera"):Fk("OPR"))||$l()||Fk("Silk")||Fk("Android"))};
_.Qn=function(){return Kr()?MMz("Chromium"):(Fk("Chrome")||Fk("CriOS"))&&!(Kr()?0:Fk("Edge"))||Fk("Silk")};
_.Ore=function(){return Fk("Android")&&!(_.Qn()||$l()||rPk()||Fk("Silk"))};
l4n=function(c){var f={};c.forEach(function(d){f[d[0]]=d[1]});
return function(d){return f[d.find(function(q){return q in f})]||""}};
skC=function(c){var f=_.TY();if(c==="Internet Explorer"){if(CeM())if((c=/rv: *([\d\.]*)/.exec(f))&&c[1])f=c[1];else{c="";var d=/MSIE +([\d\.]+)/.exec(f);if(d&&d[1])if(f=/Trident\/(\d.\d)/.exec(f),d[1]=="7.0")if(f&&f[1])switch(f[1]){case "4.0":c="8.0";break;case "5.0":c="9.0";break;case "6.0":c="10.0";break;case "7.0":c="11.0"}else c="7.0";else c=d[1];f=c}else f="";return f}var q=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");d=[];for(var Z;Z=q.exec(f);)d.push([Z[1],Z[2],Z[3]||void 0]);
f=l4n(d);switch(c){case "Opera":if(rPk())return f(["Version","Opera"]);if(Kr()?MMz("Opera"):Fk("OPR"))return f(["OPR"]);break;case "Microsoft Edge":if(Kr()?0:Fk("Edge"))return f(["Edge"]);if(glk())return f(["Edg"]);break;case "Chromium":if(_.Qn())return f(["Chrome","CriOS","HeadlessChrome"])}return c==="Firefox"&&$l()||c==="Safari"&&_.kYn()||c==="Android Browser"&&_.Ore()||c==="Silk"&&Fk("Silk")?(f=d[2])&&f[1]||"":""};
_.BzP=function(c){if(Kr()&&c!=="Silk"){var f=Yl.brands.find(function(d){return d.brand===c});
if(!f||!f.version)return NaN;f=f.version.split(".")}else{f=skC(c);if(f==="")return NaN;f=f.split(".")}return f.length===0?NaN:Number(f[0])};
SM=function(){return HN?!!Yl&&!!Yl.platform:!1};
_.irM=function(){return SM()?Yl.platform==="Android":Fk("Android")};
Tzz=function(){return Fk("iPhone")&&!Fk("iPod")&&!Fk("iPad")};
_.Lr=function(){return Tzz()||Fk("iPad")||Fk("iPod")};
_.mNz=function(){return SM()?Yl.platform==="macOS":Fk("Macintosh")};
_.Hrn=function(){return SM()?Yl.platform==="Windows":Fk("Windows")};
_.APl=function(){return SM()?Yl.platform==="Chrome OS":Fk("CrOS")};
_.zY=function(c){return c[c.length-1]};
_.ak=function(c,f,d){f=_.YCC(c,f,d);return f<0?null:typeof c==="string"?c.charAt(f):c[f]};
_.YCC=function(c,f,d){for(var q=c.length,Z=typeof c==="string"?c.split(""):c,M=0;M<q;M++)if(M in Z&&f.call(d,Z[M],M,c))return M;return-1};
FhN=function(c){for(var f=_.Vn,d=typeof c==="string"?c.split(""):c,q=c.length-1;q>=0;q--)if(q in d&&f.call(void 0,d[q],q,c))return q;return-1};
_.hP=function(c,f){return _.Xk(c,f)>=0};
_.tMk=function(c,f){_.hP(c,f)||c.push(f)};
_.wz=function(c,f){f=_.Xk(c,f);var d;(d=f>=0)&&_.brG(c,f);return d};
_.brG=function(c,f){Array.prototype.splice.call(c,f,1)};
_.yn=function(c){var f=c.length;if(f>0){for(var d=Array(f),q=0;q<f;q++)d[q]=c[q];return d}return[]};
_.D4=function(c,f){for(var d=1;d<arguments.length;d++){var q=arguments[d];if(_.WN(q)){var Z=c.length||0,M=q.length||0;c.length=Z+M;for(var g=0;g<M;g++)c[Z+g]=q[g]}else c.push(q)}};
_.ElP=function(c,f,d,q){Array.prototype.splice.apply(c,Khl(arguments,1))};
Khl=function(c,f,d){return arguments.length<=2?Array.prototype.slice.call(c,f):Array.prototype.slice.call(c,f,d)};
nl4=function(c,f){f=f||c;for(var d=0,q=0,Z={};q<c.length;){var M=c[q++],g=_.Ik(M)?"o"+_.Rk(M):(typeof M).charAt(0)+M;Object.prototype.hasOwnProperty.call(Z,g)||(Z[g]=!0,f[d++]=M)}f.length=d};
_.QkY=function(c,f,d){d=d||_.$Nn;for(var q=0,Z=c.length,M;q<Z;){var g=q+(Z-q>>>1);var O=d(f,c[g]);O>0?q=g+1:(Z=g,M=!O)}return M?q:-q-1};
_.UC=function(c,f,d){if(!_.WN(c)||!_.WN(f)||c.length!=f.length)return!1;var q=c.length;d=d||SCM;for(var Z=0;Z<q;Z++)if(!d(c[Z],f[Z]))return!1;return!0};
_.$Nn=function(c,f){return c>f?1:c<f?-1:0};
SCM=function(c,f){return c===f};
Lhr=function(c,f,d){f=Array.prototype.splice.call(c,f,1);Array.prototype.splice.call(c,d,0,f[0])};
JPG=function(c){return zGN[c]||""};
XNP=function(c){if(!a4n)return _.pr(c);c=VMe.test(c)?c.replace(VMe,JPG):c;c=atob(c);for(var f=new Uint8Array(c.length),d=0;d<c.length;d++)f[d]=c.charCodeAt(d);return f};
ukk=function(c,f){c.__closure__error__context__984382||(c.__closure__error__context__984382={});c.__closure__error__context__984382.severity=f};
_.GY=function(c){c=Error(c);ukk(c,"warning");return c};
hGC=function(c,f){if(c!=null){var d;var q=(d=vlz)!=null?d:vlz={};d=q[c]||0;d>=f||(q[c]=d+1,c=Error(),ukk(c,"incident"),jM(c))}};
cH=function(c,f,d){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(d===void 0?0:d)&&Symbol.for&&c?Symbol.for(c):c!=null?Symbol(c):Symbol():f};
WhN=function(c,f){ju||_.MH in c||wNl(c,yPn);c[_.MH]|=f};
ro=function(c,f){ju||_.MH in c||wNl(c,yPn);c[_.MH]=f};
DN4=function(c){if(4&c)return 512&c?512:1024&c?1024:0};
go=function(c){WhN(c,34);return c};
eGe=function(c){WhN(c,32);return c};
k_=function(){return typeof BigInt==="function"};
s3=function(c,f){return f===void 0?c.copyOnWrite!==O3&&!!(2&(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.MH]|0)):!!(2&f)&&c.copyOnWrite!==O3};
_.Su=function(c,f){if(c!=null)if(typeof c==="string")c=c?new t3(c,nj):_.QF();else if(c.constructor!==t3)if(Nzz&&c!=null&&c instanceof Uint8Array)c=c.length?new t3(new Uint8Array(c),nj):_.QF();else{if(!f)throw Error();c=void 0}return c};
I4h=function(c,f){if(typeof f!=="number"||f<0||f>=c.length)throw Error();};
PeG=function(c,f,d){var q=f&128?0:-1,Z=c.length,M;if(M=!!Z)M=c[Z-1],M=M!=null&&typeof M==="object"&&M.constructor===Object;var g=Z+(M?-1:0);for(f=f&128?1:0;f<g;f++)d(f-q,c[f]);if(M){c=c[Z-1];for(var O in c)!isNaN(O)&&d(+O,c[O])}};
aK=function(c){return c&128?zv:void 0};
VF=function(c){c.isGuard_doNotManuallySetPrettyPlease=!0;return c};
UNk=function(){var c=RGM;return VF(function(f){for(var d in c)if(f===c[d]&&!/^[0-9]+$/.test(d))return!0;return!1})};
_.Xy=function(c){var f=c;if(pNr(f)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(f))throw Error(String(f));}else if(xNr(f)&&!Number.isSafeInteger(f))throw Error(String(f));return olC?BigInt(c):c=GY4(c)?c?"1":"0":pNr(c)?c.trim()||"0":String(c)};
c3k=function(c,f){if(c.length>f.length)return!1;if(c.length<f.length||c===f)return!0;for(var d=0;d<c.length;d++){var q=c[d],Z=f[d];if(q>Z)return!1;if(q<Z)return!0}};
fOl=function(c){var f=c>>>0;ur=f;vH=(c-f)/4294967296>>>0};
h3=function(c){if(c<0){fOl(-c);var f=_.C(dHn(ur,vH));c=f.next().value;f=f.next().value;ur=c>>>0;vH=f>>>0}else fOl(c)};
jK4=function(c,f){var d=f*4294967296+(c>>>0);return Number.isSafeInteger(d)?d:_.wo(c,f)};
q3N=function(c,f){var d=f&2147483648;d&&(c=~c+1>>>0,f=~f>>>0,c==0&&(f=f+1>>>0));c=jK4(c,f);return typeof c==="number"?d?-c:c:d?"-"+c:c};
_.wo=function(c,f){f>>>=0;c>>>=0;if(f<=2097151)var d=""+(4294967296*f+c);else k_()?d=""+(BigInt(f)<<BigInt(32)|BigInt(c)):(d=(c>>>24|f<<8)&16777215,f=f>>16&65535,c=(c&16777215)+d*6777216+f*6710656,d+=f*8147497,f*=2,c>=1E7&&(d+=c/1E7>>>0,c%=1E7),d>=1E7&&(f+=d/1E7>>>0,d%=1E7),d=f+Zjk(d)+Zjk(c));return d};
Zjk=function(c){c=String(c);return"0000000".slice(c.length)+c};
_.Muk=function(c,f){f&2147483648?k_()?c=""+(BigInt(f|0)<<BigInt(32)|BigInt(c>>>0)):(f=_.C(dHn(c,f)),c=f.next().value,f=f.next().value,c="-"+_.wo(c,f)):c=_.wo(c,f);return c};
r3N=function(c){if(c.length<16)h3(Number(c));else if(k_())c=BigInt(c),ur=Number(c&BigInt(4294967295))>>>0,vH=Number(c>>BigInt(32)&BigInt(4294967295));else{var f=+(c[0]==="-");vH=ur=0;for(var d=c.length,q=f,Z=(d-f)%6+f;Z<=d;q=Z,Z+=6)q=Number(c.slice(q,Z)),vH*=1E6,ur=ur*1E6+q,ur>=4294967296&&(vH+=Math.trunc(ur/4294967296),vH>>>=0,ur>>>=0);f&&(f=_.C(dHn(ur,vH)),c=f.next().value,f=f.next().value,ur=c,vH=f)}};
dHn=function(c,f){f=~f;c?c=~c+1:f+=1;return[c,f]};
yF=function(c){return Array.prototype.slice.call(c)};
_.WH=function(c,f){throw Error(f===void 0?"unexpected value "+c+"!":f);};
_.DO=function(c){if(c!=null&&typeof c!=="number")throw Error("L`"+typeof c+"`"+c);return c};
_.CrY=function(c){if(c==null||typeof c==="number")return c;if(c==="NaN"||c==="Infinity"||c==="-Infinity")return Number(c)};
g_k=function(c){if(c!=null&&typeof c!=="boolean")throw Error("M`"+_.IK(c)+"`"+c);return c};
_.kvG=function(c){if(c==null||typeof c==="boolean")return c;if(typeof c==="number")return!!c};
_.RK=function(c){switch(typeof c){case "bigint":return!0;case "number":return PH(c);case "string":return OjP.test(c);default:return!1}};
_.pj=function(c){if(!PH(c))throw _.GY("enum");return c|0};
_.oK=function(c){return c==null?c:PH(c)?c|0:void 0};
lOG=function(c){if(typeof c!=="number")throw _.GY("int32");if(!PH(c))throw _.GY("int32");return c|0};
_.cD=function(c){return c==null?c:lOG(c)};
_.f3=function(c){if(c==null)return c;if(typeof c==="string"&&c)c=+c;else if(typeof c!=="number")return;return PH(c)?c|0:void 0};
_.sKP=function(c){if(c==null)return c;if(typeof c==="string"&&c)c=+c;else if(typeof c!=="number")return;return PH(c)?c>>>0:void 0};
mH4=function(c){var f=0;f=f===void 0?0:f;if(!_.RK(c))throw _.GY("int64");var d=typeof c;switch(f){case 512:switch(d){case "string":return jF(c);case "bigint":return String(qQ(64,c));default:return Bor(c)}case 1024:switch(d){case "string":return ijk(c);case "bigint":return _.Xy(qQ(64,c));default:return ToP(c)}case 0:switch(d){case "string":return jF(c);case "bigint":return _.Xy(qQ(64,c));default:return Zp(c)}default:return _.WH(f,"Unknown format requested type for int64")}};
MQ=function(c){return c==null?c:mH4(c)};
HjP=function(c){if(c[0]==="-")return!1;var f=c.length;return f<20?!0:f===20&&Number(c.substring(0,6))<184467};
A3n=function(c){var f=c.length;return c[0]==="-"?f<20?!0:f===20&&Number(c.substring(0,7))>-922337:f<19?!0:f===19&&Number(c.substring(0,6))<922337};
Y3k=function(c){if(c<0){h3(c);var f=_.wo(ur,vH);c=Number(f);return rJ(c)?c:f}f=String(c);if(HjP(f))return f;h3(c);return jK4(ur,vH)};
FTr=function(c){if(A3n(c))return c;r3N(c);return _.Muk(ur,vH)};
tu4=function(c){if(HjP(c))return c;r3N(c);return _.wo(ur,vH)};
Zp=function(c){c=C3(c);rJ(c)||(h3(c),c=q3N(ur,vH));return c};
_.bjz=function(c){c=C3(c);return c>=0&&rJ(c)?c:Y3k(c)};
Bor=function(c){c=C3(c);if(rJ(c))c=String(c);else{var f=String(c);A3n(f)?c=f:(h3(c),c=_.Muk(ur,vH))}return c};
_.KTN=function(c){c=C3(c);if(c>=0&&rJ(c))c=String(c);else{var f=String(c);HjP(f)?c=f:(h3(c),c=_.wo(ur,vH))}return c};
jF=function(c){var f=C3(Number(c));if(rJ(f))return String(f);f=c.indexOf(".");f!==-1&&(c=c.substring(0,f));return FTr(c)};
ijk=function(c){var f=C3(Number(c));if(rJ(f))return _.Xy(f);f=c.indexOf(".");f!==-1&&(c=c.substring(0,f));return k_()?_.Xy(qQ(64,BigInt(c))):_.Xy(FTr(c))};
ToP=function(c){return rJ(c)?_.Xy(Zp(c)):_.Xy(Bor(c))};
_.E_M=function(c){return rJ(c)?_.Xy(_.bjz(c)):_.Xy(_.KTN(c))};
_.n_n=function(c){var f=C3(Number(c));if(rJ(f)&&f>=0)return String(f);f=c.indexOf(".");f!==-1&&(c=c.substring(0,f));return tu4(c)};
_.$Hr=function(c){var f=C3(Number(c));if(rJ(f)&&f>=0)return _.Xy(f);f=c.indexOf(".");f!==-1&&(c=c.substring(0,f));return k_()?_.Xy((0,_.gJ)(64,BigInt(c))):_.Xy(tu4(c))};
_.S34=function(c){if(c==null)return c;if(typeof c==="bigint")return QKe(c)?c=Number(c):(c=qQ(64,c),c=QKe(c)?Number(c):String(c)),c;if(_.RK(c))return typeof c==="number"?Zp(c):jF(c)};
LTY=function(c,f){f=f===void 0?!1:f;var d=typeof c;if(c==null)return c;if(d==="bigint")return String(qQ(64,c));if(_.RK(c))return d==="string"?jF(c):f?Bor(c):Zp(c)};
_.z_r=function(c){var f=typeof c;if(c==null)return c;if(f==="bigint")return _.Xy(qQ(64,c));if(_.RK(c))return f==="string"?ijk(c):ToP(c)};
J3P=function(c){if(c==null)return c;var f=typeof c;if(f==="bigint")return String(qQ(64,c));if(_.RK(c)){if(f==="string")return jF(c);if(f==="number")return Zp(c)}};
aO4=function(c){if(c==null)return c;var f=typeof c;if(f==="bigint")return String((0,_.gJ)(64,c));if(_.RK(c)){if(f==="string")return _.n_n(c);if(f==="number")return _.bjz(c)}};
_.kS=function(c){if(typeof c!=="string")throw Error();return c};
lC=function(c){if(c!=null&&typeof c!=="string")throw Error();return c};
_.TC=function(c){return c==null||typeof c==="string"?c:void 0};
uyN=function(c,f,d,q){if(c!=null&&c[mc]===HD)return c;if(!Array.isArray(c))return d?q&2?f[VuY]||(f[VuY]=XHC(f)):new f:void 0;d=c[_.MH]|0;q=d|q&32|q&2;q!==d&&ro(c,q);return new f(c)};
XHC=function(c){c=new c;go(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return c};
v_4=function(c,f,d){c=f?lOG(c):_.f3(c);return c==null?d?0:void 0:c|0};
h_e=function(c){return c};
wHk=function(c){return c};
WTk=function(c,f,d,q,Z,M){c=uyN(c,q,d,M);Z&&(c=y3z(c));return c};
DHr=function(c){return[c,this.get(c)]};
IOC=function(){return e_C||(e_C=new Fi(go([]),void 0,void 0,void 0,Nok))};
PrP=function(c){var f=Er(n3);return f?c[f]:void 0};
pHz=function(c,f){var d=d===void 0?!1:d;if(Er(R_G)&&Er(n3)&&void 0===R_G){var q=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=q[n3];if(!Z)return;if(Z=Z.reviveUnknownFields)try{Z(q,f,UHG);return}catch(M){jM(M)}}d&&(c=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(d=Er(n3))&&d in c&&(c=c[d])&&delete c[f])};
o_k=function(c,f){var d=Er(n3),q;ju&&d&&((q=c[d])==null?void 0:q[f])!=null&&hGC(xHG,3)};
cHn=function(c,f){f<100||hGC(GvM,1)};
Z3P=function(c,f,d,q){var Z=q!==void 0;q=!!q;var M=Er(n3),g;!Z&&ju&&M&&(g=c[M])&&fpP(g,cHn);M=[];var O=c.length;g=4294967295;var l=!1,m=!!(f&64),H=m?f&128?0:-1:void 0;if(!(f&1)){var A=O&&c[O-1];A!=null&&typeof A==="object"&&A.constructor===Object?(O--,g=O):A=void 0;if(m&&!(f&128)&&!Z){l=!0;var Y;g=((Y=dQN)!=null?Y:h_e)(g-H,H,c,A,void 0)+H}}f=void 0;for(Y=0;Y<O;Y++){var t=c[Y];if(t!=null&&(t=d(t,q))!=null)if(m&&Y>=g){var E=Y-H,J=void 0;((J=f)!=null?J:f={})[E]=t}else M[Y]=t}if(A)for(var X in A)O=A[X],
O!=null&&(O=d(O,q))!=null&&(Y=+X,t=void 0,m&&!Number.isNaN(Y)&&(t=Y+H)<g?M[t]=O:(Y=void 0,((Y=f)!=null?Y:f={})[X]=O));f&&(l?M.push(f):M[g]=f);Z&&Er(n3)&&(c=PrP(c))&&c instanceof jGN&&(M[n3]=qrC(c));return M};
rHP=function(c){c[0]=MFe(c[0]);c[1]=MFe(c[1]);return c};
MFe=function(c){switch(typeof c){case "number":return Number.isFinite(c)?c:""+c;case "bigint":return QKe(c)?Number(c):""+c;case "boolean":return c?1:0;case "object":if(Array.isArray(c)){var f=c[_.MH]|0;return c.length===0&&f&1?void 0:Z3P(c,f,MFe)}if(c!=null&&c[mc]===HD)return CCG(c);if(c instanceof t3){f=c.JSC$8761_value_;if(f==null)c="";else if(typeof f==="string")c=f;else{if(a4n){for(var d="",q=0,Z=f.length-10240;q<Z;)d+=String.fromCharCode.apply(null,f.subarray(q,q+=10240));d+=String.fromCharCode.apply(null,
q?f.subarray(q):f);f=btoa(d)}else f=_.$S(f);c=c.JSC$8761_value_=f}return c}if(c instanceof Fi)return c=c.size!==0?Array.from(SF.prototype.entries.call(c),rHP):void 0,c;return}return c};
L3=function(c,f){if(f){dQN=f==null||f===h_e||f[gSC]!==kCe?h_e:f;try{return CCG(c)}finally{dQN=void 0}}return CCG(c)};
CCG=function(c){c=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Z3P(c,c[_.MH]|0,MFe)};
sGP=function(c){switch(typeof c){case "boolean":return O3G||(O3G=[0,void 0,!0]);case "number":return c>0?void 0:c===0?lpl||(lpl=[0,void 0]):[-c,void 0];case "string":return[0,c];case "object":return c}};
BJr=function(c,f,d){return c=_.zC(c,f[0],f[1],d?1:2)};
_.zC=function(c,f,d,q){q=q===void 0?0:q;if(c==null){var Z=32;d?(c=[d],Z|=128):c=[];f&&(Z=Z&-8380417|(f&1023)<<13)}else{if(!Array.isArray(c))throw Error("O");Z=c[_.MH]|0;if(i3N&&1&Z)throw Error("P");2048&Z&&!(2&Z)&&TJY();if(Z&256)throw Error("Q");if(Z&64)return q!==0||Z&2048||ro(c,Z|2048),c;if(d&&(Z|=128,d!==c[0]))throw Error("R");a:{d=c;Z|=64;var M=d.length;if(M){var g=M-1,O=d[g];if(O!=null&&typeof O==="object"&&O.constructor===Object){f=Z&128?0:-1;g-=f;if(g>=1024)throw Error("T");for(var l in O)M=
+l,M<g&&(d[M+f]=O[l],delete O[l]);Z=Z&-8380417|(g&1023)<<13;break a}}if(f){l=Math.max(f,M-(Z&128?0:-1));if(l>1024)throw Error("U");Z=Z&-8380417|(l&1023)<<13}}}Z|=64;q===0&&(Z|=2048);ro(c,Z);return c};
TJY=function(){if(i3N)throw Error("S");hGC(mQh,5)};
Yrz=function(c,f){if(typeof c!=="object")return c;if(Array.isArray(c)){var d=c[_.MH]|0;return c.length===0&&d&1?void 0:H3k(c,d,f)}if(c!=null&&c[mc]===HD)return AHh(c);if(c instanceof Fi){f=c.arrayState;if(f&2)return c;if(!c.size)return;d=go(Array.from(SF.prototype.entries.call(c)));if(c.valueCtor)for(c=0;c<d.length;c++){var q=d[c],Z=q[1];Z==null||typeof Z!=="object"?Z=void 0:Z!=null&&Z[mc]===HD?Z=AHh(Z):Array.isArray(Z)?Z=H3k(Z,Z[_.MH]|0,!!(f&32)):Z=void 0;q[1]=Z}return d}if(c instanceof t3)return c};
H3k=function(c,f,d){if(f&2)return c;!d||4096&f||16&f?c=JH(c,f,!1,d&&!(f&16)):(WhN(c,34),f&4&&Object.freeze(c));return c};
FcY=function(c,f,d){c=new c.constructor(f);d&&(c.copyOnWrite=O3);c.noLegacyNull=O3;return c};
AHh=function(c){var f=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=f[_.MH]|0;return s3(c,d)?c:tFe(c,f,d)?FcY(c,f):JH(f,d)};
JH=function(c,f,d,q){q!=null||(q=!!(34&f));c=Z3P(c,f,Yrz,q);q=32;d&&(q|=2);f=f&8380609|q;ro(c,f);return c};
y3z=function(c){var f=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=f[_.MH]|0;return s3(c,d)?tFe(c,f,d)?FcY(c,f,!0):new c.constructor(JH(f,d,!1)):c};
Xi=function(c){if(c.copyOnWrite!==O3)return!1;var f=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f=JH(f,f[_.MH]|0);WhN(f,2048);c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=f;c.copyOnWrite=void 0;c.noLegacyNull=void 0;return!0};
uC=function(c){if(!Xi(c)&&s3(c,c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.MH]|0))throw Error();};
hH=function(c,f){f===void 0&&(f=c[_.MH]|0);f&32&&!(f&4096)&&ro(c,f|4096)};
tFe=function(c,f,d){return d&2?!0:d&32&&!(d&4096)?(ro(f,d|2),c.copyOnWrite=O3,!0):!1};
wJ=function(c,f,d,q,Z){var M=d+(Z?0:-1),g=c.length-1;if(g>=1+(Z?0:-1)&&M>=g){var O=c[g];if(O!=null&&typeof O==="object"&&O.constructor===Object)return O[d]=q,f}if(M<=g)return c[M]=q,f;if(q!==void 0){var l;g=((l=f)!=null?l:f=c[_.MH]|0)>>13&1023||536870912;d>=g?q!=null&&(M={},c[g+(Z?0:-1)]=(M[d]=q,M)):c[M]=q}return f};
_.Dp=function(c,f,d,q,Z){var M=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=M[_.MH]|0;q=s3(c,g)?1:q;Z=!!Z||q===3;q===2&&Xi(c)&&(M=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=M[_.MH]|0);c=b3G(M,f);var O=c===yq?7:c[_.MH]|0,l=Kck(O,g);var m=4&l?!1:!0;if(m){4&l&&(c=yF(c),O=0,l=WD(l,g),g=wJ(M,g,f,c));for(var H=0,A=0;H<c.length;H++){var Y=d(c[H]);Y!=null&&(c[A++]=Y)}A<H&&(c.length=A);d=(l|4)&-513;l=d&=-1025;l&=-4097}l!==O&&(ro(c,l),2&l&&Object.freeze(c));return c=ESn(c,l,M,
g,f,q,m,Z)};
ESn=function(c,f,d,q,Z,M,g,O){var l=f;M===1||(M!==4?0:2&f||!(16&f)&&32&q)?NQ(f)||(f|=!c.length||g&&!(4096&f)||32&q&&!(4096&f||16&f)?2:256,f!==l&&ro(c,f),Object.freeze(c)):(M===2&&NQ(f)&&(c=yF(c),l=0,f=WD(f,q),q=wJ(d,q,Z,c)),NQ(f)||(O||(f|=16),f!==l&&ro(c,f)));2&f||!(4096&f||16&f)||hH(d,q);return c};
b3G=function(c,f,d){c=IG(c,f,d);return Array.isArray(c)?c:yq};
Kck=function(c,f){2&f&&(c|=2);return c|1};
NQ=function(c){return!!(2&c)&&!!(4&c)||!!(256&c)};
nSz=function(c){return _.Su(c,!0)};
$Qe=function(c,f){var d=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=d[_.MH]|0;a:{var Z=q;q=s3(c,q);!q&&Xi(c)&&(d=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=d[_.MH]|0);var M=IG(d,f);c=!1;if(M==null){if(q){f=IOC();break a}M=[]}else if(M.constructor===Fi)if(M.arrayState&2&&!q)M=Array.from(SF.prototype.entries.call(M));else{f=M;break a}else Array.isArray(M)?c=!!((M[_.MH]|0)&2):M=[];if(q){if(!M.length){f=IOC();break a}c||(c=!0,go(M))}else if(c){c=!1;q=M;q=yF(q);for(M=0;M<
q.length;M++){var g=q[M]=yF(q[M]);Array.isArray(g[1])&&(g[1]=go(g[1]))}M=q}!c&&Z&32&&eGe(M);q=new Fi(M,void 0,v_4,v_4);Z=wJ(d,Z,f,q);c||hH(d,Z);f=q}return f};
_.RG=function(c,f,d,q){uC(c);var Z=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Z[_.MH]|0;if(d==null)return wJ(Z,M,f),c;var g=d===yq?7:d[_.MH]|0,O=g,l=NQ(g),m=l||Object.isFrozen(d);l||(g=0);m||(d=yF(d),O=0,g=WD(g,M),m=!1);g|=5;var H;l=(H=DN4(g))!=null?H:0;for(H=0;H<d.length;H++){var A=d[H],Y=q(A,l);Object.is(A,Y)||(m&&(d=yF(d),O=0,g=WD(g,M),m=!1),d[H]=Y)}g!==O&&(m&&(d=yF(d),g=WD(g,M)),ro(d,g));wJ(Z,M,f,d);return c};
_.p3=function(c,f,d,q,Z){uC(c);var M=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;wJ(M,M[_.MH]|0,f,(q==="0"?Number(d)===0:d===q)?void 0:d,Z);return c};
_.QGN=function(c,f,d){if(f&2)throw Error();var q=aK(f),Z=b3G(c,d,q),M=Z===yq?7:Z[_.MH]|0,g=Kck(M,f);if(2&g||NQ(g)||16&g)Z=yF(Z),M=0,g=WD(g,f),wJ(c,f,d,Z,q);g&=-13;g!==M&&ro(Z,g);return Z};
Srh=function(c){if(ju){var f;return(f=c[xS])!=null?f:c[xS]=new Map}if(xS in c)return c[xS];f=new Map;Object.defineProperty(c,xS,{value:f});return f};
z3r=function(c,f,d,q,Z){var M=Srh(c),g=Lcr(M,c,f,d,Z);g!==q&&(g&&(f=wJ(c,f,g,void 0,Z)),M.set(d,q));return f};
Lcr=function(c,f,d,q,Z){var M=c.get(q);if(M!=null)return M;for(var g=M=0;g<q.length;g++){var O=q[g];IG(f,O,Z)!=null&&(M!==0&&(d=wJ(f,d,M,void 0,Z)),M=O)}c.set(q,M);return M};
JHz=function(c,f,d,q,Z){var M=!1;q=IG(c,q,Z,function(g){var O=uyN(g,d,!1,f);M=O!==g&&O!=null;return O});
if(q!=null)return M&&!s3(q)&&hH(c,f),q};
ape=function(c,f,d,q,Z,M,g,O){var l=s3(c,d);M=l?1:M;g=!!g||M===3;l=O&&!l;(M===2||l)&&Xi(c)&&(f=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=f[_.MH]|0);c=b3G(f,Z);var m=c===yq?7:c[_.MH]|0,H=Kck(m,d);if(O=!(4&H)){var A=c,Y=d,t=!!(2&H);t&&(Y|=2);for(var E=!t,J=!0,X=0,u=0;X<A.length;X++){var W=uyN(A[X],q,!1,Y);if(W instanceof q){if(!t){var p=s3(W);E&&(E=!p);J&&(J=p)}A[u++]=W}}u<X&&(A.length=u);H|=4;H=J?H&-4097:H|4096;H=E?H|8:H&-9}H!==m&&(ro(c,H),2&H&&Object.freeze(c));if(l&&!(8&H||!c.length&&
(M===1||(M!==4?0:2&H||!(16&H)&&32&d)))){NQ(H)&&(c=yF(c),H=WD(H,d),d=wJ(f,d,Z,c));q=c;l=H;for(m=0;m<q.length;m++)A=q[m],H=y3z(A),A!==H&&(q[m]=H);l|=8;H=l=q.length?l|4096:l&-4097;ro(c,H)}return c=ESn(c,H,f,d,Z,M,O,g)};
VFh=function(c){c==null&&(c=void 0);return c};
WD=function(c,f){return c=(2&f?c|2:c&-3)&-273};
_.XDN=function(c,f,d,q,Z){uC(c);f=_.Dp(c,f,Z,2,!0);var M;Z=(M=DN4(f===yq?7:f[_.MH]|0))!=null?M:0;f.push(d(q,Z));return c};
uin=function(c,f,d,q,Z,M,g){uC(c);var O=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=ape(c,O,O[_.MH]|0,d,f,2,!0);if(M&&g)Z!=null||(Z=c.length-1),I4h(c,Z),c.splice(Z,M),c.length||(c[_.MH]&=-4097);else{if(M){if(typeof Z!=="number"||Z<0||Z>c.length)throw Error();}else q=q!=null?q:new d;Z!=void 0?c.splice(Z,M,q):c.push(q);Z=d=c===yq?7:c[_.MH]|0;(q=s3(q))?(d&=-9,c.length===1&&(d&=-4097)):d|=4096;d!==Z&&ro(c,d);q||hH(O)}};
h3n=function(c,f){if(typeof c==="string")return new oG(XNP(c),f);if(Array.isArray(c))return new oG(new Uint8Array(c),f);if(c.constructor===Uint8Array)return new oG(c,!1);if(c.constructor===ArrayBuffer)return c=new Uint8Array(c),new oG(c,!1);if(c.constructor===t3)return f=vSr(c)||new Uint8Array(0),new oG(f,!0,c);if(c instanceof Uint8Array)return c=c.constructor===Uint8Array?c:new Uint8Array(c.buffer,c.byteOffset,c.byteLength),new oG(c,!1);throw Error();};
GC=function(){var c=function(){throw Error();};
Object.setPrototypeOf(c,c.prototype);return c};
yHz=function(c,f){var d=d===void 0?wDN:d;return new cU(c,f,d)};
NJP=function(c,f,d,q,Z){f=Wcz(f,q);f!=null&&(d=_.DQG(c,d),Z(f,c),_.e3z(c,d))};
fq=function(c,f,d,q){var Z=q[c];if(Z)return Z;Z={};Z.binaryFields=q;Z.messageMetadata=sGP(q[0]);var M=q[1],g=1;M&&M.constructor===Object&&(Z.extensions=M,M=q[++g],typeof M==="function"&&(Z.isMessageSet=!0,Ipk!=null||(Ipk=M),PCl!=null||(PCl=q[g+1]),M=q[g+=2]));for(var O={};M&&R3Y(M);){for(var l=0;l<M.length;l++)O[M[l]]=M;M=q[++g]}for(l=1;M!==void 0;){typeof M==="number"&&(l+=M,M=q[++g]);var m=void 0;if(M instanceof cU)var H=M;else H=UQN,g--;M=void 0;if((M=H)==null?0:M.$$isMsg){M=q[++g];m=q;var A=g;
typeof M==="function"&&(M=M(),m[A]=M);m=M}M=q[++g];A=l+1;typeof M==="number"&&M<0&&(A-=M,M=q[++g]);for(;l<A;l++){var Y=O[l];m?d(Z,l,H,m,Y):f(Z,l,H,Y)}}return q[c]=Z};
R3Y=function(c){return Array.isArray(c)&&!!c.length&&typeof c[0]==="number"&&c[0]>0};
xQC=function(c){return Array.isArray(c)?c[0]instanceof cU?c:[pDn,c]:[c,void 0]};
Wcz=function(c,f){if(c instanceof _.d8)return c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(c))return BJr(c,f,!1)};
oSk=function(c,f,d,q){var Z=d.$$binaryReaderFn;c[f]=q?function(M,g,O){return Z(M,g,O,q)}:Z};
cvk=function(c,f,d,q,Z){var M=d.$$binaryReaderFn,g,O;c[f]=function(l,m,H){return M(l,m,H,O||(O=fq(GCl,oSk,cvk,q).messageMetadata),g||(g=fJM(q)),Z)}};
fJM=function(c){var f=c[dSr];if(f!=null)return f;var d=fq(GCl,oSk,cvk,c);f=d.isMessageSet?function(q,Z){return Ipk(q,Z,d)}:function(q,Z){for(;jhG(Z)&&Z.nextWireType_!=4;){var M=Z.nextField_,g=d[M];
if(g==null){var O=d.extensions;O&&(O=O[M])&&(O=qWM(O),O!=null&&(g=d[M]=O))}if(g==null||!g(Z,q,M)){O=Z;g=O.fieldCursor_;Zqh(O);if(O.discardUnknownFields)var l=void 0;else{var m=O.decoder_.cursor_-g;O.decoder_.cursor_=g;l=MPC(O.decoder_,m)}m=O=g=void 0;var H=q;l&&((g=(O=(m=H[n3])!=null?m:H[n3]=new jGN)[M])!=null?g:O[M]=[]).push(l)}}if(q=PrP(q))q.reviveUnknownFields=d.binaryFields[rvk];return!0};
c[dSr]=f;c[rvk]=CXk.bind(c);return f};
CXk=function(c,f,d,q){var Z=this[GCl],M=this[dSr],g=BJr(void 0,Z.messageMetadata,!1),O=PrP(c);if(O){var l=!1,m=Z.extensions;if(m){Z=function(E,J,X){if(X.length!==0)if(m[J])for(E=_.C(X),J=E.next();!J.done;J=E.next()){J=ghN(J.value);try{l=!0,M(g,J)}finally{J.free()}}else q==null||q(c,J,X)};
if(f==null)fpP(O,Z);else if(O!=null){var H=O[f];H&&Z(O,f,H)}if(l){var A=c[_.MH]|0;if(A&2&&A&2048&&(d==null||!d.reviveIntoImmutable))throw Error();var Y=aK(A),t=function(E,J){if(IG(c,E,Y)!=null)switch(d==null?void 0:d.resolutionBehavior){case 1:return;default:throw Error();}J!=null&&(A=wJ(c,A,E,J,Y));delete O[E]};
f==null?PeG(g,g[_.MH]|0,function(E,J){t(E,J)}):t(f,IG(g,f,Y))}}}};
qWM=function(c){c=xQC(c);var f=c[0].$$binaryReaderFn;if(c=c[1]){var d=fJM(c),q=fq(GCl,oSk,cvk,c).messageMetadata;return function(Z,M,g){return f(Z,M,g,q,d)}}return f};
k8N=function(c,f,d){c[f]=d.$$binaryWriterFn};
lJl=function(c,f,d,q){var Z,M,g=d.$$binaryWriterFn;c[f]=function(O,l,m){return g(O,l,m,M||(M=fq(Oqe,k8N,lJl,q).messageMetadata),Z||(Z=shN(q)))}};
shN=function(c){var f=c[B8N];if(!f){var d=fq(Oqe,k8N,lJl,c);f=function(q,Z){return iqr(q,Z,d)};
c[B8N]=f}return f};
iqr=function(c,f,d){PeG(c,c[_.MH]|0,function(q,Z){if(Z!=null){var M=T8k(d,q);M?M(f,Z,q):q<500||hGC(mSN,3)}});
(c=PrP(c))&&fpP(c,function(q,Z,M){jP(f,f.encoder_.end());for(q=0;q<M.length;q++)jP(f,vSr(M[q])||new Uint8Array(0))})};
T8k=function(c,f){var d=c[f];if(d)return d;if(d=c.extensions)if(d=d[f]){d=xQC(d);var q=d[0].$$binaryWriterFn;if(d=d[1]){var Z=shN(d),M=fq(Oqe,k8N,lJl,d).messageMetadata;d=c.isMessageSet?PCl(M,Z):function(g,O,l){return q(g,O,l,M,Z)}}else d=q;
return c[f]=d}};
_.Hqk=function(c,f,d){if(Array.isArray(f)){var q=f[_.MH]|0;if(q&4)return f;for(var Z=0,M=0;Z<f.length;Z++){var g=c(f[Z]);g!=null&&(f[M++]=g)}M<Z&&(f.length=M);d&&(ro(f,(q|5)&-1537),q&2&&Object.freeze(f));return f}};
_.qS=function(c,f,d){return new cU(c,f,d)};
_.Avn=function(c,f,d){return new cU(c,f,d)};
_.ZJ=function(c,f,d){wJ(c,c[_.MH]|0,f,d,aK(c[_.MH]|0))};
FEN=function(c,f,d){f=_.CrY(f);f!=null&&(_.r8(c,d,1),c=c.encoder_,d=YWk||(YWk=new DataView(new ArrayBuffer(8))),d.setFloat64(0,+f,!0),ur=d.getUint32(0,!0),vH=d.getUint32(4,!0),_.Cq(c,ur),_.Cq(c,vH))};
_.g8=function(c,f,d){f=J3P(f);if(f!=null){switch(typeof f){case "string":tPM(f)}if(f!=null)switch(_.r8(c,d,0),typeof f){case "number":c=c.encoder_;h3(f);bqM(c,ur,vH);break;case "bigint":d=BigInt.asUintN(64,f);d=new KEk(Number(d&BigInt(4294967295)),Number(d>>BigInt(32)));bqM(c.encoder_,d.JSC$8805_lo,d.JSC$8805_hi);break;default:d=tPM(f),bqM(c.encoder_,d.JSC$8805_lo,d.JSC$8805_hi)}}};
nhM=function(c,f,d){f=_.f3(f);f!=null&&f!=null&&(_.r8(c,d,0),_.EhG(c.encoder_,f))};
_.QhC=function(c,f,d){$Sk(c,d,aO4(f))};
_.SWk=function(c,f,d){f=_.kvG(f);f!=null&&(_.r8(c,d,0),c.encoder_.JSC$8807_buffer_.push(f?1:0))};
_.zhP=function(c,f,d){f=_.TC(f);f!=null&&LEz(c,d,qCz(f))};
JvN=function(c,f,d,q,Z){f=Wcz(f,q);f!=null&&(d=_.DQG(c,d),Z(f,c),_.e3z(c,d))};
_.aJC=function(c,f,d){f=f==null||typeof f=="string"||f instanceof t3?f:void 0;f!=null&&LEz(c,d,h3n(f,!0).buffer)};
_.VPM=function(c,f,d){f=_.f3(f);f!=null&&(f=parseInt(f,10),_.r8(c,d,0),_.EhG(c.encoder_,f))};
_.kh=function(c,f){return function(d,q){var Z={treatNewDataAsImmutable:!0};q&&Object.assign(Z,q);d=ghN(d,void 0,void 0,Z);try{var M=new c,g=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;fJM(f)(g,d);var O=M}finally{d.free()}return O}};
_.OW=function(c){return function(f){return XUh(f,c)}};
uDe=function(c){return function(){return XUh(this,c)}};
_.vhY=function(c){return VF(function(f){return f instanceof c&&!s3(f)})};
_.lX=function(c){return function(f){return hhY(c,f)}};
DSN=function(c,f){return wUG({child:c,origin:f||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:yvh,getPayloadCase:function(d){return d.getPayloadCase()},
createInitMessage:function(d){var q=new sW,Z=new WEN;d=_.BU(Z,1,d);return _.iX(q,5,HU,d)}})};
FD=function(c){return{valueOf:c}.valueOf()};
N8N=function(){var c=null;if(!ehN)return c;try{var f=function(d){return d};
c=ehN.createPolicy("goog#html",{createHTML:f,createScript:f,createScriptURL:f})}catch(d){}return c};
PXC=function(){IJM===void 0&&(IJM=N8N());return IJM};
_.bX=function(c){var f=PXC();c=f?f.createScriptURL(c):c;return new tv(c)};
_.Kq=function(c){if(c instanceof tv)return c.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.EW=function(c){return Object.isFrozen(c)&&Object.isFrozen(c.raw)};
RhG=function(c){return c.toString().indexOf("`")===-1};
$h=function(c){return new _.nq(pUn,c)};
SP=function(c){return c instanceof _.nq};
_.Lq=function(c){if(SP(c))return c.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Jv=function(c){return new xSM(function(f){return f.substr(0,c.length+1).toLowerCase()===c+":"})};
ah=function(c,f){f=f===void 0?ohY:f;if(SP(c))return c;for(var d=0;d<f.length;++d){var q=f[d];if(q instanceof xSM&&q.isValid(c))return $h(c)}};
_.XD=function(c,f){f=f===void 0?ohY:f;return ah(c,f)||VM};
_.vU=function(c){var f=window;if(typeof MediaSource!=="undefined"&&c instanceof MediaSource||typeof f.ManagedMediaSource!=="undefined"&&c instanceof f.ManagedMediaSource)return $h(URL.createObjectURL(c));f=c.type;f.toLowerCase()==="application/octet-stream"?f=!0:(f=f.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),f=(f==null?void 0:f.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(f[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(f[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(f[1])||/^font\/[\w-]+$/i.test(f[1])));if(!f)throw Error("Z");return $h(URL.createObjectURL(c))};
_.G8k=function(c){for(var f=_.hv.apply(1,arguments),d=[c[0]],q=0;q<f.length;q++)d.push(String(f[q])),d.push(c[q+1]);return $h(d.join(""))};
_.fdY=function(c){if(!cDC){a:{var f=document.createElement("a");try{f.href=c}catch(d){c=void 0;break a}c=f.protocol;c=c===":"||c===""?"https:":c}return c}try{f=new URL(c)}catch(d){return"https:"}return f.protocol};
_.w8=function(c){c instanceof _.nq?c=_.Lq(c):c=dOn.test(c)?c:void 0;return c};
_.yM=function(c,f){f=_.w8(f);f!==void 0&&(c.href=f)};
DJ=function(c){var f=PXC();c=f?f.createHTML(c):c;return new WU(c)};
eP=function(c){if(c instanceof WU)return c.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.NS=function(c,f){c.src=_.Kq(f).toString()};
jZn=function(c,f){c.setAttribute("sandbox","");for(var d=0;d<f.length;d++)c.sandbox.supports&&!c.sandbox.supports(f[d])||c.sandbox.add(f[d])};
_.ZTM=function(c,f,d){c.removeAttribute("srcdoc");switch(f){case 0:if(d instanceof tv)throw new qlk("TrustedResourceUrl",0);jZn(c,[]);f=_.w8(d);f!==void 0&&(c.src=f);break;case 1:if(!(d instanceof tv))throw new qlk(typeof d,1);jZn(c,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.NS(c,d);break;case 2:if(d instanceof tv)throw new qlk("TrustedResourceUrl",2);jZn(c,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
f=_.w8(d);f!==void 0&&(c.src=f);break;default:_.WH(f)}};
_.PU=function(c,f,d,q){f=_.w8(f);return f!==void 0?c.open(f,d,q):null};
_.Rh=function(c){c=c===void 0?document:c;var f,d;c=(d=(f=c).querySelector)==null?void 0:d.call(f,"script[nonce]");return c==null?"":c.nonce||c.getAttribute("nonce")||""};
_.pq=function(c){var f=PXC();c=f?f.createScript(c):c;return new _.UW(c)};
M8C=function(c){if(c instanceof _.UW)return c.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
rDN=function(c){var f=_.Rh(c.ownerDocument);f&&c.setAttribute("nonce",f)};
_.xh=function(c,f){c.textContent=M8C(f);rDN(c)};
_.oh=function(c,f){c.src=_.Kq(f);rDN(c)};
_.G8=function(c,f){if(c.nodeType===1&&/^(script|style)$/i.test(c.tagName))throw Error("Z");c.innerHTML=eP(f)};
_.ck=function(c,f,d,q){if(c.length===0)throw Error("Z");c=c.map(function(M){if(M instanceof CYP)M=M.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return M});
var Z=d.toLowerCase();if(c.every(function(M){return Z.indexOf(M)!==0}))throw Error("aa`"+d);
f.setAttribute(d,q)};
_.dd=function(c,f,d){if(f instanceof tv)c.href=_.Kq(f).toString(),c.rel=d;else{if(gwM.indexOf(d)===-1)throw Error("ba`"+d);f=_.w8(f);f!==void 0&&(c.href=f,c.rel=d)}};
k5N=function(c){if(c instanceof j8)return c.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.OTY=function(c,f){f=_.w8(f);f!==void 0&&(c.href=f)};
ldY=function(c,f){c&&(f=c.indexOf(f),0<=f&&c.splice(f,1))};
qO=function(c){return typeof c==="function"};
sZe=function(c){return c instanceof Zd||c&&"closed"in c&&qO(c.remove)&&qO(c.add)&&qO(c.unsubscribe)};
MO=function(){};
rd=function(c){Bdr(function(){throw c;})};
CT=function(c){return c};
gd=function(){return iTe(_.hv.apply(0,arguments))};
iTe=function(c){return c.length===0?CT:c.length===1?c[0]:function(f){return c.reduce(function(d,q){return q(d)},f)}};
Tdn=function(c){var f;return(f=c!=null?c:void 0)!=null?f:Promise};
mOr=function(c,f){return new kw(function(d){var q=0;return f.schedule(function(){q===c.length?d.complete():(d.next(c[q++]),d.closed||this.schedule())})})};
HTN=function(c,f){if(!c)throw Error("ca");return new kw(function(d){var q=new Zd;q.add(f.schedule(function(){var Z=c[Symbol.asyncIterator]();q.add(f.schedule(function(){var M=this;Z.next().then(function(g){g.done?d.complete():(d.next(g.value),M.schedule())})}))}));
return q})};
ADk=function(c,f,d){f=f.schedule(function(){try{d.call(this)}catch(q){c.error(q)}},0);
c.add(f)};
F0G=function(c,f){return new kw(function(d){var q;d.add(f.schedule(function(){q=c[YlC]();ADk(d,f,function(){var Z=q.next(),M=Z.value;Z.done?d.complete():(d.next(M),this.schedule())})}));
return function(){var Z;return qO((Z=q)==null?void 0:Z.return)&&q.return()}})};
t8k=function(c,f){return new kw(function(d){var q=new Zd;q.add(f.schedule(function(){var Z=c[lY]();q.add(Z.subscribe({next:function(M){q.add(f.schedule(function(){return d.next(M)}))},
error:function(M){q.add(f.schedule(function(){return d.error(M)}))},
complete:function(){q.add(f.schedule(function(){return d.complete()}))}}))}));
return q})};
bTC=function(c,f){return new kw(function(d){return f.schedule(function(){return c.then(function(q){d.add(f.schedule(function(){d.next(q);d.add(f.schedule(function(){return d.complete()}))}))},function(q){d.add(f.schedule(function(){return d.error(q)}))})})})};
K0z=function(c){return new TypeError("da`"+(c!==null&&typeof c==="object"?"an invalid object":"'"+c+"'"))};
nwz=function(c,f){if(c!=null){if(qO(c[lY]))return t8k(c,f);if(EwY(c))return mOr(c,f);if(qO(c==null?void 0:c.then))return bTC(c,f);if(Symbol.asyncIterator&&qO(c==null?void 0:c[Symbol.asyncIterator]))return HTN(c,f);if(qO(c==null?void 0:c[YlC]))return F0G(c,f)}throw K0z(c);};
Bk=function(c,f){return f?nwz(c,f):sl(c)};
sl=function(c){if(c instanceof kw)return c;if(c!=null){if(qO(c[lY]))return $ON(c);if(EwY(c))return QZk(c);if(qO(c==null?void 0:c.then))return SlG(c);if(Symbol.asyncIterator&&qO(c==null?void 0:c[Symbol.asyncIterator]))return L0P(c);if(qO(c==null?void 0:c[YlC]))return zUk(c)}throw K0z(c);};
$ON=function(c){return new kw(function(f){var d=c[lY]();if(qO(d.subscribe))return d.subscribe(f);throw new TypeError("ea");})};
QZk=function(c){return new kw(function(f){for(var d=0;d<c.length&&!f.closed;d++)f.next(c[d]);f.complete()})};
SlG=function(c){return new kw(function(f){c.then(function(d){f.closed||(f.next(d),f.complete())},function(d){return f.error(d)}).then(null,rd)})};
zUk=function(c){return new kw(function(f){for(var d=c[YlC]();!f.closed;){var q=d.next(),Z=q.value;q.done?f.complete():f.next(Z)}return function(){return qO(d==null?void 0:d.return)&&d.return()}})};
L0P=function(c){return new kw(function(f){JDM(c,f).catch(function(d){return f.error(d)})})};
JDM=function(c,f){var d,q,Z,M,g,O;return _.k(function(l){switch(l.nextAddress){case 1:_.iY(l,2,3),M=_.T5(c);case 5:return l.yield(M.next(),8);case 8:q=l.yieldResult;if(q.done){l.jumpTo(3);break}g=q.value;f.next(g);l.jumpTo(5);break;case 3:_.m0(l);_.Hk(l,9);if(!q||q.done||!(Z=M.return)){l.jumpTo(9);break}return l.yield(Z.call(M),9);case 9:_.m0(l,0,0,1);if(d)throw d.error;_.AD(l,10,1);break;case 10:_.AD(l,4);break;case 2:O=_.Yw(l);d={error:O};l.jumpTo(3);break;case 4:f.complete(),_.Fm(l)}})};
ad4=function(c,f){return f?mOr(c,f):QZk(c)};
V8h=function(c){return qO(c[c.length-1])?c.pop():void 0};
tD=function(c){var f=c[c.length-1];return f&&qO(f.schedule)?c.pop():void 0};
KT=function(){var c=_.hv.apply(0,arguments),f=tD(c);return f?mOr(c,f):ad4(c)};
El=function(c){var f=qO(c)?c:function(){return c};
return new kw(function(d){return d.error(f())})};
nT=function(c){return function(f){if(qO(f==null?void 0:f.lift))return f.lift(function(d){try{return c(d,this)}catch(q){this.error(q)}});
throw new TypeError("fa");}};
Ql=function(){return nT(function(c,f){var d=null;c._refCount++;var q=new $w(f,void 0,void 0,void 0,function(){if(!c||c._refCount<=0||0<--c._refCount)d=null;else{var Z=c._connection,M=d;d=null;!Z||M&&Z!==M||Z.unsubscribe();f.unsubscribe()}});
c.subscribe(q);q.closed||(d=c.connect())})};
umr=function(){var c=XkY;var f=f===void 0?0:f;return nT(function(d,q){q.add(c.schedule(function(){return d.subscribe(q)},f))})};
S8=function(c){return nT(function(f,d){var q=0;f.subscribe(new $w(d,function(Z){d.next(c.call(void 0,Z,q++))}))})};
hUN=function(c){return S8(function(f){return vwG(f)?c.apply(null,_.LT(f)):c(f)})};
eUM=function(c){if(c.length===1){var f=c[0];if(wkr(f))return{args:f,keys:null};if(f&&typeof f==="object"&&yDr(f)===W04)return c=DON(f),{args:c.map(function(d){return f[d]}),
keys:c}}return{args:c,keys:null}};
z5=function(){var c=_.hv.apply(0,arguments),f=tD(c),d=V8h(c);c=eUM(c);var q=c.args,Z=c.keys;if(q.length===0)return Bk([],f);f=new kw(Ndh(q,f,Z?function(M){for(var g={},O=0;O<M.length;O++)g[Z[O]]=M[O];return g}:CT));
return d?f.pipe(hUN(d)):f};
Ndh=function(c,f,d){d=d===void 0?CT:d;return function(q){Idl(f,function(){for(var Z=c.length,M=Array(Z),g=Z,O=c.map(function(){return!1}),l=!0,m={i$jscomp$216:0};m.i$jscomp$216<Z;m={i$jscomp$216:m.i$jscomp$216},m.i$jscomp$216++)Idl(f,function(H){return function(){Bk(c[H.i$jscomp$216],f).subscribe(new JD(q,function(A){M[H.i$jscomp$216]=A;
l&&(O[H.i$jscomp$216]=!0,l=!O.every(CT));l||q.next(d(M.slice()))},function(){return--g===0}))}}(m),q)},q)}};
Idl=function(c,f,d){c?d.add(c.schedule(f)):f()};
PYM=function(c,f,d,q){var Z=[],M=0,g=0,O=!1,l=function(m){M++;sl(d(m,g++)).subscribe(new $w(f,function(H){f.next(H)},void 0,function(){M--;
for(var H={};Z.length&&M<q;H={bufferedValue:void 0})H.bufferedValue=Z.shift(),l(H.bufferedValue);!O||Z.length||M||f.complete()}))};
c.subscribe(new $w(f,function(m){return M<q?l(m):Z.push(m)},void 0,function(){O=!0;
!O||Z.length||M||f.complete()}));
return function(){Z=null}};
aZ=function(c,f){var d=d===void 0?Infinity:d;if(qO(f))return aZ(function(q,Z){return S8(function(M,g){return f(q,M,Z,g)})(sl(c(q,Z)))},d);
typeof f==="number"&&(d=f);return nT(function(q,Z){return PYM(q,Z,c,d)})};
RUP=function(c){c=c===void 0?Infinity:c;return aZ(CT,c)};
UOP=function(){var c=_.hv.apply(0,arguments);return RUP(1)(ad4(c,tD(c)))};
pkk=function(c){return new kw(function(f){sl(c()).subscribe(f)})};
Vl=function(c,f,d){if(qO(d)){var q=d;d=void 0}if(q)return Vl(c,f,d).pipe(hUN(q));q=_.C(qO(c.addEventListener)&&qO(c.removeEventListener)?xOP.map(function(g){return function(O){return c[g](f,O,d)}}):qO(c.addListener)&&qO(c.removeListener)?own.map(G5k(c,f)):qO(c.on)&&qO(c.off)?cTl.map(G5k(c,f)):[]);
var Z=q.next().value,M=q.next().value;return!Z&&EwY(c)?aZ(function(g){return Vl(g,f,d)})(ad4(c)):new kw(function(g){if(!Z)throw new TypeError("ga");
var O=function(){var l=_.hv.apply(0,arguments);return g.next(1<l.length?l:l[0])};
Z(O);return function(){return M(O)}})};
G5k=function(c,f){return function(d){return function(q){return c[d](f,q)}}};
uY=function(){var c=_.hv.apply(0,arguments),f=tD(c);var d=typeof c[c.length-1]==="number"?c.pop():Infinity;return c.length?c.length===1?sl(c[0]):RUP(d)(ad4(c,f)):Xm};
dzP=function(c){return c.length===1&&fgN(c[0])?c[0]:c};
j8l=function(){var c=dzP(_.hv.apply(0,arguments));return nT(function(f,d){var q=[f].concat(_.LT(c)),Z=function(){if(!d.closed)if(q.length>0){try{var M=sl(q.shift())}catch(O){Z();return}var g=new $w(d,void 0,MO,MO);d.add(M.subscribe(g));g.add(Z)}else d.complete()};
Z()})};
vk=function(c){return nT(function(f,d){var q=0;f.subscribe(new $w(d,function(Z){return c.call(void 0,Z,q++)&&d.next(Z)}))})};
ZGN=function(){var c=_.hv.apply(0,arguments);c=dzP(c);return c.length===1?sl(c[0]):new kw(qMG(c))};
qMG=function(c){return function(f){for(var d=[],q={i$jscomp$219:0};d&&!f.closed&&q.i$jscomp$219<c.length;q={i$jscomp$219:q.i$jscomp$219},q.i$jscomp$219++)d.push(sl(c[q.i$jscomp$219]).subscribe(new $w(f,function(Z){return function(M){if(d){for(var g=0;g<d.length;g++)g!==Z.i$jscomp$219&&d[g].unsubscribe();d=null}f.next(M)}}(q))))}};
M5N=function(){var c=_.hv.apply(0,arguments),f=V8h(c),d=dzP(c);return d.length?new kw(function(q){var Z=d.map(function(){return[]}),M=d.map(function(){return!1});
q.add(function(){Z=M=null});
for(var g={sourceIndex$jscomp$1:0};!q.closed&&g.sourceIndex$jscomp$1<d.length;g={sourceIndex$jscomp$1:g.sourceIndex$jscomp$1},g.sourceIndex$jscomp$1++)sl(d[g.sourceIndex$jscomp$1]).subscribe(new $w(q,function(O){return function(l){Z[O.sourceIndex$jscomp$1].push(l);Z.every(function(m){return m.length})&&(l=Z.map(function(m){return m.shift()}),q.next(f?f.apply(null,_.LT(l)):l),Z.some(function(m,H){return!m.length&&M[H]})&&q.complete())}}(g),void 0,function(O){return function(){M[O.sourceIndex$jscomp$1]=
!0;
!Z[O.sourceIndex$jscomp$1].length&&q.complete()}}(g)));
return function(){Z=M=null}}):Xm};
rTn=function(c){var f,d,q;return!!c&&typeof c.active==="boolean"&&typeof((f=c.clock)==null?void 0:f.now)==="function"&&((d=c.clock)==null?void 0:d.timeline)!==void 0&&!((q=c.lastMeasurement)==null||!q.timestamp)&&typeof c.equivalentTo==="function"&&typeof c.extrapolateToNow==="function"&&typeof c.extrapolateToTime==="function"&&typeof c.map==="function"&&typeof c.joinWith==="function"};
C5z=function(c){function f(d){return typeof d==="boolean"||typeof d==="string"||typeof d==="number"||d===void 0||d===null}
return f(c)?!0:Array.isArray(c)?c.every(f):typeof c==="object"?Object.keys(c).every(function(d){return typeof d==="string"})&&Object.values(c).every(function(d){return Array.isArray(d)?d.every(f):f(d)}):!1};
gcr=function(c){if(C5z(c))return c;if(rTn(c))return{lastMeasurement:{value:gcr(c.lastMeasurement.value),timestamp:hD(c.lastMeasurement.timestamp,new yl(0,c.lastMeasurement.timestamp.timeline))},active:c.active};try{return JSON.parse(JSON.stringify(c))}catch(f){}return String(c)};
Wk=function(c,f){return function(d){return new kw(function(q){return d.subscribe(function(Z){c.timeExecution(f,function(){q.next(Z)})()},function(Z){c.timeExecution(f,function(){q.error(Z)})()},function(){c.timeExecution(f,function(){q.complete()})()})})}};
kVk=function(c,f){var d=!1;return new kw(function(q){var Z=c.setTimeout(function(){d=!0;q.next(!0);q.complete()},f);
return function(){d||c.clearTimeout(Z)}})};
OGe=function(c){c=c.global;if(c.fetchLater)return c.fetchLater.bind(c)};
Dd=function(c){return nT(function(f,d){var q=null,Z=!1,M;q=f.subscribe(new $w(d,void 0,function(g){M=sl(c(g,Dd(c)(f)));q?(q.unsubscribe(),q=null,M.subscribe(d)):Z=!0}));
Z&&(q.unsubscribe(),q=null,M.subscribe(d))})};
lgY=function(c,f,d){return function(q,Z){var M=d,g=f,O=0;q.subscribe(new $w(Z,function(l){var m=O++;g=M?c(g,l,m):(M=!0,l);Z.next(g)},void 0,void 0))}};
s8z=function(c){c=c===void 0?null:c;return nT(function(f,d){var q=!1;f.subscribe(new $w(d,function(Z){q=!0;d.next(Z)},void 0,function(){q||d.next(c);
d.complete()}))})};
e8=function(){return nT(function(c,f){c.subscribe(new $w(f,MO))})};
NO=function(c){return nT(function(f,d){f.subscribe(new $w(d,function(){return d.next(c)}))})};
IZ=function(c){return c<=0?function(){return Xm}:nT(function(f,d){var q=0;
f.subscribe(new $w(d,function(Z){++q<=c&&(d.next(Z),c<=q&&d.complete())}))})};
Pk=function(c){var f=f===void 0?CT:f;var d;c=(d=c)!=null?d:BkC;return nT(function(q,Z){var M,g=!0;q.subscribe(new $w(Z,function(O){var l=f(O);if(g||!c(M,l))g=!1,M=l,Z.next(O)}))})};
BkC=function(c,f){return c===f};
TkC=function(c){c=c===void 0?iGn:c;return nT(function(f,d){var q=!1;f.subscribe(new $w(d,function(Z){q=!0;d.next(Z)},void 0,function(){return q?d.complete():d.error(c())}))})};
iGn=function(){return new mzY};
RZ=function(){var c=_.hv.apply(0,arguments);return function(f){return UOP(f,KT.apply(null,_.LT(c)))}};
HGr=function(c){return nT(function(f,d){var q=0;f.subscribe(new $w(d,function(Z){c.call(void 0,Z,q++,f)||(d.next(!1),d.complete())},void 0,function(){d.next(!0);
d.complete()}))})};
ATN=function(){return nT(function(c,f){var d=[];c.subscribe(new $w(f,function(q){d.push(q);1<d.length&&d.shift()},void 0,function(){for(var q=_.C(d),Z=q.next();!Z.done;Z=q.next())f.next(Z.value);
f.complete()},function(){d=null}))})};
YMe=function(c,f){var d=arguments.length>=2;return function(q){return q.pipe(c?vk(function(Z,M){return c(Z,M,q)}):CT,ATN(),d?s8z(f):TkC(function(){return new mzY}))}};
pT=function(c){var f=qO(c)?c:function(){return c};
return qO()?nT(function(d,q){var Z=f();(void 0)(Z).subscribe(q).add(d.subscribe(Z))}):function(d){var q=new Ul(d,f);
qO(d==null?void 0:d.lift)&&(q.lift=d.lift);q.source=d;q.subjectFactory=f;return q}};
oZ=function(c){var f=new xw(c,void 0,void 0);return function(d){return pT(function(){return f})(d)}};
G5=function(c,f){return nT(lgY(c,f,arguments.length>=2))};
cv=function(){var c=_.hv.apply(0,arguments),f=tD(c);return nT(function(d,q){(f?UOP(c,d,f):UOP(c,d)).subscribe(q)})};
fG=function(c){return nT(function(f,d){var q=null,Z=0,M=!1;f.subscribe(new $w(d,function(g){var O;(O=q)==null||O.unsubscribe();O=Z++;sl(c(g,O)).subscribe(q=new $w(d,function(l){return d.next(l)},void 0,function(){q=null;
M&&!q&&d.complete()}))},void 0,function(){(M=!0,!q)&&d.complete()}))})};
dk=function(c,f){f=f===void 0?!1:f;return nT(function(d,q){var Z=0;d.subscribe(new $w(q,function(M){var g=c(M,Z++);(g||f)&&q.next(M);!g&&q.complete()}))})};
FCN=function(c,f,d){var q=qO(c)||f||d?{next:c,error:f,complete:d}:c;return q?nT(function(Z,M){Z.subscribe(new $w(M,function(g){var O;(O=q.next)==null||O.call(q,g);M.next(g)},function(g){var O;
(O=q.error)==null||O.call(q,g);M.error(g)},function(){var g;
(g=q.complete)==null||g.call(q);M.complete()}))}):CT};
t5N=function(){var c=_.hv.apply(0,arguments),f=V8h(c);return nT(function(d,q){for(var Z=c.length,M=Array(Z),g=c.map(function(){return!1}),O=!1,l={i$jscomp$229:0};l.i$jscomp$229<Z;l={i$jscomp$229:l.i$jscomp$229},l.i$jscomp$229++)sl(c[l.i$jscomp$229]).subscribe(new $w(q,function(m){return function(H){M[m.i$jscomp$229]=H;
O||g[m.i$jscomp$229]||(g[m.i$jscomp$229]=!0,(O=g.every(CT))&&(g=null))}}(l),void 0,MO));
d.subscribe(new $w(q,function(m){O&&(m=[m].concat(_.LT(M)),q.next(f?f.apply(null,_.LT(m)):m))}))})};
KC4=function(c){try{return!!c&&c.location.href!=null&&bGk(c,"foo")}catch(f){return!1}};
EcG=function(c){var f=[],d=0,q;for(q in c)f[d++]=q;return f};
ncn=function(c,f){for(var d in c)if(c[d]==f)return!0;return!1};
$zl=function(c,f,d){for(var q in c)if(f.call(d,c[q],q,c))return q};
Q8e=function(c){if(!c||typeof c!=="object")return c;if(typeof c.clone==="function")return c.clone();if(typeof Map!=="undefined"&&c instanceof Map)return new Map(c);if(typeof Set!=="undefined"&&c instanceof Set)return new Set(c);if(c instanceof Date)return new Date(c.getTime());var f=Array.isArray(c)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(c)||c instanceof DataView?{}:new c.constructor(c.length),d;for(d in c)f[d]=Q8e(c[d]);return f};
SMh=function(c){var f=arguments.length;if(f==1&&Array.isArray(arguments[0]))return SMh.apply(null,arguments[0]);if(f%2)throw Error("ka");for(var d={},q=0;q<f;q+=2)d[arguments[q]]=arguments[q+1];return d};
LCC=function(c){var f=arguments.length;if(f==1&&Array.isArray(arguments[0]))return LCC.apply(null,arguments[0]);for(var d={},q=0;q<f;q++)d[arguments[q]]=!0;return d};
_.j5=function(c){return new CYP(c[0].toLowerCase())};
zRl=function(c){for(var f=_.hv.apply(1,arguments),d=c[0],q=0;q<c.length-1;q++)d+=String(f[q]),d+=c[q+1];f=document.implementation.createHTMLDocument("");q=f.createElement("style");f.head.appendChild(q);f=q.sheet;f.insertRule(d,0);if(f.cssRules.length===1&&(d=f.cssRules[0],d instanceof CSSStyleRule))return new j8(d.cssText.replace(/</g,"\\3C "))};
JTe=function(c){try{return new URL(c,window.document.baseURI)}catch(f){return new URL("about:invalid")}};
agl=function(c,f){var d=f.createRange();d.selectNode(f.body);c=DJ(c);return d.createContextualFragment(eP(c))};
V5k=function(c){c=c.nodeName;return typeof c==="string"?c:"FORM"};
XvG=function(c){c=c.nodeType;return c===1||typeof c!=="number"};
qz=function(c,f,d){c.setAttribute(f,d)};
u1z=function(c){return c.parts.map(function(f){var d=f.descriptor;return""+f.url+(d?" "+d:"")}).join(" , ")};
_.CG=function(c){var f=_.hv.apply(1,arguments);if(f.length===0)return _.bX(c[0]);for(var d=c[0],q=0;q<f.length;q++)d+=encodeURIComponent(f[q])+c[q+1];return _.bX(d)};
_.gk=function(c,f){c=_.Kq(c).toString();var d=c.split(/[?#]/),q=/[?]/.test(c)?"?"+d[1]:"";return vch(d[0],q,/[#]/.test(c)?"#"+(q?d[2]:d[1]):"",f)};
vch=function(c,f,d,q){function Z(g,O){g!=null&&(Array.isArray(g)?g.forEach(function(l){return Z(l,O)}):(f+=M+encodeURIComponent(O)+"="+encodeURIComponent(g),M="&"))}
var M=f.length?"&":"?";q.constructor===Object&&(q=Object.entries(q));Array.isArray(q)?q.forEach(function(g){return Z(g[1],g[0])}):q.forEach(Z);
return _.bX(c+f+d)};
kc=function(c,f,d,q){this.top=c;this.right=f;this.bottom=d;this.left=q};
hRn=function(c){c=c.global;if(c.PendingGetBeacon)return c.PendingGetBeacon};
sM=function(c){return function(f){return f.pipe(wvk(c,pT(new OM)))}};
i5=function(c){return function(f){return f.pipe(wvk(c,oZ(1)))}};
wvk=function(c,f){function d(q){return new kw(function(Z){return q.subscribe(function(M){TV(c,function(){return void Z.next(M)},3)},function(M){TV(c,function(){return void Z.error(M)},3)},function(){TV(c,function(){return void Z.complete()},3)})})}
return gd(d,umr(),f,Ql(),d)};
Dz4=function(c){var f=yTl(c);return f===null?new mC(null):f.pipe(S8(function(d){d=d.serialize();if(WC4)d=_.dz.btoa(d);else{for(var q=[],Z=0,M=0;M<d.length;M++){var g=d.charCodeAt(M);g>255&&(q[Z++]=g&255,g>>=8);q[Z++]=g}d=_.$S(q)}return d}),IZ(1),i5(c.queue))};
eRN=function(c){var f=f===void 0?{}:f;if(typeof Event==="function")return new Event(c,f);if(typeof document!=="undefined"){var d=document.createEvent("CustomEvent");d.initCustomEvent(c,f.bubbles||!1,f.cancelable||!1,f.detail);return d}throw Error();};
Nkh=function(c){return typeof c==="string"?document.getElementById(c):c};
P5e=function(c){var f=!1;f=f===void 0?!1:f;if(c.tagName==="IMG"){if(c.complete&&(!c.naturalWidth||!c.naturalHeight))return!0;var d;if(f&&((d=c.style)==null?void 0:d.display)==="none")return!0}var q,Z;return Ig4.test((q=c.getAttribute("width"))!=null?q:"")&&Ig4.test((Z=c.getAttribute("height"))!=null?Z:"")};
RRz=function(c,f){if(c.tagName==="IMG")return c.naturalWidth&&c.naturalHeight?!0:!1;try{if(c.readyState)var d=c.readyState;else{var q,Z;d=(q=c.contentWindow)==null?void 0:(Z=q.document)==null?void 0:Z.readyState}return d==="complete"}catch(M){return f===void 0?!1:f}};
Uze=function(c){c||(c=function(f,d,q){f.addEventListener(d,q)});
return c};
GVN=function(c,f){var d=pvN();d=d===void 0?new xzz:d;if(c=Nkh(c)){var q=Uze(q);for(var Z=!1,M=function(X){Z||(Z=!0,f(X))},g,O=2,l=0;l<ocM.length;++l)if(ocM[l]===c.tagName){O=3;
g=[c];break}g||(g=c.querySelectorAll(ocM.join(",")));var m=0,H=0,A=!0,Y=c=!1;l={};for(var t=0;t<g.length;l={isImg:void 0},t++){var E=g[t];if(!P5e(E))if(l.isImg=E.tagName==="IMG",RRz(E,d.crossDomainLoadedDefault))c=!0,l.isImg&&(A=!0);else{m++;var J=function(X){return function(u){m--;!m&&A&&M(O);X.isImg&&(u=u&&u.type==="error",H--,u||(A=!0),!H&&Y&&A&&M(O))}}(l);
q(E,"load",J);l.isImg&&(H++,q(E,"error",J))}}H===0&&(A=!0);g=null;g=_.dz.document.readyState==="complete";if(m===0&&!c&&g)O=5;else if(m||!c){q(_.dz,"load",function(){!d.pendingImagesBlockLoad||!H&&A?M(4):Y=!0});
return}M(O)}};
c5N=function(c,f,d){if(c)for(var q=0;c!=null&&q<500&&!d(c);++q)c=f(c)};
fUY=function(c,f){c5N(c,function(d){try{return d===d.parent?null:d.parent}catch(q){}return null},f)};
dxN=function(c,f){if(c.tagName=="IFRAME")f(c);else{c=c.querySelectorAll("IFRAME");for(var d=0;d<c.length&&!f(c[d]);++d);}};
jOP=function(c){return(c=c.ownerDocument)&&(c.parentWindow||c.defaultView)||null};
qSC=function(c,f,d){try{var q=JSON.parse(d.data)}catch(g){}if(typeof q==="object"&&q&&q.type==="creativeLoad"){var Z=jOP(c);if(d.source&&Z){var M;fUY(d.source,function(g){try{if(g.parent===Z)return M=g,!0}catch(O){}});
M&&dxN(c,function(g){if(g.contentWindow===M)return f(q),!0})}}};
Z1n=function(c){return typeof c==="string"?document.getElementById(c):c};
g6M=function(){var c={};return c[0]=_.CG(MQC,"current"),c[1]=_.CG(r5e),c[2]=_.CG(CnN),c};
Hv=function(c,f){return c.left===f.left&&c.top===f.top&&c.width===f.width&&c.height===f.height};
kDN=function(c,f){return{left:Math.max(c.left,f.left),top:Math.max(c.top,f.top),width:Math.max(0,Math.min(c.left+c.width,f.left+f.width)-Math.max(c.left,f.left)),height:Math.max(0,Math.min(c.top+c.height,f.top+f.height)-Math.max(c.top,f.top))}};
O1P=function(c,f){return{left:Math.round(c.left+f.x),top:Math.round(c.top+f.y),width:c.width,height:c.height}};
lUz=function(c,f,d){if(c&&f!==null&&f!=f.top){if(!f.top)return new _.AT(-12245933,-12245933);f=f.top}try{return(d===void 0?0:d)?(new _.AT(f.innerWidth,f.innerHeight)).round():_.Yc(f).round()}catch(q){return new _.AT(-12245933,-12245933)}};
sOG=function(c,f,d){try{if(c){if(!f.top)return new kc(-12245933,-12245933,-12245933,-12245933);f=f.top}var q=lUz(c,f,d),Z=q.height,M=q.width;if(M===-12245933)return new kc(M,M,M,M);var g=F1(tT(f.document)),O=g.x,l=g.y;return new kc(l,O+M,l+Z,O)}catch(m){return new kc(-12245933,-12245933,-12245933,-12245933)}};
Bbk=function(c){var f;return(f=c.google_tag_data)!=null?f:c.google_tag_data={}};
i1P=function(c){var f,d;return typeof((f=c.navigator)==null?void 0:(d=f.userAgentData)==null?void 0:d.getHighEntropyValues)==="function"};
mxn=function(c){if(!i1P(c))return null;var f=Bbk(c);if(f.uach_promise)return f.uach_promise;c=c.navigator.userAgentData.getHighEntropyValues(TbN).then(function(d){f.uach!=null||(f.uach=d);return d});
return f.uach_promise=c};
SSk=function(c){var f;return H1k(A5e(YSY(FAC(tQP(b1Y(KAN(E6P(n6k(new $xk,c.architecture||""),c.bitness||""),c.mobile||!1),c.model||""),c.platform||""),c.platformVersion||""),c.uaFullVersion||""),((f=c.fullVersionList)==null?void 0:f.map(function(d){var q=new QOe;q=_.b5(q,1,d.brand);return _.b5(q,2,d.version)}))||[]),c.wow64||!1)};
LAN=function(c){var f,d;return(d=(f=mxn(c))==null?void 0:f.then(function(q){return SSk(q)}))!=null?d:null};
zW4=function(c,f){return new kw(function(d){var q=!1,Z=Array(f.length);Z.fill(void 0);var M=new Set,g=new Set,O=function(A,Y){c.running?(Z[Y]=A,M.add(Y),q||(q=!0,TV(c,function(){q=!1;d.next(_.yn(Z))},1))):d.error(new nG(Y))},l=function(A,Y){g.add(Y);
M.add(Y);TV(c,function(){d.error(A)},1)},m=function(A){g.add(A);
TV(c,function(){g.size===f.length&&d.complete()},1)},H=f.map(function(A,Y){return A.subscribe(function(t){return void O(t,Y)},function(t){return void l(t,Y)},function(){return void m(Y)})});
return function(){H.forEach(function(A){return void A.unsubscribe()})}})};
VQN=function(c,f,d){function q(){if(f.debugChannel){var X=f.debugChannel,u=X.next;var W={creativeId:f.debugNames.getName(d),requiredSignals:Z,signals:Object.assign({},M),hasPrematurelyCompleted:g,errorMessage:O,erroredSignalKey:l};W={specMajor:2,specMinor:0,specPatch:0,timestamp:hD(f.timeProvider.now(),new yl(0,f.timeProvider.timeline)),instanceId:f.debugNames.getName(f.symbol),creativeState:W};u.call(X,W)}}
for(var Z=Object.keys(c),M={},g=!1,O=null,l=null,m={},H=new Set,A=[],Y=[],t=_.C(Z),E=t.next(),J={};!E.done;J={key$jscomp$396:void 0},E=t.next())J.key$jscomp$396=E.value,E=c[J.key$jscomp$396],E instanceof mC?(m[J.key$jscomp$396]=E.value,H.add(J.key$jscomp$396),f.debugChannel&&(M[String(J.key$jscomp$396)]=gcr(E.value))):(E=E.pipe(Pk(function(X,u){return rTn(X)||rTn(u)?!1:X===u}),S8(function(X){return function(u){f.debugChannel&&(M[String(X.key$jscomp$396)]=gcr(u),q());
var W={};return W[X.key$jscomp$396]=u,W}}(J)),Dd(function(X){return function(u){if(u instanceof nG)throw new J5Y(String(X.key$jscomp$396));
throw u;}}(J)),FCN(function(X){return function(){H.add(X.key$jscomp$396)}}(J),function(X){return function(u){l=String(X.key$jscomp$396);
O=String(u);q()}}(J),function(X){return function(){H.has(X.key$jscomp$396)||(g=!0,q())}}(J))),Y.push(J.key$jscomp$396),A.push(E));
(c=Object.keys(M).length>0)&&q();t=zW4(f.queue,A).pipe(Dd(function(X){if(X instanceof nG)throw new aUG(String(Y[X.inputObservableIndex]));throw X;}),S8(function(X){return Object.freeze(Object.assign.apply(Object,[{},
m].concat(_.LT(X))))}));
return(A=A.length>0)&&c?uY(KT(Object.freeze(m)),t):A?t:KT(Object.freeze(m))};
Xun=function(c,f,d,q,Z){return c.performanceMonitor.timeExecution.bind(c.performanceMonitor)(733,function(){var M={};try{return f.pipe(Dd(function(g){q(Object.assign({},M,{error:g}));return Xm}),aZ(function(g){try{var O=d(c,g)}catch(m){return q(Object.assign({},M,{error:m instanceof Error?m:String(m)})),Xm}var l={};
return VQN(O,c,g.symbol).pipe(FCN(function(m){l=m}),oZ(1),Ql()).pipe(Z,Dd(function(m){q(Object.assign({},l,{error:m}));
return Xm}),RZ(void 0),S8(function(){return!0}))})).pipe(G5(function(g){return g+1},0),Dd(function(g){q(Object.assign({},M,{error:g}));
return Xm}))}catch(g){return q(Object.assign({},M,{error:g})),Xm}})()};
$c=function(c){var f=new Map;if(typeof c!=="object"||c===null)return f;Object.values(c).forEach(function(d){d&&typeof d.extrapolateToNow==="function"&&(f.has(d.clock.timeline)||f.set(d.clock.timeline,d.clock.now()))});
return f};
uEC=function(c,f){return typeof c==="string"?encodeURIComponent(c):typeof c==="number"?String(c):Array.isArray(c)?c.map(function(d){return uEC(d,f)}).join(","):c instanceof yl?c.toString():c&&typeof c.extrapolateToNow==="function"?uEC(c.extrapolateUsingTimestampMap(f).value,f):c===!0?"1":c===!1?"0":c===void 0||c===null?null:c instanceof v6h?hWY(c):[c.top,
c.left,c.top+c.height,c.left+c.width].join()};
wue=function(c,f){c=Object.entries(c).map(function(d){var q=_.C(d);d=q.next().value;q=q.next().value;q=uEC(q,f);return q===null?"":d+"="+q}).filter(function(d){return d!==""});
return c.length?c.join("&"):""};
Dxh=function(c,f){var d=y5r,q=WAY;f=f===void 0?.01:f;return function(Z){f>0&&Math.random()<=f&&(c.global.HTMLFencedFrameElement&&c.global.fence&&typeof c.global.fence.reportEvent==="function"&&c.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Z=Object.assign({},Z,{errorMessage:Z.error instanceof Error&&Z.error.message?Z.error.message:String(Z.error),errorStack:Z.error instanceof Error&&Z.error.stack?String(Z.error.stack):null,errorName:Z.error instanceof
Error&&Z.error.name?String(Z.error.name):null,errorContext:String(c.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Z.escapedQueryId}),d(Object.assign({},Z,{payloadMapper:function(){return function(M){try{return q(Object.assign({},M))}catch(g){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),$c(Z)).forEach(function(M){c.beaconFactory.makeBeacon(M).sendNow()}))}};
eWC=function(){var c=_.hv.apply(0,arguments);return function(f){var d=f.pipe(oZ(1),Ql());f=c.map(function(q){return d.pipe(q,RZ(!0))});
return z5(f).pipe(IZ(1),e8())}};
NbY=function(){var c=_.hv.apply(0,arguments);return function(f){var d=f.pipe(oZ(1),Ql());f=c.map(function(q){return d.pipe(q,RZ(!0))});
return uY.apply(null,_.LT(f)).pipe(IZ(1),e8())}};
IUC=function(c,f){return function(d){var q=d.pipe(oZ(1),Ql());d=q.pipe(c,RZ(!0));q=q.pipe(gd(f,oZ(),Ql()),RZ(!0));d=z5([d,q]);return ZGN(d,q).pipe(IZ(1),e8())}};
Pn4=function(c,f,d){d(!0)};
RWz=function(c,f){return gd(fG(function(d){var q=c(d),Z=f(d),M={};return q&&Z&&M?new kw(function(g){Z(q,M,function(O){g.next(Object.assign({},d,{canEmit:O}));g.complete()});
return function(){}}):QT}),vk(function(d){return d.canEmit}))};
Uxn=function(c){var f={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(d){return d.pipe(fG(function(q){return new kw(function(Z){function M(){O.disconnect();l.unsubscribe()}
var g=c.MutationObserver;if(g&&q.ref!==void 0){var O=new g(function(m){Z.next(m)});
O.observe(q.ref,f);var l=q.JSC$9302_released.subscribe(M);return M}})}))}};
pun=function(c){if(c.measurementDeferralState===3)return null;if(c.timeOnScreenReason!==void 0){var f=c.creativeFound===!1?"n":null;if(f!==null)return f}return c.geometricMeasurementErrors instanceof S5?"msf":c.contextValidationErrors instanceof LG?"c":c.contextVisibilityKnown===!1?"pv":c.geometricMeasurementErrors||c.contextValidationErrors?"x":null};
o6C=function(c,f){return c.replace(xxn,function(d,q){try{var Z=_.zV.get(f,q);if(Z==null||Z.toString()==null)return d;Z=Z.toString();if(Z==""||!_.gz(Z==null?"":String(Z)))return encodeURIComponent(Z).replace(/%2C/g,",")}catch(M){}return d})};
GDY=function(c,f){var d=Object.assign({},c),q=c.userAgentClientHints;d=(delete d.userAgentClientHints,d);d=c.payloadMapper(d);var Z=wue(d,f);return _.JT(c.urlPrefixes,function(M){var g="";typeof q==="string"&&(g="&"+wue({uach:q},f));var O={};return o6C(M,(O.VIEWABILITY=Z,O))+g})};
y5r=function(c,f){var d=c.payloadMapper(c),q=wue(d,f);return q?_.JT(c.urlPrefixes,function(Z){Z=Z.indexOf("?")>=0?Z:Z+"?";Z="?&".indexOf(Z.slice(-1))>=0?Z:Z+"&";return Z+q}):c.urlPrefixes};
coN=function(){return gd(vk(function(c){return c!==void 0}),S8(function(c){return c}))};
faP=function(c){return gd(S8(function(){return!0}),cv(!1),i5(c))};
dar=function(c){return c.length<=0?Xm:z5(c.map(function(f){var d=0;return f.pipe(S8(function(q){return{index:d++,value:q}}))})).pipe(vk(function(f){return f.every(function(d){return d.index===f[0].index})}),S8(function(f){return f.map(function(d){return d.value})}))};
juh=function(c,f){c.currentState&&(c.previousState=c.currentState);c.currentState=f;c.previousState&&c.previousState.value?(f=Math.max(0,hD(f.timestamp,c.previousState.timestamp)),c.totalTime+=f,c.consecutiveTime+=f):c.consecutiveTime=0;return c};
qTh=function(){return gd(G5(juh,{totalTime:0,consecutiveTime:0}),S8(function(c){return c.totalTime}))};
ZLz=function(){return gd(G5(juh,{totalTime:0,consecutiveTime:0}),S8(function(c){return c.consecutiveTime}))};
Mhk=function(c,f){return function(d){return dar(f.map(function(q){return d.pipe(c(q))}))}};
roz=function(){var c;return gd(FCN(function(f){return void(c=f.timestamp)}),ZLz(),S8(function(f){return{timestamp:c,
value:Math.round(f)}}))};
CmN=function(c,f){return Hv(c.topWindowViewportExternalGeometry,f.topWindowViewportExternalGeometry)&&Hv(c.elementGeometry,f.elementGeometry)&&Hv(c.exposedViewportLocalGeometry,f.exposedViewportLocalGeometry)&&Hv(c.intersectionGeometry,f.intersectionGeometry)&&c.elementGeometrySourceName===f.elementGeometrySourceName&&c.measurementRequests===f.measurementRequests&&c.viewportGeometrySourceName===f.viewportGeometrySourceName&&c.viewportLocalAppOffset.x===f.viewportLocalAppOffset.x&&c.viewportLocalAppOffset.y===
f.viewportLocalAppOffset.y};
lah=function(c,f){return function(d){return function(q){var Z=q.pipe(pT(new OM),Ql());q=d.element.pipe(Pk());Z=Z.pipe(S8(function(M){return M.value}));
return z5([q,Z,f]).pipe(S8(function(M){var g=_.C(M);M=g.next().value;var O=g.next().value;g=g.next().value;if(M.ref===void 0)var l={top:0,left:0,width:0,height:0};else{l=M.ref.getBoundingClientRect();var m=M.ref,H=c.global,A=new _.a8(0,0),Y=VT(_.X1(m));if(bGk(Y,"parent")){do{if(Y==H)var t=_.u5(m);else t=gkG(m),t=new _.a8(t.left,t.top);A.x+=t.x;A.y+=t.y}while(Y&&Y!=H&&Y!=Y.parent&&(m=Y.frameElement)&&(Y=Y.parent))}l={top:A.y,left:A.x,width:l.width,height:l.height}}l=O1P(l,O.viewportLocalAppOffset);
H=kDN(l,O.exposedViewportLocalGeometry);A=c.timeProvider.now();Y=Object;m=Y.assign;if(g!==2||c.inCrossDomainIframe||H.width<=0||H.height<=0)var E=!1;else try{var J=c.document.elementFromPoint(H.left+H.width/2,H.top+H.height/2);E=J?!kZn(J,M):!1}catch(X){E=!1}return{timestamp:A,value:m.call(Y,{},O,{elementGeometrySourceName:"geo",intersectionGeometry:E?OLr.intersectionGeometry:H,elementGeometry:l})}}),sM(c.queue))}}};
kZn=function(c,f,d){d=d===void 0?0:d;return c.ref===void 0||f.ref===void 0?!1:c.ref===f.ref||_.vv(f.ref,function(q){return q===c.ref})?!0:f.ref.ownerDocument&&f.ref.ownerDocument.defaultView&&f.ref.ownerDocument.defaultView===f.ref.ownerDocument.defaultView.top?!1:d<10&&f.ref.ownerDocument&&f.ref.ownerDocument.defaultView&&f.ref.ownerDocument.defaultView.frameElement?kZn(c,new hT(f.ref.ownerDocument.defaultView.frameElement),d+1):!0};
iLe=function(c){return function(f){return f.pipe(c.ResizeObserver?suk(c):B$e(c),oZ(1),Ql())}};
suk=function(c){return function(f){return f.pipe(fG(function(d){var q=c.ResizeObserver;if(!q||d.ref===void 0)return KT(OLr.elementGeometry);var Z=(new kw(function(M){function g(){d.ref!==void 0&&O.unobserve(d.ref);O.disconnect();l.unsubscribe()}
if(d.ref===void 0)return M.complete(),function(){};
var O=new q(function(m){m.forEach(function(H){M.next(H)})});
O.observe(d.ref);var l=d.JSC$9302_released.subscribe(g);return g})).pipe(Wk(c.performanceMonitor,736),S8(function(M){return M.contentRect}));
return uY(KT(d.ref.getBoundingClientRect()),Z)}),Pk(Hv))}};
B$e=function(c){return function(f){var d=f.pipe(Uxn(c)),q=c.onResize;d=uY(f.pipe(S8(function(){return eRN("resize")})),d,q);
return z5(f,d).pipe(Wk(c.performanceMonitor,737),S8(function(Z){Z=_.C(Z).next().value;return Z.ref===void 0?void 0:Z.ref.getBoundingClientRect()}),coN(),Pk(Hv))}};
HLC=function(c,f){var d=T$Y(c,f).pipe(oZ(1),Ql());return function(q){return function(Z){Z=Z.pipe(fG(function(M){return M.element}),Pk());
return z5([d,Z]).pipe(fG(function(M){var g=_.C(M);M=g.next().value;g=g.next().value;return maM(c,M.intersectionObserver,iLe(c),M.observations,q,M.flushRecords,g)}),sM(c.queue))}}};
Aor=function(c){return S8(function(f){return f.value.viewportGeometrySourceName!=="nio"?f:Object.assign({},f,{value:Object.assign({},f.value,{exposedViewportLocalGeometry:wk(c,!0),topWindowViewportExternalGeometry:wk(c,!0)})})})};
YTM=function(c,f){return KT(f).pipe(c,S8(function(){return f}))};
T$Y=function(c,f){return c.timeProvider.timeline!==FKk?El(new S5(2)):c.MutationObserver?typeof IntersectionObserver==="undefined"?El(new S5(0)):(new kw(function(d){var q=new OM,Z=new yT(q.next.bind(q),{threshold:[].concat(_.LT(f))});d.next({observations:q.pipe(Wk(c.performanceMonitor,735)),intersectionObserver:Z,flushRecords:function(M){M=Z.takeRecords(M);M.length>0&&q.next(M)}})})).pipe(IZ(1),oZ(1),Ql()):El(new S5(1))};
thG=function(c){return nwz(c.sort(function(f,d){return f.time-d.time}),XkY)};
maM=function(c,f,d,q,Z,M,g){return new kw(function(O){function l(){E||(E=!0,g.ref!==void 0&&f.unobserve(Z,g.ref),H.unsubscribe(),t.unsubscribe(),Y.unsubscribe(),J.unsubscribe())}
if(g.ref!==void 0){bLh(f,Z);f.observe(Z,g.ref);var m=new Wv({timestamp:c.timeProvider.now(),value:Object.assign({},OLr,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),H=q.pipe(aZ(function(X){return thG(X)}),vk(function(X){return X.target===g.ref}),S8(function(X){return{timestamp:new yl(X.time,FKk),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:X.rootBounds||Dg,topWindowViewportExternalGeometry:X.rootBounds||wk(c,!0),measurementRequests:A,elementGeometrySourceName:"nio",intersectionGeometry:X.intersectionRect,elementGeometry:X.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:X.isIntersecting,isV2Visible:X.isVisible}}}),pT(m),Ql()).subscribe(O),A=new OM,Y=A.subscribe(function(){M(Z);
O.next({timestamp:c.timeProvider.now(),value:m.value.value});g.ref!==void 0&&(f.unobserve(Z,g.ref),f.observe(Z,g.ref))}),t=YTM(d,g).subscribe(function(){A.next()}),E=!1,J=g.JSC$9302_released.subscribe(function(){return l()});
return l}})};
KKr=function(c,f){var d=c.getOnBackgrounded().pipe(S8(function(){return"b"}));
return ZGN(f,d).pipe(IZ(1),i5(c.queue))};
e5=function(c){return function(f){var d;return f.pipe(FCN(function(q){return void(d=q.timestamp)}),S8(function(q){return q.value}),c,S8(function(q){return{timestamp:d,
value:q}}))}};
Ekr=function(c){return c.intersectionGeometry.width*c.intersectionGeometry.height/(c.elementGeometry.width*c.elementGeometry.height)};
Nz=function(c,f,d){d=d===void 0?function(q,Z){return q===Z}:d;
return c.timestamp.equals(f.timestamp)&&d(c.value,f.value)};
R8=function(c,f){return f.pipe(S8(function(d){return new Pv(c.timeProvider,{timestamp:c.timeProvider.now(),value:d})}))};
nkz=function(c){return function(f){return f.pipe(t5N(c),S8(function(d){var q=_.C(d);d=q.next().value;q=q.next().value;var Z=d.value;return{timestamp:d.timestamp,value:Z>=1?!0:Z<=0?!1:Z>=q}}))}};
Qun=function(){return gd(vk(function(c,f){return f>0}),$az,cv(-1),Pk())};
STz=function(c,f,d){return c?z5([f,d]).pipe(vk(function(q){var Z=_.C(q);q=Z.next().value;Z=Z.next().value;return q.timestamp.equals(Z.timestamp)}),S8(function(q){var Z=_.C(q);
q=Z.next().value;Z=Z.next().value;return q.value>Z.value?q:Z})):f};
Jo4=function(c){return function(f){var d=f.pipe(LKM),q=f.pipe(zEY);return c instanceof kw?c.pipe(fG(function(Z){return STz(Z,d,q)})):STz(c.value,d,q)}};
Daz=function(c,f,d,q){var Z=q.geometryIsOccluded,M=q.exposureThreshold,g=q.wasLargeAdAtRender,O=q.allowLargeAdThreshold,l=q.largeAdExposureThreshold,m=q.mayUseViewportShareExposure,H=q.hasMeasurementStarted;q=q.useIntersectionObserverV2;f=aae(c,d,f);d=VhM(c,d);q=XV4(f,q);var A=uCh(c,Z,m,f),Y=A.pipe(S8(function(I){return I.value}),Pk(),i5(c),G5(function(I,R){return Math.max(I,R)},0)),t=A.pipe(S8(function(I){return I.value}),Qun(),i5(c)),E=f.pipe(vkC,S8(function(I){return I.value}),IZ(2),Pk(),i5(c));
g=hEh(c,f,g,O);var J=g.pipe(cv(!1),Pk(),S8(function(I){return I?l:M}));
O=A.pipe(nkz(J),Pk(),i5(c));var X=z5([O,f]).pipe(vk(function(I){var R=_.C(I);I=R.next().value;R=R.next().value;return I.timestamp.equals(R.timestamp)}),S8(function(I){var R=_.C(I);
I=R.next().value;R=R.next().value;return{visible:I.value,geometry:R.value.elementGeometry}}),G5(function(I,R){return!R.visible&&I.visible?I:R},{visible:!1,
geometry:Dg}),S8(function(I){return I.geometry}),cv(Dg),i5(c),Pk(Hv));
m=m instanceof kw?m.pipe(Pk(),NO()):QT;J=z5([m,J]).pipe(NO());var u=f.pipe(vk(function(I){return I.value.viewportGeometrySourceName!=="ns"&&I.value.elementGeometrySourceName!=="ns"}),G5(function(I){return I+1},0),cv(0),i5(c)),W=d.pipe(NO(!0),cv(!1),i5(c));
W=z5([H,W]).pipe(S8(function(I){var R=_.C(I);I=R.next().value;R=R.next().value;return I&&!R}),i5(c));
var p=f.pipe(wVN,Pk()),N=p.pipe(S8(function(I){return I.value}),G5(function(I,R){return Math.max(I,R)},0),Pk(),i5(c));
c=p.pipe(S8(function(I){return I.value}),Qun(),i5(c));
return{shouldResetExposureSignals:m,shouldResetViewabilitySignals:J,geometrySignals:{readyGeometryWithDefault:f,measurementStrategy:f.pipe(yor),creativePosition:X.pipe(Pk(Hv)),visible:O.pipe(Pk(Nz)),timestampedExposure:A.pipe(Pk(Nz)),maximumExposure:Y,minimumExposure:t,browserSize:f.pipe(WKC,Pk(_.UC)),timestampedScreenShare:p,maxScreenShare:N,minScreenShare:c,geometricMeasurementErrors:d,measurementRequests:f.pipe(S8(function(I){return I.value.measurementRequests})),
isLargeAd:g,geometryIsOccluded:Z,hasMeasurementStarted:H,geometryMeasurable:W,validMeasurementCount:u,loadTimeExposure:E,v2VisibilityBitVector:q}}};
VhM=function(c,f){return f.pipe(vk(function(){return!1}),S8(function(d){return d}),Dd(function(d){return UM(new mC(d),c)}))};
aae=function(c,f,d){return f.pipe(j8l(QT),i5(c)).pipe(Pk(function(q,Z){return Nz(q,Z,CmN)}),cv({timestamp:d.now(),
value:OLr}),i5(c))};
uCh=function(c,f,d,q){d=q.pipe(Jo4(d),e5(S8(function(Z){return Math.round(Z*100)/100})),i5(c));
return f instanceof mC?d:z5([d,f]).pipe(S8(function(Z){var M=_.C(Z);Z=M.next().value;M=M.next().value;return{timestamp:M.timestamp.maximum(Z.timestamp),value:M.value?0:Z.value}}),Pk(Nz),i5(c))};
hEh=function(c,f,d,q){f=[f.pipe(S8(function(Z){return Z.value.elementGeometry.width*Z.value.elementGeometry.height>=242500}))];
d instanceof kw&&f.push(d.pipe(S8(function(Z){return!!Z})));
d=z5(f);return q?d.pipe(S8(function(Z){return Z.some(function(M){return M})}),cv(!1),Pk(),i5(c)):UM(new mC(!1),c)};
XV4=function(c,f){c=z5([c,f]).pipe(S8(function(Z){var M=_.C(Z);Z=M.next().value;if(M.next().value&&Z.value.isIntersecting)return Z.value.isV2Visible}),Pk());
var d=c.pipe(S8(function(Z){return Z===void 0?!0:Z}),G5(function(Z,M){return Z||!M},!1)),q=c.pipe(G5(function(Z,M){return M===void 0?Z:M?!1:Z!=null?Z:!0},void 0),S8(function(Z){return!!Z}));
return z5([f,M5N(c,d,q)]).pipe(S8(function(Z){var M=_.C(Z);Z=M.next().value;var g=_.C(M.next().value);M=g.next().value;var O=g.next().value;g=g.next().value;var l=0;if(!Z)return 0;if(M===void 0)return 16;M&&(l|=1);M||(l|=2);O&&(l|=4);g&&(l|=8);return l}))};
Uak=function(c,f,d,q,Z){var M=eEN.timeThresholdMs;var g=g===void 0?new N$C(f,q):g;return(new kw(function(O){var l=d.pipe(cv(void 0),fG(function(){return Ial(Z)})).pipe(S8(function(m){var H=m.value;
m=m.timestamp;var A=H.visible;H=H.consecutiveViewTime;var Y=H>=M;Y||!A?PmM(g):(m=Math.max(0,hD(f.now(),m)),REP(g,Math.max(0,M-H-m)));return Y}),G5(function(m,H){return H||m},!1),Pk()).subscribe(O);
return function(){g.dispose();l.unsubscribe()}})).pipe(dk(function(O){return!O},!0),i5(c))};
Ial=function(c){return dar([c,c.pipe(roz())]).pipe(S8(function(f){var d=_.C(f);f=d.next().value;d=d.next().value;return{timestamp:f.timestamp,value:{visible:f.value,consecutiveViewTime:d.value}}}),Pk(function(f,d){return Nz(f,d,function(q,Z){return q.consecutiveViewTime===Z.consecutiveViewTime&&q.visible===Z.visible})}))};
pVG=function(){return gd(ZLz(),G5(function(c,f){return Math.max(c,f)},0),S8(function(c){return Math.round(c)}))};
xaP=function(c){return gd(nkz(KT(c)),pVG())};
okl=function(c,f){return f instanceof kw?f.pipe(fG(function(d){return(d=d?15:null)?El(new S5(d)):c})):(f=f.value?15:null)?El(new S5(f)):c};
GZe=function(c){var f=new S5(13);if(c.length<1)return{chain:Xm,capturedErrors:Xm};var d=new OM,q=c[0];return{chain:c.slice(1).reduce(function(Z,M){return Z.pipe(Dd(function(g){d.next(g);return M}))},q).pipe(Dd(function(Z){d.next(Z);
return El(f)}),pT(new OM),Ql()),
capturedErrors:d}};
ckn=function(c,f){var d=c.pipe(pT(new OM),Ql());return fG(function(q){return d.pipe(f(q))})};
dDY=function(c,f){if(c.inCrossDomainIframe)return El(new S5(6));var d=new OM;return uY(KT({}),f,d).pipe(S8(function(){return{timestamp:c.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:f5e(c),topWindowViewportExternalGeometry:wk(c,!0),measurementRequests:d,viewportLocalAppOffset:{x:0,y:0}}}}),sM(c.queue))};
f5e=function(c){var f=wk(c,!1);if(!c.inIframe||!KC4(c.global.parent)||c.global.parent===c.global)return f;var d=new pG(c.global.parent,c.debugChannel);d.beaconFactory=c.beaconFactory;d=f5e(d);c=c.global.frameElement.getBoundingClientRect();return kDN(O1P(kDN(d,c),{x:f.left-c.left,y:f.top-c.top}),f)};
jwn=function(c){if(c.prerendering)return 3;var f;return(f={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[c.visibilityState||c.webkitVisibilityState||c.mozVisibilityState||""])!=null?f:0};
q6e=function(c){return c.document.JSC$9313_onVisibilityChange.pipe(S8(function(f){return f==="visible"}),Pk(),i5(c.queue))};
Z9h=function(c,f,d){var q;return f.pipe(Pk(),fG(function(Z){return d.pipe(S8(function(){if(!q){q=!0;try{Z.next()}finally{q=!1}}return!0}))}),cv(!1),i5(c.queue))};
MZ4=function(c){return gd(e5(S8(function(f){return f>=1?!0:f<=0?!1:f>=c})),qTh(),S8(function(f){return Math.round(f)}))};
Cdn=function(c,f,d,q,Z){var M=rkn;if(M.length>1)for(var g=0;g<M.length-1;g++)if(M[g]<M[g+1])throw Error();g=Z.pipe(cv(void 0),fG(function(){return d.pipe(roz())}),Pk(),i5(c));
Z=Z.pipe(cv(void 0),fG(function(){return d.pipe(pVG())}),Pk(),i5(c));
return{totalMeasurementTime:q.pipe(cv(void 0),fG(function(){return f.pipe(S8(function(O){return{timestamp:O.timestamp,value:!0}}),qTh())}),Pk(),i5(c)),
totalUnviewedTime:q.pipe(cv(void 0),fG(function(){return f.pipe(S8(function(O){return{timestamp:O.timestamp,value:O.value===0}}),qTh())}),Pk(),i5(c)),
maxTimeOnScreen:q.pipe(cv(void 0),fG(function(){return f.pipe(Mhk(xaP,M))}),Pk(_.UC),i5(c)),
timeOnScreen:q.pipe(cv(void 0),fG(function(){return f.pipe(Mhk(MZ4,M),S8(function(O){return O.map(function(l,m){return m>0?l-O[m-1]:l})}))}),Pk(_.UC),i5(c)),
maxConsecutiveViewTime:Z,consecutiveViewTime:g.pipe(Pk(Nz),i5(c))}};
k4l=function(c){var f=!0;f=f===void 0?!1:f;return gd(fG(function(d){return g5k(c.document,d,f)}),i5(c.queue))};
O9n=function(c,f,d){var q=d.pipe(S8(function(Z){return{value:Z,timestamp:c.timeProvider.now()}}),Pk(Nz));
return f instanceof kw?f.pipe(Pk(),fG(function(Z){return Z?UM(new mC({value:!1,timestamp:c.timeProvider.now()}),c.queue):q})):f.value===!1?q:new mC(!1)};
l5M=function(c,f,d,q,Z,M,g){var O=eEN;f=f instanceof kw?f.pipe(cv(!1),Pk()):f;var l=!c.isMobile();d=O9n(c,d,q);c=g.measurableCreative.pipe(faP(c.queue));return Object.assign({},O,{geometryIsOccluded:d,wasLargeAdAtRender:Z,allowLargeAdThreshold:l,mayUseViewportShareExposure:f,hasMeasurementStarted:c,useIntersectionObserverV2:M})};
Biz=function(c,f,d,q,Z,M){var g=1;M=M===void 0?!0:M;g=g===void 0?.01:g;var O=O===void 0?c.timeProvider.intervalObservable(100).pipe(i5(c.queue)):O;return c.performanceMonitor.timeExecution(916,function(){return swN(c,f.pipe(sM(c.queue)),d.pipe(sM(c.queue)),q,Z,M,g,O)})()};
swN=function(c,f,d,q,Z,M,g,O){var l=q6e(c).pipe(S8(function(H){return!H})),m=new i9e(c,[new Til(c,rkn),
new mDk(c,O)]);O=eWC(H9k,AkG);return Xun(c,f,function(H,A){var Y=UM(new mC(A.element),H.queue).pipe(k4l(H),i5(H.queue)),t={loadedElement:Y,shouldMeasure:Y.pipe(NO(!0)),measurableCreative:Y.pipe(S8(function(I){var R=R===void 0?Symbol():R;return Object.freeze({symbol:R,element:UM(new mC(I),H.queue)})})),
creativeSearchResult:UM(new mC("mue"),H.queue)},E=new mC(!1),J=new mC(!1),X=new mC(17),u=new mC(!1),W=new mC(!1),p=UM(xc,H.queue);E=m.buildGeometrySource(t,{inApp:E,useV2:!1,requestSource:UM(X,H.queue)}).geometrySource;t=l5M(H,u,J,l,W,p,t);J=Daz(H.queue,H.timeProvider,E,t);t=J.geometrySignals;u=J.shouldResetViewabilitySignals;J=Cdn(H.queue,t.timestampedExposure,t.visible,J.shouldResetExposureSignals,u);u=Uak(H.queue,H.timeProvider,u,t.measurementRequests,t.visible);W=d.pipe(vk(function(I){return I===
A.element.ref}),S8(function(){return"ur"}));
p=kVk(H.timeProvider,Z).pipe(NO("t"));W=KKr(H,uY(W,p));p=Z9h(H,t.measurementRequests,W.pipe(vk(function(I){return I!==null})));
E=W.pipe(vk(function(I){return I!==null}),S8(function(){return jwn(H.global.document)===1}));
var N=Y6l(H.document);return Object.assign({},{beaconFactory:new mC(H.beaconFactory),context:new mC(H),inferredPingId:new mC("lidar2"),timeOnScreenPingId:new mC("lidartos"),binaryContext:new mC(17),binaryVersion:new mC(q),requestSource:X,contextValidationErrors:new mC(H.validate()?null:new LG),contextVisibilityKnown:new mC(N),payloadMapper:new mC(WAY),endOfSessionReason:W,timeOnScreenReason:W,requestMeasurementOnEndOfSession:p,hasImpressionFired:Ffk,crossDomainIframeState:new mC(H.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:xc,inFetchLaterBeaconExperiment:xc,isTurtlex:xc,turtlexReportEventData:new mC(""),reportFencedFrameEvent:QT,isViewableAttributionEnabled:xc,inViewableAttributionExperiment:new mC(0),fetchBeaconFactory:QT,supportsPendingBeacon:xc,supportsFetchLater:xc,emit:new mC(Pn4),beginToRenderEvent:new mC(Symbol()),activeViewUnmeasurableEvent:new mC(Symbol()),activeViewViewableEvent:new mC(Symbol()),creativeFound:Ffk,immediateUrlPrefixes:new mC(A.immediateUrls),timeOnScreenUrlPrefixes:new mC(A.timeOnScreenUrls),
cpmavUrls:QT,viewableRelayUrls:QT,measurementDeferralState:new mC(2),urlSerializer:new mC(GDY),viewUrlSerializer:new mC(tZG),isCreativeLoaded:Y.pipe(faP(H.queue)),pageVisible:l.pipe(S8(function(I){return!I})),
eosPageVisible:E,timestampedExposureHistory:t.timestampedExposure.pipe(G5(function(I,R){I.push(R);return I},[]))},t,{viewable:R8(H,u),
maxTimeOnScreen:R8(H,J.maxTimeOnScreen),timeOnScreen:R8(H,J.timeOnScreen),maxConsecutiveViewTime:R8(H,J.maxConsecutiveViewTime),consecutiveViewTime:J.consecutiveViewTime.pipe(S8(function(I){return new Pv(H.timeProvider,I)})),
totalMeasurementTime:R8(H,J.totalMeasurementTime),totalUnviewedTime:R8(H,J.totalUnviewedTime),userAgentClientHints:Dz4(H),clientOrderPingCounter:new mC(new v6h)})},Dxh(c,g),NbY(M?IUC(O,b9l):IUC(O,KfG),E5M))};
n5n=function(c){var f=_.hv.apply(1,arguments).filter(Boolean).join("&");if(!f)return c;var d=c.match(/[?&]adurl=/);return d?c.slice(0,d.index+1)+f+"&"+c.slice(d.index+1):c+(c.indexOf("?")<0?"?":"&")+f};
o8=function(c,f){return f?"&"+c+"="+encodeURIComponent(f):""};
$D4=function(){try{var c,f;return!!((c=window)==null?0:(f=c.top)==null?0:f.location.href)&&!1}catch(d){return!0}};
_.GV=function(c){c&&typeof c.dispose=="function"&&c.dispose()};
_.cu=function(c){for(var f=0,d=arguments.length;f<d;++f){var q=arguments[f];_.WN(q)?_.cu.apply(null,q):_.GV(q)}};
S6M=function(){var c=QwN();c=c===void 0?"bevasrsg":c;return new Promise(function(f){var d=window===window.top?window:$D4()?window:window.top,q=d[c],Z;((Z=q)==null?0:Z.bevasrs)?f(new f1(q.bevasrs)):(q||(q={},q=(q.nqfbel=[],q),d[c]=q),q.nqfbel.push(function(M){f(new f1(M))}))})};
Lfe=function(c){var f={c:c.hI,e:c.x2e,mc:c.rX9,me:c.k52};c.kg&&(f.co={c:c.kg.tFg,a:c.kg.g4u,s:c.kg.wk5});return f};
zrk=function(c){var f,d,q={hI:c.c,x2e:c.e,rX9:(f=c.mc)!=null?f:!1,k52:(d=c.me)!=null?d:!1};c.co&&(q.kg={tFg:c.co.c,g4u:c.co.a,wk5:c.co.s});return q};
Jkk=function(c){return function(){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(c(),2);f=d.yieldResult;return d.return({f:function(){return f.b5z()},
c:function(q){return f.hNz(q)},
m:function(q){return f.ze(zrk(q))},
mws:function(q){return f.wOO(zrk(q))}})})}};
a5z=function(c,f){var d=QwN();d=d===void 0?"bevasrsg":d;f={s:function(M){var g;return c.snapshot(Object.assign({},M.c&&{hI:M.c},M.s&&{qRm:M.s},{mwY:(g=M.p)!=null?g:!0}))},
e:function(M){var g;return void((g=c.w8p)==null?void 0:g.call(c,M))},
c:function(M,g){return c.pWv(M,g)},
p:c.yaP,l:function(){return c.cVm()},
wpc:f?Jkk(f):void 0};var q=window===window.top?window:$D4()?window:window.top,Z=q[d];if(Z){Z.bevasrs=f;if(Z.nqfbel!==void 0)for(d=_.C(Z.nqfbel),q=d.next();!q.done;q=d.next())q=q.value,q(f);Z.nqfbel=void 0}else Z={},Z=(Z.bevasrs=f,Z.nqfbel=void 0,Z),q[d]=Z};
XCh=function(c){var f=f===void 0?50:f;var d=[];_.db(c,VZP,6,_.jQ()).forEach(function(q){_.qx(q,2)<=f&&d.push(_.qx(q,1))});
return d};
urn=function(c){var f=f===void 0?50:f;var d=[];_.db(c,VZP,6,_.jQ()).forEach(function(q){_.qx(q,2)>f&&d.push(_.qx(q,1))});
return d};
v5N=function(c){c.then(function(){},function(){})};
ZU=function(c){return{fieldType:1,fieldName:c}};
Mx=function(c){return{fieldType:2,fieldName:c}};
_.rb=function(c){return{fieldType:3,fieldName:c}};
hrl=function(){function c(){Z[0]=1732584193;Z[1]=4023233417;Z[2]=2562383102;Z[3]=271733878;Z[4]=3285377520;H=m=0}
function f(A){for(var Y=g,t=0;t<64;t+=4)Y[t/4]=A[t]<<24|A[t+1]<<16|A[t+2]<<8|A[t+3];for(t=16;t<80;t++)A=Y[t-3]^Y[t-8]^Y[t-14]^Y[t-16],Y[t]=(A<<1|A>>>31)&4294967295;A=Z[0];var E=Z[1],J=Z[2],X=Z[3],u=Z[4];for(t=0;t<80;t++){if(t<40)if(t<20){var W=X^E&(J^X);var p=1518500249}else W=E^J^X,p=1859775393;else t<60?(W=E&J|X&(E|J),p=2400959708):(W=E^J^X,p=3395469782);W=((A<<5|A>>>27)&4294967295)+W+u+p+Y[t]&4294967295;u=X;X=J;J=(E<<30|E>>>2)&4294967295;E=A;A=W}Z[0]=Z[0]+A&4294967295;Z[1]=Z[1]+E&4294967295;Z[2]=
Z[2]+J&4294967295;Z[3]=Z[3]+X&4294967295;Z[4]=Z[4]+u&4294967295}
function d(A,Y){if(typeof A==="string"){A=unescape(encodeURIComponent(A));for(var t=[],E=0,J=A.length;E<J;++E)t.push(A.charCodeAt(E));A=t}Y||(Y=A.length);t=0;if(m==0)for(;t+64<Y;)f(A.slice(t,t+64)),t+=64,H+=64;for(;t<Y;)if(M[m++]=A[t++],H++,m==64)for(m=0,f(M);t+64<Y;)f(A.slice(t,t+64)),t+=64,H+=64}
function q(){var A=[],Y=H*8;m<56?d(O,56-m):d(O,64-(m-56));for(var t=63;t>=56;t--)M[t]=Y&255,Y>>>=8;f(M);for(t=Y=0;t<5;t++)for(var E=24;E>=0;E-=8)A[Y++]=Z[t]>>E&255;return A}
for(var Z=[],M=[],g=[],O=[128],l=1;l<64;++l)O[l]=0;var m,H;c();return{reset:c,update:d,digest:q,digestString:function(){for(var A=q(),Y="",t=0;t<A.length;t++)Y+="0123456789ABCDEF".charAt(Math.floor(A[t]/16))+"0123456789ABCDEF".charAt(A[t]%16);return Y}}};
Nih=function(c,f){f=f===void 0?wCP:f;if(!ykz){var d;c=(d=c.navigator)==null?void 0:d.userAgentData;if(!c||typeof c.getHighEntropyValues!=="function"||c.brands&&typeof c.brands.map!=="function")return Promise.reject(Error("ua"));Wfh((c.brands||[]).map(function(Z){var M=new DDN;M=_.b5(M,1,Z.brand);return _.b5(M,2,Z.version)}));
typeof c.mobile==="boolean"&&_.C1(er4,2,c.mobile);ykz=c.getHighEntropyValues(f)}var q=new Set(f);return ykz.then(function(Z){var M=er4.clone();q.has("platform")&&_.b5(M,3,Z.platform);q.has("platformVersion")&&_.b5(M,4,Z.platformVersion);q.has("architecture")&&_.b5(M,5,Z.architecture);q.has("model")&&_.b5(M,6,Z.model);q.has("uaFullVersion")&&_.b5(M,7,Z.uaFullVersion);return M.serialize()}).catch(function(){return er4.serialize()})};
gb=function(c,f,d,q){this.initialValue_=c;this.maxValue_=f;this.currBaseValue_=this.currValue_=c;this.randomFactor_=d||0;this.backoffFactor_=q||2};
k6=function(c){this.src=c;this.listeners={};this.typeCount_=0};
UDl=function(){for(var c;c=I5l.remove();){try{c.fn.call(c.scope)}catch(f){jM(f)}PdN.put(c)}RrP=!1};
_.pCY=function(c){switch(c){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}};
xDN=function(c){switch(c){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""}};
_.o5C=function(){};
r4l=function(c,f,d,q,Z){c=G4h(c4M(fM4(new _.OS(1828,"0"),c),new dlN));f.length&&joP(c,qzk(new ZDG,f));q!==void 0&&(c.destinationUrl=q);Z&&c.disableWithCredentials();var M=new MAG(1828,"","",!1,"",c.build());_.ln(M,c);var g=new sS({flush:function(O){try{M.flush(O)}catch(l){d(l)}}});
g.addOnDisposeCallback(function(){setTimeout(function(){try{g.snapshotAndFlush()}finally{M.dispose()}})});
g.invocationLimit=1E5;g.flushInterval=3E4;g.JSC$9730_flushTimer.setInterval(3E4);return g};
Bu=function(){var c,f,d;return(d=(c=globalThis.performance)==null?void 0:(f=c.now)==null?void 0:f.call(c))!=null?d:Date.now()};
ODe=function(c,f){if(c.disable)return new CFN;var d=f?XCh(f):[],q=c.qJ,Z=c.kvT,M=c.mQ4,g=c.destinationUrl,O=c.m5P;c=c.mVQ;f=f==null?void 0:_.TD(f,gKr,11);var l=l===void 0?50:l;f=(f==null?void 0:_.qx(f,1))||0;q={qJ:q,lVe:Z,yUC:M,destinationUrl:g,m5P:O,mVQ:c,disableClearcutCredentialBinding:f>0&&l>=f};d=d===void 0?[]:d;return new kfC(q,d)};
lMM=function(c){if(!c)return null;c=_.Hu(c,2);return c===null||c===void 0?null:DJ(c)};
_.soY=function(c){if(!c)return null;c=_.Hu(c,4);return c===null||c===void 0?null:_.bX(c)};
Txr=function(c,f){return f?BxM(f):c?iDh(c):Promise.resolve()};
BxM=function(c){return new Promise(function(f,d){var q=_.A5("SCRIPT"),Z=_.soY(c);_.oh(q,Z);q.onload=function(){_.Y6(q);f()};
q.onerror=function(){_.Y6(q);d(Error("Fa"))};
(FE("HEAD")[0]||document.documentElement).appendChild(q)})};
iDh=function(c){return new Promise(function(f){var d=_.A5("SCRIPT");if(c){var q=_.Hu(c,6);q=q===null||q===void 0?null:_.pq(q)}else q=null;_.xh(d,q);(FE("HEAD")[0]||document.documentElement).appendChild(d);_.Y6(d);f()})};
t5=function(c,f,d){var q,Z=new Promise(function(M){q=setTimeout(M,f)});
return Promise.race([c.finally(function(){return void clearTimeout(q)}),
Z.then(d)])};
VAh=function(c,f){try{return globalThis.sessionStorage.setItem(c,f),!0}catch(d){return!1}};
Xql=function(c,f,d,q){f=f===void 0?0:f;d=d===void 0?c.length:d;var Z=0;for(q&&(Z=Xql(q));f<d;f++)q=typeof c==="string"?c.charCodeAt(f):c[f],Z=uJz(31,Z)+q|0;return Z};
vKY=function(c,f){return[Xql(c,0,c.length>>1,f),Xql(c,c.length>>1)]};
hvz=function(c){var f=_.C(vKY(c,bn));c=f.next().value;f=f.next().value;return c.toString(16)+f.toString(16)};
wqe=function(c,f){var d=vKY(f);c=new Uint32Array(c.buffer);f=c[0];var q=_.C(d);d=q.next().value;q=q.next().value;for(var Z=1;Z<c.length;Z+=2){for(var M=f,g=Z,O=d,l=q,m=0;m<22;m++)g=g>>>8|g<<24,g+=M|0,g^=O+38293,M=M<<3|M>>>29,M^=g,l=l>>>8|l<<24,l+=O|0,l^=m+38293,O=O<<3|O>>>29,O^=l;M=[M,g];c[Z]^=M[0];Z+1<c.length&&(c[Z+1]^=M[1])}};
y4l=function(c,f,d,q,Z){var M=(4-(bn.length+d.length)%4)%4,g=new Uint8Array(4+M+bn.length+4+d.length),O=new DataView(g.buffer),l=0;O.setUint32(l,Math.random()*4294967295);l=l+4+M;g.set(bn,l);l+=bn.length;O.setUint32(l,Z);g.set(d,l+4);wqe(g,q);return c.insert(f,function(m){return void globalThis.sessionStorage.removeItem(m)})?VAh(f,_.$S(g))?"s":"t":"i"};
WuN=function(c,f){var d=globalThis.sessionStorage.getItem(c);if(!d)return["m"];try{var q=_.pr(d);wqe(q,f)}catch(Z){return globalThis.sessionStorage.removeItem(c),["c"]}for(f=4;f<7&&q[f]===0;)f++;for(d=0;d<bn.length;d++)if(q[f++]!==bn[d])return globalThis.sessionStorage.removeItem(c),["d"];d=(new DataView(q.buffer)).getUint32(f);return Math.floor(Date.now()/1E3)>=d?(globalThis.sessionStorage.removeItem(c),["e"]):["a",new Uint8Array(q.buffer,f+4)]};
DlM=function(c){return globalThis.TextEncoder?(new TextEncoder).encode(c):_.K1(c)};
evr=function(c){var f=c,d;return function(){if(f){var q=f;f=void 0;d=q.apply(this,arguments)}return d}};
IMl=function(c){return VF(function(f){if(f instanceof c)return!0;var d,q,Z=f==null?void 0:(d=f.ownerDocument)==null?void 0:(q=d.defaultView)==null?void 0:q[c.name];return Nxe(Z)&&f instanceof Z})};
_.$6=function(c,f,d){_.ES.call(this);this.JSC$9945_listener_=c;this.JSC$9945_interval_=f||0;this.handler_=d;this.callback_=(0,_.n1)(this.JSC$9947_doAction_,this)};
_.Q2=function(c){c=PFk(c);return _.bX(c)};
PFk=function(c){return c===null?"null":c===void 0?"undefined":c};
Ulk=function(c){if(c&&c.focus)if(c!==document.activeElement)c.focus();else return RvN(function(){return _.k(function(f){document.activeElement&&document.activeElement.blur();return f.return(RvN(function(){c.focus()}))})})};
_.pqr=function(c){var f=f===void 0?5:f;setTimeout(function(){var d;return _.k(function(q){q.nextAddress==1&&(d=document.activeElement);if(q.nextAddress!=5)return(document.activeElement===d||document.activeElement===document.body)&&f>=0&&c?q.yield(Ulk(c),5):q.jumpTo(0);if(document.activeElement===c)return q.return();c=c.parentElement;--f;return q.jumpTo(2)})},15)};
RvN=function(c){return new Promise(function(f){requestAnimationFrame(function(){f(c())})})};
oKN=function(c){if(_.SQ)c(_.SQ);else{var f;((f=xlG)!=null?f:xlG=[]).push(c)}};
zD=function(){!_.SQ&&_.L1&&_.GfM(_.L1());return _.SQ};
_.GfM=function(c){_.SQ=c;var f;(f=xlG)==null||f.forEach(oKN);xlG=void 0};
_.J5=function(c){_.SQ&&_.SQ.beforeLoadModuleCode(c)};
_.aO=function(){_.SQ&&_.SQ.JSC$10932_setLoaded()};
V2=function(c){return QKe(c)?Number(c):String(c)};
cwN=function(c){this.action=c;this.wfv=!1};
feY=function(c,f){cwN.call(this,"set-drive-options");this.appId=c;this.appOrigin=f};
dRn=function(c){cwN.call(this,"visibility");this.visible=c};
j7n=function(c,f,d){XE.call(this,c,f,d)};
qNN=function(c){un.call(this,c)};
Zur=function(c){c=c&&c.getWindow()||window;return c.gadgets&&c.gadgets.rpc};
rwk=function(c,f){var d=f&&f.getWindow()||window;if(Zur(f))c();else if(M6M)M6M.push(c);else var q=M6M=[c],Z=d.setInterval(function(){if(Zur(f)){d.clearInterval(Z);for(var M=0;M<q.length;M++)q[M]();M6M=null}},100)};
gOk=function(c,f){var d=new vu(c);_.ln(f,d);var q={passive:!1};f.listen(d,"mousewheel",function(Z){return void CxG(c,Z)},q).listen(c,"scroll",function(Z){return void CxG(c,Z)},q)};
CxG=function(c,f){var d;a:{for(d=f.target;d;){if(d.nodeType==1){var q=_.h5(d,"overflowY");if(q=="auto"||q=="scroll")break a}d=d.parentNode}d=null}if(!d||!_.wb(c,d)||d.scrollHeight==d.clientHeight||f.deltaY>0&&Math.abs(d.scrollTop-(d.scrollHeight-d.clientHeight))<=1||f.deltaY<0&&d.scrollTop==0)f.preventDefault(),f.stopPropagation()};
Pu=function(c,f,d,q,Z,M,g,O,l){O=O===void 0?!1:O;l=l===void 0?!1:l;XE.call(this,void 0,void 0,void 0);XE.call(this,M?M+" picker modal-dialog":"picker modal-dialog",!0,d);_.y2(c,"protocol");this.iframeManager_=new krN;this.targetId_=Wu();this.rpcToken_=Wu();c=_.DU(c);_.eQ(c,"hostId");d=_.eQ(c,"parent");this.useGapi_=!l&&!0||(d==null?void 0:d.includes("onepick.corp.google.com"));O&&_.Nx(c,"fv2","true");this.setUrl(c.toString());this.preferredDialogWidth_=q;this.preferredDialogHeight_=Z;q!==void 0||
Z!==void 0?q=!0:(q=_.eQ(_.DU(c.toString()),"hostId"),Ouz||(Ouz=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),q=!Ouz.has(q));this.autoSizeDialog_=q;this.JSC$10135_gadgetsDomHelper_=g||this.JSC$10086_dom_;f&&(g=this.JSC$10135_gadgetsDomHelper_,f=_.eQ(_.DU(this.JSC$10137_url_),"grugl")=="true"?leh:s7z,Zur(g)||(g=g||tT(document),q=g.createElement("SCRIPT"),_.oh(q,f),q.type="text/javascript",g.JSC$9268_document_.body.appendChild(q)));
c=c.toString();f=null;g=c.indexOf("/picker?");g>-1?f=c.substring(0,g+8-1):rz(c,"/picker")&&(f=c);f&&this.setRelayUrl(f+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(c=this.buttons_,c.JSC$10120_element_=this.buttonEl_,c.render()):_.G8(this.buttonEl_,BRN),_.IO(this.buttonEl_,!!this.buttons_))};
_.HuY=function(c){var f=f===void 0?iuY:f;var d=_.Rk(c),q=function(M){M=_.C(M);M.next();M=RO(M);return f(d,M)},Z=function(M){var g=_.C(M);
M=g.next().value;g=RO(g);return c.apply(M,g)};
return function(){var M=_.hv.apply(0,arguments),g=this||_.dz,O=TRr.get(g);O||(O={},TRr.set(g,O));return mRz(O,[this].concat(_.LT(M)),Z,q)}};
US=function(c){var f={};c=c.replace(/\r/g,"").split("\n");for(var d=0;d<c.length;d++){var q=c[d],Z=q.indexOf(":");Z<0||(f[q.substring(0,Z)]=q.substring(Z+2,q.length))}return f};
p1=function(c,f,d){d=d===void 0?function(){}:d;
return c?f():d()};
_.YNN=function(c){var f;return((f=AwM.documentOverride)!=null?f:c).__wizdispatcher};
_.oO=function(c){var f=x6;x6=c;return f};
_.t6k=function(c){return c===FwM||(c==null?void 0:c.name)==="\u0275NotFound"};
_.GD=function(c,f){var d;if((d=c)==null?0:d.isDisposed)throw Error("jb`"+String(c.debugName));for(;c!==void 0;){d=c;if(d.retrieve)return d.retrieve(f,{optional:!0});c=c.parent}return FwM};
cV=function(c){return{"\u0275prov":{providedIn:"root",token:Symbol(c),factory:void 0,value:void 0}}};
_.bun=function(c){var f=x6;if(!f){switch(c===void 0?3:c){case 0:c=Error("ib");break;case 1:c=Error("kb");break;case 2:c=Error("lb");break;default:c=Error("mb")}throw c;}return f};
KwC=function(c){var f=_.oO(c);c={};return c[Symbol.dispose]=function(){_.oO(f)},c};
EOk=function(c,f){c.disposables||(c.disposables=[]);c.disposables.push(f)};
fL=function(c){var f=x6;f&&!f.isDisposed&&(EOk(f,c),c.parent=f)};
$RP=function(c){if(c.disposables){for(var f=_.C(c.disposables),d=f.next();!d.done;d=f.next())d=d.value,typeof d==="function"?d():nOG(d);c.disposables.length=0}};
nOG=function(c){if(!c.isDisposed){c.isDisposed=!0;var f;(f=c[Symbol.dispose])==null||f.call(c);delete c.parent;$RP(c)}};
uhk=function(c){var f={retrieve:function(d){switch(d.\u0275prov.token){case Q7l.\u0275prov.token:var q=c.asyncDeps;break;case _.SNe.\u0275prov.token:q=c.rootElement;break;case LwN.\u0275prov.token:q=c.modelRootElement;break;case zfP.\u0275prov.token:q=c.appContext;break;case JwN.\u0275prov.token:q=c.rendererData;break;case aek.\u0275prov.token:q=c.injectingConstructor;break;case V6z.\u0275prov.token:q=c.dispatcher}if(q)d=q;else a:{for(q=f.parent;q;){var Z=q;if(Z.retrieve){d=Z.retrieve(d);break a}q=
q.parent}q=d.\u0275prov.token;Z=XsN[q];Z!==void 0?d=Z:(Z=d.\u0275prov.providedIn,d.\u0275prov.factory?(d=d.\u0275prov.factory(),q&&Z==="root"&&(XsN[q]=d)):d=FwM)}return d}};
fL(f);return f};
vOl=function(){var c=_.bun(1),f=_.GD(c,zfP);_.t6k(f)&&(c=_.GD(c,V6z),_.t6k(c)||c.getOptionalAppContext())};
hfk=function(c){if(typeof document!=="undefined"&&document&&document.getElementById&&(c=document.getElementById(c))){var f=c.tagName.toUpperCase();if(f=="SCRIPT"||f=="LINK")return c}return null};
ywh=function(c,f){if((c=c===void 0?"":c)&&f)throw Error("sb");var d="";var q=_.dz._F_jsUrl;(c=f||hfk(c))&&(d=c.src?c.src:c.getAttribute("href"));if(q&&d){if(q!=d)throw Error("tb`"+q+"`"+d);d=q}else d=q||d;if(!wsP(d))throw Error("ub");return d};
NR4=function(){if(!Ww4){Ww4=!0;try{var c=ywh(_.dz._F_jsUrl?"":"base-js")}catch(q){return}var f=DRN(efP(c)),d=Object.keys(f);d.length!==0&&oKN(function(q){for(var Z=_.C(d),M=Z.next();!M.done;M=Z.next()){M=M.value;for(var g=_.C(Object.keys(f[M])),O=g.next();!O.done;O=g.next())q.addExtraEdge(M,O.value)}})}};
Pxh=function(){var c=Object.assign({},IeC);Object.getOwnPropertyNames(IeC).forEach(function(f){d$[f]!==void 0&&(c[f]=d$[f])});
return c};
Rfk=function(c,f){if(d$.enablePerformanceTiming){var d,q;(q=(d=performance).mark)==null||q.call(d,c+"Start__"+f)}};
URN=function(c,f){if(d$.enablePerformanceTiming){var d,q;(q=(d=performance).measure)==null||q.call(d,c+"__"+f,c+"Start__"+f)}};
psz=function(c,f,d){var q;return c&&f?c+"__"+f:(q=c!=null?c:f)!=null?q:d};
oOe=function(c,f){var d=Object.create(xRh);d.debugName=f;!x6||fL(d);f=_.oO(d);try{c(d)}finally{_.oO(f)}return function(){return void nOG(d)}};
cNY=function(c){return jh(c)&&Gr4 in c};
fZY=function(c,f){return Object.is(c,f)};
Za=function(c){var f=qa;qa=c;return f};
jbl=function(c){if(Ma)throw Error("Z");if(qa!==null){var f=qa.producersTail;if(f===void 0||f.producer!==c){var d=void 0,q=qa.recomputing;if(q&&(d=f!==void 0?f.nextProducer:qa.producers,d!==void 0&&d.producer===c)){qa.producersTail=d;d.lastReadVersion=c.version;return}var Z=c.consumersTail,M;if(!(M=Z===void 0||Z.consumer!==qa)){if(q){a:{M=qa;q=M.producersTail;if(q!==void 0){M=M.producers;do{if(M===Z){q=!0;break a}if(M===q)break;M=M.nextProducer}while(M!==void 0)}q=!1}q=!q}M=q}M&&(q=r$(qa),d={producer:c,
consumer:qa,nextProducer:d,prevConsumer:Z,lastReadVersion:c.version,nextConsumer:void 0},qa.producersTail=d,f!==void 0?f.nextProducer=d:qa.producers=d,q&&due(c,d))}}};
M_C=function(c){if(!r$(c)||c.dirty)if(c.dirty||c.lastCleanEpoch!==qmn)(c.producerMustRecompute(c)||ZWh(c))&&c.producerRecomputeValue(c),c.dirty=!1,c.lastCleanEpoch=qmn};
rNe=function(c){if(c.consumers!==void 0){var f=Ma;Ma=!0;try{for(var d=c.consumers;d!==void 0;d=d.nextConsumer){var q=d.consumer;q.dirty||(c=void 0,q.dirty=!0,rNe(q),(c=q.consumerMarkedDirty)==null||c.call(q,q))}}finally{Ma=f}}};
C6M=function(){var c;return((c=qa)==null?void 0:c.consumerAllowSignalWrites)!==!1};
gzG=function(c){c&&(c.producersTail=void 0,c.recomputing=!0);return Za(c)};
OWr=function(c,f){Za(f);if(c){c.recomputing=!1;f=c.producersTail;var d=f!==void 0?f.nextProducer:c.producers;if(d!==void 0){if(r$(c)){do d=kPz(d);while(d!==void 0)}f!==void 0?f.nextProducer=void 0:c.producers=void 0}}};
ZWh=function(c){for(c=c.producers;c!==void 0;c=c.nextProducer){var f=c.producer,d=c.lastReadVersion;if(d!==f.version)return!0;M_C(f);if(d!==f.version)return!0}return!1};
due=function(c,f){var d=c.consumersTail,q=r$(c);d!==void 0?(f.nextConsumer=d.nextConsumer,d.nextConsumer=f):(f.nextConsumer=void 0,c.consumers=f);f.prevConsumer=d;c.consumersTail=f;if(!q)for(c=c.producers;c!==void 0;c=c.nextProducer)due(c.producer,c)};
kPz=function(c){var f=c.producer,d=c.nextProducer,q=c.nextConsumer,Z=c.prevConsumer;c.nextConsumer=void 0;c.prevConsumer=void 0;q!==void 0?q.prevConsumer=Z:f.consumersTail=Z;if(Z!==void 0)Z.nextConsumer=q;else if(f.consumers=q,!r$(f))for(c=f.producers;c!==void 0;)c=kPz(c);return d};
r$=function(c){return c.consumerIsAlwaysLive||c.consumers!==void 0};
sbz=function(c){var f=Object.create(lZP);f.computation=c;c=function(){M_C(f);jbl(f);if(f.value===CL)throw f.error;return f.value};
c[g$]=f;return c};
muk=function(c,f){var d=Object.create(BKk);d.value=c;f!==void 0&&(d.equal=f);c=function(){jbl(d);return d.value};
c[g$]=d;return[c,function(q){return iWh(d,q)},
function(q){C6M()||TKC(d);iWh(d,q(d.value))}]};
iWh=function(c,f){C6M()||TKC(c);if(!c.equal(c.value,f)){c.value=f;c.version++;qmn++;rNe(c);var d;(d=HWr)==null||d(c)}};
kk=function(c){var f=Za(null);try{return c()}finally{Za(f)}};
_.OT=function(c,f,d){d=d===void 0?"":d;c=muk(c,f==null?void 0:f.equals);var q=c[0],Z=q[g$];Z.debugName=psz(f==null?void 0:f.debugName,d,"[signal]");if(!d$.enablePerformanceTiming)return c;var M=c[1],g=c[2];return[q,function(O){ANk(function(){return void M(O)},Z)},
function(O){ANk(function(){return void g(O)},Z)}]};
ANk=function(c,f){Rfk("signalSet",f.debugName);try{c()}finally{URN("signalSet",f.debugName)}};
Fjn=function(c,f){var d=_.C(_.OT(c,void 0,"cPpJzc"));c=d.next().value;d=d.next().value;c[Ymk]=d;c[lm]=f;return c};
t_k=function(c){return!!c&&typeof c==="object"&&Object.getPrototypeOf(c)===Object.prototype};
bWN=function(c){return typeof c==="function"&&Ymk in c&&typeof c[Ymk]==="function"};
KjN=function(c,f){Object.defineProperty(c,lm,{get:function(){return f}})};
BV=function(c,f){if(sT(c)){var d=c.map(function(M){return BV(M,f)});
KjN(d,f);return d}if(t_k(c)){d={};c=_.C(Object.entries(c));for(var q=c.next();!q.done;q=c.next()){var Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;d[q]=BV(Z,f)}KjN(d,f);return d}return Fjn(c,f)};
EzP=function(c){if(sT(c))return c.map(function(Z){return EzP(Z)});
if(t_k(c)){var f={};c=_.C(Object.entries(c));for(var d=c.next();!d.done;d=c.next()){var q=_.C(d.value);d=q.next().value;q=q.next().value;f[d]=EzP(q)}return f}return bWN(c)?c():c};
$uk=function(){var c={height:0,width:0};if(!t_k(c))throw Error("Gb");var f=Symbol("Hb");return[BV(c,f),function(d,q){if(d[lm]===f)if(typeof q==="function"){var Z=[].concat(_.LT(EzP(d)));q=q(Z)||Z;nzY(d,[].concat(_.LT(q)))}else nzY(d,q);else throw Error("Ib");}]};
nzY=function(c,f){if(bWN(c))c[Ymk](f);else if(sT(c)&&sT(f))f=BV(f,c[lm]),c.length=0,c.push.apply(c,_.LT(f));else if((t_k(c)||sT(c))&&(sT(f)||typeof f==="object"&&f!==null)){f=_.C(Object.entries(f));for(var d=f.next();!d.done;d=f.next()){var q=_.C(d.value);d=q.next().value;q=q.next().value;var Z=c,M=Z[d];Object.hasOwn(c,d)?nzY(M,q):Z[d]=BV(q,c[lm])}}else throw Error("Jb");};
QbC=function(c){return Object.create(Object.assign({},im,c))};
LjM=function(){var c;return(c=SmG)!=null?c:SmG=QbC({consumerAllowSignalWrites:!0})};
_.TZ=function(c,f,d){d=d===void 0?"":d;c=sbz(c);var q=c[g$];q.debugName=psz(f==null?void 0:f.debugName,d,"[computed]");(f==null?void 0:f.equals)!=null&&(q.equal=f.equals);return c};
mK=function(c){var f=Za(z2G);try{c()}finally{Za(f)}};
vze=function(c){if(!c.isDisposed)switch(c.effectType){case HV:JNe.schedule(c);break;case aZe:V_l.schedule(c);break;case XwM:uXY.schedule(c);break;default:_.WH(c.effectType)}};
wwh=function(c){h2h.push(c);return function(){var f=h2h.indexOf(c);f!==-1&&h2h.splice(f,1)}};
WjN=function(){if(Ao>0)d$.flushRenderEffectsDuringRender&&JNe.flush();else for(var c=_.C(yNM),f=c.next();!f.done;f=c.next())f.value.flush()};
e2e=function(c){Yk=!0;try{for(var f=_.C(c),d=f.next();!d.done;d=f.next()){for(var q=d.value,Z=[q],M=q;M.parent!==void 0;)M=M.parent,Duk(M)&&c.has(M)&&Z.push(M);for(;Z.length>0;){var g=Z.pop();c.delete(g);g.run()}}}finally{Yk=!1}};
FC=function(c){Ao--;if(c){c=_.C(yNM);for(var f=c.next();!f.done;f=c.next())f.value.clear()}else Ao>0||Yk&&!d$.flushRenderEffectsDuringRender||WjN()};
IZY=function(c,f,d){var q=NKe(c);to={name:d?q+" ("+d+")":q,isReactive:c.componentType!==bm,parent:to};c=f();to=to.parent;return c};
KL=function(){var c=to;return c?c.isReactive:!1};
nL=function(c,f,d){var q=to;f&&(to=f);try{return d==null?c():c.call(d)}catch(M){c=M;ET(c,to);if(c!==P6h){R2C=to;f=[];for(d=x6;d;){var Z=void 0;f.push((Z=d.debugName)!=null?Z:"[context]");Z=void 0;d=(Z=d.parent)!=null?Z:null}Uuk=f.reverse()}P6h=c;throw c;}finally{to=q}};
ET=function(c,f){try{var d=pwk(f);if(d&&!c.componentStack&&(c.componentStack=d,d$.enableComponentStacksInErrorMessages)){var q=c.message+"\n\nComponent stack: "+d;c.stack&&(c.stack=c.stack.replace(c.message,q));c.message=q}}catch(Z){}};
pwk=function(c){if(jh(c)&&c.name!==void 0&&c.isReactive!==void 0&&c.parent!==void 0||c===null){for(var f=0,d="";f<20&&c;)d+=c.name+" > ",c=c.parent,f++;c=d.slice(0,-3)}else if(d$.enableContextBasedComponentStacks){a:{for(c=c===void 0?x6:c;c;){if(cNY(c))break a;f=void 0;c=(f=c.parent)!=null?f:null}c=null}c=c.getComponentStack().slice(0,20).join(" > ")}else c="";return c};
NKe=function(c){return c.debugName||c.name||"[component]"};
xuN=function(c,f,d){f=Object.create(f);c&&(f.effectFn=c);d&&(f.debugName=d);fL(f);f.componentStack=to;return f};
_.$k=function(c,f){c=xuN(c,ozG,f);vze(c)};
_.Q4=function(c){var f=x6;if(f){var d=to;EOk(f,function(){var q=Za(LjM());try{nL(function(){return void c()},d)}catch(Z){throw d$.enableContextBasedComponentStacks&&ET(Z),Z;
}finally{Za(q)}})}};
Sh=function(c,f){var d={};(f===void 0||f)&&fL(d);f=_.oO(d);try{c(d)}finally{_.oO(f)}return function(){return void nOG(d)}};
_.LL=function(c){return typeof c==="function"?c():(c==null?0:c[GPG])?c.get():c};
_.zZ=function(c,f){c=xuN(c,c8h,f);vze(c)};
fBM=function(c){if(x6)throw Error("nb");Sh(c,!1)};
Jo=function(c,f){c=_.oO(c);try{return kk(f)}finally{_.oO(c)}};
au=function(c,f){var d=pwk(R2C),q,Z;var M=(Z=(q=Uuk)==null?void 0:q.slice())!=null?Z:[];f={componentStack:d,contextTrace:M,errorSeverity:3,featureFlags:Pxh(),tagName:f};return[c,f]};
qun=function(c,f,d){if(Object.hasOwnProperty.call(ddh,c)&&(c=ddh[c],Object.hasOwnProperty.call(c,f)&&(c=c[f],c instanceof Array))){for(var q=null,Z=!1,M=0,g=c.length;M<g;++M){var O=c[M],l=O.contingentAttribute;if(!l)return O.contract;q===null&&(q={});l=Object.hasOwnProperty.call(q,l)?q[l]:q[l]=d(l);if(l===O.requiredValue)return O.contract;l==null&&(Z=!0)}if(Z)return null}f=jlr[f];return typeof f==="number"?f:null};
r8r=function(c,f,d){var q=null;(c=Zhr[c])&&(q=c[f]);return typeof q!=="number"&&((c=Zhr["*"])&&(q=c[f]),typeof q!=="number")?!1:!0===MRr[q][String(d).toLowerCase()]};
gDe=function(c,f){f=qun(c.toLowerCase(),f,function(){var q;(q=d$.handleError)==null||q.call.apply(q,[d$].concat(_.LT(au(Error("Ob"),c.toLowerCase()))))});
if(f===null)return null;var d;return(d=CWP[f])!=null?d:null};
kAz=function(c,f,d){if(d===null||d===void 0)return d;f=f.toLowerCase();c=gDe(c,f);return c===null?d:c(f,d)};
Ohz=function(){};
V4=function(c,f){for(;c.length>f;)c.pop()};
lBz=function(c){c=Array(c);V4(c,0);return c};
XC=function(c,f,d){if(d==null)c.removeAttribute(f);else{var q;(q=f.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":f.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?c.setAttributeNS(q,f,d):c.setAttribute(f,d)}};
sll=function(c,f,d){c[f]=d};
ihk=function(c,f,d){c=c.style;if(typeof d==="string")c.cssText=d;else{c.cssText="";for(var q in d)if(Bun.call(d,q)){f=c;var Z=q,M=d[q];Z.indexOf("-")>=0?f.setProperty(Z,M):f[Z]=M}}};
Tu4=function(c,f,d){var q=typeof d;q==="object"||q==="function"?c[f]=d:XC(c,f,d)};
mdC=function(){var c=new Ohz;c[ho.default]=Tu4;c.style=ihk;return c};
HhC=function(c,f,d,q){(q[f]||q[ho.default])(c,f,d)};
Yuk=function(c,f,d){f=new A8M(f,d);return c.__incrementalDOMData=f};
w$=function(c,f){if(c.__incrementalDOMData)return c.__incrementalDOMData;var d=c.nodeType===1?c.localName:c.nodeName,q=c.nodeType===1?c.getAttribute("key"):null;f=Yuk(c,d,c.nodeType===1?q||f:null);if(c.nodeType===1&&(c=c.attributes,d=c.length)){q=f._attrsArr||(f._attrsArr=lBz(d*2));for(var Z=0,M=0;Z<d;Z+=1,M+=2){var g=c[Z],O=g.value;q[M]=g.name;q[M+1]=O}}return f};
F4Y=function(c,f,d,q,Z){return f==d&&q==Z};
tRY=function(c){for(var f=y4,d=WV();d!==c;){var q=d.nextSibling;f.removeChild(d);Da.deleted.push(d);d=q}};
WV=function(){return eh?eh.nextSibling:y4.firstChild};
Na=function(){eh=WV()};
EDn=function(c,f,d){Na();var q;a:{if(q=eh){do{var Z=q,M=c,g=f,O=w$(Z,g);if(bh4(Z,M,O.nameOrCtor,g,O.key))break a}while(f&&(q=q.nextSibling))}q=null}q||(c==="#text"?(d=Iu.createTextNode(""),Yuk(d,"#text",null),c=d):(q=Iu,Z=y4,typeof c==="function"?q=new c:q=(Z=c==="svg"?"http://www.w3.org/2000/svg":c==="math"?"http://www.w3.org/1998/Math/MathML":Z==null||w$(Z).nameOrCtor==="foreignObject"?null:Z.namespaceURI)?q.createElementNS(Z,c):q.createElement(c),Yuk(q,c,f),c=q,d&&c.setAttribute("nonce",d)),Da.created.push(c),
q=c);d=q;if(d!==eh){if(K4P.indexOf(d)>=0)for(c=y4,f=d.nextSibling,q=eh;q!==null&&q!==d;)Z=q.nextSibling,c.insertBefore(q,f),q=Z;else y4.insertBefore(d,eh);eh=d}};
nDn=function(c,f,d){EDn(c,f,d);y4=eh;eh=null;return y4};
$dl=function(){tRY(null);eh=y4;y4=y4.parentNode};
PV=function(){eh=y4.lastChild};
L4N=function(c,f){f=f===void 0?{}:f;var d=f.matches===void 0?F4Y:f.matches;return function(q,Z,M){var g=Da,O=Iu,l=K4P,m=Ru,H=UT,A=eh,Y=y4,t=bh4;Iu=q.ownerDocument;Da=new QlC(q);bh4=d;Ru=[];UT=[];eh=null;var E=y4=q.parentNode,J,X=Sue.call(q);if((J=X.nodeType===11||X.nodeType===9?X.activeElement:null)&&q.contains(J)){for(X=[];J!==E;)X.push(J),J=J.parentNode||(E?J.host:null);E=X}else E=[];K4P=E;try{return c(q,Z,M)}finally{q=Da,pL&&q.deleted.length>0&&pL(q.deleted),Iu=O,Da=g,bh4=t,Ru=m,UT=H,eh=A,y4=Y,
K4P=l}}};
zwG=function(c,f,d,q){xk.push(HhC);xk.push(c);xk.push(f);xk.push(d);xk.push(q)};
aBh=function(c,f,d){var q=UT;f=f._attrsArr||(f._attrsArr=lBz(q.length));for(var Z=!f.length||!1,M=0;M<q.length;M+=2){var g=q[M];if(Z)f[M]=g;else if(f[M]!==g)break;var O=q[M+1];if(Z||f[M+1]!==O)f[M+1]=O,zwG(c,g,O,d)}if(M<q.length||M<f.length){for(M=Z=M;M<f.length;M+=2)ou[f[M]]=f[M+1];for(M=Z;M<q.length;M+=2)Z=q[M],g=q[M+1],ou[Z]!==g&&zwG(c,Z,g,d),f[M]=Z,f[M+1]=g,delete ou[Z];V4(f,q.length);for(var l in ou)zwG(c,l,void 0,d),delete ou[l]}c=J8n;J8n=d=xk.length;for(l=c;l<d;l+=5)(0,xk[l])(xk[l+1],xk[l+
2],xk[l+3],xk[l+4]);J8n=c;V4(xk,c);V4(q,0)};
GZ=function(c){EDn("#text",null);var f=eh;var d=w$(f);if(d.text!==c){d=d.text=c;for(var q=1;q<arguments.length;q+=1)d=(0,arguments[q])(d);f.data!==d&&(f.data=d)}};
y8C=function(c,f,d){if(d===!1&&VRn.has(f))XC(c,f,null);else if(f!=="idomKey"&&f!=="skip"&&f!=="skipchildren"&&f!=="children"&&f!=="el")if(f.startsWith("on")){if(f[2]!==":")throw Error("Nb`"+f);if(d===void 0||d===null){var q;(q=d$.handleError)==null||q.call.apply(q,[d$].concat(_.LT(au(Error("Sb`"+f),c.tagName))));c[f]=void 0}else{var Z=f.slice(3);q=KL();if(Z==="jsaction"){d=Array.isArray(d)?d:[d];d=_.C(d);for(var M=d.next();!M.done;M=d.next()){M=M.value;if(typeof M!=="object"||M===null||typeof M.selfReg!==
"function")throw Error("Vb`"+f);M.selfReg(0,c,q?_.Q4:function(){})}}else{if(typeof d!=="object"||d===null)throw Error("Tb`"+f+"`"+typeof d);
if(typeof d.getFn!=="function")throw Error("Ub`"+f+"`"+Object.keys(d));if(d.selfReg)d.selfReg(0,c,Z,q?_.Q4:function(){});
else if(q&&c["on"+Z]===void 0){var g=d.getFn(0);c.addEventListener(Z,g);_.Q4(function(){return void c.removeEventListener(Z,g)})}else if(q||!XWn.includes(Z))c["on"+Z]=d.getFn(0)}}}else{if(f.startsWith("data-")&&typeof d==="string")try{d=ush(d)}catch(O){d="zSoyz"}typeof d!=="function"||c._disposeEffects!=null?((q=f.startsWith("prop:"))&&(f=f.slice(5)),d$.enableAttributeSanitization&&(q&&vD4(c.tagName)||(d=kAz(c.tagName,f,d))),f==="style"?("function"==typeof _.cC&&d instanceof _.cC&&(d=d.toString()),
hwC(c,f,d)):q?c[f]=d:wWn(c,f,d)):(c._signalProps||(c._signalProps=[]),c._signalValues||(c._signalValues=[]),c._signalProps.push(f))}};
W4M=function(c,f,d){d=(d===void 0?{}:d).isReactive;if(f==null?0:f.el){var q=f.el;if(typeof q==="function")q(c);else{var Z;(Z=q.onRender)==null||Z.call(q,c);c._disposeRef||(c._disposeRef=function(){var M;(M=q.onUnmount)==null||M.call(q);delete c._disposeRef},d&&_.Q4(function(){var M;
(M=c._disposeRef)==null||M.call(c)}))}}};
vD4=function(c){return c.length>0&&c.includes("-")&&!Ddh.includes(c.toLowerCase())};
ewr=function(c){return jh(c)&&f9 in c};
Nuk=function(c){return ewr(c)?c[f9].flattened:c};
IBN=function(c,f){var d=_.hv.apply(2,arguments),q;f=(q=f)!=null?q:{};q={};return q.type=c,q.props=f,q.children=d,q[di]=!0,q};
_.qD=function(c){return c.children};
Z5=function(c){var f=PW4!==IBN;PW4=c?RwN:IBN;return f};
_.MD=function(c){return _.Ik(c)?"nodeType"in c:!1};
ri=function(){return document.createTextNode("")};
gi=function(c){c=document.createTextNode(String(c));c._isSignalTextNode=!0;return c};
pWG=function(c){return c!=null&&c.contentKind===k5||c instanceof WU||Udk(c)};
xdk=function(c){var f=document.createElement("div");if(Udk(c)&&lMM(c))_.G8(f,lMM(c));else if(c instanceof WU)_.G8(f,c);else if(c!=null&&c.contentKind===k5){if(c.contentKind!==k5)throw Error("Rb");c=DJ(c.toString());_.G8(f,c)}c=_.C(f.childNodes);for(var d=c.next();!d.done;d=c.next())d.value._isSafeOrSanitizedHtmlNode=!0;return f};
O6=function(c){c=typeof c;return c==="string"||c==="number"||c==="boolean"};
oDY=function(c){return c instanceof tv||SP(c)||c instanceof j8||"function"==typeof _.cC&&c instanceof _.cC};
GAh=function(c,f){var d=c.parentElement;if(!d)return f;d.replaceChild(f,c);return f};
ciM=function(c,f){var d=c[0].parentElement;if(d)if(c[0].previousSibling||c[c.length-1].nextSibling){d.insertBefore(f,c[0]);for(var q=c.length-1;q>=0;q--)d.removeChild(c[q])}else d.textContent="",d.appendChild(f);return f};
fzk=function(c,f){if(c[0].parentElement)for(var d=c[0].parentElement,q=f.length,Z=c.length,M=q,g=0,O=0,l=c[Z-1].nextSibling,m=null;g<Z||O<M;)if(c[g]===f[O])g++,O++;else{for(;c[Z-1]===f[M-1];)Z--,M--;if(Z===g)for(var H=M<q?O?f[O-1].nextSibling:f[M-O]:l;O<M;){var A=f[O++];d.insertBefore(A,H)}else if(M===O)for(;g<Z;)H=c[g],m&&m.has(H)||d.removeChild(H),g++;else if(c[g]===f[M-1]&&f[O]===c[Z-1])H=c[--Z].nextSibling,d.insertBefore(f[O++],c[g++].nextSibling),d.insertBefore(f[--M],H),c[Z]=f[M];else{if(!m)for(m=
new Map,H=O;H<M;)m.set(f[H],H++);H=m.get(c[g]);if(H==null)d.removeChild(c[g]),g++;else if(O<H&&H<M){A=g;for(var Y=1,t=void 0;++A<Z&&A<M&&(t=m.get(c[A]))!=null&&t===H+Y;)Y++;if(Y>H-O)for(A=c[g];O<H;)d.insertBefore(f[O++],A);else d.replaceChild(f[O++],c[g++])}else g++}}return f};
jSN=function(c){if(Array.isArray(c)){if(c.length>1)throw Error("dc`"+c.length+"`"+c.map(dTe).join(", "));c=c[0]}if(c==null)return null;if(!(c instanceof _.UW)){var f,d;if((f=window)==null?0:(d=f.trustedTypes)==null?0:d.isScript(c))throw Error("cc");if(String(c).trim().length===0)return null;throw Error("ec`"+dTe(c));}return c};
qcM=function(c,f){f=jSN(f);f!==null&&_.xh(c,f)};
ZeC=function(c){if(Array.isArray(c)){if(c.length>1)throw Error("fc`"+c.length+"`"+c.map(dTe).join(", "));c=c[0]}if(c==null)return null;if(!(c instanceof j8)){if(String(c).trim().length===0)return null;throw Error("gc`"+dTe(c));}return c};
Msk=function(c,f){f=ZeC(f);f!==null&&(c.textContent=k5N(f))};
dTe=function(c){return"("+typeof c+") "+(c!=null&&typeof c==="object"?c.constructor.name:typeof c)+" "+c};
riY=function(){};
BC=function(c,f){f=f===void 0?{}:f;var d=CVN();d$.legacyTriggerSoyRendererEvents&&vOl();_.zZ(function(){ld.setUp();f.isControlFlowComponent&&Ao++;var q=d[0],Z=d[f9].flattened,M=Z5(!0);try{var g=c(),O=gnN(q,g,d);Array.isArray(O)||(d[f9].flattened=[O]);var l=d[f9].flattened;if(Z&&(!Array.isArray(Z)||Z.length!==0)){var m=Array.isArray(Z)?Z[0]:Z,H=m[s6],A=m._disposeEffects;m._disposeEffects=void 0;m=Array.isArray(l)?l[0]:l;m[s6]=H;m[s6]&&(m[s6].numNodes=m===l?1:l.length);m._disposeEffects=A}d[0]=O;f.isControlFlowComponent&&
FC(!1)}catch(Y){throw f.isControlFlowComponent&&FC(!0),Y;}finally{Z5(M),ld.tearDown()}},f.debugName);
return d};
gnN=function(c,f,d){for(;typeof f==="function";)f=f();if(f!=null&&f[di]){var q,Z,M;(M=d$.handleError)==null||M.call.apply(M,[d$].concat(_.LT(au(Error("hc`"+((q=f.type)==null?void 0:q.TAG_NAME)),(Z=f.type)==null?void 0:Z.TAG_NAME))))}if(c==null)return f==null?ri():O6(f)?gi(f):oDY(f)?gi(f.toString()):_.MD(f)?f:f.length===0?ri():kck(f,d);if(_.MD(c)){if(f==null)return GAh(c,ri());if(O6(f))return OeN(c,f);if(oDY(f))return OeN(c,f.toString());if(_.MD(f))return GAh(c,f);if(f.length===0)return GAh(c,ri());
f=kck(f,d);fzk([c],d[f9].flattened);return f}c=id(c);if(f==null)return ciM(c,ri());if(O6(f))return ciM(c,gi(f));if(oDY(f))return ciM(c,gi(f.toString()));if(_.MD(f))return fzk(c,[f])[0];if(f.length===0)return ciM(c,ri());f=kck(f,d);fzk(c,d[f9].flattened);return f};
OeN=function(c,f){c.nodeType===Node.TEXT_NODE?c.textContent!==String(f)&&(c.textContent=String(f)):c=GAh(c,gi(f));return c};
id=function(c,f,d){return lzY(c,f!=null?f:[],d===void 0?!1:d)};
kck=function(c,f){var d=id(c,void 0,!0);if(d.length===0)return ri();f[f9].flattened=d;return c};
lzY=function(c,f,d,q,Z){f=f===void 0?[]:f;d=d===void 0?!1:d;Z=Z===void 0?-1:Z;if(c==null)return f;if(c instanceof T4){var M=c.render();return lzY(M,f,d,q,Z)}if(_.MD(f)&&f.nodeType===Node.ELEMENT_NODE)switch(f.tagName){case "SCRIPT":qcM(f,c);return;case "STYLE":Msk(f,c);return}O6(c)&&(c=gi(c),q&&d&&(q[Z]=c));if(pWG(c)){d=xdk(c);d=Array.from(d.childNodes);d=_.C(d);for(M=d.next();!M.done;M=d.next())sSC(f,M.value);return f}oDY(c)&&(c=gi(c.toString()),q&&d&&(q[Z]=c));if(_.MD(c))return sSC(f,c);if(Array.isArray(c)){for(M=
0;M<c.length;M++)lzY(c[M],f,d,c,M);return f}if(typeof c==="function"){M=BC(function(){var O=c();return O!=null&&!O6(O)&&pWG(O)?(O=xdk(O),Array.from(O.childNodes)):O},{debugName:"qmF2ne",
debugFn:c})[0];if(Array.isArray(M)){d=_.C(M);for(M=d.next();!M.done;M=d.next())sSC(f,M.value);return f}q&&d&&(q[Z]=M);return sSC(f,M)}if(c!=null&&c[di]){q=c;Z=Z5(!0);var g=PW4;try{M=g.apply(null,[q.type,q.props].concat(_.LT(q.children)))}finally{Z5(Z)}return lzY(M,f,d)}(g=d$.handleError)==null||g.call.apply(g,[d$].concat(_.LT(au(Error("ic")))));return f};
CVN=function(c){var f={};f=Object.assign([],(f[f9]={flattened:[]},f));if(!c)return f;f[0]=kck(c,f);return f};
sSC=function(c,f){Array.isArray(c)?c.push(f):c.appendChild(f);return c};
mf=function(c){if(!d$.enableLazyTsx)return c;if(Array.isArray(c)){for(var f=0;f<c.length;f++)c[f]=mf(c[f]);return c}return c instanceof T4?(c=c.render(),mf(c)):c};
ieN=function(c,f){var d,q,Z=NKe(c),M=function(t){q=t;t=Z5(!0);var E=Za(HC);Rfk("render",Z);try{d=mf(c(f))}finally{URN("render",Z),Za(E),Z5(t)}};
M=d$.enableContextPerComponent?oOe(M,Z):Sh(M,d$.alwaysTrackContexts||!!x6);cNY(q);if(!f.renderedFromIdom){var g=_.oO(q);try{return B2n(c,f,d),d}finally{_.oO(g)}}!ewr(d)&&Array.isArray(d)&&(d=CVN(d));var O=Nuk(d);g=Array.isArray(O)?O[0]:O;var l=!1;if(g){var m,H=(m=f==null?void 0:f.idomKey)!=null?m:c;m=O!==g;g._disposeEffects=M;var A=g[s6]||{},Y=ewr(d)?d:A.sourceDynamicRange;Object.assign(A,{key:H,numNodes:m?O.length:1,context:q,higherOrder:!!g[s6],sourceDynamicRange:Y});g[s6]=A}else l=!0;(function(){var t=
_.oO(q);try{B2n(c,f,O)}finally{_.oO(t)}})();
l&&M();return d};
T2z=function(c){var f={},d;for(d in c)f={prev$jscomp$23:void 0,next$jscomp$33:void 0},f.prev$jscomp$23=Ak[d],f.next$jscomp$33=c[d],Ak[d]=function(q){return function(){var Z=_.hv.apply(0,arguments);q.prev$jscomp$23.apply(null,_.LT(Z));q.next$jscomp$33.apply(null,_.LT(Z))}}(f)};
mTk=function(){if(KL())throw Error("jc");return Y5};
HeM=function(c,f){if(!c.__unmounted&&f){c.__unmounted=!0;try{c.didUnmount()}catch(Z){var d,q;(q=d$.handleError)==null||q.call.apply(q,[d$].concat(_.LT(au(Z,(d=c.JSC$10161___type)==null?void 0:d.TAG_NAME))))}Ak.didUnmount(c);c.el=null;f.__instance&&delete f.__instance}};
Yc4=function(c,f,d){c._signalProps!=null&&c._disposeEffects==null&&((d===void 0?0:d)?c._disposeEffects=Sh(function(){return void Aiz(c,f)},d$.alwaysTrackContexts||!!x6):Aiz(c,f))};
Aiz=function(c,f){_.zZ(function(){for(var d=c._signalProps,q=c._signalValues,Z=0;Z<d.length;Z++){var M=d[Z],g=f[M]();q[Z]!==g&&(q[Z]=g,y8C(c,M,g))}},"e3YVbb")};
FFN=function(c,f,d){var q,Z=[];c._disposeEffects=Sh(function(){_.zZ(function(){var M=d();if(M===null||M===void 0)M="";if(O6(M)||M===null)q!=null||(q=document.createTextNode("")),q.parentNode!==c&&(q._isSignalTextNode=!0,c.insertBefore(q,f)),q.textContent=String(M);else if(pWG(M)){for(var g=Z.length>0?Z[Z.length-1].nextSibling:f,O=_.C(Z),l=O.next();!l.done;l=O.next())c.removeChild(l.value);M=xdk(M);Z=Array.from(M.childNodes);M=_.C(Z);for(O=M.next();!O.done;O=M.next())c.insertBefore(O.value,g)}else throw l=
(O=(g=to)==null?void 0:g.name)!=null?O:"unknown",Error("Zb`"+l+"`"+typeof M);},"VvDgC")},d$.alwaysTrackContexts||!!x6)};
KFz=function(c,f){var d=_.hv.apply(2,arguments);f!=null||(f={});return!d$.enableLazyTsx||to!=null&&!KL()?tsG(c,f,d):new bez(c,f,d)};
tsG=function(c,f,d){if(c===_.qD)return d;if(typeof c==="function")return to&&!KL()&&(f.renderedFromIdom=!0),IZY(c,function(){var M=Enl(c,f,d);if(M)return M;d.length>0&&(f.children=d.length===1?d[0]:d);if(c.componentType===bm){var g;oOe(function(){var O=f;if(c.componentType!==bm)g=!1;else{O||(O={});var l=new Fr(O,c),m=Za(HC);try{var H=l.render(O)}finally{Za(m)}H instanceof HTMLElement?(H.__instance=l,l.el=H,l.JSC$10161___type=c,c.TAG_NAME=H.tagName.toLowerCase(),Ak.didPatch(l),g=H):g=H}},c.name);
if(g)return g}return ieN(c,f)},f.debugInstance);
var q=nn4(c,f),Z;for(Z in f)y8C(q,Z,f[Z]);Yc4(q,f);id(d,q);W4M(q,f,{isReactive:!0});$TY(q,f);return q};
nn4=function(c,f){c=(QSe.has(c.toLowerCase())?0:Scr.has(c.startsWith("svg:")?c.replace("svg:",""):c))?document.createElementNS("http://www.w3.org/2000/svg",c.startsWith("svg:")?c.replace("svg:",""):c):LFN(c,f)||document.createElement(c);c[zgl]=!0;return c};
JiN=function(c){if(c){var f;(f=c._disposeRef)==null||f.call(c);var d;(d=c._disposeEffects)==null||d.call(c);c.__instance&&c.__instance instanceof tk&&(f=c.__instance,HeM(f,c),f instanceof Fr&&f.disposeEffects());for(f=0;f<c.childNodes.length;f++)JiN(c.childNodes[f])}};
Vsk=function(c){azk.push(c)===1&&requestAnimationFrame(function(){setTimeout(function(){var f=[].concat(_.LT(azk));azk=[];f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;try{for(var q=0;q<d.length;q++)JiN(d[q])}catch(Z){q=d=void 0,(q=(d=d$).handleError)==null||q.call.apply(q,[d].concat(_.LT(au(Z))))}}})})};
_.B=function(c,f){return PW4.apply(null,[c,f].concat(_.LT(_.hv.apply(2,arguments))))};
XiP=function(c,f){f=f===void 0?new Map:f;c=_.C(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!f.has(d)){for(var q=[],Z=d.producers;Z!==void 0;Z=Z.nextProducer)q.push(Z.producer);f.set(d,q);XiP(q,f)}return f};
_.T=function(c){var f=c.cond;if(f===void 0)return c.else&&c.else();var d=_.TZ(function(){return!!f()},void 0,"JHVi8"),q=function(){var Z=f();
if(!Z){var M;(M=d$.handleError)==null||M.call.apply(M,[d$].concat(_.LT(au(u2N.nonNullableCondIsNull()))))}return Z};
return BC(function(){var Z=d(),M;Sh(function(){var g=Za(HC);try{M=mf(Z?c.then(q):c.else&&c.else())}finally{Za(g)}},!0);
return M},{debugName:c.debugInstance,
debugFn:c.then,isControlFlowComponent:!0})};
vnG=function(c){return _.T(c)};
_.bd=function(c){return c.keyBy==="INDEX"?hgh(c):wil(c)};
yir=function(c){c=_.C(c);for(var f=c.next();!f.done;f=c.next()){var d=void 0;(d=f.value)==null||d()}};
wil=function(c){var f=c.keyBy===void 0||c.keyBy==="REFERENCE",d=f?function(H){return H}:c.keyBy,q=[],Z=[],M=[],g=[],O=[],l=[],m=!0;
_.Q4(function(){yir(g)});
return BC(function(){var H=c.each(),A=H.length;if(A===0){if(q.length===0&&!m)return M;yir(g);q=H;Z=[];for(H=0;H<q.length;H++)Z.push(d(q[H]));M=[];g=[];O=[];l=[];c.fallback&&(g[0]=WFh(function(){M[0]=mf(c.fallback())}));
m=!1;return M}for(var Y=new DTl,t=q.length-1;t>=0;t--)Y.push(Z[t],t);t=Array(A);for(var E=Array(A),J=Array(A),X=Array(A),u=Array(f?0:A),W={i$jscomp$445:0};W.i$jscomp$445<A;W={i$jscomp$445:W.i$jscomp$445,item$jscomp$104:void 0,key$jscomp$550:void 0},W.i$jscomp$445++){W.item$jscomp$104=H[W.i$jscomp$445];W.key$jscomp$550=d(W.item$jscomp$104);var p=Y.pop(W.key$jscomp$550);p!=null?(J[W.i$jscomp$445]=M[p],E[W.i$jscomp$445]=Z[p],t[W.i$jscomp$445]=g[p],X[W.i$jscomp$445]=O[p],f||(u[W.i$jscomp$445]=l[p]),mK(function(N){return function(){X[N.i$jscomp$445](N.i$jscomp$445);
if(!f)u[N.i$jscomp$445](N.item$jscomp$104)}}(W)),delete g[p]):t[W.i$jscomp$445]=WFh(function(N){return function(){var I=_.C(_.OT(N.i$jscomp$445,void 0,"Fqk1zd")),R=I.next().value;
I=I.next().value;X[N.i$jscomp$445]=I;E[N.i$jscomp$445]=N.key$jscomp$550;if(f)J[N.i$jscomp$445]=mf(c.children(N.item$jscomp$104,R));else{var qN=_.C(_.OT(N.item$jscomp$104,void 0,"GBj5de"));I=qN.next().value;qN=qN.next().value;u[N.i$jscomp$445]=qN;J[N.i$jscomp$445]=mf(c.children(I,R))}}}(W))}yir(g);
q=H;Z=E;M=J;g=t;O=X;l=u;m=!1;return J},{debugName:c.debugInstance,
debugFn:c.each,isControlFlowComponent:!0})};
hgh=function(c){var f=[],d=[],q=[],Z=[],M=!1;_.Q4(function(){for(var g=_.C(Z),O=g.next();!O.done;O=g.next())O=O.value,O()});
return BC(function(){var g=c.each();M&&g.length>0&&(Z.pop()(),f.pop(),M=!1);for(var O=Array(g.length),l={i$jscomp$446:0};l.i$jscomp$446<g.length;l={i$jscomp$446:l.i$jscomp$446},l.i$jscomp$446++)if(l.i$jscomp$446<f.length)f[l.i$jscomp$446]!==g[l.i$jscomp$446]&&(mK(function(H){return function(){return void d[H.i$jscomp$446](g[H.i$jscomp$446])}}(l)),f[l.i$jscomp$446]=g[l.i$jscomp$446]),O[l.i$jscomp$446]=q[l.i$jscomp$446];
else{var m=WFh(function(H){return function(){f[H.i$jscomp$446]=g[H.i$jscomp$446];var A=_.C(_.OT(g[H.i$jscomp$446],void 0,"JMMLmd")),Y=A.next().value;A=A.next().value;d[H.i$jscomp$446]=A;O[H.i$jscomp$446]=mf(c.children(Y,H.i$jscomp$446))}}(l));
Z[l.i$jscomp$446]=m}for(;f.length>g.length;)f.pop(),Z.pop()(),d.pop();g.length===0&&!M&&c.fallback&&(l=WFh(function(){O[0]=mf(c.fallback())}),Z[0]=l,M=!0);
return q=O},{debugName:c.debugInstance,
isControlFlowComponent:!0})};
WFh=function(c){var f=x6;return Sh(function(d){var q=Za(HC);try{d.parent=f,c(d)}finally{Za(q)}},!1)};
_.K9=function(c){return c};
_.E6=function(c){return{isDefault:!0,children:c.children}};
_.n9=function(c){var f=eg4(c),d=_.TZ(function(){return N2h(f)},void 0,"F1PF4");
return BC(function(){var q=d(),Z;Sh(function(){var M=Za(HC);try{Z=mf(q())}finally{Za(M)}});
return Z},{debugName:c.debugInstance,
isControlFlowComponent:!0})};
eg4=function(c){c=c.children;return Array.isArray(c)?c:[c]};
IzY=function(c){var f=c.props;c=c.getChildren()[0];return f.when?{when:f.when,children:c}:{isDefault:!0,children:c}};
N2h=function(c){var f=function(){return null};
c=_.C(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d!=null&&d[di]&&(d=d.type===_.E6?{isDefault:!0,children:d.children[0]}:{when:d.props.when,children:d.children[0]}),d instanceof T4&&(d=IzY(d)),d.isDefault)f=d.children;else if(d.when())return d.children;return f};
RgM=function(c){var f=null,d,q={get value(){var M,g;(g=(M=Z).validateGetValue)==null||g.call(M);return Z.__value},set value(M){var g,O;(O=(g=Z).validateSetValue)==null||O.call(g,M);Z.__value=M;Z.__hasBeenSet=!0}},Z=(q.__value=null,q.__hasBeenSet=!1,q.__hasErrored=!1,q.onRender=function(M){if(d&&M!==d){d._disposeRef=void 0;var g;(g=f)==null||g()}d=M;f=c(M)||null},q.onUnmount=function(){var M;
(M=f)==null||M();f=Z.value=null},q[_.PVC]=!0,q);
return Z};
piN=function(c){var f=mTk();if(f==null)throw _.UTC.PRIMITIVE_INVALID_HOOK_CALL();var d=f.hookCounter++;f.hooks||(f.hooks=[]);var q=f.hooks;q[d]||(q[d]={key:c,host:f});if(c!==q[d].key){if(f.JSC$10161___type){var Z;c=(Z=f.JSC$10161___type)==null?void 0:Z.name}else c=f instanceof Fr?NKe(f.functionComponent):"<"+f.el.tagName.toLowerCase()+">";throw _.UTC.OUT_OF_ORDER_HOOK_CALL(c);}return q[d]};
xTz=function(c,f){return!c||c.length!==(f==null?void 0:f.length)||c.some(function(d,q){return d!==f[q]})};
onz=function(c,f){var d=piN("onChange"),q=mTk();xTz(d.deps,f)&&(d.deps=f,d.pendingEffect=c,q.__syncEffects||(q.__syncEffects=[]),q.__syncEffects.push(d))};
_.$5=function(c,f){var d=d===void 0?{}:d;d=d.appContext;var q=!!d$.legacyTriggerSoyRendererEvents;ld.setUp();try{var Z=Gck(c,f,d);q&&(f=d,f==null&&(f=_.YNN(document).getAppContext()),f.get(cQk).JSC$28837_getEventTarget().dispatchEvent(new frk(d9r,c,k5)));ld.log(c);return Z}finally{ld.tearDown()}};
Gck=function(c,f,d){var q=nL(function(){var Z=Za(HC);try{return Sh(function(){var M=_.YNN(_.X1(c)),g;var O=uhk({rootElement:{value:c},appContext:d||(M==null?void 0:(g=M.getOptionalAppContext)==null?void 0:g.call(M)),dispatcher:M});M=_.oO(O);O=Z5(!0);Ao++;try{id(f(),c),FC(!1)}catch(l){throw FC(!0),l;}finally{Z5(O),_.oO(M)}},!1)}catch(M){throw d$.enableContextBasedComponentStacks&&ET(M),M;
}finally{Za(Z)}});
c[jcP]=!0;return function(){c.textContent="";q();c[jcP]=!1}};
_.QJ=function(c){if(Duk(qa)){var f;(f=d$.handleError)==null||f.call.apply(f,[d$].concat(_.LT(au(Error("Yb")))))}var d=x6,q=to;Promise.resolve().then(function(){if(d&&!d.isDisposed){var Z=_.oO(d);try{nL(function(){return void c()},q)}catch(M){throw d$.enableContextBasedComponentStacks&&ET(M),M;
}finally{_.oO(Z)}}})};
_.SZ=function(c,f){onz(function(){return kk(c)},f)};
_.L9=function(c){KL()?_.QJ(function(){kk(c)}):onz(function(){return kk(c)},[])};
ZZz=function(c){var f=[].concat(_.LT(c));c.length=0;c=_.C(f);for(f=c.next();!f.done;f=c.next()){f=f.value;qXh(f);var d=f.pendingEffect;f.pendingEffect=null;if(d=d==null?void 0:d())f.pendingCleanup=d}};
qXh=function(c){var f=c.pendingCleanup;c.pendingCleanup=null;f==null||f()};
MON=function(c,f){if(KL())return c();var d=piN("useMemoInternal");xTz(d.deps,f)&&(d.deps=f,d.value=c());return d.value};
rQM=function(c,f){return MON(c,f)};
z4=function(c){return MON(c,[])};
Jk=function(c){return z4(function(){return{value:c}})};
_.aw=function(c,f){if(!c)return null;c=Object.keys(c);c=_.C(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var q=d.toLowerCase();if(q.indexOf(f,q.length-f.length)>-1)return d}return null};
_.Xr=function(){var c=arguments,f=_.VJ;c.length>1?f[c[0]]=c[1]:c.length===1&&Object.assign(f,c[0])};
_.hk=function(c,f){return c in _.VJ?_.VJ[c]:f};
_.wi=function(c,f){return!!_.hk(c,f)};
Cl4=function(c){var f=_.VJ.EXPERIMENT_FLAGS;return f?f[c]:void 0};
kiC=function(c){gtn.forEach(function(f){return f(c)})};
_.WC=function(c){return c&&window.yterr?function(){try{return c.apply(this,arguments)}catch(f){_.yJ(f)}}:c};
_.yJ=function(c){var f=_.D5("yt.logging.errors.log");f?f(c,"ERROR",void 0,void 0,void 0,void 0,void 0):(f=_.hk("ERRORS",[]),f.push([c,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Xr("ERRORS",f));kiC(c)};
_.eZ=function(c,f,d,q,Z){var M=_.D5("yt.logging.errors.log");M?M(c,"WARNING",f,d,q,void 0,Z):(M=_.hk("ERRORS",[]),M.push([c,"WARNING",f,d,q,void 0,Z]),_.Xr("ERRORS",M))};
lrl=function(c,f){f=c.split(f);for(var d={},q=0,Z=f.length;q<Z;q++){var M=f[q].split("=");if(M.length===1&&M[0]||M.length===2)try{var g=OZn(M[0]||""),O=OZn(M[1]||"");if(g in d){var l=d[g];Array.isArray(l)?_.D4(l,O):d[g]=[l,O]}else d[g]=O}catch(Y){var m=Y,H=M[0],A=String(lrl);m.args=[{key:H,value:M[1],query:c,method:scn===A?"unchanged":A}];BS4.hasOwnProperty(H)||_.eZ(m)}}return d};
iZe=function(c){var f=[];_.zV.forEach(c,function(d,q){var Z=_.ND(q);d=Array.isArray(d)?d:[d];_.Iw(d,function(M){M==""?f.push(Z):f.push(Z+"="+_.ND(M))})});
return f.join("&")};
_.PC=function(c){c.charAt(0)==="?"&&(c=c.substring(1));return lrl(c,"&")};
_.Rw=function(c){return c.indexOf("?")!==-1?(c=(c||"").split("#")[0],c=c.split("?",2),_.PC(c.length>1?c[1]:c[0])):{}};
_.U6=function(c,f){return TSC(c,f||{},!0)};
m9e=function(c,f){return TSC(c,f||{},!1)};
TSC=function(c,f,d){var q=c.split("#",2);c=q[0];q=q.length>1?"#"+q[1]:"";var Z=c.split("?",2);c=Z[0];Z=_.PC(Z[1]||"");for(var M in f)if(d||!_.zV.containsKey(Z,M))Z[M]=f[M];return _.p9(c,Z)+q};
cq=function(c){if(!f)var f=window.location.href;var d=_.x5(c)[1]||null,q=_.ow(c);return d&&q?G4(c,f):q?_.ow(f)===q&&(Number(_.x5(f)[4]||null)||null)===(Number(_.x5(c)[4]||null)||null):!0};
_.AQP=function(c){c=HZk(c);return c===null?!1:c[0]==="com"&&c[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
HZk=function(c){c=_.ow(c);return c!==null?c.split(".").reverse():null};
OZn=function(c){return c&&c.match(YXG)?c:fD(c)};
_.dx=function(c){return new FnN(c)};
_.ql=function(){tON||(tON=new bZC);return tON};
Etn=function(){var c=Knr;return function(){var f=_.ql();f.resolve(_.dx(c))||f.addProvider({provide:c,useClass:c});return f.resolve(c)}};
$9n=function(c){var f=_.ZM,d,q;_.k(function(Z){d=_.ql();return(q=d.resolve(_.dx(f)))?(c(q),Z.return(Promise.resolve(q))):Z.return(d.resolve(new ntl(f)).then(function(M){c(M);return M}))})};
_.F=function(c){c=Ml(c);return typeof c==="string"&&c==="false"?!1:!!c};
_.rx=function(c,f){c=Ml(c);return c===void 0&&f!==void 0?f:Number(c||0)};
QcY=function(c){c=Ml(c);return Array.isArray(c)?_.JT(c,function(f){return Number(f||0)}):[Number(c||0)]};
_.CD=function(c){c=Ml(c);return c!==void 0?String(c):""};
_.gx=function(c){c=Ml(c);return Array.isArray(c)?_.JT(c,function(f){return String(f||"")}):[String(c||"")]};
SXC=function(){return _.hk("EXPERIMENTS_TOKEN","")};
Ml=function(c){return _.hk("EXPERIMENT_FLAGS",{})[c]};
LnN=function(){for(var c=[],f=_.hk("EXPERIMENTS_FORCED_FLAGS",{}),d=_.C(Object.keys(f)),q=d.next();!q.done;q=d.next())q=q.value,c.push({key:q,value:String(f[q])});d=_.hk("EXPERIMENT_FLAGS",{});q=_.C(Object.keys(d));for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.startsWith("force_")&&f[Z]===void 0&&c.push({key:Z,value:String(d[Z])});return c};
JQ4=function(){if(!z5l)return null;var c=z5l();return"open"in c?c:null};
_.are=function(c){switch(_.kK(c)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.kK=function(c){return c&&"status"in c?c.status:-1};
_.Oz=function(c,f){typeof c==="function"&&(c=_.WC(c));return window.setTimeout(c,f)};
_.lF=function(c,f){typeof c==="function"&&(c=_.WC(c));return window.setInterval(c,f)};
_.sz=function(c){window.clearTimeout(c)};
XOY=function(c){c=_.Rw(c);for(var f=_.C(VOz),d=f.next();!d.done;d=f.next())if(c[d.value]!==void 0)return!0;return!1};
h5n=function(c,f,d,q,Z,M,g,O,l){d=d===void 0?"GET":d;q=q===void 0?"":q;O=O===void 0?!1:O;var m=JQ4();if(!m)return null;var H=function(){(m&&"readyState"in m?m.readyState:0)===4&&f&&_.WC(f)(m)};
"onloadend"in m?m.addEventListener("loadend",H,!1):m.onreadystatechange=H;_.F("debug_forward_web_query_parameters")&&(c=utl(c,window.location.search));m.open(d,c,!0);M&&(m.responseType=M);g&&(m.withCredentials=!0);d=d==="POST"&&(window.FormData===void 0||!(q instanceof FormData));if(Z=vtk(c,Z))for(var A in Z)m.setRequestHeader(A,Z[A]),"content-type"===A.toLowerCase()&&(d=!1);d&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l&&"onprogress"in m&&(m.onprogress=function(){l(m.responseText)});
if(O&&"setAttributionReporting"in XMLHttpRequest.prototype){c={eventSourceEligible:!0,triggerEligible:!1};try{m.setAttributionReporting(c)}catch(Y){_.eZ(Y)}}m.send(q);return m};
vtk=function(c,f){f=f===void 0?{}:f;var d=cq(c),q=_.hk("INNERTUBE_CLIENT_NAME"),Z=_.F("web_ajax_ignore_global_headers_if_set"),M;for(M in wON){var g=_.hk(wON[M]),O=M==="X-Goog-AuthUser"||M==="X-Goog-PageId";M!=="X-Goog-Visitor-Id"||g||(g=_.hk("VISITOR_DATA"));var l;if(!(l=!g)){if(!(l=d||(_.ow(c)?!1:!0))){l=c;var m;if(m=_.F("add_auth_headers_to_remarketing_google_dot_com_ping")&&M==="Authorization"&&(q==="TVHTML5"||q==="TVHTML5_UNPLUGGED"||q==="TVHTML5_SIMPLY"))m=HZk(l),m=m===null?!1:m[1]==="google"?
!0:m[2]==="google"?m[0]==="au"&&m[1]==="com"?!0:m[0]==="uk"&&m[1]==="co"?!0:!1:!1;m&&(l=_.Bq(l)||"",l=l.split("/"),l="/"+(l.length>1?l[1]:""),m=l==="/pagead");l=m?!0:!1}l=!l}l||Z&&f[M]!==void 0||q==="TVHTML5_UNPLUGGED"&&O||(f[M]=g)}"X-Goog-EOM-Visitor-Id"in f&&"X-Goog-Visitor-Id"in f&&delete f["X-Goog-Visitor-Id"];if(d||!_.ow(c))f["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(d||!_.ow(c)){try{var H=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}H&&(f["X-YouTube-Time-Zone"]=
H)}document.location.hostname.endsWith("youtubeeducation.com")||!d&&_.ow(c)||(f["X-YouTube-Ad-Signals"]=iZe(yQ4()));return f};
_.WnC=function(c,f){var d=_.ow(c);_.F("debug_handle_relative_url_for_query_forward_killswitch")||!d&&cq(c)&&(d=document.location.hostname);var q=_.Bq(c);q=(d=d&&(d.endsWith("youtube.com")||d.endsWith("youtube-nocookie.com")))&&q&&q.startsWith("/api/");if(!d||q)return c;var Z=_.PC(f),M={};_.Iw(VOz,function(g){Z[g]&&(M[g]=Z[g])});
return m9e(c,M)};
D9C=function(c,f){f.method="POST";f.postParams||(f.postParams={});return _.iF(c,f)};
e5k=function(c,f){var d=_.hk("XSRF_FIELD_NAME"),q;f.headers&&(q=f.headers["Content-Type"]);return!f.excludeXsrf&&(!_.ow(c)||f.withCredentials||_.ow(c)===document.location.hostname)&&f.method==="POST"&&(!q||q==="application/x-www-form-urlencoded")&&!(f.postParams&&f.postParams[d])};
_.iF=function(c,f){var d=f.format||"JSON";c=NSG(c,f);var q=IrY(c,f),Z=!1,M=PlY(c,function(l){if(!Z){Z=!0;O&&_.sz(O);var m=_.are(l),H=null,A=400<=l.status&&l.status<500,Y=500<=l.status&&l.status<600;if(m||A||Y)H=R5n(c,d,l,f.convertToSafeHtml);m&&(m=U9h(d,l,H));H=H||{};A=f.context||_.dz;m?f.onSuccess&&f.onSuccess.call(A,l,H):f.onError&&f.onError.call(A,l,H);f.onFinish&&f.onFinish.call(A,l,H)}},f.method,q,f.headers,f.responseType,f.withCredentials,!1,f.onProgress);
q=f.timeout||0;if(f.onTimeout&&q>0){var g=f.onTimeout;var O=_.Oz(function(){Z||(Z=!0,M.abort(),_.sz(O),g.call(f.context||_.dz,M))},q)}return M};
NSG=function(c,f){f.includeDomain&&(c=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+c);var d=_.hk("XSRF_FIELD_NAME");if(f=f.urlParams)f[d]&&delete f[d],c=_.U6(c,f);return c};
IrY=function(c,f){var d=_.hk("XSRF_FIELD_NAME"),q=_.hk("XSRF_TOKEN"),Z=f.postBody||"",M=f.postParams;e5k(c,f)&&(M||(M={}),M[d]=q);(_.F("ajax_parse_query_data_only_when_filled")&&M&&Object.keys(M).length>0||M)&&typeof Z==="string"&&(Z=_.PC(Z),_.zV.extend(Z,M),Z=f.postBodyFormat&&f.postBodyFormat==="JSON"?JSON.stringify(Z):_.Tf(Z));M=Z||M&&!_.zV.isEmpty(M);!pON&&M&&f.method!=="POST"&&(pON=!0,_.yJ(Error("Fc")));return Z};
R5n=function(c,f,d,q){var Z=null;switch(f){case "JSON":try{var M=d.responseText}catch(g){throw q=Error("Gc"),q.params=c,_.eZ(q),g;}c=d.getResponseHeader("Content-Type")||"";M&&c.indexOf("json")>=0&&(M.substring(0,5)===")]}'\n"&&(M=M.substring(5)),Z=JSON.parse(M));break;case "XML":if(c=(c=d.responseXML)?x9n(c):null)Z={},_.Iw(c.getElementsByTagName("*"),function(g){Z[g.tagName]=otr(g)})}q&&GiG(Z);
return Z};
GiG=function(c){if(_.Ik(c))for(var f in c)f==="html_content"||rz(f,"_html")?c[f]=DJ(c[f]):GiG(c[f])};
U9h=function(c,f,d){if(f&&f.status===204)return!0;switch(c){case "JSON":return!!d;case "XML":return Number(d&&d.return_code)===0;case "RAW":return!0;default:return!!d}};
x9n=function(c){return c?(c=("responseXML"in c?c.responseXML:c).getElementsByTagName("root"))&&c.length>0?c[0]:null:null};
otr=function(c){var f="";_.Iw(c.childNodes,function(d){f+=d.nodeValue});
return f};
cEz=function(c){if(c.name==="JavaException")return!0;c=c.stack;return c.includes("chrome://")||c.includes("-extension://")||c.includes("webkit-masked-url://")};
f8k=function(c){if(!c.stack)return!0;var f=!c.stack.includes("\n");return f&&c.stack.includes("ErrorType: ")||f&&c.stack.includes("Anonymous function (Unknown script")||c.stack.toLowerCase()==="not available"||c.fileName==="user-script"||c.fileName.startsWith("user-script:")?!0:!1};
_.mu=function(c){_.ES.call(this);this.JSC$10424_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!c};
jnz=function(c,f){var d=c.length,q=0,Z=function(){return c.charCodeAt(q++)};
do{var M=d$h(Z);if(M===Infinity)break;var g=M>>3;switch(M&7){case 0:M=d$h(Z);if(g===f)return M;break;case 1:if(g===f)return;q+=8;break;case 2:M=d$h(Z);if(g===f)return c.substr(q,M);q+=M;break;case 5:if(g===f)return;q+=4;break;default:return}}while(q<d)};
d$h=function(c){var f=c(),d=f&127;if(f<128)return d;f=c();d|=(f&127)<<7;if(f<128)return d;f=c();d|=(f&127)<<14;if(f<128)return d;f=c();return f<128?d|(f&127)<<21:Infinity};
ZCC=function(c,f,d,q){if(c)if(Array.isArray(c)){var Z=q;for(q=0;q<c.length&&!(c[q]&&(Z+=qxk(q,c[q],f,d),Z>500));q++);q=Z}else if(typeof c==="object")for(Z in c){if(c[Z]){var M=Z;var g=c[Z],O=f,l=d;M=typeof g!=="string"||M!=="clickTrackingParams"&&M!=="trackingParams"?0:(g=jnz(atob(g.replace(/-/g,"+").replace(/_/g,"/")),2))?qxk(M+".ve",g,O,l):0;q+=M;q+=qxk(Z,c[Z],f,d);if(q>500)break}}else d[f]=Hq(c),q+=d[f].length;else d[f]=Hq(c),q+=d[f].length;return q};
qxk=function(c,f,d,q){d+="."+c;c=Hq(f);q[d]=c;return d.length+c.length};
Hq=function(c){try{return(typeof c==="string"?c:String(JSON.stringify(c))).substr(0,500)}catch(f){return"unable to serialize "+typeof c+" ("+f.message+")"}};
MUN=function(c){switch(c){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}};
_.YK=function(c,f,d,q,Z){_.A4.set(c,f,{maxAge:d,path:"/",domain:q===void 0?"youtube.com":q,secure:Z===void 0?!1:Z})};
_.rEh=function(c,f,d){_.A4.remove(c,f===void 0?"/":f,d===void 0?"youtube.com":d)};
_.FJ=function(){if(_.F("embeds_web_enable_cookie_detection_fix")){if(!_.dz.navigator.cookieEnabled)return!1}else if(!_.A4.isEnabled())return!1;if(!_.A4.isEmpty())return!0;_.F("embeds_web_enable_cookie_detection_fix")?_.A4.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.A4.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.A4.get("TESTCOOKIESENABLED")!=="1")return!1;_.A4.remove("TESTCOOKIESENABLED");return!0};
CIN=function(){var c=_.dz.navigator;return c?c.connection:void 0};
gCP=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(c){}};
_.OCG=function(){var c=CIN();if(c){var f=khh[c.type||"unknown"]||"CONN_UNKNOWN";c=khh[c.effectiveType||"unknown"]||"CONN_UNKNOWN";f==="CONN_CELLULAR_UNKNOWN"&&c!=="CONN_UNKNOWN"&&(f=c);if(f!=="CONN_UNKNOWN")return f;if(c!=="CONN_UNKNOWN")return c}};
snk=function(){var c=CIN();if(c!=null&&c.effectiveType)return l8r.hasOwnProperty(c.effectiveType)?l8r[c.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.bF=function(){try{return _.t4(),!0}catch(c){return!1}};
_.t4=function(c){if(_.hk("DATASYNC_ID")!==void 0)return _.hk("DATASYNC_ID");throw new _.KD("Datasync ID not set",c===void 0?"unknown":c);};
_.Ez=function(c){this.mechanism=c};
nD=function(c){this.mechanism=c};
$K=function(c){this.storage_=c;this.cachedIsStorageAvailable_=null};
BWn=function(){var c=null;try{c=_.dz.localStorage||null}catch(f){}$K.call(this,c)};
iCz=function(){var c=null;try{c=_.dz.sessionStorage||null}catch(f){}$K.call(this,c)};
QW=function(c,f){this.mechanism_=c;this.JSC$10526_prefix_=f+"::"};
_.TWl=function(c){var f=new BWn;return f.isAvailable()?c?new QW(f,c):f:null};
_.m$h=function(c){var f=new iCz;return f.isAvailable()?c?new QW(f,c):f:null};
AEN=function(){var c;return(c=HCl())==null?void 0:c.get("LAST_RESULT_ENTRY_KEY",!0)};
_.ao=function(c){Yxz||(_.SA?_.SA.logError(c):(_.J4.push({type:"ERROR",payload:c}),_.J4.length>10&&_.J4.shift()))};
VW=function(c,f){Yxz||(_.SA?_.SA.logEvent(c,f):(_.J4.push({type:"EVENT",eventType:c,payload:f}),_.J4.length>10&&_.J4.shift()))};
XJ=function(c){if(c.indexOf(":")>=0)throw Error("Nc");};
uF=function(c){return c.substr(0,c.indexOf(":"))||c};
bCN=function(){return(FdN||tUk)&&vq("applewebkit")&&!vq("version")&&(!vq("safari")||vq("gsa/"))};
vq=function(c){var f=_.TY();return f?f.toLowerCase().indexOf(c)>=0:!1};
nCC=function(c,f,d,q){f=uF(f);var Z=c instanceof Error?c:Error("Oc`"+c);if(Z instanceof h4)return Z;c={objectStoreNames:d,dbName:f,dbVersion:q};if(Z.name==="QuotaExceededError")return new h4("QUOTA_EXCEEDED",c);if(_.wx&&Z.name==="UnknownError")return new h4("QUOTA_MAYBE_EXCEEDED",c);if(Z instanceof Kdl)return new h4("MISSING_INDEX",Object.assign({},c,{objectStore:Z.objectStore,index:Z.index}));if(Z.name==="InvalidStateError"&&ECe.some(function(M){return Z.message.includes(M)}))return new h4("EXECUTE_TRANSACTION_ON_CLOSED_DB",
c);
if(Z.name==="AbortError")return new h4("UNKNOWN_ABORT",c,Z.message);Z.args=[Object.assign({},c,{name:"IdbError",originalName:Z.name})];Z.level="WARNING";return Z};
yW=function(c,f,d){var q=AEN();return new h4("IDB_NOT_SUPPORTED",{context:{caller:c,publicName:f,version:d,hasSucceededOnce:q==null?void 0:q.hasSucceededOnce}})};
$$l=function(c){if(!c)throw Error();throw c;};
Qnk=function(c){return c};
SxN=function(c,f,d){var q=function(){try{c.removeEventListener("success",Z),c.removeEventListener("error",M)}catch(g){}},Z=function(){f(c.result);
q()},M=function(){d(c.error);
q()};
c.addEventListener("success",Z);c.addEventListener("error",M)};
Lde=function(c){return new Promise(function(f,d){SxN(c,f,d)})};
eA=function(c){return new Wq(new DM(function(f,d){SxN(c,f,d)}))};
z4C=function(c,f){return new Wq(new DM(function(d,q){var Z=function(){var M=c?f(c):null;M?M.then(function(g){c=g;Z()},q):d()};
Z()}))};
JEY=function(c,f,d){return new Promise(function(q,Z){var M=f!==void 0?self.indexedDB.open(c,f):self.indexedDB.open(c);var g=d.blocked,O=d.blocking,l=d.terminated,m=d.upgrade,H=d.closed,A,Y=function(){A||(A=new Nl(M.result,{closed:H}));return A};
M.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Tc");if(M.transaction===null)throw Error("Uc");t.dataLoss&&t.dataLoss!=="none"&&VW("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:uF(c)});var E=Y(),J=new Io(M.transaction);m&&m(E,function(X){return t.oldVersion<X&&t.newVersion>=X},J);
J.done.catch(function(X){Z(X)})}catch(X){Z(X)}});
M.addEventListener("success",function(){var t=M.result;O&&t.addEventListener("versionchange",function(){O(Y())});
t.addEventListener("close",function(){VW("IDB_UNEXPECTEDLY_CLOSED",{dbName:uF(c),dbVersion:t.version});l&&l()});
q(Y())});
M.addEventListener("error",function(){Z(M.error)});
g&&M.addEventListener("blocked",function(){g()})})};
a8l=function(c,f,d){d=d===void 0?{}:d;return JEY(c,f,d)};
_.Ro=function(c,f){f=f===void 0?{}:f;var d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return _.iY(g,2),d=self.indexedDB.deleteDatabase(c),q=f,(Z=q.blocked)&&d.addEventListener("blocked",function(){Z()}),g.yield(Lde(d),4);
if(g.nextAddress!=2)return _.Pq(g,0);M=_.Yw(g);throw nCC(M,c,"",-1);})};
Xbk=function(c,f){var d;return _.k(function(q){if(q.nextAddress==1)return q.yield(_.Uz(VUh,f),2);d=q.yieldResult;return q.return(_.pD(d,["databases"],{enableRetries:!0,mode:"readwrite"},function(Z){var M=Z.objectStore("databases");return M.get(c.actualName).then(function(g){if(g?c.actualName!==g.actualName||c.publicName!==g.publicName||c.userIdentifier!==g.userIdentifier:1)return M.put(c).then(function(){})})}))})};
_.xK=function(c,f){var d;return _.k(function(q){if(q.nextAddress==1)return c?q.yield(_.Uz(VUh,f),2):q.return();d=q.yieldResult;return q.return(d.delete("databases",c))})};
_.u5r=function(c,f){var d,q;return _.k(function(Z){return Z.nextAddress==1?(d=[],Z.yield(_.Uz(VUh,f),2)):Z.nextAddress!=3?(q=Z.yieldResult,Z.yield(_.pD(q,["databases"],{enableRetries:!0,mode:"readonly"},function(M){d.length=0;return oo(M.objectStore("databases"),{},function(g){c(g.getValue())&&d.push(g.getValue());return g.continue()})}),3)):Z.return(d)})};
vCh=function(c,f){return _.u5r(function(d){return d.publicName===c&&d.userIdentifier!==void 0},f)};
yEl=function(){var c,f,d,q;return _.k(function(Z){switch(Z.nextAddress){case 1:c=AEN();if((f=c)==null?0:f.hasSucceededOnce)return Z.return(!0);var M;if(M=h4n)M=/WebKit\/([0-9]+)/.exec(_.TY()),M=!!(M&&parseInt(M[1],10)>=600);M&&(M=/WebKit\/([0-9]+)/.exec(_.TY()),M=!(M&&parseInt(M[1],10)>=602));if(M||Gf)return Z.return(!1);try{if(d=self,!(d.indexedDB&&d.IDBIndex&&d.IDBKeyRange&&d.IDBObjectStore))return Z.return(!1)}catch(g){return Z.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Z.return(!1);
_.iY(Z,2);q={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Z.yield(Xbk(q,wbh),4);case 4:return Z.yield(_.xK("yt-idb-test-do-not-use",wbh),5);case 5:return Z.return(!0);case 2:return _.Yw(Z),Z.return(!1)}})};
D$z=function(){if(WdP!==void 0)return WdP;Yxz=!0;return WdP=yEl().then(function(c){Yxz=!1;var f;if((f=HCl())!=null&&f.expiringStorage_){var d;f={hasSucceededOnce:((d=AEN())==null?void 0:d.hasSucceededOnce)||c};var q;(q=HCl())==null||q.set("LAST_RESULT_ENTRY_KEY",f,2592E3,!0)}return c})};
cs=function(){return _.D5("ytglobal.idbToken_")||void 0};
_.dR=function(){var c=cs();return c?Promise.resolve(c):D$z().then(function(f){(f=f?wbh:void 0)&&_.fu("ytglobal.idbToken_",f);return f})};
e4C=function(c){if(!_.bF())throw c=new h4("AUTH_INVALID",{dbName:c}),_.ao(c),c;var f=_.t4();return{actualName:c+":"+f,publicName:c,userIdentifier:f}};
NWk=function(c,f,d,q){var Z,M,g,O,l,m;return _.k(function(H){switch(H.nextAddress){case 1:return M=(Z=Error().stack)!=null?Z:"",H.yield(_.dR(),2);case 2:g=H.yieldResult;if(!g)throw O=yW("openDbImpl",c,f),_.F("ytidb_async_stack_killswitch")||(O.stack=O.stack+"\n"+M.substring(M.indexOf("\n")+1)),_.ao(O),O;XJ(c);l=d?{actualName:c,publicName:c,userIdentifier:void 0}:e4C(c);_.iY(H,3);return H.yield(Xbk(l,g),5);case 5:return H.yield(a8l(l.actualName,f,q),6);case 6:return H.return(H.yieldResult);case 3:return m=
_.Yw(H),_.iY(H,7),H.yield(_.xK(l.actualName,g),9);case 9:_.Pq(H,8);break;case 7:_.Yw(H);case 8:throw m;}})};
I8n=function(c,f,d){d=d===void 0?{}:d;return NWk(c,f,!1,d)};
PIk=function(c,f,d){d=d===void 0?{}:d;return NWk(c,f,!0,d)};
R4N=function(c,f){f=f===void 0?{}:f;var d,q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(_.dR(),2);if(Z.nextAddress!=3){d=Z.yieldResult;if(!d)return Z.return();XJ(c);q=e4C(c);return Z.yield(_.Ro(q.actualName,f),3)}return Z.yield(_.xK(q.actualName,d),0)})};
U$M=function(c,f,d){c=c.map(function(q){return _.k(function(Z){return Z.nextAddress==1?Z.yield(_.Ro(q.actualName,f),2):Z.yield(_.xK(q.actualName,d),0)})});
return Promise.all(c).then(function(){})};
pbG=function(c){var f=f===void 0?{}:f;var d,q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(_.dR(),2);if(Z.nextAddress!=3){d=Z.yieldResult;if(!d)return Z.return();XJ(c);return Z.yield(vCh(c,d),3)}q=Z.yieldResult;return Z.yield(U$M(q,f,d),0)})};
x$N=function(c,f){f=f===void 0?{}:f;var d;return _.k(function(q){if(q.nextAddress==1)return q.yield(_.dR(),2);if(q.nextAddress!=3){d=q.yieldResult;if(!d)return q.return();XJ(c);return q.yield(_.Ro(c,f),3)}return q.yield(_.xK(c,d),0)})};
j6=function(c,f){return oCl(c,f)};
chP=function(c){return _.Uz(GhN(),c)};
fme=function(c,f,d,q){var Z,M,g;return _.k(function(O){switch(O.nextAddress){case 1:return Z={config:c,hashData:f,timestamp:q!==void 0?q:(0,_.qR)()},O.yield(chP(d),2);case 2:return M=O.yieldResult,O.yield(M.clear("hotConfigStore"),3);case 3:return O.yield(M.put("hotConfigStore",Z),4);case 4:return g=O.yieldResult,O.return(g)}})};
dLP=function(c,f,d,q,Z){var M,g,O;return _.k(function(l){switch(l.nextAddress){case 1:return M={config:c,hashData:f,configData:d,timestamp:Z!==void 0?Z:(0,_.qR)()},l.yield(chP(q),2);case 2:return g=l.yieldResult,l.yield(g.clear("coldConfigStore"),3);case 3:return l.yield(g.put("coldConfigStore",M),4);case 4:return O=l.yieldResult,l.return(O)}})};
jV4=function(c){var f,d;return _.k(function(q){return q.nextAddress==1?q.yield(chP(c),2):q.nextAddress!=3?(f=q.yieldResult,d=void 0,q.yield(_.pD(f,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Z){return _.Ze(Z.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(M){d=M.getValue()})}),3)):q.return(d)})};
qON=function(c){var f,d;return _.k(function(q){return q.nextAddress==1?q.yield(chP(c),2):q.nextAddress!=3?(f=q.yieldResult,d=void 0,q.yield(_.pD(f,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Z){return _.Ze(Z.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(M){d=M.getValue()})}),3)):q.return(d)})};
ZXk=function(){return _.k(function(c){return c.yield(pbG("ytGcfConfig"),0)})};
Mvh=function(){return"INNERTUBE_API_KEY"in _.VJ&&"INNERTUBE_API_VERSION"in _.VJ};
_.MR=function(){return{innertubeApiKey:_.hk("INNERTUBE_API_KEY"),innertubeApiVersion:_.hk("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.hk("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.hk("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.hk("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.hk("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.hk("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.hk("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.hk("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.wi("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.wi("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.hk("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.sVN=function(c){var f={client:{hl:c.innertubeContextHostLanguage,gl:c.innertubeContextGeoLocation,clientName:c.innertubeContextClientName,clientVersion:c.innertubeContextClientVersion,configInfo:c.innertubeContextClientConfigInfo}};navigator.userAgent&&(f.client.userAgent=String(navigator.userAgent));var d=_.dz.devicePixelRatio;d&&d!=1&&(f.client.screenDensityFloat=String(d));d=SXC();d!==""&&(f.client.experimentsToken=d);d=LnN();d.length>0&&(f.request={internalExperimentFlags:d});rhG(c,void 0,f);
CoP(void 0,f);g0k(void 0,f);kXN(c,void 0,f);OXl(void 0,f);_.F("start_client_gcf")&&lmM(void 0,f);_.hk("DELEGATED_SESSION_ID")&&!_.F("pageid_as_header_web")&&(f.user={onBehalfOfUser:_.hk("DELEGATED_SESSION_ID")});!_.F("fill_delegate_context_in_gel_killswitch")&&(c=_.hk("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(f.user=Object.assign({},f.user,{serializedDelegationContext:c}));c=_.hk("INNERTUBE_CONTEXT");var q;if(_.F("enable_persistent_device_token")&&(c==null?0:(q=c.client)==null?0:q.rolloutToken)){var Z;
f.client.rolloutToken=c==null?void 0:(Z=c.client)==null?void 0:Z.rolloutToken}q=Object;Z=q.assign;c=f.client;d={};for(var M=_.C(Object.entries(_.PC(_.hk("DEVICE","")))),g=M.next();!g.done;g=M.next()){var O=_.C(g.value);g=O.next().value;O=O.next().value;g==="cbrand"?d.deviceMake=O:g==="cmodel"?d.deviceModel=O:g==="cbr"?d.browserName=O:g==="cbrver"?d.browserVersion=O:g==="cos"?d.osName=O:g==="cosver"?d.osVersion=O:g==="cplatform"&&(d.platform=O)}f.client=Z.call(q,c,d);return f};
rhG=function(c,f,d){c=c.innertubeContextClientName;if(c==="WEB"||c==="MWEB"||c===1||c===2)if(f){d=_.TD(f,BDn,96)||new BDn;var q=iXh();q=Object.keys(TD4).indexOf(q);q=q===-1?null:q;q!==null&&_.rR(d,3,q);_.BU(f,96,d)}else d&&(d.client.mainAppWebInfo=(q=d.client.mainAppWebInfo)!=null?q:{},d.client.mainAppWebInfo.webDisplayMode=iXh())};
CoP=function(c,f){var d=_.D5("yt.embedded_player.embed_url");d&&(c?(f=_.TD(c,mLl,7)||new mLl,_.b5(f,4,d),_.BU(c,7,f)):f&&(f.thirdParty={embedUrl:d}))};
g0k=function(c,f){var d;if(_.F("web_log_memory_total_kbytes")&&((d=_.dz.navigator)==null?0:d.deviceMemory)){var q;d=(q=_.dz.navigator)==null?void 0:q.deviceMemory;c?_.Cu(c,95,MQ(d*1E6)):f&&(f.client.memoryTotalKbytes=""+d*1E6)}};
kXN=function(c,f,d){if(c.appInstallData)if(f){var q;d=(q=_.TD(f,gR,62))!=null?q:new gR;_.b5(d,6,c.appInstallData);_.BU(f,62,d)}else d&&(d.client.configInfo=d.client.configInfo||{},d.client.configInfo.appInstallData=c.appInstallData)};
OXl=function(c,f){var d=_.OCG();d&&(c?_.rR(c,61,HXl[d]):f&&(f.client.connectionType=d));_.F("web_log_effective_connection_type")&&(d=snk())&&(c?_.rR(c,94,Ahn[d]):f&&(f.client.effectiveConnectionType=d))};
_.tvP=function(c,f,d){d=d===void 0?{}:d;var q={};_.hk("EOM_VISITOR_DATA")?q={"X-Goog-EOM-Visitor-Id":_.hk("EOM_VISITOR_DATA")}:q={"X-Goog-Visitor-Id":d.visitorData||_.hk("VISITOR_DATA","")};if(f&&f.includes("www.youtube-nocookie.com"))return q;f=d.authorization||_.hk("AUTHORIZATION");f||(c?f="Bearer "+_.D5("gapi.auth.getToken")().access_token:(YOe.instance||(YOe.instance=new YOe),c=FqG(),_.F("pageid_as_header_web")||delete c["X-Goog-PageId"],q=Object.assign({},q,c)));f&&(q.Authorization=f);return q};
lmM=function(c,f){var d=bXr();if(d){var q=d.coldConfigData,Z=d.coldHashData;d=d.hotHashData;if(c){var M;f=(M=_.TD(c,gR,62))!=null?M:new gR;q=_.b5(f,1,q);_.b5(q,3,Z).setHotHashData(d);_.BU(c,62,f)}else f&&(f.client.configInfo=f.client.configInfo||{},q&&(f.client.configInfo.coldConfigData=q),Z&&(f.client.configInfo.coldHashData=Z),d&&(f.client.configInfo.hotHashData=d))}};
kO=function(c){for(var f=c.length;--f>=0;)c[f]=0};
Kqz=function(c,f,d,q,Z){this.static_tree=c;this.extra_bits=f;this.extra_base=d;this.elems=q;this.max_length=Z;this.has_stree=c&&c.length};
E0k=function(c,f){this.dyn_tree=c;this.max_code=0;this.stat_desc=f};
ON=function(c,f){c.pending_buf[c.pending++]=f&255;c.pending_buf[c.pending++]=f>>>8&255};
lx=function(c,f,d){c.bi_valid>16-d?(c.bi_buf|=f<<c.bi_valid&65535,ON(c,c.bi_buf),c.bi_buf=f>>16-c.bi_valid,c.bi_valid+=d-16):(c.bi_buf|=f<<c.bi_valid&65535,c.bi_valid+=d)};
sN=function(c,f,d){lx(c,d[f*2],d[f*2+1])};
n0e=function(c,f){var d=0;do d|=c&1,c>>>=1,d<<=1;while(--f>0);return d>>>1};
$Lk=function(c,f,d){var q=Array(16),Z=0,M;for(M=1;M<=15;M++)q[M]=Z=Z+d[M-1]<<1;for(d=0;d<=f;d++)Z=c[d*2+1],Z!==0&&(c[d*2]=n0e(q[Z]++,Z))};
QVk=function(c){var f;for(f=0;f<286;f++)c.dyn_ltree[f*2]=0;for(f=0;f<30;f++)c.dyn_dtree[f*2]=0;for(f=0;f<19;f++)c.bl_tree[f*2]=0;c.dyn_ltree[512]=1;c.opt_len=c.static_len=0;c.last_lit=c.matches=0};
SOl=function(c){c.bi_valid>8?ON(c,c.bi_buf):c.bi_valid>0&&(c.pending_buf[c.pending++]=c.bi_buf);c.bi_buf=0;c.bi_valid=0};
Lqk=function(c,f,d){SOl(c);ON(c,d);ON(c,~d);Bs.arraySet(c.pending_buf,c.window,f,d,c.pending);c.pending+=d};
zNY=function(c,f,d,q){var Z=f*2,M=d*2;return c[Z]<c[M]||c[Z]===c[M]&&q[f]<=q[d]};
Jhz=function(c,f,d){for(var q=c.heap[d],Z=d<<1;Z<=c.heap_len;){Z<c.heap_len&&zNY(f,c.heap[Z+1],c.heap[Z],c.depth)&&Z++;if(zNY(f,q,c.heap[Z],c.depth))break;c.heap[d]=c.heap[Z];d=Z;Z<<=1}c.heap[d]=q};
v04=function(c,f,d){var q=0;if(c.last_lit!==0){do{var Z=c.pending_buf[c.d_buf+q*2]<<8|c.pending_buf[c.d_buf+q*2+1];var M=c.pending_buf[c.l_buf+q];q++;if(Z===0)sN(c,M,f);else{var g=ix[M];sN(c,g+256+1,f);var O=amz[g];O!==0&&(M-=Vvr[g],lx(c,M,O));Z--;g=Z<256?Tr[Z]:Tr[256+(Z>>>7)];sN(c,g,d);O=XSk[g];O!==0&&(Z-=uwG[g],lx(c,Z,O))}}while(q<c.last_lit)}sN(c,256,f)};
hNr=function(c,f){var d=f.dyn_tree,q=f.stat_desc.static_tree,Z=f.stat_desc.has_stree,M=f.stat_desc.elems,g,O=-1;c.heap_len=0;c.heap_max=573;for(g=0;g<M;g++)d[g*2]!==0?(c.heap[++c.heap_len]=O=g,c.depth[g]=0):d[g*2+1]=0;for(;c.heap_len<2;){var l=c.heap[++c.heap_len]=O<2?++O:0;d[l*2]=1;c.depth[l]=0;c.opt_len--;Z&&(c.static_len-=q[l*2+1])}f.max_code=O;for(g=c.heap_len>>1;g>=1;g--)Jhz(c,d,g);l=M;do g=c.heap[1],c.heap[1]=c.heap[c.heap_len--],Jhz(c,d,1),q=c.heap[1],c.heap[--c.heap_max]=g,c.heap[--c.heap_max]=
q,d[l*2]=d[g*2]+d[q*2],c.depth[l]=(c.depth[g]>=c.depth[q]?c.depth[g]:c.depth[q])+1,d[g*2+1]=d[q*2+1]=l,c.heap[1]=l++,Jhz(c,d,1);while(c.heap_len>=2);c.heap[--c.heap_max]=c.heap[1];g=f.dyn_tree;l=f.max_code;q=f.stat_desc.static_tree;Z=f.stat_desc.has_stree;M=f.stat_desc.extra_bits;var m=f.stat_desc.extra_base,H=f.stat_desc.max_length,A,Y=0;for(A=0;A<=15;A++)c.bl_count[A]=0;g[c.heap[c.heap_max]*2+1]=0;for(f=c.heap_max+1;f<573;f++){var t=c.heap[f];A=g[g[t*2+1]*2+1]+1;A>H&&(A=H,Y++);g[t*2+1]=A;if(!(t>
l)){c.bl_count[A]++;var E=0;t>=m&&(E=M[t-m]);var J=g[t*2];c.opt_len+=J*(A+E);Z&&(c.static_len+=J*(q[t*2+1]+E))}}if(Y!==0){do{for(A=H-1;c.bl_count[A]===0;)A--;c.bl_count[A]--;c.bl_count[A+1]+=2;c.bl_count[H]--;Y-=2}while(Y>0);for(A=H;A!==0;A--)for(t=c.bl_count[A];t!==0;)q=c.heap[--f],q>l||(g[q*2+1]!==A&&(c.opt_len+=(A-g[q*2+1])*g[q*2],g[q*2+1]=A),t--)}$Lk(d,O,c.bl_count)};
wSM=function(c,f,d){var q,Z=-1,M=f[1],g=0,O=7,l=4;M===0&&(O=138,l=3);f[(d+1)*2+1]=65535;for(q=0;q<=d;q++){var m=M;M=f[(q+1)*2+1];++g<O&&m===M||(g<l?c.bl_tree[m*2]+=g:m!==0?(m!==Z&&c.bl_tree[m*2]++,c.bl_tree[32]++):g<=10?c.bl_tree[34]++:c.bl_tree[36]++,g=0,Z=m,M===0?(O=138,l=3):m===M?(O=6,l=3):(O=7,l=4))}};
yhP=function(c,f,d){var q,Z=-1,M=f[1],g=0,O=7,l=4;M===0&&(O=138,l=3);for(q=0;q<=d;q++){var m=M;M=f[(q+1)*2+1];if(!(++g<O&&m===M)){if(g<l){do sN(c,m,c.bl_tree);while(--g!==0)}else m!==0?(m!==Z&&(sN(c,m,c.bl_tree),g--),sN(c,16,c.bl_tree),lx(c,g-3,2)):g<=10?(sN(c,17,c.bl_tree),lx(c,g-3,3)):(sN(c,18,c.bl_tree),lx(c,g-11,7));g=0;Z=m;M===0?(O=138,l=3):m===M?(O=6,l=3):(O=7,l=4)}}};
Wqe=function(c){var f=4093624447,d;for(d=0;d<=31;d++,f>>>=1)if(f&1&&c.dyn_ltree[d*2]!==0)return 0;if(c.dyn_ltree[18]!==0||c.dyn_ltree[20]!==0||c.dyn_ltree[26]!==0)return 1;for(d=32;d<256;d++)if(c.dyn_ltree[d*2]!==0)return 1;return 0};
mw=function(c,f,d){c.pending_buf[c.d_buf+c.last_lit*2]=f>>>8&255;c.pending_buf[c.d_buf+c.last_lit*2+1]=f&255;c.pending_buf[c.l_buf+c.last_lit]=d&255;c.last_lit++;f===0?c.dyn_ltree[d*2]++:(c.matches++,f--,c.dyn_ltree[(ix[d]+256+1)*2]++,c.dyn_dtree[(f<256?Tr[f]:Tr[256+(f>>>7)])*2]++);return c.last_lit===c.lit_bufsize-1};
Aw=function(c,f){c.msg=Hs[f];return f};
YO=function(c){for(var f=c.length;--f>=0;)c[f]=0};
Fh=function(c){var f=c.state,d=f.pending;d>c.avail_out&&(d=c.avail_out);d!==0&&(Bs.arraySet(c.output,f.pending_buf,f.pending_out,d,c.next_out),c.next_out+=d,f.pending_out+=d,c.total_out+=d,c.avail_out-=d,f.pending-=d,f.pending===0&&(f.pending_out=0))};
EN=function(c,f){var d=c.block_start>=0?c.block_start:-1,q=c.strstart-c.block_start,Z=0;if(c.level>0){c.strm.data_type===2&&(c.strm.data_type=Wqe(c));hNr(c,c.l_desc);hNr(c,c.d_desc);wSM(c,c.dyn_ltree,c.l_desc.max_code);wSM(c,c.dyn_dtree,c.d_desc.max_code);hNr(c,c.bl_desc);for(Z=18;Z>=3&&c.bl_tree[DLY[Z]*2+1]===0;Z--);c.opt_len+=3*(Z+1)+5+5+4;var M=c.opt_len+3+7>>>3;var g=c.static_len+3+7>>>3;g<=M&&(M=g)}else M=g=q+5;if(q+4<=M&&d!==-1)lx(c,f?1:0,3),Lqk(c,d,q);else if(c.strategy===4||g===M)lx(c,2+(f?
1:0),3),v04(c,bx,Ku);else{lx(c,4+(f?1:0),3);d=c.l_desc.max_code+1;q=c.d_desc.max_code+1;Z+=1;lx(c,d-257,5);lx(c,q-1,5);lx(c,Z-4,4);for(M=0;M<Z;M++)lx(c,c.bl_tree[DLY[M]*2+1],3);yhP(c,c.dyn_ltree,d-1);yhP(c,c.dyn_dtree,q-1);v04(c,c.dyn_ltree,c.dyn_dtree)}QVk(c);f&&SOl(c);c.block_start=c.strstart;Fh(c.strm)};
nu=function(c,f){c.pending_buf[c.pending++]=f};
$O=function(c,f){c.pending_buf[c.pending++]=f>>>8&255;c.pending_buf[c.pending++]=f&255};
eNr=function(c,f){var d=c.max_chain_length,q=c.strstart,Z=c.prev_length,M=c.nice_match,g=c.strstart>c.w_size-262?c.strstart-(c.w_size-262):0,O=c.window,l=c.w_mask,m=c.prev,H=c.strstart+258,A=O[q+Z-1],Y=O[q+Z];c.prev_length>=c.good_match&&(d>>=2);M>c.lookahead&&(M=c.lookahead);do{var t=f;if(O[t+Z]===Y&&O[t+Z-1]===A&&O[t]===O[q]&&O[++t]===O[q+1]){q+=2;for(t++;O[++q]===O[++t]&&O[++q]===O[++t]&&O[++q]===O[++t]&&O[++q]===O[++t]&&O[++q]===O[++t]&&O[++q]===O[++t]&&O[++q]===O[++t]&&O[++q]===O[++t]&&q<H;);
t=258-(H-q);q=H-258;if(t>Z){c.match_start=f;Z=t;if(t>=M)break;A=O[q+Z-1];Y=O[q+Z]}}}while((f=m[f&l])>g&&--d!==0);return Z<=c.lookahead?Z:c.lookahead};
S6=function(c){var f=c.w_size,d;do{var q=c.window_size-c.lookahead-c.strstart;if(c.strstart>=f+(f-262)){Bs.arraySet(c.window,c.window,f,f,0);c.match_start-=f;c.strstart-=f;c.block_start-=f;var Z=d=c.hash_size;do{var M=c.head[--Z];c.head[Z]=M>=f?M-f:0}while(--d);Z=d=f;do M=c.prev[--Z],c.prev[Z]=M>=f?M-f:0;while(--d);q+=f}if(c.strm.avail_in===0)break;Z=c.strm;d=c.window;M=c.strstart+c.lookahead;var g=Z.avail_in;g>q&&(g=q);g===0?d=0:(Z.avail_in-=g,Bs.arraySet(d,Z.input,Z.next_in,g,M),Z.state.wrap===
1?Z.adler=NDh(Z.adler,d,g,M):Z.state.wrap===2&&(Z.adler=Qm(Z.adler,d,g,M)),Z.next_in+=g,Z.total_in+=g,d=g);c.lookahead+=d;if(c.lookahead+c.insert>=3)for(q=c.strstart-c.insert,c.ins_h=c.window[q],c.ins_h=(c.ins_h<<c.hash_shift^c.window[q+1])&c.hash_mask;c.insert&&!(c.ins_h=(c.ins_h<<c.hash_shift^c.window[q+3-1])&c.hash_mask,c.prev[q&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=q,q++,c.insert--,c.lookahead+c.insert<3););}while(c.lookahead<262&&c.strm.avail_in!==0)};
ImN=function(c,f){for(var d;;){if(c.lookahead<262){S6(c);if(c.lookahead<262&&f===0)return 1;if(c.lookahead===0)break}d=0;c.lookahead>=3&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,d=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart);d!==0&&c.strstart-d<=c.w_size-262&&(c.match_length=eNr(c,d));if(c.match_length>=3)if(d=mw(c,c.strstart-c.match_start,c.match_length-3),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=3){c.match_length--;
do c.strstart++,c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart;while(--c.match_length!==0);c.strstart++}else c.strstart+=c.match_length,c.match_length=0,c.ins_h=c.window[c.strstart],c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+1])&c.hash_mask;else d=mw(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++;if(d&&(EN(c,!1),c.strm.avail_out===0))return 1}c.insert=c.strstart<2?c.strstart:2;return f===4?(EN(c,
!0),c.strm.avail_out===0?3:4):c.last_lit&&(EN(c,!1),c.strm.avail_out===0)?1:2};
Lu=function(c,f){for(var d,q;;){if(c.lookahead<262){S6(c);if(c.lookahead<262&&f===0)return 1;if(c.lookahead===0)break}d=0;c.lookahead>=3&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,d=c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart);c.prev_length=c.match_length;c.prev_match=c.match_start;c.match_length=2;d!==0&&c.prev_length<c.max_lazy_match&&c.strstart-d<=c.w_size-262&&(c.match_length=eNr(c,d),c.match_length<=5&&(c.strategy===1||c.match_length===3&&
c.strstart-c.match_start>4096)&&(c.match_length=2));if(c.prev_length>=3&&c.match_length<=c.prev_length){q=c.strstart+c.lookahead-3;d=mw(c,c.strstart-1-c.prev_match,c.prev_length-3);c.lookahead-=c.prev_length-1;c.prev_length-=2;do++c.strstart<=q&&(c.ins_h=(c.ins_h<<c.hash_shift^c.window[c.strstart+3-1])&c.hash_mask,c.prev[c.strstart&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=c.strstart);while(--c.prev_length!==0);c.match_available=0;c.match_length=2;c.strstart++;if(d&&(EN(c,!1),c.strm.avail_out===0))return 1}else if(c.match_available){if((d=
mw(c,0,c.window[c.strstart-1]))&&EN(c,!1),c.strstart++,c.lookahead--,c.strm.avail_out===0)return 1}else c.match_available=1,c.strstart++,c.lookahead--}c.match_available&&(mw(c,0,c.window[c.strstart-1]),c.match_available=0);c.insert=c.strstart<2?c.strstart:2;return f===4?(EN(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(EN(c,!1),c.strm.avail_out===0)?1:2};
Pok=function(c,f){for(var d,q,Z,M=c.window;;){if(c.lookahead<=258){S6(c);if(c.lookahead<=258&&f===0)return 1;if(c.lookahead===0)break}c.match_length=0;if(c.lookahead>=3&&c.strstart>0&&(q=c.strstart-1,d=M[q],d===M[++q]&&d===M[++q]&&d===M[++q])){for(Z=c.strstart+258;d===M[++q]&&d===M[++q]&&d===M[++q]&&d===M[++q]&&d===M[++q]&&d===M[++q]&&d===M[++q]&&d===M[++q]&&q<Z;);c.match_length=258-(Z-q);c.match_length>c.lookahead&&(c.match_length=c.lookahead)}c.match_length>=3?(d=mw(c,1,c.match_length-3),c.lookahead-=
c.match_length,c.strstart+=c.match_length,c.match_length=0):(d=mw(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++);if(d&&(EN(c,!1),c.strm.avail_out===0))return 1}c.insert=0;return f===4?(EN(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(EN(c,!1),c.strm.avail_out===0)?1:2};
RNY=function(c,f){for(var d;;){if(c.lookahead===0&&(S6(c),c.lookahead===0)){if(f===0)return 1;break}c.match_length=0;d=mw(c,0,c.window[c.strstart]);c.lookahead--;c.strstart++;if(d&&(EN(c,!1),c.strm.avail_out===0))return 1}c.insert=0;return f===4?(EN(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(EN(c,!1),c.strm.avail_out===0)?1:2};
zr=function(c,f,d,q,Z){this.good_length=c;this.max_lazy=f;this.nice_length=d;this.max_chain=q;this.func=Z};
ULl=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 Bs.Buf16(1146);this.dyn_dtree=new Bs.Buf16(122);this.bl_tree=new Bs.Buf16(78);YO(this.dyn_ltree);YO(this.dyn_dtree);YO(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Bs.Buf16(16);this.heap=new Bs.Buf16(573);YO(this.heap);this.heap_max=this.heap_len=0;this.depth=new Bs.Buf16(573);YO(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};
pSh=function(c,f){if(!c||!c.state||f>5||f<0)return c?Aw(c,-2):-2;var d=c.state;if(!c.output||!c.input&&c.avail_in!==0||d.status===666&&f!==4)return Aw(c,c.avail_out===0?-5:-2);d.strm=c;var q=d.last_flush;d.last_flush=f;if(d.status===42)if(d.wrap===2)c.adler=0,nu(d,31),nu(d,139),nu(d,8),d.gzhead?(nu(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),nu(d,d.gzhead.time&255),nu(d,d.gzhead.time>>8&255),nu(d,d.gzhead.time>>16&255),nu(d,d.gzhead.time>>
24&255),nu(d,d.level===9?2:d.strategy>=2||d.level<2?4:0),nu(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(nu(d,d.gzhead.extra.length&255),nu(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(c.adler=Qm(c.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=69):(nu(d,0),nu(d,0),nu(d,0),nu(d,0),nu(d,0),nu(d,d.level===9?2:d.strategy>=2||d.level<2?4:0),nu(d,3),d.status=113);else{var Z=8+(d.w_bits-8<<4)<<8;Z|=(d.strategy>=2||d.level<2?0:d.level<6?1:d.level===6?2:3)<<6;d.strstart!==0&&(Z|=
32);d.status=113;$O(d,Z+(31-Z%31));d.strstart!==0&&($O(d,c.adler>>>16),$O(d,c.adler&65535));c.adler=1}if(d.status===69)if(d.gzhead.extra){for(Z=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&(d.pending!==d.pending_buf_size||(d.gzhead.hcrc&&d.pending>Z&&(c.adler=Qm(c.adler,d.pending_buf,d.pending-Z,Z)),Fh(c),Z=d.pending,d.pending!==d.pending_buf_size));)nu(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>Z&&(c.adler=Qm(c.adler,d.pending_buf,d.pending-Z,Z));d.gzindex===d.gzhead.extra.length&&
(d.gzindex=0,d.status=73)}else d.status=73;if(d.status===73)if(d.gzhead.name){Z=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>Z&&(c.adler=Qm(c.adler,d.pending_buf,d.pending-Z,Z)),Fh(c),Z=d.pending,d.pending===d.pending_buf_size)){var M=1;break}M=d.gzindex<d.gzhead.name.length?d.gzhead.name.charCodeAt(d.gzindex++)&255:0;nu(d,M)}while(M!==0);d.gzhead.hcrc&&d.pending>Z&&(c.adler=Qm(c.adler,d.pending_buf,d.pending-Z,Z));M===0&&(d.gzindex=0,d.status=91)}else d.status=91;if(d.status===
91)if(d.gzhead.comment){Z=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>Z&&(c.adler=Qm(c.adler,d.pending_buf,d.pending-Z,Z)),Fh(c),Z=d.pending,d.pending===d.pending_buf_size)){M=1;break}M=d.gzindex<d.gzhead.comment.length?d.gzhead.comment.charCodeAt(d.gzindex++)&255:0;nu(d,M)}while(M!==0);d.gzhead.hcrc&&d.pending>Z&&(c.adler=Qm(c.adler,d.pending_buf,d.pending-Z,Z));M===0&&(d.status=103)}else d.status=103;d.status===103&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&Fh(c),
d.pending+2<=d.pending_buf_size&&(nu(d,c.adler&255),nu(d,c.adler>>8&255),c.adler=0,d.status=113)):d.status=113);if(d.pending!==0){if(Fh(c),c.avail_out===0)return d.last_flush=-1,0}else if(c.avail_in===0&&(f<<1)-(f>4?9:0)<=(q<<1)-(q>4?9:0)&&f!==4)return Aw(c,-5);if(d.status===666&&c.avail_in!==0)return Aw(c,-5);if(c.avail_in!==0||d.lookahead!==0||f!==0&&d.status!==666){q=d.strategy===2?RNY(d,f):d.strategy===3?Pok(d,f):Jw[d.level].func(d,f);if(q===3||q===4)d.status=666;if(q===1||q===3)return c.avail_out===
0&&(d.last_flush=-1),0;if(q===2&&(f===1?(lx(d,2,3),sN(d,256,bx),d.bi_valid===16?(ON(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):d.bi_valid>=8&&(d.pending_buf[d.pending++]=d.bi_buf&255,d.bi_buf>>=8,d.bi_valid-=8)):f!==5&&(lx(d,0,3),Lqk(d,0,0),f===3&&(YO(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),Fh(c),c.avail_out===0))return d.last_flush=-1,0}if(f!==4)return 0;if(d.wrap<=0)return 1;d.wrap===2?(nu(d,c.adler&255),nu(d,c.adler>>8&255),nu(d,c.adler>>16&255),nu(d,c.adler>>24&255),nu(d,
c.total_in&255),nu(d,c.total_in>>8&255),nu(d,c.total_in>>16&255),nu(d,c.total_in>>24&255)):($O(d,c.adler>>>16),$O(d,c.adler&65535));Fh(c);d.wrap>0&&(d.wrap=-d.wrap);return d.pending!==0?0:1};
xLr=function(c){if(!(this instanceof xLr))return new xLr(c);c=this.options=Bs.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},c||{});c.raw&&c.windowBits>0?c.windowBits=-c.windowBits:c.gzip&&c.windowBits>0&&c.windowBits<16&&(c.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new o0P;this.strm.avail_out=0;var f=this.strm;var d=c.level,q=c.method,Z=c.windowBits,M=c.memLevel,g=c.strategy;if(f){var O=1;d===-1&&(d=6);Z<0?(O=0,Z=-Z):Z>15&&
(O=2,Z-=16);if(M<1||M>9||q!==8||Z<8||Z>15||d<0||d>9||g<0||g>4)f=Aw(f,-2);else{Z===8&&(Z=9);var l=new ULl;f.state=l;l.strm=f;l.wrap=O;l.gzhead=null;l.w_bits=Z;l.w_size=1<<l.w_bits;l.w_mask=l.w_size-1;l.hash_bits=M+7;l.hash_size=1<<l.hash_bits;l.hash_mask=l.hash_size-1;l.hash_shift=~~((l.hash_bits+3-1)/3);l.window=new Bs.Buf8(l.w_size*2);l.head=new Bs.Buf16(l.hash_size);l.prev=new Bs.Buf16(l.w_size);l.lit_bufsize=1<<M+6;l.pending_buf_size=l.lit_bufsize*4;l.pending_buf=new Bs.Buf8(l.pending_buf_size);
l.d_buf=l.lit_bufsize;l.l_buf=3*l.lit_bufsize;l.level=d;l.strategy=g;l.method=q;if(f&&f.state){f.total_in=f.total_out=0;f.data_type=2;d=f.state;d.pending=0;d.pending_out=0;d.wrap<0&&(d.wrap=-d.wrap);d.status=d.wrap?42:113;f.adler=d.wrap===2?0:1;d.last_flush=0;if(!GXM){q=Array(16);for(M=g=0;M<28;M++)for(Vvr[M]=g,Z=0;Z<1<<amz[M];Z++)ix[g++]=M;ix[g-1]=M;for(M=g=0;M<16;M++)for(uwG[M]=g,Z=0;Z<1<<XSk[M];Z++)Tr[g++]=M;for(g>>=7;M<30;M++)for(uwG[M]=g<<7,Z=0;Z<1<<XSk[M]-7;Z++)Tr[256+g++]=M;for(Z=0;Z<=15;Z++)q[Z]=
0;for(Z=0;Z<=143;)bx[Z*2+1]=8,Z++,q[8]++;for(;Z<=255;)bx[Z*2+1]=9,Z++,q[9]++;for(;Z<=279;)bx[Z*2+1]=7,Z++,q[7]++;for(;Z<=287;)bx[Z*2+1]=8,Z++,q[8]++;$Lk(bx,287,q);for(Z=0;Z<30;Z++)Ku[Z*2+1]=5,Ku[Z*2]=n0e(Z,5);cYN=new Kqz(bx,amz,257,286,15);f_e=new Kqz(Ku,XSk,0,30,15);dhN=new Kqz([],ja4,0,19,7);GXM=!0}d.l_desc=new E0k(d.dyn_ltree,cYN);d.d_desc=new E0k(d.dyn_dtree,f_e);d.bl_desc=new E0k(d.bl_tree,dhN);d.bi_buf=0;d.bi_valid=0;QVk(d);d=0}else d=Aw(f,-2);d===0&&(f=f.state,f.window_size=2*f.w_size,YO(f.head),
f.max_lazy_match=Jw[f.level].max_lazy,f.good_match=Jw[f.level].good_length,f.nice_match=Jw[f.level].nice_length,f.max_chain_length=Jw[f.level].max_chain,f.strstart=0,f.block_start=0,f.lookahead=0,f.insert=0,f.match_length=f.prev_length=2,f.match_available=0,f.ins_h=0);f=d}}else f=-2;if(f!==0)throw Error(Hs[f]);c.header&&(f=this.strm)&&f.state&&f.state.wrap===2&&(f.state.gzhead=c.header);if(c.dictionary){var m;typeof c.dictionary==="string"?m=qkz(c.dictionary):Z$P.call(c.dictionary)==="[object ArrayBuffer]"?
m=new Uint8Array(c.dictionary):m=c.dictionary;c=this.strm;M=m;g=M.length;if(c&&c.state)if(m=c.state,f=m.wrap,f===2||f===1&&m.status!==42||m.lookahead)f=-2;else{f===1&&(c.adler=NDh(c.adler,M,g,0));m.wrap=0;g>=m.w_size&&(f===0&&(YO(m.head),m.strstart=0,m.block_start=0,m.insert=0),d=new Bs.Buf8(m.w_size),Bs.arraySet(d,M,g-m.w_size,m.w_size,0),M=d,g=m.w_size);d=c.avail_in;q=c.next_in;Z=c.input;c.avail_in=g;c.next_in=0;c.input=M;for(S6(m);m.lookahead>=3;){M=m.strstart;g=m.lookahead-2;do m.ins_h=(m.ins_h<<
m.hash_shift^m.window[M+3-1])&m.hash_mask,m.prev[M&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=M,M++;while(--g);m.strstart=M;m.lookahead=2;S6(m)}m.strstart+=m.lookahead;m.block_start=m.strstart;m.insert=m.lookahead;m.lookahead=0;m.match_length=m.prev_length=2;m.match_available=0;c.next_in=q;c.input=Z;c.avail_in=d;m.wrap=f;f=0}else f=-2;if(f!==0)throw Error(Hs[f]);this._dict_set=!0}};
MBC=function(c,f){f=f||{};f.gzip=!0;f=new xLr(f);f.push(c,!0);if(f.err)throw f.msg||Hs[f.err];return f.result};
CaM=function(c,f){var d=rYz();d&&d.publish.call(d,c.toString(),c,f)};
saP=function(c,f,d){var q=rYz();if(!q)return 0;var Z=q.subscribe(c.toString(),function(M,g){var O=_.D5("ytPubsub2Pubsub2SkipSubKey");O&&O==Z||(O=function(){if(gEC[Z])try{if(g&&c instanceof kaP&&c!=M)try{var l=c.dataClass,m=g;if(!m.args||!m.version)throw Error("Wc");try{if(!l.version_){var H=new l;l.version_=H.version}var A=l.version_}catch(Y){}if(!A||m.version!=A)throw Error("Xc");try{g=Reflect.construct(l,_.yn(m.args))}catch(Y){throw Y.message="yt.pubsub2.Data.deserialize(): "+Y.message,Y;}}catch(Y){throw Y.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+c.toString()+": "+Y.message,Y;}f.call(d||window,g)}catch(Y){_.yJ(Y)}},O$N[c.toString()]?_.D5("yt.scheduler.instance")?_.a7.addLowPriorityJob(O):_.Oz(O,0):O())});
gEC[Z]=!0;l_N[c.toString()]||(l_N[c.toString()]=[]);l_N[c.toString()].push(Z);return Z};
mhC=function(){var c=B1l,f=saP(i$h,function(d){c.apply(void 0,arguments);T1N(f)});
return f};
T1N=function(c){var f=rYz();f&&(typeof c==="number"&&(c=[c]),_.Iw(c,function(d){f.unsubscribeByKey(d);delete gEC[d]}))};
rYz=function(){return _.D5("ytPubsub2Pubsub2Instance")};
H$k=function(c,f,d){d=d===void 0?{sampleRate:.1}:d;Math.random()<Math.min(.02,d.sampleRate/100)&&CaM("meta_logging_csi_event",{timerName:c,timelineData:f})};
_.AYe=function(c){return c?(c=c.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.pq(c):null:null};
_.Vm=function(c){return c?(c=c.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.bX(c):null:null};
F5P=function(){Ykh||(Ykh=_.Vm(_.hk("WORKER_SERIALIZATION_URL")));return Ykh||void 0};
_.b$k=function(){var c=F5P();tBz||c===void 0||(tBz=new Worker(_.Kq(c),void 0));return tBz};
_.K5M=function(){return typeof Worker==="function"&&F5P()?!0:!1};
_.Qae=function(){if(_.K5M()&&!EEN){var c=function(d){d=d.data;if(d.op==="gzippedGelBatch"){var q=nEC.get(d.key);q&&($hk(d.gzippedBatch,q.latencyPayload,q.url,q.options,q.sendFn),nEC.delete(d.key))}},f=_.b$k();
f&&(f.addEventListener("message",c),f.onerror=function(){nEC.clear()},EEN=!0)}};
Xje=function(c,f,d,q,Z){Z=Z===void 0?!1:Z;var M={startTime:(0,_.qR)(),ticks:{},infos:{}};if(Xh)try{var g=Skr(f);if(g!=null&&(g>L5h||g<zBr))q(c,d);else{if(_.F("gzip_gel_with_worker")&&(_.F("initial_gzip_use_main_thread")&&!JYY||!_.F("initial_gzip_use_main_thread"))){EEN||_.Qae();var O=_.b$k();if(O&&!Z){nEC.set(a_n,{latencyPayload:M,url:c,options:d,sendFn:q});O.postMessage({op:"gelBatchToGzip",serializedBatch:f,key:a_n});a_n++;return}}var l=MBC(VBn(f));$hk(l,M,c,d,q)}}catch(m){_.eZ(m),q(c,d)}else q(c,
d)};
$hk=function(c,f,d,q,Z){JYY=!1;var M=(0,_.qR)();f.ticks.gelc=M;ux++;_.F("disable_compression_due_to_performance_degredation")&&M-f.startTime>=uje&&(vEk++,_.F("abandon_compression_after_N_slow_zips")?ux===_.rx("compression_disable_point")&&vEk>hBh&&(Xh=!1):Xh=!1);wjG(f);q.headers||(q.headers={});q.headers["Content-Encoding"]="gzip";q.postBody=c;q.postParams=void 0;Z(d,q)};
yY4=function(c){var f=f===void 0?!1:f;var d=d===void 0?!1:d;var q=(0,_.qR)(),Z={startTime:q,ticks:{},infos:{}},M=f?_.D5("yt.logging.gzipForFetch",!1):!0;if(Xh&&M){if(!c.body)return c;try{var g=d?c.body:typeof c.body==="string"?c.body:JSON.stringify(c.body);M=g;if(!d&&typeof g==="string"){var O=Skr(g);if(O!=null&&(O>L5h||O<zBr))return c;d=f?{level:1}:void 0;M=MBC(VBn(g),d);var l=(0,_.qR)();Z.ticks.gelc=l;if(f){ux++;if((_.F("disable_compression_due_to_performance_degredation")||_.F("disable_compression_due_to_performance_degradation_lr"))&&
l-q>=uje)if(vEk++,_.F("abandon_compression_after_N_slow_zips")||_.F("abandon_compression_after_N_slow_zips_lr")){f=vEk/ux;var m=hBh/_.rx("compression_disable_point");ux>0&&ux%_.rx("compression_disable_point")===0&&f>=m&&(Xh=!1)}else Xh=!1;wjG(Z)}}c.headers=Object.assign({},{"Content-Encoding":"gzip"},c.headers||{});c.body=M;return c}catch(H){return _.eZ(H),c}}else return c};
Skr=function(c){try{return(new Blob(c.split(""))).size}catch(f){return _.eZ(f),null}};
wjG=function(c){_.F("gel_compression_csi_killswitch")||!_.F("log_gel_compression_latency")&&!_.F("log_gel_compression_latency_lr")||H$k("gel_compression",c,{sampleRate:.1})};
W54=function(){this.blockSize=-1};
vs=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var c=1;c<this.blockSize;++c)this.pad_[c]=0;this.total_=this.inbuf_=0;this.reset()};
eBr=function(c){c=Object.assign({},c);delete c.Authorization;var f=_.Dhe();if(f){var d=new vs;d.update(_.hk("INNERTUBE_API_KEY"));d.update(f);c.hash=_.$S(d.digest(),3)}return c};
wR=function(){N1Y||(N1Y=new _.hw("yt.innertube"));return N1Y};
I_C=function(c,f,d,q){if(q)return null;q=wR().get("nextId",!0)||1;var Z=wR().get("requests",!0)||{};Z[q]={method:c,request:f,authState:eBr(d),requestTime:Math.round((0,_.qR)())};wR().set("nextId",q+1,86400,!0);wR().set("requests",Z,86400,!0);return q};
Pae=function(c){var f=wR().get("requests",!0)||{};delete f[c];wR().set("requests",f,86400,!0)};
Uhn=function(c){var f=wR().get("requests",!0);if(f){for(var d in f){var q=f[d];if(!(Math.round((0,_.qR)())-q.requestTime<6E4)){var Z=q.authState,M=eBr(_.tvP(!1));_.zV.equals(Z,M)&&(Z=q.request,"requestTimeMs"in Z&&(Z.requestTimeMs=Math.round((0,_.qR)())),RBY(c,q.method,Z,{}));delete f[d]}}wR().set("requests",f,86400,!0)}};
pjN=function(c){var f;return(c=c==null?void 0:(f=c.error)==null?void 0:f.code)&&c>=400&&c<=599?!1:!0};
xhY=function(c){var f;c=c==null?void 0:(f=c.error)==null?void 0:f.code;return!(c!==400&&c!==415)};
GaM=function(){if(oEP)return oEP();var c={};oEP=j6("LogsDatabaseV2",{objectStores:(c.LogsRequestsStore={addedAtVersion:2},c),shared:!1,upgrade:function(f,d,q){d(2)&&ym(f,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});d(3);d(5)&&(q=q.objectStore("LogsRequestsStore"),q.JSC$10585_wrapped.indexNames.contains("newRequest")&&q.JSC$10585_wrapped.deleteIndex("newRequest"),Ws(q,"newRequestV2",["status","interface","timestamp"]));d(7)&&f.JSC$10570_wrapped.objectStoreNames.contains("sapisid")&&f.JSC$10570_wrapped.deleteObjectStore("sapisid");
d(9)&&f.JSC$10570_wrapped.objectStoreNames.contains("SWHealthLog")&&f.JSC$10570_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return oEP()};
De=function(c){return _.Uz(GaM(),c)};
f9P=function(c,f){var d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return d={startTime:(0,_.qR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.yield(De(f),2);if(g.nextAddress!=3)return q=g.yieldResult,Z=Object.assign({},c,{options:JSON.parse(JSON.stringify(c.options)),interface:_.hk("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.yield(q.put("LogsRequestsStore",Z),3);M=g.yieldResult;d.ticks.tc=(0,_.qR)();ceY(d);return g.return(M)})};
dVh=function(c,f){var d,q,Z,M,g,O,l,m,H;return _.k(function(A){if(A.nextAddress==1)return d={startTime:(0,_.qR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},A.yield(De(f),2);if(A.nextAddress!=3)return q=A.yieldResult,Z=_.hk("INNERTUBE_CONTEXT_CLIENT_NAME",0),M=[c,Z,0],g=[c,Z,(0,_.qR)()],O=IDBKeyRange.bound(M,g),l="prev",_.F("use_fifo_for_networkless")&&(l="next"),m=void 0,H=c==="NEW"?"readwrite":"readonly",_.F("use_readonly_for_get_most_recent_by_status_killswitch")&&(H="readwrite"),
A.yield(_.pD(q,["LogsRequestsStore"],{mode:H,enableRetries:!0},function(Y){return _.Ze(Y.objectStore("LogsRequestsStore").index("newRequestV2"),{query:O,direction:l},function(t){t.getValue()&&(m=t.getValue(),c==="NEW"&&(m.status="QUEUED",t.update(m)))})}),3);
d.ticks.tc=(0,_.qR)();ceY(d);return A.return(m)})};
jfC=function(c,f){var d;return _.k(function(q){if(q.nextAddress==1)return q.yield(De(f),2);d=q.yieldResult;return q.return(_.pD(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Z){var M=Z.objectStore("LogsRequestsStore");return M.get(c).then(function(g){if(g)return g.status="QUEUED",M.put(g).then(function(){return g})})}))})};
qDh=function(c,f,d,q){d=d===void 0?!0:d;var Z;return _.k(function(M){if(M.nextAddress==1)return M.yield(De(f),2);Z=M.yieldResult;return M.return(_.pD(Z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(g){var O=g.objectStore("LogsRequestsStore");return O.get(c).then(function(l){return l?(l.status="NEW",d&&(l.sendCount+=1),q!==void 0&&(l.options.compress=q),O.put(l).then(function(){return l})):Wq.resolve(void 0)})}))})};
Zxn=function(c,f){var d;return _.k(function(q){if(q.nextAddress==1)return q.yield(De(f),2);d=q.yieldResult;return q.return(d.delete("LogsRequestsStore",c))})};
MqG=function(c){var f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(De(c),2);f=q.yieldResult;d=(0,_.qR)()-2592E6;return q.yield(_.pD(f,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Z){return oo(Z.objectStore("LogsRequestsStore"),{},function(M){if(M.getValue().timestamp<=d)return M.delete().then(function(){return M.continue()})})}),0)})};
reh=function(){_.k(function(c){return c.yield(pbG("LogsDatabaseV2"),0)})};
ceY=function(c){_.F("nwl_csi_killswitch")||H$k("networkless_performance",c,{sampleRate:1})};
_.gpC=function(c){return _.Uz(CPC(),c)};
kue=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(_.gpC(c),2);f=q.yieldResult;d=(0,_.qR)()-2592E6;return q.yield(_.pD(f,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Z){return oo(Z.objectStore("SWHealthLog"),{},function(M){if(M.getValue().timestamp<=d)return M.delete().then(function(){return M.continue()})})}),0)})};
OxY=function(c){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(_.gpC(c),2);f=d.yieldResult;return d.yield(f.clear("SWHealthLog"),0)})};
_.e6=function(c,f,d,q,Z,M,g){Z=Z===void 0?"":Z;M=M===void 0?!1:M;g=g===void 0?!1:g;if(c)if(d&&!vq("cobalt"))_.eZ(new _.KD("Legacy referrer-scrubbed ping detected")),c&&l9N(c,void 0,{scrubReferrer:!0});else if(Z)h5n(c,f,"POST",Z,q);else if(_.hk("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||q||g)h5n(c,f,"GET","",q,void 0,M,g);else{b:{try{c:{var O=new sfl({url:c});if(O.urlParamValues_.dsh==="1")var l=null;else{var m=O.urlParamValues_.ae;if(m==="1"){var H=O.urlParamValues_.adurl;if(H)try{l={version:3,directUrl:decodeURIComponent(H),
asyncUrl:n5n(O.JSC$9418_url_,"act=1","ri=1",BNY(O))};break c}catch(E){}}l=m==="2"?{version:4,directUrl:n5n(O.JSC$9418_url_,"dct=1","suid="+O.suid_,""),asyncUrl:n5n(O.JSC$9418_url_,"act=1","ri=1","suid="+O.suid_)}:null}}if(l){var A=_.Bq(c);var Y=!(!A||!A.endsWith("/aclk")||_.y2(c,"ri")!=="1");break b}}catch(E){}Y=!1}if(Y){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(c,"")){var t=!0;break b}}catch(E){}t=!1}t?(f&&f(),d=!0):d=!1}else d=!1;d||l9N(c,f)}};
l9N=function(c,f,d){d=d===void 0?{}:d;var q=new Image,Z=""+ixz++;TNk[Z]=q;q.onload=q.onerror=function(){f&&TNk[Z]&&f();delete TNk[Z]};
d.scrubReferrer&&(q.referrerPolicy="no-referrer");q.src=c};
NR=function(c,f){mVh(c,f==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Hxz=function(c){var f;return((f=document.featurePolicy)==null?0:f.allowedFeatures().includes("attribution-reporting"))?c+"&nis=6":c+"&nis=5"};
Aer=function(c){if(!c)return!1;try{var f;if(((f=_.PC(c))==null?void 0:f.asm)==="4")return!0}catch(d){_.yJ(d)}return!1};
mVh=function(c,f){f?(c=Hxz(c),_.e6(c,void 0,void 0,void 0,"",!0,!0)):_.e6(c)};
Ftk=function(){YDN||(YDN=new _.hw("yt.offline"));return YDN};
tqr=function(c){if(_.F("offline_error_handling")){var f=Ftk().get("errors",!0)||{};f[c.message]={name:c.name,stack:c.stack};c.level&&(f[c.message].level=c.level);Ftk().set("errors",f,2592E3,!0)}};
Kte=function(c,f,d,q){q=q===void 0?!1:q;f=_.F("web_fp_via_jspb")?Object.assign({},f):f;_.F("use_cfr_monitor")&&bxh(c,f);if(_.F("use_request_time_ms_header"))f.headers&&cq(c)&&(f.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.qR)())));else{var Z;if((Z=f.postParams)==null?0:Z.requestTimeMs)f.postParams.requestTimeMs=Math.round((0,_.qR)())}d&&Object.keys(f).length===0?_.e6(c):f.compress?f.postBody?(typeof f.postBody!=="string"&&(f.postBody=JSON.stringify(f.postBody)),Xje(c,f.postBody,
f,_.iF,q)):Xje(c,JSON.stringify(f.postParams),f,D9C,q):_.iF(c,f)};
EpG=function(c,f){_.F("use_event_time_ms_header")&&cq(c)&&(f.headers||(f.headers={}),f.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.qR)())));return f};
_.$VG=function(){npl||(npl=new _.I7({logOfflineErrors:!0,enablePolling:!0}));return npl};
bxh=function(c,f){var d=f.onError?f.onError:function(){};
f.onError=function(Z,M){Ps().requestComplete(c,!1);d(Z,M)};
var q=f.onSuccess?f.onSuccess:function(){};
f.onSuccess=function(Z,M){Ps().requestComplete(c,!0);q(Z,M)}};
_.Qf4=function(){return _.ow(document.location.toString())!=="www.youtube-nocookie.com"};
_.zDN=function(){return _.D5("ytNetworklessLoggingInitializationOptions")?_.SDh.isNwlInitialized:_.LtC};
Je4=function(c,f){if(_.F("polymer_on_demand_shady_dom")){var d;var q=(d=c.__shady_native_firstElementChild)!=null?d:c.firstElementChild}else q=c.firstElementChild;for(;q;){if(c=f(q)?q:Je4(q,f))return c;q=q.nextElementSibling}return null};
VqG=function(){var c=document;if("visibilityState"in c)return c.visibilityState;var f=a9z+"VisibilityState";if(f in c)return c[f]};
_.Xhh=function(c,f){var d;R7(c,function(q){d=f[q];return!!d});
return d};
_.xO=function(c){var f=uNY(c);f?f.focus(void 0):_.UN(c)};
uNY=function(c){return(c=Je4(c,function(f){return _.Gr(f)?vpn(f)&&!!f.offsetParent:!1}))?c:null};
_.UN=function(c,f){c.hasAttribute("tabindex")||c.setAttribute("tabindex","-1");c.focus(f)};
hD4=function(c,f,d,q){q=q===void 0?{}:q;c.addEventListener&&(f!="mouseenter"||"onmouseenter"in document?f!="mouseleave"||"onmouseenter"in document?f=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(f="MozMousePixelScroll"):f="mouseout":f="mouseover");return _.zV.findKey(cw,function(Z){var M=typeof Z[4]==="boolean"&&Z[4]==!!q,g=_.Ik(Z[4])&&_.Ik(q)&&_.zV.equals(Z[4],q);return!!Z.length&&Z[0]==c&&Z[1]==f&&Z[2]==d&&(M||g)})};
_.dK=function(c,f,d,q){q=q===void 0?{}:q;if(!c||!c.addEventListener&&!c.attachEvent)return"";var Z=hD4(c,f,d,q);if(Z)return Z;Z=++whM.count+"";var M=!(f!="mouseenter"&&f!="mouseleave"||!c.addEventListener||"onmouseenter"in document);var g=M?function(O){O=new fW(O);if(!_.vv(O.relatedTarget,function(l){return l==c},!0))return O.currentTarget=c,O.type=f,d.call(c,O)}:function(O){O=new fW(O);
O.currentTarget=c;return d.call(c,O)};
g=_.WC(g);c.addEventListener?(f=="mouseenter"&&M?f="mouseover":f=="mouseleave"&&M?f="mouseout":f=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(f="MozMousePixelScroll"),yeP()||typeof q==="boolean"?c.addEventListener(f,g,q):c.addEventListener(f,g,!!q.capture)):c.attachEvent("on"+f,g);cw[Z]=[c,f,d,g,q];return Z};
_.DVN=function(c,f,d){var q=q===void 0?{}:q;var Z=_.dK(c,f,function(){_.Wtz(Z);d.apply(c,arguments)},q)};
_.Wtz=function(c){c&&(typeof c=="string"&&(c=[c]),_.Iw(c,function(f){if(f in cw){var d=cw[f],q=d[0],Z=d[1],M=d[3];d=d[4];q.removeEventListener?yeP()||typeof d==="boolean"?q.removeEventListener(Z,M,d):q.removeEventListener(Z,M,!!d.capture):q.detachEvent&&q.detachEvent("on"+Z,M);delete cw[f]}}))};
j_=function(c){this.callback_=c;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(c=0;c<4;c++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.dK(window,"mousemove",(0,_.n1)(this.onMouseMove_,this));this.timerId_=_.lF((0,_.n1)(this.checkPosition_,this),25)};
NNC=function(){var c={};var f=c.preferMobileEvents===void 0?!1:c.preferMobileEvents;c=c.enableScrollEventListener===void 0?!0:c.enableScrollEventListener;if(_.D5("_lact",window)==null){var d=parseInt(_.hk("LACT"),10);d=isFinite(d)?Date.now()-Math.max(d,0):-1;_.fu("_lact",d,window);_.fu("_fact",d,window);d==-1&&_.qu();_.dK(document,"keydown",_.qu);_.dK(document,"keyup",_.qu);_.dK(document,"mousedown",_.qu);_.dK(document,"mouseup",_.qu);f?_.dK(window,"touchmove",function(){eDY("touchmove",200)},{passive:!0}):
(_.dK(window,"resize",function(){eDY("resize",200)}),c&&_.dK(window,"scroll",function(){eDY("scroll",200)}));
new j_(function(){eDY("mouse",100)});
_.dK(document,"touchstart",_.qu,{passive:!0});_.dK(document,"touchend",_.qu,{passive:!0})}};
eDY=function(c,f){I9l[c]||(I9l[c]=!0,_.a7.addLowPriorityJob(function(){_.qu();I9l[c]=!1},f))};
_.qu=function(){_.D5("_lact",window)==null&&NNC();var c=Date.now();_.fu("_lact",c,window);_.D5("_fact",window)==-1&&_.fu("_fact",c,window);(c=_.D5("ytglobal.ytUtilActivityCallback_"))&&c()};
_.ZZ=function(){var c=_.D5("_lact",window);return c==null?-1:Math.max(Date.now()-c,0)};
_.gK=function(c,f,d){var q=_.Mu();if(q&&f){var Z=q.subscribe(c,function(){var M=arguments,g=function(){rK[Z]&&f.apply&&typeof f.apply=="function"&&f.apply(d||window,M)};
try{_.PP4[c]?g():_.Oz(g,0)}catch(O){_.yJ(O)}},d);
rK[Z]=!0;CW[c]||(CW[c]=[]);CW[c].push(Z);return Z}return 0};
_.RDn=function(c){var f=_.Mu();f&&(typeof c==="number"?c=[c]:typeof c==="string"&&(c=[parseInt(c,10)]),_.Iw(c,function(d){f.unsubscribeByKey(d);delete rK[d]}))};
_.UVk=function(c,f){var d=_.Mu();d&&d.publish.apply(d,arguments)};
_.xVP=function(c){var f=_.Mu();if(f)if(f.clear(c),c)phr(c);else for(var d in CW)phr(d)};
_.Mu=function(){return _.dz.ytPubsubPubsubInstance};
phr=function(c){CW[c]&&(c=CW[c],_.Iw(c,function(f){rK[f]&&delete rK[f]}),c.length=0)};
opM=function(){var c,f;return"h5vcc"in kz&&((c=kz.h5vcc.traceEvent)==null?0:c.traceBegin)&&((f=kz.h5vcc.traceEvent)==null?0:f.traceEnd)?1:"performance"in kz&&kz.performance.mark&&kz.performance.measure?2:0};
GuN=function(c){var f=opM();switch(f){case 1:kz.h5vcc.traceEvent.traceBegin("YTLR",c);break;case 2:kz.performance.mark(c+"-start");break;case 0:break;default:_.WH(f,"unknown trace type")}};
cpr=function(c){var f=opM();switch(f){case 1:kz.h5vcc.traceEvent.traceEnd("YTLR",c);break;case 2:f=c+"-start";var d=c+"-end";kz.performance.mark(d);kz.performance.measure(c,f,d);break;case 0:break;default:_.WH(f,"unknown trace type")}};
f7e=function(c){var f,d;(d=(f=window).onerror)==null||d.call(f,c.message,"",0,0,c)};
d5C=function(c){if(_.F("web_lifecycle_error_handling_killswitch"))return c();try{return c()}catch(f){f7e(f)}};
jTh=function(c){return[c.auth===void 0?"undefined":c.auth,c.isJspb===void 0?"undefined":c.isJspb,c.cttAuthInfo===void 0?"undefined":c.cttAuthInfo,c.tier===void 0?"undefined":c.tier].join("/")};
_.b=function(c,f){if(c)return c[f.name]};
l6=function(){var c=_.D5("yt.logging.ims");c||(c=new Om,_.fu("yt.logging.ims",c));return c};
l7z=function(c,f){if(c.endpoint==="log_event"){qVN(c);var d=Zsz(c),q=MCY(c.payload)||"",Z=rpr(q),M=200;if(Z){if(Z.enabled===!1&&!_.F("web_payload_policy_disabled_killswitch"))return;M=CSn(Z.tier);if(M===400){gZz(c,f);return}}sm[d]=!0;d={cttAuthInfo:d,isJspb:!1,tier:M};l6().storePayload(d,c.payload);k3z(f,!1,d,OsP(q))}};
B_k=function(c,f,d){if(f.endpoint==="log_event"){qVN(void 0,f);var q=Zsz(f,!0),Z=rpr(c),M=200;if(Z){if(Z.enabled===!1&&!_.F("web_payload_policy_disabled_killswitch"))return;M=CSn(Z.tier);if(M===400){sTY(c,f,d);return}}sm[q]=!0;q={cttAuthInfo:q,isJspb:!0,tier:M};l6().storePayload(q,L3(f.payload));k3z(d,!0,q,OsP(c))}};
k3z=function(c,f,d,q){f=f===void 0?!1:f;q=q===void 0?!1:q;c&&(Bw=new c);c=_.rx("tvhtml5_logging_max_batch_ads_fork")||_.rx("tvhtml5_logging_max_batch")||_.rx("web_logging_max_batch")||100;var Z=(0,_.qR)(),M=isN(f,d.tier),g=M.lastDebounceQueueFromLogTimeMs;q&&(M.useVideoStatsEndPoint=!0);q=0;d&&(q=l6().getSequenceCount(d));var O=function(){T_k({writeThenSend:!0},f,d.tier)};
q>=1E3?O():q>=c?m5n||(m5n=Hsk(function(){O();m5n=void 0},0)):Z-g>=10&&(Apn(f,d.tier),M.lastDebounceQueueFromLogTimeMs=Z)};
gZz=function(c,f){if(c.endpoint==="log_event"){_.F("more_accurate_gel_parser")&&l6().storePayload({isJspb:!1},c.payload);qVN(c);var d=Zsz(c),q=new Map;q.set(d,[c.payload]);var Z=MCY(c.payload)||"";f&&(Bw=new f);return new _.i6(function(M,g){Bw&&Bw.isReady()?YVh(q,Bw,M,g,{bypassNetworkless:!0},!0,OsP(Z)):M()})}};
sTY=function(c,f,d){if(f.endpoint==="log_event"){qVN(void 0,f);var q=Zsz(f,!0),Z=new Map;Z.set(q,[L3(f.payload)]);d&&(Bw=new d);return new _.i6(function(M){Bw&&Bw.isReady()?F$e(Z,Bw,M,{bypassNetworkless:!0},!0,OsP(c)):M()})}};
Zsz=function(c,f){var d="";if(c.dangerousLogToVisitorSession)d="visitorOnlyApprovedKey";else if(c.cttAuthInfo){if(f===void 0?0:f){f=c.cttAuthInfo.token;d=c.cttAuthInfo;var q=new tCk;d.videoId?q.setVideoId(d.videoId):d.playlistId&&TP(q,2,bsr,lC(d.playlistId));K$n[f]=q}else f=c.cttAuthInfo,d={},f.videoId?d.videoId=f.videoId:f.playlistId&&(d.playlistId=f.playlistId),EZn[c.cttAuthInfo.token]=d;d=c.cttAuthInfo.token}return d};
T_k=function(c,f,d){c=c===void 0?{}:c;f=f===void 0?!1:f;new _.i6(function(q,Z){var M=isN(f,d),g=M.useVideoStatsEndPoint;M.useVideoStatsEndPoint=!1;nZk(M.queueTimer);nZk(M.queueMaxTimer);M.queueMaxTimer=0;Bw&&Bw.isReady()?d===void 0&&_.F("enable_web_tiered_gel")?$5z(q,Z,c,f,300,g):$5z(q,Z,c,f,d,g):(Apn(f,d),q())})};
$5z=function(c,f,d,q,Z,M){var g=Bw;d=d===void 0?{}:d;q=q===void 0?!1:q;Z=Z===void 0?200:Z;M=M===void 0?!1:M;var O=new Map,l=new Map,m={isJspb:q,cttAuthInfo:void 0,tier:Z},H={isJspb:q,cttAuthInfo:void 0};if(q){f=_.C(Object.keys(sm));for(Z=f.next();!Z.done;Z=f.next())Z=Z.value,l=_.F("enable_web_tiered_gel")?l6().smartExtractMatchingEntries({keys:[m,H],sizeLimit:1E3}):l6().extractMatchingEntries({isJspb:!0,cttAuthInfo:Z}),l.length>0&&O.set(Z,l),(_.F("web_fp_via_jspb_and_json")&&d.writeThenSend||!_.F("web_fp_via_jspb_and_json"))&&
delete sm[Z];F$e(O,g,c,d,!1,M)}else{O=_.C(Object.keys(sm));for(m=O.next();!m.done;m=O.next())m=m.value,H=_.F("enable_web_tiered_gel")?l6().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:m,tier:Z},{isJspb:!1,cttAuthInfo:m}],sizeLimit:1E3}):l6().extractMatchingEntries({isJspb:!1,cttAuthInfo:m}),H.length>0&&l.set(m,H),(_.F("web_fp_via_jspb_and_json")&&d.writeThenSend||!_.F("web_fp_via_jspb_and_json"))&&delete sm[m];YVh(l,g,c,f,d,!1,M)}};
Apn=function(c,f){c=c===void 0?!1:c;f=f===void 0?200:f;var d=function(){T_k({writeThenSend:!0},c,f)},q=isN(c,f),Z=q===QTk||q===SV4?5E3:L$l;
_.F("web_gel_timeout_cap")&&!q.queueMaxTimer&&(Z=Hsk(function(){d()},Z),q.queueMaxTimer=Z);
nZk(q.queueTimer);Z=_.hk("LOGGING_BATCH_TIMEOUT",_.rx("web_gel_debounce_ms",1E4));_.F("shorten_initial_gel_batch_timeout")&&zYP&&(Z=JpM);Z=Hsk(function(){_.rx("gel_min_batch_size")>0?l6().getSequenceCount({cttAuthInfo:void 0,isJspb:c,tier:f})>=a7r&&d():d()},Z);
q.queueTimer=Z};
YVh=function(c,f,d,q,Z,M,g){Z=Z===void 0?{}:Z;var O=Math.round((0,_.qR)()),l=c.size,m=VCl(g);c=_.C(c);var H=c.next();for(g={};!H.done;g={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},H=c.next()){var A=_.C(H.value);H=A.next().value;A=A.next().value;g.batchRequest=_.zV.unsafeClone({context:_.sVN(f.config_||_.MR())});if(!_.WN(A)&&!_.F("throw_err_when_logevent_malformed_killswitch")){q();break}g.batchRequest.events=A;
(A=EZn[H])&&Xrk(g.batchRequest,H,A);delete EZn[H];g.dangerousLogToVisitorSession=H==="visitorOnlyApprovedKey";uYe(g.batchRequest,O,g.dangerousLogToVisitorSession);vZG(Z);g.onSuccess$jscomp$3=function(Y){_.F("start_client_gcf")&&_.a7.addLowPriorityJob(function(){return _.k(function(t){return t.yield(hYN(Y),0)})});
l--;l||d()};
g.networkFailures=0;g.onError$jscomp$5=function(Y){return function(){Y.networkFailures++;if(Z.bypassNetworkless&&Y.networkFailures===1)try{RBY(f,m,Y.batchRequest,wrh({writeThenSend:!0},Y.dangerousLogToVisitorSession,Y.onSuccess$jscomp$3,Y.onError$jscomp$5,M)),zYP=!1}catch(t){_.yJ(t),q()}l--;l||d()}}(g);
try{RBY(f,m,g.batchRequest,wrh(Z,g.dangerousLogToVisitorSession,g.onSuccess$jscomp$3,g.onError$jscomp$5,M)),zYP=!1}catch(Y){_.yJ(Y),q()}}};
F$e=function(c,f,d,q,Z,M){q=q===void 0?{}:q;var g=Math.round((0,_.qR)()),O={value:c.size},l=new Map([].concat(_.LT(c)));l=_.C(l);for(var m=l.next();!m.done;m=l.next()){var H=_.C(m.value).next().value,A=c.get(H);m=new ypY;var Y=f.config_||_.MR(),t=new mj,E=new W$n;_.b5(E,1,Y.innertubeContextHostLanguage);_.b5(E,2,Y.innertubeContextGeoLocation);_.rR(E,16,Y.innertubeContextClientNameFieldNumber);_.b5(E,17,Y.innertubeContextClientVersion);if(Y.innertubeContextClientConfigInfo){var J=Y.innertubeContextClientConfigInfo,
X=new gR;J.coldConfigData&&_.b5(X,1,J.coldConfigData);J.appInstallData&&_.b5(X,6,J.appInstallData);J.coldHashData&&_.b5(X,3,J.coldHashData);J.hotHashData&&X.setHotHashData(J.hotHashData);_.BU(E,62,X)}(J=_.dz.devicePixelRatio)&&J!=1&&_.Cu(E,65,_.DO(J));J=SXC();J!==""&&_.b5(E,54,J);J=LnN();if(J.length>0){X=new D5M;for(var u=0;u<J.length;u++){var W=new Hw;W.setKey(J[u].key);TP(W,2,eYN,lC(J[u].value));AN(X,15,Hw,W)}_.BU(t,5,X)}rhG(Y,E);CoP(t);g0k(E);kXN(Y,E);OXl(E);_.F("start_client_gcf")&&lmM(E);_.hk("DELEGATED_SESSION_ID")&&
!_.F("pageid_as_header_web")&&(Y=new Yz,_.b5(Y,3,_.hk("DELEGATED_SESSION_ID")));!_.F("fill_delegate_context_in_gel_killswitch")&&(J=_.hk("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(X=_.TD(t,Yz,3)||new Yz,Y=t,J=_.b5(X,18,J),_.BU(Y,3,J));Y=E;J=_.C(Object.entries(_.PC(_.hk("DEVICE",""))));for(X=J.next();!X.done;X=J.next())u=_.C(X.value),X=u.next().value,u=u.next().value,X==="cbrand"?_.b5(Y,12,u):X==="cmodel"?_.b5(Y,13,u):X==="cbr"?_.b5(Y,87,u):X==="cbrver"?_.b5(Y,88,u):X==="cos"?_.b5(Y,18,
u):X==="cosver"?_.b5(Y,19,u):X==="cplatform"&&_.rR(Y,42,MUN(u));t.setClient(E);_.BU(m,1,t);if(E=K$n[H])a:{if(_.Hu(E,FX(E,bsr,1)))t=1;else if(E.getPlaylistId())t=2;else break a;_.BU(m,4,E);E=m.getContext()||new mj;Y=_.TD(E,Yz,3)||new Yz;J=new tN;J.setToken(H);_.rR(J,1,t);AN(Y,12,tN,J);_.BU(E,3,Y)}delete K$n[H];H=H==="visitorOnlyApprovedKey";N_k()||_.b6(m,2,g);!H&&(t=_.hk("EVENT_ID"))&&(E=I7l(),Y=new PSl,_.b5(Y,1,t),_.b6(Y,2,E),_.BU(m,5,Y));vZG(q);if(_.F("jspb_serialize_with_worker")&&(t=_.b$k())&&
q.writeThenSend){_.RYC.set(U5N,{client:f,resolve:d,networklessOptions:q,isIsolated:Z,useVSSEndpoint:M,dangerousLogToVisitorSession:H,requestsOutstanding:O});t.postMessage({op:"gelBatchToSerialize",batchRequest:L3(m),clientEvents:A,key:U5N});U5N++;break}if(A){t=[];for(E=0;E<A.length;E++)try{t.push(new KW(A[E]))}catch(p){_.yJ(new _.KD("Transport failed to deserialize "+String(A[E])))}A=t}else A=[];A=_.C(A);for(t=A.next();!t.done;t=A.next())AN(m,3,KW,t.value);A={startTime:(0,_.qR)(),ticks:{},infos:{}};
m=m.serialize();A.ticks.geljspc=(0,_.qR)();_.F("log_jspb_serialize_latency")&&H$k("gel_jspb_serialize",A,{sampleRate:.1});_.prM(m,f,d,q,Z,M,H,O)}};
_.prM=function(c,f,d,q,Z,M,g,O){q=q===void 0?{}:q;O=O===void 0?{value:0}:O;M=VCl(M);q=wrh(q,g,function(l){_.F("start_client_gcf")&&_.a7.addLowPriorityJob(function(){return _.k(function(m){return m.yield(hYN(l),0)})});
O.value--;O.value||d()},function(){O.value--;
O.value||d()},Z);
q.headers["Content-Type"]="application/json+protobuf";q.postBodyFormat="JSPB";q.postBody=c;RBY(f,M,"",q);zYP=!1};
vZG=function(c){_.F("always_send_and_write")&&(c.writeThenSend=!1)};
wrh=function(c,f,d,q,Z){c={retry:!0,onSuccess:d,onError:q,networklessOptions:c,dangerousLogToVisitorSession:f,bypassMonitoring:!!Z,headers:{},postBodyFormat:"",postBody:"",compress:_.F("compress_gel")||_.F("compress_gel_lr")};N_k()&&(c.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.qR)())));return c};
uYe=function(c,f,d){N_k()||(c.requestTimeMs=String(f));_.F("unsplit_gel_payloads_in_logs")&&(c.unsplitGelPayloadsInLogs=!0);!d&&(f=_.hk("EVENT_ID"))&&(d=I7l(),c.serializedClientEventId={serializedEventId:f,clientCounter:String(d)})};
I7l=function(){var c=_.hk("BATCH_CLIENT_COUNTER")||0;c||(c=Math.floor(Math.random()*65535/2));c++;c>65535&&(c=1);_.Xr("BATCH_CLIENT_COUNTER",c);return c};
Xrk=function(c,f,d){if(d.videoId)var q="VIDEO";else if(d.playlistId)q="PLAYLIST";else return;c.credentialTransferTokenTargetId=d;c.context=c.context||{};c.context.user=c.context.user||{};c.context.user.credentialTransferTokens=[{token:f,scope:q}]};
qVN=function(c,f){var d=_.CD("il_payload_scraping")==="enable_il_payload_scraping";if(!_.D5("yt.logging.transport.enableScrapingForTest"))if(d)x5z=[],_.fu("yt.logging.transport.enableScrapingForTest",!0),_.fu("yt.logging.transport.scrapedPayloadsForTesting",x5z),_.fu("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.fu("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.fu("yt.logging.transport.scrapeClientEvent",!0);else return;d=_.D5("yt.logging.transport.scrapedPayloadsForTesting");var q=_.D5("yt.logging.transport.payloadToScrape");f&&(f=_.D5("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(f.payload)())&&d.push(f);f=_.D5("yt.logging.transport.scrapeClientEvent");if(q&&q.length>=1)for(var Z=0;Z<q.length;Z++)if(c&&c.payload[q[Z]])if(f)d.push(c.payload);else{var M=void 0;d.push(((M=c)==null?void 0:M.payload)[q[Z]])}_.fu("yt.logging.transport.scrapedPayloadsForTesting",
d)};
N_k=function(){return _.F("use_request_time_ms_header")||_.F("lr_use_request_time_ms_header")};
Hsk=function(c,f){return _.F("transport_use_scheduler")===!1?_.Oz(c,f):_.F("logging_avoid_blocking_during_navigation")||_.F("lr_logging_avoid_blocking_during_navigation")?_.Em(_.a7,function(){if(_.oZk().currentState==="none")c();else{var d={};_.oZk().install((d.none={callback:c},d))}},f):_.Em(_.a7,c,f)};
nZk=function(c){_.F("transport_use_scheduler")?_.a7.cancelJob(c):_.sz(c)};
hYN=function(c){var f,d,q,Z,M,g,O,l,m,H;return _.k(function(A){return A.nextAddress==1?(q=(f=c)==null?void 0:(d=f.responseContext)==null?void 0:d.globalConfigGroup,Z=_.b(q,G3k),g=(M=q)==null?void 0:M.hotHashData,O=_.b(q,ccN),m=(l=q)==null?void 0:l.coldHashData,(H=_.ql().resolve(_.dx(nW)))?g?Z?A.yield(fWG(H,g,Z),2):A.yield(fWG(H,g),2):A.jumpTo(2):A.return()):m?O?A.yield(dYG(H,m,O),0):A.yield(dYG(H,m),0):A.jumpTo(0)})};
isN=function(c,f){f=f===void 0?200:f;return c?f===300?QTk:jee:f===300?SV4:qRz};
rpr=function(c){if(_.F("enable_web_tiered_gel")){c=Zaz[c||""];var f,d,q,Z=_.ql().resolve(_.dx(nW))==null?void 0:(f=$z())==null?void 0:(d=f.loggingHotConfig)==null?void 0:(q=d.eventLoggingConfig)==null?void 0:q.payloadPolicies;if(Z)for(f=0;f<Z.length;f++)if(Z[f].payloadNumber===c)return Z[f]}};
MCY=function(c){c=Object.keys(c);c=_.C(c);for(var f=c.next();!f.done;f=c.next())if(f=f.value,Zaz[f])return f};
CSn=function(c){switch(c){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}};
OsP=function(c){return c==="gelDebuggingEvent"};
VCl=function(c){return(c===void 0?0:c)&&_.F("vss_through_gel_video_stats")?"video_stats":"log_event"};
S_=function(c,f,d,q){q=q===void 0?{}:q;var Z={},M=Math.round(q.timestamp||(0,_.qR)());Z.eventTimeMs=M<Number.MAX_SAFE_INTEGER?M:0;Z[c]=f;c=_.ZZ();Z.context={lastActivityMs:String(q.timestamp||!isFinite(c)?-1:c)};q.sequenceGroup&&!_.F("web_gel_sequence_info_killswitch")&&(c=Z.context,f=q.sequenceGroup,f={index:Mck(f),groupKey:f},c.sequence=f,q.endOfSequence&&delete QO[q.sequenceGroup]);_.F("web_tag_automated_log_events")&&(Z.context.automatedLogEventSource=q.automatedLogEventSource);(q.sendIsolatedPayload?
gZz:l7z)({endpoint:"log_event",payload:Z,cttAuthInfo:q.cttAuthInfo,dangerousLogToVisitorSession:q.dangerousLogToVisitorSession},d)};
Mck=function(c){QO[c]=c in QO?QO[c]+1:0;return QO[c]};
_.JN=function(c,f,d){d=d===void 0?{}:d;var q=LW;_.wi("ytLoggingEventsDefaultDisabled",!1)&&LW===LW&&(q=null);S_(c,f,q,d)};
_.ab=function(){if(_.F("web_fp_via_jspb")){var c=!0;c=c===void 0?!1:c;var f=rcl;rcl=[];if(f){f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=d.value,c?S_(d.payloadName,d.payload,LW,d.options):_.JN(d.payloadName,d.payload,d.options)}T_k(void 0,!0);if(!_.F("web_fp_via_jspb_and_json"))return}T_k(void 0,!1)};
C7G=function(c,f){var d;if((d=f)==null?0:d.componentStack)return f;if(c=c.componentStack)f||(f={}),f.componentStack=c;return f};
gvC=function(){_.Iw(_.hk("ERRORS")||[],function(c){_.VO.apply(null,c)});
_.Xr("ERRORS",[])};
_.XX=function(c){_.VO(c)};
_.u6=function(c){_.VO(c,"WARNING")};
kxk=function(c){c instanceof Error?_.VO(c):(c=_.Ik(c)?JSON.stringify(c):String(c),c=new _.KD(c),c.name="RejectedPromiseError",_.u6(c))};
Oar=function(c,f,d,q,Z,M){f=f===void 0?"Unknown file":f;d=d===void 0?0:d;var g=!1,O=Cl4("log_window_onerror_fraction");if(O&&Math.random()<O)g=!0;else{O=document.getElementsByTagName("script");for(var l=0,m=O.length;l<m;l++)if(O[l].src.indexOf("/debug-")>0){g=!0;break}}g&&(g=!1,Z?g=!0:(typeof c==="string"?O=c:ErrorEvent&&c instanceof ErrorEvent?(g=!0,O=c.message,f=c.filename,d=c.lineno,q=c.colno):(O="Unknown error",f="Unknown file",d=0),Z=new _.KD(O),Z.name="UnhandledWindowError",Z.message=O,Z.fileName=
f,Z.lineNumber=d,isNaN(q)?delete Z.columnNumber:Z.columnNumber=q),_.F("wiz_enable_component_stack_propagation_killswitch")||(M=C7G(Z,M)),M&&_.wK(Z,M),g?_.VO(Z):_.u6(Z))};
_.VO=function(c,f,d,q,Z,M,g,O){M=M===void 0?{}:M;M.name=d||_.hk("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=q||_.hk("INNERTUBE_CONTEXT_CLIENT_VERSION");d=M;f=f===void 0?"ERROR":f;g=g===void 0?!1:g;f=f===void 0?"ERROR":f;g=g===void 0?!1:g;if(c&&(c.hasOwnProperty("level")&&c.level&&(f=c.level),_.F("console_log_js_exceptions")&&(q=[],q.push("Name: "+c.name),q.push("Message: "+c.message),c.hasOwnProperty("params")&&q.push("Error Params: "+JSON.stringify(c.params)),c.hasOwnProperty("args")&&q.push("Error args: "+
JSON.stringify(c.args)),q.push("File name: "+c.fileName),q.push("Stacktrace: "+c.stack),q=q.join("\n"),window.console.log(q,c)),!(lWr>=5))){q=[];Z=_.C(se4);for(M=Z.next();!M.done;M=Z.next()){M=M.value;try{M()&&q.push(M())}catch(X){}}q=[].concat(_.LT(ByP),_.LT(q));var l=iaz(c);Z=l.message||"Unknown Error";M=l.name||"UnknownError";var m=l.stack||c.stacktrace||"Not available";if(m.startsWith(M+": "+Z)){var H=m.split("\n");H.shift();m=H.join("\n")}H=l.lineNumber||"Not available";l=l.fileName||"Not available";
var A=0;if(c.hasOwnProperty("args")&&c.args&&c.args.length)for(var Y=0;Y<c.args.length&&!(A=ZCC(c.args[Y],"params."+Y,d,A),A>=500);Y++);else if(c.hasOwnProperty("params")&&c.params){var t=c.params;if(typeof c.params==="object")for(Y in t){if(t[Y]){var E="params."+Y,J=Hq(t[Y]);d[E]=J;A+=E.length+J.length;if(A>500)break}}else d.params=Hq(t)}if(q.length)for(Y=0;Y<q.length&&!(A=ZCC(q[Y],"params.context."+Y,d,A),A>=500);Y++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);
Y={message:Z,name:M,lineNumber:H,fileName:l,stack:m,params:d,sampleWeight:1};d=Number(c.columnNumber);isNaN(d)||(Y.lineNumber=Y.lineNumber+":"+d);if(c.level==="IGNORED")c=0;else a:{c=TyC();d=_.C(c.messageWeights);for(q=d.next();!q.done;q=d.next())if(q=q.value,Y.message&&Y.message.match(q.messageRegExp)){c=q.weight;break a}c=_.C(c.callbackWeights);for(d=c.next();!d.done;d=c.next())if(d=d.value,d.callback(Y)){c=d.weight;break a}c=1}Y.sampleWeight=c;c=_.C(mYC);for(d=c.next();!d.done;d=c.next())if(d=
d.value,d.patternsForType[Y.name])for(Z=_.C(d.patternsForType[Y.name]),q=Z.next();!q.done;q=Z.next())if(M=q.value,q=Y.message.match(M.regexp)){Y.params["params.error.original"]=q[0];Z=M.groups;M={};for(H=0;H<Z.length;H++)M[Z[H]]=q[H+1],Y.params["params.error."+Z[H]]=q[H+1];Y.message=d.messageFn(M);break}Y.params||(Y.params={});c=TyC();Y.params["params.errorServiceSignature"]="msg="+c.messageWeights.length+"&cb="+c.callbackWeights.length;Y.params["params.serviceWorker"]="false";_.dz.document&&_.dz.document.querySelectorAll&&
(Y.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new yO(Hae,"sample")).constructor!==yO&&(Y.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(Y);if(Y.sampleWeight!==0&&!AcN.has(Y.message)){if(g&&_.F("web_enable_error_204"))YRC(f===void 0?"ERROR":f,Y);else{f=f===void 0?"ERROR":f;f==="ERROR"?(F_M.publish("handleError",Y),_.F("record_app_crashed_web")&&tcP===0&&Y.sampleWeight===1&&(tcP++,g={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.F("report_client_error_with_app_crash_ks")||(g.systemHealth={crashData:{clientError:{logMessage:{message:Y.message}}}}),_.JN("appCrashed",g)),bah++):f==="WARNING"&&F_M.publish("handleWarning",Y);if(_.F("kevlar_gel_error_routing")){g=f;O=O===void 0?{}:O;b:{c=_.C(K_l);for(d=c.next();!d.done;d=c.next())if(vq(d.value.toLowerCase())){c=!0;break b}c=!1}if(c)O=void 0;else{d={stackTrace:Y.stack};Y.fileName&&(d.filename=Y.fileName);c=Y.lineNumber&&Y.lineNumber.split?Y.lineNumber.split(":"):[];c.length!==
0&&(c.length!==1||isNaN(Number(c[0]))?c.length!==2||isNaN(Number(c[0]))||isNaN(Number(c[1]))||(d.lineNumber=Number(c[0]),d.columnNumber=Number(c[1])):d.lineNumber=Number(c[0]));c={level:"ERROR_LEVEL_UNKNOWN",message:Y.message,errorClassName:Y.name,sampleWeight:Y.sampleWeight};g==="ERROR"?c.level="ERROR_LEVEL_ERROR":g==="WARNING"&&(c.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};O.pageUrl=window.location.href;O.kvPairs=[];_.hk("FEXP_EXPERIMENTS")&&(O.experimentIds=_.hk("FEXP_EXPERIMENTS"));
q=_.hk("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Cl4("web_disable_gel_stp_ecatcher_killswitch")&&q)for(Z=_.C(Object.keys(q)),M=Z.next();!M.done;M=Z.next())M=M.value,O.kvPairs.push({key:M,value:String(q[M])});if(q=Y.params)for(Z=_.C(Object.keys(q)),M=Z.next();!M.done;M=Z.next())M=M.value,O.kvPairs.push({key:"client."+M,value:String(q[M])});q=_.hk("SERVER_NAME");Z=_.hk("SERVER_VERSION");q&&Z&&(O.kvPairs.push({key:"server.name",value:q}),O.kvPairs.push({key:"server.version",value:Z}));O={errorMetadata:O,
stackTrace:d,logMessage:c}}O&&(_.JN("clientError",O),(g==="ERROR"||_.F("errors_flush_gel_always_killswitch"))&&_.ab())}_.F("suppress_error_204_logging")||YRC(f,Y)}try{AcN.add(Y.message)}catch(X){}lWr++}}};
YRC=function(c,f){var d=f.params||{};c={urlParams:{a:"logerror",t:"jserror",type:f.name,msg:f.message.substr(0,250),line:f.lineNumber,level:c,"client.name":d.name},postParams:{url:_.hk("PAGE_NAME",window.location.href),file:f.fileName},method:"POST"};d.version&&(c["client.version"]=d.version);if(c.postParams){f.stack&&(c.postParams.stack=f.stack);f=_.C(Object.keys(d));for(var q=f.next();!q.done;q=f.next())q=q.value,c.postParams["client."+q]=d[q];if(d=_.hk("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(f=
_.C(Object.keys(d)),q=f.next();!q.done;q=f.next())q=q.value,c.postParams[q]=d[q];(d=_.hk("LAVA_VERSION"))&&(c.postParams["lava.version"]=d);d=_.hk("SERVER_NAME");f=_.hk("SERVER_VERSION");d&&f&&(c.postParams["server.name"]=d,c.postParams["server.version"]=f)}_.iF(_.hk("ECATCHER_REPORT_HOST","")+"/error_204",c)};
_.Evk=function(c,f){f=f===void 0?"ERROR":f;var d=d===void 0?{}:d;var q=_.D5("ytbin.polymer.shared.lib.tampering.info");q&&(q=q())&&(d["params.tamperingInfo"]=q.sort().join(","));_.VO(c,f,void 0,void 0,!0,d)};
_.wK=function(c){var f=_.hv.apply(1,arguments);c.args||(c.args=[]);Array.isArray(c.args)&&c.args.push.apply(c.args,_.LT(f))};
nvl=function(c){c.level="IGNORED"};
$Yn=function(c,f){ByP.push(c);f();ByP.pop()};
DZ=function(c,f){for(var d in f)f.hasOwnProperty(d)&&(c=_.Ww(c,d,f[d]));return c};
_.QeN=function(c,f,d){d=d===void 0?!1:d;if(!c)return null;if(c.adInfoDialogEndpoint||c.backstageImageUploadEndpoint||c.confirmDialogEndpoint||c.clientActionEndpoint||c.createBackstagePostDialogEndpoint||c.createCommentReplyDialogEndpoint||c.flowEndpoint||c.guideBuilderEndpoint||c.liveChatDialogEndpoint||c.modalEndpoint||c.openPopupAction||c.shareEndpoint||c.shareEntityEndpoint||c.showLiveChatItemEndpoint||c.subscriptionManagerEndpoint||c.unlimitedCreateFamilyEndpoint||c.unlimitedFamilyFlowEndpoint||
c.updateCommentDialogEndpoint||c.updateCommentReplyDialogEndpoint||c.userFeedbackEndpoint||c.videoEditorEndpoint||c.ypcCancelSurveyEndpoint)return f=_.rx("polymer_report_client_url_requested_rate"),!d&&Math.random()<f&&_.u6(new _.KD("urlForEndpoint used on client endpoint",c)),null;var q=_.rx("polymer_report_missing_web_navigation_endpoint_rate");if(c.liveChatEndpoint||c.liveChatReplayEndpoint)q=0;if(!c.commandMetadata&&!c.clickTrackingParams&&Math.random()<q){var Z={},M;for(M in c)Z[M]="1";_.u6(new _.KD("Missing navigation data",
Z))}Z="";if(c.commandMetadata&&c.commandMetadata.webCommandMetadata&&c.commandMetadata.webCommandMetadata.url)Z=c.commandMetadata.webCommandMetadata.url;else if(c.searchEndpoint)Math.random()<q&&_.u6(new _.KD("Should not manually handle search",c)),Z="/results?search_query="+encodeURIComponent(c.searchEndpoint.query).replace(/%20/g,"+"),c.searchEndpoint.params&&(Z+="&sp="+c.searchEndpoint.params);else if(c.watchEndpoint)Math.random()<q&&_.u6(new _.KD("Should not manually handle watch",c)),Z="/watch?v="+
c.watchEndpoint.videoId,c.watchEndpoint.playlistId&&(Z+="&list="+c.watchEndpoint.playlistId),c.watchEndpoint.index&&(Z+="&index="+c.watchEndpoint.index),c.watchEndpoint.startTimeSeconds&&(Z+="&t="+c.watchEndpoint.startTimeSeconds);else if(c.browseEndpoint)q=c.browseEndpoint.browseId,(M=c.browseEndpoint.canonicalBaseUrl)?Z=M:q&&(Z=q.substr(0,2),Z=Z==="FE"?q==="FEwhat_to_watch"?"/":q==="FEmy_videos"?"/my_videos":"/feed/"+q.substr(2):Z==="VL"?"/playlist?list="+q.substr(2):"/channel/"+q),Z&&c.browseEndpoint.query&&
(Z=DZ(Z+"/search",{query:c.browseEndpoint.query})),Z&&c.browseEndpoint.params&&(Z=DZ(Z,{params:c.browseEndpoint.params}));else{if(c.urlEndpoint)return c.urlEndpoint.url;c.signInEndpoint?(Z="https://accounts.google.com/ServiceLogin",q={},_.zV.extend(q,f||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),f=q):c.uploadEndpoint?Z="//www.youtube.com/upload":c.liveChatEndpoint?(Z=c.liveChatEndpoint,q=_.zV.clone(Z),_.Ik(Z.continuation)&&(M=Object.keys(Z.continuation)[0],
q.continuation=Z.continuation[M].continuation),Z=DZ("/youtubei/v1/live_chat/get_live_chat",q)):c.liveChatReplayEndpoint?(Z=_.zV.clone(c.liveChatReplayEndpoint),Z.currentPlayerState&&(_.zV.extend(Z,Z.currentPlayerState),delete Z.currentPlayerState),Z=DZ("/youtubei/v1/live_chat/get_live_chat_replay",Z)):c.liveChatItemContextMenuEndpoint?Z=DZ("/youtubei/v1/live_chat/get_item_context_menu",c.liveChatItemContextMenuEndpoint):c.liveChatPurchaseMessageEndpoint?Z=DZ("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
c.liveChatPurchaseMessageEndpoint):c.openSuperStickerBuyFlowCommand?Z=DZ("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",c.openSuperStickerBuyFlowCommand):c.videoEditEndpoint?Z=DZ("/edit",{video_id:c.videoEditEndpoint.videoId}):c.liveDashboardEndpoint?Z=c.liveDashboardEndpoint.videoId?DZ("/live_dashboard",{v:c.liveDashboardEndpoint.videoId}):"/live_dashboard":c.signalNavigationEndpoint&&c.signalNavigationEndpoint.signal&&c.signalNavigationEndpoint.signal==="WEBCAM"?Z="/webcam":c.getPdgBuyFlowCommand&&
(Z=DZ(c.getPdgBuyFlowCommand.buyflowApiPath,{params:c.getPdgBuyFlowCommand.params}))}return Z||d?DZ(Z,f||{}):(_.u6(new _.KD("Error: Can't construct url for endpoint","keys:"+Object.keys(c).sort().join(","),c)),null)};
SRr=function(c){if(c){if(c.browseEndpoint)return!!c.browseEndpoint.nofollow;if(c.watchEndpoint)return!!c.watchEndpoint.nofollow;if(c.urlEndpoint)return!!c.urlEndpoint.nofollow}return!1};
_.zcG=function(c,f){var d=f+c,q=L_N.get(d);if(q)return q;c=f+"-"+c.replace(/([A-Z])/g,"-$1").toLowerCase();L_N.set(d,c);return c};
JcY=function(c){var f=_.aw(c,"action")||_.aw(c,"command")||_.aw(c,"endpoint");if(!f)return null;f=_.zcG(f,"yt");_.b(c,_.e_)&&(f+="-"+_.b(c,_.e_).signal.toLowerCase().replace(/_/g,"-"));return f};
u8Y=function(c){try{var f=Object.keys(c)}catch(Z){return[]}for(var d=0;d<f.length;d++){var q=f[d];if(aWz.test(q)||Vc4.test(q))return X9M(c[q])}return[]};
X9M=function(c){return c.command?[c.command]:c.onExecutionAction?[c.onExecutionAction]:c.onResponseReceivedCommand?[c.onResponseReceivedCommand]:c.updateFlowCommand?[c.updateFlowCommand]:c.clientActions?c.clientActions:c.action?[c.action]:c.actions||c.commands||c.onResponseReceivedActions||c.onResponseReceivedCommands||c.onResponseReceivedEndpoints||[]};
hcY=function(c,f){f=f===void 0?!1:f;var d=_.ql().resolve(_.dx(Nu));d||(d=new vvP,_.ql().addProvider({provide:Nu,useValue:d}));return d&&c&&!_.zV.isEmpty(c)?d.getUrl(c,f):""};
w9n=function(c,f,d){d=d===void 0?"":d;if(f){c.data=f;var q=hcY(f);q?(_.yM(c,q),SRr(f)||!cq(q)?c.rel="nofollow":c.removeAttribute("rel"),_.b(f,_.Ib)&&_.b(f,_.Ib).target==="TARGET_NEW_WINDOW"?c.target="_blank":d?c.target=d:c.removeAttribute("target")):(c.removeAttribute("href"),c.removeAttribute("rel"),c.removeAttribute("target"))}};
_.pW=function(c,f){var d=x6;if(KL())ycl(c,function(){var M=_.hv.apply(0,arguments);Jo(d,function(){f.apply(null,_.LT(M))})});
else{var q=_.Pw.getInstance(),Z=Jk(f);onz(function(){Z.value=f});
_.L9(function(){var M={},g=_.Rb(q,(M[c]=function(){var O=_.hv.apply(0,arguments);Jo(d,function(){Z.value.apply(Z,_.LT(O))})},M));
return function(){var O={};_.Um(q,(O[c]="",O),g)}})}};
_.xz=function(c,f){return W_k(c,!1,f)};
_.ob=function(c,f){return W_k(c,!0,f)};
W_k=function(c,f,d){return KL()?DYz(c,f,d):ecn(c,f,d)};
ecn=function(c,f,d){return z4(function(){return DYz(c,f,d)})};
DYz=function(c,f,d){var q=RgM(function(Z){q.value=Z;var M=function(){var g=Za(null);try{return d==null?void 0:d(Z)}finally{Za(g)}}();
return function(){M==null||M()}});
q.__expectedTagName=c;q.__optional=f;q.isIdom=!KL();return q};
Ny4=function(c){var f=x6,d=to;return{getFn:function(){return function(q){f.isDisposed||nL(function(){return kk(function(){return c(q)})},d)!==!0&&q.stopPropagation()}}}};
GP=function(c){if(typeof c.children==="function")return c.children(),null;c=_.C(c.children);for(var f=c.next();!f.done;f=c.next())f=f.value,f();return null};
IW4=function(c){var f;return((f=c.prototype)==null?void 0:f.render)===void 0};
P7C=function(c){return c.items.map(c.children)};
UYk=function(c,f,d){d=d===void 0?!1:d;nL(function(){return RcP(c,f,d)})};
RcP=function(c,f,d){var q=null;Ao++;d=(d===void 0?0:d)?p9e:xYY;try{q=d(c,function(){cW(f)}),FC(!1)}catch(Z){throw FC(!0),Z;
}return q===null?c:q};
cW=function(c){if(c!==void 0&&c!==null)if(c instanceof T4)for(var f=y4;WV()!=null&&zgl in WV()&&f.contains(WV());)Na();else if(Array.isArray(c))for(f=_.C(c),c=f.next();!c.done;c=f.next())cW(c.value);else if(c instanceof tv||c instanceof j8||"function"==typeof _.cC&&c instanceof _.cC)GZ(c.toString());else if(_.MD(c)){if(WV()!==c){var d,q;f=(q=(d=to)==null?void 0:d.name)!=null?q:"unknown";throw Error("bc`"+c.tagName+"`"+f);}Na()}else if(c!=null&&c.contentKind===k5||c instanceof WU||Udk(c))for(f=xdk(c),
f=Array.from(f.childNodes),f=_.C(f),c=f.next();!c.done;c=f.next())y4.appendChild(c.value),Na();else if(SP(c)&&(c=c.toString()),d=typeof c,d==="boolean"||d==="number"||d==="string")GZ(c);else if(typeof c==="function"){f=y4;var Z=WV();Z&&(Z._isSignalTextNode||Z._isSafeOrSanitizedHtmlNode)||FFN(f,Z,c);Na()}else if(c.type===P7C)cW(c.type(Object.assign({},c.props,{children:c.children[0]})));else{Ak.beforeVisit(c);if(typeof c.type==="string"){a:{c.__open||nDn(c.type,c.props.idomKey);Z=y4;for(f in c.props)if(c.props[f]!==
ovr){var M=c.props[f];d=UT;d.push(f);d.push(M)}f=d$.attributes;f=f===void 0?fh:f;M=y4;d=w$(M);aBh(M,d,f);Yc4(Z,c.props,!0);if((c.props.skip||c.props.skipchildren)&&y4.hasChildNodes())PV();else{if(c.type==="style"&&ZeC(c.children)===null){PV();f=void 0;break a}cW(c.children)}$dl();c.__open&&(c.__open=!1);W4M(Z,c.props);f=Z}return f}if(c.type===_.qD)cW(c.children);else if(!Gxr(c)){f=c;try{c9G(f)}catch(g){c=g,(M=d$.handleError)==null||M.call.apply(M,[d$].concat(_.LT(au(c,(Z=f.type)==null?void 0:Z.TAG_NAME))))}f.__open&&
($dl(),f.__open=!1)}}};
fLG=function(c,f){var d;IW4(c)?d=new Fr(f,c):d=new c(f);d.JSC$10161___type=c;d.__updateContext={nextState:d.state,isForced:!1};return d};
c9G=function(c){var f=c.type,d=f.TAG_NAME;if(f===GP)c.props.children=c.children,f(c.props);else{c.children.length>0&&(c.props.children=c.children);var q;(q=c.props).idomKey||(q.idomKey=f);if(d){var Z=nDn(d,c.props.idomKey);c.__open=!0;var M=Z.__instance}M||(M=fLG(f,c.props),M.props=null,Z&&(Z.__instance=M,M.el=Z));var g;d=((g=M.__updateContext)!=null?g:{nextState:M.state,isForced:!1}).nextState;M.__updateContext=void 0;f.getDerivedStateFromProps&&(d=f.getDerivedStateFromProps(c.props,d));M.props=
c.props;M.state=d;g=function(){var O=M;Ak.beforeRender(O);var l=O.render(O.props);Ak.afterRender(O,l);l?(O.props.idomKey&&(l.props.idomKey=O.props.idomKey),O=l):O=void 0;if(l=O)if(l.__open=c.__open,O=cW(l),c.__open=l.__open,!f.TAG_NAME)if(O)f.TAG_NAME=O.tagName.toLowerCase(),O.__instance=M,M.el=O;else{var m;if((m=M.hooks)==null?0:m.length){var H;(H=d$.handleError)==null||H.call.apply(H,[d$].concat(_.LT(au(Error("jd")))))}}M.didPatch();Ak.didPatch(M)};
(d=M.functionComponent)?IZY(d,g,M.props.debugInstance):g()}};
Gxr=function(c){var f=c.type;if(!IW4(f)||f===GP||f.componentType===bm)return!1;c.props.children=c.children.length>1?c.children:c.children[0];var d,q=(d=c.props.idomKey)!=null?d:c.type,Z;if(WV()&&((Z=WV()[s6])==null?void 0:Z.key)===q){var M=WV(),g=M[s6];if(!g)throw Error("ac`"+M.tagName);var O;(O=g.updateSignalsFromIdomProps)==null||O.call(g,c.props);dCk(g);return!0}if(j9k.has(f.name))throw O=f.name,f=(g=(M=to)==null?void 0:M.name)!=null?g:"unknown",Error("$b`"+O+"`"+f);Enl(c.type,c.props,c.children);
c.props.renderedFromIdom=!0;(O=IZY(c.type,function(){return ieN(c.type,c.props)},c.props.debugInstance))&&qol(O);
return!0};
ZO4=function(c){for(var f=0;f<id(c).length;f++)Na()};
dCk=function(c){var f=M4h();if(f)ZO4(f);else for(var d=0;d<c.numNodes;d++)(f=M4h())?ZO4(f):Na()};
M4h=function(){var c;return(c=WV()[s6])==null?void 0:c.sourceDynamicRange};
qol=function(c){c=Nuk(c);c=Array.isArray(c)?c:[c];c=_.C(c);for(var f=c.next();!f.done;f=c.next())y4.insertBefore(f.value,WV()),Na()};
r9h=function(c){var f=mTk(),d=z4(function(){return{value:typeof c==="function"?c():c}});
return[d.value,function(q){if(Y5!==null){var Z;(Z=d$.handleError)==null||Z.call.apply(Z,[d$].concat(_.LT(au(Error("kd")))))}d.value=typeof q==="function"?q(d.value):q;f.__updateContext={nextState:f.state,isForced:!0};q=_.oO(f.effectContext);Z=Z5(!1);try{if(f.el){var M,g={},O=(g.props=f.props,g.type=f.JSC$10161___type,g.children=(M=f.props.children)!=null?M:[],g[di]=!0,g);try{UYk(f.el,O,!0)}catch(H){var l,m;(m=d$.handleError)==null||m.call.apply(m,[d$].concat(_.LT(au(H,(l=f.JSC$10161___type)==null?
void 0:l.TAG_NAME))))}}}finally{Z5(Z),_.oO(q)}}]};
du=function(c,f){var d=x6,q=function(Z){Jo(d,function(){f(Z)})};
window.addEventListener(c,q,void 0);_.Q4(function(){window.removeEventListener(c,q,void 0)})};
_.qd=function(c){var f=x6;return function(d){var q,Z=(q=c.observer)!=null?q:_.ql().resolve(jR);q=Ch4(d);var M=[];c.showOption&&M.push(Z.observe(d,function(){Jo(f,function(){c.visibilityCallback(!0,d)})},c.showOption));
c.hideOption&&M.push(Z.observe(d,function(){Jo(f,function(){c.visibilityCallback(!1,d)})},c.hideOption));
c.prescanOption&&c.prescanCallback&&M.push(Z.observe(d,function(){Jo(f,function(){c.prescanCallback()})},c.prescanOption));
var g;q.visibilityMonitorKeys=((g=q.visibilityMonitorKeys)!=null?g:[]).concat(M)}};
Ch4=function(c){var f;return(f=c.polymerController)!=null?f:c};
_.ZB=function(c){c.componentType=bm};
lLk=function(c,f){var d=gsh;return _.B(_.qD,null,p1(d$.enableLazyTsx,function(){return _.B(k6C,{id:d,value:c,children:f})},function(){var q=OOr(d,c);
fL(q);q=_.oO(q);try{return f()}finally{_.oO(q)}}))};
k6C=function(c){var f=c.children;c=OOr(c.id,c.value);fL(c);c=_.oO(c);try{return _.B(_.qD,null,mf(f()))}finally{_.oO(c)}};
OOr=function(c,f){return Object.assign(Object.create(s9k),{id:c,contextValue:f})};
BBr=function(c){var f,d=x6;_.zZ(function(){var q=_.oO(d),Z=Z5(!f);try{if(f)UYk(f,c.children(),!0);else if(f=mf(c.children()),!(f instanceof Element))throw Error("ld");}finally{Z5(Z),_.oO(q)}});
return f};
_.iO4=function(c,f){var d;f=Sh(function(){var q=Z5(!0);Ao++;try{d=id(c()),FC(!1)}catch(Z){throw FC(!0),Z;}finally{Z5(q)}},f===void 0?!1:f);
return[d,f]};
mCN=function(c){c=c.buf.charCodeAt(c.pos++);return TBe[c]};
Md=function(c){var f=0,d=0;do{var q=mCN(c);f|=(q&31)<<d;d+=5}while(q&32);return f<0?f+4294967296:f};
Yok=function(c,f,d){HOz(c,f);c[f][A9h].unshift(d)};
HOz=function(c,f){if(!c[f]||!c[f][A9h]){var d=c[f],q=d?[d]:[];c[f]=function(){for(var Z=_.C(q),M=Z.next();!M.done;M=Z.next())M.value.apply(this,arguments)};
c[f][A9h]=q}};
Foe=function(c){if(!c)return[];var f=[];c=_.C(c);for(var d=c.next();!d.done;d=c.next())d=d.value,Array.isArray(d)?f.push.apply(f,_.LT(Foe(d))):f.push(d);return f};
_.Ch=function(c,f){if(c&&t4G.test(c)||c==="//")return c;if(bOk===void 0){bOk=!1;try{var d=new URL("b","http://a");d.pathname="c%20d";bOk=d.href==="http://a/c%20d"}catch(q){}}f||(f=document.baseURI||window.location.href);if(bOk)try{return(new URL(c,f)).href}catch(q){return c}ru||(ru=document.implementation.createHTMLDocument("temp"),ru.base=ru.createElement("base"),ru.head.appendChild(ru.base),ru.anchor=ru.createElement("a"),ru.body.appendChild(ru.anchor));ru.base.href=f;ru.anchor.href=c;return ru.anchor.href||
c};
EsN=function(c,f){return c.replace(KoM,function(d,q,Z,M){return q+"'"+_.Ch(Z.replace(/["']/g,""),f)+"'"+M})};
nsY=function(c){return c.substring(0,c.lastIndexOf("/")+1)};
Soh=function(){$CP=!1;for(var c=gu.length,f=0;f<c;f++){var d=gu[f];if(d)try{d()}catch(q){setTimeout(function(){throw q;})}}gu.splice(0,c);
Q9Y+=c};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(c){console.log("["+c.is+"]: registered")};
zaP=function(c){Loh.push(c)};
kD=function(c){return J9Y[c]||(J9Y[c]=c.indexOf("-")<0?c:c.replace(aLh,function(f){return f[1].toUpperCase()}))};
Ou=function(c){return J9Y[c]||(J9Y[c]=c.replace(V4N,"-$1").toLowerCase())};
XZe=function(c,f){var d=f.parentInfo&&XZe(c,f.parentInfo);if(d)for(c=d.firstChild,d=0;c;c=c.nextSibling){if(f.parentIndex===d++)return c}else return c};
udN=function(c,f){c=c._methodHost||c;return function(d){if(c[f])c[f](d,d.detail);else console.warn("listener method `"+f+"` not defined")}};
lW=function(c){return c.indexOf(".")>=0};
su=function(c){var f=c.indexOf(".");return f===-1?c:c.slice(0,f)};
vsn=function(c,f){return c.indexOf(f+".")===0};
BW=function(c,f){return f.indexOf(c+".")===0};
iW=function(c,f,d){return f+d.slice(c.length)};
haC=function(c,f){return c===f||vsn(c,f)||BW(c,f)};
TA=function(c){if(Array.isArray(c)){for(var f=[],d=0;d<c.length;d++)for(var q=c[d].toString().split("."),Z=0;Z<q.length;Z++)f.push(q[Z]);return f.join(".")}return c};
wZk=function(c){return Array.isArray(c)?TA(c).split("."):c.toString().split(".")};
m4=function(c,f,d){f=wZk(f);for(var q=0;q<f.length;q++){if(!c)return;c=c[f[q]]}d&&(d.path=f.join("."));return c};
y9r=function(c,f,d){var q=wZk(f),Z=q[q.length-1];if(q.length>1){for(f=0;f<q.length-1;f++)if(c=c[q[f]],!c)return;c[Z]=d}else c[f]=d;return q.join(".")};
Wok=function(c,f,d){var q=c[f];if(!q)q=c[f]={};else if(!c.hasOwnProperty(f)&&(q=c[f]=Object.create(c[f]),d))for(var Z in q)for(c=q[Z],f=q[Z]=Array(c.length),d=0;d<c.length;d++)f[d]=c[d];return q};
A8=function(c,f,d,q,Z,M){if(f){var g=!1,O=HW++,l;for(l in d){var m=Z?su(l):l;if(m=f[m])for(var H=0,A=m.length,Y=void 0;H<A&&(Y=m[H]);H++)Y.info&&Y.info.lastRun===O||Z&&!DCk(l,Y.trigger)||(Y.info&&(Y.info.lastRun=O),Y.fn(c,l,d,q,Y.info,Z,M),g=!0)}return g}return!1};
DCk=function(c,f){if(f){var d=f.name;return d==c||!(!f.structured||!vsn(d,c))||!(!f.wildcard||!BW(d,c))}return!0};
eaM=function(c,f,d,q,Z){f=typeof Z.method==="string"?c[Z.method]:Z.method;d=Z.property;f?f.call(c,c.__data[d],q[d]):Z.dynamicFn||console.warn("observer method `"+Z.method+"` not defined")};
NBk=function(c,f,d,q){d={value:d,queueProperty:!0};q&&(d.path=q);(0,_.YD)(c).dispatchEvent(new CustomEvent(f,{detail:d}))};
ILN=function(c,f,d,q,Z,M){M=(q=(M?su(f):f)!=f?f:null)?m4(c,q):c.__data[f];q&&M===void 0&&(M=d[f]);NBk(c,Z.eventName,M,q)};
Phn=function(c,f,d,q,Z){d=c.__data[f];Fs&&(d=Fs(d,Z.attrName,"attribute",c));c._propertyToAttribute(f,Z.attrName,d)};
UCr=function(c){var f=c.constructor.__orderedComputedDeps;if(!f){f=new Map;for(var d=c.__computeEffects,q=Rah(c),Z=q.counts,M=q.ready,g=q.total;q=M.shift();)f.set(q,f.size),(q=d[q])&&q.forEach(function(O){O=O.info.methodInfo;--g;--Z[O]===0&&M.push(O)});
g!==0&&console.warn("Computed graph for "+c.localName+" incomplete; circular?");c.constructor.__orderedComputedDeps=f}return f};
Rah=function(c){var f=c.__computeInfo,d={};c=c.__computeEffects;var q=[],Z=0,M;for(M in f){var g=f[M];Z+=d[M]=g.args.filter(function(l){return!l.literal}).length+(g.dynamicFn?1:0)}for(var O in c)f[O]||q.push(O);
return{counts:d,ready:q,total:Z}};
xCe=function(c,f,d,q,Z){f=pZC(c,f,d,q,Z);if(f===t8)return!1;Z=Z.methodInfo;if(c.__dataHasAccessor&&c.__dataHasAccessor[Z])return c._setPendingProperty(Z,f,!0);c[Z]=f;return!1};
cKG=function(c,f,d,q,Z,M,g){d.bindings=d.bindings||[];q={kind:q,target:Z,parts:M,literal:g,isCompound:M.length!==1};d.bindings.push(q);q.target&&q.kind!="attribute"&&q.kind!="text"&&!q.isCompound&&q.parts[0].mode==="{"&&(d=q.parts[0],M=d.negate,q.listenerEvent=d.event||Ou(Z)+"-changed",q.listenerNegate=M);Z=f.nodeInfoList.length;for(d=0;d<q.parts.length;d++){var O=q.parts[d];O.compoundIndex=d;M=c;g=f;var l=q,m=O,H=Z;if(!m.literal)if(l.kind==="attribute"&&l.target[0]==="-")console.warn("Cannot set attribute "+
l.target+' because "-" is not a valid attribute starting character');else for(O=m.dependencies,l={index:H,binding:l,part:m,evaluator:M},m=0;m<O.length;m++)H=O[m],typeof H=="string"&&(H=osP(H),H.wildcard=!0),M._addTemplatePropertyEffect(g,H.rootProperty,{fn:G6l,info:l,trigger:H})}};
G6l=function(c,f,d,q,Z,M,g){g=g[Z.index];var O=Z.binding,l=Z.part;M&&l.source&&f.length>l.source.length&&O.kind=="property"&&!O.isCompound&&g.__isPropertyEffectsClient&&g.__dataHasAccessor&&g.__dataHasAccessor[O.target]?(d=d[f],f=iW(l.source,O.target,f),g._setPendingPropertyOrPath(f,d,!1,!0)&&c._enqueueClient(g)):(f=Z.evaluator._evaluateBinding(c,l,f,d,q,M),f!==t8&&(O.isCompound&&(d=g.__dataCompoundStorage[O.target],d[l.compoundIndex]=f,f=d.join("")),O.kind==="attribute"||O.target!=="textContent"&&
(O.target!=="value"||g.localName!=="input"&&g.localName!=="textarea")||(f=f==void 0?"":f),l=f,Fs&&(l=Fs(l,O.target,O.kind,g)),O.kind=="attribute"?c._valueToNodeAttribute(g,l,O.target):(O=O.target,g.__isPropertyEffectsClient&&g.__dataHasAccessor&&g.__dataHasAccessor[O]?g.__readOnly&&g.__readOnly[O]||g._setPendingProperty(O,l)&&c._enqueueClient(g):c._setUnmanagedPropertyToNode(g,O,l))))};
fhN=function(c,f,d){if(d.listenerEvent){var q=d.parts[0];c.addEventListener(d.listenerEvent,function(Z){var M=d.target,g=q.source,O=q.negate,l=Z.detail,m=l&&l.path;m?(g=iW(M,g,m),Z=l&&l.value):Z=Z.currentTarget[M];f.__readOnly&&f.__readOnly[g]||!f._setPendingPropertyOrPath(g,O?!Z:Z,!0,!!m)||l&&l.queueProperty||f._invalidateProperties()})}};
doY=function(c,f,d,q,Z,M){M=f.static||M&&(typeof M!=="object"||M[f.methodName]);Z={methodName:f.methodName,args:f.args,methodInfo:Z,dynamicFn:M};for(var g=0,O=void 0;g<f.args.length&&(O=f.args[g]);g++)O.literal||c._addPropertyEffect(O.rootProperty,d,{fn:q,info:Z,trigger:O});M&&c._addPropertyEffect(f.methodName,d,{fn:q,info:Z});return Z};
pZC=function(c,f,d,q,Z){q=c._methodHost||c;var M=q[Z.methodName];if(M)return c=c._marshalArgs(Z.args,f,d),c===t8?t8:M.apply(q,c);Z.dynamicFn||console.warn("method `"+Z.methodName+"` not defined")};
jvG=function(c){for(var f="",d=0;d<c.length;d++)f+=c[d].literal||"";return f};
MJN=function(c){if(c=c.match(/([^\s]+?)\(([\s\S]*)\)/)){var f={methodName:c[1],static:!0,args:q_l};return c[2].trim()?Zpr(c[2].replace(/\\,/g,"&comma;").split(","),f):f}return null};
Zpr=function(c,f){f.args=c.map(function(d){d=osP(d);d.literal||(f.static=!1);return d},this);
return f};
osP=function(c){c=c.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var f={name:c,value:"",literal:!1},d=c[0];d==="-"&&(d=c[1]);d>="0"&&d<="9"&&(d="#");switch(d){case "'":case '"':f.value=c.slice(1,-1);f.literal=!0;break;case "#":f.value=Number(c),f.literal=!0}f.literal||(f.rootProperty=su(c),f.structured=lW(c),f.structured&&(f.wildcard=c.slice(-2)==".*",f.wildcard&&(f.name=c.slice(0,-2))));return f};
rKz=function(c,f,d){c=m4(c,d);c===void 0&&(c=f[d]);return c};
Cke=function(c,f,d,q){q={indexSplices:q};bW&&!c._overrideLegacyUndefined&&(f.splices=q);c.notifyPath(d+".splices",q);c.notifyPath(d+".length",f.length);bW&&!c._overrideLegacyUndefined&&(q.indexSplices=[])};
nh=function(c,f,d,q,Z,M){Cke(c,f,d,[{index:q,addedCount:Z,removed:M,object:f,type:"splice"}])};
gRY=function(c){c=EsN((c.body?c.body:c).textContent,c.baseURI);var f=document.createElement("style");f.textContent=c;return f};
OpN=function(c){c=c.trim().split(/\s+/);for(var f=[],d=0;d<c.length;d++)f.push.apply(f,_.LT(kdM(c[d])));return f};
kdM=function(c){var f=$D.import(c);if(!f)return console.warn("Could not find style data in module named",c),[];if(f._styles===void 0){c=[];c.push.apply(c,_.LT(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f)));var d=f.querySelector("template");d&&c.push.apply(c,_.LT(lhz(d,f.assetpath)));f._styles=c}return f._styles};
lhz=function(c,f){if(!c._styles){for(var d=[],q=c.content.querySelectorAll("style"),Z=0;Z<q.length;Z++){var M=q[Z],g=M.getAttribute("include");g&&d.push.apply(d,_.LT(OpN(g).filter(function(O,l,m){return m.indexOf(O)===l})));
f&&(M.textContent=EsN(M.textContent,f));d.push(M)}c._styles=d}return c._styles};
svl=function(c){return(c=$D.import(c))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(c){var f=[];c=c.querySelectorAll("link[rel=import][type~=css]");for(var d=0;d<c.length;d++){var q=c[d];if(q.import){var Z=q.import;if((q=q.hasAttribute("shady-unscoped"))&&!Z._unscopedStyle){var M=gRY(Z);M.setAttribute("shady-unscoped","");Z._unscopedStyle=M}else Z._style||(Z._style=gRY(Z));f.push(q?Z._unscopedStyle:Z._style)}}return f};
ipz=function(c){c=c.trim().split(/\s+/);for(var f="",d=0;d<c.length;d++)f+=BOz(c[d]);return f};
BOz=function(c){var f=$D.import(c);if(f&&f._cssText===void 0){var d=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f),q=f.querySelector("template");q&&(d+=TOC(q,f.assetpath));f._cssText=d||null}f||console.warn("Could not find style data in module named",c);return f&&f._cssText||""};
TOC=function(c,f){var d="";c=lhz(c,f);for(f=0;f<c.length;f++){var q=c[f];q.parentNode&&q.parentNode.removeChild(q);d+=q.textContent}return d};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(c){var f="";c=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c);for(var d=0;d<c.length;d++)f+=c[d].textContent;return f};
Qg=function(c,f){return{index:c,removed:[],addedCount:f}};
HpP=function(c,f,d,q){var Z=0,M=0,g=0,O=0,l=Math.min(f-Z,q-M);if(Z==0&&M==0)a:{for(g=0;g<l;g++)if(c[g]!==d[g])break a;g=l}if(f==c.length&&q==d.length){O=c.length;for(var m=d.length,H=0;H<l-g&&mok(c[--O],d[--m]);)H++;O=H}Z+=g;M+=g;f-=O;q-=O;if(f-Z==0&&q-M==0)return[];if(Z==f){for(f=Qg(Z,0);M<q;)f.removed.push(d[M++]);return[f]}if(M==q)return[Qg(Z,f-Z)];l=Z;g=M;q=q-g+1;O=f-l+1;f=Array(q);for(m=0;m<q;m++)f[m]=Array(O),f[m][0]=m;for(m=0;m<O;m++)f[0][m]=m;for(m=1;m<q;m++)for(H=1;H<O;H++)if(c[l+H-1]===
d[g+m-1])f[m][H]=f[m-1][H-1];else{var A=f[m-1][H]+1,Y=f[m][H-1]+1;f[m][H]=A<Y?A:Y}l=f.length-1;g=f[0].length-1;q=f[l][g];for(c=[];l>0||g>0;)l==0?(c.push(2),g--):g==0?(c.push(3),l--):(O=f[l-1][g-1],m=f[l-1][g],H=f[l][g-1],A=m<H?m<O?m:O:H<O?H:O,A==O?(O==q?c.push(0):(c.push(1),q=O),l--,g--):A==m?(c.push(3),l--,q=m):(c.push(2),g--,q=H));c.reverse();f=void 0;l=[];for(g=0;g<c.length;g++)switch(c[g]){case 0:f&&(l.push(f),f=void 0);Z++;M++;break;case 1:f||(f=Qg(Z,0));f.addedCount++;Z++;f.removed.push(d[M]);
M++;break;case 2:f||(f=Qg(Z,0));f.addedCount++;Z++;break;case 3:f||(f=Qg(Z,0)),f.removed.push(d[M]),M++}f&&l.push(f);return l};
AKz=function(c,f){return HpP(c,c.length,f,f.length)};
mok=function(c,f){return c===f};
FaG=function(c){if(c instanceof Y_z)return c.value;throw Error("Cd`"+c);};
tJh=function(c,f){for(var d in f)d===null?c.style.removeProperty(d):c.style.setProperty(d,f[d])};
bpG=function(c,f){return(c=window.getComputedStyle(c).getPropertyValue(f))?c.trim():""};
$or=function(c){requestAnimationFrame(function(){Kal?Kal(c):(ERh||(ERh=new Promise(function(f){nRr=f}),document.readyState==="complete"?nRr():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&nRr()})),ERh.then(function(){c&&c()}))})};
Lae=function(c){QvP=c&&c.shimcssproperties?!1:S_N||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
X5k=function(c){if(!(zJY.indexOf(c)>-1)&&c!=="touchend"&&JKn&&ahl&&VJN)return{passive:!0}};
w5h=function(c){for(var f=ubP?["click"]:zJY,d=0,q;d<f.length;d++)q=f[d],c?(vRC.length=0,document.addEventListener(q,hJr,!0)):document.removeEventListener(q,hJr,!0)};
SR=function(c){var f=c.type;return zJY.indexOf(f)>-1?f==="mousemove"?(f=c.buttons===void 0?1:c.buttons,c instanceof window.MouseEvent&&!yKk&&(f=WaC[c.which]||0),!!(f&1)):(c.button===void 0?0:c.button)===0:!1};
Dol=function(c){if(c.type==="click"){if(c.detail===0)return!0;var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c);if(!f.nodeType||f.nodeType!==Node.ELEMENT_NODE)return!0;f=f.getBoundingClientRect();var d=c.pageX;c=c.pageY;return!(d>=f.left&&d<=f.right&&c>=f.top&&c<=f.bottom)}return!1};
eJk=function(c,f,d){c.movefn=f;c.upfn=d;document.addEventListener("mousemove",f);document.addEventListener("mouseup",d)};
Lh=function(c){document.removeEventListener("mousemove",c.movefn);document.removeEventListener("mouseup",c.upfn);c.movefn=null;c.upfn=null};
NOl=function(c,f){for(var d=document.elementFromPoint(c,f),q=d;q&&q.shadowRoot&&!window.ShadyDOM;){var Z=q;q=q.shadowRoot.elementFromPoint(c,f);if(Z===q)break;q&&(d=q)}return d};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(c){var f=Ihh(c);return f.length>0?f[0]:c.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(c){var f=c.type,d=c.currentTarget.__polymerGestures;if(d&&(d=d[f])){if(!c.__polymerGesturesHandled&&(c.__polymerGesturesHandled={},f.slice(0,5)==="touch")){var q=c.changedTouches[0];f==="touchstart"&&c.touches.length===1&&(Pkk=q.identifier);if(Pkk!==q.identifier)return;JKn||(f==="touchstart"||f==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c)}q=
c.__polymerGesturesHandled;if(!q.skip){for(var Z=0,M;Z<zA.length;Z++)M=zA[Z],d[M.name]&&!q[M.name]&&M.flow&&M.flow.start.indexOf(c.type)>-1&&M.reset&&M.reset();for(Z=0;Z<zA.length;Z++)M=zA[Z],d[M.name]&&!q[M.name]&&(q[M.name]=!0,M[f](c))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(c){var f=c.changedTouches[0],d=c.type;if(d==="touchstart")RJk=f.clientX,UoN=f.clientY,p5C=!1;else if(d==="touchmove"&&!p5C){p5C=!0;d="auto";for(var q=Ihh(c),Z=0,M;Z<q.length;Z++)if(M=q[Z],M.__polymerGesturesTouchAction){d=M.__polymerGesturesTouchAction;break}q=!1;Z=Math.abs(RJk-f.clientX);f=Math.abs(UoN-f.clientY);c.cancelable&&(d==="none"?q=!0:d==="pan-x"?q=f>Z:d==="pan-y"&&(q=Z>f));q?c.preventDefault():
J8("track")}};
Vg=function(c,f,d){return al[f]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,f,d),!0):!1};
Xs=function(c,f,d){return al[f]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,f,d),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(c,f,d){var q=al[f],Z=q.deps,M=q.name,g=c.__polymerGestures;g||(c.__polymerGestures=g={});for(var O=0,l,m;O<Z.length;O++)l=Z[O],ubP&&zJY.indexOf(l)>-1&&l!=="click"||((m=g[l])||(g[l]=m={_count:0}),m._count===0&&c.addEventListener(l,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,X5k(l)),m[M]=(m[M]||0)+1,m._count=(m._count||0)+1);c.addEventListener(f,d);q.touchAction&&_.uW(c,q.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(c,f,d){var q=al[f],Z=q.deps;q=q.name;var M=c.__polymerGestures;if(M)for(var g=0,O,l;g<Z.length;g++)O=Z[g],(l=M[O])&&l[q]&&(l[q]=(l[q]||1)-1,l._count=(l._count||1)-1,l._count===0&&c.removeEventListener(O,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,X5k(O)));c.removeEventListener(f,d)};
xoh=function(c){zA.push(c);for(var f=0;f<c.emits.length;f++)al[c.emits[f]]=c};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(c){for(var f=0,d;f<zA.length;f++){d=zA[f];for(var q=0,Z;q<d.emits.length;q++)if(Z=d.emits[q],Z===c)return d}return null};
_.uW=function(c,f){JKn&&c instanceof HTMLElement&&vW.run(function(){c.style.touchAction=f});
c.__polymerGesturesTouchAction=f};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(c,f,d){f=new Event(f,{bubbles:!0,cancelable:!0,composed:!0});f.detail=d;(0,_.YD)(c).dispatchEvent(f);f.defaultPrevented&&(c=d.preventer||d.sourceEvent)&&c.preventDefault&&c.preventDefault()};
J8=function(c){c=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c);c.info&&(c.info.prevent=!0)};
h8=function(c,f,d,q){f&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,c,{x:d.clientX,y:d.clientY,sourceEvent:d,preventer:q,prevent:function(Z){return J8(Z)}})};
oRr=function(c,f,d){if(c.prevent)return!1;if(c.started)return!0;d=Math.abs(c.y-d);return Math.abs(c.x-f)>=5||d>=5};
GdN=function(c,f,d){if(f){var q=c.moves[c.moves.length-2],Z=c.moves[c.moves.length-1],M=Z.x-c.x,g=Z.y-c.y,O=0;if(q){var l=Z.x-q.x;O=Z.y-q.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,"track",{state:c.state,x:d.clientX,y:d.clientY,dx:M,dy:g,ddx:l,ddy:O,sourceEvent:d,hover:function(){return NOl(d.clientX,d.clientY)}})}};
f2n=function(c,f,d){var q=Math.abs(f.clientX-c.x),Z=Math.abs(f.clientY-c.y),M=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d||f);!M||crk[M.localName]&&M.hasAttribute("disabled")||!(isNaN(q)||isNaN(Z)||q<=25&&Z<=25||Dol(f))||c.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,"tap",{x:f.clientX,y:f.clientY,sourceEvent:f,preventer:d})};
d6z=function(c,f,d,q,Z){var M;Z&&(M=typeof d==="object"&&d!==null)&&(q=c.__dataTemp[f]);q=q!==d&&(q===q||d===d);M&&q&&(c.__dataTemp[f]=d);return q};
qJl=function(){if(wu&&!yg){if(!jWh){jWh=!0;var c=document.createElement("style");c.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(c)}return!0}return!1};
M7r=function(){return ZSY};
rrN=function(c,f){ZSY=c;Object.setPrototypeOf(c,f.prototype);new f;ZSY=null};
Cf4=function(c,f){for(var d=0;d<f.length;d++){var q=f[d];if(!!c!=!!q.__hideTemplateChildren__)if(q.nodeType===Node.TEXT_NODE)c?(q.__polymerTextContent__=q.textContent,q.textContent=""):q.textContent=q.__polymerTextContent__;else if(q.localName==="slot")if(c)q.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.YD)((0,_.YD)(q).parentNode).replaceChild(q.__polymerReplaced__,q);else{var Z=q.__polymerReplaced__;Z&&(0,_.YD)((0,_.YD)(Z).parentNode).replaceChild(q,Z)}else q.style&&(c?(q.__polymerDisplay__=
q.style.display,q.style.display="none"):q.style.display=q.__polymerDisplay__);q.__hideTemplateChildren__=c;q._showHideChildren&&q._showHideChildren(c)}};
g9P=function(c){return(c=c.__dataHost)&&c._methodHost||c};
l2n=function(c,f,d){var q=d.mutableData?kKe:WW;DB.mixin&&(q=DB.mixin(q));var Z=function(){return q.apply(this,arguments)||this};
_.K(Z,q);Z.prototype.__templatizeOptions=d;Z.prototype._bindTemplate(c);OSC(Z,c,f,d);return Z};
m6C=function(c,f,d,q){var Z=d.forwardHostProp;if(Z&&f.hasHostProps){var M=c.localName=="template",g=f.templatizeTemplateClass;if(!g){if(M){var O=d.mutableData?sWY:Bnl;g=function(){return O.apply(this,arguments)||this};
_.K(g,O);g=f.templatizeTemplateClass=g}else{var l=c.constructor;g=function(){return l.apply(this,arguments)||this};
_.K(g,l);g=f.templatizeTemplateClass=g}var m=f.hostProps,H;for(H in m)g.prototype._addPropertyEffect("_host_"+H,g.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:iSP(Z)}),g.prototype._createNotifyingProperty("_host_"+H);eR&&q&&TnN(f,d,q)}c.__dataProto&&Object.assign(c.__data,c.__dataProto);if(M)rrN(c,g),c.__dataTemp={},c.__dataPending=null,c.__dataOld=null,c._enableProperties();else{Object.setPrototypeOf(c,g.prototype);f=f.hostProps;for(var A in f)A="_host_"+A,A in c&&(f=c[A],delete c[A],c.__data[A]=
f)}}};
iSP=function(c){return function(f,d,q){c.call(f.__templatizeOwner,d.substring(6),q[d])}};
OSC=function(c,f,d,q){var Z=d.hostProps||{},M;for(M in q.instanceProps){delete Z[M];var g=q.notifyInstanceProp;g&&c.prototype._addPropertyEffect(M,c.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:HSk(g)})}if(q.forwardHostProp&&f.__dataHost)for(var O in Z)d.hasHostProps||(d.hasHostProps=!0),c.prototype._addPropertyEffect(O,c.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ArY()})};
HSk=function(c){return function(f,d,q){c.call(f.__templatizeOwner,f,d,q[d])}};
ArY=function(){return function(c,f,d){c.__dataHost._setPendingPropertyOrPath("_host_"+f,d[f],!0,!0)}};
DB=function(c,f,d){if(Nd&&!g9P(c))throw Error("Id");d=d||{};if(c.__templatizeOwner)throw Error("Jd");c.__templatizeOwner=f;var q=(f?f.constructor:WW)._parseTemplate(c),Z=q.templatizeInstanceClass;Z||(Z=l2n(c,q,d),q.templatizeInstanceClass=Z);var M=g9P(c);m6C(c,q,d,M);d=function(){return Z.apply(this,arguments)||this};
_.K(d,Z);d.prototype._methodHost=M;d.prototype.__dataHost=c;d.prototype.__templatizeOwner=f;d.prototype.__hostProps=q.hostProps;return d};
TnN=function(c,f,d){d=d.constructor._properties;c=c.propertyEffects;f=f.instanceProps;for(var q in c)if(!(d[q]||f&&f[q]))for(var Z=c[q],M=0;M<Z.length;M++){var g=Z[M].info.part;if(!g.signature||!g.signature.static){console.warn("Property '"+q+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
YJY=function(c,f){for(var d;f;)if(d=f.__dataHost?f:f.__templatizeInstance)if(d.__dataHost!=c)f=d.__dataHost;else return d;else f=(0,_.YD)(f).parentNode;return null};
Il=function(c){return c.localName==="slot"};
F8M=function(){for(var c=PW.prototype,f="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),d={},q=0;q<f.length;d={method$jscomp$33:void 0},q++)d.method$jscomp$33=f[q],c[d.method$jscomp$33]=function(Z){return function(){return this.node[Z.method$jscomp$33].apply(this.node,arguments)}}(d)};
t7h=function(c,f){for(var d={},q=0;q<f.length;d={name$jscomp$421:void 0},q++)d.name$jscomp$421=f[q],Object.defineProperty(c,d.name$jscomp$421,{get:function(Z){return function(){return this.node[Z.name$jscomp$421]}}(d),
configurable:!0})};
bSh=function(){for(var c=PW.prototype,f=["textContent","innerHTML","className"],d={},q=0;q<f.length;d={name$jscomp$422:void 0},q++)d.name$jscomp$422=f[q],Object.defineProperty(c,d.name$jscomp$422,{get:function(Z){return function(){return this.node[Z.name$jscomp$422]}}(d),
set:function(Z){return function(M){this.node[Z.name$jscomp$422]=M}}(d),
configurable:!0})};
K8C=function(){Rl=document.documentElement.getAttribute("dir");Rl=document.documentElement.getAttribute("dir");for(var c=0;c<Uu.length;c++){var f=Uu[c];f.__autoDirOptOut||f.setAttribute("dir",Rl)}};
QWG=function(){ph=!0;requestAnimationFrame(function(){ph=!1;E9Y(n9C);setTimeout(function(){for(var c=0,f=xD.length;c<f;c++)$6k(xD.shift())})})};
E9Y=function(c){for(;c.length;)$6k(c.shift())};
$6k=function(c){var f=c[0],d=c[1];c=c[2];try{d.apply(f,c)}catch(q){setTimeout(function(){throw q;})}};
_.SJN=function(c,f,d){ph||QWG();n9C.push([c,f,d])};
_.ol=function(c,f,d){ph||QWG();xD.push([c,f,d])};
JrC=function(c,f){f=f===void 0?!1:f;if(!L8l||!zHP||!L8l.handlesDynamicScoping)return null;var d=zHP.ScopingShim;if(!d)return null;var q=d.scopeForNode(c),Z=(0,_.YD)(c).getRootNode(),M=function(g){if((0,_.YD)(g).getRootNode()===Z){var O=Array.from(L8l.nativeMethods.querySelectorAll.call(g,"*"));O.push(g);for(g=0;g<O.length;g++){var l=O[g];if((0,_.YD)(l).getRootNode()===Z){var m=d.currentScopeForNode(l);m!==q&&(m!==""&&d.unscopeNode(l,m),d.scopeNode(l,q))}}}};
M(c);return f?(f=new MutationObserver(function(g){for(var O=0;O<g.length;O++)for(var l=g[O],m=0;m<l.addedNodes.length;m++){var H=l.addedNodes[m];H.nodeType===Node.ELEMENT_NODE&&M(H)}}),f.observe(c,{childList:!0,
subtree:!0}),f):null};
a2l=function(){document.body.removeAttribute("unresolved")};
hHh=function(c){var f=c=c.replace(V7h,"").replace(Xgk,""),d=new uvG;d.start=0;d.end=f.length;for(var q=d,Z=0,M=f.length;Z<M;Z++)if(f[Z]==="{"){q.rules||(q.rules=[]);var g=q,O=g.rules[g.rules.length-1]||null;q=new uvG;q.start=Z+1;q.parent=g;q.previous=O;g.rules.push(q)}else f[Z]==="}"&&(q.end=Z+1,q=q.parent||d);return v9l(d,c)};
v9l=function(c,f){var d=f.substring(c.start,c.end-1);c.parsedCssText=c.cssText=d.trim();c.parent&&(d=f.substring(c.previous?c.previous.end:c.parent.start,c.start-1),d=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(d),d=d.replace(wgG," "),d=d.substring(d.lastIndexOf(";")+1),d=c.parsedSelector=c.selector=d.trim(),c.atRule=d.indexOf("@")===0,c.atRule?d.indexOf("@media")===0?c.type=4:d.match(yrk)&&(c.type=7,c.keyframesName=c.selector.split(wgG).pop()):d.indexOf("--")===
0?c.type=1E3:c.type=1);if(d=c.rules)for(var q=0,Z=d.length,M=void 0;q<Z&&(M=d[q]);q++)v9l(M,f);return c};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(c){return c.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var f=arguments[1],d=6-f.length;d--;)f="0"+f;return"\\"+f})};
W8z=function(c,f,d){d=d===void 0?"":d;var q="";if(c.cssText||c.rules){var Z=c.rules;if(Z&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Z))for(var M=0,g=Z.length,O=void 0;M<g&&(O=Z[M]);M++)q=W8z(O,f,q);else f?f=c.cssText:(f=c.cssText,f=f.replace(D6e,"").replace(eHk,""),f=f.replace(NnP,"").replace(I2N,"")),(q=f.trim())&&(q="  "+q+"\n")}q&&(c.selector&&(d+=c.selector+" {\n"),d+=q,c.selector&&(d+="}\n\n"));return d};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(c){c=c[0];return!!c&&!!c.selector&&c.selector.indexOf("--")===0};
RHP=function(c){if(c=Pfl[c])c._applyShimCurrentVersion=c._applyShimCurrentVersion||0,c._applyShimValidatingVersion=c._applyShimValidatingVersion||0,c._applyShimNextVersion=(c._applyShimNextVersion||0)+1};
U6k=function(c){return c._applyShimCurrentVersion===c._applyShimNextVersion};
x6C=function(c){c._applyShimValidatingVersion=c._applyShimNextVersion;c._validating||(c._validating=!0,pgk.then(function(){c._applyShimCurrentVersion=c._applyShimNextVersion;c._validating=!1}))};
GKr=function(c){if(!c)return"";typeof c==="string"&&(c=hHh(c));return W8z(c,o9n)};
cqe=function(c){!c.__cssRules&&c.textContent&&(c.__cssRules=hHh(c.textContent));return c.__cssRules||null};
d0Y=function(c,f,d,q){if(c){var Z=!1,M=c.type;if(q&&M===4){var g=c.selector.match(fDC);g&&(window.matchMedia(g[1]).matches||(Z=!0))}M===1?f(c):d&&M===7?d(c):M===1E3&&(Z=!0);if((c=c.rules)&&!Z)for(Z=0,M=c.length,g=void 0;Z<M&&(g=c[Z]);Z++)d0Y(g,f,d,q)}};
j_M=function(c,f){var d=c.indexOf("var(");if(d===-1)return f(c,"","","");a:{var q=0;var Z=d+3;for(var M=c.length;Z<M;Z++)if(c[Z]==="(")q++;else if(c[Z]===")"&&--q===0)break a;Z=-1}q=c.substring(d+4,Z);d=c.substring(0,d);c=j_M(c.substring(Z+1),f);M=q.indexOf(",");if(M===-1)return f(d,q.trim(),"",c);Z=q.substring(0,M).trim();q=q.substring(M+1).trim();return f(d,Z,q,c)};
q54=function(c){if(GA!==void 0)return GA;if(c.__cssBuild===void 0){var f=c.getAttribute("css-build");if(f)c.__cssBuild=f;else{a:{f=c.localName==="template"?c.content.firstChild:c.firstChild;if(f instanceof Comment&&(f=f.textContent.trim().split(":"),f[0]==="css-build")){f=f[1];break a}f=""}if(f!==""){var d=c.localName==="template"?c.content.firstChild:c.firstChild;d.parentNode.removeChild(d)}c.__cssBuild=f}}return c.__cssBuild||""};
MjN=function(c,f,d,q){for(var Z=f._noAccessors,M=Object.getOwnPropertyNames(f),g=0;g<M.length;g++){var O=M[g];if(!(O in q))if(Z)c[O]=f[O];else{var l=Object.getOwnPropertyDescriptor(f,O);l&&(l.configurable=!0,Object.defineProperty(c,O,l))}}for(var m in Zok)f[m]&&(d[m]=d[m]||[],d[m].push(f[m]))};
rqN=function(c,f,d){f=f||[];for(var q=c.length-1;q>=0;q--){var Z=c[q];Z?Array.isArray(Z)?rqN(Z,f):f.indexOf(Z)<0&&(!d||d.indexOf(Z)<0)&&f.unshift(Z):console.warn("behavior is null, check for missing or 404 import")}return f};
C4C=function(c,f){for(var d in f){var q=c[d],Z=f[d];c[d]=!("value"in Z)&&q&&"value"in q?Object.assign({value:q.value},Z):Z}};
Ook=function(c,f,d){var q={},Z=function(){return f.apply(this,arguments)||this};
_.K(Z,f);Z._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(g)for(var l=0,m;l<g.length;l++)m=g[l],m.properties&&this.createProperties(m.properties),m.observers&&this.createObservers(m.observers,m.properties);c.properties&&this.createProperties(c.properties);c.observers&&this.createObservers(c.observers,c.properties);this._prepareTemplate()}else f._finalizeClass.call(this)};
Z.prototype.created=function(){f.prototype.created.call(this);var l=q.created;if(l)for(var m=0;m<l.length;m++)l[m].call(this)};
Z.prototype._registered=function(){var l=Z.prototype;if(!l.hasOwnProperty("__hasRegisterFinished")){l.__hasRegisterFinished=!0;f.prototype._registered.call(this);wu&&O(l);l=Object.getPrototypeOf(this);var m=q.beforeRegister;if(m)for(var H=0;H<m.length;H++)m[H].call(l);if(m=q.registered)for(H=0;H<m.length;H++)m[H].call(l)}};
Z.prototype._applyListeners=function(){f.prototype._applyListeners.call(this);var l=q.listeners;if(l)for(var m=0;m<l.length;m++){var H=l[m];if(H)for(var A in H)this._addMethodEventListenerToNode(this,A,H[A])}};
Z.prototype._ensureAttributes=function(){var l=q.hostAttributes;if(l)for(var m=l.length-1;m>=0;m--){var H=l[m],A;for(A in H)this._ensureAttribute(A,H[A])}f.prototype._ensureAttributes.call(this)};
Z.prototype.ready=function(){f.prototype.ready.call(this);var l=q.ready;if(l)for(var m=0;m<l.length;m++)l[m].call(this)};
Z.prototype.attached=function(){f.prototype.attached.call(this);var l=q.attached;if(l)for(var m=0;m<l.length;m++)l[m].call(this)};
Z.prototype.detached=function(){f.prototype.detached.call(this);var l=q.detached;if(l)for(var m=0;m<l.length;m++)l[m].call(this)};
Z.prototype.attributeChanged=function(l,m,H){f.prototype.attributeChanged.call(this);var A=q.attributeChanged;if(A)for(var Y=0;Y<A.length;Y++)A[Y].call(this,l,m,H)};
_.ci.Object.defineProperties(Z,{properties:{configurable:!0,enumerable:!0,get:function(){var l={};if(g)for(var m=0;m<g.length;m++)C4C(l,g[m].properties);C4C(l,c.properties);return l}},
observers:{configurable:!0,enumerable:!0,get:function(){var l=[];if(g)for(var m=0,H;m<g.length;m++)H=g[m],H.observers&&(l=l.concat(H.observers));c.observers&&(l=l.concat(c.observers));return l}}});
if(d){Array.isArray(d)||(d=[d]);var M=f.prototype.behaviors;var g=rqN(d,null,M);Z.prototype.behaviors=M?M.concat(d):g}var O=function(l){if(g)for(var m=g,H=0;H<m.length;H++)MjN(l,m[H],q,gxr);MjN(l,c,q,kUP)};
wu||O(Z.prototype);Z.generatedFrom=c;return Z};
ioG=function(c){var f=typeof c!=="string"?c:{is:c,notifyObserversOnUndefined:!0};f.fastInit===void 0&&(f.fastInit=!0);return function(d){if(!f.disableInheritanceCheck&&Object.getPrototypeOf(d.prototype).constructor!==_.fe)throw Error("Nd");var q=d.prototype;q.is=f.is;Yok(q,"created",function(){this.hostElement=this;this.polymerController=this});
lDe(q,d,f.fastInit);f.notifyObserversOnUndefined&&(q._overrideLegacyUndefined=!0);if(s_l)for(var Z=_.C(Object.getOwnPropertyNames(q)),M=Z.next();!M.done;M=Z.next()){M=M.value;var g=Object.getOwnPropertyDescriptor(q,M);g.enumerable===!1&&(g.enumerable=!0,Object.defineProperty(q,M,g))}if("template"in d)var O=function(){return d.template};
else f.template!==void 0&&(O=f.template);if(O!==void 0){var l;Object.defineProperty(q,"_template",{get:function(){l===void 0&&(l=O());return l},
set:function(m){l=m},
configurable:!0,enumerable:!0})}Polymer(q);d[B4M]=q}};
T4l=function(c){c=c===void 0?{}:c;c.fastInit===void 0&&(c.fastInit=!0);return function(f){if(!c.disableInheritanceCheck&&Object.getPrototypeOf(f.prototype).constructor!==d2)throw Error("Od");lDe(f.prototype,f,c.fastInit)}};
lDe=function(c,f,d){d=d===void 0?!1:d;m0G(f);d?Yok(c,"created",function(){this.disableEnforceFastDefaultValuesCheck||Hoh(f,this)}):Yok(c,"ready",function(){for(var q={},Z=_.C(Foe(this.behaviors)),M=Z.next();!M.done;M=Z.next())M=M.value,M.properties&&Object.assign(q,Aq4(this,M.properties));
Object.assign(q,Aq4(this,this.properties));Hoh(f,this);Z=_.C(Object.keys(q));for(M=Z.next();!M.done;M=Z.next())M=M.value,this[M]=q[M]})};
Hoh=function(c,f){if(s_l){c=new c;for(var d=_.C(Object.getOwnPropertyNames(c)),q=d.next();!q.done;q=d.next())q=q.value,f[q]=c[q];for(d=f;d&&d!==Object.prototype;d=Object.getPrototypeOf(d)){q=_.C(Object.getOwnPropertyNames(d));for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,c.hasOwnProperty(Z)||Object.defineProperty(c,Z,Y5N(f,Z))}}else c.apply(f)};
Y5N=function(c,f){return{get:function(){var d=c[f];return d instanceof Function?d.bind(c):d},
set:function(d){c[f]=d}}};
Aq4=function(c,f){if(!f)return{};for(var d={},q=_.C(Object.keys(f)),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,!f[Z].readOnly){var M=c[Z];M!==void 0&&(d[Z]=M)}return d};
m0G=function(c){var f=new c;c=c.prototype.properties||{};for(var d=_.C(Object.keys(c)),q=d.next();!q.done;q=d.next())if(q=q.value,f.hasOwnProperty(q)){var Z=c[q];typeof Z==="function"&&(c[q]=Z={type:Z});f[q]!=null&&Z.type===Object&&(Z.type=FbY(f[q].constructor))}};
FbY=function(c){for(var f=_.C(tjM),d=f.next();!d.done;d=f.next())if(d=d.value,c===d)return d;return Object};
bok=function(c){return function(f,d){f.behaviors=f.behaviors||[];f.behaviors.push(c||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",f,d).prototype:void 0));Object.defineProperty(f,d,{get:function(){return this},
enumerable:!0,configurable:!0})}};
KbC=function(c){c=c===void 0?{}:c;return function(f,d){f.properties=f.properties||{};c.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?c.type=FbY(Reflect.getMetadata("design:type",f,d)):c.type=String);var q=c,Z=f.properties[d];f.properties[d]=Z?Object.assign({},Z,q):q}};
ExP=function(c){return function(f,d){f.listeners=f.listeners||{};f.listeners[c]=d}};
nxN=function(){var c=_.hv.apply(0,arguments);if(c.length===0)throw Error("Pd");return function(f,d){f.observers=f.observers||[];f.observers.push(d+"("+c.join(",")+")")}};
$0Y=function(){var c=_.hv.apply(0,arguments);return function(f,d,q){var Z=Object.getOwnPropertyDescriptor(f,d).get,M="__compute__"+d;Object.defineProperty(f,M,{value:Z,enumerable:!0});f.properties=f.properties||{};Z=f.properties[d];Z||(Z={},f.properties[d]=Z);Z.computed=M+"("+c.join(",")+")";q.get=void 0}};
_.js=function(c,f,d){_.ES.call(this);this.JSC$11203_id_=null;this.usingListeners_=!1;this.JSC$11203_listener_=c;this.handler_=d;this.JSC$11203_win_=f||window;this.callback_=(0,_.n1)(this.JSC$11205_doAction_,this)};
qT=function(c){this.range_=c};
Zz=function(c){this.range_=c};
Ce=function(c,f,d){_.ES.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=c;this.scrollTimer_=new _.MT(50);this.JSC$11282_eventHandler_=new _.r2(this);this.scrollDelta_=new _.a8;this.containerIsActuallyContent_=c.tagName==="BODY"||c.tagName==="HTML";this.containerBounds_=Q_4(c);this.containerIsActuallyContent_&&(c=_.Yc(),this.containerBounds_.height=c.height,this.containerBounds_.width=c.width);this.margin_=f||0;if(f){if(f=this.containerBounds_.clone(),c=this.margin_){var q=
Math.min(c,f.height*.25);f.top+=q;f.height-=2*q;c=Math.min(c,f.width*.25);f.left+=c;f.width-=2*c}}else f=this.containerBounds_;this.scrollBounds_=f;d||this.JSC$11282_eventHandler_.listen(_.X1(this.containerNode_),"mousemove",this.JSC$11284_onMouseMove);this.JSC$11282_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11284_onTick_)};
_.g2=function(c){this.mechanism=c};
kn=function(c,f){this.JSC$11380_key_=c;this.JSC$11380_value_=f};
LbC=function(c){if(c>=55296&&c<=57343||c>1114111)return"\ufffd";c in S5l&&(c=S5l[c]);var f="";c>65535&&(c-=65536,f+=String.fromCharCode(c>>>10&1023|55296),c=56320|c&1023);return f+=String.fromCharCode(c)};
JqN=function(c,f){return c<f?1:-1};
Vjr=function(){return function(c){return c.charAt(1)==="#"?c.charAt(2)==="X"||c.charAt(2)==="x"?LbC(parseInt(c.substr(3),16)):LbC(parseInt(c.substr(2),10)):aDM[c.slice(1,-1)]}};
vxe=function(c){return c.slice(1,c.length-1).trim().replace(X1N,function(f){return uBP[f]||" "})};
Oc=function(c){return c===32||c===9};
lV=function(c,f){return f<c.length?c.charCodeAt(f):-1};
h8G=function(c){for(;c;){if(c._lastLineBlank)return!0;var f=c.type;if(f==="list"||f==="item")c=c._lastChild;else break}return!1};
sc=function(c){if(w1h.test(c)){var f=1,d=0,q=0;for(c[d]=="|"&&d++;d<c.length;){switch(c[d]){case "|":q=1;break;case " ":break;case "\t":break;default:q&&(q=0,f++)}d++}return yq4.test(c)?-f:f}return 0};
WbG=function(c){return c=="table"||c=="row"||c=="cell"};
D0z=function(){return new Bi("document",[[1,1],[0,0]])};
e8C=function(){};
iV=function(){var c={safe:!1};c=c||{};c.softbreak=c.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=c};
U0N=function(c,f){var d="";if(c)if(c=c.toLowerCase(),c===" "||N4k.test(c))d="space";else if(IDk.test(c))d="esc";else if(c.length==1){if(!f||P4G.test(c))d=c}else d=R8k.test(c)?c.replace("arrow",""):c=="multiply"?"*":c;return d};
GU4=function(c,f){var d=c.hasModifiers;if(f.key)d=U0N(f.key,d);else if(f.detail&&f.detail.key)d=U0N(f.detail.key,d);else{d=f.keyIdentifier;var q="";d&&(d in p1N?q=p1N[d]:x0k.test(d)?(d=parseInt(d.replace("U+","0x"),16),q=String.fromCharCode(d).toLowerCase()):q=d.toLowerCase());(d=q)||(d=f.keyCode,q="",Number(d)&&(d>=65&&d<=90?q=String.fromCharCode(32+d):d>=112&&d<=123?q="f"+(d-112+1):d>=48&&d<=57?q=String(d-48):d>=96&&d<=105?q=String(d-96):q=oxk[d]),d=q);d=d||""}return d===c.key&&(!c.hasModifiers||
!!f.shiftKey===!!c.shiftKey&&!!f.ctrlKey===!!c.ctrlKey&&!!f.altKey===!!c.altKey&&!!f.metaKey===!!c.metaKey)};
fHY=function(c){return c.length===1?{combo:c,key:c,event:"keydown"}:c.split("+").reduce(function(f,d){var q=d.split(":");d=q[0];q=q[1];d in cCh?(f[cCh[d]]=!0,f.hasModifiers=!0):(f.key=d,f.event=q||"keydown");return f},{combo:c.split(":").shift()})};
dUz=function(c){return c.trim().split(" ").map(function(f){return fHY(f)})};
jpP=function(c,f){if(c&&c.fn){var d=c.fn;c.fn=function(){try{d.apply(this,arguments)}catch(q){if(q instanceof Tc)console.warn("Argument '"+q.arg+"'"+(f?" for method '"+f+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw q;}}}return c};
qAr=function(){var c=_.hv.apply(0,arguments);return c.length===0?function(f){return f}:c.length===1?c[0]:c.reduce(function(f,d){return function(){return f(d.apply(null,_.LT(_.hv.apply(0,arguments))))}})};
ZFr=function(){var c=_.hv.apply(0,arguments);return function(f){return function(d,q){d=f(d,q);var Z=function(){throw Error("ze");},M={getState:d.getState,
dispatch:function(g){return Z.apply(null,[g].concat(_.LT(_.hv.apply(1,arguments))))}};
q=c.map(function(g){return g(M)});
Z=qAr.apply(null,_.LT(q))(d.dispatch);return Object.assign({},d,{dispatch:Z})}}};
CpG=function(c){Object.keys(c).forEach(function(f){var d=c[f];if(typeof d(void 0,{type:MWC})==="undefined")throw Error("Ae`"+f);if(typeof d(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+rCh()})==="undefined")throw Error("Be`"+f+"`"+MWC);})};
mF=function(c){for(var f=Object.keys(c),d={},q=0;q<f.length;q++){var Z=f[q];typeof c[Z]==="function"&&(d[Z]=c[Z])}var M=Object.keys(d);try{CpG(d)}catch(O){var g=O}return function(O,l){O=O===void 0?{}:O;if(g)throw g;for(var m=!1,H={},A=0;A<M.length;A++){var Y=M[A],t=O[Y],E=(0,d[Y])(t,l);if(typeof E==="undefined")throw O=l&&l.type,Error("Ce`"+(O?'"'+String(O)+'"':"(unknown type)")+"`"+Y);H[Y]=E;m=m||E!==t}return(m=m||M.length!==Object.keys(O).length)?H:O}};
gok=function(c,f,d){function q(){if(H)throw Error("De");return O}
function Z(t){if(typeof t!=="function")throw Error("Ee`"+typeof t);if(H)throw Error("Fe");var E=!0;m===l&&(m=l.slice());m.push(t);return function(){if(E){if(H)throw Error("Ge");E=!1;m===l&&(m=l.slice());var J=m.indexOf(t);m.splice(J,1);l=null}}}
function M(t){if(typeof t!=="object"||t===null)var E=!1;else{for(E=t;Object.getPrototypeOf(E)!==null;)E=Object.getPrototypeOf(E);E=Object.getPrototypeOf(t)===E}if(!E)throw Error("He`"+typeof t);if(typeof t.type==="undefined")throw Error("Ie");if(H)throw Error("Je");try{H=!0,O=g(O,t)}finally{H=!1}E=l=m;for(var J=0;J<E.length;J++)(0,E[J])();return t}
if(typeof f==="function"&&typeof d==="function"||typeof d==="function"&&typeof arguments[3]==="function")throw Error("Ke");typeof f==="function"&&typeof d==="undefined"&&(d=f,f=void 0);if(typeof d!=="undefined"){if(typeof d!=="function")throw Error("Le`"+typeof d);return d(gok)(c,f)}if(typeof c!=="function")throw Error("Me`"+typeof c);var g=c,O=f,l=[],m=l,H=!1;M({type:MWC});var A={},Y=(A.dispatch=M,A.subscribe=Z,A.getState=q,A.replaceReducer=function(t){if(typeof t!=="function")throw Error("Ne`"+
typeof t);g=t;M({type:koz});return Y},A[OFk]=function(){var t={};
return t.subscribe=function(E){function J(){E.next&&E.next(q())}
if(typeof E!=="object"||E===null)throw new TypeError("Oe`"+typeof E);J();return{unsubscribe:Z(J)}},t[OFk]=function(){return this},t},A);
return Y};
lHk=function(c){function f(){Z&&(Z=!1,c());M&&q()}
function d(){requestAnimationFrame(f)}
function q(){var O=Date.now();if(Z){if(O-g<2)return;M=!0}else Z=!0,M=!1,setTimeout(d,20);g=O}
var Z=!1,M=!1,g=0;return q};
Hi=function(c){return typeof c==="number"?c:parseFloat(c)||0};
spM=function(c){return _.hv.apply(1,arguments).reduce(function(f,d){return f+Hi(c["border-"+d+"-width"])},0)};
_.n=function(c,f){f=eP(DJ(f));c.innerHTML=f};
T7Y=function(c){var f=B7Y;f||(f=iFM(),f=B7Y=_.zV.transpose(f));f=f[c];return typeof f==="string"?f:_.Ai(c)};
mUC=function(c){c=String(c).toLowerCase();var f=iFM()[c];return typeof f==="string"?f:_.Yn(c)};
HFN=function(c){c=c.toLowerCase();c=iFM()[c];return typeof c==="string"?c:null};
iFM=function(){if(!ACM){for(var c=Object.assign({},YA4),f=_.C(FJC),d=f.next();!d.done;d=f.next())d=d.value,c[d.toLowerCase()]=d;ACM=c}return ACM};
KJe=function(c,f){var d=window.customElements;return d&&d.get(c)||tWC[c]===!0?2:f.name==="HTMLUnknownElement"?1:f.name==="HTMLElement"&&bFn.test(c)?3:0};
$UG=function(c,f){switch(f){case "innerHTML":return EoN(c)===1?2:null;case "textContent":return c=EoN(c),c===1||c===6?1:null;default:var d,q;return(q=(d=noz[c.localName])==null?void 0:d[f])!=null?q:null}};
EoN=function(c){var f=c.localName,d=KJe(f,c.constructor);switch(d){case 0:case 1:return QpM(f,c);case 3:case 2:return 1;default:_.WH(d,"got an unknown element classification")}};
QpM=function(c,f){var d=Object.hasOwnProperty.call(SA4,c)?SA4[c]:null;return d!==null?d:Object.hasOwnProperty.call(LJG,c)&&f instanceof SVGElement?LJG[c]:null};
zqC=function(c,f){return f};
aHM=function(c){return(c=c.split(JCk,2))?{url:c[0],metadata:c[1]}:null};
X2z=function(c){var f=String(c.url).replace(VWe,encodeURIComponent);if(c=c.metadata){VWe.lastIndex=0;if(VWe.test(c))return null;f+=" "+c}return f};
w2l=function(c){function f(m){var H=m.localName;if(!m.getAttribute("is")&&KJe(H,m.constructor)===2){var A;return(A=l)!=null?A:l=document.createElement("polyresinuncustomized")}(m=O[H])||(m=O[H]=document.createElement(H));return m}
var d=c.reportHandler||void 0,q=c.safeTypesBridge||u9M,Z=/^$/;if(c=c.allowedIdentifierPrefixes){c=_.C(c);for(var M=c.next();!M.done;M=c.next())Z=new RegExp(Z.source+"|^"+_.von(M.value))}d&&d(!1,"initResin",null);var g=hqk(Z,q,d),O={},l=null;return function(m,H,A){var Y=m.nodeType;if(Y!==Node.ELEMENT_NODE){if(Y===Node.TEXT_NODE){H=m.parentElement;A=!H;if(H&&H.nodeType===Node.ELEMENT_NODE){Y=H.localName;var t=KJe(Y,H.constructor);switch(t){case 0:case 1:H=QpM(Y,H);A=H===1||H===6;break;case 3:case 2:A=
!0;break;default:_.WH(t,"got an unknown element classification")}}if(A)return function(u){return""+q(u,"STRING",u)}}return function(u){if(!u&&u!==document.all)return u;
d&&d(!0,"Failed to sanitize "+(m.parentElement&&m.parentElement.nodeName)+" #text node to value "+u,m.parentElement);return F2}}var E=m.localName;
Y=f(m);var J=null;switch(A){case "attribute":if(mUC(H)in Y)break;return function(u){return u};
case "property":if(H in Y){J=$UG(Y,H);break}if((t=HFN(H))&&t in Y)break;return function(u){return u};
default:_.WH(A,"got an unknown resin type, expected either 'property' or 'attribute'")}var X=A==="attribute"?H.toLowerCase():T7Y(H);J||(J=qun(E,X,function(u){var W=m.getAttribute(u);return!W||/[\[\{]/.test(u)?null:W}));
return function(u){var W=ti,p=null;if(!u&&u!==document.all)return u;if(J!=null){var N=g[J],I=N.safeType;p=N.safeReplacement;I&&(W=q(u,I,ti));W===ti&&(N.filterString?(W=String(q(u,"STRING",u)),W=N.filterString(E,X,W)):N.filterRaw&&(W=N.filterRaw(E,X,u,m)),W===p&&(W=ti))}W===ti&&(W=p||F2,d&&d(!0,"Failed to sanitize attribute of <"+E+">: <"+E+" "+X+'="'+u+'">',m));return W}}};
hqk=function(c,f,d){return[,{filterRaw:function(q,Z,M){return M},
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:yCk,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:yCk,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:F2,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:WJh,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(q,Z,M){M=
String(M).toLowerCase();return r8r(q,Z,M)?M:F2},
safeReplacement:F2,safeType:void 0},,{filterRaw:void 0,filterString:function(q,Z,M){return c.test(M)?M:F2},
safeReplacement:F2,safeType:"CONSTANT"},{filterRaw:function(q,Z,M,g){if(typeof M==="string")var O=(O=M.match(DUP))?O.map(aHM).filter(Boolean):[];else if(Array.isArray(M))O=M;else return yCk;var l=O;O=[];var m=[],H={};if(Array.isArray(l))for(var A=0,Y=l.length;A<Y;++A){var t=l[A],E=t&&t.url;if(E){var J=f(E,"URL",H);if(J){var X=J!==H;(X?O:m).push({url:X?J:E,metadata:t.metadata})}}}else m.push(l);l=m.length?JSON.stringify(m):null;m=ti;if(O.length){if(!Array.isArray(O))throw Error();m=O.map(X2z).filter(Boolean).join(" , ")||
ti}l&&d&&d(!0,"Failed to sanitize attribute value of <"+q+">: <"+q+" "+Z+'="'+M+'">: '+l,g);return m===ti?yCk:m},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
eq4=function(c){var f=w2l(c);return function(d,q,Z,M){return M||M===document.all?f(d,q,Z)(M):M}};
bV=function(c,f){function d(){function Z(O,l,m){for(l=Reflect.getMetadata("parameters",O)||[];l.length<=m;)l.push(null);l[m]=l[m]||[];l[m].push(g);Reflect.defineMetadata(l,O);return O}
var M=_.hv.apply(0,arguments);if(this instanceof d)return q.apply(this,M),this;var g=new (Function.prototype.bind.apply(d,[null].concat(_.LT(M))));Z.annotation=g;return Z}
var q=N7h(f);d.prototype.toString=function(){return"@"+c};
return d.annotationCls=d};
N7h=function(c){return function(){var f=_.hv.apply(0,arguments),d=this;c.forEach(function(q,Z){Z=f[Z];if(Array.isArray(q))d[q[0]]=Z&&Z!==void 0?Z:q[1];else for(var M in q)d[M]=Z&&Z[M]!==void 0?Z[M]:q[M]})}};
IHP=function(c){return c!==void 0&&c!==null};
Ke=function(c){if(typeof c==="string")return c;if(c===void 0||c===null)return""+c;if(c.overriddenName)return c.overriddenName;if(c.name)return c.name;c=c.toString();var f=c.indexOf("\n");return f===-1?c:c.substring(0,f)};
Pp4=function(c){c.__forward_ref__=Pp4;c.toString=function(){return Ke(this())};
return c};
Ec=function(c){return typeof c==="function"&&c.hasOwnProperty("__forward_ref__")&&c.__forward_ref__===Pp4?c():c};
Rql=function(c){return c?c.map(function(f){return new (Function.prototype.bind.apply(f.type.annotationCls,[null].concat(_.LT(f.args?f.args:[]))))}):[]};
UUY=function(c){for(var f=[],d=0;d<c.length;++d){if(f.indexOf(c[d])>-1){f.push(c[d]);break}f.push(c[d])}return f};
p2n=function(c){return c.length>1?" ("+UUY(c.slice().reverse()).map(function(f){return Ke(f.token)}).join(" -> ")+")":""};
ooe=function(c,f,d,q){if(q){var Z=Error("Ve``"+(q instanceof Error?q.message:q));Z.ngOriginalError=q}else Z=Error();Z.addKey=xUn;Z.keys=[f];Z.injectors=[c];Z.constructResolvingMessage=d;Z.message=Z.constructResolvingMessage();Z.ngOriginalError=q;return Z};
xUn=function(c,f){this.injectors.push(c);this.keys.push(f);this.message=this.constructResolvingMessage()};
GoG=function(c,f){return ooe(c,f,function(){return"No provider for "+Ke(this.keys[0].token)+"!"+p2n(this.keys)})};
cM4=function(c,f){return ooe(c,f,function(){return"Cannot instantiate cyclic dependency!"+p2n(this.keys)})};
fkC=function(c,f,d){return ooe(c,d,function(){var q=Ke(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+q+"!"+p2n(this.keys)+"."},f)};
dKY=function(c,f){for(var d=[],q=0,Z=f.length;q<Z;q++){var M=f[q];M&&M.length!=0?d.push(M.map(Ke).join(" ")):d.push("?")}return Error("Ze`"+Ke(c)+"`"+d.join(", ")+"`"+Ke(c))};
gGz=function(c){var f=void 0,d=void 0;if(c&&c.useClass!==void 0){f=c.useClass;var q=Ec(c.useClass);var Z=j5N.factory(q);q=qKC(q)}else c&&c.useExisting!==void 0?(Z=function(M){return M},q=[Z0C(ne.get(Ec(c.useExisting)))]):c&&c.useFactory!==void 0?(Z=c.useFactory,q=Mnk(c.useFactory,c.deps)):(d=c.useValue,Z=function(){return c.useValue},q=rM4);
return new CJP(Z,q,f,d)};
O0P=function(c){return new kee(ne.get(Ec(c.provide)),[gGz(c)],c.multi)};
s5M=function(c){c=lkl(c,[]).map(O0P);for(var f=new Map,d=0;d<c.length;d++){var q=c[d],Z=f.get(q.key.id);if(Z){if(q.multiProvider!==Z.multiProvider)throw Error("af`"+Z+"`"+q);if(q.multiProvider)for(var M=0;M<q.resolvedFactories.length;M++)Z.resolvedFactories.push(q.resolvedFactories[M]);else f.set(q.key.id,q)}else Z=void 0,q.multiProvider?Z=new kee(q.key,q.resolvedFactories.slice(),q.multiProvider):Z=q,f.set(q.key.id,Z)}return Array.from(f.values())};
lkl=function(c,f){c.forEach(function(d){if(d instanceof B3e)f.push({provide:d,useClass:d});else if(d&&typeof d=="object"&&d.provide!==void 0)f.push(d);else if(d instanceof Array)lkl(d,f);else throw Error("Ye`"+d);});
return f};
Mnk=function(c,f){if(f){var d=f.map(function(q){return[q]});
return f.map(function(q){return i0Y(c,q,d)})}return qKC(c)};
qKC=function(c){var f=j5N.parameters(c);if(!f)return[];if(f.some(function(d){return d==null}))throw dKY(c,f);
return f.map(function(d){return i0Y(c,d,f)})};
i0Y=function(c,f,d){var q=null,Z=!1;if(!Array.isArray(f))return f instanceof T3k?mKG(f.token,Z,null):mKG(f,Z,null);for(var M=null,g=0;g<f.length;++g){var O=f[g];if(O instanceof B3e)q=O;else if(O instanceof T3k)q=O.token;else if(O instanceof H0P)Z=!0;else if(O instanceof AMe||O instanceof YKn)M=O}q=Ec(q);if(q!=null)return mKG(q,Z,M);throw dKY(c,d);};
mKG=function(c,f,d){return new F6k(ne.get(Ec(c)),f,d)};
tnz=function(c,f){for(var d=Array(c.providers.length),q=0;q<c.providers.length;++q){var Z=q;if(q<0||q>=c.providers.length)throw Error("$e`"+q);d[Z]=f(c.providers[q])}return d};
b0e=function(c){return typeof c==="function"&&j5N.parameters(c).every(function(f){return!!f})};
nGh=function(c){var f=K6k;EGk.get(c)||EGk.set(c,new f);return EGk.get(c)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(c){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(c)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(c){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(c)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(c,f){var d,q;if(c.contains(f))return!0;c=_.$n(c).querySelectorAll("content,slot");for(d=0;d<c.length;++d){var Z=_.$n(c[d]).getDistributedNodes();for(q=0;q<Z.length;++q)if(Z[q].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Z[q],f))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(c){c.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(c)&&c.preventDefault();c.targetTouches&&(c=c.targetTouches[0],$Kl=c.pageX,Q5z=c.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 c=0,f=Q5.length;c<f;c++)document.addEventListener(Q5[c],_._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 c=0,f=Q5.length;c<f;c++)document.removeEventListener(Q5[c],_._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(c){var f=_.$n(c).rootTarget;c.type!=="touchmove"&&SKk!==f&&(SKk=f,L6G=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.$n(c).path));if(!L6G.length)return!0;if(c.type==="touchstart")return!1;c=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(c);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(L6G,c.deltaX,c.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(c){for(var f=[],d=c.indexOf(zIN),q=0;q<=d;q++)if(c[q].nodeType===Node.ELEMENT_NODE){var Z=c[q],M=Z.style;M.overflow!=="scroll"&&M.overflow!=="auto"&&(M=window.getComputedStyle(Z));M.overflow!=="scroll"&&M.overflow!=="auto"||f.push(Z)}return f};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(c,f,d){if(f||d)for(var q=Math.abs(d)>=Math.abs(f),Z=0;Z<c.length;Z++){var M=c[Z];if(q?d<0?M.scrollTop>0:M.scrollTop<M.scrollHeight-M.clientHeight:f<0?M.scrollLeft>0:M.scrollLeft<M.scrollWidth-M.clientWidth)return M}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(c){var f={deltaX:c.deltaX,deltaY:c.deltaY};"deltaX"in c||("wheelDeltaX"in c&&"wheelDeltaY"in c?(f.deltaX=-c.wheelDeltaX,f.deltaY=-c.wheelDeltaY):"wheelDelta"in c?(f.deltaX=0,f.deltaY=-c.wheelDelta):"axis"in c?(f.deltaX=c.axis===1?c.detail:0,f.deltaY=c.axis===2?c.detail:0):c.targetTouches&&(c=c.targetTouches[0],f.deltaX=$Kl-c.pageX,f.deltaY=Q5z-c.pageY));return f};
JMl=function(c){this.element=c;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
VnN=function(c){this.element=c;this.color=window.getComputedStyle(c).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");_.$n(this.waveContainer).appendChild(this.wave);akz(this)};
Ss=function(c,f){for(var d in c)if(d.toLowerCase()===f.toLowerCase())return c[d]};
Xfh=function(c,f){for(var d in c)if(d.toLowerCase()===f.toLowerCase()){delete c[d];break}};
vGM=function(c){c=_.zV.clone(c);for(var f=0;f<ulk.length;++f){var d=ulk[f],q=Ss(c,d);q&&(c["X-Goog-Upload-Header-"+d]=q,Xfh(c,d))}return c};
hIe=function(c){c=_.zV.clone(c);Xfh(c,"X-Goog-Upload-Status")};
yMh=function(c){return wfl.some(function(f){return f.test(c)})};
N3k=function(c,f){var d;var q=(d=c.formContent)==null?void 0:d.locale;d=q==null?void 0:q.split("-")[0];q=q&&W6r.includes(q)?q:d&&W6r.includes(d)?d:void 0;q=(q!=null?q:"en").replaceAll("-","_").toLowerCase();var Z;c=((Z=c.initializationData)==null?0:Z.useNightlyRelease)?"nightly":"live";var M;return(f==null?0:(M=f.getEnableAlohaBinarySplit)==null?0:M.call(f))?_.CG(DKn,c):_.CG(eIr,c,q)};
RIG=function(c,f,d,q){if(Ikl&&PJG===f)return Ikl;PJG=f;var Z=N3k(c,q);return Ikl=f.feedbackV2GlobalObject?Promise.resolve(f.feedbackV2GlobalObject):new Promise(function(M,g){var O=_.A5("SCRIPT");_.oh(O,Z);O.onload=function(){f.feedbackV2GlobalObject?M(f.feedbackV2GlobalObject):g(Error("df"))};
O.onerror=function(){g(Error("ef`"+Z.toString()))};
d.body.appendChild(O)})};
xK4=function(c,f,d,q){if(UKe&&pfk===f)return UKe;pfk=f;var Z=N3k(c,q);return UKe=f.feedbackV2GlobalObject?Promise.resolve(f.feedbackV2GlobalObject):new Promise(function(M,g){var O=_.A5("SCRIPT");_.oh(O,Z);O.onload=function(){f.feedbackV2GlobalObject?M(f.feedbackV2GlobalObject):g(Error("df"))};
O.onerror=function(){g(Error("ef`"+Z.toString()))};
d.body.appendChild(O)})};
oGC=function(c,f,d,q,Z){Z=Z===void 0?!0:Z;var M,g,O,l,m;return _.k(function(H){switch(H.nextAddress){case 1:return M=Date.now(),H.yield(RIG(c,d,q,f),2);case 2:g=H.yieldResult;if(!(Z||((l=c.initializationData)==null?0:l.useNightlyRelease)||((m=c.initializationData)==null?0:m.isLocalServer))){O=g.initializeFeedbackClient(c,M,f);H.jumpTo(3);break}return H.yield(g.initializeFeedbackClientAsync(c,M,f),4);case 4:O=H.yieldResult;case 3:return O.initiateAloha(),H.return(O)}})};
Gel=function(c,f,d,q){var Z,M,g;return _.k(function(O){if(O.nextAddress==1)return Z=Date.now(),O.yield(xK4(c,d,q.document,f),2);if(O.nextAddress!=3)return M=O.yieldResult,O.yield(M.initializeFeedbackClientAsync(c,Z,f,q),3);g=O.yieldResult;g.initiateAloha();return O.return(g)})};
cWn=function(c,f,d){var q=!0;q=q===void 0?!0:q;var Z,M,g,O,l,m,H,A,Y,t;return _.k(function(E){Z=d||_.dz;if((M=f)==null?0:(O=(g=M).getEnableAlohaBinarySplit)==null?0:O.call(g)){l=Z;if(l.isFormOpened)throw m=Error("ff"),m.name="DuplicateFormError",m;l.isFormOpened=!0;c.callbacks=c.callbacks||{};H=c.callbacks.onClose||function(){};
c.callbacks.onClose=function(J){l.isFormOpened=!1;H(J)};
try{return E.return(Gel(c,f,l,Z))}catch(J){throw l.isFormOpened=!1,J;}}else{A=Z;if(A.isFormOpened)throw Y=Error("ff"),Y.name="DuplicateFormError",Y;A.isFormOpened=!0;c.callbacks=c.callbacks||{};t=c.callbacks.onClose||function(){};
c.callbacks.onClose=function(J){A.isFormOpened=!1;t(J)};
try{return E.return(oGC(c,f,A,Z.document,q))}catch(J){throw A.isFormOpened=!1,J;}}_.Fm(E)})};
Zie=function(c,f){return _.k(function(d){return d.return(new Promise(function(q){var Z=fnn(f!=null?f:"")+"/aloha_form_properties?productId="+c;d_G(Z,function(M){M=M.target;var g=null;try{var O=JSON,l=O.stringify;if(M.JSC$9739_xhr_){var m=M.JSC$9739_xhr_.responseText;m.indexOf(")]}'\n")==0&&(m=m.substring(5));var H=(0,_.Le)(m)}else H=void 0;g=hhY(j$e,l.call(O,H))}catch(A){l=new j$e,H=q4z(),H=_.zc(H,13,!1),H=_.zc(H,14,!0),H=_.zc(H,15,!0),H=_.zc(H,20,!1),g=_.BU(l,1,H)}q(g)},"GET","",{},2E3,!0)}))})};
fnn=function(c){return yMh(c)?c:"https://www.google.com/tools/feedback"};
g3M=function(c){c=c.match(new RegExp(MkG,"gi"))||[];c=_.C(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;a:{var d=_.C(rWh);for(var q=d.next();!q.done;q=d.next())if(q.value.test(f)){d=!1;break a}d=!0}if(!d)a:{d=_.C(CBh);for(q=d.next();!q.done;q=d.next())if(q.value.test(f)){d=!0;break a}d=!1}if(d)return!0}return!1};
kNn=function(c,f){var d={},q=Object.keys(c);q=_.C(q);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,d[Z]=f(Z,c[Z]);return d};
Oie=function(c){switch(c){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"}};
s$l=function(c){if(window.crypto&&window.crypto.getRandomValues)try{var f=Array(c),d=new Uint8Array(c);window.crypto.getRandomValues(d);for(var q=0;q<f.length;q++)f[q]=d[q];return f}catch(M){}f=Array(c);for(d=0;d<c;d++){q=Date.now();for(var Z=0;Z<q%23;Z++)f[d]=Math.random();f[d]=Math.floor(Math.random()*256)}if(lnr)for(d=1,q=0;q<lnr.length;q++)f[d%c]^=f[(d-1)%c]/4^lnr.charCodeAt(q),d++;return f};
Ji=function(c){c=s$l(c);for(var f=[],d=0;d<c.length;d++)f.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(c[d]&63));return f.join("")};
BEY=function(){var c=_.dz.ytLoggingDocDocumentNonce_;c||(c=Ji(16),_.fu("ytLoggingDocDocumentNonce_",c));return c};
TEl=function(c){c&&_.JN("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:iie,clientScreenNonce:c})};
m_P=function(c){return _.hk("client-screen-nonce-store",{})[c===void 0?0:c]};
HiC=function(c,f){f=f===void 0?0:f;var d=_.hk("client-screen-nonce-store");d||(d={},_.Xr("client-screen-nonce-store",d));d[f]=c};
AWk=function(c){c=c===void 0?0:c;return c===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+c};
Y4k=function(c){return _.hk(AWk(c===void 0?0:c))};
_.V5=function(c){return(c=Y4k(c===void 0?0:c))?new aS({veType:c,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Fpk=function(){var c=_.hk("csn-to-ctt-auth-info");c||(c={},_.Xr("csn-to-ctt-auth-info",c));return c};
tk4=function(){return Object.values(_.hk("client-screen-nonce-store",{})).filter(function(c){return c!==void 0})};
_.X2=function(c){c=m_P(c===void 0?0:c);if(!c&&!_.wi("USE_CSN_FALLBACK",!0))return null;c||(c="UNDEFINED_CSN");return c?c:null};
KpP=function(c){for(var f=_.C(Object.values(biM)),d=f.next();!d.done;d=f.next())if(_.X2(d.value)===c)return!0;return!1};
E3r=function(c,f,d){var q=Fpk();(d=_.X2(d))&&delete q[d];f&&(q[c]=f)};
uV=function(c){return Fpk()[c]};
_.vi=function(c,f,d,q){d=d===void 0?0:d;if(c!==m_P(d)||f!==_.hk(AWk(d)))if(E3r(c,q,d),HiC(c,d),_.Xr(AWk(d),f),f=function(){setTimeout(function(){TEl(c)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(f)}catch(Z){f()}else f()};
n3l=function(c,f){f=f===void 0?"":f;var d=[],q;for(q in c)if(c.hasOwnProperty(q)){var Z=f!==""?f+"."+q:q;typeof c[q]==="object"?d.push.apply(d,_.LT(n3l(c[q],Z))):d.push([Z,c[q]])}d.sort();return d};
_.w2=function(c){var f=_.hv.apply(1,arguments);if(!hi(c)||f.some(function(q){return!hi(q)}))throw Error("gf");
f=_.C(f);for(var d=f.next();!d.done;d=f.next())$_G(c,d.value)};
$_G=function(c,f){for(var d in f)if(hi(f[d])){if(d in c&&!hi(c[d]))throw Error("hf");d in c||(c[d]={});$_G(c[d],f[d])}else if(Q$l(f[d])){if(d in c&&!Q$l(c[d]))throw Error("jf");d in c||(c[d]=[]);S4k(c[d],f[d])}else c[d]=f[d];return c};
S4k=function(c,f){f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=d.value,hi(d)?c.push($_G({},d)):Q$l(d)?c.push(S4k([],d)):c.push(d);return c};
hi=function(c){return typeof c==="object"&&!Array.isArray(c)};
Q$l=function(c){return typeof c==="object"&&Array.isArray(c)};
zOC=function(c){for(var f=_.C(Object.entries(Lpn)),d=f.next();!d.done;d=f.next())if(d=_.C(d.value),d.next(),d=d.next().value,d==="SLI_STATUS_"+c)return d;return"SLI_STATUS_UNKNOWN"};
_.y5=function(c,f,d,q){return JWN(c,f,function(){return new _.anN(c,f,d,q)})};
_.VkC=function(){return _.y5("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Xah=function(){return _.y5("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Wi=function(){return _.y5("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
uek=function(){return _.y5("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
v3P=function(){return _.y5("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
hOr=function(){return _.y5("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Wpe=function(c){c&&(c.dataset?c.dataset[wah()]="true":_.ck([_.j5(yWG)],c,"data-loaded","true".toString()))};
D_C=function(c){return c?c.dataset?c.dataset[wah()]:c.getAttribute("data-loaded"):null};
wah=function(){return eOz.loaded||(eOz.loaded="loaded".replace(/\-([a-z])/g,function(c,f){return f.toUpperCase()}))};
_.Dz=function(c,f,d){NEz(c,f,d===void 0?null:d)};
_.RO4=function(c,f){c&&f&&(c=""+_.Rk(f),(c=PBh[c])&&_.RDn(c))};
NEz=function(c,f,d){d=d===void 0?null:d;var q=_.U_e(typeof c==="string"?c:c.toString()),Z=document.getElementById(q),M=Z&&D_C(Z),g=Z&&!M;M?f&&f():(f&&(M=_.gK(q,f),f=""+_.Rk(f),PBh[f]=M),g||(Z=paG(c,q,function(){D_C(Z)||(Wpe(Z),_.UVk(q),_.Oz(function(){_.xVP(q)},0))},d)))};
paG=function(c,f,d,q){q=q===void 0?null:q;var Z=_.A5("SCRIPT");Z.id=f;Z.onload=function(){d&&setTimeout(d,0)};
Z.onreadystatechange=function(){switch(Z.readyState){case "loaded":case "complete":Z.onload()}};
q&&Z.setAttribute("nonce",q);_.oh(Z,typeof c==="string"?_.Q2(c):c);c=document.getElementsByTagName("head")[0]||document.body;c.insertBefore(Z,c.firstChild);return Z};
_.U_e=function(c){var f=document.createElement("a");_.yM(f,c);return"js-"+es(f.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
x_k=function(c){var f=_.hk("INNERTUBE_HOST_OVERRIDE");f&&(c=String(f)+String(_.NT(c)));return c};
o3Y=function(c){var f={};_.F("json_condensed_response")&&(f.prettyPrint="false");return c=m9e(c,f)};
_.IS=function(c){return cq(c)?"same-origin":"include"};
_.Pi=function(c){return cq(c)?"same-origin":"cors"};
RS=function(c,f,d){d=d===void 0?{}:d;c={method:f===void 0?"POST":f,mode:_.Pi(c),credentials:_.IS(c)};f={};for(var q=_.C(Object.keys(d)),Z=q.next();!Z.done;Z=q.next())Z=Z.value,d[Z]&&(f[Z]=d[Z]);Object.keys(f).length>0&&(c.headers=f);return c};
_.Uc=function(c,f){f=f===void 0?{}:f;return"service:"+c+"/"+Object.keys(f).sort().map(function(d){return d+":"+f[d]}).join("/")};
GNk=function(c){var f,d,q,Z;c=(f=_.b(c,_.pe))==null?void 0:(d=f.watchEndpointSupportedOnesieConfig)==null?void 0:(q=d.html5PlaybackOnesieConfig)==null?void 0:(Z=q.commonConfig)==null?void 0:Z.url;if(!c)return[];f=new _.xn(c);return f.JSC$9976_domain_?["https://"+f.JSC$9976_domain_+"/generate_204"]:[]};
_.dMr=function(){return cRY()||bCN()||ful&&vq("version/")?!0:_.hk("EOM_VISITOR_DATA")?!1:!0};
jY4=function(c){var f=c.docid||c.video_id||c.videoId||c.id;if(f)return f;f=c.raw_player_response;f||(c=c.player_response)&&(f=JSON.parse(c));return f&&f.videoDetails&&f.videoDetails.videoId||null};
qPN=function(c){return c.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
oS=function(c){return!isNaN(Number(c))&&!_.gz(c)};
_.cO=function(c,f,d,q){q=q===void 0?!0:q;var Z=_.hk("VALID_SESSION_TEMPDATA_DOMAINS",[]),M=_.ow(window.location.href);M&&Z.push(M);M=_.ow(c);if(_.hP(Z,M)||!M&&_.Z4(c,"/"))if(Z=document.createElement("a"),_.yM(Z,c),c=Z.href)if(c=_.NT(c),c=_.Gc(c))q&&!f.csn&&(f.itct||f.ved)&&(f=Object.assign({csn:_.X2()},f)),d?(d=parseInt(d,10),isFinite(d)&&d>0&&Z84(c,f,d)):Z84(c,f)};
rRP=function(c){var f=_.hk("VALID_SESSION_TEMPDATA_DOMAINS",[]),d=_.ow(window.location.href);d&&f.push(d);d=_.ow(c);if(!(_.hP(f,d)||!d&&_.Z4(c,"/")))return null;c=_.NT(c);(c=_.Gc(c))?(c=Mlk(c),c=(c=_.A4.get(c,void 0)||null)?_.PC(c):{}):c=null;return c};
Z84=function(c,f,d){c=Mlk(c);f=f?_.Tf(f):"";d=d||5;_.dMr()&&_.YK(c,f,d)};
Mlk=function(c){for(var f=_.C(C0e),d=f.next();!d.done;d=f.next())c=_.fZ(c,d.value);return"ST-"+es(c).toString(36)};
gXM=function(c,f){c.commandMetadata&&_.b(c.commandMetadata,_.jO)&&_.b(c.commandMetadata,_.jO).url&&(c=_.Rw(_.b(c.commandMetadata,_.jO).url).adurl)&&_.AQP(c)&&_.cO(_.NT(c),{encoded_ad_playback_context:f})};
_.kyM=function(c){if(c.requestFullscreen)c=c.requestFullscreen(void 0);else if(c.webkitRequestFullscreen)c=c.webkitRequestFullscreen();else if(c.mozRequestFullScreen)c=c.mozRequestFullScreen();else if(c.msRequestFullscreen)c=c.msRequestFullscreen();else if(c.webkitEnterFullscreen)c=c.webkitEnterFullscreen();else return Promise.reject(Error("sf"));return c instanceof Promise?c:Promise.resolve()};
_.Zr=function(c){var f;_.Xhh(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.q9()==c&&(f=document):f=c;if(f&&(c=_.Xhh(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],f))){c.call(f)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.q9=function(){var c=c===void 0?!1:c;var f=_.Xhh(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(c)for(;f&&f.shadowRoot;)f=f.shadowRoot.fullscreenElement;return f?f:null};
_.M9=function(c,f){f=f===void 0?!0:f;c.addEventListener("wheel",O8G);c.overscrollConfig={cooldown:f}};
_.rS=function(c){c.overscrollConfig=void 0;c.removeEventListener("wheel",O8G)};
O8G=function(c){var f=c.deltaY,d=c.target,q=null;if(window.Polymer&&window.Polymer.Element){if(d=c.path||c.composedPath&&c.composedPath()){d=_.C(d);for(var Z=d.next();!Z.done&&(Z=Z.value,!lu4(Z,f));Z=d.next())if(Z.overscrollConfig){q=Z;break}}}else for(;d&&!lu4(d,f);){if(d.overscrollConfig){q=d;break}d=d.parentElement}q&&(f=q.overscrollConfig,f.cooldown?(q=c.deltaY,d=f.lastDeltaY||0,f.lastDeltaY=q,Z=f.lastStopped||0,d&&Z&&d>0==q>0?Math.abs(d)>=Math.abs(q)?(q=Z+1200,d=!1):(q=Z+600,d=!0):(q=Date.now()+
600,d=!0),q>Date.now()&&(c.preventDefault(),d&&(f.lastStopped=Date.now()))):c.preventDefault())};
lu4=function(c,f){return f<0&&c.scrollTop>0||f>0&&c.scrollTop<c.scrollHeight-c.clientHeight-1?(c=getComputedStyle(c).overflowY,c=="auto"||c=="scroll"):!1};
_.CZ=function(c,f,d,q){q||(q={bubbles:!0,cancelable:!1,composed:!0});d!==null&&d!==void 0&&(q.detail=d);var Z=new CustomEvent(f,q);_.F("untrack_fire_custom_event_killswitch")?c.dispatchEvent(Z):kk(function(){return void c.dispatchEvent(Z)});
return Z};
sYM=function(c){var f=window,d=function(q){f.removeEventListener("yt-navigate-start",d);return c.call(f,q)};
f.addEventListener("yt-navigate-start",d,void 0)};
_.gS=function(c,f,d,q){f=new Bhk(f,!(q===void 0||!q),d);_.CZ(c,"yt-action",f);return f.returnValue};
_.kt=function(c,f,d){return _.gS(c,f,d,!0)};
_.ll=function(c,f,d,q){f&&f.length&&f.forEach(function(Z){var M=JcY(Z);M&&(_.F("handle_service_request_actions")&&Z.commandMetadata&&Z.commandMetadata.webCommandMetadata&&Z.commandMetadata.webCommandMetadata.sendPost?_.OX(d?d:c,[Z]):_.kt(c,M,[Z,d,q]))})};
_.OX=function(c,f){var d=[c];f&&d.push.apply(d,f);f=_.gS(c,"yt-service-request",d);return f.length>0&&(f=f[0],_.CZ(c,"yt-service-request-sent",f),f&&f.ajaxPromise)?(f.ajaxPromise.then(function(q){_.CZ(c,"yt-service-request-completed",q)},function(q){_.CZ(c,"yt-service-request-error",{error:q,
params:d})},c),f.ajaxPromise):_.sX()};
_.il=function(c,f){if(_.F("handle_service_request_actions"))_.ll(f,c,f);else{c=_.C(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var q=void 0;((q=_.b(d,_.BO))==null?0:q.commands)?_.il(_.b(d,_.BO).commands,f):(q=void 0,((q=_.b(d,_.Ti))==null?0:q.actions)?_.il(_.b(d,_.Ti).actions,f):(q=void 0,((q=_.b(d.commandMetadata,_.jO))==null?0:q.sendPost)?_.OX(f,[d]):_.ll(f,[d],f)))}}};
_.ThP=function(c,f,d){f=f===void 0?{}:f;typeof f==="function"&&(f={callback:f});d||f._c&&f._c.jsl&&f._c.jsl.h||_.zV.extend(f,{_c:{jsl:{h:_.hk("GAPI_HINT_PARAMS")}}});(f.gapiHintOverride||_.hk("GAPI_HINT_OVERRIDE"))&&(d=_.Rw(document.location.href).gapi_jsh)&&_.zV.extend(f,{_c:{jsl:{h:d}}});i8M(c,f)};
_.HO=function(c,f,d){f=f===void 0?{}:f;c=(c=c in mn?mn[c]:d)||"";d={};for(var q in f){d={key$jscomp$818:d.key$jscomp$818};d.key$jscomp$818=q;var Z=function(M){return function(){return String(f[M.key$jscomp$818])}}(d);
c=c.replace(new RegExp("\\$\\{"+d.key$jscomp$818+"\\}","gi"),Z);c=c.replace(new RegExp("\\$"+d.key$jscomp$818,"gi"),Z)}return c};
_.AQ=function(c,f){return mMP(c in mn?mn[c]:{},f)};
mMP=function(c,f){var d=_.hk("I18N_PLURAL_RULES");d||(d=function(q){return q==1?"one":"other"});
return(c=c["case"+f]||c[d(f)])?c.replace("#",f.toString()):f+""};
YPG=function(c){var f=H8z(c),d=document.getElementById(f),q=d&&D_C(d);q||d&&!q||(d=ARG(c,f,function(){if(!D_C(d)){Wpe(d);_.UVk(f);var Z=_.Yt(_.xVP,f);_.Oz(Z,0)}}))};
ARG=function(c,f,d){var q=document.createElement("link");q.id=f;q.onload=function(){d&&setTimeout(d,0)};
c=_.Q2(c);_.dd(q,c,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(q);return q};
H8z=function(c){var f=_.A5("A");_.yM(f,$h(c));return"css-"+es(f.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.tl4=function(c){var f=FPN();c!==f&&(f=_.Ft(),!_.F("web_autonav_allow_off_by_default")&&c||_.tQ(0,141,!0),_.tQ(0,140,!c),f.save())};
FPN=function(){var c=_.Ft();return _.F("web_autonav_allow_off_by_default")&&!c.getFlag(141)&&_.hk("AUTONAV_OFF_BY_DEFAULT")?!1:!c.getFlag(140)};
b8Y=function(c,f){var d,q;c=((d=c.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(q=d.videoAuthorizationToken)==null?void 0:q.credentialTransferTokens)||[];for(d=0;d<c.length;++d)if(c[d].scope===f)return c[d].token||void 0};
KPC=function(c){for(var f=0,d=0;d<c.length;d++)f=f*31+c.charCodeAt(d),d<c.length-1&&(f%=0x800000000000);return f%1E5};
_.bl=function(c){return _.D5("ytcsi."+(c||"")+"data_")||EXk(c)};
_.nXk=function(c){c=_.bl(c);c.metadata||(c.metadata={});return c.metadata};
_.$MY=function(c){c=_.bl(c);c.tick||(c.tick={});return c.tick};
_.KZ=function(c){c=_.bl(c);if(c.gel){var f=c.gel;f.gelInfos||(f.gelInfos={});f.gelTicks||(f.gelTicks={})}else c.gel={gelTicks:{},gelInfos:{}};return c.gel};
_.QYG=function(c){c=_.KZ(c);c.gelInfos||(c.gelInfos={});return c.gelInfos};
SPG=function(c){var f=_.bl(c).nonce;f||(f=Ji(16),_.bl(c).nonce=f);return f};
EXk=function(c){var f={tick:{},info:{}};_.fu("ytcsi."+(c||"")+"data_",f);return f};
LPN=function(){var c=_.D5("ytcsi.debug");c||(c=[],_.fu("ytcsi.debug",c),_.fu("ytcsi.reference",{}));return c};
_.EX=function(c){c=c||"";var f=z9k();if(f[c])return f[c];var d=LPN(),q={timerName:c,info:{},tick:{},span:{},jspbInfo:[]};d.push(q);return f[c]=q};
JR4=function(c){c=c||"";var f=z9k();f[c]&&delete f[c];var d=LPN(),q={timerName:c,info:{},tick:{},span:{},jspbInfo:[]};d.push(q);f[c]=q};
z9k=function(){var c=_.D5("ytcsi.reference");if(c)return c;LPN();return _.D5("ytcsi.reference")};
_.VlM=function(c){return auM[c]||"LATENCY_ACTION_UNKNOWN"};
h9l=function(c,f,d){d=d===void 0?{}:d;var q=!1;_.wi("ytLoggingEventsDefaultDisabled",!1)&&(q=!0);q=q?null:LW;d=d===void 0?{}:d;var Z=Math.round(d.timestamp||(0,_.qR)());_.b6(f,1,Z<Number.MAX_SAFE_INTEGER?Z:0);Z=new Xdl;if(d.lact)_.b6(Z,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)_.b6(Z,1,-1);else{var M=_.ZZ();_.b6(Z,1,isFinite(M)?M:-1)}if(d.sequenceGroup&&!_.F("web_gel_sequence_info_killswitch")){M=d.sequenceGroup;var g=Mck(M),O=new uIk;_.b6(O,2,g);_.b5(O,1,M);_.BU(Z,3,O);d.endOfSequence&&delete vXn[d.sequenceGroup]}_.BU(f,
33,Z);(d.sendIsolatedPayload?sTY:B_k)(c,{endpoint:"log_event",payload:f,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},q)};
_.$t=function(){return(_.F("csi_use_time_origin")||_.F("csi_use_time_origin_tvhtml5"))&&_.nZ.timeOrigin?Math.floor(_.nZ.timeOrigin):_.nZ.timing.navigationStart};
_.wd4=function(c,f){_.Q_("_start",c,f)};
_.SO=function(c,f){if(!_.F("web_csi_action_sampling_enabled")||!_.bl(f).actionDisabled){var d=_.EX(f||"");_.w2(d.info,c);c.loadType&&(d=c.loadType,_.nXk(f).loadType=d);_.w2(_.QYG(f),c);d=SPG(f);f=_.bl(f).cttAuthInfo;yR4().info(c,d,f)}};
WPk=function(){var c,f,d,q;return((q=_.ql().resolve(_.dx(nW))==null?void 0:(c=$z())==null?void 0:(f=c.loggingHotConfig)==null?void 0:(d=f.csiConfig)==null?void 0:d.debugTicks)!=null?q:[]).map(function(Z){return Object.values(Z)[0]})};
_.Q_=function(c,f,d){if(!_.F("web_csi_action_sampling_enabled")||!_.bl(d).actionDisabled){var q=SPG(d),Z;if(Z=_.F("web_csi_debug_sample_enabled")&&q){(_.ql().resolve(_.dx(nW))==null?0:$z())&&!DMz&&(DMz=!0,_.Q_("gcfl",(0,_.qR)(),d));var M,g,O;Z=(_.ql().resolve(_.dx(nW))==null?void 0:(M=$z())==null?void 0:(g=M.loggingHotConfig)==null?void 0:(O=g.csiConfig)==null?void 0:O.debugSampleWeight)||0;if(M=Z!==0)b:{M=WPk();if(M.length>0)for(g=0;g<M.length;g++)if(c===M[g]){M=!0;break b}M=!1}M?(Z=KPC(q)%Z!==0,
_.bl(d).debugTicksExcludedLogged||(M={},M.debugTicksExcluded=Z,_.SO(M,d)),_.bl(d).debugTicksExcludedLogged=!0):Z=!1}if(!Z){c[0]!=="_"&&e9r(c,d,f);Z=_.EX(d||"");Z.tick[c]=f||(0,_.qR)();if(Z.callback&&Z.callback[c])for(Z=_.C(Z.callback[c]),M=Z.next();!M.done;M=Z.next())M=M.value,M();Z=_.KZ(d);Z.gelTicks&&(Z.gelTicks[c]=!0);M=_.$MY(d);Z=f||(0,_.qR)();_.F("log_repeated_ytcsi_ticks")?c in M||(M[c]=Z):M[c]=Z;M=_.bl(d).cttAuthInfo;c==="_start"?yR4().baseline(q,f,M):yR4().tick(c,q,f,M);_.Nh4(d);return Z}}};
e9r=function(c,f,d){if(_.nZ.mark)if(c.startsWith("mark_")||(c="mark_"+c),f&&(c+=" ("+f+")"),d===void 0||_.F("web_csi_disable_alt_time_performance_mark"))_.nZ.mark(c);else{d=_.F("csi_use_performance_navigation_timing")?d-_.nZ.timeOrigin:d-(_.nZ.timeOrigin||_.nZ.timing.navigationStart);try{_.nZ.mark(c,{startTime:d})}catch(q){}}};
Iuk=function(){var c,f=(c=_.nZ.getEntriesByType)==null?void 0:c.call(_.nZ,"mark");f&&f.forEach(function(d){if(d.name.startsWith("mark_")){var q;(q=_.nZ.clearMarks)==null||q.call(_.nZ,d.name)}})};
_.P0r=function(){switch(VqG()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.R9r=function(c){var f={},d=function(M,g,O){g=g.match("_rid")?g.split("_rid")[0]:g;typeof O==="number"&&(O=JSON.stringify(O));M.requestIds?M.requestIds.push({endpoint:g,id:O}):M.requestIds=[{endpoint:g,id:O}]};
c=_.C(Object.entries(c));for(var q=c.next();!q.done;q=c.next()){var Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;switch(q){case "GetBrowse_rid":d(f,q,Z);break;case "GetGuide_rid":d(f,q,Z);break;case "GetHome_rid":d(f,q,Z);break;case "GetPlayer_rid":d(f,q,Z);break;case "GetSearch_rid":d(f,q,Z);break;case "GetSettings_rid":d(f,q,Z);break;case "GetTrending_rid":d(f,q,Z);break;case "GetWatchNext_rid":d(f,q,Z);break;case "yt_red":f.isRedSubscriber=!!Z;break;case "yt_ad":f.isMonetized=!!Z}}return f};
pdC=function(c,f,d,q,Z,M){if(!_.F("web_csi_action_sampling_enabled")||!_.bl(M).actionDisabled){var g=_.KZ(M);if(g.gelSpans)g.gelSpans[c]=!0;else{var O={};g.gelSpans=(O[c]=!0,O)}UMC++;c={spanName:c,spanLengthUsec:String(Math.round(f*1E3)),spanNonce:UMC};q&&(c.spanInfo=q);Z&&(c.parentSpanNonce=Z);d&&(c.spanStartTimeUsec=String(Math.round(d*1E3)));_.EX(M||"").span[String(c.spanName)]=c;d=_.KZ(M);d.gelSpans||(d.gelSpans={});_.w2(d.gelSpans,c);d=SPG(M);M=_.bl(M).cttAuthInfo;yR4().span(c,d,M);return c.spanNonce}};
_.xMM=function(c){var f=_.LZ("aft",c);if(f)return f;f=_.hk((c||"")+"TIMING_AFT_KEYS",["ol"]);for(var d=f.length,q=0;q<d;q++){var Z=_.LZ(f[q],c);if(Z)return Z}return NaN};
_.oXk=function(c,f){_.fu("ytglobal.timing"+(f||"")+"ready_",c)};
_.LZ=function(c,f){if(c=_.$MY(f)[c])return typeof c==="number"?c:c[c.length-1]};
_.Nh4=function(c){var f=_.LZ("_start",c),d=_.xMM(c),q=!Gyr;f&&d&&q&&(CaM(csz,new fGh(Math.round(d-f),c)),Gyr=!0)};
jJN=function(c){EXk(c);dAk();Iuk();c||(_.hk("TIMING_ACTION")&&_.Xr("PREVIOUS_ACTION",_.hk("TIMING_ACTION")),_.Xr("TIMING_ACTION",""))};
_.qUe=function(c){c=c===void 0?{}:c;_.WC(function(){zi();JR4();jJN();_.oXk(!1);c.cttAuthInfo&&(_.bl().cttAuthInfo=c.cttAuthInfo);_.Xr("TIMING_AFT_KEYS",[]);c.isHot?_.JQ({loadType:"hot"}):_.JQ({loadType:"warm"});_.Xr("TIMING_ACTION","");delete _.hk("TIMING_INFO",{}).yt_lt;_.WC(_.wd4)(c.startTime,void 0)})()};
_.ac=function(c,f,d,q){f=f===void 0?{}:f;_.WC(function(){var Z=d?d:c;ZnN(Z);var M=f.sampleRate;if(!_.F("web_csi_action_sampling_enabled")||M===void 0||M<=1)M=!1;else{var g=SPG(Z);M=KPC(g)%M!==0}M&&(_.bl(Z).actionDisabled=!0);_.EX(Z||"").info.actionType=c;f.cttAuthInfo&&(_.bl(Z).cttAuthInfo=f.cttAuthInfo);_.Xr(Z+"TIMING_ACTION",c);_.WC(_.wd4)(f.startTime,Z);M={actionType:q||_.VlM(c)};f.logPreviousAction&&(M.previousAction=_.VlM(_.hk("TIMING_ACTION")));(g=_.X2())&&g!=="UNDEFINED_CSN"&&(M.clientScreenNonce=
g);_.JQ(M,Z);_.oXk(!0,Z)})()};
ZnN=function(c){_.WC(function(){zi(c);JR4(c);jJN(c)})()};
MgG=function(){_.WC(function(){var c=[],f;for(f in _.D5("ytcsi.".slice(0,-1)))f.endsWith("data_")&&c.push(f.slice(0,-5));c=_.C(c);for(f=c.next();!f.done;f=c.next())ZnN(f.value);zi()})()};
_.Csk=function(c){return _.WC(function(){return _.rsC("_start",c)})()};
_.JQ=function(c,f,d){_.WC(_.SO)(c,f,d===void 0?!1:d)};
_.V_=function(c,f,d){return _.WC(_.Q_)(c,f,d)};
_.rsC=function(c,f){return _.WC(function(){var d=_.$MY(f);return c in d})()};
k0n=function(c){if(!_.F("universal_csi_network_ticks"))return"";c=_.Bq(c)||"";for(var f=Object.keys(g$h),d=0;d<f.length;d++){var q=f[d];if(c.includes(q))return q}return""};
lGC=function(c){if(!_.F("universal_csi_network_ticks"))return function(){};
var f=g$h[c];return f?(_.Xt(f),function(){var d=_.F("universal_csi_network_ticks")?(d=Onr[c])?_.Xt(d):!1:!1;return d}):function(){}};
_.Xt=function(c,f,d){return _.WC(function(){if(_.rsC(c,d))return!1;_.V_(c,f,d);return!0})()};
_.ul=function(c,f,d){_.WC(function(){if(!_.Csk(d)||_.rsC(c,d))return!1;_.V_(c,f,d);return!0})()};
_.vO=function(c){return _.WC(_.LZ)(c,void 0)};
zi=function(c){_.Csk(c)&&_.V_("aa",void 0,c)};
_.mAh=function(c,f,d,q,Z,M,g,O,l){var m=sJk();O=new aS({veType:f,youtubeData:M,jspbYoutubeData:O});M=hQ({},m);Z&&(M.cttAuthInfo=Z);Z={csn:m,pageVe:O.getAsJson()};_.F("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(Z.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations);d&&d.visualElement?(Z.implicitGesture={parentCsn:d.clientScreenNonce,gesturedVe:d.visualElement.getAsJson()},g&&(Z.implicitGesture.gestureType=g)):d&&_.u6(new _.KD("newScreen() parent element does not have a VE - rootVe",
f));q&&(Z.cloneCsn=q);c?S_("screenCreated",Z,c,M):_.JN("screenCreated",Z,M);CaM(i$h,new Bqz(m));wS.clear();inC.clear();TqN.clear();return m};
y_=function(c,f,d,q,Z,M){M=M===void 0?{}:M;Hnz(c,f,d,[q],Z===void 0?!1:Z,M)};
Hnz=function(c,f,d,q,Z,M){Z=Z===void 0?!1:Z;M=M===void 0?{}:M;Object.assign(M,hQ({cttAuthInfo:uV(f)||void 0},f));for(var g=_.C(q),O=g.next();!O.done;O=g.next()){O=O.value;var l=O.getAsJson();(_.zV.isEmpty(l)||!l.trackingParams&&!l.veType)&&_.u6(Error("tf"));if(_.F("no_client_ve_attach_unless_shown")){var m=AsM(O,f);if(l.veType&&!inC.has(m)&&!TqN.has(m)&&!Z){if(!_.F("il_attach_cache_limit")||wS.size<1E3){wS.set(m,[c,f,d,O]);return}_.F("il_attach_cache_limit")&&wS.size>1E3&&_.u6(new _.KD("IL Attach cache exceeded limit"))}O=
AsM(d,f);wS.has(O)?YUn(d,f):TqN.set(O,!0)}}q=q.filter(function(H){H.csn!==f?(H.csn=f,H=!0):H=!1;return H});
d={csn:f,parentVe:d.getAsJson(),childVes:_.JT(q,function(H){return H.getAsJson()})};
f==="UNDEFINED_CSN"?WO("visualElementAttached",M,d):c?S_("visualElementAttached",d,c,M):_.JN("visualElementAttached",d,M)};
tgk=function(c,f,d,q,Z){F3Y(c,f,d,Z)};
F3Y=function(c,f,d,q){bnl(d,f);var Z=hQ({cttAuthInfo:uV(f)||void 0},f);d={csn:f,ve:d.getAsJson(),eventType:1};q&&(d.clientData=q);f==="UNDEFINED_CSN"?WO("visualElementShown",Z,d):c?S_("visualElementShown",d,c,Z):_.JN("visualElementShown",d,Z)};
K3M=function(c,f,d,q){bnl(d,f);var Z=hQ({cttAuthInfo:uV(f)||void 0},f);d={csn:f,ve:d.getAsJson(),eventType:4};q&&(d.clientData=q);f==="UNDEFINED_CSN"?WO("visualElementShown",Z,d):c?S_("visualElementShown",d,c,Z):_.JN("visualElementShown",d,Z)};
E$G=function(c,f,d,q,Z){var M=(q=q===void 0?!1:q)?16:8;q=hQ({cttAuthInfo:uV(f)||void 0,endOfSequence:q},f);d={csn:f,ve:d.getAsJson(),eventType:M};Z&&(d.clientData=Z);f==="UNDEFINED_CSN"?WO("visualElementHidden",q,d):c?S_("visualElementHidden",d,c,q):_.JN("visualElementHidden",d,q)};
$Ar=function(c,f,d,q,Z){n$G(c,f,d,void 0,q,Z)};
n$G=function(c,f,d,q,Z){bnl(d,f);q=q||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var M=hQ({cttAuthInfo:uV(f)||void 0},f);d={csn:f,ve:d.getAsJson(),gestureType:q};Z&&(d.clientData=Z);f==="UNDEFINED_CSN"?WO("visualElementGestured",M,d):c?S_("visualElementGestured",d,c,M):_.JN("visualElementGestured",d,M)};
QJC=function(c,f,d,q){var Z=hQ({cttAuthInfo:uV(f)||void 0},f);d={csn:f,ve:d.getAsJson(),clientData:q};f==="UNDEFINED_CSN"?WO("visualElementStateChanged",Z,d):c?S_("visualElementStateChanged",d,c,Z):_.JN("visualElementStateChanged",d,Z)};
SUk=function(){var c=s$l(16);for(var f=[],d=0;d<c.length;d++)f.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(c[d]&63));return f.join("")};
WO=function(c,f,d){L3e.push({payloadName:c,payload:d,jspbPayload:void 0,options:f});zik||(zik=mhC())};
B1l=function(c){if(L3e){for(var f=_.C(L3e),d=f.next();!d.done;d=f.next())d=d.value,d.payload&&(d.payload.csn=c.csn,_.JN(d.payloadName,d.payload,d.options));L3e.length=0}zik=0};
AsM=function(c,f){return""+c.getAsJson().veType+c.getAsJson().veCounter+f};
bnl=function(c,f){if(_.F("no_client_ve_attach_unless_shown")){var d=AsM(c,f);inC.set(d,!0);YUn(c,f)}};
YUn=function(c,f){c=AsM(c,f);wS.has(c)&&(f=wS.get(c)||[],y_(f[0],f[1],f[2],f[3],!0),wS.delete(c))};
hQ=function(c,f){_.F("log_sequence_info_on_gel_web")&&(c.sequenceGroup=f);return c};
_.Dr=function(c,f,d){_.WC(y_)(void 0,c,f,d)};
_.eO=function(c,f,d){_.WC(Hnz)(void 0,c,f,d)};
_.N9=function(c,f){_.WC(tgk)(void 0,c,f,void 0,void 0,void 0)};
_.Ic=function(c,f,d){_.WC(function(){_.Iw(f,function(q){K3M(void 0,c,q,d)})})()};
_.PO=function(c,f,d,q){_.WC(function(){_.Iw(f,function(Z){E$G(void 0,c,Z,d,q)})})()};
_.Rc=function(c,f,d){_.WC($Ar)(void 0,c,f,d,void 0)};
_.UX=function(c,f,d,q){_.WC(n$G)(void 0,c,f,d,q,void 0)};
_.xt=function(c,f,d){_.WC(QJC)(void 0,c,f,d,void 0)};
Jsn=function(c,f){oc.set(c,f)};
aG4=function(c){Gi={sessionId:c.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:c.enabledSpans}};
VgN=function(c){return Gi?Gi.enabledSpans?!!Gi.enabledSpans[c]:!0:!1};
XKl=function(c){if(!Gi)throw Error("wf");Gi.processors.push(c)};
u$z=function(c){var f;return{id:c.id,traceId:c.traceId,sessionId:c.sessionId,name:c.name,attributes:c.attributes,startTime:c.startTime,endTime:c.endTime,status:c.status,parentId:(f=c.parent)==null?void 0:f.id}};
v$k=function(c,f){if(c){f=f===void 0?1:f;if(c&&(c.endTime=(0,_.qR)(),f&&(c.status=f),f=Gi)){f=_.C(f.processors);for(var d=f.next();!d.done;d=f.next()){var q=void 0,Z=void 0;(Z=(q=d.value).onSpanEnd)==null||Z.call(q,c)}}if(f=Gi){if(c!==f.activeSpan)throw Error("xf");var M;f.activeSpan=(M=f.activeSpan)==null?void 0:M.parent}}};
hiz=function(c,f,d){var q;if((q=Gi)&&VgN(c)){var Z=q.nextSpanId++,M=q.activeSpan;c={id:Z,parent:M,name:c,attributes:f,traceId:M?M.traceId:Z,sessionId:q.sessionId,startTime:(0,_.qR)(),status:0};if(q.activeSpan){var g;(g=q.activeSpan).children||(g.children=[]);q.activeSpan.children.push(c)}q=_.C(q.processors);for(g=q.next();!g.done;g=q.next())Z=f=void 0,(Z=(f=g.value).onSpanStart)==null||Z.call(f,c);q=c}else q=void 0;c=Gi;q=q&&c?c.activeSpan=q:void 0;if(!q)return d();try{var O=d(q);v$k(q);return O}catch(l){throw v$k(q,
2),l;}};
wKn=function(c,f){var d=Object.keys(c);c=new _.KD("[Command Handler] "+f,{filteredCommandNames:d,originalCommand:c});_.VO(c)};
yse=function(c,f){wKn(c,f+" was called but not set")};
W3N=function(c){return function(){return new c}};
cb=function(c){return function(){return _.ql().resolve(c)}};
DA4=function(c,f){var d=_.b(c,_.e_);if(d&&(d=f[d.signal]))return d();c=_.C(Object.keys(c));for(d=c.next();!d.done;d=c.next())if(d=d.value,f[d]&&(d=f[d]))return d()};
fC=function(c,f,d,q){return{browseEndpoint:{browseId:c},commandMetadata:{webCommandMetadata:{url:f,rootVe:d,webPageType:q===void 0?"WEB_PAGE_TYPE_BROWSE":q}}}};
eir=function(c,f,d){var q=f=f===void 0?0:f;d=d===void 0?0:d;var Z=d-q;return _.dW(c,"PPSV",void 0,void 0,(Z>600?0:Z<60||d<=0||q/d>.9)?0:f)};
_.dW=function(c,f,d,q,Z){var M="/watch?v="+c;c={videoId:c};f&&(c.playlistId=f,M+="&list="+f);q&&(M+="&pp="+q);Z&&(c.startTimeSeconds=Z,M+="&t="+Z+"s");f={watchEndpoint:c,commandMetadata:{webCommandMetadata:{url:M,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};d&&(f.clickTrackingParams=d);q&&(_.b(f,_.pe).playerParams=q);return f};
Nqk=function(c){return{browseEndpoint:{browseId:"VL"+c},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+c,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
IGC=function(c){if(c){var f;if(c){var d=(f=_.b(c.commandMetadata,_.jO))==null?void 0:f.url;f=!(!d||d==="/service_ajax")}else f=!1;if(f)return c;var q;if(c=(q=_.b(c,_.BO))==null?void 0:q.commands)for(q=_.C(c),c=q.next();!c.done;c=q.next())if(c=IGC(c.value))return c}};
_.jU=function(c){return{runs:[{text:c}]}};
PsG=function(c,f){return c&&f?{runs:[{text:c,navigationEndpoint:f}]}:void 0};
q$=function(c){return c?_.jU(c):void 0};
_.Z8=function(c){return c?{simpleText:c}:void 0};
_.CC=function(c){var f=c.type;c=c.payload;f={type:f};c!==void 0&&(f.payload=c);return f};
RiM=function(c,f,d){for(var q=Object.assign({},c),Z=_.C(Object.keys(f)),M=Z.next();!M.done;M=Z.next()){M=M.value;var g=c[M],O=f[M];if(O===void 0)delete q[M];else if(g===void 0)q[M]=O;else if(Array.isArray(O)&&Array.isArray(g))q[M]=d?[].concat(_.LT(g),_.LT(O)):O;else if(!Array.isArray(O)&&_.Ik(O)&&!Array.isArray(g)&&_.Ik(g))q[M]=RiM(g,O,d);else if(typeof O===typeof g)q[M]=O;else return f=new _.KD("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:M,originalValue:g,updateValue:O}),
_.VO(f),c}return q};
xAP=function(c){if(!c.length)return"";try{if(UAk)return UAk.decode(c);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(c)}catch(g){}for(var f=0,d=[],q=c.length;f<q;){for(var Z=0;Z<1024&&f<q;){var M=c[f++];if(M<128)pKz[Z++]=M;else{if(M<224)M=(M&31)<<6|c[f++]&63;else if(M<240)M=(M&15)<<12|(c[f++]&63)<<6|c[f++]&63;else{if(Z+1===1024){--f;break}M=(M&7)<<18|(c[f++]&63)<<12|(c[f++]&63)<<6|c[f++]&63;M-=65536;pKz[Z++]=55296|M>>10;M=56320|M&1023}pKz[Z++]=M}}M=String.fromCharCode.apply(String,
pKz);Z<1024&&(M=M.substring(0,Z));d.push(M)}return d.join("")};
G0n=function(c,f){var d;if((d=o$M)==null?0:d.encodeInto)return f=o$M.encodeInto(c,f),f.read<c.length?c.length*4:f.written;for(var q=d=0;q<c.length;q++){var Z=c.charCodeAt(q);Z<128?f[d++]=Z:(Z<2048?f[d++]=Z>>6|192:((Z&64512)===55296&&q+1<c.length&&(c.charCodeAt(q+1)&64512)===56320?(Z=65536+((Z&1023)<<10)+(c.charCodeAt(++q)&1023),f[d++]=Z>>18|240,f[d++]=Z>>12&63|128):f[d++]=Z>>12|224,f[d++]=Z>>6&63|128),f[d++]=Z&63|128)}return d};
cBN=function(c,f,d){if(f&&d&&d.buffer===f.exports.memory.buffer){var q=f.realloc(d.byteOffset,c);if(q)return new Uint8Array(f.exports.memory.buffer,q,c)}c=f?new Uint8Array(f.exports.memory.buffer,f.malloc(c),c):new Uint8Array(c);d&&c.set(d);return c};
_.kC=function(c){c=new fjk(new dBk([_.pr(decodeURIComponent(c))]));if(jEr(c,2)){var f=gW(c);var d=c.pos;var q=c.arrayView;d=d===void 0?0:d;var Z=f===void 0?-1:f;d=d===void 0?0:d;Z=Z===void 0?-1:Z;if(q.totalLength&&Z){Z<0&&(Z=q.totalLength-d);q.focus(d);if(!(d-q.arrayPos+Z<=q.arrays[q.arrayIdx].length)){var M=q.arrayIdx,g=q.arrayPos;q.focus(d+Z-1);g=new Uint8Array(q.arrayPos+q.arrays[q.arrayIdx].length-g);for(var O=0,l=M;l<=q.arrayIdx;l++)g.set(q.arrays[l],O),O+=q.arrays[l].length;q.arrays.splice(M,
q.arrayIdx-M+1,g);q.arrayIdx=0;q.arrayPos=0;q.focus(d)}M=q.arrays[q.arrayIdx];q=new DataView(M.buffer,M.byteOffset+d-q.arrayPos,Z)}else q=new DataView(new ArrayBuffer(0));q=new Uint8Array(q.buffer,q.byteOffset,q.byteLength);c.pos+=f;f=q}else f=void 0;f=f?xAP(f):void 0;c=jEr(c,4)?gW(c):void 0;q=qBP[c];if(typeof q==="undefined")throw c=new _.KD("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:c}),_.VO(c),c;return{entityTypeFieldNumber:c,entityType:q,entityId:f}};
_.sx=function(c,f,d){d=d===void 0?0:d;var q=new ZzN;if(o$M)c=o$M.encode(c);else{var Z=new Uint8Array(Math.ceil(c.length*1.2)),M=G0n(c,Z);Z.length<M&&(Z=new Uint8Array(M),M=G0n(c,Z));Z.length>M&&(Z=Z.subarray(0,M));c=Z}c!==void 0&&(Ox(q,18),Z=c.length,Ox(q,Z),lI(q,Z),q.buf.set(c,q.pos),q.pos+=Z);c=Mwk[f];if(typeof c==="undefined")throw d=new _.KD("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:f}),_.VO(d),d;c!==void 0&&(Ox(q,32),Ox(q,c));Ox(q,40);Ox(q,1);f=new Uint8Array(q.buf.buffer,
q.buf.byteOffset,q.pos);return encodeURIComponent(_.$S(f,d))};
rBz=function(c){c=c.key||c.id;if(!c)throw Error("yf");return c};
gfN=function(c,f){c=c===void 0?{}:c;return Cqk(c,f)};
k2C=function(c,f,d,q){if(q===void 0)return q=Object.assign({},c[f]||{}),d=(delete q[d],q),q={},Object.assign({},c,(q[f]=d,q));var Z={},M={};return Object.assign({},c,(M[f]=Object.assign({},c[f],(Z[d]=q,Z)),M))};
OzP=function(c,f,d,q,Z){var M=c[f];if(M==null||!M[d])return c;q=RiM(M[d],q,Z==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Z={};M={};return Object.assign({},c,(M[f]=Object.assign({},c[f],(Z[d]=q,Z)),M))};
_.Bb=function(c,f,d){return c[f]?c[f][d]||null:null};
sEN=function(){if(ljk)return ljk();var c={};ljk=j6("PersistentEntityStoreDb",{objectStores:(c.EntityStore={addedAtVersion:1},c.EntityAssociationStore={addedAtVersion:2},c),shared:!1,upgrade:function(f,d){d(1)&&Ws(ym(f,"EntityStore",{keyPath:"key"}),"entityType","entityType");d(2)&&(f=ym(f,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Ws(f,"byParentEntityKey","parentEntityKey"),Ws(f,"byChildEntityKey","childEntityKey"))},
version:3});return ljk()};
BFr=function(c){return _.Uz(sEN(),c)};
iI=function(c){return window.Int32Array?new Int32Array(c):Array(c)};
TFz=function(c){return _.Uz(izh(),c)};
mBY=function(c){return new Th("WRONG_DATA_TYPE",{encoderVersion:c})};
HzP=function(c){return c instanceof Error?new Th("UNKNOWN_ENCODE_ERROR",{originalMessage:c.message}):new Th("UNKNOWN_ENCODE_ERROR")};
ABY=function(c){return c instanceof Error?new Th("UNKNOWN_DECODE_ERROR",{originalMessage:c.message}):new Th("UNKNOWN_DECODE_ERROR")};
YBN=function(c,f){c=c instanceof Th?c:f(c);_.VO(c);throw c;};
Fve=function(c){c=(new TextEncoder).encode(c).subarray(0,16);var f=new Uint8Array(16);f.set(c);return f};
bzr=function(c){var f=twG[c];if(f)return f;_.u6(new _.KD("Entity model not found.",{entityType:c}))};
_.md=function(){Kve||(Kve=EfC());return Kve};
EfC=function(){var c,f,d;return _.k(function(q){if(q.nextAddress==1)return _.iY(q,2),q.yield(_.dR(),4);if(q.nextAddress!=2){c=q.yieldResult;if(!c||!_.bF()||typeof _.dz.BroadcastChannel==="undefined")return q.return();f=new nfe;return q.return(new Hb(c,f))}d=_.Yw(q);d instanceof Error&&_.VO(d);return q.return()})};
_.AE=function(c,f){var d;return _.k(function(q){if(q.nextAddress==1){d=c.mutations;if(!d||d.length<=0)return q.return();f&&f.dispatch(_.CC({type:"ENTITY_LOADED",payload:d}));return q.yield($BP(d),2)}d.length=0;_.Fm(q)})};
$BP=function(c){var f;return _.k(function(d){return d.nextAddress==1?d.yield(_.md(),2):(f=d.yieldResult)?d.yield(_.YC(f,"readwrite",function(q){for(var Z={},M=_.C(c),g=M.next(),O={};!g.done;O={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},g=M.next())O.mutation$jscomp$4=g.value,O.mutation$jscomp$4.entityKey&&QEC(O.mutation$jscomp$4)&&(O.mutationEntityType$jscomp$3=(0,_.zV.getAnyKey)(O.mutation$jscomp$4.payload),g=void 0,O.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(g=function(l){return function(){return _.SBl(q,
l.mutation$jscomp$4.payload[l.mutationEntityType$jscomp$3],l.mutationEntityType$jscomp$3)}}(O)),O.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(g=function(l){return function(){return LvG(q,l.mutation$jscomp$4.entityKey)}}(O)),O.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(g=function(l){return function(){return z1r(q,l.mutation$jscomp$4.entityKey,l.mutation$jscomp$4.payload[l.mutationEntityType$jscomp$3],l.mutationEntityType$jscomp$3)}}(O)),g&&(Z[O.mutation$jscomp$4.entityKey]=
Z[O.mutation$jscomp$4.entityKey]?Z[O.mutation$jscomp$4.entityKey].then(g):g()));
return Wq.all(Object.values(Z))}),0):d.return()})};
QEC=function(c){var f;c=(f=c.options)==null?void 0:f.persistenceOption;return c==="ENTITY_PERSISTENCE_OPTION_PERSIST"||c==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
VwG=function(c,f){var d,q;_.k(function(Z){if(Z.nextAddress==1)return Z.yield(_.md(),2);if(Z.nextAddress!=3)return(d=Z.yieldResult)?Z.yield(_.YC(d,"readonly",function(M){var g={},O=Object.keys(f).map(function(l){var m=f[l]?[].concat(_.LT(f[l])):[];return JBr(M,l,m,g)});
return Wq.all(O).then(function(){return g})}),3):Z.return();
q=Z.yieldResult;Object.keys(q).length>0&&c.dispatch(ajG(q));_.Fm(Z)})};
JBr=function(c,f,d,q){return F5(c,f,d).then(function(Z){q[f]=XQe(d,Z)})};
XQe=function(c,f){if(f.length!==c.length)throw Error("Bf");return f.reduce(function(d,q,Z){d[c[Z]]=q;return d},{})};
h1e=function(c){var f=c.filter(function(Z){var M;return(Z==null?void 0:(M=Z.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_COMPLETE"}).length,d=c.filter(function(Z){var M;
return(Z==null?void 0:(M=Z.transferEntity)==null?void 0:M.transferState)==="TRANSFER_STATE_FAILED"}).length,q=c.filter(function(Z){var M;
return(Z==null?void 0:(M=Z.transferEntity)==null?void 0:M.transferState)&&uLl.includes(Z.transferEntity.transferState)});
if(!(f||q!=null&&q.length))return 0;f=_.vfr(q)+f;c=c.length-d;return c===0?0:Math.round(f*100/c)/100};
_.vfr=function(c){var f=[];f=f.concat.apply(f,_.LT(c.filter(function(M){return M.streamEntity}).map(function(M){var g=Object.assign({},M.streamEntity),O,l=(O=M.transferEntity)==null?void 0:O.transferState;
g.streamsProgress=g.streamsProgress||[];g.streamsProgress=g.streamsProgress.map(function(m){var H=Object.assign({},m);H.numBytesDownloaded=l==="TRANSFER_STATE_COMPLETE"?m.numTotalBytes:m.numBytesDownloaded;return H});
return g}).map(function(M){return M.streamsProgress})));
var d=c=0;f=_.C(f);for(var q=f.next();!q.done;q=f.next()){var Z=q.value;q=Number(Z.numBytesDownloaded);Z=Number(Z.numTotalBytes);d+=isNaN(q)?0:q;c+=isNaN(Z)?0:Z}return c===0?0:Math.round(d*100/c)/100};
wQz=function(c){if(!c||!c.expirationTimestamp||!c.action)return!1;var f=(0,_.qR)()/1E3;return Number(c.expirationTimestamp)>=f};
tE=function(c){return c&&c.expirationTimestamp&&c.action?wQz(c)&&c.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.bI=function(c){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(c||"TRANSFER_STATE_UNKNOWN")};
yBn=function(c){var f=new ZzN;if(c!==void 0){var d=Math.ceil(Math.log2(c.length*4+2)/7);d=d===void 0?2:d;Ox(f,10);f.submessagePosStack.push(f.pos);f.submessagePosStack.push(d);f.pos+=d;lI(f,c.length*1.2);d=G0n(c,f.buf.subarray(f.pos));f.pos+d>f.buf.length&&(lI(f,d),d=G0n(c,f.buf.subarray(f.pos)));f.pos+=d;c=f.submessagePosStack.pop();d=f.submessagePosStack.pop();for(var q=f.pos-d-c;c--;){var Z=c?128:0;f.view.setUint8(d++,q&127|Z);q>>=7}}f=new Uint8Array(f.buf.buffer,f.buf.byteOffset,f.pos);return(new TextDecoder("utf-8")).decode(f)};
_.KC=function(c){var f=0;c=_.C(c);for(var d=c.next(),q={};!d.done;q={transferState$jscomp$3:void 0},d=c.next()){var Z=d.value,M=void 0;d=(M=Z.streamEntity)!=null?M:{};M=void 0;q.transferState$jscomp$3=(M=Z.transferEntity)==null?void 0:M.transferState;M=Z=void 0;((Z=d)==null?0:(M=Z.streamsProgress)==null?0:M.length)&&d.streamsProgress.forEach(function(g){return function(O){O=Number(g.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?O.numTotalBytes:O.numBytesDownloaded);isFinite(O)&&(f+=O)}}(q))}return f};
Wvz=function(c){return c.some(function(f){var d;if(!(f==null?0:(d=f.transferEntity)==null?0:d.transferState)){var q;return!(f==null?0:(q=f.policyEntity)==null?0:q.action)||f.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return uLl.includes(f.transferEntity.transferState)})};
DBN=function(c,f){if(!f)return!1;if(_.F("of_pb_en_po_ks"))return!0;var d;c=(d=_.Bb(c,"offlineVideoPolicy",_.sx(f,"offlineVideoPolicy")))!=null?d:void 0;return!!c&&tE(c)};
_.NFM=function(c){var f=["TRANSFER_STATE_COMPLETE"];f=f===void 0?e1k:f;return c.filter(function(d){var q,Z;return f.includes((Z=(q=d.transferEntity)==null?void 0:q.transferState)!=null?Z:"TRANSFER_STATE_UNKNOWN")})};
IjP=function(c,f){if(f){var d,q=(d=_.Bb(c,"playbackData",_.sx(f,"playbackData")))!=null?d:null,Z;d=(Z=_.Bb(c,"transfer",_.sx(f,"transfer")))!=null?Z:null;var M;Z=(M=_.Bb(c,"offlineVideoStreams",_.sx(f,"offlineVideoStreams")))!=null?M:null;var g;c=(g=_.Bb(c,"offlineVideoPolicy",_.sx(f,"offlineVideoPolicy")))!=null?g:null;if(q||d||Z||c)return{playbackDataEntity:q,transferEntity:d,streamEntity:Z,policyEntity:c}}};
_.Ex=function(c){var f=c.playbackData;if(!f)return[];var d=[];f=_.C(Object.keys(f));for(var q=f.next();!q.done;q=f.next()){var Z=q.value;if(!Pqk(c,_.kC(Z).entityId)&&(q=IjP(c,_.kC(Z).entityId))){var M=void 0,g=void 0;Z=(g=Number((M=_.Bb(c,"playbackData",Z))==null?void 0:M.streamDownloadTimestampSeconds))!=null?g:(0,_.qR)();d.push({entity:q,streamDownloadTimestamp:Z})}}return d.sort(function(O,l){var m=O.streamDownloadTimestamp,H=l.streamDownloadTimestamp;return H===m?O.entity.streamEntity&&!l.entity.streamEntity?
1:-1:H-m}).map(function(O){return O.entity})};
R1N=function(c){return _.NFM(_.Ex(c))};
_.UBY=function(c){return _.Ex(c).filter(function(f){var d;if(((d=f.policyEntity)==null?0:d.action)&&f.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var q;if((q=f.transferEntity)==null?0:q.transferState){var Z;return uLl.includes((Z=f.transferEntity)==null?void 0:Z.transferState)}return!0})};
Pqk=function(c,f){var d;return((d=_.Bb(c,"downloadStatusEntity",_.sx(f,"downloadStatusEntity")))==null?void 0:d.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
pQn=function(c){var f;if(c==null?0:(f=c.playbackDataEntity)==null?0:f.key)return _.kC(c.playbackDataEntity.key).entityId;var d;if(c==null?0:(d=c.transferEntity)==null?0:d.key)return _.kC(c.transferEntity.key).entityId;var q;if(c==null?0:(q=c.streamEntity)==null?0:q.key)return _.kC(c.streamEntity.key).entityId;var Z;if(c==null?0:(Z=c.policyEntity)==null?0:Z.key)return _.kC(c.policyEntity.key).entityId};
ofh=function(c){var f=new Set,d;c=(d=c.mainDownloadsListEntity)==null?void 0:d[xBk];var q;if(!(c==null?0:(q=c.downloads)==null?0:q.length))return f;var Z;c==null||(Z=c.downloads)==null||Z.forEach(function(M){(M==null?0:M.videoItem)&&f.add(M.videoItem)});
return f};
nC=function(c,f){if(f){var d=_.Bb(c,"mainVideoEntity",_.sx(f,"mainVideoEntity")),q=_.Bb(c,"downloadStatusEntity",_.sx(f,"downloadStatusEntity")),Z=_.Bb(c,"ytMainChannelEntity",_.sx(f,"ytMainChannelEntity")),M={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};c=IjP(c,f);q=(q==null?void 0:q.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.F("woffle_render_failed_download_state_ks")&&(q==null?void 0:q.downloadState)==="DOWNLOAD_STATE_FAILED";!c&&q&&(c=M);if(c&&d&&
Z)return Object.assign({},{videoEntity:d,channelEntity:Z},c)}};
cue=function(c,f){return G24(c,f)==="TRANSFER_STATE_COMPLETE"&&DBN(c,f)};
fKN=function(c,f){if(!f)return!1;var d;c=(d=_.Bb(c,"playbackData",_.sx(f,"playbackData")))!=null?d:void 0;return!!c&&!!c.playerResponseJson};
G24=function(c,f){if(!f)return"TRANSFER_STATE_UNKNOWN";var d=_.Bb(c,"transfer",_.sx(f,"transfer"));if(d){var q;return(q=d.transferState)!=null?q:"TRANSFER_STATE_UNKNOWN"}d=_.Bb(c,"offlineOrchestrationActionWrapperEntity",_.sx(f,"offlineOrchestrationActionWrapperEntity"));c=_.Bb(c,"mainVideoEntity",_.sx(f,"mainVideoEntity"));return d||c?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
dIe=function(c,f){if(!f)return"TRANSFER_STATE_UNKNOWN";if(c=_.Bb(c,"transfer",_.sx(f,"transfer"))){var d;return(d=c.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
jXk=function(c,f){return f&&(c=_.Bb(c,"videoPlaybackPositionEntity",_.sx(f,"videoPlaybackPositionEntity")),c==null?0:c.lastPlaybackPositionSeconds)?Number(c.lastPlaybackPositionSeconds):0};
Z5k=function(c,f){return q8k(c).some(function(d){var q;return(d==null?void 0:(q=d.mainPlaylistEntity)==null?void 0:q.playlistId)===f})};
ruN=function(c,f,d){var q=MYG(c,f);if(!q.length)return[];f=[];q=_.C(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var M=nC(c,Z);d&&G24(c,Z)!=="TRANSFER_STATE_COMPLETE"||M&&f.push(M)}return f};
MYG=function(c,f){if(!f)return[];var d=_.sx(f,"mainPlaylistEntity"),q;f=(q=c.mainPlaylistEntity)==null?void 0:q[d];q=[];if(f==null||!f.videos)return q;f=_.C(f.videos);for(d=f.next();!d.done;d=f.next()){d=d.value;var Z=void 0,M=void 0,g=void 0,O=(Z=c)==null?void 0:(M=Z.mainPlaylistVideoEntity)==null?void 0:(g=M[d])==null?void 0:g.video;O&&(d=_.kC(O).entityId)&&q.push(d)}return q};
Cjl=function(c,f){if(f){var d=_.Bb(c,"mainPlaylistEntity",_.sx(f,"mainPlaylistEntity")),q=_.Bb(c,"mainPlaylistDownloadStateEntity",_.sx(f,"mainPlaylistDownloadStateEntity"));c=_.Bb(c,"ytMainChannelEntity",_.sx(f,"ytMainChannelEntity"));if(q&&d)return Object.assign({},{mainPlaylistEntity:d,mainPlaylistDownloadStateEntity:q},!!c&&{channelEntity:c})}};
q8k=function(c){return g2n(c).sort(function(f,d){return d.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return f.downloadedPlaylistEntities})};
g2n=function(c){var f=c.mainPlaylistDownloadStateEntity,d=[];if(!f)return d;for(var q=_.C(Object.keys(f)),Z=q.next();!Z.done;Z=q.next()){var M=Z.value;Z=Cjl(c,_.kC(M).entityId);var g=void 0;M=Number((g=f[M])==null?void 0:g.addedTimestampMillis);g=isNaN(M)?(0,_.qR)():M;Z!==void 0&&d.push({downloadedPlaylistEntities:Z,addedTimestampMillis:g})}return d};
kGk=function(c){var f,d=(f=c.mainPlaylistVideoEntity)!=null?f:{};return new Set(q8k(c).reduce(function(q,Z){q=q===void 0?[]:q;var M,g;Z==null||(M=Z.mainPlaylistEntity)==null||(g=M.videos)==null||g.forEach(function(O){var l;(O=(l=d[O])==null?void 0:l.video)&&q.push(O)});
return q},[]))};
O5r=function(c){return"downloadedMusicPlaylistEntities"in c};
lKz=function(c){return"mainPlaylistEntity"in c&&"mainPlaylistDownloadStateEntity"in c};
sXC=function(c){return"videoEntity"in c&&"channelEntity"in c};
Bl4=function(c){var f=c.musicPlaylistDownloadMetadataEntity,d=[];if(!f)return d;for(var q=_.C(Object.keys(f)),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;a:{var M=c,g=_.kC(Z).entityId;if(g){var O=_.Bb(M,"musicPlaylist",_.sx(g,"musicPlaylist"));M=_.Bb(M,"musicPlaylistDownloadMetadataEntity",_.sx(g,"musicPlaylistDownloadMetadataEntity"));if(O&&M){O={musicPlaylistEntity:O,musicPlaylistDownloadStateEntity:M};break a}}O=void 0}M=void 0;Z=Number((M=f[Z])==null?void 0:M.addedTimestampMillis);Z=isNaN(Z)?(0,_.qR)():
Z;O!==void 0&&d.push({downloadedMusicPlaylistEntities:O,addedTimestampMillis:Z})}return d};
i5k=function(c){var f=new Set;c=_.C(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,"musicPlaylistEntity"in d&&"musicPlaylistDownloadStateEntity"in d){d=_.C(d.musicPlaylistEntity.tracks);for(var q=d.next();!q.done;q=d.next())f.add(q.value)}return f};
TlP=function(c,f){if(f){var d=_.Bb(c,"musicTrack",_.sx(f,"musicTrack")),q=_.Bb(c,"musicArtist",_.sx(f,"musicArtist"))||{};if((c=IjP(c,f))&&d&&q)return Object.assign({},{musicTrackEntity:d,musicArtistEntity:q},c)}};
mIY=function(c){var f=c.musicTrackDownloadMetadataEntity,d=[];if(!f)return[];f=_.C(Object.keys(f));for(var q=f.next();!q.done;q=f.next()){var Z=q.value;q=TlP(c,_.kC(Z).entityId);var M=void 0;Z=Number((M=_.Bb(c,"musicTrackDownloadMetadataEntity",Z))==null?void 0:M.addedTimestampMillis);M=isNaN(Z)?(0,_.qR)():Z;q!==void 0&&d.push({downloadedMusicEntities:q,addedTimestampMillis:M})}return d};
Y8l=function(c,f){if(!f)return[];if(Object.values(H5e).includes(f))return Auh(c,f);f=_.sx(f,"musicPlaylist");var d;c=(d=c.musicPlaylist)==null?void 0:d[f];d=[];if(c==null||!c.tracks)return d;c=_.C(c.tracks);for(f=c.next();!f.done;f=c.next())(f=_.kC(f.value).entityId)&&d.push(f);return d};
Auh=function(c,f){var d=new Set,q=Bl4(c).map(function(M){return M.downloadedMusicPlaylistEntities});
q=i5k(q);q=_.C(q);for(var Z=q.next();!Z.done;Z=q.next())(Z=_.kC(Z.value).entityId)&&d.add(Z);return FZ4(c).downloadedMusicEntities.filter(function(M){var g;if((g=M.musicTrackEntity)!=null&&g.videoId){M=M.musicTrackEntity;if(g=f==="PPOM"?!0:!d.has(M.videoId))b:switch(M=M.musicVideoType,f){case "PPSE":g=M==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:g=M!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}M=g}else M=!1;return M}).map(function(M){var g;
return(g=M.musicTrackEntity)==null?void 0:g.videoId})};
FZ4=function(c){var f=mIY(c).sort(function(d,q){return q.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return"downloadedMusicEntities"in d?d.downloadedMusicEntities:O5r(d)?d.downloadedMusicPlaylistEntities:{}});
c=Bl4(c).sort(function(d,q){return q.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return"downloadedMusicEntities"in d?d.downloadedMusicEntities:O5r(d)?d.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:f,downloadedMusicPlaylistEntities:c}};
b5r=function(c,f){f=_.hk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Y8l(c,f):MYG(c,f);if(!f.length)return"TRANSFER_STATE_UNKNOWN";f=f.map(function(d){return dIe(c,d)});
return tYP(f)};
tYP=function(c){var f=new Set(c);if(f.has("TRANSFER_STATE_FAILED")&&f.size===1)return"TRANSFER_STATE_FAILED";f.delete("TRANSFER_STATE_FAILED");if(f.has("TRANSFER_STATE_UNKNOWN")&&f.size===1)return"TRANSFER_STATE_PRE_TRANSFER";f.delete("TRANSFER_STATE_UNKNOWN");if(f.has("TRANSFER_STATE_PRE_TRANSFER")&&f.size===1||f.size===0)return"TRANSFER_STATE_PRE_TRANSFER";c=f.has("TRANSFER_STATE_TRANSFERRING");f=f.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return c||f?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
$C=function(c){var f=c.mainVideoDownloadStateEntity,d=[];if(!f)return[];f=_.C(Object.keys(f));for(var q=f.next();!q.done;q=f.next()){var Z=q.value;if(!Pqk(c,_.kC(Z).entityId)){q=nC(c,_.kC(Z).entityId);var M=void 0,g=void 0;Z=(g=Number((M=_.Bb(c,"mainVideoDownloadStateEntity",Z))==null?void 0:M.addedTimestampMillis))!=null?g:(0,_.qR)();q!==void 0&&d.push({downloadedVideoEntities:q,addedTimestampMillis:Z})}}return d};
KZC=function(c){return $C(c).sort(function(f,d){return d.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return f.downloadedVideoEntities})};
_.n2C=function(c){var f=kGk(c),d=_.QR(c),q=ofh(c),Z=$C(c).filter(function(g){var O,l;if((g==null?void 0:(O=g.downloadedVideoEntities)==null?void 0:(l=O.transferEntity)==null?void 0:l.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var m,H;g=g==null?void 0:(m=g.downloadedVideoEntities)==null?void 0:(H=m.videoEntity)==null?void 0:H.key;return _.F("kevlar_use_library_entity")?g&&(q.has(g)||d[g]):g&&!f.has(g)}),M=g2n(c).filter(function(g){return b5r(c,g.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.LT(Z),_.LT(M)).sort(function(g,O){return O.addedTimestampMillis-g.addedTimestampMillis}).map(function(g){return E2M(g)})};
$IG=function(c,f){if(f&&DBN(c,f)){var d,q,Z=(q=(d=_.Bb(c,"playbackData",_.sx(f,"playbackData")))!=null?d:void 0)==null?void 0:q.playerResponseJson;if(Z){try{var M=JSON.parse(Z);var g=_.Bb(c,"transfer",_.sx(f,"transfer")),O=jXk(c,f);O&&(M=Object.assign({},M,{playerConfig:Object.assign({},M.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+O*1E3}}})}));M.cotn=g==null?void 0:g.cotn}catch(l){}return M}}};
_.S8N=function(c){var f,d,q;c=(q=(d=((f=c.downloadsPageViewConfigurationEntity)!=null?f:{})[_.SU])==null?void 0:d.smartDownloadsOptInBannerVisibility)!=null?q:{};var Z;return(Z=_.b(c,QXh))!=null?Z:{}};
_.QR=function(c){var f,d,q;c=(q=(d=((f=c.mainDownloadsListEntity)!=null?f:{})[_.LZY])==null?void 0:d.downloads)!=null?q:[];f={};d=_.C(c);for(q=d.next();!q.done;q=d.next())c=void 0,f[(c=q.value.videoItem)!=null?c:""]=!0;return f};
zee=function(c){var f=_.QR(c);if(Object.keys(f).length===0)return!1;var d=c.mainVideoEntity;if(!d)return!0;d=_.C(Object.keys(d));for(var q=d.next();!q.done;q=d.next()){q=q.value;var Z=_.kC(q).entityId;if(f[q]&&!Pqk(c,Z))return!1}return!0};
_.LC=function(c){var f=_.QR(c);return $C(c).sort(function(d,q){return d.addedTimestampMillis-q.addedTimestampMillis}).map(function(d){return d.downloadedVideoEntities}).filter(function(d){var q;
return(d=d==null?void 0:(q=d.videoEntity)==null?void 0:q.key)&&!!f[d]})};
_.aKM=function(c){var f,d,q;c=(q=(d=((f=c.downloadsPageViewConfigurationEntity)!=null?f:{})[_.SU])==null?void 0:d.downloadsUpsellBannerVisibility)!=null?q:{};var Z;return(Z=_.b(c,Jue))!=null?Z:{}};
E2M=function(c){return"downloadedVideoEntities"in c?c.downloadedVideoEntities:"downloadedPlaylistEntities"in c?c.downloadedPlaylistEntities:{}};
VYe=function(c){var f=_.QR(c),d=kGk(c),q=$C(c).filter(function(Z){var M,g;return(Z=Z==null?void 0:(M=Z.downloadedVideoEntities)==null?void 0:(g=M.videoEntity)==null?void 0:g.key)&&!f[Z]&&!d.has(Z)});
c=g2n(c);return[].concat(_.LT(q),_.LT(c)).sort(function(Z,M){return M.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return E2M(Z)})};
_.zh=function(c){if(!_.F("kevlar_use_library_entity"))return VYe(c);var f=$C(c).filter(function(q){var Z,M;if(Z=q=q==null?void 0:(Z=q.downloadedVideoEntities)==null?void 0:(M=Z.videoEntity)==null?void 0:M.key){var g,O,l;Z=((O=(g=c.mainDownloadsListEntity)==null?void 0:g[xBk])==null?0:(l=O.downloads)==null?0:l.length)?ofh(c).has(q):!1}return Z}),d=g2n(c);
return[].concat(_.LT(f),_.LT(d)).sort(function(q,Z){return Z.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return E2M(q)})};
X_h=function(c){var f=_.QR(c),d=kGk(c);return KZC(c).filter(function(q){var Z;return(q=q==null?void 0:(Z=q.videoEntity)==null?void 0:Z.key)&&!f[q]&&!d.has(q)})};
u7r=function(c){if(!_.F("kevlar_use_library_entity"))return X_h(c);var f=_.QR(c),d=ofh(c);return KZC(c).filter(function(q){var Z;return(q=q==null?void 0:(Z=q.videoEntity)==null?void 0:Z.key)&&!f[q]&&d.has(q)})};
v2k=function(c,f){f=_.sx(f,"settingEntity");var d,q,Z;return!!((Z=(q=((d=c.settingEntity)!=null?d:{})[f])==null?void 0:q.settingOptionValue)!=null?Z:{}).boolValue};
_.JE=function(c){var f=_.LC(c);if(Wvz(f))return 0;var d=[];f=_.C(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var Z=void 0,M=void 0;if((Z=q)==null?0:(M=Z.videoEntity)==null?0:M.key)Z=_.kC(q.videoEntity.key).entityId,q=c,Z=_.sx(Z,"mainVideoDownloadStateEntity"),q=_.Bb(q,"mainVideoDownloadStateEntity",Z),(q=Number(q==null?void 0:q.addedTimestampMillis))&&d.push(q)}return Math.max.apply(Math,_.LT(d))};
_.an=function(c){return c.ui.richGridMiniMode};
_.VR=function(c){return c.ui.richGridItemsPerRow};
_.hek=function(c){return c.ui.richGridSlimItemsPerRow};
_.w_G=function(c){return c.ui.guideIsExpanded};
_.X5=function(c){return c.ui.miniplayerIsActive};
yuP=function(c){return c.ui.singleOptionSurveyIsActive};
_.uI=function(c){var f;return((f=c.ui)==null?void 0:f.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.WZG=function(c){return _.uI(c)==="WEB_PAGE_TYPE_WATCH"};
_.DI4=function(c){return _.uI(c)==="WEB_PAGE_TYPE_SHORTS"};
_.eek=function(c){return c.ui.inlinePreviewIsActive};
_.Nlk=function(c){return c.ui.inlinePreviewIsEnabled};
_.IKl=function(c){return c.ui.miniplayerPlaybackState};
_.vb=function(c){return c.ui.isOnline};
_.PjM=function(c){return c.ui.frostedGlassMode};
_.hE=function(c,f){return G24(c.entities,f)};
_.wW=function(c,f){return b5r(c.entities,f)};
Rek=function(c,f){var d;if(f){var q;c=(q=_.Bb(c.entities,"offlineVideoPolicy",_.sx(f,"offlineVideoPolicy")))==null?void 0:q.action}else c=void 0;return(d=c)!=null?d:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
UIN=function(c,f){var d;f?(c=_.Bb(c.entities,"offlineVideoPolicy",_.sx(f,"offlineVideoPolicy")),c=Number(c==null?void 0:c.expirationTimestamp)):c=void 0;return(d=c)!=null?d:0};
_.p_z=function(c){return _.Ex(c.entities).length};
xIN=function(c,f){return nC(c.entities,f)};
o2n=function(c,f){return Cjl(c.entities,f)};
yR=function(c,f){return(c=nC(c.entities,f))?_.vfr([c]):0};
_.GGe=function(c,f){var d=_.hk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(d){var q=c.entities;var Z=Y8l(q,f);if(Z.length){var M=[];Z=_.C(Z);for(var g=Z.next();!g.done;g=Z.next())(g=TlP(q,g.value))&&M.push(g);q=M}else q=[]}else q=ruN(c.entities,f);var O;if(d){var l=c.entities;f?(f=_.sx(f,"musicPlaylist"),l=(O=l.musicPlaylist)==null?void 0:O[f],O=l!=null&&l.tracks?l.tracks.length:0):O=0}else O=c.entities,f?(f=_.sx(f,"mainPlaylistEntity"),O=(l=O.mainPlaylistEntity)==null?void 0:l[f],O=O!=null&&O.videos?
O.videos.length:0):O=0;return q.length!==O?0:q?h1e(q):0};
_.c$r=function(c){return c.download.isLeaderTab};
_.fVG=function(c,f,d){if(!f&&d){var q=c.entities;if(d){var Z=yBn(d),M,g;f=(g=(M=_.Bb(q,"offlineabilityEntity",_.sx(Z,"offlineabilityEntity")))==null?void 0:M.addToOfflineButtonState)!=null?g:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else f="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else M=c.entities,f?(g=yBn(f),f=(Z=(q=_.Bb(M,"offlineabilityEntity",_.sx(g,"offlineabilityEntity")))==null?void 0:q.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):f="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return f};
d2k=function(c,f){c=c.entities;if(f){f=yBn(f);var d,q;f=(q=(d=_.Bb(c,"offlineabilityEntity",_.sx(f,"offlineabilityEntity")))==null?void 0:d.addToOfflineButtonState)!=null?q:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else f="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return f};
_.jMk=function(c){var f=c.entities;c=_.vb(c);var d=v2k(f,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.F("kevlar_modern_downloads_page")&&d)var q=!1;else{var Z,M;f=(M=(Z=((q=f.downloadsPageViewConfigurationEntity)!=null?q:{})[_.SU])==null?void 0:Z.smartDownloadsOptInBannerVisibility)!=null?M:{};q=c?!!f.visibleWithConnection:!!f.visibleWithoutConnection}return q};
_.q2k=function(c){return v2k(c.entities,"SMART_DOWNLOADS_ENABLED")};
_.ZtN=function(c){return zee(c.entities)};
M3e=function(c){return _.LC(c.entities).every(function(f){var d;return(f==null?void 0:(d=f.transferEntity)==null?void 0:d.transferState)&&!uLl.includes(f.transferEntity.transferState)})};
_.r$e=function(c){var f,d,q,Z=(q=(d=((f=c.entities.downloadsPageViewConfigurationEntity)!=null?f:{})[_.SU])==null?void 0:d.downloadsUpsellBannerVisibility)!=null?q:{};return _.vb(c)?!!Z.visibleWithConnection:!!Z.visibleWithoutConnection};
_.CKM=function(c,f){return Pqk(c.entities,f)};
gHr=function(c,f){if(f){var d,q;c=(q=(d=_.Bb(c.entities,"downloadStatusEntity",_.sx(f,"downloadStatusEntity")))==null?void 0:d.downloadState)!=null?q:"DOWNLOAD_STATE_UNKNOWN"}else c="DOWNLOAD_STATE_UNKNOWN";return c};
Wb=function(c,f){return jXk(c.entities,f)};
sMl=function(c){c=_.k7z(c);var f=c.hours===void 0?0:c.hours,d=c.minutes===void 0?0:c.minutes,q=c.seconds===void 0?0:c.seconds,Z=f>0;c=[];Z&&(f=_.OtN(f),c.push(f));f=Z;f=f===void 0?!1:f;d=(["af","be","lt"].includes(_.D8)||f)&&d<10?lVC().format(d):(new Intl.NumberFormat("en-u-nu-latn")).format(d);c.push(d);d=lVC().format(q);c.push(d);d=":";"da fi id si sr sr-Latn".split(" ").includes(_.D8)&&(d=".");return c.join(d)};
_.k7z=function(c){var f=c.hours||0,d=c.minutes||0,q=c.seconds||0;f=q+d*60+f*3600+(c.days||0)*86400+(c.weeks||0)*604800+(c.months||0)*2629800+(c.years||0)*31557600;if(f<=0)return{hours:0,minutes:0,seconds:0};c=f;f=Math.floor(c/3600);c%=3600;d=Math.floor(c/60);q=Math.floor(c%60);return{hours:f,minutes:d,seconds:q}};
_.OtN=function(c){c=(new Intl.NumberFormat("en-u-nu-latn")).format(c);var f=["fr"],d="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(_.D8)?c.replace(",","\u00a0"):f.includes(_.D8)?c.replace(",","\u202f"):d.includes(_.D8)?c.replace(",","."):c};
lVC=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
BUz=function(c){try{return(new _.eU(5)).format(c)}catch(f){}};
N$=function(c){return{thumbnailOverlayDownloadingRenderer:{state:c}}};
ite=function(c){if(c=BUz(c))return{thumbnailOverlaySidePanelRenderer:{text:_.jU(c),icon:{iconType:"PLAYLISTS"}}}};
TUM=function(){var c=_.HO("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.jU(c),icon:{iconType:"PLAY_ALL"}}}};
m2N=function(c){c=_.In(c,2);return _.D8!=="ru"&&_.D8!=="es_419"&&_.D8!=="es-419"&&_.D8!=="es"&&_.D8!=="es_US"&&_.D8!=="es-US"&&_.D8!=="fr"&&_.D8!=="pl"&&_.D8!=="it"&&_.D8!=="nl"&&_.D8!=="uk"&&_.D8!=="fr_CA"&&_.D8!=="fr-CA"||c===""?c:c[0].toLocaleUpperCase()+c.substring(1)};
A$N=function(c){return function(f){var d=c(),q=_.In(f,d.dateFormat);f=_.In(f,d.timeFormat);var Z=HtM.DATETIMEFORMATS[d.joinerStyle];Z=Z.replace(/'(?!')/g,"");Z=Z.replace("{0}",f);Z=Z.replace("{1}",q);return d.capitalize(Z)}};
Y2h=function(c){return c?typeof c.seconds==="string"&&(c.nanos===void 0||typeof c.nanos==="number"):!1};
F1C=function(c){return new Date(Number(c.seconds)*1E3+(c.nanos||0)*1E-6)};
_.In=function(c,f){if(typeof c.getTime==="function")c={date:c};else if(Y2h(c))c={date:F1C(c)};else if(typeof Y2h(c.timestamp)&&typeof c.i18nInternalSecondsEastOfUtc==="number")c={date:F1C(c.timestamp),timeZone:Pb(-c.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(c));var d=c;c=d.date;d=d.timeZone;f=t3k(f).format(c,d);_.D8==="zh-TW"&&(c=d?Number(t3k("H").format(c,d)):c.getHours(),f=c<5?f.replace("\u4e0a\u5348","\u51cc\u6668"):c<8?f.replace("\u4e0a\u5348","\u65e9\u4e0a"):c<12?
f.replace("\u4e0a\u5348","\u4e0a\u5348"):c<13?f.replace("\u4e0b\u5348","\u4e2d\u5348"):c<19?f.replace("\u4e0b\u5348","\u4e0b\u5348"):f.replace("\u4e0b\u5348","\u665a\u4e0a"));return f};
t3k=function(c){if(bth.has(c))return bth.get(c);var f=K1M(c);f=EHk(f);nHe!==!0&&(nHe=!0);$2P=!0;$2P=!1;f=new Rn(f,HtM);bth.set(c,f);return f};
K1M=function(c){return(new Rn(c,HtM)).patternParts_.map(function(f){return f.type===0?"'"+f.text+"'":f.text}).join("")};
EHk=function(c){return _.D8==="en"||_.D8==="es_US"||_.D8==="es-US"?c:c.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(f,d,q){return"H".repeat(d.length)+q})};
XLh=function(c,f){QMM||(_.Ux=_.S2Y,QMM=new L1Y);var d=QMM;a:if(c=zzP(c),f=zzP(f||new Date),c>f)d=c.getTime()-f.getTime()>6048E5?_.In(c,1):J$M(c);else{for(var q=0;aVG(c,12*(q+1))<f;)++q;if(q>0)d=d.format(-q,0);else{for(q=0;aVG(c,q+1)<f;)++q;if(q>0)d=d.format(-q,2);else{c=f.getTime()-c.getTime();f=_.C(V3n);for(q=f.next();!q.done;q=f.next()){q=q.value;var Z=q.unit,M=Math.floor(c/q.unitDuration);if(M>=(q.threshold===void 0?1:q.threshold)){d=d.format(-M,Z);break a}}d=d.format(-0,7)}}}return d};
zzP=function(c){if(typeof c.getTime==="function")return c;if(Y2h(c))return F1C(c);throw Error("Df`"+JSON.stringify(c));};
aVG=function(c,f){for(var d=0,q;;++d)if(q=new Date(c.getFullYear(),c.getMonth()+f,c.getDate()-d,c.getHours(),c.getMinutes(),c.getSeconds()),q.getMonth()===(c.getMonth()+f)%12)return q};
_.pC=function(c){return{runs:[{text:c}]}};
_.xC=function(c){if(c&&c.simpleText)return c.simpleText;var f="";if(c&&c.runs)for(var d=0;d<c.runs.length;d++)c.runs[d].text&&(f+=c.runs[d].text);return f};
vHY=function(c,f,d,q){return c.videoEntity&&!c.policyEntity&&d!=="DOWNLOAD_STATE_FAILED"?[N$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:tE(c.policyEntity)&&f!=="TRANSFER_STATE_FAILED"&&f!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?f==="TRANSFER_STATE_PAUSED_BY_USER"?[N$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.bI(f)?[N$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:c.videoEntity.lengthSeconds?uQk(c.videoEntity.lengthSeconds,q):[]:
[N$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
uQk=function(c,f){var d=[{thumbnailOverlayTimeStatusRenderer:{text:_.jU(sMl({seconds:c})),style:"DEFAULT"}}];f&&(c=f<=0||c<=0?0:f>=c?100:Math.ceil(f*100/c),c>0&&d.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:c}}));return d};
hzn=function(c,f,d,q,Z){if(f==="TRANSFER_STATE_UNKNOWN"||!c)return{};if(_.bI(f)||f==="TRANSFER_STATE_PRE_TRANSFER")var M=[N$("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var g,O;if(f==="TRANSFER_STATE_COMPLETE"&&((g=c.mainPlaylistEntity)==null?0:(O=g.videos)==null?0:O.length)){if(_.F("web_modern_collections_v2")){var l;var m=(M=c.mainPlaylistEntity)==null?void 0:(l=M.videos)==null?void 0:l.length;M=(M=BUz(m))?{thumbnailOverlayBottomPanelRenderer:{text:_.jU(M),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var H;M=ite((m=c.mainPlaylistEntity)==null?void 0:(H=m.videos)==null?void 0:H.length)}var A;M=[TUM(),Object.assign({},(A=M)!=null?A:{})]}else M=[]}A=M;a:if(f==="TRANSFER_STATE_PRE_TRANSFER")d=q$(_.HO("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(f==="TRANSFER_STATE_TRANSFER_IN_QUEUE")d=q$(_.HO("WAITING_TO_DOWNLOAD"));else if(_.bI(f))d=Math.floor(d*100).toString(),d=q$(_.HO("DOWNLOADING_PERCENT",{percent:d},"Downloading... "+d+"%"));else{if(q&&(_.F("playlist_is_offline_selector_killswitch")&&
(Z=_.ql().resolve(_.I7).isNetworkAvailable()),Z)){d=PsG(_.HO("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Nqk(q));break a}d=void 0}f=f==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.HO("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},A.length?{thumbnailOverlays:A}:{},d?{viewPlaylistText:d}:{viewPlaylistText:_.pC("")},f.length?{badges:f}:{})};
wLM=function(c,f,d,q,Z,M){if(f==="TRANSFER_STATE_UNKNOWN"||!c)return{};if(q==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var g=vHY(c,f,q);if(c.videoEntity&&!c.policyEntity&&q!=="DOWNLOAD_STATE_FAILED"){var O=_.HO("WAITING_TO_DOWNLOAD");if(O)return{shortViewCountText:_.pC(O),publishedTimeText:void 0,thumbnailOverlays:g}}if(!tE(c.policyEntity)){M=c.policyEntity&&!wQz(c.policyEntity)?_.HO("DOWNLOAD_EXPIRED",{},"Download expired"):
_.HO("TRANSFER_FAILED",{},"Download failed");var l;if((l=c.policyEntity)==null?0:l.shortMessageForDisabledAction)M=c.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:q$(M),publishedTimeText:void 0,thumbnailOverlays:g}}if(f==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.pC(_.HO("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:g};if(f==="TRANSFER_STATE_FAILED"||f==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.pC(_.HO("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:g};if(f==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(l=_.HO("WAITING_TO_DOWNLOAD"),q==="DOWNLOAD_STATE_PAUSED"&&(l=_.HO("DOWNLOAD_PAUSED",{},"Download paused")),l))return{shortViewCountText:_.pC(l),publishedTimeText:void 0,thumbnailOverlays:g};if(_.bI(f))return c=Math.floor(d*100).toString(),{shortViewCountText:_.pC(_.HO("DOWNLOADING_PERCENT",{percent:c},"Downloading... "+c+"%")),publishedTimeText:void 0,thumbnailOverlays:g};f=void 0;c.videoEntity.publishedTimestampMillis&&
(f=new Date,Z&&(f=new Date(Z)),f=q$(XLh(new Date(Number(c.videoEntity.publishedTimestampMillis)),f)));Z=[];_.F("kevlar_woffle_badge_killswitch")||(Z=[{metadataBadgeRenderer:{label:_.HO("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var m;c=q$((m=c.videoEntity.localizedStrings)==null?void 0:m.viewCount);return Object.assign({},M?{shortViewCountText:void 0}:{shortViewCountText:c},M?{}:{publishedTimeText:f},{badges:Z,thumbnailOverlays:g})};
W1P=function(c,f){c=c===void 0?y$n:c;switch(f.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:f.payload.playlistId,inviteLinkURL:f.payload.inviteLinkUrl};default:return c}};
ezC=function(c,f){c=c===void 0?D2N:c;switch(f.type){case "SET_CURRENT_FORM_ID":return f=f.payload.formId,c.currentFormId===f?c:{currentFormId:f,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var d=f.payload;f=d.groupId;d=d.command;if(c.currentFormId){var q=Object.assign({},c.commandsMap);q[f]=d;c=Object.assign({},c,{commandsMap:q})}return c;case "RESET_COMMAND_MAP":return Object.assign({},c,{commandsMap:{}});default:return c}};
IVC=function(c,f){c=c===void 0?NUM:c;switch(f.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},c,{guideIsExpanded:f.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},c,{scrollAtTop:f.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},c,{guideIsVisibleButNotPersistent:f.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},c,{miniplayerIsActive:f.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},c,{singleOptionSurveyIsActive:f.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},c,{slimlineSurveyRatingSelectedIndex:f.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},c,{richGridMiniMode:f.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},c,{richGridItemsPerRow:f.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},c,{richGridSlimItemsPerRow:f.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},c,{richGridContainerWidth:f.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},c,{richGridStyle:f.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},c,{currentPageType:f.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},c,{inlinePreviewIsActive:f.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},c,{inlinePreviewIsEnabled:f.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},c,{darkModeIsEnabled:f.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
c,{miniplayerPlaybackState:f.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},c,{tabGesturesIsActive:f.payload});case "SET_ONLINE_STATUS":return Object.assign({},c,{isOnline:f.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},c,{chipBarIsSticky:f.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},c,{frostedGlassMode:f.payload});default:return c}};
RzC=function(c,f){c=c===void 0?PKl:c;switch(f.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},c,{transcription:f.payload});case "SET_OVERLAY_STATE":return Object.assign({},c,{overlay:f.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return c}};
VIn=function(){return mF(Object.assign({},{continuation:EdP,entities:gfN,download:ndG,reportChannelAbuse:$jN,share:QNk,talkToRecs:SaG,ui:IVC,voiceSearch:RzC,watch:LNk,ypc:zxh,shorts:JLC,radioButtonGroup:ezC,collabInviteLink:W1P},a$N))};
vdY=function(){return _.F("web_player_entities_middleware")?new on(VIn(),[Xxr,u4Y]):new on(VIn(),[Xxr])};
_.Gh=function(){hxC||(hxC=vdY());return hxC};
wxN=function(c,f,d){if(c.length)return{titleText:_.jU(f!=null?f:_.HO("DOWNLOADS",void 0,"Downloads")),contents:c.map(function(q){var Z=q.videoEntity;q={videoId:Z.videoId,title:q$(Z.title),shortBylineText:q$(q.channelEntity.title),thumbnail:Z.thumbnail};var M=Z.videoId?Wb(_.Gh().getState(),Z.videoId):0;Z.videoId&&d?q.navigationEndpoint=_.dW(Z.videoId,d,void 0,void 0,M):Z.videoId&&(q.navigationEndpoint=eir(Z.videoId,M,Z.lengthSeconds));Z.lengthSeconds&&(q.thumbnailOverlays=uQk(Z.lengthSeconds,M));return{playlistPanelVideoRenderer:q}}),
totalVideos:c.length}};
yL4=function(c){return(c=(0,_.zV.getValueByKeys)(c,"playlistId"))?{playlistId:c}:null};
WNM=function(){return{}};
Djl=function(c,f){return new _.i6(function(d,q){c.then(function(Z){if(Z){if(Z=f(Z))return d(Z);q()}},q)})};
exe=function(c){var f,d,q,Z=(f=c.contents)==null?void 0:(d=f.twoColumnWatchNextResults)==null?void 0:(q=d.autoplay)==null?void 0:q.autoplay,M,g,O;f=(M=c.contents)==null?void 0:(g=M.twoColumnWatchNextResults)==null?void 0:(O=g.playlist)==null?void 0:O.playlist;return Z&&f&&f.playlistId?{rawResponse:c,autoplayRenderer:Z,playlistPanelRenderer:f,playlistId:f.playlistId}:null};
I$C=function(c){var f=f===void 0?"UNKNOWN_INTERFACE":f;if(c.length===1)return c[0];var d=NTr[f];if(d){d=new RegExp(d);for(var q=_.C(c),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,d.exec(Z))return Z}var M=[];Object.entries(NTr).forEach(function(g){var O=_.C(g);g=O.next().value;O=O.next().value;f!==g&&M.push(O)});
d=new RegExp(M.join("|"));c.sort(function(g,O){return g.length-O.length});
q=_.C(c);for(Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,!d.exec(Z))return Z;return c[0]};
_.cS=function(c){return"/youtubei/v1/"+I$C(c)};
_.fX=function(c){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:c}}}}};
_.dD=function(c){return _.fX(_.pC(c))};
Pwe=function(c,f){var d={mode:"NORMAL"};c&&(d.autoplayVideo=c.navigationEndpoint,d.nextButtonVideo=c.navigationEndpoint);f&&(d.previousButtonVideo=f.navigationEndpoint);return d};
pxN=function(c,f,d){if(!d||!d.sets)return{sets:[Pwe(c,f)]};var q=d.sets.find(function(g){return g.mode==="NORMAL"}),Z=(0,_.zV.unsafeClone)(d);
if(!q)return Z.sets.push(Pwe(c,f)),Z;if(!c)return d;q=_.zV.getValueByKeys.apply(null,[q].concat(_.LT(Rxn)));var M=_.zV.getValueByKeys.apply(null,[c].concat(_.LT(UjC)));if(q===M)return d;Z.sets=Z.sets.filter(function(g){return g.mode!=="NORMAL"});
Z.sets.push(Pwe(c,f));return Z};
xjn=function(c){return!!c.playlistPanelVideoRenderer&&!c.playlistPanelVideoRenderer.unplayableText};
odN=function(c){return!!c.playlistPanelVideoRenderer&&!!c.playlistPanelVideoRenderer.title};
G1h=function(c,f){if(f.contents&&!(c>=f.contents.length)&&(c=f.contents.slice(c).find(xjn)))return c.playlistPanelVideoRenderer};
cxG=function(c,f){if(f.contents)return(f=f.contents.find(function(d){return!!d.playlistPanelVideoRenderer&&d.playlistPanelVideoRenderer.videoId===c}))?f.playlistPanelVideoRenderer:void 0};
fsC=function(c,f){return f.contents?f.contents.findIndex(function(d){return!!d.playlistPanelVideoRenderer&&d.playlistPanelVideoRenderer.videoId===c}):-1};
dsn=function(c,f){return f.contents?f.contents.findIndex(function(d){return!!d.playlistPanelVideoRenderer&&d.playlistPanelVideoRenderer.playlistSetVideoId===c}):-1};
j0e=function(c,f){c.contents&&f!==-1&&c.contents.splice(f,1).length===1&&c.totalVideos!==void 0&&(--c.totalVideos,delete c.videoCountText)};
_.qie=function(c){var f=[];if(!c||!c.contents)return f;c=_.C(c.contents);for(var d=c.next();!d.done;d=c.next())d=d.value,d.playlistPanelVideoRenderer&&d.playlistPanelVideoRenderer.videoId&&f.push(d.playlistPanelVideoRenderer.videoId);return f};
_.ZgG=function(c){if(c&&c.contents)return(c=c.contents.find(function(f){return!!f.playlistPanelVideoRenderer&&!!f.playlistPanelVideoRenderer.selected})||c.contents[c.currentIndex])?c.playlistPanelVideoRenderer:void 0};
Mt4=function(c,f,d,q,Z,M,g){Z=Z===void 0?!1:Z;M=M===void 0?!1:M;g=g===void 0?!1:g;if(c.contents&&c.contents.length!==0){q&&(c.contents=c.contents.filter(q));q=c.contents.length;for(var O=0;O<q;O++){var l=c.contents[O].playlistPanelVideoRenderer;l&&(O===f?(M&&delete l.menu,l.indexText=_.pC("\u25b6")):Z||c.isInfinite||l.indexText===void 0?delete l.indexText:l.indexText=_.pC((O+1+d).toString()))}c.currentIndex=f+d;g&&(delete c.videoCountText,c.totalVideos=q)}};
_.jv=function(c){c=rxl(c);if(c){var f=c.length;var d=-42%f;d<0&&(d=f+d);c=c.slice(f-d)+c.slice(0,f-d)}else c="";d="";for(f=0;f<c.length&&c[f]!==C24;f++)d+=c[f];return d};
_.gqN=function(c,f){var d=document.body;f=f===void 0?function(O){return O}:f;
var q,Z=null;c=_.C(c);for(q=c.next();!q.done;q=c.next()){var M=q.value;q="div";M[2]&&(q=f(M[2]));q=document.createElement(q);Z||(Z=q);var g=M[0];M=M[1];g&&(q.id=f(g));if(M)for(M=_.C(M),g=M.next();!g.done;g=M.next())q.classList.add(f(g.value));d.appendChild(q);d=q}return[Z,d]};
ktM=function(c,f){for(var d="",q=0;q<f;q++)d+=c.charAt(Math.floor(Math.random()*c.length));return d};
qL=function(c){return ktM("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",c)};
Zm=function(c){return ktM("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",c)};
ML=function(c){return ktM("0123456789",c)};
rD=function(){var c=performance.now(),f=new Date;var d="2."+f.getFullYear()+String(f.getMonth()+1).padStart(2,"0")+String(f.getDate()).padStart(2,"0");for(var q,Z=Math.floor(Math.random()*11)+15,M=[],g=0;g<Z;g++)M.push(Math.floor(Math.random()*26476865)+24547720);q=M.join(",");var O=qL(10),l=qL(100),m=qL(102),H=qL(106),A=qL(108),Y=qL(11),t=qL(1140),E=qL(123),J=qL(14),X=qL(16),u=qL(1900),W=qL(23),p=qL(26),N=qL(34),I=qL(397),R=qL(44),qN=qL(5),kl=qL(72),BN=qL(74),tP=qL(75),EC=qL(88),AP=qL(91),eM="rr4---sn-q4flrnsd rr2---sn-4g5ednz7 rr1---sn-5hne6n6e rr2---sn-ntq7yner rr1---sn-ntqe6n7r rr2---sn-q4flrnez rr2---sn-q4fl6nsr rr4---sn-ntqe6nee rr2---sn-q4fl6nlz rr2---sn-q4fzen7l rr2---sn-ntqe6n76 rr4---sn-q4flrnle rr2---sn-q4fl6n6r rr4---sn-q4flrnel rr2---sn-5hnekn7z rr3---sn-5hne6n6e rr5---sn-t0a7ln7d rr1---sn-hgn7rn7y rr3---sn-5hne6nz6 rr1---sn-q4flrnee".split(" ");
var ue=eM[Math.floor(Math.random()*eM.length)];var BH=(new Date("2010-01-01")).getTime();var J3=(new Date(BH+Math.random()*((new Date).getTime()-BH))).toISOString().split("T")[0];for(var lr,xl=[],Tv=0;Tv<4;Tv++)xl.push(Math.floor(Math.random()*100));lr=xl.join(".");var ir=Number(ML(5)),$_=Number(ML(6)),AH=Number(ML(7)),U3=Number(ML(9)),MN=ML(1),qH=ML(10),br=ML(16),YS=ML(19),Y_=ML(2),eu=ML(20),fT=ML(21),Gv=ML(3),Cj=ML(4),dJ=ML(5),BD=ML(6),E3=ML(7),Lj=ML(8),tH=ML(9);var Ol=ktM("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var sr=[Zm(5),Zm(5),Zm(5)].join("%2C"),KG=[ML(3),ML(5),ML(5)].join("%2C"),pZ=Zm(0),NH=Zm(1),aG=Zm(10),eF=Zm(108),T8=Zm(11),jZ=Zm(12),Zg=Zm(13),tw=Zm(14),LD=Zm(15),Mz=Zm(16),zP=Zm(17),nr=Zm(18),vN=Zm(19),NN=Zm(2),Fy=Zm(20),Or=Zm(22),z8=Zm(23),bC=Zm(24),Kj=Zm(266),A3=Zm(3),Vq=Zm(30),QM=Zm(34),HH=Zm(35),I8=Zm(36),zf=Zm(4),uX=Zm(40),EM=Zm(43),pu=Zm(47),uP=Zm(5),PN=Zm(6),iC=Zm(7),PD=Zm(75),Ur=Zm(8),l5=Zm(80),rk=Zm(9),Av="https://www."+Zm(12)+".com",Bj={},Pg={},ZT={},USk={},Mg={},dI={},jm={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:q}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:d},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Zm(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:d},{key:"client.name",value:"WEB"},{key:"client.fexp",value:q}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:fT+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Zm(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:uX,ypcGetOfflineUpsellEndpoint:{params:l5}},trackingParams:HH+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&cnr="+Y_+"&ratebypass=yes&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&c=WEB&txp="+E3+"&n="+X+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:$_,width:640,height:360,lastModified:br,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:E3,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+KG+"&mn="+
sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&cnr="+Y_+"&ratebypass=yes&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&c=WEB&txp="+E3+"&n="+X+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+eF+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:$_,width:1280,
height:720,lastModified:br,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:E3,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+KG+"&mn="+sr+"&ms="+
sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+tH+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:AH,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:tH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:AH,approxDurationMs:E3},{itag:248,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+KG+"&mn="+sr+"&ms="+sr+"&mv="+
NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fwebm&ns="+bC+"&gir="+A3+"&clen="+tH+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:AH,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:tH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:AH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:399,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+tH+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:AH,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:tH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:AH,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:136,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+tH+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:AH,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:tH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:$_,approxDurationMs:E3},{itag:247,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+KG+"&mn="+
sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fwebm&ns="+bC+"&gir="+A3+"&clen="+tH+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:AH,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:tH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:$_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:398,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+tH+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:AH,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:tH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:$_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:135,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:$_,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:$_,approxDurationMs:E3},{itag:244,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+KG+"&mn="+
sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fwebm&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+eF+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:$_,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:$_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:397,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:$_,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:$_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:134,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:$_,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:$_,highReplication:!0,approxDurationMs:E3},{itag:243,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fwebm&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:$_,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:$_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:396,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:$_,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:$_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:133,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:$_,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:$_,approxDurationMs:E3},{itag:242,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+KG+"&mn="+
sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fwebm&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:$_,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:$_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:395,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:$_,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:$_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:160,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:$_,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ir,approxDurationMs:E3},{itag:278,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+KG+"&mn="+
sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fwebm&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/webm; codecs="vp9"',bitrate:$_,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ir,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:394,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&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="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=video%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ir,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:ir,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:E3},{itag:140,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=audio%2Fmp4&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:$_,
initRange:{start:"0",end:"631"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:$_,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:E3,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+
Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=audio%2Fwebm&ns="+bC+"&gir="+A3+"&clen="+E3+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'audio/webm; codecs="opus"',bitrate:ir,initRange:{start:"0",end:"265"},indexRange:{start:Gv,
end:Cj},lastModified:br,contentLength:E3,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ir,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:E3,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=audio%2Fwebm&ns="+
bC+"&gir="+A3+"&clen="+E3+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'audio/webm; codecs="opus"',bitrate:ir,initRange:{start:"0",end:"265"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:E3,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ir,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:E3,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+ue+".googlevideo.com/videoplayback?expire="+qH+"&ei="+W+"&ip="+lr+"&id=o-AF"+EM+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+KG+"&mn="+sr+"&ms="+sr+"&mv="+NH+"&mvi="+MN+"&pl="+Y_+"&initcwndbps="+E3+"&siu="+MN+"&spc="+R+"&vprv="+MN+"&svpuc="+MN+"&mime=audio%2Fwebm&ns="+bC+"&gir="+A3+"&clen="+Lj+"&dur="+Lj+"&lmt="+br+"&mt="+qH+"&fvip=3&keepalive="+A3+"&c=WEB&txp="+
E3+"&n="+Mz+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+A,mimeType:'audio/webm; codecs="opus"',bitrate:$_,initRange:{start:"0",end:"265"},indexRange:{start:Gv,end:Cj},lastModified:br,contentLength:Lj,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:$_,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:E3,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="+tH+"&docid="+Y+"&ei="+W+"&feature="+O+"&fexp="+pZ+"&ns="+NN+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+NH+"&el="+aG+"&len="+Cj+"&of="+Or+
"&uga="+Y_+"&vm="+Kj},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+tH+"&docid="+Y+"&ei="+W+"&feature="+O+"&fexp="+pZ+"&ns="+NN+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+NH+"&el="+aG+"&len="+Cj+"&of="+Or+"&uga="+Y_+"&vm="+Kj},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+tH+"&docid="+Y+"&ei="+W+"&feature="+O+"&fexp="+pZ+"&ns="+NN+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
NH+"&el="+aG+"&len="+Cj+"&of="+Or+"&uga="+Y_+"&vm="+Kj},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+W+"&m="+EC+"&oid="+Or+"&plid="+X+"&pltype="+iC+"&ptchn="+Or+"&ptk="+J+"&video_id="+Y},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+tH+"&docid="+Y+"&ei="+W+"&event="+tw+"&feature="+O+"&fexp="+pZ+"&ns="+NN+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+NH},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+Y+"&ei="+W+"&feature="+
O+"&len="+Cj+"&ns="+NN+"&plid="+X+"&ver="+MN,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+Y+"&caps="+A3+"&opi="+tH+"&xoaf="+MN+"&hl="+NN+"&ip="+lr+"&ipbits="+MN+"&expire="+qH+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+lr+"&key="+A3+"&lang="+qN,name:{simpleText:Fy},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+Y+"&caps="+A3+"&opi="+tH+"&xoaf="+MN+"&hl="+NN+"&ip="+lr+"&ipbits="+MN+"&expire="+qH+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+lr+"&key="+A3+"&kind="+A3+"&lang="+NN,name:{simpleText:jZ},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:T8,title:LD,lengthSeconds:"1155",keywords:[uP,jZ,tw,zP],
channelId:bC,isOwnerViewing:!1,shortDescription:tw,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Y+"/hqdefault.jpg?sqp=-oaymwE"+I8+"G&rs="+QM,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Y+"/hqdefault.jpg?sqp=-oaymwE"+I8+"G&rs="+QM,width:196,height:110},{url:"https://i.ytimg.com/vi/"+Y+"/hqdefault.jpg?sqp=-oaymwE"+I8+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Y+"/hqdefault.jpg?sqp=-oaymwE"+I8+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
Y+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:E3,author:Zg,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:E3,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Or+"/featured_channel.jpg?v="+Ur,width:40,height:40}]},trackingParams:HH+"=",navigationEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"/channel/"+bC,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:bC}},channelName:Zg,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:PN}]},subscribed:!1,enabled:!0,type:"FREE",channelId:bC,showPreferences:!1,subscribedButtonText:{runs:[{text:PN}]},unsubscribedButtonText:{runs:[{text:uP}]},trackingParams:HH+"=",unsubscribeButtonText:{runs:[{text:Zg}]},serviceEndpoints:[{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[bC],params:Ur}},{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:uX,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:HH+"=",dialogMessages:[{runs:[{text:T8},{text:tw},{text:zP}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:zP}]},serviceEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[bC],params:Ur}},accessibility:{label:aG},trackingParams:HH+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:zf}]},accessibility:{label:rk},trackingParams:HH+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Ur}},unsubscribeAccessibility:{accessibilityData:{label:Zg}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Lj},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[bC],params:Ur}},unsubscribeCommand:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[bC],params:Ur}},addToWatchLaterCommand:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:T8,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:T8}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+Y+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+I8+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
Y+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+T8,width:1280,height:720},title:{simpleText:T8},description:{simpleText:Zg},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+LD,externalChannelId:bC,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:E3,category:"Travel & Events",publishDate:J3,ownerChannelName:Zg,uploadDate:J3}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Zg},trackingParams:HH+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:uX,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:HH+"="}}],headerText:{simpleText:zP},icon:{infoCardIconRenderer:{trackingParams:HH+"="}},closeButton:{infoCardIconRenderer:{trackingParams:HH+"="}},trackingParams:HH+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:HH+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+T8+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Ol,interpreterSafeUrl:(Bj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Vq+".js",Bj),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:jZ},{text:rk,bold:!0}]},endpoint:{clickTrackingParams:uX,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:HH+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:nr}]},actionButton:{buttonRenderer:{text:{runs:[{text:Zg}]},navigationEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+Y,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
Y,target:"TARGET_NEW_WINDOW"}},trackingParams:HH+"="}},trackingParams:HH+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+kl+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+kl+"=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:E3,endMs:E3,title:{accessibility:{accessibilityData:{label:LD}},simpleText:vN},metadata:{simpleText:vN},callToAction:{simpleText:vN},dismiss:{simpleText:LD},endpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"/channel/"+bC,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:bC}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:rk}]},subscribed:!1,enabled:!0,type:"FREE",channelId:bC,showPreferences:!1,
subscribedButtonText:{runs:[{text:nr}]},unsubscribedButtonText:{runs:[{text:Ur}]},trackingParams:HH+"=",unsubscribeButtonText:{runs:[{text:rk}]},serviceEndpoints:[{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[bC],params:Ur}},{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:uX,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:HH+
"=",dialogMessages:[{runs:[{text:zP},{text:vN},{text:Mz}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Fy}]},serviceEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[bC],params:Ur}},accessibility:{label:Mz},trackingParams:HH+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:iC}]},
accessibility:{label:LD},trackingParams:HH+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:aG}},unsubscribeAccessibility:{accessibilityData:{label:tw}}}},trackingParams:HH+"=",isSubscribe:!0,id:eu}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Y+"/hqdefault.jpg?sqp=-oaymwE"+I8+"G&rs="+N,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Y+"/hqdefault.jpg?sqp=-oaymwE"+I8+"G&rs="+QM,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+Y+"/hqdefault.jpg?sqp=-oaymwE"+I8+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Y+"/hqdefault.jpg?sqp=-oaymwE"+I8+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Y+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:E3,endMs:E3,title:{accessibility:{accessibilityData:{label:Zg}},simpleText:Fy},metadata:{simpleText:uP},endpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
T8,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:T8,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+ue+".googlevideo.com/videoplayback?source=youtube&oeis="+MN+"&c=WEB&oad="+Cj+"&ovd="+Cj+"&oaad="+dJ+"&oavd="+dJ+"&ocs="+Gv+"&oewis="+MN+"&oputc="+MN+"&ofpcc="+MN+"&siu="+MN+"&msp="+MN+"&odepv="+MN+
"&id=o-AF"+EM+"&ip="+lr+"&initcwndbps="+E3+"&mt="+qH+"&oweuc="+pZ}}}}},trackingParams:HH+"=",id:eu,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:nr}},simpleText:zP},style:"DEFAULT"}}]}}],startMs:E3,trackingParams:HH+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:MN,offsetEndMilliseconds:dJ},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tH+";dc_trk_cid="+tH+";dc_dbm_token="+A+";ord="+qH+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";dc_rui="+MN+";dc_exteid="+eu+";dc_av="+Gv+";dc_sk="+MN+";dc_ctype="+Y_+";dc_ref=http://www.youtube.com/video/"+T8+";dc_pubid="+MN+";dc_btype=23?gclid="+AP+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+MN+"&ns="+MN+"&event="+MN+"&device="+MN+"&content_v="+Y+"&el="+aG+"&ei="+W+"&devicever="+d+"&bti="+E3+"&format="+BD+"&break_type="+MN+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+MN+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+lr+"&slot_pos="+MN+"&slot_len="+MN+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+KG+"&ad_len="+dJ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
T8+"&aqi="+W+"&ad_rmp="+MN+"&sli="+MN}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+
";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+BD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+E3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&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"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&ctype="+Gv+"&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"+
t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_engaged_view&ctype="+Gv+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+BD+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tH+";dc_trk_cid="+tH+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";ord="+tH+";dc_rui="+MN+";dc_exteid="+YS+";dc_av="+MN+";dc_sk="+MN+";dc_ctype="+Y_+";dc_pubid="+MN+";dc_btype=3?gclid="+AP+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+"&sig="+z8+"&ad_cpn=[AD_CPN]&id="+PN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+PN+"&dc_pubid="+MN+"&dc_exteid="+eu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+"&sig="+z8+"&ad_cpn=[AD_CPN]&id="+PN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+MN},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+PN+"&avm="+MN+"&dc_pubid="+MN+"&dc_exteid="+
eu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&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="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
m+"&sig="+z8+"&ad_cpn=[AD_CPN]&id="+PN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+MN},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+PN+"&dc_pubid="+MN+"&dc_exteid="+eu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+BD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+BD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:uX,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+
Gv+"&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/"+Y+"/mqdefault.jpg",width:320,height:180}]},trackingParams:HH+"="},trackingParams:HH+
"=",templatedCountdown:{templatedAdText:{text:uP,isTemplated:!0,trackingParams:HH+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:zf,isTemplated:!1,trackingParams:HH+"="},trackingParams:HH+"="}},trackingParams:HH+"=",skipOffsetMilliseconds:5E3}},trackingParams:HH+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:vN},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:HH+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:iC,isTemplated:!1,trackingParams:HH+"="},trackingParams:HH+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:T8,isTemplated:!0,trackingParams:HH+"="}},trackingParams:HH+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:uX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Pg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+u+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+zf,Pg),trackingParams:HH+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:HH+"="}},hoverText:{runs:[{text:nr}]},trackingParams:HH+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pu+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:HH+"="},headline:{text:zP,isTemplated:!1,trackingParams:HH+"="},description:{text:LD,
trackingParams:HH+"="},actionButton:{buttonRenderer:{text:{simpleText:nr},navigationEndpoint:{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tH+";dc_trk_cid="+tH+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";ord="+tH+";dc_rui="+MN+";dc_exteid="+eu+";dc_av="+MN+";dc_sk="+MN+";dc_ctype="+Y_+";dc_pubid="+MN+";dc_btype=3?gclid="+AP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:HH+"="}},startMs:MN,trackingParams:HH+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:aG},elementId:rk}},elementId:nr,trackingParams:HH+"=",legacyInfoCardVastExtension:jZ,sodarExtensionData:{siub:aG,bgub:PN,scs:zP,bgp:nr},externalVideoId:T8,adLayoutLoggingData:{serializedAdServingDataEntry:uP},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pu+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:HH+"="},
headline:{text:Ur,isTemplated:!1,trackingParams:HH+"="},description:{text:jZ,isTemplated:!1,trackingParams:HH+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:T8},navigationEndpoint:{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tH+";dc_trk_cid="+tH+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";ord="+tH+";dc_rui="+MN+";dc_exteid="+
eu+";dc_av="+MN+";dc_sk="+MN+";dc_ctype="+Y_+";dc_pubid="+MN+";dc_btype=3?gclid="+AP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+
MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:HH+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:HH+"="}},navigationEndpoint:{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tH+";dc_trk_cid="+
tH+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";ord="+tH+";dc_rui="+MN+";dc_exteid="+eu+";dc_av="+MN+";dc_sk="+MN+";dc_ctype="+Y_+";dc_pubid="+MN+";dc_btype=3?gclid="+AP+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+
E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:HH+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:HH+"="},abandonCommands:{commands:[{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&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="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+
MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:uX,commandExecutorCommand:{commands:[{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:jZ,isTemplated:!1,trackingParams:HH+
"="},trackingParams:HH+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Mz},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+E3+";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="+tH+";dc_trk_cid="+tH+";ord="+qH+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";dc_rui="+MN+";dc_exteid="+eu+";dc_av="+Gv+";dc_sk="+MN+";dc_ctype="+Y_+";dc_ref=http://www.youtube.com/video/"+T8+";dc_pubid="+MN+";dc_btype=23?gclid="+AP+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+MN+"&ns="+MN+"&event="+MN+"&device="+MN+"&content_v="+Y+"&el="+aG+"&ei="+W+"&devicever="+d+"&bti="+E3+"&format="+BD+"&break_type="+MN+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+MN+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+lr+"&slot_pos="+MN+"&slot_len="+MN+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
KG+"&ad_len="+dJ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+T8+"&aqi="+W+"&ad_rmp="+MN+"&sli="+MN}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+BD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+
p+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+E3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&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"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&ctype="+Gv+"&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"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_engaged_view&ctype="+Gv+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+BD+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+"&sig="+z8+"&ad_cpn=[AD_CPN]&id="+
PN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+PN+"&dc_pubid="+MN+"&dc_exteid="+eu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+
"&sig="+z8+"&ad_cpn=[AD_CPN]&id="+PN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+MN},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+PN+"&avm="+MN+"&dc_pubid="+MN+"&dc_exteid="+eu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&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="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+"&sig="+z8+"&ad_cpn=[AD_CPN]&id="+PN+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+MN},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+PN+"&dc_pubid="+MN+"&dc_exteid="+eu+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+BD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+BD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+
Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&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/"+Y+"/mqdefault.jpg",width:320,height:180}]},trackingParams:HH+"="},trackingParams:HH+"=",templatedCountdown:{templatedAdText:{text:Mz,isTemplated:!0,trackingParams:HH+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Mz,isTemplated:!1,trackingParams:HH+"="},trackingParams:HH+"="}},
trackingParams:HH+"=",skipOffsetMilliseconds:5E3}},trackingParams:HH+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:vN},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:HH+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:PN,isTemplated:!1,trackingParams:HH+"="},trackingParams:HH+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:PN,
isTemplated:!0,trackingParams:HH+"="}},trackingParams:HH+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:uX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ZT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+u+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+zf,ZT),trackingParams:HH+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:HH+"="}},hoverText:{runs:[{text:Fy}]},trackingParams:HH+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+BN+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:HH+"="},headline:{text:zP,isTemplated:!1,trackingParams:HH+"="},description:{text:vN,trackingParams:HH+"="},actionButton:{buttonRenderer:{text:{simpleText:aG},navigationEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:HH+"="}},startMs:MN,trackingParams:HH+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:aG},elementId:jZ}},elementId:aG,trackingParams:HH+"=",legacyInfoCardVastExtension:aG,sodarExtensionData:{siub:Ur,bgub:PN,scs:uP,bgp:Fy},externalVideoId:T8,adLayoutLoggingData:{serializedAdServingDataEntry:Ur},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+BN+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:HH+"="},headline:{text:tw,
isTemplated:!1,trackingParams:HH+"="},description:{text:vN,isTemplated:!1,trackingParams:HH+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:rk},navigationEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:HH+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:HH+"="}},navigationEndpoint:{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+
MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:HH+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:HH+"="},abandonCommands:{commands:[{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&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="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+Y_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:uX,commandExecutorCommand:{commands:[{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Fy,isTemplated:!1,trackingParams:HH+"="},trackingParams:HH+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:iC},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MN+";dc_exteid="+eu+";met="+MN+";ecn"+MN+"="+MN+";etm1="+MN+";eid1="+
E3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:tw}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ur}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:dJ,offsetEndMilliseconds:BD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+Y_+"&token=ALHj"+I+"&index="+MN+"&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="+d+"&m_pos_ms="+dJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:uP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:BD,offsetEndMilliseconds:BD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+Gv+"&token=ALHj"+I+"&index="+MN+"&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="+
d+"&m_pos_ms="+BD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Mz}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:BD,offsetEndMilliseconds:BD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+Gv+"&token=ALHj"+I+"&index="+MN+"&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="+
d+"&m_pos_ms="+BD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rk}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:BD,offsetEndMilliseconds:BD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+Gv+"&token=ALHj"+I+"&index="+MN+"&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="+
d+"&m_pos_ms="+BD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:BD,offsetEndMilliseconds:Y_},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+Gv+"&token=ALHj"+I+"&index="+MN+"&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="+
d+"&m_pos_ms="+BD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Fy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Y_,offsetEndMilliseconds:Y_},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+W+"&m_pos="+Y_+"&token=ALHj"+I+"&index="+MN+"&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="+
d+"&m_pos_ms="+Y_}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ur}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:vN,isTemplated:!1,trackingParams:HH+"="},description:{text:jZ,isTemplated:!1,trackingParams:HH+"="},actionButton:{buttonRenderer:{text:{simpleText:rk},navigationEndpoint:{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
tH+";dc_trk_cid="+tH+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";ord="+tH+";dc_rui="+MN+";dc_exteid="+eu+";dc_av="+MN+";dc_sk="+MN+";dc_ctype="+Y_+";dc_pubid="+MN+";dc_btype=3?gclid="+AP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:HH+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pu+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:HH+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+tP+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:HH+"="},navigationEndpoint:{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tH+";dc_trk_cid="+tH+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";ord="+tH+
";dc_rui="+MN+";dc_exteid="+eu+";dc_av="+MN+";dc_sk="+MN+";dc_ctype="+Y_+";dc_pubid="+MN+";dc_btype=3?gclid="+AP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:HH+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:uX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(USk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+u+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+zf,USk),trackingParams:HH+"="}},popupType:"DIALOG"}},trackingParams:HH+"="}},hoverText:{runs:[{text:T8}]},trackingParams:HH+"="}},adVideoId:T8,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Zg},associatedCompositePlayerBytesLayoutId:Mz}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:iC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:uP,isTemplated:!1,trackingParams:HH+"="},description:{text:Ur,isTemplated:!1,trackingParams:HH+"="},actionButton:{buttonRenderer:{text:{simpleText:nr},navigationEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+
E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:HH+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+BN+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:HH+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+PD+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:HH+"="},navigationEndpoint:{clickTrackingParams:uX,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+
MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:HH+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:uX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Mg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+u+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+zf,Mg),trackingParams:HH+"="}},popupType:"DIALOG"}},trackingParams:HH+"="}},
hoverText:{runs:[{text:zf}]},trackingParams:HH+"="}},adVideoId:T8,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+T8+"&cid="+p+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:aG},associatedCompositePlayerBytesLayoutId:Mz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:zf,
isTemplated:!1,trackingParams:HH+"="},description:{text:LD,isTemplated:!1,trackingParams:HH+"="},actionButton:{buttonRenderer:{text:{simpleText:vN},navigationEndpoint:{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tH+";dc_trk_cid="+tH+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";ord="+tH+";dc_rui="+MN+";dc_exteid="+eu+";dc_av="+MN+";dc_sk="+MN+";dc_ctype="+
Y_+";dc_pubid="+MN+";dc_btype=3?gclid="+AP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+
N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:HH+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pu+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:HH+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+tP+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:HH+
"="},navigationEndpoint:{clickTrackingParams:uX,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+tH+";dc_trk_cid="+tH+";dc_dbm_token="+A+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MN+";ord="+tH+";dc_rui="+MN+";dc_exteid="+eu+";dc_av="+MN+";dc_sk="+MN+";dc_ctype="+Y_+";dc_pubid="+MN+";dc_btype=3?gclid="+AP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+E+"AxAA&ase=2&num="+MN+"&cid="+p+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+Av+"&label=video_click_to_advertiser_site&ctype="+Gv+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:HH+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:uX,openPopupAction:{popup:{aboutThisAdRenderer:{url:(dI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+u+"&hl="+NN+"&origin=www.youtube.com&ata_theme="+zf,dI),trackingParams:HH+"="}},popupType:"DIALOG"}},trackingParams:HH+
"="}},hoverText:{runs:[{text:jZ}]},trackingParams:HH+"="}},adVideoId:T8,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+E+"AxAA&sigh="+Y+"&cid="+p+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Ur},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Mz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iC}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Vq,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Vq,command:{innertubeCommand:{clickTrackingParams:uX,ypcGetOfflineUpsellEndpoint:{params:l5}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:HH+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:qH,nanos:U3}}}},z8l=JSON.stringify(jm),qq=performance.now()-c;return{objectRepresentation:jm,jsonRepresentation:z8l,generationTime:qq}};
Ogl=function(c,f){if(c===f)return!0;if(!c||!f||typeof c!==typeof f)return!1;if(c instanceof Array&&f instanceof Array){if(c.length!==f.length)return!1;for(var d=0;d<c.length;d++)if(!Ogl(c[d],f[d]))return!1;return!0}if(typeof c==="object"&&typeof f==="object"&&c&&f){for(d in c)if(!(d in f&&Ogl(c[d],f[d])))return!1;for(var q in f)if(!(q in c))return!1;return!0}return!1};
_.gD=function(){if(!CX){CX=new sS(new lsr);var c=_.rx("client_streamz_web_flush_count",-1);c!==-1&&(CX.invocationLimit=c)}return CX};
k0=function(c,f,d,q){if(c===f)return!0;if(Array.isArray(c)&&Array.isArray(f)){if(c.length!==f.length)return!1;for(var Z=0;Z<c.length;Z++)if(!k0(c[Z],f[Z],d,q))return!1;return!0}if(c instanceof Set||f instanceof Set){if(c instanceof Set&&f instanceof Set){if(c.size!==f.size)return!1;q=_.C(c.values());for(Z=q.next();!Z.done;Z=q.next())if(!f.has(Z.value))return!1;return!0}return!1}if(c instanceof Function){if(q)return!0;c.name===""&&_.VO(Error("Hf"),"ERROR");return!1}if(c instanceof Date&&f instanceof
Date)return c.getTime()===f.getTime();if(c instanceof Object&&f instanceof Object){if(s0z(c)&&s0z(f))try{return c.equals(f)}catch(g){_.VO(Error("If`"+g),"ERROR")}Z=Object.getOwnPropertyNames(c).filter(function(g){return d?c[g]!==void 0:!0});
var M=Object.getOwnPropertyNames(f).filter(function(g){return d?f[g]!==void 0:!0});
if(Z.length!==M.length)return!1;Z=_.C(Z);for(M=Z.next();!M.done;M=Z.next())if(M=M.value,!k0(c[M],f[M],d,q))return!1;return!0}return!1};
s0z=function(c){c=Object.getPrototypeOf(c).equals;return c instanceof Function&&c.length===1};
_.TtP=function(){return _.k(function(c){if(c.nextAddress==1)return BtN!==2?c.jumpTo(2):c.yield(igr(),3);c.nextAddress!=2&&(BtN=c.yieldResult);return c.return(BtN)})};
_.AxM=function(){return _.k(function(c){if(c.nextAddress==1)return _.F("ab_pl_man")?msN!==2?c.jumpTo(2):c.yield(HgN(),3):c.return(1);c.nextAddress!=2&&(msN=c.yieldResult);return c.return(msN)})};
ttC=function(){return _.k(function(c){if(c.nextAddress==1)return _.F("ab_fk_sk_cl")?Yin!==2?c.jumpTo(2):c.yield(FRN(),3):c.return(1);c.nextAddress!=2&&(Yin=c.yieldResult);return c.return(Yin)})};
_.Eqk=function(){return _.k(function(c){if(c.nextAddress==1)return _.F("ab_det_apb_b")?bgN!==2?c.jumpTo(2):c.yield(KRk(),3):c.return(1);c.nextAddress!=2&&(bgN=c.yieldResult);return c.return(bgN)})};
Q0h=function(){var c;return _.k(function(f){if(f.nextAddress==1)return f.yield(Promise.all([_.TtP(),_.Eqk(),_.AxM(),ttC()]),2);if(f.nextAddress!=3)return nqG()?f.return(!0):f.yield(_.$sk(),3);c=f.yieldResult;return f.return(c===0)})};
nqG=function(){var c=!1,f=function(d,q){Sik.increment(q,d);d===0&&(c=!0)};
f(_.LRl(),"j.s_");f(BtN,"f.i_");f(bgN,"a.b_");f(msN,"p.m_");f(Yin,"i.f_");zte===2&&(zte=_.JxY(asN));f(zte,"e.h_");_.F("ks_det_gpbl")||f(_.VtN(),"p.i_");_.F("ks_get_o_pp")||f(_.XAG(),"g.o_");_.F("ab_deg_unex_thr")||f(_.uWz(),"a.o_");f(vqr,"s.t_");_.F("ab_det_sc_inj_enf")&&f(_.htP(),"s.i_");f(wAN,"d.p_");f(_.yxk(_.OO),"o.p_");f(_.WRe()===0?0:_.Dsn(),"o.a_");return _.F("debug_sk_em_precheck")?!0:c};
NtG=function(){var c=[].concat(_.LT(etl));try{var f=rD();c.push({jsonRepresentation:f.jsonRepresentation,objectRepresentation:f.objectRepresentation})}catch(d){c=[].concat(_.LT(etl))}return c};
Isz=function(){var c=["adPlacements","adSlots"];try{return c.filter(function(){return!0}).length!==c.length?0:1}catch(f){return 0}};
_.XAG=function(){if(Isz()===0)return 0;var c=rD(),f=c.objectRepresentation,d=(0,_.zV.unsafeClone)(f),q=[];if(f&&typeof f==="object")for(var Z in f)q.push(Z);else return 4;c=c.objectRepresentation.adPlacements;if(!(c&&c.length>0))return 4;try{if(!Ogl(q,Object.getOwnPropertyNames(f)))return 0}catch(M){return 0}return Ogl(d,f)?1:0};
_.yxk=function(c){if(!c||!c.length||typeof c==="string")return 0;for(var f=Object.getOwnPropertyNames(Object.prototype),d=0;d<c.length;d++)for(var q=_.jv(c[d]),Z=_.C(f),M=Z.next();!M.done;M=Z.next())if(q===M.value)return 0;return 1};
P2r=function(c){var f=_.jv(c[1]);if(c[0]===null)return f;c=c[0];for(var d={},q=0;q<c.length;q++){var Z=_.jv(c[q]);if(q===0)d[Z]=f;else{var M={};M[Z]=d;d=M}}return d};
_.WRe=function(){for(var c=_.lo,f=0;f<c.length;f++){var d=P2r(c[f]),q=[];q.push(d);if(q.length===0)return 0}return 1};
_.Dsn=function(){for(var c=_.lo,f={},d=0;d<c.length;f={o4Q:void 0},d++){var q=[P2r(c[d])];f.o4Q=[];q.forEach(function(Z){return function(M){Z.o4Q[Z.o4Q.length]=M}}(f));
if(f.o4Q.length===0)return 0}return 1};
_.LRl=function(){for(var c=_.C(NtG()),f=c.next();!f.done;f=c.next()){var d=f.value;f=d.jsonRepresentation;d=d.objectRepresentation;try{var q=JSON.parse(f);if(!k0(q,d,!1,!1))return 0}catch(Z){return 0}}return 1};
_.htP=function(){try{var c=_.gx("ab_det_sc_inj_val");c.length===1&&c[0]===""&&(c=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var f=document.querySelectorAll("script"),d=_.C(f),q=d.next();!q.done;q=d.next())for(var Z=q.value,M=_.C(c),g=M.next();!g.done;g=M.next()){var O=g.value;f=void 0;if((f=Z.textContent)==null?0:f.includes(O))return 0}}catch(l){return 4}return 1};
_.$sk=function(){var c,f,d,q,Z,M,g;return _.k(function(O){switch(O.nextAddress){case 1:_.iY(O,2),c=_.C(etl),f=c.next();case 4:if(f.done)return O.return(1);q=d=f.value;Z=q.jsonRepresentation;M=q.objectRepresentation;return O.yield((new Response(Z,{status:200})).json(),7);case 7:g=O.yieldResult;if(!k0(g,M,!1,!1))return O.return(0);f=c.next();O.jumpTo(4);break;case 2:return _.Yw(O),O.return(4)}})};
_.uWz=function(){try{btoa("abc")}catch(c){return 0}return 1};
igr=function(){var c,f,d,q,Z,M,g,O,l,m,H;return _.k(function(A){switch(A.nextAddress){case 1:_.iY(A,2),c=_.C(NtG()),f=c.next();case 4:if(f.done)return A.return(1);q=d=f.value;Z=q.jsonRepresentation;M=q.objectRepresentation;g=btoa(Z);O="data:application/json;base64,"+g;l=new Request(O);Object.defineProperty(l,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(l,"method",{get:function(){return"POST"}});
Object.defineProperty(l,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(l,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(l,"body",{get:function(){return new ReadableStream}});
return A.yield(fetch(l),7);case 7:return m=A.yieldResult,A.yield(m.json(),8);case 8:H=A.yieldResult;if(!k0(H,M,!1,!1))return A.return(0);f=c.next();A.jumpTo(4);break;case 2:return _.Yw(A),A.return(4)}})};
_.JxY=function(c){if(!c||!c.length||typeof c==="string")return 0;for(var f=function(Z){return _.jv(Z)},d=2,q=0;q<c.length&&(d=_.Rtk(_.gqN(c[q],f)),d!==0);q++);
return d};
_.Rtk=function(c){var f=_.C(c);c=f.next().value;f=f.next().value;try{var d=document.createElement("div");document.body.appendChild(d);var q=getComputedStyle(d).display;document.body.removeChild(d);if(q==="none")return 4;var Z=getComputedStyle(f).display==="none"?0:1;document.body.removeChild(c);return Z}catch(M){return 4}};
FRN=function(){var c,f,d;return _.k(function(q){c=new _.BS;f=document.createElement("button");f.classList.add("ytp-ad-skip-button");f.style.opacity="0";f.style.height="0px";f.style.width="0px";f.style.padding="0px";f.style.border="none";d=function(){f.parentElement&&f.parentElement.removeChild(f)};
f.onclick=function(){c.resolve(0);d()};
document.body.appendChild(f);setTimeout(function(){d();c.resolve(1)},50);
return q.return(c.promise)})};
HgN=function(){var c,f,d,q,Z,M,g;return _.k(function(O){c=new _.BS;f=document.createElement("ytd-player");try{document.body.prepend(f)}catch(l){return O.return(4)}d=function(){f.parentElement&&f.parentElement.removeChild(f)};
f.getElementsByTagName("div").length>0?q=f.getElementsByTagName("div")[0]:(q=document.createElement("div"),f.appendChild(q));Z=document.createElement("div");q.appendChild(Z);M=document.createElement("video");g=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"});M.src=_.Lq(_.vU(g));M.ontimeupdate=function(){d();c.resolve(0)};
Z.appendChild(M);M.classList.add("html5-main-video");setTimeout(function(){Z.classList.add("ad-interrupting")},200);
setTimeout(function(){d();c.resolve(1)},5E3);
return O.return(c.promise)})};
Ush=function(c,f){var d,q;return _.k(function(Z){switch(Z.nextAddress){case 1:d=[],q=0;case 2:if(!(q<3)){Z.jumpTo(4);break}return Z.yield(fetch(c,{cache:"no-store",method:f}).then(function(M){d.push(M.status)}).catch(function(){d.push(-1)}),3);
case 3:q++;Z.jumpTo(2);break;case 4:return Z.return(d)}})};
pAr=function(c){return c.domainLookupStart===0&&c.domainLookupEnd===0&&c.connectStart===0&&c.connectEnd===0};
xsk=function(c,f,d){d=d===void 0?"GET":d;var q,Z,M,g,O,l,m,H,A,Y;return _.k(function(t){if(t.nextAddress==1)return t.yield(Promise.all([Ush(c,d),Ush(f,d)]),2);q=t.yieldResult;Z=_.C(q);M=Z.next().value;g=Z.next().value;O=M;l=g;if(Math.min.apply(Math,_.LT(l))!==Math.max.apply(Math,_.LT(l))||Math.min.apply(Math,_.LT(O))!==Math.max.apply(Math,_.LT(O)))return t.return(2);if(Math.min.apply(Math,_.LT(l))===Math.min.apply(Math,_.LT(O)))return t.return(1);H=(m=performance.getEntriesByName(c))==null?void 0:
m[0];Y=(A=performance.getEntriesByName(f))==null?void 0:A[0];return H&&Y?pAr(Y)?t.return(1):pAr(H)?t.return(0):t.return(1):t.return(2)})};
KRk=function(){var c;return _.k(function(f){var d=[];var q;var Z,M,g;(Z=q=(Z=rD().objectRepresentation.streamingData)==null?void 0:(M=Z.formats)==null?void 0:(g=M[0])==null?void 0:g.url)&&Z&&!q.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Z=Z.replace("initcwndbps","ctier=L&initcwndbps"),Z=Z.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),q={testUrl:Z,baseUrl:q,method:"GET"}):q=void 0;q&&d.push(q);_.F("ab_net_tp_e")&&d.push({testUrl:_.dz.location.origin+"/ad_companion",baseUrl:_.dz.location.origin+
"/generate_204",method:"OPTIONS"});if(_.F("ad_net_pb_ab")){var O;b:{q=/api\/stats\/ads/;var l,m,H,A;Z=(O=rD().objectRepresentation.adPlacements)==null?void 0:(l=O[0])==null?void 0:(m=l.adPlacementRenderer)==null?void 0:(H=m.renderer)==null?void 0:(A=H.linearAdSequenceRenderer)==null?void 0:A.linearAds;if(Z!=null&&Z.length&&(O=_.b(Z[0],oq4))&&(O=O.pings,O!=null&&O.impressionPings))for(l=[].concat(_.LT(O.impressionPings)),O.progressPings&&(l=[].concat(_.LT(l),_.LT(O.progressPings))),O=_.C(l),l=O.next();!l.done;l=
O.next())if(l=l.value,l.baseUrl&&q.test(l.baseUrl)){O=l.baseUrl.replace("https://www.youtube.com","");break b}O=void 0}O&&d.push({testUrl:_.dz.location.origin+O,baseUrl:_.dz.location.origin+"/feed/download",method:"GET"})}if(_.F("ad_net_pb_pbp")){var Y;b:{O=/api\/stats\/qoe/;if(l=rD().objectRepresentation.playbackTracking){m=[];m.push(l==null?void 0:(Y=l.videostatsPlaybackUrl)==null?void 0:Y.baseUrl);var t;m.push(l==null?void 0:(t=l.videostatsDelayplayUrl)==null?void 0:t.baseUrl);var E;m.push(l==
null?void 0:(E=l.videostatsWatchtimeUrl)==null?void 0:E.baseUrl);var J;m.push(l==null?void 0:(J=l.ptrackingUrl)==null?void 0:J.baseUrl);var X;m.push(l==null?void 0:(X=l.qoeUrl)==null?void 0:X.baseUrl);var u;m.push(l==null?void 0:(u=l.atrUrl)==null?void 0:u.baseUrl);Y=_.C(m);for(t=Y.next();!t.done;t=Y.next())if((t=t.value)&&O.test(t)){Y=t.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}Y=void 0}Y&&d.push({testUrl:_.dz.location.origin+Y,baseUrl:_.dz.location.origin+
"/feed/download",method:"GET"})}d=d.length!==0?d[Math.floor(Math.random()*d.length)]:void 0;return(c=d)?f.return(xsk(c.testUrl,c.baseUrl,c.method)):f.return(4)})};
_.VtN=function(){if(_.dz.kNu===void 0||_.dz.kNu===null||typeof _.dz.kNu!=="function")return 2;try{return _.dz.kNu()===!0?0:1}catch(c){return 0}};
GtN=function(c){switch(c){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.WH(c,"unknown result type")}};
_.c2M=function(c,f){var d=Number(_.hk("CATSTAT",0));if(f.sTT===void 0)return d;f=f.sTT;c=GtN(c);return d&~(3<<f)|c<<f};
fbC=function(c){var f,d;if((c=(f=c.auxiliaryUi)==null?void 0:(d=f.messageRenderers)==null?void 0:d.bkaEnforcementMessageViewModel)&&c.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return c};
jQY=function(){for(var c=_.C(Object.values(_.dee)),f=c.next();!f.done;f=c.next())f=f.value,f.isAsync&&f.sTT&&_.Xr("CATSTAT",_.c2M(2,f))};
_.HS=function(c,f){c=_.io("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",c);(f===void 0?0:f)?_.qjk(c,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.TX(_.mq(),c,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
MDn=function(){if(!Zmk){if(Polymer.Base){var c=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{c.apply(this,arguments)}catch(A){_.yJ(A)}};
var f=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{f.apply(this,arguments)}catch(A){_.yJ(A)}};
var d=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{d.apply(this,arguments)}catch(A){_.yJ(A)}};
var q=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{q.apply(this,arguments)}catch(A){_.yJ(A)}};
var Z=Polymer.Base._listen,M=new WeakMap;Polymer.Base._listen=function(A,Y,t){var E=function(){try{t.apply(this,arguments)}catch(J){_.yJ(J)}};
M.set(t,E);Z.call(this,A,Y,E)};
var g=Polymer.Base._unlisten;Polymer.Base._unlisten=function(A,Y,t){g.call(this,A,Y,M.get(t))}}if(Polymer.Async){var O=Polymer.Async,l=O._atEndOfMicrotask;
O._atEndOfMicrotask=function(){try{l.apply(O,arguments)}catch(A){_.yJ(A)}}}if(Polymer.RenderStatus){var m=Polymer.RenderStatus,H=m.afterNextRender;
m.afterNextRender=function(A,Y,t){H.call(m,A,function(){try{Y.apply(this,arguments)}catch(E){_.yJ(E)}},t)}}Zmk=!0}};
_.Ah=function(c){var f=c?_.Bq(c):"";if(f){if(f.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(f.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(f.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(f.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(f.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.F("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(f.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";f=f.toLowerCase();if(f==="/")return"home";if(f==="/channel_memberships")return"channel-memberships-shopfront";if(f.indexOf("/feed/trending")===0)return"trending";if(f.indexOf("/feed/explore")===0)return"explore";if(f.indexOf("/live")===0)return"live";if(f.indexOf("/results")===0)return"search";if(f.indexOf("/sports")===0)return"sports";if(f.indexOf("/fashion")===0||f.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(f))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(f))return _.F("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(f.indexOf("/channel/")===0||f.indexOf("/user/")===0||f.indexOf("/gaming")===0||f.indexOf("/post/")===0)return"channel";if(r2e(c))return"show";if(f==="/playlist"||f.indexOf("/playlist/")===0||f==="/view_play_list"||f.indexOf("/view_play_list/")===0||f.indexOf("/show/")===0)return"playlist";if(f==="/feed/history"||f.indexOf("/feed/history/")===0)return"history";if(f===
"/new")return"labs";if(f==="/feed/subscriptions")return"subscriptions";if(f.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(f==="/history_controls")return"standalone";if(f.indexOf("/account")===0||f==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(f.indexOf("/paid_memberships")===0||f.indexOf("/refund")===0||f.indexOf("/purchases")===0||f.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(f.indexOf("/product")===0)return"yts-products";if(f.indexOf("/premium")===
0||f.indexOf("/musicpremium")===0)return f.indexOf("/premium/offers")===0||f.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(f==="/cart/checkout"||f==="/cart")return"ypc-checkout";if(f.indexOf("/feed/downloads")===0||f.indexOf("/redeem")===0||f.indexOf("/reporthistory")===0)return"browse";if(f.indexOf("/hashtag")===0)return"hashtag-landing-page";if(f.indexOf("/handle")===0)return"handle";if(f.indexOf("/source")===0)return"audio-pivot";if(f.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(f.indexOf("/playables")===0)return"playables";if(f.indexOf("/create/live/join")===0)return"open-in-app";if(f.indexOf("/shorts")===0)return"shorts";if(f.indexOf("/feed/channels")===0)return"subscriptions-channels";(f=c?_.Bq(c):"")&&f.indexOf("/watch")===0&&_.F("web_watch_enable_learning_journey")?(c=_.Rw(c),c=!!c.list&&c.list.indexOf("LJPP")===0):c=!1;if(c)return"learning_journey_watch"}};
_.Y0=function(c){var f,d;(c=(d=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?void 0:d.url)&&(f=_.Ah(c));return f};
r2e=function(c){var f=c?_.Bq(c):"";if(!f)return!1;f=f.toLowerCase();return f.indexOf("/show/")===0||f.indexOf("/playlist")===0&&(c=_.Rw(c),c.list&&c.list.indexOf("EL")===0)?!0:!1};
bo=function(c){var f="unknown",d;var q=((d=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?void 0:d.webPageType)||"";q?(d=q.toLowerCase(),d.startsWith("web_page_type_")&&(d=d.slice(14))):d=q;d&&C9e[d.toUpperCase()]?f=C9e[d.toUpperCase()]:_.b(c,_.Fw)||_.b(c,gQC)?f="browse":_.b(c,_.th)?f="search":_.b(c,_.pe)&&(f="watch");f==="watch"&&_.Y0(c||null)==="learning_journey_watch"&&(f="learning_journey_watch");f==="unknown"&&_.u6(Error("Kf`"+JSON.stringify({clickTrackingParams:c==null?void 0:c.clickTrackingParams,
commandMetadata:c==null?void 0:c.commandMetadata,allEndpointKeys:Object.keys(c||[])})));return f};
_.KX=function(c){if(!_.k9P||c)_.k9P=_.Yc();return _.k9P};
_.Oml=function(c){return!!_.b(c,_.pe)||!!_.b(c,_.EO)&&_.F("kevlar_enable_shorts_prefetch")};
_.lbh=function(c,f){c=_.b(c,_.pe)||_.b(c,_.EO);return"v"+c.videoId+(c.playlistId?"-pl"+c.playlistId:"")+(f?"-an1":"")+(c.params?"-pr"+c.params:"")};
nX=function(c){return function(){return new c}};
$0=function(c){var f=_.ql();return function(){return f.resolve(c)}};
B9Y=function(c){var f=_.rx("web_pbj_log_warning_rate",0);f=f>0&&Math.random()<f;if(!_.b(c,_.EO))return f&&_.u6(Error("Nf")),!1;var d;return _.F("shorts_controller_retrieve_seedless_sequence_v2")&&((d=_.b(c,_.EO))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:sQG(c)?!0:(f&&_.u6(Error("Of")),!1)};
sQG=function(c){var f=(_.b(c,_.pe)||_.b(c,_.EO)).videoId;if(!f||!imz.test(f))return!1;var d;return(c=(d=_.b(c.commandMetadata,_.jO))==null?void 0:d.url)&&(c.includes(f)||c.startsWith("/clip"))?!0:!1};
_.meM=function(){var c=_.Ft();return c.getFlag(192)?c.getFlag(190):!(_.F("web_watch_cinematics_disabled_by_default")||_.F("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&T9C())};
_.Qa=function(c,f,d){var q={};q.currentUrl=f;q.vis=c.vis!==void 0?c.vis:0;q.splay=!1;f=_.Ft();q.autoCaptionsDefaultOn=f.getFlag(66);f.getFlag(141)?f.getFlag(140)?q.autonavState="STATE_OFF":q.autonavState="STATE_ON":q.autonavState="STATE_NONE";q.html5Preference="HTML5_PREF_WANTS";isNaN(_.hk("STS"))||(q.signatureTimestamp=_.hk("STS"));c.autonav&&(q.autoplay=!0,q.autonav=!0);c.mutedAutoplay&&(q.autoplay=!0,q.mutedAutoplay=!0);c.inlinePlayback&&(q.autoplay=!0,q.autonav=!1,q.isInlineUnmutedPlayback=!!c.inlineUnmuted);
q.referer=d;q.lactMilliseconds=c.lact!==void 0?c.lact.toString():"-1";_.F("enable_unknown_lact_fix_on_html5")&&q.lactMilliseconds==="-1"&&_.u6(new _.KD("Unknown LACT is set in playbackContext.",{"lact in tempData":c.lact||"undefined",autonav:c.autonav||"undefined"}));c={};f.getFlag(194)&&(c.hasShownAmbientMode=!0);f.getFlag(192)&&(c.hasToggledOffAmbientMode=!0);_.meM()&&(c.watchAmbientModeEnabled=!0);q.watchAmbientModeContext=c;return q};
Hmh=function(c){var f={},d=c.pbis||0;d&&(f.playbackBeginsInSeconds=d);c.prefetch_reason&&c.prefetch_reason==="hc_pbis"&&(f.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return f};
_.LX=function(c){c=c===void 0?!1:c;var f=_.Ft(),d="USER_INTERFACE_THEME_LIGHT";f.getFlag(165)?d="USER_INTERFACE_THEME_DARK":f.getFlag(174)?d="USER_INTERFACE_THEME_LIGHT":_.Sv()&&(d="USER_INTERFACE_THEME_DARK");return c?d:A2z()||d};
_.YjN=function(){return!_.F("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Sv=function(){return _.YjN()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.zX=function(){var c=_.Ft();return _.YjN()&&!c.getFlag(165)&&!c.getFlag(174)};
A2z=function(){var c=c===void 0?window.location.href:c;if(_.F("kevlar_disable_theme_param"))return null;var f=_.Bq(c);if(_.FDY(f))return"USER_INTERFACE_THEME_DARK";try{var d=_.Rw(c).theme;return tDG.get(d)||null}catch(q){}return null};
_.FDY=function(c){return _.F("enable_dark_theme_only_on_shorts")?!(c==null||!c.startsWith("/shorts/")):!1};
_.EQG=function(c,f,d,q,Z){f=f===void 0?!1:f;d=d===void 0?!1:d;var M=_.hk("INNERTUBE_CONTEXT");if(!M)return _.VO(Error("Rf")),{};M=(0,_.zV.unsafeClone)(M);_.F("web_no_tracking_params_in_shell_killswitch")||delete M.clickTracking;M.client||(M.client={});var g=M.client;g.clientName==="MWEB"&&g.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(g.clientFormFactor=_.hk("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");g.screenWidthPoints=window.innerWidth;g.screenHeightPoints=window.innerHeight;g.screenPixelDensity=
Math.round(window.devicePixelRatio||1);g.screenDensityFloat=window.devicePixelRatio||1;g.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());g.userInterfaceTheme=_.LX();if(!f){var O=_.OCG();O&&(g.connectionType=O);_.F("web_log_effective_connection_type")&&(O=snk())&&(M.client.effectiveConnectionType=O)}var l;if(_.F("web_log_memory_total_kbytes")&&((l=_.dz.navigator)==null?0:l.deviceMemory)){var m;l=(m=_.dz.navigator)==null?void 0:m.deviceMemory;M.client.memoryTotalKbytes=""+l*1E6}f&&q&&!_.F("web_it_context_set_original_url_ks")&&
(g.originalUrl=bmk(_.dz.location.href,q).toString());_.F("web_gcf_hashes_innertube")&&(O=bXr())&&(m=O.coldConfigData,l=O.coldHashData,O=O.hotHashData,M.client.configInfo=M.client.configInfo||{},m&&(M.client.configInfo.coldConfigData=m),l&&(M.client.configInfo.coldHashData=l),O&&(M.client.configInfo.hotHashData=O));m=_.Rw(_.dz.location.href);!_.F("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(g.internalGeo=m.internalcountrycode);!_.F("web_populate_client_screen_killswitch")&&Z&&(g.clientScreen=
Z);g.clientName==="MWEB"||g.clientName==="WEB"?(g.mainAppWebInfo||(g.mainAppWebInfo={}),g.mainAppWebInfo.graftUrl=q||_.dz.location.href,_.F("kevlar_woffle")&&_.Jh.instance&&(q=_.Jh.instance,g.mainAppWebInfo.pwaInstallabilityStatus=!q.appInstalledEventFired&&q.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),g.mainAppWebInfo.webDisplayMode=iXh(),g.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):g.clientName==="TVHTML5"&&
(!_.F("web_lr_app_quality_killswitch")&&(q=_.hk("LIVING_ROOM_APP_QUALITY"))&&(g.tvAppInfo=Object.assign(g.tvAppInfo||{},{appQuality:q})),q=_.hk("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(g.tvAppInfo=Object.assign(g.tvAppInfo||{},{certificationScope:q}));!_.F("web_populate_time_zone_itc_killswitch")&&(q=gCP())&&(g.timeZone=q);(q=SXC())?g.experimentsToken=q:delete g.experimentsToken;g=LnN();q=_.KD4();q=(0,_.zV.getValues)(q.tokenJars);M.request=Object.assign({},M.request,{internalExperimentFlags:g,consistencyTokenJars:q});
!_.F("web_prequest_context_killswitch")&&(g=_.hk("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(M.request.externalPrequestContext=g);q=_.Ft();g=q.getFlag(58);q=q.get("gsml","");M.user=Object.assign({},M.user);g&&(M.user.enableSafetyMode=g);q&&(M.user.lockedSafetyMode=!0);_.F("warm_op_csn_cleanup")?d&&(f=_.X2())&&(M.clientScreenNonce=f):!f&&(f=_.X2())&&(M.clientScreenNonce=f);c&&(M.clickTracking={clickTrackingParams:c});if(c=_.D5("yt.mdx.remote.remoteClient_"))M.remoteClient=c;_.aV.getInstance().setLocationOnInnerTubeContext(M);
try{var H=yQ4(),A=H.bid;delete H.bid;M.adSignalsInfo={params:[],bid:A};for(var Y=_.C(Object.entries(H)),t=Y.next();!t.done;t=Y.next()){var E=_.C(t.value),J=E.next().value,X=E.next().value;H=J;A=X;c=void 0;(c=M.adSignalsInfo.params)==null||c.push({key:H,value:""+A})}var u,W;if(((u=M.client)==null?void 0:u.clientName)==="TVHTML5"||((W=M.client)==null?void 0:W.clientName)==="TVHTML5_UNPLUGGED"){var p=_.hk("INNERTUBE_CONTEXT");p.adSignalsInfo&&(M.adSignalsInfo.advertisingId=p.adSignalsInfo.advertisingId,
M.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",M.adSignalsInfo.limitAdTracking=p.adSignalsInfo.limitAdTracking)}}catch(N){_.VO(N)}return M};
_.nQC=function(c){var f=new Va(_.hk("ONE_PICK_URL",""));f.urlParamMap_.set("hostId",c);(c=_.hk("GAPI_LOCALE"))&&f.urlParamMap_.set("hl",c);(c=_.hk("SESSION_INDEX"))&&f.urlParamMap_.set("authuser",c);(c=_.hk("DELEGATED_SESSION_ID"))&&f.urlParamMap_.set("groupId",c);return f};
QQP=function(){var c=_.ql(),f=c.resolve(_.Xw);c=c.resolve(_.uo);return new $eM(f,c)};
LDN=function(c){if(window.IntersectionObserver)return new SjM(c,400);throw new TypeError("Yf");};
J2C=function(){var c=Hammer.TouchAction,f=c.prototype.preventDefaults;c.prototype.preventDefaults=function(d){var q=this.actions.indexOf("pan-down")>-1;if(!q)return f.call(this,d);if(!zmz){var Z=d.srcEvent;d=d.direction;var M;if((M=this.manager)==null?0:M.session.prevented)Z.preventDefault();else if(q&&d&Hammer.DIRECTION_DOWN)return this.preventSrc(Z)}}};
abh=function(c){if(!c||c.size===0)return Hammer.DIRECTION_ALL;if(c.size===2){if(c.has("up")&&c.has("down"))return Hammer.DIRECTION_VERTICAL;if(c.has("right")&&c.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(c.size===1){if(c.has("up"))return Hammer.DIRECTION_UP;if(c.has("down"))return Hammer.DIRECTION_DOWN;if(c.has("right"))return Hammer.DIRECTION_RIGHT;if(c.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.XPP=function(){return VDG?Promise.resolve(VDG):new Promise(function(c,f){var d=self.indexedDB.open("swpushnotificationsdb");d.onerror=f;d.onsuccess=function(){var q=d.result;if(q.objectStoreNames.contains("swpushnotificationsstore"))VDG=q,c(VDG);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.XPP()};
d.onupgradeneeded=uTP})};
uTP=function(c){c=c.target.result;c.objectStoreNames.contains("swpushnotificationsstore")&&c.deleteObjectStore("swpushnotificationsstore");c.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
hmh=function(c){var f=vQk(),d;return _.k(function(q){switch(q.nextAddress){case 1:return _.iY(q,2),q.yield(c.match(f,{cacheName:"yt-appshell-assets"}),4);case 4:d=q.yieldResult;_.Pq(q,3);break;case 2:_.Yw(q);case 3:return q.return(d)}})};
vQk=function(){var c=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?wP4.registration.scope:y2Y;c.endsWith("/")&&(c=c.slice(0,-1));return c+"/app_shell_home"};
WDk=function(c){c.map(function(f){return f.source}).join("|")};
_.DeY=function(c){return _.k(function(f){return f.return(hmh(c))})};
emh=function(){var c=window.caches,f;return _.k(function(d){if(d.nextAddress==1)return d.yield(_.DeY(c),2);f=d.yieldResult;return d.return(!!f)})};
xez=function(){_.k(function(c){if(c.nextAddress==1){if(N9k)return c.jumpTo(0);N9k=!0;if(_.F("enable_system_health_primes_monitoring"))return _.lF(Ibr,3E4),P9M(),c.return();if(!(Math.random()<_.rx("web_system_health_fraction")))return c.jumpTo(0);Rmn={heightPixels:screen.height,widthPixels:screen.width};vS&&!isNaN(vS.jsHeapSizeLimit)&&(Rmn.memoryTotalKbytes=String(Math.round(vS.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Rmn.devicePixelRatio=window.devicePixelRatio);return c.yield(Uen(),4)}_.lF(Ibr,
3E4);return c.yield(pPn(),0)})};
Uen=function(){return _.k(function(c){if(c.nextAddress==1)return hh.intersectionObserverPresent="IntersectionObserver"in window,hh.serviceWorkerPresent="serviceWorker"in navigator,hh.webSharePresent="share"in navigator,hh.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,hh.cacheStoragePresent="caches"in window,hh.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,hh.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
hh.webkitTemporaryStoragePresent="webkitTemporaryStorage"in wD&&wD.webkitTemporaryStorage&&"queryUsageAndQuota"in wD.webkitTemporaryStorage,hh.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",c.yield(D$z(),2);hh.indexedDbPresent=c.yieldResult;hh.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;hh.broadcastChannelPresent="BroadcastChannel"in window;hh.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(hh.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,hh.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Fm(c)})};
Ibr=function(){var c=9E4+Math.random()*2E3;_.ZZ()>c||(_.F("enable_system_health_primes_monitoring")?P9M():pPn())};
pPn=function(){var c;return _.k(function(f){if(f.nextAddress==1)return f.yield(oQl(),2);c=f.yieldResult;_.JN("systemHealthCaptured",c);_.Fm(f)})};
P9M=function(){var c={metric:{}},f=G9C();f.networkEvents.length&&(c.metric.networkEvents=c6N(f));_.JN("systemHealthCaptured",c)};
oQl=function(){var c,f,d,q,Z,M,g,O,l,m;return _.k(function(H){switch(H.nextAddress){case 1:c={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)};f=window.screen;_.F("enable_is_extended_monitoring")&&f&&"isExtended"in f&&(c.isExtended=!!f.isExtended);d={metric:{staticContext:Rmn,dynamicContext:c,webMetric:f3C,webApiSupport:hh}};
if(q=_.X2())d.csn=q;vS&&(d.metric.webMetric.currentHeapKbytes=Math.round(vS.usedJSHeapSize/1E3));window.matchMedia&&(d.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,d.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,d.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in wD&&typeof wD.getBattery==="function")){H.jumpTo(2);break}return H.yield(wD.getBattery(),3);case 3:if(Z=
H.yieldResult)d.metric.dynamicContext.chargingStatus=Z.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(d.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(hh.storageEstimatePresent)return H.yield(navigator.storage.estimate(),8);if(!hh.webkitTemporaryStoragePresent){H.jumpTo(5);break}return H.yield(dPe(),7);case 7:M=H.yieldResult;H.jumpTo(5);break;case 8:M=H.yieldResult;case 5:return d.metric.dynamicContext.deviceStorageQuotaMbytes=((g=M)==null?0:g.quota)?String(Math.round(M.quota/
1048576/10)*10):"-1",d.metric.dynamicContext.deviceStorageUsageMbytes=((O=M)==null?0:O.usage)?String(Math.round(M.usage/1048576/10)*10):"-1",l=d.metric.dynamicContext,H.yield(emh(),9);case 9:return l.hasAppShell=H.yieldResult,m=G9C(),m.networkEvents.length&&(d.metric.networkEvents=c6N(m)),H.return(d)}})};
dPe=function(){return new Promise(function(c){var f;hh.webkitTemporaryStoragePresent&&(f=wD.webkitTemporaryStorage)!=null&&f.queryUsageAndQuota?wD.webkitTemporaryStorage.queryUsageAndQuota(function(d,q){c({usage:d,quota:q})}):c(void 0)})};
_.ya=function(c){c&=16777215;c=[(c&16711680)>>16,(c&65280)>>8,c&255];return jgk(c[0],c[1],c[2])};
_.WS=function(c){c=[(c&16711680)>>>16,(c&65280)>>>8,c&255,(c&4278190080)>>>24];var f=_.qwr(c,function(d){return d==(d&255)});
c[3]=(c[3]/255).toFixed(3);if(!f)throw Error("Zf`"+c.join(","));return"rgba("+c.join(",")+")"};
_.Zdz=function(c){return[(c&16711680)>>>16,(c&65280)>>>8,c&255]};
_.MXh=function(c){c=c.map(function(f){f/=255;return f<=.03928?f/12.92:Math.pow((f+.05)/1.05,2.4)});
return c[0]*.2126+c[1]*.7152+c[2]*.0722};
Dm=function(c,f){c=_.Zdz(c);return"rgba("+c[0]+", "+c[1]+", "+c[2]+", "+f+")"};
_.r6C=function(){try{return!!self.localStorage}catch(c){return!1}};
Od4=function(){if(Cck())_.u6(Error("$f"));else{var c=document.createElement("iframe");c.style.display="none";var f=f===void 0?window.location.href:f;var d=_.Vm(_.hk("PERSIST_IDENTITY_IFRAME_URL"));f=d?d:(new URL(f)).host.indexOf("studio")===0?_.CG(gek,"persist_identity"):_.CG(knz,"persist_identity");_.ZTM(c,1,f);c.id="persist_identity";var q;(q=document.body)==null||q.appendChild(c)}};
Cck=function(){var c=l3l;c||(c=document.querySelector("#persist_identity"));return c};
sgC=function(){var c=!1;try{c=!!window.sessionStorage.getItem("session_logininfo")}catch(f){c=!0}return(_.hk("INNERTUBE_CLIENT_NAME")==="WEB"||_.hk("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&c};
BYN=function(c,f){if(!sgC())return!1;f||(f=_.hk("LOGIN_INFO"));return f?(c.session_logininfo=f,!0):!1};
TYP=function(c,f){c=c===void 0?!1:c;if((f===void 0||!f)&&idr!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.wi("LOG_STICKINESS",!1)){f=_.X2();var d=_.V5(),q={identityStickinessData:{initialState:idr}};f&&d&&_.xt(f,d,q)}if(f=Cck())if(d=f.src?(new URL(f.src)).origin:"*",c){var Z;(Z=f.contentWindow)==null||Z.postMessage({action:"clear"},d)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(c=window.sessionStorage.getItem("session_logininfo"))){var M;(M=f.contentWindow)==null||M.postMessage({loginInfo:c},d)}};
_.ev=function(c){c=c===void 0?!0:c;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Xr("LOGIN_INFO",""),c&&window.sessionStorage.setItem("from_switch_account","1"),TYP(!0,c)}catch(f){}};
mPl=function(c){c&&(c.startsWith("https://accounts.google.com/AddSession")?_.ev():c.startsWith("https://accounts.google.com/ServiceLogin")?_.ev():c.startsWith("https://myaccount.google.com")&&_.DU(c).getPath().endsWith("/youtubeoptions")&&_.ev())};
NL=function(c,f){mPl(c);if(_.wi("LOGGED_IN",!0)&&sgC()){var d=rRP(c);d==null&&(d={});BYN(d,f)&&_.cO(c,d)}};
Hde=function(){function c(f){for(f=f.target;f&&f.nodeName!=="A";)if(f=f.parentNode,!(f&&f instanceof HTMLElement))return;if(f&&!f.hasAttribute("download")&&f.getAttribute("rel")!=="external"&&f.href)return f.href}
document.addEventListener("mousedown",function(f){f.button!==0&&(f=c(f))&&NL(f)});
document.addEventListener("click",function(f){(f=c(f))&&NL(f)})};
FUn=function(){var c=new A6n;try{if(_.wi("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(O){c.increment(5,!1);return}if(_.hk("LOGIN_INFO")){var f=YwN?YwN:window.location;_.hk("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Od4();var d=rRP(f.href);d==null&&(d={});var q=d.session_logininfo,Z=Number(window.sessionStorage.getItem("stickiness_reload")),M=q===_.hk("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Z>=2||M)Z>=2?c.increment(2,M):M?c.increment(7,M):window.sessionStorage.getItem("session_logininfo")||(c.increment(3,M),idr="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.hk("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.hk("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))c.increment(4,M),window.sessionStorage.removeItem("stickiness_reload");
else if(Z<2){window.sessionStorage.setItem("stickiness_reload",String(Z+1));var g=f.href;g=_.fZ(g,"sttick");NL(g,window.sessionStorage.getItem("session_logininfo"));g=_.U6(g,{sttick:Z});c.increment(Z,M);_.OTY(f,g)}}else c.increment(6,!1)}else _.ev(!1)}catch(O){}};
_.IV=function(c,f,d,q,Z){f=f===void 0?{}:f;d=d===void 0?"":d;q=q===void 0?window:q;c=_.p9(c,f);NL(c);d=_.XD(c+d,Z);_.OTY(q.location,d)};
_.tXM=function(c,f,d,q,Z){Z=Z===void 0?!1:Z;d&&_.cO(c,d);d=_.XD(c);var M=_.Lq(d);c!=M&&_.eZ(Error("ag`"+c));c=M;f=f||es(c).toString(36);try{if(Z)return Z=c,Z=Hxz(Z),NL(Z),_.PU(window,Z,f,"attributionsrc")}catch(g){_.yJ(g)}NL(c);return _.PU(window,d,f,q)};
bdn=function(c){if(c.urlEndpoint){if(c=_.Rw(c.urlEndpoint.url),c.adurl)return fD(c.adurl)}else if(c.watchEndpoint)return"//www.youtube.com/watch?v="+c.watchEndpoint.videoId;return null};
KUk=function(c){if(!c||!c.reportingPings)return null;var f={};c.reportingPings.forEach(function(d){d.pingType in f?f[d.pingType].push(d.url):f[d.pingType]=[d.url]});
return{adpings:iZe(f)}};
_.PS=function(){return{isShellLoad:_.wi("IS_SHELL_LOAD",!1)}};
neh=function(){navigator.serviceWorker.getRegistrations().then(function(c){c.forEach(EeP)})};
EeP=function(c){c&&_.$Pz(QgN,c.scope)};
_.$Pz=function(c,f){f={scope:f||_.CD("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Kq(c),f)};
RV=function(c,f,d,q){if(f&&f.serializedYpcCujLoggingParams){if(d){var Z={};Z.transactionErrorType=d;q&&(Z.errorMessage=q);f.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Z}}}d={};d.ypcCujContext=f;c=_.io("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",c,d);_.TX(_.mq(),c,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Swk=function(c,f,d,q){var Z={};Z.serializedTransactionFlowLoggingParams=f;d&&(Z.errorType=d);q&&(Z.errorMessage=q);_.JN(c,Z);_.ab()};
_.LUz=function(c){c&&_.Swk("transactionFlowStarted",c)};
_.zue=function(c){c&&_.Swk("transactionFlowCancelled",c)};
_.UO=function(c,f,d){f&&_.Swk("transactionFlowFailed",f,c,d)};
J6z=function(c){var f=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");f&&(f.inert=c)};
_.pX=function(){this.megabloxUrl_=null};
_.x0=function(c){try{var f=a3C==null?void 0:a3C.composedPath(c)}catch(d){f=c.composedPath?c.composedPath():[]}return f&&f.length>0?f:c.composedPath?c.composedPath():[]};
_.oV=function(c){return _.x0(c)[0]};
_.GX=function(c){if(!(c instanceof Element))return null;c=c.classList?Array.from(c.classList):void 0;if(!c)return null;var f=c.indexOf("style-scope");return f>-1&&f+1<c.length?c[f+1]:null};
cj=function(c){if(!(c instanceof HTMLElement))return null;var f=c&&(c.$$||c.polymerController)?c.tagName.toLowerCase():null;return f?f:_.GX(c)};
VXl=function(c,f){return c.replace(/[^a-z]*[^\s]+/g,function(d){return d+".style-scope."+f})};
XRh=function(c,f){return f?c.split(",").map(function(d){return VXl(d.trim(),f)}).join(", "):c};
_.f$=function(c){var f,d,q,Z;return(Z=(q=(d=(f=c.root)!=null?f:c.shadowRoot)!=null?d:c.__shady_native_shadowRoot)!=null?q:c.__shady_shadowRoot)!=null?Z:c};
d1=function(c){return c instanceof ShadowRoot?ShadowRoot:c instanceof DocumentFragment?DocumentFragment:c instanceof Document?Document:HTMLElement};
uSr=function(c){var f,d,q;return(q=(d=(f=c.parentElement)!=null?f:c.__shady_native_parentElement)!=null?d:c.__shady_parentElement)!=null?q:null};
veN=function(c){var f,d,q;return(q=(d=(f=c.parentNode)!=null?f:c.__shady_native_parentNode)!=null?d:c.__shady_parentNode)!=null?q:null};
huC=function(c){var f,d,q;return(q=(d=(f=c.__shady_parentNode)!=null?f:c.__shady_native_parentNode)!=null?d:c.parentNode)!=null?q:null};
wRG=function(c){var f,d;return(d=(f=veN(c))!=null?f:c.host)!=null?d:null};
y6N=function(c){var f,d,q;return(q=(d=(f=c.nextSibling)!=null?f:c.__shady_native_nextSibling)!=null?d:c.__shady_nextSibling)!=null?q:null};
WUN=function(c){var f,d,q;return(q=(d=(f=c.previousSibling)!=null?f:c.__shady_native_previousSibling)!=null?d:c.__shady_previousSibling)!=null?q:null};
DP4=function(c){var f,d,q;return(q=(d=(f=c.nextElementSibling)!=null?f:c.__shady_native_nextElementSibling)!=null?d:c.__shady_nextElementSibling)!=null?q:null};
eul=function(c){var f,d,q;return(q=(d=(f=c.previousElementSibling)!=null?f:c.__shady_native_previousElementSibling)!=null?d:c.__shady_previousElementSibling)!=null?q:null};
NYl=function(c){var f,d,q;return new Set([].concat(_.LT((f=c.children)!=null?f:[]),_.LT((d=c.__shady_native_children)!=null?d:[]),_.LT((q=c.__shady_children)!=null?q:[])))};
I3z=function(c){var f,d,q;return new Set([].concat(_.LT((f=c.childNodes)!=null?f:[]),_.LT((d=c.__shady_native_childNodes)!=null?d:[]),_.LT((q=c.__shady_childNodes)!=null?q:[])))};
Pcz=function(c){if(!c)return null;var f=_.GX(c);if(!f){var d;return(d=Node.prototype.getRootNode)==null?void 0:d.call(c)}f=f.toUpperCase();for(c=uSr(c);c&&c.tagName!==f;)c=uSr(c);return c?_.f$(c):null};
Rur=function(c){for(;c&&!(c instanceof HTMLElement);)c=wRG(c);return c};
UPN=function(c){var f=Rur(c);return c===f?_.GX(c):f?cj(f):null};
pRr=function(c){return(c=Rur(c))?cj(c):null};
xPl=function(c){if(c instanceof Comment)return!1;if(c instanceof Text){var f,d;if(((d=(f=c.textContent)==null?void 0:f.trim())!=null?d:"")==="")return!1}return!0};
jB=function(c,f,d){var q=f(c);for(d=d===void 0?pRr(c):d;q&&(UPN(q)!==d||!xPl(q));)c=q,q=f(c);return q};
oer=function(c,f,d){if(!f)return null;c=pRr(c);return UPN(f)===c&&xPl(f)?f:jB(f,d,c)};
GnC=function(c){return jB(c,huC,_.GX(c))};
cde=function(c){return jB(c,DP4)};
fTr=function(c){return jB(c,y6N)};
dgC=function(c){return jB(c,eul)};
jFG=function(c){return jB(c,WUN)};
q7Y=function(c){return oer(c,c.firstChild||c.__shady_native_firstChild||c.__shady_firstChild||null,y6N)};
ZQr=function(c){var f,d,q;var Z=(q=(d=(f=c.firstElementChild)!=null?f:c.__shady_native_firstElementChild)!=null?d:c.__shady_firstElementChild)!=null?q:null;return oer(c,Z,DP4)};
MzP=function(c){var f,d,q;var Z=(q=(d=(f=c.lastChild)!=null?f:c.__shady_native_lastChild)!=null?d:c.__shady_lastChild)!=null?q:null;return oer(c,Z,WUN)};
rdz=function(c){var f,d,q;var Z=(q=(d=(f=c.lastElementChild)!=null?f:c.__shady_native_lastElementChild)!=null?d:c.__shady_lastElementChild)!=null?q:null;return oer(c,Z,eul)};
Cgr=function(c){var f=pRr(c);return Array.from(I3z(c)).filter(function(d){return UPN(d)===f})};
g4n=function(c){var f=cj(c);return Array.from(NYl(c)).filter(function(d){return _.GX(d)===f})};
_.qh=function(c,f,d){if(c instanceof HTMLElement&&_.GX(c)===d){var q=Array.from(c.classList).indexOf("style-scope");if(q===-1)c.classList.add("style-scope"),c.classList.add(f);else if(!(q+1>=c.classList.length)){q=c.classList[q+1];var Z,M;c==null||(Z=c.classList)==null||(M=Z.replace)==null||M.call(Z,q,f)}}if(c instanceof HTMLElement||c instanceof DocumentFragment)for(Z=_.C(NYl(c)),M=Z.next();!M.done;M=Z.next())_.qh(M.value,f,d);return c};
Z_=function(c,f){if(c instanceof HTMLElement&&_.GX(c)===f){var d=Array.from(c.classList).indexOf("style-scope");d===-1||d+1>=c.classList.length||c.classList.remove("style-scope",c.classList[d+1])}if(c instanceof HTMLElement||c instanceof DocumentFragment){d=_.C(c.children);for(var q=d.next();!q.done;q=d.next())Z_(q.value,f)}return c};
_.kHz=function(c,f){return d1(c).prototype.appendChild.call(c,f)};
OQk=function(c,f){if(c===f)return!0;c=I3z(c);return Array.from(c).some(function(d){return OQk(d,f)})};
_.r1=function(c,f){if(c instanceof Mh)return c;(f==null?0:f.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(c,"ownerDocument")&&Object.defineProperty(c,"ownerDocument",{get:function(){return window.document}});
return new Mh(c)};
sFG=function(){var c=Mh.prototype,f=[].concat(_.LT(lTn?[]:["getRootNode"]),["setAttribute","removeAttribute"]);f=_.C(f);for(var d=f.next(),q={};!d.done;q={method$jscomp$51:void 0},d=f.next())q.method$jscomp$51=d.value,c[q.method$jscomp$51]=function(Z){return function(){return this.host[Z.method$jscomp$51].apply(this.host,arguments)}}(q)};
iQl=function(){var c=Mh.prototype,f=[].concat(_.LT(lTn?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.LT(BAM?[]:["querySelector","querySelectorAll"]));f=_.C(f);for(var d=f.next(),q={};!d.done;q={method$jscomp$52:void 0},d=f.next())q.method$jscomp$52=d.value,c[q.method$jscomp$52]=function(Z){return function(){return this.root[Z.method$jscomp$52].apply(this.root,arguments)}}(q)};
HQC=function(){var c=Mh.prototype,f=[].concat(_.LT(TA4?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.LT(mgk?[]:["parentNode"]));f=_.C(f);for(var d=f.next(),q={};!d.done;q={prop$jscomp$62:void 0},d=f.next())q.prop$jscomp$62=d.value,Object.defineProperty(c,q.prop$jscomp$62,{get:function(Z){return function(){return this.host[Z.prop$jscomp$62]}}(q),
configurable:!0})};
FHC=function(){var c=Mh.prototype,f=["activeElement"].concat(_.LT(TA4?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.LT(AdM?[]:["children"]),_.LT(Y7N?[]:["lastChild"]));f=_.C(f);for(var d=f.next(),q={};!d.done;q={prop$jscomp$63:void 0},d=f.next())q.prop$jscomp$63=d.value,Object.defineProperty(c,q.prop$jscomp$63,{get:function(Z){return function(){return this.root[Z.prop$jscomp$63]}}(q),
configurable:!0})};
tzr=function(){for(var c=Mh.prototype,f=_.C(["innerHTML","textContent"]),d=f.next(),q={};!d.done;q={prop$jscomp$64:void 0},d=f.next())q.prop$jscomp$64=d.value,Object.defineProperty(c,q.prop$jscomp$64,{get:function(Z){return function(){return this.root[Z.prop$jscomp$64]}}(q),
set:function(Z){return function(M){this.root[Z.prop$jscomp$64]=M}}(q),
configurable:!0})};
bQN=function(c){var f=Mh.prototype;c=_.C(Object.entries(c));for(var d=c.next(),q={};!d.done;q={fn$jscomp$388:void 0},d=c.next()){var Z=_.C(d.value);d=Z.next().value;Z=Z.next().value;q.fn$jscomp$388=Z;f[d]=function(M){return function(){return M.fn$jscomp$388.apply(null,[this.host.node||this.host].concat(_.LT(arguments)))}}(q)}};
E4Y=function(){for(var c=Mh.prototype,f=_.C(Object.entries(KHh)),d=f.next(),q={};!d.done;q={fn$jscomp$389:void 0},d=f.next()){var Z=_.C(d.value);d=Z.next().value;Z=Z.next().value;q.fn$jscomp$389=Z;Object.defineProperty(c,d,{get:function(M){return function(){return M.fn$jscomp$389.apply(null,[this.host.node||this.host].concat(_.LT(arguments)))}}(q),
configurable:!0})}};
_.C$=function(c){return c instanceof n4r||c instanceof Document?c:new n4r(c)};
$gk=function(){for(var c=n4r.prototype,f=_.C("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),d=f.next(),q={};!d.done;q={method$jscomp$53:void 0},d=f.next())q.method$jscomp$53=d.value,c[q.method$jscomp$53]=function(Z){return function(){return HTMLElement.prototype[Z.method$jscomp$53].call.apply(HTMLElement.prototype[Z.method$jscomp$53],[this.node].concat(_.LT(arguments)))}}(q)};
QFC=function(){for(var c=n4r.prototype,f=_.C("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),d=f.next(),q={};!d.done;q={prop$jscomp$65:void 0},d=f.next())q.prop$jscomp$65=d.value,Object.defineProperty(c,q.prop$jscomp$65,{get:function(Z){return function(){var M;return(M=this.node["__shady_native_"+Z.prop$jscomp$65])!=null?M:this.node[Z.prop$jscomp$65]}}(q),
configurable:!0})};
_.g1=function(c,f,d){d===void 0&&(d=!c.classList.contains(f));d?c.classList.add(f):c.classList.remove(f)};
_.kE=function(c,f,d){d===void 0&&(d=!c.hasAttribute(f));if(f==="class")throw Error("eg");d?_.C$(c).setAttribute(f,""):_.C$(c).removeAttribute(f)};
S7n=function(c){return(c.localName!=="slot"?[]:(0,_.Ok)(c).assignedNodes({flatten:!0})).filter(function(f){return f.nodeType===Node.ELEMENT_NODE})};
_.LHz=function(c){return(c=_.r1(c).querySelector("slot"))&&c.localName==="slot"?S7n(c):[]};
_.la=function(c,f){window.ShadyCSS&&window.ShadyCSS.styleSubtree(c,f)};
sk=function(c,f){var d=f.bind(c);return function(q){d(q,q.detail)}};
_.ia=function(c,f){var d=z0N.get(c);d||(d=new WeakMap,z0N.set(c,d));if(d.has(f))return d.get(f);if(_.F("web_fi_listen_disable_bound_fn_helper")){var q=f.bind(c);c=function(Z){q(Z,Z==null?void 0:Z.detail)}}else c=sk(c,f);
d.set(f,c);return c};
Vzh=function(c,f){JdY(c);c.created[aTl].push(f)};
JdY=function(c){if(!c.created||!c.created[aTl]){var f=c.created,d=f?[f]:[];c.created=function(){for(var q=_.C(d),Z=q.next();!Z.done;Z=q.next())Z.value.apply(this)};
c.created[aTl]=d}};
XXk=function(c){return function(){var f=_.hv.apply(0,arguments);return function(d,q,Z){c.apply(null,_.LT(f))(d,q,Z)}}};
uHG=function(){return function(){var c=_.hv.apply(0,arguments);return function(f,d,q){bok.apply(null,_.LT(c))(f,d,q)}}};
_.Q=function(c){return uHG()(c)};
_.S=function(){return XXk($0Y).apply(null,_.LT(_.hv.apply(0,arguments)))};
_.Ta=function(c){return _.F("pbcm_fi_listen_decorators")?v4e(c):XXk(ExP)(c)};
v4e=function(c){return function(f,d){Vzh(f,function(){var q=this[d],Z=_.F("web_fi_listen_disable_bound_fn_helper")?function(M){q(M,M.detail)}.bind(this):sk(this,q);
h0N.has(c)?Vg(this.hostElement,c,Z):this.hostElement.addEventListener(c,Z)})}};
_.m5=function(){return XXk(nxN).apply(null,_.LT(_.hv.apply(0,arguments)))};
_.L=function(c){c=c===void 0?{}:c;return XXk(KbC)(c)};
_.Hj=function(c){if(c.hostElement&&c!==c.hostElement){var f=_.$n(c.hostElement);f=c.renderIdom?f:f.shadowRoot}f||(c=c.root,f=c instanceof Node?_.$n(c):null);return f};
_.AY=function(c){return wXG?ydY(c):function(f,d){Object.defineProperty(f,d,{get:function(){var q;return(q=_.Hj(this))==null?void 0:q.querySelector(c)},
enumerable:!0,configurable:!0})}};
ydY=function(c){return function(f,d){Object.defineProperty(f,d,{get:function(){var q,Z=(q=_.r1(this.hostElement))==null?void 0:q.querySelector(c);if(Z)return Z;var M;return(M=_.Hj(this))==null?void 0:M.querySelector(c)},
enumerable:!0,configurable:!0})}};
_.YE=function(c){return wXG?WHh(c):function(f,d){Object.defineProperty(f,d,{get:function(){var q;return(q=_.Hj(this))==null?void 0:q.querySelectorAll(c)},
enumerable:!0,configurable:!0})}};
WHh=function(c){return function(f,d){Object.defineProperty(f,d,{get:function(){var q,Z=(q=_.r1(this.hostElement))==null?void 0:q.querySelectorAll(c);if(Z==null?0:Z.length)return Z;var M;return(M=_.Hj(this))==null?void 0:M.querySelectorAll(c)},
enumerable:!0,configurable:!0})}};
Dgk=function(c){return function(f){if(![_.fe,_.z].includes(Object.getPrototypeOf(f.prototype).constructor))throw Error("fg");ioG(Object.assign({},typeof c!=="string"?c:{is:c,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(f)}};
_.tY=function(){var c=c===void 0?{}:c;return function(f){if(![d2,_.Fj].includes(Object.getPrototypeOf(f.prototype).constructor))throw Error("gg");T4l(Object.assign({},c,{disableInheritanceCheck:!0}))(f)}};
NAl=function(c,f){e0k[c]!=null||(e0k[c]=new Set);e0k[c].add(f)};
_.ba=function(){var c=_.m5.apply(null,_.LT(_.hv.apply(0,arguments)));return function(f,d){NAl(f.is,d);c(f,d)}};
n$=function(c,f,d){if(K$(c)&&!ITr.has(f)){f=f.replace(/^JSC\$[\d]+_/,"");f=f.replace(/\.\d+(\.|$)/g,function(M,g){return".#"+g});
Ek[c]!=null||(Ek[c]={});var q,Z;(q=Ek[c])[Z=f]!=null||(q[Z]=new Set);Ek[c][f].has(d)||(Ek[c][f].add(d),_.JN("polymerPropertyAccessEvent",{componentName:c,propertyName:f,accessType:d}))}};
Pge=function(){return _.F("polymer_property_access_logging_debug")||_.F("polymer_enable_property_access_logging")};
K$=function(c){if(_.F("polymer_property_access_logging_debug"))return!0;if(!_.F("polymer_enable_property_access_logging"))return!1;R0N||(R0N=Date.now());return(es(c)+R0N)%100<_.rx("polymer_property_access_logging_percent")};
Ugl=function(c,f){return K$(f)&&c.hostElement.loggingStatus?new Proxy(c,{get:function(d,q,Z){if(d.hostElement.loggingStatus.bypassProxyController)return d[q];d.hostElement.loggingStatus.isExternalGet=!0;var M=d[q];d.hostElement.loggingStatus.isExternalGet=!1;if(M instanceof Function)return function(){var g=_.hv.apply(0,arguments);try{return d.hostElement.loggingStatus.currentExternalCall=q,n$(f,q,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),M.apply(this===Z?d:this,g)}finally{d.hostElement.loggingStatus.currentExternalCall=
void 0}};
n$(f,q,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return M},
set:function(d,q,Z){if(d.hostElement.loggingStatus.bypassProxyController)return d[q]=Z,!0;d.hostElement.loggingStatus.isRendererStamper?n$(f,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):d.hostElement.loggingStatus.isDeclarativeExternal||n$(f,q,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{d.hostElement.loggingStatus.currentExternalSet=q,d[q]=Z}finally{d.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):c};
pXz=function(c,f){c&&c.loggingStatus&&!c.loggingStatus.isDeclarativeExternal&&!c.loggingStatus.isExternalGet&&c.loggingStatus.currentExternalSet!==f&&n$(c.tagName.toLowerCase(),f,"PROPERTY_ACCESS_GET_INTERNAL")};
$E=function(c,f,d){c&&(d||c.loggingStatus&&!c.loggingStatus.isInitializing&&!c.loggingStatus.isDefiningPropertyAccessor&&c.loggingStatus.currentExternalSet!==f)&&n$(c.tagName.toLowerCase(),f,"PROPERTY_ACCESS_SET_INTERNAL")};
xgN=function(){return{_definePropertyAccessor:function(c,f){var d=this,q=d.hostElement.loggingStatus;q&&(q.isDefiningPropertyAccessor=!0);var Z=d[c];Z!==void 0&&(d.__data?d._setPendingProperty(c,Z):(d.__dataProto!=null||(d.__dataProto={}),d.__dataProto[c]=Z));q&&(q.isDefiningPropertyAccessor=!1);Object.defineProperty(this,c,{get:function(){pXz(d.hostElement,c);return this.__data[c]},
set:function(M){f||this._setPendingProperty(c,M,!0)&&this._invalidateProperties()}})},
created:function(){var c=this._setPendingProperty.bind(this);this._setPendingProperty=function(f,d,q){$E(this.hostElement,f);return c.apply(this,[f,d,q])}}}};
o4h=function(c){Pge()&&_.Q(Qr.prototype)(c.prototype,"__templateBindingLoggingBehavior")};
GHr=function(c,f){if(f.resolvedFactories.length!==c.resolvedFactories.length)return!0;f=_.C(f.resolvedFactories.entries());for(var d=f.next();!d.done;d=f.next()){var q=_.C(d.value);d=q.next().value;q=q.next().value;if(q.providerClass){if(q.providerClass!==c.resolvedFactories[d].providerClass)return!0}else if(q.providerValue){if(q.providerValue!==c.resolvedFactories[d].providerValue)return!0}else if(q.factory!==c.resolvedFactories[d].factory)return!0}return!1};
cbN=function(c,f){c=_.C(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.constructor===Array)cbN(d,f);else{var q=f;q.has(d)||(d.inject&&q.add(d),d.behaviors&&cbN(d.behaviors,q))}};
za=function(c,f){var d=c[f];c[f]=function(){var q=_.hv.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(d)return d.apply(this,q)}};
qQn=function(){_.JY.Class=function(d,q){d=fvP(d,q);za(d.prototype,"created");return d};
za(aa.prototype,"_initializeProperties");za(_.Vr.prototype,"_initializeProperties");if(dvN)za(jAh,"created");else{var c=function(){za(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))c();else{var f=customElements.define;customElements.define=function(d,q,Z){f.call(customElements,d,q,Z);d==="tp-yt-iron-list"&&(c(),customElements.define=f)}}}};
Mye=function(c,f){c.prototype.behaviors=c.prototype.behaviors||[];c.prototype.behaviors.unshift(ZlP.InjectBehavior);c.prototype.provide=f};
_.vj=function(c){return function(f){if(!c.disableElementRegistration){c.noInjection||Mye(f,c.providers);var d=f.prototype;d.__templateHelpers||bok(Xj.prototype)(d,"__templateHelpers");d=c.is;rbN||(rbN=Date.now());(es(d)+rbN)%100<_.rx("polymer_log_prop_change_observer_percent")&&bok(ua.prototype)(f.prototype,"__propertyObserverObserver");f.prototype.behaviors=f.prototype.behaviors||[];f.prototype.behaviors.unshift(_.CMe.YtHostElementBehavior);o4h(f);Dgk({is:c.is,notifyObserversOnUndefined:c.notifyObserversOnUndefined!==
!1,fastInit:c.fastInit,template:c.template,disableEnforceFastDefaultValuesCheck:!0})(f)}}};
_.v=function(c){return _.vj({is:c.is,template:c.template,disableElementRegistration:c.disableElementRegistration,cssBuildOptOut:c.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
OlG=function(c,f){if(guk){c=new c;for(var d=_.C(Object.getOwnPropertyNames(c)),q=d.next();!q.done;q=d.next())q=q.value,f[q]=c[q];for(d=f;d&&d!==Object.prototype;d=Object.getPrototypeOf(d)){q=_.C(Object.getOwnPropertyNames(d));for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,c.hasOwnProperty(Z)||Object.defineProperty(c,Z,kRh(f,Z))}}else c.apply(f)};
kRh=function(c,f){return{get:function(){var d=c[f];return d instanceof Function?d.bind(c):d},
set:function(d){c[f]=d}}};
sA4=function(c,f){for(var d=c._noAccessors,q=_.C(Object.getOwnPropertyNames(c)),Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,!lvC.has(Z))if(d)f[Z]=c[Z];else{var M=Object.getOwnPropertyDescriptor(c,Z);M&&(M.configurable=!0,Object.defineProperty(f,Z,M))}};
BGG=function(c,f,d){return function(q){if(d){var Z=d();q.model=Z}if(c[f])c[f](q,q.detail)}};
hY=function(c){var f=[];if(typeof c==="string")c.length>0&&f.push.apply(f,_.LT(c.split(".")));else{c=_.C(c);for(var d=c.next();!d.done;d=c.next())d=d.value,typeof d==="string"?f.push.apply(f,_.LT(d.split("."))):f.push(d)}return f};
ilP=function(c,f){if(f[f.length-1]!=="*"&&f[f.length-1]!=="splices"){for(var d=0;d<f.length;d++){if(!c)return;c=c[f[d]]}return c}};
TGk=function(c,f){if(c.length>f.length)return!1;for(var d=0;d<c.length;d++)if(c[d]!==f[d])return!1;return!0};
Hlk=function(c,f,d){if(f.type==="compute"){var q=f.getter.bind(d);var Z=f.args}else q=function(){return d[f.method.methodName].apply(d,_.LT(_.hv.apply(0,arguments)))},Z=f.method.args;
mvn(c,f.propertyKey,q,Z,f.value)};
YQn=function(c,f){if(f.readOnly){var d=Object.getOwnPropertyDescriptor(c.model,f.propertyKey);Object.defineProperty(c.model,f.propertyKey,{get:d.get,set:function(){}});
c.model[Abh(f.propertyKey)]=d.set}};
FgY=function(c,f,d){if(d){var q=f.propertyKey,Z=f.selector;f=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.LT(f.selectorArgs.map(function(M){return{type:"path",path:M}})));
mvn(c,q,function(M){var g=_.hv.apply(1,arguments);return Z.apply(null,[d.getState()].concat(_.LT(g)))},f)}};
blN=function(c,f,d){var q=_.Ai(f.propertyKey)+"-changed";tyl(c,function(Z){var M={value:Z.value,queueProperty:!0};Z.path.split(".").length>1&&(M.path=Z.path);d.dispatchEvent(new CustomEvent(q,{detail:M}))},[{type:"wildcard",
path:f.propertyKey}])};
Kge=function(c,f,d){tyl(c,function(){d[f.method.methodName].apply(d,_.LT(_.hv.apply(0,arguments)))},f.method.args)};
Abh=function(c){return"_set"+(c.charAt(0).toUpperCase()+c.slice(1))};
Eur=function(){var c,f=Sh(function(d){c=d},!1);
return[c,f]};
LgC=function(c){c=c.trim().replace(nu4,",").replace($v4,"$1");var f=c[0];f==="-"&&(f=c[1]);if(f>="0"&&f<="9")return{type:"literal",value:Number(c)};if(f==="'"||f==='"')return{type:"literal",value:c.slice(1,-1)};if(f=c.match(QAM)){f=f[1];var d=SQG[f];if(d)return{type:d,path:c.slice(0,-(f.length+1))}}return{type:"path",path:c}};
VyM=function(c){var f=c.match(zj4);if(f)return c={methodName:f[1],args:Jbe},f[2].trim()&&(f=f[2].replace(avN,"&comma;").split(","),c.args=f.map(LgC)),c};
XBC=function(c,f,d,q){q=q===void 0?!1:q;f=_.Ai(f);var Z=Fs;Z&&(d=Z(d,f,"attribute",c));w1(c,d,f,q)};
w1=function(c,f,d,q){f=uoN(f,q===void 0?!1:q);f===void 0?c.removeAttribute(d):c.setAttribute(d,f)};
uoN=function(c,f){switch(typeof c){case "object":case "function":if(c instanceof Date)return c.toString();if(c){if((f===void 0?0:f)&&!_.F("polymer_reflect_objects_as_boolean_killswitch"))return c?"":void 0;f=window.trustedTypes?window.trustedTypes.isHTML(c)||window.trustedTypes.isScript(c)||window.trustedTypes.isScriptURL(c):void 0;if(f)return c;try{return JSON.stringify(c)}catch(d){_.u6(Error("Cg`"+c))}}break;case "boolean":return c?"":void 0;default:return c!==null&&c!==void 0?c.toString():void 0}};
vuG=function(c){if(c===void 0)throw Error("Dg");return c};
DvP=function(c,f,d,q){var Z=hjr(q);if(Z.length){q=d;var M="property";wBe.test(d)?M="attribute":d[d.length-1]==="$"&&(d=d.slice(0,-1),M="attribute");var g=ybC(Z);g&&M==="attribute"&&(d==="class"&&c.hasAttribute("class")&&(g+=" "+c.getAttribute(d)),w1(c,g,d));M==="attribute"&&q==="disable-upgrade$"&&c.setAttribute("disable-upgrade","");c.localName==="input"&&q==="value"&&c.setAttribute("value","");c.removeAttribute(q);M==="property"&&(d=_.Yn(d));f=vuG(f);Wgl(f,M,d,Z);return!0}return d.slice(0,3)===
"on-"?(c.removeAttribute(d),(M=f).events!=null||(M.events=[]),f.events.push({name:d.slice(3),value:q}),!0):d==="id"?(f.id=q,!0):!1};
hjr=function(c){for(var f=[],d=0,q;(q=ejC.exec(c))!==null;){q.index>d&&f.push({type:"literal",value:c.slice(d,q.index)});var Z=q[1][0];d=!!q[2];q=q[3].trim();if(Z==="{")throw Error("Eg");(Z=VyM(q))?f.push({type:"method",negate:d,signature:Z}):f.push({type:"path",negate:d,path:q});d=ejC.lastIndex}d&&d<c.length&&(c=c.substring(d))&&f.push({type:"literal",value:c});return f};
ybC=function(c){for(var f="",d=0;d<c.length;d++){var q=c[d];q.type==="literal"&&(f+=q.value)}return f};
Wgl=function(c,f,d,q){c.bindings!=null||(c.bindings=[]);c.bindings.push({kind:f,target:d,parts:q})};
Uvl=function(c,f,d){var q=!1;if(c.localName==="template"){q=d;var Z=f.stripWhitespace;Z=NGC(c,Z===void 0?!1:Z);var M=c.content.ownerDocument.createDocumentFragment();Z.content=M;M.appendChild(c.content);q&&(q.templateInfo=Z);q=!0}else c.localName==="slot"&&(f.hasInsertionPoint=!0);if(c.firstChild&&(Z=d,c.localName!=="script"&&c.localName!=="style")){M=0;for(var g=c.firstChild;g;){var O=g;if(O.localName==="template"){var l=O.getAttribute("is");if((g=l==="dom-if")||l==="dom-repeat"){O.removeAttribute("is");
l=O.ownerDocument.createElement("ps-"+l);O.parentNode.replaceChild(l,O);l.appendChild(O);var m=Array.from(O.attributes);m=_.C(m);for(var H=m.next();!H.done;H=m.next())H=H.value,g?Ivk.has(H.name)&&w1(l,H.value,H.name):PMn.has(H.name)?w1(l,H.value,H.name):RjM.has(H.name),O.removeAttribute(H.name);g=l}else g=O}if(g.nodeType===Node.TEXT_NODE){O=void 0;l=c;for(m=g;((O=m.nextSibling)==null?void 0:O.nodeType)===Node.TEXT_NODE;)H=void 0,(H=m).textContent!=null||(H.textContent=""),m.nextSibling.textContent&&
(m.textContent+=m.nextSibling.textContent),l.removeChild(m.nextSibling);if(f.stripWhitespace&&g.textContent&&!g.textContent.trim()){c.removeChild(g);g=g.nextSibling;continue}}Uvl(g,f,{parentIndex:M,parentInfo:Z});g.parentNode&&M++;g=g.nextSibling}}var A;if((A=c.hasAttributes)==null?0:A.call(c)){A=d=vuG(d);Z=!1;M=Array.from(c.attributes);M=_.C(M);for(O=M.next();!O.done;O=M.next())O=O.value,Z=DvP(c,A,O.name,O.value)||Z;q=Z||q}c.nodeType===Node.TEXT_NODE&&(A=hjr(c.textContent),A.length&&(c.textContent=
ybC(A)||" ",d=vuG(d),Wgl(d,"text","textContent",A),q=!0));d&&q&&(d.infoIndex=f.nodeInfoList.push(d)-1)};
NGC=function(c,f){f={nodeInfoList:[],stripWhitespace:(f===void 0?!1:f)||c.hasAttribute("strip-whitespace")};Uvl(c.content,f);return f};
pBe=function(c){Object.assign(c,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
oul=function(c,f,d){f.signalCache!=null||(f.signalCache={});var q=f.signalCache[d];if(!q){var Z=d.split(".");q=!xvM(c,Z[0]);if(Z.length>1&&q){var M=c.getPathMutationSignal(Z);q=function(){var g=Jo(c.owner,function(){return c.getWithPath([Z[0]])}),O,l=(O=M())==null?void 0:O.value;
return{rootWasDefined:g!==void 0,value:l}}}else q=function(){var g=c.getWithPath(Z);
return{rootWasDefined:g!==void 0,value:g}};
f.signalCache[d]=q}return q()};
cUY=function(c,f,d,q,Z){f=f.parts.map(function(g,O){if(g.type==="literal"){d.partWasDefined!=null||(d.partWasDefined=[]);var l;(l=d.partWasDefined)[O]||(l[O]=g.value!==void 0);return g.value}var m;if(g.type==="method"){var H,A=(H=(m=d.partWasDefined)==null?void 0:m[O])!=null?H:!1;A||(A=g.signature.args.every(function(E){return E.type==="literal"}));
var Y=!1,t=!0;m=g.signature.args.map(function(E){if(E.type==="literal")return E.value;if(E.type!=="path")throw Error("Fg`"+E.type);var J=oul(c,d,E.path);E=J.value;J=J.rootWasDefined;Y||(Y=J);t&&(t=J);return E});
A||(A=Z===1?t:Y);d.partWasDefined!=null||(d.partWasDefined={});d.partWasDefined[O]=A;if(!A)return;m=(O=oul(c,d,g.signature.methodName).value)&&typeof O==="function"?O.apply(q,m):void 0}else H=oul(c,d,g.path),m=H.value,d.partWasDefined!=null||(d.partWasDefined={}),(A=d.partWasDefined)[O]||(A[O]=m!==void 0||H.rootWasDefined);g.negate&&(m=!m);return m});
if(f.length===1){var M;return((M=d.partWasDefined)==null?0:M[0])?f[0]:GRk}return f.join("")};
fln=function(c){return typeof c==="object"&&!!c&&"notifyPath"in c&&"canNotifyPath"in c};
dkr=function(c){return typeof c==="object"&&!!c&&"notifyPath"in c};
j2N=function(c){return"polymerController"in c};
qIC=function(c,f){f=""+hY(f)[0];if(fln(c))return c.canNotifyPath(f);if(j2N(c)&&fln(c.polymerController))return c.polymerController.canNotifyPath(f);if(dkr(c)){var d;return!((d=c.properties)==null||!d[f])}if(j2N(c)&&dkr(c.polymerController)){var q;return!((q=c.polymerController.properties)==null||!q[f])}return!1};
Z2C=function(c,f,d){fln(c)||dkr(c)?c.notifyPath(f,d):j2N(c)&&(fln(c.polymerController)||dkr(c.polymerController))&&c.polymerController.notifyPath(f,d)};
rUe=function(c,f,d){if(d!==GRk){c.kind==="attribute"||c.target!=="textContent"&&(c.target!=="value"||f.localName!=="input"&&f.localName!=="textarea")||(d=d===void 0?"":d);var q,Z=(q=MrN.Polymer)==null?void 0:q.sanitizeDOMValue;Z&&(d=Z(d,c.target,c.kind,f));if(c.kind==="attribute"){c=c.target;if(c==="class"||c==="name"||c==="slot")f=(0,_.Ok)(f);w1(f,d,c)}else if(c=c.target,d!==f[c]||typeof d==="object")f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!0,n$(f.localName,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
f[c]=d,f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!1)}};
C1N=function(c,f,d,q){var Z=f.parts[0];if(f.parts.length!==1||Z.type!=="path"||!qIC(d,f.target))return!1;var M=_.C(Z.path.split(".")),g=M.next().value,O=RO(M);if(xvM(c,g))return!1;q.signalCache!=null||(q.signalCache={});M=q.signalCache[Z.path];var l;M=(l=M)==null?void 0:l().value;if((M==null?void 0:M.path)!==void 0){q=hY(M.path);var m=hY(Z.path);q=[f.target].concat(_.LT(q.slice(m.length-1)));Z2C(d,q,Z.negate?!M.value:M.value);return!0}var H=yr(c,g);var A=H.getChangeRecordSignal(O),Y=!1;M=function(){if(!Y){var E=
Jo(c.owner,function(){return H.getWithPath([])});
Y||(Y=E!==void 0)}return{value:A(),rootWasDefined:Y}};
q.signalCache[Z.path]=M;q.partWasDefined!=null||(q.partWasDefined={});M=M();(m=q.partWasDefined)[0]||(m[0]=M.rootWasDefined);var t=Jo(c.owner,function(){return H.getWithPath(O)});
q.partWasDefined[0]&&Jo(c.owner,function(){return void rUe(f,d,Z.negate?!t:t)});
return!0};
gIl=function(c,f,d,q,Z,M){if(!C1N(c,f,d,q)){var g=cUY(c,f,q,Z,M);Jo(c.owner,function(){return void rUe(f,d,g)})}};
kFC=function(c,f,d,q,Z,M){d=_.C(d);for(var g=d.next(),O={};!g.done;O={infoIndex:void 0},g=d.next()){g=g.value;var l=g.bindings;O.infoIndex=g.infoIndex;g=g.parentInfo;if(l){l=_.C(l);for(var m=l.next(),H={};!m.done;H={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},m=l.next()){H.b$jscomp$253=m.value;if(O.infoIndex===void 0)throw Error("Gg");H.bindingCtx$jscomp$4={};c.effect(function(A,Y){return function(){Z&&!Z()||gIl(c,A.b$jscomp$253,f[Y.infoIndex],A.bindingCtx$jscomp$4,q,M)}}(H,O))}}g&&kFC(c,f,[g],
q,Z,M)}};
O2r=function(c,f){c=(f.parentInfo?O2r(c,f.parentInfo):c).firstChild;for(var d=0;c;c=c.nextSibling)if(f.parentIndex===d++)return c;throw Error("Hg");};
s2C=function(c,f,d,q){c=document.importNode(c.content,!0);c.__noInsertionPoint=!(q==null?0:q.hasInsertionPoint);for(var Z=Array(f.length),M={},g=0;g<f.length;g++){var O=f[g],l=O2r(c,O);Z[g]=l;O.id&&(M[O.id]=l);if(O.templateInfo){var m=l.parentElement;m&&(m.templateInfo=O.templateInfo,m.parentSignalProxy=d,m.eventListenerHost=q.eventListenerHost,m.stampingEnabled=q.enabledSignal)}m=void 0;if((m=O.events)==null?0:m.length)for(m=0;m<O.events.length;m++){var H=O.events[m];llz(q.eventListenerHost,l,H.name,
H.value,q.getModel)}}kFC(d,Z,f,q.thisCtx,q.enabledSignal,q.methodInvocationRequirement);return{root:c,nodes:Z,nodesById:M}};
i2k=function(c,f){c=c();var d;(d=Bgz.ShadyCSS)==null||d.prepareTemplate(c,f);f=NGC(c);return{template:c,nodeInfoList:f.nodeInfoList,hasInsertionPoint:f.hasInsertionPoint}};
H2z=function(){TgP=!1;for(var c=Wj.length,f=0;f<c;f++){var d=Wj[f];if(d)try{d()}catch(q){Promise.resolve().then(function(){throw q;})}}Wj.splice(0,c);
mkk+=c};
trk=function(c){TgP||(TgP=!0,AUl.textContent=(YI4++).toString());Wj.push(c);return FLM++};
_.Nh=function(c,f,d){D_++;c=f?new b2P(D_,c,f,d):new KLN(D_,c);eB.set(D_,c);return D_};
EIC=function(c){(c=eB.get(c))&&c.cancel()};
$kY=function(c,f){c=nIM.get(c);return c?(f=c.get(f))?f:null:null};
_.Ia=function(c,f,d,q){var Z=$kY(c,f);if(!Z){Z=new Q2P;var M=nIM.get(c);M||(M=new Map,nIM.set(c,M));M.set(f,Z)}c=d.bind(c);Z.run(c,q,void 0)};
_.SIN=function(c,f){var d;(d=$kY(c,f))==null||d.cancel()};
LLl=function(c){var f;(f=$kY(c,"doRender"))==null||f.flush()};
Pj=function(c){var f;return(f=c.hostElement)!=null?f:c};
zVN=function(c){var f=c.indexOf(".");return f===-1?c:c.slice(0,f)};
JUG=function(c,f,d,q,Z,M){M=(Z=(q=M?zVN(f):f)?f:null)?c.get(Z):c.__data[f];Z&&M===void 0&&(M=d[f]);_.CZ(c.hostElement,qPN(q)+"-changed",{value:M,queueProperty:!0,path:Z!=null?Z:void 0},{bubbles:!1,composed:!1})};
ale=function(c,f){c.__isReflecting=!0;XBC(c.hostElement,f,c.__data[f]);c.__isReflecting=!1};
Vrh=function(c){if(c._onIronRequestResizeNotifications){var f=c._onIronRequestResizeNotifications.bind(c);c._onIronRequestResizeNotifications=function(d){_.oV(d)!==c.hostElement&&f(d)}}c._ariaActiveAttributeChanged&&(c._ariaActiveAttributeChanged=c._ariaActiveAttributeChanged.bind(c.hostElement));
c._activeChanged&&(c._activeChanged=function(d){c.toggles?w1(c.hostElement,d?"true":"false",c.ariaActiveAttribute):c.hostElement.removeAttribute(c.ariaActiveAttribute);c._changedButtonState()});
c._asyncClick&&(c._asyncClick=function(){_.Nh(function(){c.hostElement.click()},1)});
!c.keyEventTarget||c.keyEventTarget instanceof EventTarget||(c.keyEventTarget=Pj(c.keyEventTarget));c._disabledChanged&&(c._disabledChanged=c._disabledChanged.bind(c.hostElement));c._observeItems&&(c._observeItems=function(d){var q=Pj(d);return _.$n(q).observeNodes(function(Z){c._updateItems();c._updateSelected();_.CZ(q,"iron-items-changed",Z,{bubbles:!1,cancelable:!1})})});
c._updateItems&&c._updateItems===_.Ra._updateItems&&(c._updateItems=function(){var d=_.$n(c.hostElement).queryDistributedElements(c.selectable||"*");d=Array.prototype.filter.call(d,c._bindFilterItem);c._setItems(d)});
c._computeKeyboardClass&&(c._computeKeyboardClass=function(d){_.g1(c.hostElement,"keyboard-focus",d)});
c.ensureRipple&&(c.ensureRipple=function(d){if(c.hasRipple&&!c.hasRipple()){if(!c._createRipple)return;c._ripple=c._createRipple();c._ripple.noink=c.noink;var q=c._rippleContainer||c.hostElement;q&&_.r1(q).appendChild(c._ripple)}var Z;if(d&&((Z=c._ripple)==null?0:Z.uiDownAction)){q=_.r1(c._rippleContainer||c.hostElement);var M;Z=(M=d.composedPath())==null?void 0:M[0];q.contains(Z)&&c._ripple.uiDownAction(d)}});
c._updateMultiselectable&&(c._updateMultiselectable=function(d){d?c.hostElement.setAttribute("aria-multiselectable","true"):c.hostElement.removeAttribute("aria-multiselectable")})};
Xen=function(c,f,d){d=_.C(d);for(var q=d.next();!q.done;q=d.next())OlG(q.value.constructor,c);OlG(f.constructor,c)};
vIY=function(c,f){c=_.C(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="signal"){var q=d.propertyKey;if(f.hasOwnProperty(q)&&f[q]!=null&&d.attributeType===Object){a:{q=f[q].constructor;for(var Z=_.C(uck),M=Z.next();!M.done;M=Z.next())if(M=M.value,q===M){q=M;break a}q=Object}d.attributeType=q}}};
hVk=function(){};
weM=function(c){var f;return(f=c.hostElement)!=null?f:c};
yUY=function(){throw Error("Lg");};
WLz=function(c,f){c.constructor.prototype.useSignals=!0;var d=new c.constructor;Xen(d,c,f.behaviors);vIY(f.reactiveSchemas,d);d={};for(var q=_.C(f.reactiveSchemas),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.type==="signal"&&(d[Z.propertyKey]=Z.attributeType);var M={copyPropertiesToProto:yUY,didRegister:!1,typesForSignals:d},g=["disable-upgrade"].concat(_.LT(f.observedAttributes)),O=function(l){Uk.call(this,c,f,M,l)};
_.K(O,Uk);_.ci.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return g}}});
M.copyPropertiesToProto=function(){for(var l=0;l<f.behaviors.length;l++)sA4(f.behaviors[l],O.prototype);sA4(c,O.prototype)};
f.legacyOptimizations||M.copyPropertiesToProto();O.prototype.is=c.is;return O};
DkN=function(c,f){if(Object.getPrototypeOf(f.prototype).constructor!==_.z)throw Error("Mg");f.prototype.is=c.is;return WLz(f.prototype,c)};
eVM=function(c){return c.type==="compute"||c.type==="computeWithMethod"};
NgC=function(c){for(var f=c.reactiveSchemas.filter(eVM),d=new Map,q=new Map,Z=new Map,M=_.C(f),g=M.next();!g.done;g=M.next())g=g.value,d.set(g.propertyKey,g),q.set(g.propertyKey,[]),Z.set(g.propertyKey,0);M=0;f=_.C(f);for(g=f.next();!g.done;g=f.next()){g=g.value;for(var O=_.C(g.type==="computeWithMethod"?g.method.args:g.args),l=O.next();!l.done;l=O.next())l=l.value,l.type!=="literal"&&(l=l.path.split(".")[0],q.has(l)&&(q.get(l).push(g.propertyKey),Z.set(g.propertyKey,Z.get(g.propertyKey)+1),M++))}g=
[].concat(_.LT(q.keys())).filter(function(m){return Z.get(m)===0});
for(f=[];g.length;)for(O=g.shift(),f.push(d.get(O)),O=_.C(q.get(O)),l=O.next();!l.done;l=O.next())l=l.value,Z.set(l,Z.get(l)-1),M--,Z.get(l)===0&&g.push(l);d=c.reactiveSchemas.filter(function(m){return!eVM(m)});
c.reactiveSchemas=[].concat(_.LT(d),_.LT(f))};
Iln=function(c,f){if(f.properties)for(var d=_.C(Object.entries(f.properties)),q=d.next();!q.done;q=d.next()){var Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;c.properties[q]=typeof Z==="function"?{type:Z}:Z}f.observers&&c.observers.push.apply(c.observers,_.LT(f.observers));f.disabledPolySiReactions&&c.disabledPolySiReactions.push.apply(c.disabledPolySiReactions,_.LT(f.disabledPolySiReactions))};
P1e=function(c,f){for(var d=f.length-1;d>=0;d--){var q=f[d];Array.isArray(q)?P1e(c,q):c.indexOf(q)<0&&c.unshift(q)}};
RVh=function(c,f){c.reactiveSchemas=c.reactiveSchemas.filter(function(d){return d.type==="observe"&&f.includes(d.method.methodName)||eVM(d)&&f.includes(d.propertyKey)?!1:!0})};
peM=function(c,f){var d=f.prototype,q,Z,M={is:c.is,reactiveSchemas:[],observedAttributes:[],behaviors:[ZlP.InjectBehavior,Xj.prototype],disableElementRegistration:c.disableElementRegistration,provide:(q=c.providers)!=null?q:[],reactivityMode:c.reactivityMode,signalProperties:(Z=d.signalProperties)!=null?Z:[]};"template"in f?M.templateGetter=function(){return f.template}:c.getTemplate&&(M.templateGetter=c.getTemplate);
d.behaviors&&P1e(M.behaviors,d.behaviors);Ukz(M,f);return M};
Ukz=function(c,f){for(var d=f.prototype,q={properties:{},observers:[],disabledPolySiReactions:[]},Z=_.C(c.behaviors),M=Z.next();!M.done;M=Z.next())Iln(q,M.value);Iln(q,d);if(c.signalProperties)for(d=_.C(c.signalProperties),Z=d.next();!Z.done;Z=d.next())delete q.properties[Z.value];d=_.C(Object.entries(q.properties));for(Z=d.next();!Z.done;Z=d.next()){M=_.C(Z.value);Z=M.next().value;M=M.next().value;var g=void 0;if((g=c.signalProperties)==null||!g.includes(Z)){g=void 0;var O=c,l=M.type;if(!l)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{l=Reflect.getMetadata("design:type",f,Z);for(var m=_.C(xkr),H=m.next();!H.done;H=m.next())if(H=H.value,l===H){l=H;break a}l=Object}else l=String;M.computed||M.selector||(O.reactiveSchemas.push({type:"signal",propertyKey:Z,value:M.value,attributeType:l,readOnly:M.readOnly}),O.observedAttributes.push(_.Ai(Z)));M.reflectToAttribute&&O.reactiveSchemas.push({type:"reflect",propertyKey:Z});if(M.computed){l=VyM(M.computed);if(!l)throw Error("Ng");O.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Z,method:l,value:M.value})}M.observer&&O.reactiveSchemas.push({type:"observe",method:{methodName:M.observer,args:[{type:"path",path:Z}]}});M.notify&&O.reactiveSchemas.push({type:"notify",propertyKey:Z});M.selector&&O.reactiveSchemas.push({type:"redux",propertyKey:Z,selector:M.selector,selectorArgs:(g=M.selectorArgs)!=null?g:[]})}}oIe&&NgC(c);f=_.C(q.observers);for(Z=f.next();!Z.done;Z=f.next())d=c,Z=Z.value,(M=VyM(Z))?d.reactiveSchemas.push({type:"observe",method:M}):console.log('Warning: unable to parse observe declaration: "'+
Z+'"');RVh(c,q.disabledPolySiReactions)};
GFk=function(c,f){for(var d=0;d<f.length;d++){var q=f[d],Z=void 0;(Z=q).showHideApi!=null||(Z.showHideApi={});Z=void 0;!!c!==!((Z=q.showHideApi)==null||!Z.hideTemplateChildren)&&(q.nodeType===Node.TEXT_NODE?c?(q.showHideApi.polymerTextContent=q.textContent,q.textContent=""):(Z=void 0,q.textContent=(Z=q.showHideApi.polymerTextContent)!=null?Z:null):q instanceof Element&&q.localName==="slot"?c?(q.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Ok)((0,_.Ok)(q).parentNode).replaceChild(q.showHideApi.polymerReplaced,
q)):(Z=q.showHideApi.polymerReplaced)&&(0,_.Ok)((0,_.Ok)(Z).parentNode).replaceChild(q,Z):q instanceof HTMLElement&&q.style&&(c?(q.showHideApi.polymerDisplay=q.style.display,q.style.display="none"):q.style.display=q.showHideApi.polymerDisplay));q.showHideApi.hideTemplateChildren=c;q.showHideChildren&&q.showHideChildren(c)}};
f0G=function(){if(!cAM){var c=document.createElement("style");c.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(c);cAM=!0}};
p$=function(){return _.F("disable_hidden_dom_if_using_stamper")};
dGr=function(c,f){var d=_.xE().getState();return f?c.apply(null,[d].concat(_.LT(f))):c(d)};
ZfC=function(){if(jHP)return jHP;var c=_.C(_.OT(0,void 0,"Nl6eIe")),f=c.next().value;c.next();var d=c.next().value;_.xE().subscribe(function(){qeN(d)});
return jHP=f};
qeN=function(c){_.F("delay_redux_signal_update_killswitch")?c(function(f){return f+1}):MEC||(MEC=!0,Promise.resolve().then(function(){c(function(f){return f+1});
MEC=!1}))};
_.xE=function(){return rAY.getAppStore()};
CyN=function(c,f){return rAY.getSelectFn()(c,f)};
_.oa=function(c){rAY.getDispatchFn()(c)};
gir=function(c,f){var d={},q;for(q in c)d[q]=f(c[q],q);return d};
_.Ga=function(c,f){return function(){var d;return(d=_.LL(c))!=null?d:f}};
_.ch=function(c,f){var d=Object.assign({},c),q;for(q in f)f.hasOwnProperty(q)&&(d[q]=_.Ga(c[q],f[q]));return d};
kSn=function(c,f,d){c instanceof Element&&(d.debugName||(d.debugName="<"+c.tagName.toLowerCase()+(c.tagName.includes("-")?">":"."+c.className+">")),_.F("ytwiz_enable_debug_component_props")&&(c.debugProps||(c.debugProps=gir(f,function(q){return function(){return q()}}))))};
Ofr=function(c){var f;if(!(f=fx.traceAllComponents)){var d;f=(d=Gi)==null?void 0:d.activeSpan;f=(f==null?void 0:f.name)!=="ytComponent"}return f?hiz("ytComponent",{},c):c()};
_.dN=function(c,f){var d=function(q){return Ofr(function(Z){var M=l0k={};var g;if(((g=d)==null?0:g.idomCompat)&&q.renderedFromIdom){var O;g=typeof d.idomCompat==="object"?(O=d)==null?void 0:O.idomCompat.callbacks:{};g=_.C(sHk(q,g,d.debugName));O=g.next().value;g.next();g=g.next().value;var l=BPh(c,O);M.privateValue=l;l0k=void 0;kSn(l,O,d);M={debugName:d.debugName};Z&&M&&Object.assign(Z.attributes,M);Z=Nuk(l);Z=Array.isArray(Z)?Z[0]:Z;Z[s6]||(Z[s6]={});Z[s6].updateSignalsFromIdomProps=g;ifk(O,l);return l}g=
gir(q,TPM);O=BPh(c,g);M.privateValue=O;l0k=void 0;kSn(O,g,d);M={debugName:d.debugName};Z&&M&&Object.assign(Z.attributes,M);ifk(g,O);return O})};
d.debugName=f===void 0?"":f;return d};
BPh=function(c,f){c=c(f);return mf(c)};
mGN=function(c,f){c[f]||(c=new _.KD("IDOM interop setter undefined. Key:",f),_.VO(c))};
TPM=function(c,f){return f==="children"||f==="ref"||typeof c==="function"||c===void 0?c:function(){return _.LL(c)}};
sHk=function(c,f,d){var q={},Z={},M={},g={},O;for(O in c){g={key$jscomp$923:g.key$jscomp$923};g.key$jscomp$923=O;var l=c[g.key$jscomp$923];if(g.key$jscomp$923==="children"||g.key$jscomp$923==="ref")q[g.key$jscomp$923]=l;else if(typeof l==="function")g.key$jscomp$923 in f||l.length>0?(M[g.key$jscomp$923]=l,q[g.key$jscomp$923]=function(H){return function(){return M[H.key$jscomp$923].apply(M,_.LT(_.hv.apply(0,arguments)))}}(g)):q[g.key$jscomp$923]=l;
else if(!(c[g.key$jscomp$923]===void 0&&g.key$jscomp$923 in f)){var m=_.C(_.OT(c[g.key$jscomp$923],{debugName:g.key$jscomp$923+":cwis:"+d},"rvrjQe"));l=m.next().value;m=m.next().value;q[g.key$jscomp$923]=l;Z[g.key$jscomp$923]=m}}return[q,Z,function(H){var A={},Y;for(Y in H)A={key$jscomp$924:A.key$jscomp$924,val$jscomp$121:void 0},A.key$jscomp$924=Y,A.val$jscomp$121=H[A.key$jscomp$924],A.key$jscomp$924!=="children"&&A.key$jscomp$924!=="ref"&&(typeof A.val$jscomp$121==="function"?A.key$jscomp$924 in
f?M[A.key$jscomp$924]=A.val$jscomp$121:A.val$jscomp$121.length>0&&(M[A.key$jscomp$924]=A.val$jscomp$121,_.u6(new _.KD("Callback detected that was not set in the idomCompat callbacks map. Key:",A.key$jscomp$924))):A.key$jscomp$924 in f&&A.val$jscomp$121===void 0||(mGN(Z,A.key$jscomp$924),mK(function(t){return function(){Z[t.key$jscomp$924](t.val$jscomp$121)}}(A))))}]};
YeP=function(c,f,d){var q=Ook(c.prototype,Hfe,c.prototype.behaviors);q.prototype.is=f;q.prototype.localName=f;d&&AAh(q,d);return function(Z){Z&&(q.prototype.hostElement=Z);var M=new q;M.root=M;M.hostElement=Z;return M}};
AAh=function(c,f){var d;Object.defineProperty(c.prototype,"_template",{get:function(){d===void 0&&(d=f());return d},
set:function(q){d=q},
configurable:!0,enumerable:!0})};
EiN=function(c,f,d,q){function Z(){if(!t){for(var E=new Set,J=_.C(H),X=J.next();!X.done;X=J.next()){X=X.value;for(var u=_.C(Object.getOwnPropertyNames(X)),W=u.next();!W.done;W=u.next()){W=W.value;var p=void 0,N=(p=Object.getOwnPropertyDescriptor(X,W))==null?void 0:p.value;N&&N instanceof Function&&!jq(W)&&(!O[W]||_.F("polymer_forward_method_killswitch"))&&E.add(W)}}J=_.C(Object.entries(Object.getOwnPropertyDescriptors(c.prototype)));for(X=J.next();!X.done;X=J.next())u=_.C(X.value),X=u.next().value,
u=u.next().value,u.value instanceof Function&&!jq(X)&&E.add(X);t=E}return t}
FYk(c,f,q==null?void 0:q.providers);lDe(c.prototype,c,!0);var M=YeP(c,f,d),g,O=(g=c.prototype.properties)!=null?g:{},l,m,H=(m=(l=c.prototype.behaviors)==null?void 0:l.flat(Infinity))!=null?m:[];d=_.C(H);for(g=d.next();!g.done;g=d.next())O=Object.assign({},g.value.properties,O);var A=[].concat(_.LT(tEe),_.LT(Object.keys(O).map(function(E){return _.Ai(E)}))),Y=!1,t;
return{ctor:function(E,J){var X=M(E),u,W;E=[].concat(_.LT((u=q==null?void 0:q.allowedProps)!=null?u:[]),_.LT((W=q==null?void 0:q.allowedPropsFromBehaviors)!=null?W:[]));X.allowedProps=E.length>0?E:void 0;u={};W=_.C(A);for(E=W.next();!E.done;E=W.next())E=E.value,u[E]=_.Yn(E);X.__dataAttributes=u;var p=X.ready.bind(X);X.ready=function(){J.beforeReady();p();if(K$(f)&&!Y){var N=X.__templateInfo;if(N==null?0:N.hostProps){N=_.C(Object.keys(N.hostProps));for(var I=N.next();!I.done;I=N.next())n$(f,I.value,
"PROPERTY_ACCESS_GET_INTERNAL")}Y=!0}};
X._overrideLegacyUndefined=!0;return X},
props:O,observedAttributes:A,getInitialMethods:Z,getPropsToForwardBeforeRegister:function(){for(var E=[],J=new Set,X=_.C(Object.keys(O)),u=X.next();!u.done;u=X.next())u=u.value,E.push([u,O[u].readOnly]),J.add(u);X=Z();u=_.C(Object.keys(Object.getOwnPropertyDescriptors(c.prototype)));for(var W=u.next();!W.done;W=u.next())W=W.value,!bfe(W)||X.has(W)||J.has(W)||(E.push([W,!1]),J.add(W));J=_.C(KYe);for(X=J.next();!X.done;X=J.next())E.push([X.value,!0]);return E},
getPropsToForwardBeforeReady:function(E){for(var J=[],X=_.C(Object.entries(E)),u=X.next();!u.done;u=X.next()){var W=_.C(u.value);u=W.next().value;W=W.next().value;if(bfe(u)&&!(W instanceof Function)&&(J.push([u,!1]),K$(f))){var p=W=void 0;(p=(W=E)._createPropertyAccessor)==null||p.call(W,u)}}return J},
shouldForwardProp:bfe,shouldLog:K$}};
FYk=function(c,f,d){Mye(c,d);c.prototype.behaviors.unshift(nir);if(Pge()){if(K$(f)){var q;(q=c.prototype).behaviors!=null||(q.behaviors=[]);c.prototype.behaviors.unshift(xgN())}o4h(c)}_.Q(Xj.prototype)(c.prototype,"__templateHelpers")};
jq=function(c){return $G4.has(c)||c.startsWith("__compute__")};
bfe=function(c){return!jq(c)&&!c.startsWith("_")&&!c.endsWith("_")};
JAC=function(c,f){function d(){var Y=l();Y=_.C(Y);for(var t=Y.next();!t.done;t=Y.next()){var E=_.C(t.value);t=E.next().value;E=E.next().value;QHk(A.prototype,t,E)}q=!0}
var q=!1,Z=c.ctor,M=c.getInitialMethods,g=c.observedAttributes,O=c.getPropsToForwardBeforeReady,l=c.getPropsToForwardBeforeRegister,m=c.shouldForwardProp,H=c.shouldLog,A=function(){var Y=HTMLElement.call(this)||this;Y.didForwardDynamicProps=!1;Y.loggingStatus={};q||d();Y.inst=Z(Y,{beforeReady:function(){Y.didForwardDynamicProps||(Y.forwardDynamicProps(),Y.didForwardDynamicProps=!0)}});
Y.controllerProxy=Ugl(Y.inst,f);Y.forwardMethods();return Y};
_.K(A,HTMLElement);A.prototype.forwardMethods=function(){for(var Y=this,t=_.C(this.inst.getExtraMethodsToForward()),E=t.next(),J={};!E.done;J={method$jscomp$63:void 0},E=t.next()){var X=_.C(E.value);E=X.next().value;X=X.next().value;J.method$jscomp$63=X;this[E]=function(u){return function(){return u.method$jscomp$63.call.apply(u.method$jscomp$63,[Y.inst].concat(_.LT(_.hv.apply(0,arguments))))}}(J)}t=_.C(M());
for(J=t.next();!J.done;J=t.next())J=J.value,m(J)&&Se4(this,J),H(f)&&!jq(J)&&LYl(this.inst,J)};
A.prototype.forwardDynamicProps=function(){var Y=O(this.inst);Y=_.C(Y);for(var t=Y.next();!t.done;t=Y.next()){var E=_.C(t.value);t=E.next().value;E=E.next().value;QHk(this,t,E);H(f)&&!jq(t)&&zKY(this.inst,t)}};
A.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
A.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
A.prototype.attributeChangedCallback=function(Y,t,E){this.inst.attributeChangedCallbackWrapper(Y,t,E)};
_.ci.Object.defineProperties(A.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return f}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.ci.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return g}}});
customElements.define(f,A)};
QHk=function(c,f,d){c.hasOwnProperty(f)||Object.defineProperty(c,f,{get:function(){var q,Z=((q=c.is)!=null?q:c.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||n$(Z,f,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,q=this.polymerController[f],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,q},
set:function(q){if(!d){var Z,M=((Z=c.is)!=null?Z:c.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||n$(M,f,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=f,this.loggingStatus.bypassProxyController=!0,this.polymerController[f]!==q&&(Z={},this.polymerController.setProperties((Z[f]=q,Z)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Se4=function(c,f,d){var q=c.polymerController;c[f]=function(){var Z=_.hv.apply(0,arguments);c.loggingStatus.currentExternalCall=f;c.loggingStatus.bypassProxyController=!0;var M,g=((M=c.is)!=null?M:c.tagName).toLowerCase();n$(g,f,"PROPERTY_ACCESS_CALL_EXTERNAL");var O;M=(O=d!=null?d:q[f])==null?void 0:O.call.apply(O,[q].concat(_.LT(Z)));c.loggingStatus.currentExternalCall=void 0;c.loggingStatus.bypassProxyController=!1;return M}};
LYl=function(c,f){var d=c.hostElement,q=c[f];c[f]=function(){var Z=_.hv.apply(0,arguments);if(d.loggingStatus.currentExternalCall!==f){var M,g=((M=d.is)!=null?M:d.tagName).toLowerCase();n$(g,f,"PROPERTY_ACCESS_CALL_INTERNAL")}return q==null?void 0:q.apply(c,Z)}};
zKY=function(c,f){var d=Object.getOwnPropertyDescriptor(c,f);d&&!d.get&&Object.defineProperty(c,f,{get:function(){pXz(c.hostElement,f);return d.value},
set:function(q){$E(c.hostElement,f);d.value=q}})};
a0C=function(c){return _.F("poly_si_dom_repeat_detached_fix_killswitch")||c.tagName!=="PS-DOM-REPEAT"?c.tagName==="DOM-REPEAT":!0};
XyM=function(c,f){var d=VEl(c);c instanceof Element&&d.unshift(c);c=_.C(d.filter(a0C));for(var q=c.next();!q.done;q=c.next()){var Z=void 0;q=_.C((Z=q.value.__instances)!=null?Z:[]);for(Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.root){Z=Array.from(Z.root.children);Z=_.C(Z);for(var M=Z.next();!M.done;M=Z.next())d.push.apply(d,_.LT(XyM(M.value,f)))}}return d.filter(function(g){return g.usePatchedLifecycles&&g.lifecycleIsConnected===f})};
VEl=function(c){var f=null;c instanceof Element?f=Element.prototype.querySelectorAll:c instanceof DocumentFragment&&(f=DocumentFragment.prototype.querySelectorAll);return f?Array.from(f.call(c,"*")):[]};
qV=function(c){kk(function(){for(var f=_.C(XyM(c,!1)),d=f.next();!d.done;d=f.next()){d=d.value;d.lifecycleIsConnected=!0;try{var q=void 0,Z=void 0,M=void 0,g=void 0;(q=(g=d.polymerController)!=null?g:d)==null||(M=(Z=q).connectedCallback)==null||M.call(Z)}catch(O){_.VO(O)}}})};
Z9=function(c){kk(function(){for(var f=_.C(XyM(c,!0)),d=f.next();!d.done;d=f.next()){d=d.value;d.lifecycleIsConnected=!1;try{var q=void 0,Z=void 0,M=void 0,g=void 0;(q=(g=d.polymerController)!=null?g:d)==null||(M=(Z=q).disconnectedCallback)==null||M.call(Z)}catch(O){_.VO(O)}}})};
DGh=function(){if(!u0r){u0r=!0;var c=[Node];MV&&c.push(MV.Wrapper);var f=Node.prototype.insertBefore,d=Node.prototype.removeChild;c=_.C(c);for(var q=c.next(),Z={};!q.done;Z={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},q=c.next())q=q.value,Z.nativeInsertBefore=q.prototype.insertBefore,q.prototype.insertBefore=function(g){return function(O,l){if(O instanceof DocumentFragment){var m=Array.from(O.children);O=g.nativeInsertBefore.call(this,O,l);
if(this.isConnected&&g.nativeInsertBefore===f)for(l=_.C(m),m=l.next();!m.done;m=l.next())qV(m.value);return O}m=O instanceof Element&&O.isConnected;l=g.nativeInsertBefore.call(this,O,l);m&&Z9(O);this.isConnected&&qV(O);return l}}(Z),Z.nativeAppendChild=q.prototype.appendChild,q.prototype.appendChild=function(g){return function(O){if(O instanceof DocumentFragment){var l=Array.from(O.children);
O=g.nativeAppendChild.call(this,O);if(this.isConnected){l=_.C(l);for(var m=l.next();!m.done;m=l.next())qV(m.value)}return O}l=O instanceof Element&&O.isConnected;m=g.nativeAppendChild.call(this,O);l&&Z9(O);this.isConnected&&qV(O);return m}}(Z),Z.nativeRemoveChild=q.prototype.removeChild,q.prototype.removeChild=function(g){return function(O){var l=O instanceof Element&&O.isConnected,m=g.nativeRemoveChild.call(this,O);
l&&d===g.nativeRemoveChild&&Z9(O);return m}}(Z),Z.nativeReplaceChild=q.prototype.replaceChild,q.prototype.replaceChild=function(g){return function(O,l){if(O instanceof DocumentFragment){var m=Array.from(O.children);
O=g.nativeReplaceChild.call(this,O,l);if(this.isConnected)for(Z9(l),l=_.C(m),m=l.next();!m.done;m=l.next())qV(m.value);return O}m=O instanceof Element&&O.isConnected;var H=this.isConnected,A=g.nativeReplaceChild.call(this,O,l);H&&Z9(l);m&&Z9(O);H&&qV(O);return A}}(Z);
c=[Element];MV&&c.push(MV.Wrapper);c=_.C(c);q=c.next();for(Z={};!q.done;Z={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},q=c.next())q=q.value,q.prototype.before=viz(q.prototype.before),q.prototype.after=viz(q.prototype.after),Z.nativeReplaceWith=q.prototype.replaceWith,q.prototype.replaceWith=function(g){return function(){var O=_.hv.apply(0,arguments),l=_.C(hKz(O)),m=l.next().value,
H=l.next().value;l=this.isConnected;g.nativeReplaceWith.apply(this,O);O=_.C(H);for(H=O.next();!H.done;H=O.next())Z9(H.value);if(l)for(Z9(this),m=_.C(m),l=m.next();!l.done;l=m.next())l=l.value,l instanceof Element&&qV(l)}}(Z),Z.nativeRemove=q.prototype.remove,q.prototype.remove=function(g){return function(){var O=this.isConnected;
g.nativeRemove.call(this);O&&Z9(this)}}(Z),Z.nativeInsertAdjacentElement=q.prototype.insertAdjacentElement,q.prototype.insertAdjacentElement=function(g){return function(O,l){var m=l.isConnected;
O=g.nativeInsertAdjacentElement.call(this,O,l);m&&Z9(l);O.isConnected&&qV(O);return O}}(Z),Z.nativeSetAttribute=q.prototype.setAttribute,q.prototype.setAttribute=function(g){return function(O,l){var m=wyk(this);
if(!m.usePatchedLifecycles)return g.nativeSetAttribute.call(this,O,l);var H=this.getAttribute(O);g.nativeSetAttribute.call(this,O,l);l=this.getAttribute(O);yA4(m,O,H,l)}}(Z),Z.nativeRemoveAttribute=q.prototype.removeAttribute,q.prototype.removeAttribute=function(g){return function(O){var l=wyk(this);
if(!l.usePatchedLifecycles)return g.nativeRemoveAttribute.call(this,O);var m=this.getAttribute(O);g.nativeRemoveAttribute.call(this,O);m!==null&&yA4(l,O,m,null)}}(Z),Z.nativeToggleAttribute=q.prototype.toggleAttribute,q.prototype.toggleAttribute=function(g){return function(O,l){var m=wyk(this);
if(!this.usePatchedLifecycles)return g.nativeToggleAttribute.call(this,O,l);var H=this.getAttribute(O),A=H!==null;l=g.nativeToggleAttribute.call(this,O,l);l!==A&&yA4(m,O,H,l?"":null);return l}}(Z);
c=[Document,DocumentFragment,Element,ShadowRoot];MV&&c.push(MV.Wrapper);c=_.C(c);for(Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z.prototype.prepend=viz(Z.prototype.prepend),Z.prototype.append=viz(Z.prototype.append);(MV==null?void 0:MV.noPatch)===!0&&WYk();document.readyState==="complete"?qV(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&qV(document.body)});
var M=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");M&&M.get&&M.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:M.enumerable,configurable:!0,get:M.get,set:function(g){g||Z9(this);M.set.call(this,g);return g}})}};
viz=function(c){return function(){var f=_.hv.apply(0,arguments),d=_.C(hKz(f)),q=d.next().value;d=d.next().value;c.apply(this,f);f=_.C(d);for(d=f.next();!d.done;d=f.next())Z9(d.value);if(this.isConnected)for(q=_.C(q),f=q.next();!f.done;f=q.next())f=f.value,f instanceof Element&&qV(f)}};
WYk=function(){for(var c=_.C(eKG),f=c.next();!f.done;f=c.next()){f=f.value.prototype;for(var d=_.C(NPl),q=d.next();!q.done;q=d.next()){q=q.value;var Z=Object.getOwnPropertyDescriptor(f,q);Z&&Object.defineProperty(f,"__shady_native_"+q,Z)}}};
yA4=function(c,f,d,q){var Z,M;if((Z=c.polymerController)==null?0:(M=Z.observedAttributes)==null?0:M.includes(f))if(c=c.polymerController,c.attributeChangedCallbackWrapper)c.attributeChangedCallbackWrapper.call(c,f,d,q);else{var g;(g=c.attributeChangedCallback)==null||g.call(c,f,d,q)}};
hKz=function(c){var f=[],d=[];c=_.C(c);for(var q=c.next();!q.done;q=c.next())q=q.value,q instanceof Element&&q.isConnected&&d.push(q),q instanceof DocumentFragment?f.push.apply(f,_.LT(Array.from(q.children))):f.push(q);return[f,d]};
wyk=function(c){return!(c instanceof Element)&&c.node instanceof Element?c.node:c};
I0M=function(c,f){var d=f?["children"].concat(_.LT(f)):["children"];f=[];d=_.C(d);for(var q=d.next();!q.done;q=d.next()){var Z=q.value;if(c.hasOwnProperty(Z)){q=c[Z];q=typeof q==="function"?q():q;q=Array.isArray(q)?q:[q];q=mf(q).flat();if(Z!=="children"){Z=qPN(Z);for(var M=_.C(q),g=M.next();!g.done;g=M.next())g=g.value,g instanceof Element&&g.setAttribute("slot",Z)}f.push(q)}}f.length===0?c=[]:(c=mf(_.B("div",null,f)),c=Array.from(c.childNodes));return c};
RKC=function(c,f,d){var q={};_.zZ(function(){var Z={},M;for(M in f)if(f.hasOwnProperty(M)){var g=void 0,O=void 0;if(!(((g=d.slotProps)==null?0:g.includes(M))||M==="children"||((O=d.callbackProps)==null?0:O.includes(M))||M==="ref")&&(g=_.LL(f[M]),q[M]!==g)){q[M]=g;O=void 0;var l=(O=c.hostElement)!=null?O:c;Pyk.has(M)&&(l[M]=g);Z[M]=g}}mK(function(){if(c.setProperties)c.setProperties(Z);else for(var m=_.C(Object.entries(Z)),H=m.next();!H.done;H=m.next()){var A=_.C(H.value);H=A.next().value;A=A.next().value;
c[H]=A}})})};
pyr=function(c,f,d,q){var Z=I0M(d,q.slotProps),M=(0,_.Ok)(c);Z=_.C(Z);for(var g=Z.next();!g.done;g=Z.next())M.appendChild(g.value);RKC(f,d,q);q=_.C(q.callbackProps||[]);Z=q.next();for(M={};!Z.done;M={kebabEventName:void 0,eventListener:void 0},Z=q.next())g=Z=Z.value,String(Z).substring(0,2)==="on"&&d[g]?(M.kebabEventName=qPN(String(Z).substring(2)),M.eventListener=d[g],c.addEventListener(M.kebabEventName,M.eventListener),_.Q4(function(H){return function(){c.removeEventListener(H.kebabEventName,H.eventListener)}}(M))):
f[g]=d[g];
if(d.ref){d=_.C(UGk(d.ref));var O=d.next().value,l=d.next().value,m=f.attached.bind(f);f.attached=function(){O(c);m()};
_.Q4(function(){l()})}};
UGk=function(c){if(typeof c==="function"){var f;return[function(d){f=c(d)},
function(){var d;(d=f)==null||d()}]}if(!c.onRender||!c.onUnmount)throw Error("Rg");
return[c.onRender,c.onUnmount]};
cXk=function(c,f,d,q,Z){q=q===void 0?{}:q;var M=xGn,g=!1;M?(g=!0,xGn=void 0):(oie=f,M=document.createElement(f),oie=void 0);var O=M;O.usePatchedLifecycles=!0;O.lifecycleIsConnected=!1;M.loggingStatus={};var l=GSC(c,f,M,q,Z);_.Q4(function(){O.lifecycleIsConnected&&(O.lifecycleIsConnected=!1,l.disconnectedCallback())});
g||(_.F("sink_wrapper_disable_runtime_shadycss")&&(M.__noInsertionPoint=!0),pyr(M,l,d,q));return M};
GSC=function(c,f,d,q,Z){Z=Z===void 0?EiN:Z;fcr[f]!=null||(fcr[f]=Z(c,f,q==null?void 0:q.getTemplate,q));var M=fcr[f],g=M.ctor;Z=M.getInitialMethods;var O=M.getPropsToForwardBeforeReady;c=M.getPropsToForwardBeforeRegister;q=M.shouldForwardProp;var l=M.observedAttributes,m=M.shouldLog,H=g(d,{beforeReady:function(){var A=H;A._takeAttributes?A._takeAttributes():A.setPropertiesFromInitialAttributeValues&&A.setPropertiesFromInitialAttributeValues();A=_.C(O(d.polymerController));for(var Y=A.next();!Y.done;Y=
A.next()){var t=_.C(Y.value);Y=t.next().value;t=t.next().value;QHk(d,Y,t);m(f)&&!jq(Y)&&zKY(d.polymerController,Y)}d.polymerController=Ugl(H,f)}});
d.polymerController=H;d.polymerController.observedAttributes=l;M=_.C(H.getExtraMethodsToForward());for(g=M.next();!g.done;g=M.next())l=_.C(g.value),g=l.next().value,l=l.next().value,Se4(d,g,l);Z=_.C(Z());for(M=Z.next();!M.done;M=Z.next())M=M.value,q(M)&&Se4(d,M),m(f)&&!jq(M)&&LYl(H,M);c=_.C(c());for(q=c.next();!q.done;q=c.next())Z=_.C(q.value),q=Z.next().value,Z=Z.next().value,QHk(d,q,Z);return H};
jPk=function(c,f){return rN===f?(c.isInert=!0,rN="",!0):dbh===f?(c.isInert=!0,dbh="",!0):!1};
qyn=function(c){var f=Cx;Cx=c;return f};
M$N=function(c){if(gN.has(c))dbh=c;else if(kp.has(c)&&Cx&&ZAk(Cx)===c){var f;(f=Cx)._numRenders!=null||(f._numRenders=0);Cx._numRenders++;if(Cx._numRenders>1)throw Error("Sg");return Cx}};
rXk=function(c){gN.has(ZAk(c))?dbh=ZAk(c):kp.has(ZAk(c))&&Cx!==c&&(c._isInert=!0)};
ZAk=function(c){var f;return(f=c==null?void 0:c.tagName.toLowerCase())!=null?f:""};
CzN=function(c,f){if(c.componentType===bm)throw Error("Tg");kp.add(f);var d=function(){var q=HTMLElement.call(this)||this;q.is=f;if(oie===f)return q.isInert=!0,q;q.createElement();return q};
_.K(d,HTMLElement);d.prototype.createElement=function(){if(!this.isInert){xGn=this;var q=_.C(_.iO4(function(){return _.B(c,null)})).next().value;
xGn=void 0;pBe(this);return q}};
customElements.define(f,d)};
kpN=function(c,f,d,q,Z){c.prototype.is=f;(q==null?0:q.useSink)?gF4(c,f,d,q,Z):(d=EiN(c,f,d,q),JAC(d,f));return c};
gF4=function(c,f,d,q,Z){DGh();var M=_.dN(function(g){return cXk(c,f,g,Object.assign({},q,{getTemplate:d}),Z)},"a");
M.debugName=f+" (CoW wrapped)";CzN(M,f);return M};
lcz=function(c){return!OAn.has(c)};
iAC=function(c,f,d,q){function Z(){if(!A){for(var Y=new Set(sPl),t=_.C(M.behaviors),E=t.next();!E.done;E=t.next()){E=E.value;for(var J=_.C(Object.getOwnPropertyNames(E)),X=J.next();!X.done;X=J.next()){X=X.value;var u=void 0,W=(u=Object.getOwnPropertyDescriptor(E,X))==null?void 0:u.value;W&&W instanceof Function&&(!m[X]||_.F("polymer_forward_method_killswitch"))&&Y.add(X)}}t=_.C(Object.entries(Object.getOwnPropertyDescriptors(c.prototype)));for(E=t.next();!E.done;E=t.next())J=_.C(E.value),E=J.next().value,
J=J.next().value,J.value instanceof Function&&Y.add(E);A=Y}return A}
var M=peM({is:f,disableElementRegistration:!1,getTemplate:d,providers:q==null?void 0:q.providers,reactivityMode:q==null?void 0:q.reactivityMode},c);if((q==null?0:q.allowedProps)||(q==null?0:q.allowedPropsFromBehaviors)){var g,O;M.allowedProps=[].concat(_.LT((g=q.allowedProps)!=null?g:[]),_.LT((O=q.allowedPropsFromBehaviors)!=null?O:[]))}var l=DkN(M,c);f=l.observedAttributes;var m={};d=_.C(M.reactiveSchemas);for(q=d.next();!q.done;q=d.next())if(q=q.value,q.type==="signal")m[q.propertyKey]={readOnly:q.readOnly},
q.readOnly&&(m[Abh(q.propertyKey)]={readOnly:!0});else if(q.type==="compute"||q.type==="computeWithMethod"||q.type==="redux")m[q.propertyKey]={readOnly:!0};var H=M.reactiveSchemas.length,A;return{ctor:function(Y,t){Y=new l(Y);Y.beforeReady=t.beforeReady;return Y},
props:m,observedAttributes:f,getInitialMethods:Z,getPropsToForwardBeforeRegister:function(){for(var Y=[],t=new Set,E=_.C(Bvr),J=E.next();!J.done;J=E.next())J=J.value,Y.push([J,J!=="observers"&&J!=="properties"]),t.add(J);E=_.C(Object.keys(m));for(J=E.next();!J.done;J=E.next())J=J.value,Y.push([J,m[J].readOnly]),t.add(J);E=Z();J=_.C(Object.keys(Object.getOwnPropertyDescriptors(c.prototype)));for(var X=J.next();!X.done;X=J.next())X=X.value,!lcz(X)||E.has(X)||t.has(X)||(Y.push([X,!1]),t.add(X));Y.push(["allowedProps",
!0]);return Y},
getPropsToForwardBeforeReady:function(Y){var t=[];Y=_.C(Object.keys(Y));for(var E=Y.next();!E.done;E=Y.next()){E=E.value;var J=Z();lcz(E)&&!J.has(E)&&t.push([E,!1])}Y=_.C(M.reactiveSchemas.slice(H));for(E=Y.next();!E.done;E=Y.next())E=E.value,E.type!=="compute"&&E.type!=="computeWithMethod"&&E.type!=="redux"&&E.type!=="signal"||t.push([E.propertyKey,E.type==="signal"?E.readOnly:!0]);return t},
shouldForwardProp:lcz,shouldLog:K$}};
_.h=function(c,f,d,q){var Z,M,g=(M=(Z=q)==null?void 0:Z.mode)!=null?M:0;q!=null||(q={});var O;(O=q).reactivityMode!=null||(O.reactivityMode=0);g===1&&_.gx("creator_poly_si_disable_list").includes(f)&&(g=2);return g===1?kpN(c,f,d,Object.assign({},q,{useSink:!0}),iAC):kpN(c,f,d,Object.assign({},q,{useSink:g===2}))};
_.OD=function(){return function(c,f,d,q){var Z,M,g=(M=(Z=q)==null?void 0:Z.mode)!=null?M:2;q!=null||(q={});var O;(O=q).reactivityMode!=null||(O.reactivityMode=0);if(g===0)throw Error("Ug`"+g);return gF4(c,f,d,q,g===1?iAC:void 0)}};
_.lP=function(c){return _.F("creator_poly_si_killswitch")?!1:_.F("force_all_poly_si_batches")&&(c==="poly_si_all_on_test_check"||c==="creator_poly_si_batch_050"?0:c)||document.documentElement.hasAttribute("use-signals")?!0:!c||_.F(c+"_holdback_enabled")&&_.F("kevlar_polysi_holdback")?!1:_.F(c)};
sD=function(c){return c?c.icon?c.icon.iconType.toLowerCase():c.customThumbnail?"member":"":""};
Tve=function(c){if(!c)return"";c=_.C(c);for(var f=c.next();!f.done;f=c.next())if((f=f.value)&&f.liveChatAuthorBadgeRenderer&&(f=sD(f.liveChatAuthorBadgeRenderer))&&f!=="verified")return f;return""};
mbG=function(c,f){if(!c)return null;var d;return((d=c.find(function(q){return q&&q.liveChatAuthorBadgeRenderer?sD(q.liveChatAuthorBadgeRenderer)===f:!1}))==null?void 0:d.liveChatAuthorBadgeRenderer)||null};
_.bAk=function(c){var f=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;c=HAr(c);f=HAr(f);var d=AXe(c.hex);f=AXe(f.hex);var q=f[0]/255;var Z=f[1]/255,M=f[2]/255,g=Math.max(q,Z,M),O=Math.min(q,Z,M),l=0,m=0,H=.5*(g+O);g!=O&&(g==q?l=60*(Z-M)/(g-O):g==Z?l=60*(M-q)/(g-O)+120:g==M&&(l=60*(q-Z)/(g-O)+240),m=0<H&&H<=.5?(g-O)/(2*H):(g-O)/(2-2*H));q=[Math.round(l+360)%360,m,H];d=YyN(d,f);for(c=FQY(c.hex);d<4.5;){c=q[2]>=.5?c.darker((4.5-d)/2):c.brighter((4.5-d)/2);d=c.toString();
Z=t$Y(d);if(!Z.length)throw Error("Rd`"+d);d=Z;d=YyN(d,f)}return c.hex()};
YyN=function(c,f){c=_.MXh(c);f=_.MXh(f);return(Math.max(c,f)+.05)/(Math.min(c,f)+.05)};
_.Bh=function(c){return"#"+("000000"+(c&16777215).toString(16)).slice(-6)};
_.KQl=function(c){for(var f=0,d=0;d<c.length;d++)f=c.charCodeAt(d)+((f<<5)-f);c="#";for(d=0;d<3;d++)c+=("00"+(f>>d*8&255).toString(16)).slice(-2);return c};
EFY=function(c){c=(c||"").split(":");c.length===1&&c.unshift("yt-icons");c[1]=c[1].toLowerCase();return c};
zdM=function(c,f){var d=(f=f===void 0?!1:f)?nFh:$bN,q=f?QPh:Syz;c.getIconNames().forEach(function(Z){Z=f?Z:Z.substring(Z.indexOf(":")+1);c.name==="yt-icons"?LQl.add(Z):Z.includes("-filled")?d.add(Z):q.add(Z)})};
iP=function(c,f,d,q){d=d===void 0?!1:d;q=q===void 0?!1:q;var Z,M,g;return _.k(function(O){if(O.nextAddress==1)return O.yield(JXh,2);if(q)return O.return(LQl.has(c));Z=d?nFh:$bN;M=d?QPh:Syz;return f?(g=c.includes("-filled")?c:c.concat("-filled"),O.return(Z.has(g))):O.return(M.has(c))})};
_.Xnk=function(c){if(ack(c))return c;var f=c=c.toLowerCase();(c=V$n.get(c))&&(f=c);return f};
_.Tu=function(c){if(ack(c))return c.toString();var f=unM.get(c);if(f)return f;f=c.toLowerCase();var d="yt-icons",q=f.replace(/_/g,"-");switch(c){case "MY_CHANNEL":f="account_circle";break;case "ADD_TO_LIBRARY":f="add";break;case "ALERT_WARN_RED":f="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":f="person_music";break;case "BLOCK_USER":f="block";break;case "CAPTIONS":f="closed_caption";break;case "CLOSED_CAPTION":d="av";f="closed-caption";break;case "COLLECTION":d="maps";f="layers";break;case "CONTACT":d=
"icons";f="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":d="ytcp-icons";f=q.split("creator-studio-")[1];break;case "DISMISSAL":f="close";break;case "DO_NOT_DISTURB":f="block";break;case "DOGFOOD":d="icons";f="pets";break;case "DRAFT":f="paper_corner_folded";break;
case "EMPTY_LIKE":f="like_outline";break;case "EXIT_APP":f="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":f=q;break;case "GAMES":d="ytg";f="my-games";break;case "GO_TO_PAGE":f="arrow-forward";break;case "GROUP":d="social";break;case "HIDE":f="not_interested";break;case "INPUT_COMPONENT":d="icons";f="settings-input-component";break;case "KIDS_BLOCK":f="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":d="ytg";f="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":d=
"ytg";f="membership-post-purchase";break;case "MULTIVIEW":f="screen_multi_view";break;case "MY_LOCATION":d="maps";f=q;break;case "NOTIFICATIONS_INBOX":f="NOTIFICATIONS";break;case "NEXT":f="chevron_right";break;case "OFFLINE":f="power-settings-new";break;case "PAUSE":d="miniplayer";break;case "PAYMENT":d="icons";break;case "PHONE_DOWNLOAD":f="phone_download";break;case "PREMIUM_STANDALONE":d="yt-logos";f="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":d="yt-logos";f="premium_standalone_cairo";
break;case "QUESTION_ANSWER":f="question_answer";break;case "REDEEM":d="icons";f="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":f="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":f="library_add";break;case "SCHOOL":d="yt-sys-icons";f="creator_academy";break;case "SETTINGS_LIGHT":f="settings_applications";break;case "SETTINGS_MATERIAL":f="settings";break;case "SEARCH_HISTORY":f="watch_history";break;case "SHOPPING_BAG":f="bag";break;case "SOCIAL":case "PEOPLE":d=
"yt-icons";f="people";break;case "STAFF_PICK":d="ytg";f="spotlight";break;case "START_DVR":f="add";break;case "STOP_DVR":d="av";f="stop";break;case "TAB_LIKED":f="like";break;case "TAB_INBOX":f="mail";break;case "TERMS_OF_SERVICE":d="icons";f="description";break;case "TRENDING":f="fire";break;case "UNBLOCK_USER":f="remove";break;case "UNPLUGGED_DARK_THEME":d="image";f="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":f="live";break;case "UNPLUGGED_SPORTS":d="ytu";f="visibility-off";break;
case "VIDEOS":d="av";f="play-circle-filled";break;case "YOUTUBE":d="yt-logos";f="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":d="yt-logos-ext";f="yt-logo-red-updated";break;case "YOUTUBE_LOGO":d="yt-logos-ext";f="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":d="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":d="shorts";f=q;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":d="yt-sys-icons";f="youtube_improve_tv";break;case "OUTLINE_BAG":d=
"yt-sys-icons";f="bag";break;case "QUEUE_PLAY_LAST":d="yt-sys-icons";f="list_queue_last";break;case "SLASH_CIRCLE_LEFT":f="slash_circle_left";break;case "SPEED_1_POINT_2X":f="1_point_2x";break;case "SPEED_1_POINT_5X":f="1_point_5x";break;case "SPEED_1_POINT_8X":f="1_point_8x";break;case "SPEED_POINT_2X":f="point_2x";break;case "SPEED_POINT_5X":f="point_5x";break;case "SPEED_POINT_8X":f="point_8x";break;case "SPEED_1X":f="1x";break;case "SPEED_2X":f="2x";break;case "TAB_BOOKMARK":f="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":d="yt-sys-icons";f="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":d="yt-sys-icons";f="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":d="yt-sys-icons",f="tic_tac_toe"}f=d+":"+f;unM.set(c,f);return f};
ack=function(c){var f;_.F("kevlar_use_wil_icons")?f=!!_.ql().resolve(_.mt).resolveIcon({iconName:c.toString()}):f=!1;return f};
_.Ae=function(c,f,d,q){d=d===void 0?{}:d;q=q===void 0?!1:q;d===null&&(d={});var Z=_.gx("kevlar_command_handler_command_banlist");Z=_.C(Z);for(var M=Z.next();!M.done;M=Z.next())if(M=c?c.hasOwnProperty(M.value):void 0,M)return!1;Z=_.b(c.commandMetadata,_.jO);return q&&Z!=null&&Z.url?!1:!f.disableCommandHandlerOverride&&_.Hh.instance?(q=_.Hh.instance,d.form||(d.form={element:f}),d.form.element||(d.form.element=f),!d.clickedVisualElement&&f.visualElement&&(d.clickedVisualElement=f.visualElement),q.resolveCommand(c,
d),!0):!1};
vFG=function(c,f){c=Yp(c);for(var d=_.C(c.visibilityMonitorKeys||[]),q=d.next();!q.done;q=d.next())f.unobserveByKey(q.value);c.visibilityMonitorKeys=void 0};
WQ4=function(c,f){if(_.X2()){if(_.F("kevlar_vimio_use_shared_monitor"))hd4(c,f.data);else if(!hd4(c,f.data))return;var d=f.data,q=wnl(d);if(_.F("enable_client_ve_spec_logging"))vFG(c,f.observer);else{var Z=Yp(c);Z.trackedParams&&Z.trackedParams!==q&&vFG(c,f.observer)}Z=Yp(c);!d||Z.data&&Z.data===d||(Z.data=d);yXG(c,f);Z.trackedParams=q}};
yXG=function(c,f){var d=f.observer;if(!d&&_.F("web_skip_missing_vimio_observer")){var q,Z;_.u6(new _.KD("VisibilityObserver is not defined.",c.tagName,c.trackedParams,(q=f.data)==null?void 0:q.trackingParams,(Z=f.data)==null?void 0:Z.loggingDirectives))}else{var M=f.layer,g=f.visibilityCallback||function(){},O=f.prescanCallback,l=Yp(c);
q=[];f.showOption&&q.push(d.observe(c,function(){f.skipLogging&&f.skipLogging()||_.FN().reportShown(l,void 0,M);g(!0)},f.showOption));
f.hideOption&&q.push(d.observe(c,function(){_.FN().reportHidden(l,void 0,M);g(!1)},f.hideOption));
f.prescanOption&&O&&q.push(d.observe(c,function(){O()},f.prescanOption));
l.visibilityMonitorKeys=q}};
hd4=function(c,f){c=Yp(c);if(c.visualElement&&!f)return!0;if(!f)return!1;var d=!1;if(_.F("enable_client_ve_spec_logging")){var q,Z;d=!!((q=f.loggingDirectives)==null?0:(Z=q.clientVeSpec)==null?0:Z.uiType)}q=wnl(f);if(!q&&!d)return!1;_.F("mweb_component_visibility_logging")&&(c.veContainer||(c.veContainer={}),c.veContainer.trackingParams=q);if(c.trackedParams&&c.trackedParams===q)return!1;var M;if(_.F("enable_client_ve_spec_logging")&&((M=c.visualElement)==null?0:M.isClientVe())){var g;M=(g=c.visualElement)==
null?void 0:g.getAsJspb();var O,l,m,H;if(_.qx(M,2)===((O=f.loggingDirectives)==null?void 0:(l=O.clientVeSpec)==null?void 0:l.uiType)&&_.qx(M,3,-1)===((m=f.loggingDirectives)==null?void 0:(H=m.clientVeSpec)==null?void 0:H.elementIndex))return!1}if(_.F("enable_client_ve_spec_logging")){var A,Y;!c.visualElement&&((A=f.loggingDirectives)==null?0:(Y=A.clientVeSpec)==null?0:Y.uiType)&&(O=f.loggingDirectives.clientVeSpec,f=O.uiType,g=O.elementIndex,O=O.clientYoutubeData,c.visualElement=_.te(_.bP(),{veType:f,
elementIndex:g,clientYouTubeData:O}))}return!0};
wnl=function(c){if(c==null?0:c.rendererContext){var f=_.b(c.rendererContext,_.Kx);if(f==null?0:f.loggingDirectives)return f.loggingDirectives.trackingParams}return(c==null?0:c.loggingDirectives)?c.loggingDirectives.trackingParams:c==null?void 0:c.trackingParams};
Yp=function(c){var f;return(f=c.polymerController)!=null?f:c};
IcP=function(c){_.FN();if(_.WC(ED().JSC$12454_elementShouldLogGesture).bind(ED())(c,4)){Dbn(c);var f=edh(c);Nv4.set(c,f)}};
Dbn=function(c){Nv4.has(c)&&(Nv4.get(c).cancel("untrack hover element"),Nv4.delete(c))};
edh=function(c){var f,d=[],q=!1,Z=new _.i6(function(M,g){nx(c,"mouseenter",_.WC(function(){var O,l,m;return _.k(function(H){if(H.nextAddress==1)return f=(0,_.qR)(),O=Pzh(c),d.push(O),l=RdY(c,function(){q=!0;g(Error("Vg"))}),H.yield(O,2);
if(H.nextAddress!=3)return l&&$p(l),m=Ubh(c),d.push(m),H.yield(m,3);M();_.Fm(H)})}))});
Z.then(function(){var M=(0,_.qR)()-f;M=Math.round(M);if(!(500>M||6E5<=M)){var g=c.getScreenLayer?c.getScreenLayer():void 0;g=_.X2(g)||"";var O=pne(_.FN(),c);_.UX(g,c.visualElement?c.visualElement:_.Q1(O),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:M}})}IcP(c)},function(){Sq&&(Sq(),Sq=null);
q&&(Dbn(c),IcP(c))});
return Z};
Pzh=function(c){var f;return(new _.i6(function(d,q){Sq=function(){q(Error("Wg"))};
f=_.a7.debounce(_.WC(function(){$p(Z);d()}),1,100);
var Z=_.Lx(c,"mousemove",f)})).thenCatch(function(){var d=_.a7.cancelDebouncedJobMap.get(f);
d&&_.a7.cancelJob(d)})};
Ubh=function(c){var f;return(new _.i6(function(d,q){Sq=function(){q(Error("Xg"))};
f=nx(c,"mouseleave",_.WC(function(){d()}))})).thenCatch(function(){$p(f)})};
RdY=function(c,f){return nx(c,"mouseleave",_.WC(f))};
oFN=function(c){xbn&&_.zu.cancel(xbn);xbn=_.zu.run(function(){_.CZ(c,"yt-visibility-refresh");xbn=0})};
GpY=function(c){c=Number(c);return"rgba("+[c>>16&255,c>>8&255,c&255,(c>>24&255)/255].join()+")"};
fFN=function(c){if(!c)return!1;if(_.b(c,_.cZh))return!0;var f;if(c=(f=_.b(c,_.BO))==null?void 0:f.commands)for(f=_.C(c),c=f.next();!c.done;c=f.next())if(_.b(c.value,_.cZh))return!0;return!1};
dXG=function(c){var f=!0;f=f===void 0?!0:f;if(!c.useSignals&&!c.experimentalPropertiesChanged||_.F("experimental_templating_behavior_nopatch_killswitch")){var d=c._propertiesChanged;c._propertiesChanged=function(q,Z,M){f?c.debounceRender():c.doRender();d&&d.call(c,q,Z,M)}}};
jDl=function(c,f){if(c.useSignals||c.experimentalPropertiesChanged)if(_.F("experimental_templating_behavior_nopatch_killswitch"))c.experimentalPropertiesChanged=function(){};
else return;var d=new Set,q=[c].concat(_.LT(c.behaviors));q=_.C(q);for(var Z=q.next();!Z.done;Z=q.next()){Z=Z.value;for(var M in Z.properties)d.has(M)||(c._addPropertyEffect(M,"function",f),d.add(M))}};
qFN=function(){var c=Polymer.Element,f=c._prepareTemplate;c._prepareTemplate=function(){f.call(this);var d=this.prototype;if(d.experimentalTemplatingInUse&&d.experimentalTemplatingInUse()&&d.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.VO(Error("Yg"));else{d=this.template.content.childNodes;for(var q=d.length-1;q>=0;q--){var Z=d[q];Z.nodeName!=="STYLE"&&Z.nodeName!=="LINK"&&Z.nodeName!=="SCRIPT"&&Z.nodeName!=="#comment"&&Z.remove()}}}};
ZMn=function(c){var f=!0;f=f===void 0?!0:f;qFN();var d=c.ready;c.ready=function(){this._template=null;d.call(this)};
jDl(c,f?c.debounceRender:c.doRender)};
rZk=function(c,f,d){if(d===null||d===void 0)return d;var q=qun(c.tagName.toLowerCase(),f,function(){throw Error("Ob");});
if(q===null)return d;q=Mxh[q];var Z;if((Z=q.isUnwrappable)==null?0:Z.call(q,d)){if(q.unwrap)return q.unwrap(d);throw Error("ah");}return q.filterString?q.filterString(c.tagName,f,String(d)):d};
C3z=function(c,f,d){var q=f[f.length-1]!=="$",Z=rZk(c,f,d);if(q)if(typeof Z==="function"&&f.startsWith("reactiveon")&&f===f.toLowerCase()){var M=x6;sll(c,f.slice(8),function(g){Jo(M,function(){Z(g)})})}else c[f]=Z;
else d=Z==null?null:String(Z),XC(c,f.slice(0,-1),d)};
af=function(c){gal.length===0&&requestAnimationFrame(function(){setTimeout(function(){var f=gal.slice();gal.length=0;f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;try{d()}catch(q){_.Je(q)}}})});
gal.push(c)};
kwC=function(c){if(c){var f=c.component;if(f){var d;f==null||(d=f.events)==null||d.publish("DISCONNECTED");var q;f==null||(q=f.onDisconnected)==null||q.call(f)}var Z,M;(Z=c.__spec)==null||(M=Z.didUnmount)==null||M.call(Z);for(f=0;f<c.childNodes.length;f++)kwC(c.childNodes[f])}};
XN=function(c,f,d){var q=f&&f.key,Z=Ru;Z[0]=c;Z[1]=q;Z[2]=void 0;for(var M in f)f.hasOwnProperty(M)&&(c=f[M],q=UT,q.push(M),q.push(c));f=Ru;a:{if(M=Ru[2])for(c=0;c<M.length;c+=2)if(M[c]==="nonce"){M=M[c+1];break a}M=""}M=nDn(f[0],f[1],M);c=w$(M);q=f[2];if(!c.staticsApplied&&(c.staticsApplied=!0,q&&q.length))if((Z=c._attrsArr)&&Z.length){for(Z=0;Z<q.length;Z+=2)V1[q[Z]]=Z+1;Z=c._attrsArr||(c._attrsArr=lBz(0));for(var g=0,O=0;O<Z.length;O+=2){var l=Z[O],m=Z[O+1],H=V1[l];H?q[H]===m&&delete V1[l]:(Z[g]=
l,Z[g+1]=m,g+=2)}V4(Z,g);for(var A in V1)HhC(M,A,q[V1[A]],fh),delete V1[A]}else for(A=0;A<q.length;A+=2)HhC(M,q[A],q[A+1],fh);aBh(M,c,fh);V4(f,0);d&&d(y4);$dl()};
OMn=function(c){var f=c.toString().toLowerCase();return function(d,q){XN(f,d,q)}};
_.vh=function(c,f,d){d===void 0?delete c[f.name]:c[f.name]=d};
_.he=function(c){var f={androidIncludeFontPadding:!1},d=0,q=[],Z=[],M=[];if(c.simpleText)return f.content=c.simpleText,f;if(c.runs===void 0)return f.content="",f;c=_.C(c.runs);for(var g=c.next();!g.done;g=c.next()){g=g.value;var O=g.text,l=void 0,m=(l=O)==null?void 0:l.length;if(O&&m){q.push(O);if(g.bold||g.italics||g.strikethrough||g.underline||g.textColor!=null&&g.textColor!==0||g.deemphasize){O=Z;l=O.push;var H={startIndex:d,length:m};g.bold&&(H.weightLabel="FONT_WEIGHT_MEDIUM");g.italics&&(H.italic=
!0);g.strikethrough&&(H.strikethrough="LINE_STYLE_SINGLE");g.underline&&(H.underline="LINE_STYLE_SINGLE");g.textColor!=null&&g.textColor!==0?document.documentElement.hasAttribute("dark")?H.fontColor=g.darkModeTextColor||g.textColor:H.fontColor=g.textColor:g.deemphasize&&(document.documentElement.hasAttribute("dark")?H.fontColor=parseInt("ff"+lFn("#aaa").substring(1),16):H.fontColor=parseInt("ff"+lFn("#606060").substring(1),16));l.call(O,H)}g.navigationEndpoint&&(O=M,l=O.push,H={startIndex:d,length:m,
onTap:{innertubeCommand:g.navigationEndpoint}},g.loggingDirectives&&_.vh(H,sDP,g.loggingDirectives),l.call(O,H));d+=m}}f.content=q.join("");f.styleRuns=Z.length?Z:void 0;f.commandRuns=M.length?M:void 0;return f};
iMe=function(c){if(c==null||!c.runs)return!0;c=_.C(c.runs);for(var f=c.next();!f.done;f=c.next())if(f=f.value,f.bracket||f.errorUnderline||f.deemphasize||_.b(f,wN)||_.b(f,BHk))return!1;return!0};
TH4=function(c,f){return function(d){var q=f.unit;if(q!==d)throw Error("dh`"+c+"`"+q+"`"+d);return f}};
y1=function(c){if(!((c==null?0:c.value)&&(c==null?0:c.unit)))return"";switch(c.unit){case "DIMENSION_UNIT_FRACTION":var f="%";break;default:f="px"}c=c.value;f==="%"&&(c*=100);return""+c+f};
mXY=function(c){try{return c()}catch(f){_.u6(f)}};
_.D9=function(c){var f=_.b(c,_.Wh);if(f)return f;if((f=_.b(c,HMr))&&f.commands)return AZN(f.commands);if((f=_.b(c,YFM))&&f.commands)return AZN(f.commands);if((c=_.b(c,Fzz))&&c.identifier&&c.command&&(txn||(txn=[]),!txn.includes(c.identifier)))return txn.push(c.identifier),_.b(c.command,_.Wh)};
AZN=function(c){if(c.length!==0){var f=[];c=_.C(c);for(var d=c.next();!d.done;d=c.next())(d=_.D9(d.value))&&f.push(d);return{commandExecutorCommand:{commands:f}}}};
_.NV=function(c){var f=c.defaultTarget,d=c.elementConfig,q=c.elementsCommand,Z=c.skipOnClick,M=c.forceNewState,g=c.additionalCommandArgs,O=c.innertubeCommand||_.D9(q);if(O){c={};var l=bMz(O);q=l.navigatingCommand;l=l.href;q&&l?(c.href$=l,Kzk(c,q,l,f),_.F("web_atagconfig_pointerdown")&&Ear(c,q),M&&(c["force-new-state$"]=!0)):(c.role$="button",c.href$="javascript:void(0);");_.b(O,nan)&&(c["aria-haspopup$"]=!0);Z||(c.onclick=function(m){var H={};if($X4(m)){var A=(g==null?void 0:g.clickedVisualElement)||
(g==null?void 0:g.getClickedVisualElement)&&g.getClickedVisualElement();A&&(H={clickedVisualElement:A});H=Object.assign({},{form:{element:m.target,event:m,createScreenConfig:H}},g);m.preventDefault();_.eq(O,H)}});
return Object.assign({},d,c)}};
QDh=function(c){if(c.length){if(c.length===1)return c[0];var f={};_.vh(f,_.BO,{commands:c});return f}};
If=function(c){return c&&c.href$!=="javascript:void(0);"};
bMz=function(c){var f,d=((f=_.b(c,_.BO))==null?void 0:f.commands)||[c];c=_.C(d);for(f=c.next();!f.done;f=c.next()){f=f.value;var q=void 0,Z=void 0;d=(Z=_.b((q=f)==null?void 0:q.commandMetadata,_.jO))==null?void 0:Z.url;_.F("web_remove_web_navigation_endpoint_data")||(q=void 0,d=d||((q=_.b(f,SF4))==null?void 0:q.url));if(d&&d!=="/service_ajax"){if(q=ah(d,LzN))return c=_.Lq(q),{navigatingCommand:f,href:c};_.u6(new _.KD("AttributedString URL could not be sanitized",d))}}return{}};
$X4=function(c){return c.button!==void 0?c.button===0&&!(c.shiftKey||c.altKey||c.metaKey||c.ctrlKey):!(c.shiftKey||c.altKey||c.metaKey||c.ctrlKey)};
Kzk=function(c,f,d,q){d=!cq(d);var Z,M,g;if((Z=_.b(f,_.Fw))!=null&&Z.nofollow||(M=_.b(f,_.pe))!=null&&M.nofollow||(g=_.b(f,_.Ib))!=null&&g.nofollow||d)c.rel$="nofollow";var O;f=((O=_.b(f,_.Ib))==null?void 0:O.target)==="TARGET_NEW_WINDOW"?"_blank":q===void 0?"":q;c.target$=f};
Ear=function(c,f){f.clickTrackingParams&&(c.params={itct:f.clickTrackingParams});c.onpointerdown=function(d){_.zs4(d)};
c._data=f};
_.JZz=function(c){(c.loggingUrls||[]).forEach(function(f){NR(f.baseUrl,f.attributionSrcMode)})};
_.zs4=function(c){var f=c.currentTarget;c=mXY(function(){return f.href});
var d=f.params;c&&_.cO(c,d||{},8,!0)};
_.Ph=function(c,f){(c=_.D9(c))&&_.eq(c,f)};
_.eq=function(c,f){$9n(function(d){f?d.resolveCommand(c,f):d.resolveCommand(c)})};
uxk=function(c,f){var d=["yt-core-attributed-string__link"];f!=null&&f.noLinkColor||((f==null?0:f.isOverlay)?d.push("yt-core-attributed-string__link--overlay-call-to-action-color"):d.push("yt-core-attributed-string__link--call-to-action-color"),(f==null?0:f.linkInheritColor)&&d.push("yt-core-attributed-string--link-inherit-color"));d={className:d.join(" "),tabindex$:"0"};var q=c.onTap||c.onLongPress;if(!q)return d;var Z=aFY(c);Z&&(d["aria-label$"]=Z);f=_.NV({elementsCommand:q,elementConfig:d,skipOnClick:!(f==
null||!f.skipOnClick),forceNewState:!0});c.onLongPress&&(q=new VxY(function(){var M=_.D9(c.onLongPress);M&&_.ql().resolve(_.ZM).resolveCommand(M)}),f&&XTl(q,f));
return f||d};
aFY=function(c){var f,d;return(f=c.onTapOptions)==null?void 0:(d=f.accessibilityInfo)==null?void 0:d.accessibilityLabel};
val=function(c){var f=c;c<=16777215&&(f+=parseInt("ff000000",16));return _.WS(f)};
hsC=function(c){var f=c.isDarkTheme;var d=c.extension;c=c.runColor;var q=void 0;if(d=d==null?void 0:d.colorMap){f=f?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";d=_.C(d);for(var Z=d.next();!Z.done;Z=d.next())if(Z=Z.value,f===Z.key){q=Z.value;break}}q==null&&c&&(q=c);if(q)return val(q)};
Rf=function(c){var f=c.config;var d=c.image;var q=c.imageConfig;var Z=c.imageWrapperConfig;var M=c.run;var g=c.tag;var O=c.textLength;var l=c.startIndex===void 0?0:c.startIndex;c=c.length;l===void 0&&(l=0);M={run:M,startIndex:l,endIndex:c!==void 0?l+c:O,tag:g};d&&(M.image=d);q&&(M.imageConfig=q);Z&&(M.imageWrapperConfig=Z);f&&(M.config=f);return M};
yZk=function(c,f){var d=[];d.push("yt-core-attributed-string");(f==null?0:f.className)&&d.push(f==null?void 0:f.className);(f==null?0:f.ellipsisTruncate)?d.push("yt-core-attributed-string--ellipsis-truncate"):(f==null?0:f.noWrap)?d.push("yt-core-attributed-string--white-space-no-wrap"):(f==null?0:f.noPreWrap)||d.push("yt-core-attributed-string--white-space-pre-wrap");(f==null?0:f.linkInheritColor)&&d.push("yt-core-attributed-string--link-inherit-color");c.alignment&&d.push(wTe(c.alignment));c.lineBreakMode&&
d.push("yt-core-attributed-string--word-wrapping");return d.join(" ")};
WzY=function(c){if(c.weight)return c.weight;switch(c.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 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
DXl=function(c){switch(c){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"}};
wTe=function(c){switch(c){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"}};
xp=function(c,f,d){var q=f;c.content&&d&&(d=c.content.indexOf("\n"),d!==-1&&(q=Math.min(f,d)));if(!c.content||c.content.length<=q)f=c;else if(c.attachmentRuns||c.commandRuns||c.decorationRuns||c.styleRuns||c.paragraphStyleRuns){f=UD(c.content,q);d=q;var Z=c.attachmentRuns;if(Z){var M=[];Z=_.C(Z);for(var g=Z.next();!g.done;g=Z.next())g=Object.assign({},g.value),g.startIndex===void 0||g.startIndex>=d||(g.length||(g.length=0),g.length+g.startIndex>d&&(g.length=d-g.startIndex),M.push(g));d=M}else d=void 0;
M=esn(q,c.commandRuns);Z=q;var O=c.decorationRuns;if(O){g=[];O=_.C(O);for(var l=O.next();!l.done;l=O.next()){l=l.value;var m=_.b(l.textDecorator,px);if(m&&m.startIndex!==void 0&&!(m.startIndex>=Z)){l=Object.assign({},l,{textDecorator:{highlightTextDecorator:Object.assign({},m)}});m=_.b(l.textDecorator,px);if(!m.length||m.length+m.startIndex>Z)m.length=Z-m.startIndex;g.push(l)}}Z=g}else Z=void 0;g=esn(q,c.styleRuns);if(O=c.paragraphStyleRuns)for(c=[],O=_.C(O),l=O.next();!l.done;l=O.next()){var H=l.value;
l=Object.assign({},H);if(!(l.startIndex===void 0||l.startIndex>=q)){if(!l.length||l.length+l.startIndex>q)l.length=q-l.startIndex;m=[];var A=void 0,Y=void 0;if((A=H)==null?0:(Y=A.listGroup)==null?0:Y.listItems)for(H=_.C(H.listGroup.listItems),A=H.next();!A.done;A=H.next())if(A=Object.assign({},A.value),!(A.startIndex===void 0||A.startIndex>=q)){if(!A.length||A.length+A.startIndex>q)A.length=q-A.startIndex;m.push(A)}m.length>0&&(l.listGroup||(l.listGroup={}),l.listGroup=Object.assign({},l.listGroup,
{listItems:m}));c.push(l)}}else c=void 0;f={content:f,attachmentRuns:d,commandRuns:M,decorationRuns:Z,styleRuns:g,paragraphStyleRuns:c}}else f=Object.assign({},c,{content:UD(c.content,q)});return f};
esn=function(c,f){if(f){var d=[];f=_.C(f);for(var q=f.next();!q.done;q=f.next())if(q=Object.assign({},q.value),!(q.startIndex===void 0||q.startIndex>=c)){if(!q.length||q.length+q.startIndex>c)q.length=c-q.startIndex;d.push(q)}return d}};
UD=function(c,f){var d=f,q;if(q=d>0)q=c.charCodeAt(d-1),q=q>=55296&&q<=56319;q&&(d=c.charCodeAt(d),q=d>=56320&&d<=57343);q&&--f;return c.substring(0,f)};
Rse=function(c,f,d){d=d===void 0?NHk:d;if(c){var q=_.ql().resolve(jR);q||_.F("mweb_no_observer_killswitch")?WQ4(c,{data:f,observer:q,visibilityCallback:d,hideOption:IFC,showOption:P34,layer:c.layer}):_.u6(new _.KD("Warning: monitorVisibility called with null observer",c.tagName,f==null?void 0:f.loggingDirectives,f==null?void 0:f.trackingParams))}else _.u6(new _.KD("Warning: monitorVisibility called with null element",f==null?void 0:f.loggingDirectives,f==null?void 0:f.trackingParams,f==null?void 0:
f.rendererContext))};
foP=function(c,f){var d=[],q=c.content.length,Z,M=(Z=_.ql().resolve(_.dx(_.of)))==null?void 0:Z();if(c.paragraphStyleRuns){Z=_.C(c.paragraphStyleRuns);for(var g=Z.next();!g.done;g=Z.next()){var O=d.push,l=O.apply;var m=void 0;g=g.value;if((m=g.listGroup)!=null&&m.listItems){m=[];b:switch(g.listGroup.listType){case "LIST_TYPE_BULLET":var H="ul";break b;default:H="span"}m.push(Rf({run:g,textLength:q,tag:H,config:{className:"yt-core-attributed-string__list-group"},startIndex:g.startIndex,length:g.length}));
H=_.C(g.listGroup.listItems);for(var A=H.next();!A.done;A=H.next()){A=A.value;b:switch(g.listGroup.listType){case "LIST_TYPE_BULLET":var Y="li";break b;default:Y="span"}m.push(Rf({run:g,textLength:q,tag:Y,startIndex:A.startIndex,length:A.length}))}g=m}else g=[];l.call(O,d,_.LT(g))}}if(c.styleRuns&&(f==null||!f.noStyleRuns))for(Z=_.C(c.styleRuns),O=Z.next();!O.done;O=Z.next()){O=O.value;l=hsC({extension:_.b(O.styleRunExtensions,UXN),isDarkTheme:M===void 0?!1:M,runColor:O.fontColor});m=[];l&&m.push("yt-core-attributed-string--link-inherit-color");
O.italic&&m.push("yt-core-attributed-string--italicized");O.underline&&O.strikethrough?m.push("yt-core-attributed-string--underline-strikethrough",DXl(O.underline)):O.underline?m.push("yt-core-attributed-string--underlined",DXl(O.underline)):O.strikethrough&&m.push("yt-core-attributed-string--strikethrough",DXl(O.strikethrough));if(O.baselineOffset){a:switch(O.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"}m.push(g)}g=m.join(" ");m=O;H={};if(m.weight||m.weightLabel)H.fontWeight=WzY(m).toString();l&&(H.color=l);d.push(Rf({run:O,textLength:q,tag:"span",config:{className:g,style:H},startIndex:O.startIndex,length:O.length}))}if(c.decorationRuns)for(Z=_.C(c.decorationRuns),O=Z.next();!O.done;O=Z.next())O=O.value,l={},O.textDecorator&&(H=O.textDecorator,g=M===void 0?!1:M,A=[],m=
_.b(H,px),H=_.b(H,pTk),m?(H=A,A=H.concat,Y=[],(g=hsC({extension:_.b(m.highlightTextDecoratorExtensions,xXk),isDarkTheme:g,runColor:m.backgroundColor}))&&Y.push("background-color: "+g+";"),m.backgroundCornerRadius!==void 0&&Y.push("border-radius: "+m.backgroundCornerRadius+"px;"),m.leftPadding!==void 0&&Y.push("padding-left: "+m.leftPadding+"px;"),m.rightPadding!==void 0&&Y.push("padding-right: "+m.rightPadding+"px;"),m.topPadding!==void 0&&Y.push("padding-top: "+m.topPadding+"px;"),m.bottomPadding!==
void 0&&Y.push("padding-bottom: "+m.bottomPadding+"px;"),A=A.call(H,Y)):H&&(m=A,A=m.concat,g=g?"#2ba640":"#107516",g=H.color?val(H.color):g,g=["padding: 2px;","border-top: solid "+g+" 2px;","border-bottom: solid "+g+" 2px;","background: linear-gradient(135deg, "+g+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+g+" 3px, rgba(0, 0, 0, 0) 3px);"],A=A.call(m,g)),g=A.join(" "),l.style$=g,g=O.textDecorator,m=[],H=_.b(g,pTk),_.b(g,px)?m.push("yt-core-attributed-string--highlight-text-decorator"):
H&&m.push("yt-core-attributed-string--bracket-text-decorator"),g=m.join(" "),l.className=g,l.dir="auto"),g=_.b(O.textDecorator,px),m=_.b(O.textDecorator,pTk),H=_.b(O.textDecorator,px),A=_.b(O.textDecorator,pTk),d.push(Rf({run:O,textLength:q,tag:"span",config:l,startIndex:(g==null?void 0:g.startIndex)||(m==null?void 0:m.startIndex)||0,length:(H==null?void 0:H.length)||(A==null?void 0:A.length)||0}));if(c.commandRuns&&(f==null||!f.noEndpoints))for(M=_.C(c.commandRuns),Z=M.next();!Z.done;Z=M.next())Z=
Z.value,O=uxk(Z,f),d.push(Rf({run:Z,textLength:q,tag:"a",config:O,startIndex:Z.startIndex,length:Z.length}));if(c.attachmentRuns)for(c=_.C(c.attachmentRuns),M=c.next();!M.done;M=c.next()){M=M.value;l=O=void 0;Z={className:"yt-core-attributed-string--inline-block-mod"};if((l=M.element)==null?0:l.properties){l=(O=M.element)==null?void 0:O.properties;O=[];l=_.b(l,oar);if(l==null?0:l.margin)l=l.margin,l.left&&O.push("margin-left: "+y1(l.left)+";"),l.right&&O.push("margin-right: "+y1(l.right)+";"),l.top&&
O.push("margin-top: "+y1(l.top)+";"),l.bottom&&O.push("margin-bottom: "+y1(l.bottom)+";");O=O.length!==0?O.join(" "):void 0;Z.style$=O}g=void 0;O={alt:"",preserveHeight:!0,preserveWidth:!0};l=["yt-core-attributed-string__image-element"];if(M.alignment){a:switch(M.alignment){case "ALIGNMENT_BASELINE":m="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":m="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:m=
"yt-core-attributed-string__image-element--image-alignment-bottom"}l.push(m)}if((g=M.element)==null?0:g.properties)g=[],m=_.b(M.element.properties,oar),(m==null?0:m.height)&&g.push("height: "+y1(m.height)+";"),(m==null?0:m.width)&&g.push("width: "+y1(m.width)+";"),g=g.length!==0?g.join(" "):void 0,O.style$=g,m=void 0,g=((m=_.b(M.element.properties,GwM))==null?void 0:m.label)||"",O.alt=g;O.className=l.join(" ");l=void 0;H=m=void 0;g=((H=M.element)==null?0:H.type)?(m=_.b(M.element.type,cJN))==null?
void 0:m.image:void 0;d.push(Rf({run:M,textLength:q,tag:"img",image:g,imageConfig:O,imageWrapperConfig:Z,startIndex:M.startIndex,length:(l=M.length)!=null?l:0}))}if(f==null?0:f.headerRuns)for(f=_.C(f.headerRuns),c=f.next();!c.done;c=f.next())if(c=c.value,c.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(c.headerMapping)){a:{switch(c.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":M=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":M="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":M="yt-core-attributed-string--heading-3";break a}M=void 0}d.push(Rf({run:c,textLength:q,tag:"span",config:M?{className:M}:void 0,startIndex:c.startIndex,length:c.length}))}return d};
_.Gu=function(c){return(c==null?void 0:c.content)!==void 0};
dWG=function(c){return _.Gu(c)?c:_.he(c)};
jCk=function(c){return c.image!==void 0&&c.imageConfig!==void 0};
qqN=function(c,f){if(f==null?0:f.userInput)for(c=_.C(c),f=c.next();!f.done;f=c.next())if(f=f.value,f.tag!=="a"&&f.tag!=="li"){var d=void 0;(d=f).config||(d.config={});f.config.dir=f.tag==="ul"?_.ql().resolve(_.cr):"auto"}};
ZKN=function(c){return function(f){var d=c.run;(d.onTap!==void 0||d.onLongPress!==void 0)&&_.b(d,sDP)&&Rse(f,{loggingDirectives:_.b(d,sDP)})}};
M1Y=function(c){return function(f){for(var d in c)(fh[d]||fh[ho["default"]])(f,d,c[d])}};
kON=function(c,f){rJY(f);var d={data:null,start:0,end:c.length,parts:[]};f=_.C(f);for(var q=f.next();!q.done;q=f.next())q=q.value,Cve(d,q.startIndex,q.endIndex,q);gy4(c,d);return d};
Cve=function(c,f,d,q){for(var Z=_.C(c.parts),M=Z.next();!M.done;M=Z.next()){M=M.value;if(typeof M==="string")throw Error("fh");if(M.start<=f&&d<=M.end){Cve(M,f,d,q);return}}c.parts.push({data:q,parts:[],start:f,end:d})};
gy4=function(c,f){for(var d=f.parts.length;d>=0;d--){var q=f.parts[d],Z=f.parts[d-1],M=d===f.parts.length?f.end:q.start;Z=d===0?f.start:Z.end;M!==Z&&f.parts.splice(d,0,c.slice(Z,M));q&&gy4(c,q)}};
rJY=function(c){c.sort(function(f,d){if(f.startIndex<d.startIndex)return-1;if(d.startIndex<f.startIndex)return 1;f=f.endIndex-f.startIndex;d=d.endIndex-d.startIndex;return f>d?-1:d>f?1:0})};
_.OKr=function(c){var f=c.thumbnails;if(f){c={sources:[]};f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q={};q.url=d.url;q.width=d.width;q.height=d.height;c.sources.push(q)}return c}};
lon=function(c,f,d,q){if(!f)return c.length>=1?c[c.length-1]:null;if(q)for(var Z=_.C(c),M=Z.next();!M.done;M=Z.next()){M=M.value;var g=void 0,O=(g=M.url)==null?void 0:g.indexOf(q);if(O!==void 0&&O>=0)return M}q=_.C(c);for(Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,Z.width&&Z.height&&(d&&Z.width>=f||!d&&Z.height>=f))return Z;for(f=c.length-1;f>=0;f--)if(d&&c[f].width||!d&&c[f].height)return c[f];return c[0]};
_.sCk=function(c){var f;return(c=(f=c.sources)==null?void 0:f[0])?c.width/c.height:0};
_.Bpr=function(c){if(c.sources){c=_.C(c.sources);for(var f=c.next();!f.done;f=c.next()){f=f.value;var d=void 0;if((d=f.clientResource)==null?0:d.imageName)return f}}};
iKM=function(c){var f;if((f=c.clientResource)!=null&&f.imageColor)return _.WS(c.clientResource.imageColor)};
_.mWn=function(c,f,d,q,Z,M,g){if(!f||f.length===0||f[0].clientResource)return null;if(d&&f[0].url)return f[0].url;q===void 0&&(q=!0);if(q){var O;c=TpY*(Z||(c==null?void 0:(O=c.getBoundingClientRect())==null?void 0:O.width)||0)}else{var l;c=TpY*(M||(c==null?void 0:(l=c.getBoundingClientRect())==null?void 0:l.height)||0)}f=lon(f,c,q,g);return(f==null?0:f.url)?f.url:(f==null?0:f.imageData)?f.imageData:null};
HKP=function(c,f,d){d=d?[d]:[];c.opacity&&d.push("opacity: "+c.opacity+";");f&&c.placeholderColor?(c=_.WS(c.placeholderColor),d.push("background-color: "+c+";")):d.push("background-color: transparent;");return d.join(" ")};
AJP=function(c,f,d,q,Z){var M=["yt-core-image"];f&&M.push(f);d||M.push("yt-core-image--fill-parent-height");q||M.push("yt-core-image--fill-parent-width");switch(c.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":M.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":M.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":M.push("yt-core-image--content-mode-center");break;default:M.push("yt-core-image--content-mode-scale-to-fill")}c.flipForRtlLayout&&
M.push("yt-core-image--flip-rtl");switch(Z){case "TOP_START":var g;M.push(((g=document.body)==null?void 0:g.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return M.join(" ")};
FrG=function(c){var f;if(c==null?0:(f=c.clientResource)==null?0:f.imageName){var d;c=(d=c.clientResource)==null?void 0:d.imageName;a:{switch(c){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":d="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":d="yt-logos-ext:yt-logo-updated";break a}d=void 0}return d||Yqn.get(c)||c}};
KrY=function(c){return _.F("mweb_wiz_skip_render")?t1M(c):bKN(c)};
t1M=function(c){return function(f){var d=nDn("wink-root");PV();$dl();UYk(d,_.B(c,f))}};
bKN=function(c){var f=f===void 0?!1:f;return function(d){if(!f||!_.F("mweb_skip_keto_to_c3_if_no_data")||d.data!==void 0){var q=Z5(!1);try{var Z=d.children;_.F("mweb_render_outside_patch_killswitch")||y4?Z?cW(_.B(c,d,Z)):cW(_.B(c,d)):_.u6(new _.KD("ketoToC3 called outside of a patch",{tagName:c.TAG_NAME}))}finally{Z5(q)}}}};
Eyl=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
$W4=function(c,f){c.onViewportEntered=f;nyC.observe(c)};
QCN=function(){var c={rootMargin:"10%",threshold:.01};_.F("mweb_enable_set_io_root_to_null_safari")?c.root=null:_.F("mweb_enable_set_io_root_to_body_safari")&&(c.root=document.body);return new IntersectionObserver(function(f,d){f.filter(function(q){return q.intersectionRect.height>0}).forEach(function(q){q=q.target;
if(!_.F("mweb_enable_only_update_image_when_connected")||q.isConnected!==!1){var Z;(Z=q.onViewportEntered)==null||Z.call(q);d.unobserve(q)}})},c)};
SqG=function(c,f,d,q,Z){function M(){if(q){var O=q.loadedClass,l=q.notifyOnUnloaded;O&&_.d_(c,O);l&&c.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function g(){var O=d(f,c);O&&c.getAttribute("src")!==O&&(_.F("mweb_enable_only_update_image_when_connected")&&c.isConnected===!1||O===c.src||(c.src=O),M())}
Z=Z===void 0?!0:Z;c.removeAttribute("src");M();f&&(Z?$W4(c,g):g())};
Lr4=function(c,f,d){if(!f)return!1;f=d(f,c);d=c.getAttribute("src");return f&&f===d&&c.complete};
zZn=function(c,f){for(var d in f)d==="className"?c.className=f[d]:(fh[d]||fh[ho.default])(c,d,f[d])};
JJ4=function(c,f,d,q){KrY(_.jC)({contentMode:f.contentMode,loadedClass:f.loadedClass,isPreloaded:f.isPreloaded,notifyOnLoaded:f.notifyOnLoaded,notifyOnUnloaded:f.notifyOnUnloaded,preferredThumbnail:f.preferredThumbnail,preserveHeight:f.preserveHeight,preserveWidth:f.preserveWidth,objectPosition:f.objectPosition,targetWidth:f.targetWidth,targetHeight:f.targetHeight,shouldShowPlaceholder:f.shouldShowPlaceholder,useWidth:f.useWidth,isToggled:f.isToggled,alt:f.alt,className:f.className,onerror:f.onerror,
onload:f.onload,style$:f.style$,color:f.color,width:f.width,height:f.height,"aria-hidden$":f["aria-hidden$"],draggable:f.draggable,"data-disabled$":f["data-disabled$"],data:c,callback:d,renderLazy:q===void 0?!0:q,hideOn404:!1})};
V1M=function(c,f,d){d=d===void 0?!1:d;var q=c.sources!==void 0?c:_.OKr(c);if(q){var Z=f.onload;f.onload=function(l){var m=l.target;d&&m.naturalWidth===120||_.q5(m,"yt-core-image--loaded");f.notifyOnLoaded&&m.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Z==null||Z(l)};
f.targetWidth&&f.preserveWidth&&(f.width=f.targetWidth);f.targetHeight&&f.preserveHeight&&(f.height=f.targetHeight);var M=_.Bpr(q),g=M&&FrG(M);if(g)return(c=iKM(M))&&(f.color=c),{type:"icon",iconName:g,config:Object.assign({},f,f.alt?{}:{"aria-hidden$":"true"},{"aria-label$":f.alt,role:"img"})};if(c.sources===void 0){f.alt=c.accessibility&&c.accessibility.accessibilityData&&c.accessibility.accessibilityData.label||f.alt;f.style$=HKP(c,f.shouldShowPlaceholder,f.style$);var O;f.isPreloaded=!((O=_.b(c,
aoM))==null||!O.isPreloaded)}f.contentMode&&!q.contentMode&&(q.contentMode=f.contentMode);f.className=AJP(q,f.className,f.preserveHeight,f.preserveWidth,f.objectPosition);f.loadedClass="yt-core-image--loaded";return{type:"image",image:q,config:f}}};
_.Z7=function(){var c=_.hv.apply(0,arguments);return _.ob(XMP,function(f){var d=c.map(function(q){return q==null?void 0:q(f)});
return function(){return void d.forEach(function(q){return void(q==null?void 0:q())})}})};
M5=function(c,f){var d=f==null?void 0:f.initial;return _.TZ(function(){_.LL(!0);return d=c(d)},{equals:f==null?void 0:f.isEqual},"rSlKsc")};
uGY=function(c,f){if(c===f)return!0;if(c===void 0||f===void 0)return!1;var d,q,Z,M,g,O,l,m;return c.content===f.content&&((d=c.styleRuns)==null?void 0:d.length)===((q=f.styleRuns)==null?void 0:q.length)&&((Z=c.commandRuns)==null?void 0:Z.length)===((M=f.commandRuns)==null?void 0:M.length)&&((g=c.attachmentRuns)==null?void 0:g.length)===((O=f.attachmentRuns)==null?void 0:O.length)&&((l=c.decorationRuns)==null?void 0:l.length)===((m=f.decorationRuns)==null?void 0:m.length)};
wMh=function(c,f){if(c){var d=dWG(c);if(d!=null&&d.content)if(_.F("attr_string_reactive"))KrY(vyG)({text:c,config:f});else{var q=!(f==null||!f.ariaLabel)||!(d.commandRuns&&d.commandRuns.length!==0||d.paragraphStyleRuns&&d.paragraphStyleRuns.length!==0);c=q?f==null?void 0:f.ariaLabel:null;q=q?"text":null;XN("span",{className:yZk(d,f),dir$:(f==null?0:f.userInput)?"auto":void 0,"aria-label$":c,role$:q},function(){if(d.styleRuns||d.commandRuns||d.attachmentRuns||d.decorationRuns){var Z=foP(d,f);qqN(Z,
f);Z=kON(d.content,Z);Z=_.C(Z.parts);for(var M=Z.next();!M.done;M=Z.next())hZz(M.value)}else GZ(d.content)})}}};
hZz=function(c){typeof c==="string"?GZ(c):jCk(c.data)?XN("span",c.data.imageWrapperConfig,function(){JJ4(c.data.image,c.data.imageConfig)}):XN(c.data.tag,c.data.config,function(f){ZKN(c.data)(f);
f=_.C(c.parts);for(var d=f.next();!d.done;d=f.next())hZz(d.value)})};
Wrk=function(c){return c.parts.map(yJh)};
yJh=function(c){if(typeof c==="string")return c;c=jCk(c.data)?_.B("span",{el:_.Z7(M1Y(c.data.imageWrapperConfig))},_.B(_.jC,Object.assign({},{data:c.data.image},c.data.imageConfig))):_.B(c.data.tag,{el:_.Z7(ZKN(c.data),M1Y(c.data.config))},c.parts.map(yJh));return mf(c)};
DWY=function(c,f){return c===f?!0:c===void 0||f===void 0?!1:c.noStyleRuns===f.noStyleRuns&&c.noLinkColor===f.noLinkColor&&c.noEndpoints===f.noEndpoints&&c.headerRuns===f.headerRuns&&c.isOverlay===f.isOverlay&&c.linkInheritColor===f.linkInheritColor&&c.userInput===f.userInput};
eZr=function(c){return function(){var f,d,q,Z,M,g,O,l,m,H,A,Y,t,E;return{ariaLabel:(f=c.ariaLabel)==null?void 0:f.call(c),className:(d=c.className)==null?void 0:d.call(c),ellipsisTruncate:(q=c.ellipsisTruncate)==null?void 0:q.call(c),isOverlay:(Z=c.isOverlay)==null?void 0:Z.call(c),linkInheritColor:(M=c.linkInheritColor)==null?void 0:M.call(c),noEndpoints:(g=c.noEndpoints)==null?void 0:g.call(c),noStyleRuns:(O=c.noStyleRuns)==null?void 0:O.call(c),noLinkColor:(l=c.noLinkColor)==null?void 0:l.call(c),
noPreWrap:(m=c.noPreWrap)==null?void 0:m.call(c),noWrap:(H=c.noWrap)==null?void 0:H.call(c),skipOnClick:(A=c.skipOnClick)==null?void 0:A.call(c),stopPropagation:(Y=c.stopPropagation)==null?void 0:Y.call(c),userInput:(t=c.userInput)==null?void 0:t.call(c),headerRuns:(E=c.headerRuns)==null?void 0:E.call(c)}}};
Npn=function(c){return c.value===""||c.value==="true"?!0:c.value==="false"?!1:isNaN(Number(c.value))?c.value:Number(c.value)};
r_=function(c,f){c=new IoY(c,f);_.VO(c);throw c;};
PvG=function(c,f,d){var q=qyn(c);c._numRenders=0;try{var Z=_.iO4(function(){return _.B(f,Object.assign({},d))})}catch(g){var M=function(O){O.args||(O.args=[]);
O.args.push("Error in web component wrapper");O.args.push(c.tagName.toLowerCase());return O};
_.XX(g instanceof Error?M(g):new IoY("Wiz rendering error",c.tagName.toLowerCase()));throw g;}finally{qyn(q)}return Z};
_.g_=function(c,f,d){function q(H){var A={};H=_.C(H);for(var Y=H.next();!Y.done;Y=H.next()){Y=Y.value;var t=void 0,E=void 0,J=void 0,X=_.Yn((J=(E=(t=Y).getAttribute)==null?void 0:E.call(t,"slot"))!=null?J:"children");if(t=A[X])t.push(Y);else if(X in M||X==="children")A[X]=[Y]}H=_.C(Object.keys(A));X=H.next();for(Y={};!X.done;Y={content$jscomp$56:void 0},X=H.next())X=X.value,X!=="children"&&(Y.content$jscomp$56=A[X],A[X]=function(u){return function(){return u.content$jscomp$56}}(Y));
return A}
d=d===void 0?{}:d;c.componentType!==bm||r_("Components must be marked reactive to be used from web component wrapper.",f);gN.has(f)&&r_("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",f);var Z,M=(Z=d.props)!=null?Z:{};kp.add(f);var g=RZk();Z=function(){var H=g.apply(this,arguments)||this;H.rawProps={};H.queuingRender=!1;H.dispose=function(){};
H.isWebComponentWrapper=!0;H.isReparenting=!1;H.hasRendered=!1;return H};
_.K(Z,g);Z.prototype.render=function(){this.hasRendered=!0;for(var H=_.C([].concat(_.LT(this.attributes))),A=H.next();!A.done;A=H.next())A=A.value,A.name!=="slot"&&A.name!=="hidden"&&this.removeAttribute(A.name);H=Object.assign({},this.componentProps,this.slotProps);A=_.C(PvG(this,c,H));H=A.next().value;A=A.next().value;!(H[0]instanceof Element)||H.length>1?r_("Wrapped Wiz components must return a single root element.",f):(H=H[0].tagName.toLowerCase(),H!==f&&r_("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(H+" !== '"+f),f),this.dispose=A)};
Z.prototype.setUpProps=function(){for(var H=this.rawProps,A=this.attributes,Y=_.C(Object.keys(M)),t=Y.next();!t.done;t=Y.next()){t=t.value;var E=void 0;((E=this)==null?0:E[t])&&this[t]!==UWk&&H[t]===void 0&&(H[t]=this[t],(E=Object.getOwnPropertyDescriptor(this.constructor.prototype,t))&&Object.defineProperty(this,t,E))}Y=_.C(A);for(t=Y.next();!t.done;t=Y.next()){E=t.value;t=_.Yn(E.name);var J=t==="class"&&!A.getNamedItem("class-name");if(t in M||J)E=Npn(E),t!=="class"||H.className?H[t]=E:H.className=
E}A={};for(var X in M)M[X]!==_.Cs&&M[X]!==pMe&&(H[X]instanceof Function&&r_("Function props must be configured as STATIC, not SIGNAL.",f),t=_.C(_.OT(H[X],void 0,"Ri8MSe")),Y=t.next().value,t=t.next().value,A[X]=t,H[X]=Y);H=_.C([H,A]);this.componentProps=H.next().value;this.setters=H.next().value;this.slotProps=q(this.childNodes)};
Z.prototype.connectedCallback=function(){rN===f&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in M&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Z.prototype.disconnectedCallback=function(){if(!this._isInert){var H;a:{if(_.xWN)for(H=this;H;){if(_.oyk.has(H)){H=!0;break a}H=H.parentElement}H=!1}if(H)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){H=_.C([].concat(_.LT(this.attributes)));for(var A=H.next();!A.done;A=H.next()){A=A.value;var Y=void 0;A.name==="slot"||A.name==="hidden"&&((Y=d.unsafeExternallySettableAttributes)==null?0:Y.has("hidden"))||this.removeAttribute(A.name)}}this.innerText="";pBe(this)}}};
Z.prototype._setPendingPropertyOrPath=function(){};
Z.prototype.notifyPath=function(){};
_.ci.Object.defineProperties(Z.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var O=_.C(Object.keys(M)),l=O.next(),m={};!l.done;m={prop$jscomp$104:void 0},l=O.next())m.prop$jscomp$104=l.value,l=void 0,((l=d.legacyPolymer)==null?0:l.forwardHostProps)&&Pyk.has(m.prop$jscomp$104)||Object.defineProperty(Z.prototype,m.prop$jscomp$104,{set:function(H){return function(A){var Y=this;this._isInert||(this.setters?mK(function(){var t,E;return void((E=(t=Y.setters)[H.prop$jscomp$104])==null?void 0:E.call(t,A))}):(this.rawProps[H.prop$jscomp$104]=A,this.queuingRender&&H.prop$jscomp$104===
"data"&&A!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(m),
get:GOY.has(m.prop$jscomp$104)?void 0:function(){return UWk}});
customElements.define(f,Z)};
_.cze=function(c,f){return(c=_.kZ(c,f))?_.Lq(_.XD(c)):null};
_.OV=function(c){if(c=_.kZ(c,Number.MAX_VALUE,void 0,"width"))return _.XD(c)};
_.kZ=function(c,f,d,q){q=q===void 0?"width":q;if(!c||!c.length)return null;if(_.F("kevlar_tuner_should_always_use_device_pixel_ratio")){var Z=window.devicePixelRatio;_.F("kevlar_tuner_should_clamp_device_pixel_ratio")?Z=Math.min(Z,_.rx("kevlar_tuner_clamp_device_pixel_ratio")):_.F("kevlar_tuner_should_use_thumbnail_factor")&&(Z=_.rx("kevlar_tuner_thumbnail_factor"));fYk=Z}else fYk||(fYk=window.devicePixelRatio);Z=fYk;_.F("kevlar_tuner_should_always_use_device_pixel_ratio")?f*=Z:Z>1&&(f*=Z);if(_.F("kevlar_tuner_min_thumbnail_quality"))return c[0].url||
null;Z=c.length;if(_.F("kevlar_tuner_max_thumbnail_quality"))return c[Z-1].url||null;if(d)for(var M=0;M<Z;M++)if(c[M].url.indexOf(d)>=0)return c[M].url||null;for(d=0;d<Z;d++)if(c[d][q]>=f)return c[d].url||null;for(f=Z-1;f>0;f--)if(c[f][q])return c[f].url||null;return c[0].url||null};
qvk=function(){lS.size?setTimeout(function(){sV(d4k)},0):jqN=0};
d4k=function(){var c=(0,_.qR)(),f=null,d=!1;lS.forEach(function(Z){Z.loaded=!0;Z.loadTime=c;Z.pendingPaint=!1;var M=ZJN.get(Z);M&&M.resolve(c);f=Z;d||!Z.ftlEligible&&Z.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(d=!0)});
var q;((q=f)==null?0:q.markDirty)&&f.markDirty();lS.clear();jqN=0;d&&MNN(c)};
rzC=function(c){lS.add(c);c.pendingPaint=!0;jqN||(jqN=_.Br(_.a7,qvk))};
CQk=function(c){c.loaded=!1;c.loadTime=Infinity;var f=ZJN.get(c);f&&(f.reject(Error("lh")),ZJN.delete(c));c.pendingPaint&&(lS.delete(c),c.pendingPaint=!1)};
_.gj4=function(c){var f=c.indexOf(":");return f===-1?{originalName:c}:{originalName:c.substring(0,f),datasyncId:c.substring(f+1)}};
_.OJl=function(){return _.k(function(c){if(kjG!==void 0)return c.return(kjG);kjG=new Promise(function(f){var d;return _.k(function(q){switch(q.nextAddress){case 1:return _.iY(q,2),q.yield(_.iS.open("test-only"),4);case 4:return q.yield(_.iS.delete("test-only"),5);case 5:_.Pq(q,3);break;case 2:if(d=_.Yw(q),d instanceof Error&&d.name==="SecurityError")return f(!1),q.return();case 3:f("caches"in window),_.Fm(q)}})});
return c.return(kjG)})};
BVM=function(){return _.k(function(c){if(c.nextAddress==1)return c.yield(_.OJl(),2);if(!c.yieldResult)return c.return(void 0);lYk||(lYk=new sqM);return c.return(lYk)})};
iJk=function(c){var f,d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:return M.yield(BVM(),2);case 2:f=M.yieldResult;if(!f)throw Error("nh");return M.yield(f.open("yt-player-local-img"),3);case 3:return d=M.yieldResult,M.yield(d.match(c),4);case 4:q=M.yieldResult;if(!q)throw Error("oh");return M.yield(q.blob(),5);case 5:return Z=M.yieldResult,M.return(Z)}})};
TVk=function(c,f){for(var d in c)if(c.hasOwnProperty(d)&&f[d])return d;return null};
m4N=function(c){return"stamp"+c.replace("-","_")+"_"};
HJN=function(c){var f=c.match(/\[\[([\w\.]+)\]\]/);if(f&&f.length>1)return f[1];_.VO(Error("qh`"+c));return null};
Azh=function(c){return c===void 0?_.wi("REUSE_COMPONENTS",!1):c||!1};
tNn=function(c,f,d){d&&(f.is?(Yvr.has(f)&&(c=Yvr.get(f),d=c.listener,delete f[c.property],d.type==="element"&&f.removeEventListener(d.eventName,d.handler),Yvr.delete(f)),Fsk(f)):f.__proto__==HTMLElement.prototype&&(f=new _.KD("Rendererstamper removed a non custom element","Stamper: "+c+" element: "+(f&&f.nodeName)),_.u6(f)))};
bJn=function(c,f,d,q){var Z=f.node?f.node:f;_.r1(d).parentNode===Z&&(f.removeChild(d),tNn(c,d,q));if(c=T3.get(d))T3.delete(d),_.a7.cancelJob(c);d.hidden=!1};
KsY=function(c,f,d,q){if(f&&f.children&&(d=f.children[d]))if(_.wi("DEFERRED_DETACH"))for(;d&&!T3.has(d);){var Z=c,M=f,g=d,O=q;g.hidden=!0;Z=_.Em(_.a7,bJn.bind(null,Z,M,g,O),0);T3.set(g,Z);d=d.nextElementSibling}else for(;(g=f.lastElementChild)&&(f.removeChild(g),tNn(c,g,q),g!=d););};
EjN=function(c){var f=_.xz("__slot-el");_.L9(function(){for(var d=_.C(c.slotContent),q=d.next();!q.done;q=d.next())f.value.appendChild(q.value)});
return _.B("__slot-el",{el:f,skip:!0})};
_.m$=function(c,f,d){d=d===void 0?nj4:d;gN.add(f);var q;(q=d).propNames!=null||(q.propNames=[]);var Z=new Set(d.propNames),M=RZk();q=function(){var m=M.call(this)||this;m.props={};m.isUpdating=!1;m.hasAttached=!1;m.isInert=!1;m.updateQueued=!1;m.initialClasses=[];jPk(m,f);return m};
_.K(q,M);q.prototype.forwardKebabCaseProp=function(m,H){m=_.Yn(m);if(Z.has(m)||m==="children")this.props[m]=H};
q.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var m=_.C(this.initialClasses),H=m.next();!H.done;H=m.next())(H=H.value)&&this.classList.add(H);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
q.prototype.handleSlottedContent=function(){for(var m=new Map,H=_.C(this.children),A=H.next();!A.done;A=H.next()){A=A.value;var Y=void 0,t=(Y=A.getAttribute("slot"))!=null?Y:"children";(Y=m.get(t))?Y.push(A):m.set(t,[A]);if(!A.getAttribute("key")){var E=void 0,J=void 0;A.setAttribute("key",t+"_"+((J=(E=Y)==null?void 0:E.length)!=null?J:0))}}m=_.C(m);for(H=m.next();!H.done;H=m.next())A=_.C(H.value),H=A.next().value,A=A.next().value,this.forwardKebabCaseProp(H,_.B(EjN,{slotContent:A}))};
q.prototype.connectedCallback=function(){var m=this;if(!jPk(this,f)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var H=_.C(this.attributes),A=H.next();!A.done;A=H.next())A=A.value,this.forwardKebabCaseProp(A.name,Npn(A));this.handleSlottedContent();d.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){m.afterFirstPatch()});
this.hasAttached=!0}};
q.prototype.attributeChangedCallback=function(m,H,A){this.isInert||this.isUpdating||this.isConnected||m!=="class"||this.initialClasses.push.apply(this.initialClasses,_.LT(A.split(" ")))};
q.prototype.disconnectedCallback=function(){JiN(this)};
q.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var m,H;UYk(this,_.B(c,Object.assign({},this.props,{idomKey:(H=(m=this.__incrementalDOMData)==null?void 0:m.key)!=null?H:f})),!0)}catch(Y){var A=Y instanceof Error?Y:new _.KD("Wiz rendering error");A.args||(A.args=[]);A.args.push("Error in deprecated web component wrapper");A.args.push(f.toLowerCase());_.VO(A);throw Y;}finally{this.updateQueued=this.isUpdating=!1}}};
q.prototype.enqueueUpdate=function(){var m=this;return _.k(function(H){if(d.synchronous)return m.update(),H.return();if(m.updateQueued)return H.return();m.updateQueued=!0;return H.return(Promise.resolve().then(function(){m.update()}))})};
q.prototype.notifyPath=function(){d.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.ci.Object.defineProperties(q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var g=_.C(d.propNames),O=g.next(),l={};!O.done;l={prop$jscomp$106:void 0},O=g.next())l.prop$jscomp$106=O.value,Object.defineProperty(q.prototype,l.prop$jscomp$106,{set:function(m){return function(H){this.isInert||H===this.props[m.prop$jscomp$106]||(this.props[m.prop$jscomp$106]=H,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(l)});
customElements.define(f,q)};
_.$4N=function(c,f){return _.Bb(c.entities,"markersEngagementPanelSyncEntity",f)};
QqG=function(c,f){return _.Bb(c.entities,"fantasyWinProbabilityEntity",f)};
SvN=function(c,f){return _.Bb(c.entities,"fantasyTeamEntity",f)};
Lsk=function(c,f){return _.Bb(c.entities,"fantasyPlayerEntity",f)};
znr=function(c,f){return _.Bb(c.entities,"booleanEntity",f)};
Jzk=function(c,f){return _.Bb(c.entities,"qrCodeEntity",f)};
aYe=function(c){return _.Bb(c.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
VNN=function(){if(Hr)return Hr;if(window.lottie)return Hr=Promise.resolve(window.lottie);var c=_.Vm(_.hk("LOTTIE_URL"));return c?Hr=new Promise(function(f,d){var q=document.createElement("script");q.addEventListener("load",function(){f(lottie)});
q.addEventListener("error",function(Z){var M="Lottie library failed to load.";Z?Z.message&&(M+=" Original description: "+Z.message,_.wK(Z,M)):Z=Error(M);_.u6(Z);d(Z)});
q.setAttribute("async","");_.oh(q,c);document.head.appendChild(q)}):Promise.reject(Error("rh"))};
XGM=function(){return Hr?Hr:VNN()};
upl=function(c){if(c)switch(c){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.F("kevlar_use_wil_icons"))return c=(c=aYe(_.Gh().getState()))&&c.animationLightUrl&&c.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:c.animationLightUrl,pathDarkTheme:c.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,c?c:Ap.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Ap.get("LIKE_DELHI_PLAYER")}};
vjC=function(c){var f=upl(c);if(f)return f;switch(c){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Ap.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Ap.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Ap.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Ap.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Ap.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Ap.get("NOTIFICATION_BELL")}};
hnM=function(c,f){if(!c.closest)return!1;f=!!upl(f);return _.hk("ID_TOKEN")&&f?!!c.closest("segmented-like-dislike-button-view-model")||!!c.closest("yt-player-quick-action-buttons"):!1};
yzY=function(c,f){if(!c||wG4)f=!1;else{var d;if(!(d=hnM(c,f)))if(c.closest)if(d=!_.hk("ID_TOKEN"),c=c.closest("ytd-subscription-notification-toggle-button-renderer-next"),d||!c)d=!1;else{var q;d=((q=c.data)==null?void 0:q.targetId)==="notification-bell"&&f!=="EXPAND_MORE"}else d=!1;f=d}return f};
Wsh=function(c){var f,d;return _.k(function(q){switch(q.nextAddress){case 1:return _.iY(q,2),q.yield(fetch(c),4);case 4:return f=q.yieldResult,q.yield(f.json(),5);case 5:return q.return(q.yieldResult);case 2:d=_.Yw(q),_.u6(d),_.Fm(q)}})};
D4P=function(c,f){var d,q,Z;return _.k(function(M){if(M.nextAddress==1)return(d=f?c.pathDarkTheme:c.path)?M.yield(Promise.all([Wsh(d),VNN()]),2):M.return();q=M.yieldResult;Z=q[0];YZ.set(d,Z);_.Fm(M)})};
_.FY=function(){for(var c=_.hv.apply(0,arguments),f=!0,d=_.C(c),q=d.next();!q.done;q=d.next())if(typeof q.value!=="string"){f=!1;break}return f?c.join(" ").trim()||void 0:function(){for(var Z="",M=_.C(c),g=M.next();!g.done;g=M.next())if(g=g.value,typeof g==="function"&&(g=g()),g)if(typeof g==="string")Z+=" "+g;else for(var O in g)if(g.hasOwnProperty(O)){var l=g[O];typeof l==="function"&&(l=l());l&&(Z+=" "+O)}Z=Z.trim()||void 0;return _.LL(Z)}};
NV4=function(c,f,d,q){function Z(g,O){if(f.value===O&&c!=null&&c.value){for(;c.value.firstChild;)c.value.removeChild(c.value.firstChild);c.value.classList.add("yt-spec-icon-shape");g(c.value,q)}}
d=_.enP(_.ql().resolve(_.mt),d);if(typeof d==="function")f.value=null,Z(d,null);else{var M=new _.i6(d.then,d);f.value=M;M.then(function(g){Z(g,M)})}};
PQz=function(c,f){var d=document.createElement("div"),q=_.$5(d,function(){return _.B(_.T,{cond:c,then:function(Z){return _.B(IYP,{data:Z,options:f})}})});
return[d,q]};
_.tp=function(){for(var c=[],f=_.C(_.hv.apply(0,arguments)),d=f.next();!d.done;d=f.next())if(d=d.value)if(typeof d==="string")c.push(d);else{d=_.C(Object.entries(d));for(var q=d.next();!q.done;q=d.next()){var Z=_.C(q.value);q=Z.next().value;(Z=Z.next().value)&&c.push(q)}}return c.join(" ")};
x4n=function(c){var f=_.xz("animated-rolling-character"),d=Jk(),q=oS(c.character)||oS(c.previousCharacter);onz(function(){if(c.marginMultiplier){var Z;(Z=d.value)==null||Z.cancel();q?(Z=c.previousCharacter?Number(c.previousCharacter)+10:c.rollUp?0:30,c.shouldAnimate||(Z-=RnP(c,Z))):(Z=c.rollUp?0:2,c.shouldAnimate||(Z-=c.rollUp?-1:1));f.value.style.marginTop="-"+Z*c.marginMultiplier+"px";c.shouldAnimate?d.value=U4e(f.value,c,Z,q):f.value.style.display=c.character?"":"none"}});
return _.B("animated-rolling-character",{el:f,class:"animated-rolling-character-wiz"},p1(q,function(){for(var Z=[],M=1;M<30;M++)Z.push(_.B("div",null,M%10));return _.B(_.qD,null,_.B("div",null,"\u00a0"),Z,_.B("div",null,"\u00a0"))},function(){return pG4(c.character)}))};
pG4=function(c){return _.B(_.qD,null,_.B("div",null,"\u00a0"),_.B(_.qD,null,p1(!c||_.gz(c),function(){return _.B("div",null,"\u00a0")},function(){return _.B("div",null,c)})),_.B("div",null,"\u00a0"))};
U4e=function(c,f,d,q){d=new Animation(new KeyframeEffect(c,[{transform:"translateY(0px)"},{transform:"translateY("+(q?RnP(f,d):f.rollUp?-1:1)*f.marginMultiplier+"px)"}],ojC),document.timeline);f.character?(c.style.display="",d.onfinish=null):d.onfinish=function(){c.style.display="none"};
d.play();return d};
RnP=function(c,f){var d=Number(c.character)+10;if(c.previousCharacter)if(c.character){var q=Number(c.character),Z=Number(c.previousCharacter);c=c.rollUp?Z<q?d:d+10:Z<q?d-10:d}else c=c.rollUp?30:0;else c=c.character==="0"?d:c.rollUp?d-10:d+10;return f-c};
_.bS=function(c,f){return function(d){var q={},Z;for(Z in d){var M=void 0,g=void 0;((M=f)==null?0:(g=M.callbacks)==null?0:g[Z])||(q[Z]=d[Z])}return _.B(BBr,null,function(){for(var O in q)d[O]=_.LL(q[O]);d.disableReactiveLogging=!0;return _.B(c,Object.assign({},d))})}};
fNl=function(c,f,d,q,Z,M,g){d=new Animation(new KeyframeEffect(c,[{transform:"translateY(0px)"},{transform:"translateY("+(M?Gj4(f,d,q,Z):q?-1:1)*g+"px)"}],c0Y),document.timeline);f?(c.style.display="",d.onfinish=null):d.onfinish=function(){c.style.display="none"};
d.play();return d};
Gj4=function(c,f,d,q){var Z=Number(c)+10;f?c?(c=Number(c),f=Number(f),d=d?f<c?Z:Z+10:f<c?Z-10:Z):d=d?30:0:d=c==="0"?Z:d?Z-10:Z+10;return q-d};
jde=function(c){var f=Jk(),d=Jk();_.SZ(function(){f.value=c.numberText;d.value=c.numberValue},[c.numberText]);
var q=c.fontSizeMultiplier?c.heightPx*c.fontSizeMultiplier:c.heightPx,Z=rQM(function(){if(c.numberText){var g=c.numberText;var O=c.forceRollUp||!d.value||!c.numberValue||d.value<c.numberValue;var l=!!c.shouldAnimate,m=f.value,H=[],A=0,Y=0,t=(m?m.replace(/\D/g,"").length:0)-(g?g.replace(/\D/g,"").length:0);m=m?m.split(/(\d)/).filter(Boolean):[];for(g=g.split(/(\d)/).filter(Boolean);t<0;){var E=g[Y];H.push({character:E,rollUp:O,marginMultiplier:q,shouldAnimate:l});Y++;oS(E)&&t++}for(;A<t;)E=m[A],H.push({previousCharacter:E,
rollUp:O,marginMultiplier:q,shouldAnimate:l}),A++,oS(E)||t++;for(;Y<g.length;)t=g[Y],E=m[A],oS(t)===oS(E)?(Y++,A++):oS(t)?(A++,t=void 0):oS(E)&&(Y++,E=void 0),H.push({character:t,previousCharacter:E,rollUp:O,marginMultiplier:q,shouldAnimate:l});O=H}else O=[];return O},[c.numberText]),M=c.numberText?["height: "+q+"px;",
"line-height: "+c.heightPx+"px;"].join(" "):"";return _.B("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:M,dir:"ltr","aria-hidden":"true"},Z.map(function(g){return _.B(dJM,Object.assign({},g))}))};
ZPn=function(c){var f;return(f=q94[c])!=null?f:"EVENT_SPAN_TYPE_UNKNOWN"};
MaC=function(c){var f=c.nodeName;if(c.id)return f+="#"+c.id;if(c.classList)for(var d=_.C(c.classList),q=d.next();!q.done;q=d.next())f+="."+q.value;c.parentElement&&(f=MaC(c.parentElement)+" > "+f);return f};
r0l=function(c){return function(f){var d=ZPn(f.type);return d==="EVENT_SPAN_TYPE_UNKNOWN"?c(f):hiz("event",{type:d,nodepath:f.target instanceof Element?MaC(f.target):void 0},function(){return c(f)})}};
_.Ks=function(c){c&&VgN("event")&&(c=r0l(c));return Ny4(function(f){var d,q=(d=c)==null?void 0:d(f);return typeof q==="boolean"?q:!0})};
EV=function(c){return function(){return c()?c():void 0}};
CDz=function(c){return new KeyframeEffect(c,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
gWr=function(c){return new KeyframeEffect(c,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.ns=function(c){var f=M5(function(d){d=d?kk(d[0]):void 0;return _.OT(c(d),void 0,"AwTxXe")},{isEqual:function(d,q){return kk(d[0])===kk(q[0])}});
return[function(){return f()[0]()},
function(d){return void f()[1](d)}]};
_.$Z=function(c){return function(){var f="",d;for(d in c){for(var q=c[d];typeof q==="function";)q=q();q!==void 0&&q!==null&&(f+="; "+d+": "+q)}return f.length>0?_.LL(f.slice(2)):_.LL()}};
k$Y=function(c){switch(c){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"}};
Bwk=function(c,f,d,q,Z,M){var g=OPl(c),O=g.disabled,l=g.iconPosition,m=g.style,H=g.focused,A=function(){return!!E()&&l()==="icon-only"},Y=function(){return!!E()&&l()==="icon-only-40"},t=function(){return!!E()&&l()==="icon-with-label"},E=function(){return!!f||!(q==null||!q())};
return{type:function(){return m()==="call-to-action-inverse"?"text":m()==="overlay-dark"&&c().type!=="filled"&&c().type!=="tonal"?"tonal":c().type},
shouldFocus:function(){return(H()||(M==null?void 0:M()))&&!O()},
hasIconLeading:function(){return!!E()&&l()==="leading"},
hasIconTrailing:function(){return!!E()&&l()==="trailing"},
hasIconLeadingTrailing:function(){return!!E()&&!!(d||Z!=null&&Z())&&l()==="leading-trailing"},
hasIconOnly:A,hasIconOnly40:Y,hasIconWithLabel:t,iconButton:function(){return A()||Y()||t()},
visiblyDisabled:function(){return(O()?"disabled":c().state)==="disabled"||O()},
overrideSmallSizeIcon:function(){return!c().ignoreIconSizeOverride&&lNe(c(),E())},
iconToRender:f?f:function(){return _.B(_.Qy,{icon:q,size:function(){return SC(c(),!0,c().ignoreIconSizeOverride)},
active:function(){return c().toggled},
iconFilter:function(){return sdP(c())}})},
secondaryIconToRender:d?d:function(){return _.B(_.Qy,{icon:Z,size:function(){return SC(c(),!0,c().ignoreIconSizeOverride)},
active:function(){return c().toggled},
iconFilter:function(){return sdP(c())}})}}};
OPl=function(c){return{size:function(){return c().size},
style:function(){return c().style},
focused:function(){return c().focused},
disabled:function(){return c().disabled},
onTap:function(f){var d,q;return(q=(d=c()).onTap)==null?void 0:q.call(d,f)},
alignByText:function(){return c().alignByText},
aTagConfig:function(){return c().aTagConfig},
customColors:function(){return c().customColors},
segmentedPosition:function(){return c().segmentedPosition},
toggled:function(){return c().toggled},
toggleable:function(){return c().toggleable},
accessibilityLabel:function(){return c().accessibilityLabel},
onToggle:function(f){var d,q;return(q=(d=c()).onToggle)==null?void 0:q.call(d,f)},
iconPosition:function(){return c().iconPosition},
oneOffCustomTextWrap:function(){return c().oneOffCustomTextWrap},
disableTextEllipsis:function(){return c().disableTextEllipsis},
disableBackdropFilter:function(){return c().disableBackdropFilter},
tooltipText:function(){return c().tooltipText},
ariaHidden:function(){return c().ariaHidden},
tabIndex:function(){return c().tabIndex},
buttonText:function(){return c().buttonText},
formattedButtonText:function(){return c().formattedButtonText},
animatedTextProps:function(){return c().animatedTextProps}}};
iPh=function(c){return c.style==="overlay-dark"?4:c.style==="overlay"?c.type==="filled"?4:3:c.type==="filled"||c.style==="call-to-action-inverse"||c.style==="mono-inverse"?2:1};
lNe=function(c,f){f=(c.iconPosition==="icon-only"||c.iconPosition==="icon-only-40"||c.iconPosition==="icon-with-label")&&f;return!c.segmentedPosition&&f&&c.size==="S"};
TwN=function(){return!_.F("web_disable_backdrop_filter")};
SC=function(c,f,d){switch(c.size){case "XS":return 16;case "S":return!d&&lNe(c,f)?24:16;default:return 24}};
mJY=function(c){switch(c){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"}};
HPY=function(c){switch(c){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"}};
A0n=function(c){switch(c){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"}};
sdP=function(c){if(c.style==="overlay-dark"&&c.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Y9h=function(c){if(!c)return{};var f=c.color,d=c.backgroundColor;c=c.borderColor;var q="";f&&(q+="color: "+f+";");d&&(q+="background-color: "+d+";");c&&(q+="border-color: "+c+";");return{style:q}};
EWN=function(c,f,d){var q=c.buttonText,Z=c.formattedButtonText,M=c.formattedButtonTextLegacy,g=c.animatedTextProps,O=c.style,l=c.size,m=c.focused,H=c.disabled,A=c.onTap,Y=c.alignByText,t=c.aTagConfig,E=c.customColors,J=c.segmentedPosition,X=c.toggled,u=c.toggleable,W=c.accessibilityLabel,p=c.onToggle,N=c.iconPosition,I=c.oneOffCustomTextWrap,R=c.disableTextEllipsis,qN=c.disableBackdropFilter,kl=c.tooltipText,BN=c.ariaHidden,tP=c.tabIndex,EC=c.ignoreIconSizeOverride,AP=c.state,eM=c.type;O==="call-to-action-inverse"&&
(eM="text");O==="overlay-dark"&&eM!=="filled"&&eM!=="tonal"&&(eM="tonal");var ue=!!f&&N==="leading",BH=!!f&&N==="trailing",J3=!!f&&!!d&&N==="leading-trailing",lr=!!f&&N==="icon-only",xl=!!f&&N==="icon-only-40",Tv=!!f&&N==="icon-with-label",ir=lr||xl||Tv;H&&(AP="disabled");var $_=AP==="disabled"||H;EC=!EC&&lNe(c,!!f);AP={};var AH=(AP["yt-spec-button-shape-next"]=!0,AP[mJY(eM)]=!0,AP[HPY(O)]=!$_,AP["yt-spec-button-shape-next--disabled"]=!!$_,AP[A0n(l)]=!0,AP["yt-spec-button-shape-next--focused"]=!!m&&
!H,AP["yt-spec-button-shape-next--icon-trailing"]=BH,AP["yt-spec-button-shape-next--icon-leading"]=ue,AP["yt-spec-button-shape-next--icon-leading-trailing"]=J3,AP["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=J3&&!(q||Z),AP["yt-spec-button-shape-next--icon-button"]=lr||Tv,AP["yt-spec-button-shape-next--icon-only-default"]=xl,AP["yt-spec-button-shape-next--align-by-text"]=!!Y,AP["yt-spec-button-shape-next--segmented-start"]=J==="start",AP["yt-spec-button-shape-next--segmented-end"]=J===
"end",AP["yt-spec-button-shape-next--override-small-size-icon"]=EC,AP["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!I,AP["yt-spec-button-shape-next--disable-text-ellipsis"]=!!R,AP["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!qN&&TwN(),AP),U3=function(){if(g)KrY(_.F7N)(g);else if(M)M(N==="icon-with-label"||I?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(Z){var eu=N==="icon-with-label"||I;wMh(Object.assign({},
Z,eu?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!eu})}else q&&GZ(q)},MN=function(eu){A==null||A(eu);
u&&(p==null||p(eu))},qH=t?tak:bPh,br=t?"aria-current$":"aria-pressed$",YS=function(){f&&(ue||J3||ir)&&function(){Ls({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){f()})}();
(q||Z||M||g)&&!ir&&function(){Ls({className:"yt-spec-button-shape-next__button-text-content"},function(){U3()})}();
BH&&function(){Ls({className:"yt-spec-button-shape-next__icon"},function(){f()})}();
J3&&function(){Ls({className:"yt-spec-button-shape-next__secondary-icon"},function(){d()})}();
H||KrY(_.z3)({model:{color:iPh(c)}})},Y_=function(){var eu={};
qH(Object.assign({},(eu.className=_.tp(AH),eu.onclick=t?void 0:MN,eu.disabled=H,eu["aria-disabled$"]=$_,eu.style=H&&t?"pointer-events:none":void 0,eu[br]=u?!!X:void 0,eu["aria-label$"]=W,eu.title$=kl!=null?kl:"",eu["aria-hidden$"]=BN,eu.tabindex$=tP,eu),t,Y9h(E)),function(){YS()})};
Tv?(l={},O=(l["yt-spec-button-shape-with-label"]=!0,l["yt-spec-button-shape-with-label--is-overlay"]=O==="overlay"||O==="overlay-dark",l),K7N({className:_.tp(O)},function(){Y_();Ls({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},U3)})):Y_()};
$JP=function(c,f){if(!x6){var d;fBM(function(){return d=lLk(c,f)});
return d}c.parent=_.nWl();return lLk(c,f)};
_.nWl=function(){var c=_.GD(x6||void 0,gsh);return _.t6k(c)?void 0:c};
Jp=function(c){return c&&c.endsWith("px")?Number(c.slice(0,-2)):0};
L7P=function(c){var f=f===void 0?{}:f;c=_.C(_.ns(c));var d=c.next().value;return[function(q){var Z=_.TZ(function(){var O,l,m,H;return{text:(O=d())!=null?O:"",location:(l=f.location)!=null?l:"bottom",offset:(m=f.offset)!=null?m:16,delay:(H=f.delay)!=null?H:1}},void 0,"MgTrkc");
_.$k(function(){var O=Z();kk(function(){_.a7.addJob(function(){aT.notify(q,O)},4)})},"WlsgZc");
var M=function(){Qdh(q,Z())},g=function(){S9Y()};
q.addEventListener("mouseenter",M);q.addEventListener("focus",M);q.addEventListener("mouseleave",g);q.addEventListener("blur",g);q.addEventListener("tap",g);_.Q4(function(){q.removeEventListener("mouseenter",M);q.removeEventListener("mouseleave",g);q.removeEventListener("focus",M);q.removeEventListener("blur",g);q.removeEventListener("tap",g);S9Y()})},
c.next().value]};
Vy=function(c,f){_.eq(c,Object.assign({},f,{forceClickLogging:!0}))};
J0k=function(c,f){var d=_.D9(c==null?void 0:c.onTap),q={};d&&(q.getClickedVisualElement=function(){var Z;return zSl(c,d,f==null?void 0:(Z=f.value)==null?void 0:Z.visualElement)});
q=_.NV({elementsCommand:c.onTap,forceNewState:!0,additionalCommandArgs:q});return If(q)?q:void 0};
aNN=function(c,f,d,q){Vy(c,Object.assign({},{form:{element:f,event:d}},q))};
Vae=function(c,f,d,q,Z){var M=void 0;return function(g){var O=_.D9(d?c==null?void 0:c.onDisabledTap:c==null?void 0:c.onTap);if(O){var l;M=(l=M)!=null?l:f==null?void 0:f.value;if(O)if(_.F("web_button_vm_click_client_ve_killswitch"))aNN(O,M,g);else{var m;l=zSl(c,O,(m=M)==null?void 0:m.visualElement);if(Z){aNN(O,Z,g,{clickedVisualElement:l,form:{element:Z}});return}aNN(O,M,g,{clickedVisualElement:l})}}q&&q(g)}};
zSl=function(c,f,d){f=f==null?void 0:f.clickTrackingParams;var q,Z;c=c==null?void 0:(q=c.loggingDirectives)==null?void 0:(Z=q.clientVeSpec)==null?void 0:Z.uiType;if(d&&c&&!f)return d};
Xpk=function(c){switch(c){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"}};
uPz=function(c){switch(c){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"}};
vW4=function(c){switch(c){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"}};
hS4=function(c){switch(c){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"}};
wp4=function(c,f){return _.Bb(c.entities,"engagementToolbarStateEntityPayload",f)};
W7M=function(c){(c=_.Q1(c))&&_.y0k(c)};
_.y0k=function(c){var f=_.X2();f&&_.N9(f,c)};
DJC=function(c,f,d){_.gS(c,"yt-open-popup-action",[f,d||c])};
eSn=function(c,f){var d=_.aw(c,"endpoint"),q=_.aw(c,"action");return(d=q?q:d)&&f&&(d=f.navigationEndpointPopupMap[d])&&(c=_.D5(d,c),(d=_.aw(c,"renderer"))&&f.supportedPopups.hasOwnProperty(d))?{openPopupAction:{popupType:f.popupTypeMap[d],popup:c}}:null};
Nwn=function(c,f,d,q){if(q){var Z;d=d==null?void 0:(Z=d.data)==null?void 0:Z.contents;(Z=d instanceof Array&&d.length?d[0]:d)&&(d=_.aw(Z,"renderer"))&&q.supportedPopups.hasOwnProperty(d)&&(f.stopPropagation(),DJC(c,{openPopupAction:{popupType:q.popupTypeMap[d],popup:Z}}))}};
RSk=function(c,f,d,q){q=q===void 0?!1:q;var Z=INh(f);if(Z){Z.href&&NL(Z.href);var M=f.button;M=M!==void 0?M===0&&!XY(f):!XY(f);Z.data&&M&&PDN(c,Z,f,d,q)}};
PDN=function(c,f,d,q,Z){Z=Z===void 0?!1:Z;var M=_.rx("pbj_navigate_limit",-1)===0;UJN(f);_.ql().resolve(_.dx(Nu));var g=f.data;if(Object.keys(g).length!==0)if(!_.F("unplugged_web_disable_actions_for_cec_endpoint")&&_.b(g,_.BO))_.F("endpoint_behavior_command_executor_fix_killswitch")||(d.preventDefault(),d.stopPropagation()),_.ll(c,[g],c);else if(q=eSn(g,q))g.loggingUrls&&g.loggingUrls.forEach(function(l){l.baseUrl&&_.e6(l.baseUrl)}),d.preventDefault(),d.stopPropagation(),DJC(c,q,f);
else{var O=pph(0,f.data,d);if(c=f.getForm)c=c(),O.tempData=O.tempData||{},O.tempData=Object.assign({},O.tempData,c);c=_.x0(d);if(q=c.find(function(l){return!!l.visualElement}))O.createScreenConfig=O.createScreenConfig||{},O.createScreenConfig.clickedVisualElement=q.visualElement;
if(!M)if(d.preventDefault(),d.stopPropagation(),_.b(g,_.xJY)&&!Z&&_.Hh.instance)_.Hh.instance.resolveCommand(g,O);else if(_.F("kevlar_command_handler_formatted_string")&&!Z&&_.Hh.instance&&oWl(g))Z=c.find(function(l){return!!l.is})||d.target,d={form:Object.assign({},O,{event:d,
element:Z,originatingNode:f})},_.Hh.instance.resolveCommand(g,d);else{g=_.x0(d);d=[];for(Z=0;Z<g.length;Z++)(M=g[Z].is)&&d.push(M);$Yn({parents:d.join(","),text:f.innerText},function(){_.CZ(f,"yt-navigate",O)})}}};
G$n=function(c){if(c=INh(c))UJN(c),mPl(c.href)};
INh=function(c){c=_.x0(c);for(var f,d=0;d<c.length;d++)if(f=c[d],f.tagName==="A"&&f.classList.contains("yt-simple-endpoint")){if(!f.data)break;return f}return null};
XY=function(c){return c.shiftKey||c.altKey||c.metaKey||c.ctrlKey};
cyN=function(c,f){var d={itct:f.clickTrackingParams};_.F("kevlar_client_side_screens")&&(!_.b(f,_.EO)||_.F("kevlar_exclude_endpoint_killswitch"))&&(d.endpoint=JSON.stringify(f));_.F("enable_unknown_lact_fix_on_html5")&&_.ql().resolve(_.dx(_.uS))&&(d.lact=_.ZZ());BYN(d);_.cO(c,d)};
UJN=function(c){c.href&&Object.keys(c.data).length!==0&&cyN(c.href,c.data)};
oWl=function(c){for(var f=_.C(ftN),d=f.next();!d.done;d=f.next())if(c[d.value])return!1;return!0};
_.vr=function(c,f){if(f){var d={};dmk.forEach(function(q){q=jyY(f,q,"--yt-lightsource-");Object.assign(d,q)});
qYh.forEach(function(q){q=jyY(f,q,"--yt-basic-");Object.assign(d,q)});
_.la(c,d)}};
jyY=function(c,f,d){var q={};q[d+_.Ai(f)]=c&&c[f]?_.WS(c[f]):"";return q};
_.w_=function(c,f,d){hp[c]||(hp[c]={});hp[c][f]=d};
_.yy=function(c){hp[c]||(hp[c]={});return hp[c]};
ZkY=function(c){if(!c)return{};var f=c.foregroundTitleColor,d=c.backgroundColor;c=c.borderColor;var q="text";c?q="outline":d&&(q="filled");return{type:q,customColors:{color:f?_.WS(f):void 0,backgroundColor:d?_.WS(d):void 0,borderColor:c?_.WS(c):void 0}}};
kIr=function(c){var f=c.renderer;var d=c.element;var q=c.commandController;var Z=c.onTapCallback;var M=c.skipCommandHandling;var g=c.overrides;var O=c.forceIcon;var l=c.forceModernIconButton;var m=c.forceDisabled;var H=c.isSubscribe===void 0?!1:c.isSubscribe;var A=c.isPressed===void 0?!1:c.isPressed;var Y=c.useButtonSize===void 0?!1:c.useButtonSize;c=MHN(f);H&&(c.style="mono",c.type="filled");O=!f.icon||!O&&f.text?f.icon?f.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:l?"icon-only":"icon-only-40";O==="icon-only-40"&&(c.type="text");var t;l=Object;H=l.assign;Y=ryk(f,Y);A=!!f.isSelected||!_.F("web_propagate_is_pressed_killswitch")&&!!A;var E=f.isSelected!==void 0;m=m===void 0?f.isDisabled:m;var J=f.text?_.he(f.text):void 0;var X,u,W,p=((X=f.accessibilityData)==null?void 0:(u=X.accessibilityData)==null?void 0:u.label)||((W=f.accessibility)==null?void 0:W.label);X=p?p:_.xC(f.text);d=CNe(f,d,q,Z,M);q=gBz(f);q!=null&&q.length?(q=_.NV({innertubeCommand:QDh(q),
forceNewState:!0}),q=If(q)?q:void 0):q=void 0;return H.call(l,{},c,Y,{iconPosition:O},g,{focused:!1,toggled:A,toggleable:E,disabled:m,formattedButtonText:J,accessibilityLabel:X,onTap:d,aTagConfig:q},ZkY((t=f.colorData)==null?void 0:t.basicColorPaletteData),{oneOffCustomTextWrap:f.oneOffCustomTextWrap})};
CNe=function(c,f,d,q,Z){return function(M){var g=gBz(c);q(g,M);if(!Z){g=_.C(g);for(var O=g.next();!O.done;O=g.next())Vy(O.value,{form:{element:f,event:M},commandController:d})}}};
gBz=function(c){var f=[];c.command&&f.push(c.command);c.serviceEndpoint&&f.push(c.serviceEndpoint);c.navigationEndpoint&&f.push(c.navigationEndpoint);return f};
ryk=function(c,f){if(f)switch(c.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(c.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
MHN=function(c){switch(c.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"}}};
OkM=function(c,f){return typeof c!=="object"||c===null?!1:Object.keys(f).every(function(d){return d in c})};
ltY=function(c,f,d){return kNn(d,function(q,Z){return function(M){var g=_.hv.apply(1,arguments);return OkM(M,c)?Z.apply(null,[M[f]].concat(_.LT(g))):Z.apply(null,[M].concat(_.LT(g)))}})};
_.Wr=function(c){return c!=null&&c.watch?c.watch.isTheaterMode:!1};
_.D7=function(c){return c!=null&&c.watch?c.watch.isWatchFullscreen:!1};
_.eC=function(c){c=_.syz(c);return _.F("web_watch_enable_single_column_grid_view")?c:!1};
_.syz=function(c){return c.watch.isWatchNarrowWidth};
_.Bmn=function(c){return c.watch.openEngagementPanels};
_.N5=function(c){return _.TZ(function(){ZfC()();return CyN(c)},{debugName:"d8B62c"},"wfRQAb")};
IT=function(c,f){return _.Bb(c.entities,"likeStatusEntity",f)};
ikN=function(c,f){return _.Bb(c.entities,"likeCountEntity",f)};
_.Tmz=function(c,f){return _.Bb(c.entities,"stringEntity",f)};
mmM=function(c,f){if(!c)return!1;var d,q=(d=_.b(c,_.Ti))==null?void 0:d.signal;if(q&&f.signalEndpointMap)return!!f.signalEndpointMap[q];var Z;if((d=(Z=_.b(c,_.Pr))==null?void 0:Z.request)&&f.continuationEndpointMap)return!!f.continuationEndpointMap[d];for(var M in c)if(f.commandEndpointMap[M])return!0;return!1};
Hkk=function(c,f){if(f.streamingEndpointMap)for(var d in c)if(f.streamingEndpointMap[d]&&(c=f.streamingEndpointMap[d]))return c()};
AyN=function(c,f){var d,q=(d=_.b(c,_.Ti))==null?void 0:d.signal;if(q&&f.signalEndpointMap&&(d=f.signalEndpointMap[q]))return d();var Z;if((d=(Z=_.b(c,_.Pr))==null?void 0:Z.request)&&f.continuationEndpointMap&&(Z=f.continuationEndpointMap[d]))return Z();for(var M in c)if(f.commandEndpointMap[M]&&(c=f.commandEndpointMap[M]))return c()};
YYz=function(c){var f={"Content-Type":"application/json"};_.hk("EOM_VISITOR_DATA")?f["X-Goog-EOM-Visitor-Id"]=_.hk("EOM_VISITOR_DATA"):_.hk("VISITOR_DATA")&&(f["X-Goog-Visitor-Id"]=_.hk("VISITOR_DATA"));f["X-Youtube-Bootstrap-Logged-In"]=_.hk("LOGGED_IN",!1);_.hk("DEBUG_SETTINGS_METADATA")&&(f["X-Debug-Settings-Metadata"]=_.hk("DEBUG_SETTINGS_METADATA"));c!=="cors"&&((c=_.hk("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(f["X-Youtube-Client-Name"]=c),(c=_.hk("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(f["X-Youtube-Client-Version"]=
c),(c=_.hk("CHROME_CONNECTED_HEADER"))&&(f["X-Youtube-Chrome-Connected"]=c),(c=_.hk("DOMAIN_ADMIN_STATE"))&&(f["X-Youtube-Domain-Admin-State"]=c),_.wi("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(c=_.hk("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(f["X-YouTube-Lava-Device-Context"]=c));return f};
FOr=function(c,f){f.watchNextResponse||f.reelItemWatchResponse?f.watchNextResponse?c.content=f.watchNextResponse:c.content=f.reelItemWatchResponse:f.playerResponse?c.player=f.playerResponse:f.reelWatchSequenceResponse&&(c.reelSequence=f.reelWatchSequenceResponse)};
_.RT=function(c){if(!c)return null;for(var f=[],d=0;d<c.textSegments.length;d++){var q=c.textSegments[d];q.text?f.push(q):q.emojiId&&f.push({emoji_id:q.emojiId})}return{text_segments:f}};
nBk=function(c,f,d,q,Z,M,g){M=M===void 0?[]:M;var O=new _.UV;O.endpoint=d;if(!d)return _.XX(new _.KD("handle undefined endpoint",f.tagName)),O;var l=u8Y(d);l.length&&(_.ll(c,l,f,q),O.actions=l);d.loggingUrls&&d.loggingUrls.forEach(function(H){H.baseUrl&&NR(H.baseUrl,H.attributionSrcMode)});
l=!_.F("web_skip_impression_click_killswitch")&&q&&q.impression;if(d.clickTrackingParams&&!tHk(d)&&!bkP(f)&&!l&&(l=_.bP(),!_.ps(l,f))){var m=f.getScreenLayer&&f.getScreenLayer();m?l.clickCommand(d,null,m):l.clickCommand(d,null)}l=!1;for(m=0;m<M.length;m++)if((0,M[m])(f,d,q)){l=!0;break}!l&&KON(d)&&(O.ajaxPromise=EBk(c,f,d,q,Z,g));return O};
bkP=function(c){var f;return(c=(f=c.data)==null?void 0:f.navigationEndpoint)&&!!c.clickTrackingParams};
tHk=function(c){var f=_.b(c,_.Ti);if(f&&(f=f.signal)&&$m4.indexOf(f)>=0)return!0;for(var d in c)if(QyM.indexOf(d)>=0)return!0;return!1};
KON=function(c){var f;if(((f=_.b(c,_.Ti))==null?void 0:f.signal)==="CLIENT_SIGNAL")return!1;for(var d in c)if(SYC.indexOf(d)>=0)return!1;c=Object.keys(c);return c.length===1&&c[0]==="loggingUrls"?!1:!0};
vBl=function(c,f,d,q,Z,M,g){var O=_.xZ.instance;if(O&&_.oT(O,q))var l=_.G3(O,q,Z).then(function(H){return(H==null?0:H.data)?H:{data:H}});
else l=c.requestDataForServiceEndpoint(q,Z),_.b(q,LOM)||_.b(q,zbz)||_.b(q,_.JyN)||_.b(q,atr)||_.u6(new _.KD("No RequestBuilder for endpoint",q));var m=_.c9();m.promise.thenCatch(function(){var H=_.aw(q,"action")||_.aw(q,"command")||_.aw(q,"endpoint");H&&(H=q[H],H.hasOwnProperty("onFailureAction")?_.ll(f,[H.onFailureAction],d):H.hasOwnProperty("onFailureCommand")&&_.ll(f,H.onFailureCommand,d));l.cancel("Resolver promise rejected")});
l.then(function(H){if(H){var A=H.error;if(A){if(M&&M.onServerError)M.onServerError(q,H);m.reject(new _.KD("Response error",q,A))}else if(H=H.data)if(A=H.error){if(M&&M.onServerError)M.onServerError(q,H);m.reject(new _.KD("Returned error",q,A))}else{VHe(f,d,H,q);XFr(H);if(A=X9M(H))for(var Y=_.C(A),t=Y.next();!t.done;t=Y.next()){t=t.value;var E=_.ql().resolve(_.dx(uUN))||fa;if(!_.xZ.instance||!E.some(function(X){return!!_.b(q,X)})||_.F("kevlar_response_processor_allowlist_killswitch")){var J=E=void 0;
((J=_.b((E=t)==null?void 0:E.commandMetadata,_.jO))==null?0:J.sendPost)?_.OX(f,[t]):_.ll(f,[t],d)}}(Y=_.b(H==null?void 0:H.frameworkUpdates,dy))&&g&&g(Y);if(M&&M.onSuccess)M.onSuccess(q,H);m.resolve(new _.jc(H,A))}}else m.reject(new _.KD("Invalid service endpoint provided",q))},function(H){m.reject(H)});
return m.promise};
XFr=function(c){var f;(c=(f=_.b(c==null?void 0:c.onResponseReceivedCommand,_.hbn))==null?void 0:f.continuationItems)&&(c==null?void 0:c.length)===1&&_.b(c[0],wFN)&&_.V_("so_r",void 0,"search_overview_answer")};
EBk=function(c,f,d,q,Z,M){var g;return(g=f.getNetworkManager&&f.getNetworkManager()?f.getNetworkManager():_.ql().resolve(_.dx(_.Xw)))?vBl(g,c,f,d,q,Z,M):_.Je("No network manager.")};
VHe=function(c,f,d,q){if(d=d.trackingParams||d.loggingDirectives&&d.loggingDirectives.trackingParams){var Z;(_.b(q,yye)||_.b(q,WOG)||_.b(q,Dmk))&&q.clickTrackingParams?Z=_.Q1(q.clickTrackingParams):_.F("web_graft_to_parent_command")&&q.clickTrackingParams&&(Z=_.Q1(q.clickTrackingParams));var M;q=(M=f.getScreenLayer)==null?void 0:M.call(f);f=_.bP().graftServerVe(d,Z,q);_.kt(c,"yt-store-grafted-ve-action",[f])}};
_.ebz=function(c){var f=new Image;return new _.i6(function(d,q){f.addEventListener("load",function(){d()});
f.addEventListener("error",function(){q()});
f.src=c})};
Nmr=function(c){return!!c};
ItN=function(c){return!!c};
PNM=function(c,f,d){var q=c.rowIndex;q!==void 0&&_.kt(c.hostElement,"yt-section-reactive-dismissal",[q,f,d])};
_.qY=function(c,f,d){c=_.C(c);for(var q=c.next();!q.done;q=c.next()){q=q.value;if(q===f)break;for(var Z=_.C(d),M=Z.next();!M.done;M=Z.next())if(M=M.value,q.tagName===M||!_.F("web_event_button_role_check_killswitch")&&q.role==="button"&&M==="BUTTON")return!0}return!1};
_.ZW=function(c,f,d){c=_.C(c);for(var q=c.next();!q.done;q=c.next()){q=q.value;if(q===f)break;for(var Z=_.C(d),M=Z.next();!M.done;M=Z.next())if(q.id===M.value)return!0}return!1};
Rbe=function(c){switch(c){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}};
Ume=function(c,f){if(!c&&!f)return"medium";c=Math.max(c||0,f||0);return c>=256?"large":c>=96?"medium":"small"};
pFP=function(c){switch(c){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Ca=function(){var c=_.ql().resolve(_.dx(_.MY));return c?(c=c.getCurrentPage())?_.ry(c):null:null};
_.gy=function(){var c=_.Ca();if(!c){var f=_.ql().resolve(_.dx(_.MY)),d=f?typeof f:"no page manager";f=f?f.getCurrentPage():null;d=new _.KD("Player is missing when requested.",d,f?f.tagName:"no page");_.VO(d)}return c};
_.ry=function(c){return c&&c.getPlayer?c.getPlayer():null};
xml=function(c,f){c={args:{raw_player_response:c}};f&&(c.args=Object.assign({},c.args,f));return c};
oBz=function(c){if(c.args){if(c.args.raw_player_response)return c.args.raw_player_response;if(c.args.player_response)return JSON.parse(c.args.player_response)}};
_.GIk=function(c,f){var d={url:"/watch?v="+c.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};c.playlistId&&(d.url+="&list="+c.playlistId);c.playerParams&&(d.url+="&pp="+c.playerParams);c={watchEndpoint:c,commandMetadata:{webCommandMetadata:d}};f&&(c.clickTrackingParams=f);return c};
fie=function(){return cOC||!!_.D5("yt.player.Application")};
jxh=function(){return dpn||!!document.querySelector("link#player-css")};
ZBn=function(){function c(){cOC=!0;qZr.resolve()}
var f,d;return _.k(function(q){qZr||(qZr=new _.BS,fie()?c():(f=document.createElement("script"),f.addEventListener("load",c),d=_.Q2(_.hk("PLAYER_JS_URL")),_.oh(f,d),document.head.appendChild(f)));return q.return(qZr.promise)})};
rOk=function(){function c(){dpn=!0;MeM.resolve()}
if(!MeM)if(MeM=new _.BS,jxh())c();else{var f=document.createElement("link");f.id="player-css";f.addEventListener("load",c);var d=_.Q2(_.hk("PLAYER_CSS_URL"));_.dd(f,d,"stylesheet");document.head.appendChild(f)}return MeM.promise};
CuC=function(){return fie()&&jxh()?Promise.resolve([]):Promise.all([ZBn(),rOk()])};
gAN=function(c,f,d){var q={args:{}};c&&(q.args.raw_player_response=c);f&&(q.args.raw_watch_next_response=f);d&&(q.args=Object.assign({},q.args,d));return q};
sxz=function(c,f,d){var q=!1;q=q===void 0?!0:q;c=typeof c==="string"?_.kv(document,c):c;var Z=kkC+"_"+_.Rk(c),M=OBG[Z];if(M&&q)return liN(f,d)?M.api.loadVideoByPlayerVars(f.args||null):M.loadNewVideoConfig(f),M.api;M=new OR(c,Z,f,d,void 0);OBG[Z]=M;M.addOnDisposeCallback(function(){delete OBG[M.getId()]});
return M.api};
liN=function(c,f){return f&&f.serializedExperimentFlags?f.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):c&&c.args&&c.args.fflags?c.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
BaN=function(){var c=new _.BS;c.resolved=!1;var f=c.resolve;c.resolve=function(d){c.resolved=!0;f(d)};
return c};
Tae=function(c){var f={};iBh().install((f.document_disposed={callback:c},f))};
l7=function(c,f){if(!c&&Math.random()<=_.rx("kevlar_unified_player_logging_threshold")){c=Error("th`"+(f?f:"Unspecified error"));if(_.F("kevlar_unified_player_throw_errors"))throw c;_.u6(c)}};
_.mpn=function(){var c=_.D5("ytDebugData.callbacks");c||(c={},_.fu("ytDebugData.callbacks",c));return c};
AOG=function(c,f){var d=_.mpn();if(_.F("web_dd_iu")||HBC.includes(c))d[c]=f};
YZ4=function(){return _.k(function(c){return c.return({isLeader:_.c$r(_.Gh().getState()),c:_.hk("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.hk("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Fee=function(){var c;_.k(function(f){if(f.nextAddress==1)return AOG("APP_STATE",YZ4),f.yield(_.ql().resolve(_.sR),2);c=f.yieldResult;AOG("PI",function(){return _.k(function(d){return d.return(c.getVideoStats())})});
_.Fm(f)})};
teN=function(c){var f=_.Gc(_.NT(_.dz.location.href));c=_.Gc(_.NT(c));return _.F("kevlar_clear_non_displayable_url_params")?f==B9(c):B9(f)==B9(c)};
B9=function(c){var f=_.bBe(c);c=c.slice(0);var d=["frags"];_.F("kevlar_hide_pp_url_param")&&d.push("pp");_.F("kevlar_hide_time_continue_url_param")&&d.push("time_continue");d=_.C(d);for(var q=d.next();!q.done;q=d.next())q=q.value,c=_.fZ(_.Gc(c),q);return _.Gc(c)+(f?"#"+f:"")};
i7=function(c,f){f=Number(f)*1E3;var d=Math.round((0,_.qR)()),q=d.toString();c={innertubeResponse:c,serverDateTimestampMs:q,lastModifiedTimestampMs:q,expireTimestampMs:(d+f).toString()};if(f=_.hk("INNERTUBE_CONTEXT_CLIENT_NAME"))c.clientName=f;return c};
EAk=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Kek};
_.nAe=function(){var c=_.V5(),f=_.X2();f&&c&&_.PO(f,[c],!0)};
QxG=function(c){return c&&$pe.some(function(f){return c.includes(f)})};
VeC=function(c){var f=_.b(c,_.Ib);if(!f)return!1;var d=f.url,q=f.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!d)return _.VO(Error("yh")),!1;if(f.target==="TARGET_NEW_WINDOW"){var Z={};_.F("resolve_url_parent_tracking_params")&&(!_.ow(d)||G4(window.location.href,d))&&(Z={endpoint:c,itct:c.clickTrackingParams});BYN(Z);c=null;try{if(q)return c=_.tXM(d,"_blank",Z,void 0,q),SZC(_.ql().resolve(LeM),c,d),!0}catch(Y){_.VO(Y)}_.cO(d,Z);f={target:"_blank",noopener:_.F("set_window_noopener_ks")&&
!f.allowOpener};c=window;q=SP(d)?d:_.XD(typeof d.href!="undefined"?d.href:String(d));Z=self.crossOriginIsolated!==void 0;var M="strict-origin-when-cross-origin";window.Request&&(M=(new Request("/")).referrerPolicy);var g=f.noreferrer;if(Z&&g&&M==="unsafe-url")throw Error("pe");M=g&&!Z;g=f.target||d.target;var O=[],l=[],m=!1;for(A in f){var H=f[A];switch(A){case "width":case "height":case "top":case "left":O.push(A+"="+H);break;case "target":break;case "noopener":case "noreferrer":H?l.push(A):(m=!0,
l.push(A+"=false"));break;case "attributionsrc":O.push(A+(H?"="+H:""));break;default:O.push(A+"="+(H?1:0))}}var A=g!==void 0&&!["_blank","_self","_top","_parent",""].includes(g);A=$l()&&A;zCC&&Z&&O.length===0&&l.length>0&&!A&&!m?(l.length===2&&(l=["noreferrer"]),_.PU(c,q,g,l[0]),c=JOC()):(A=O.join(","),_.Lr()&&c.navigator&&c.navigator.standalone&&g&&g!="_self"?(A=_.A5("A"),_.yM(A,q),A.target=g,M&&(A.rel="noreferrer"),((f=f.attributionsrc)||f==="")&&A.setAttribute("attributionsrc",f),f=document.createEvent("MouseEvent"),
f.initMouseEvent("click",!0,!0,c,1),A.dispatchEvent(f),c=JOC()):M?(c=_.PU(c,"",g,A),f=_.Lq(q),c&&(c.opener=null,f===""&&(f="javascript:''"),f='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Tx(f)+'">',f=DJ(f),(q=c.document)&&q.write&&(q.write(eP(f)),q.close()))):((c=_.PU(c,q,g,A))&&f.noopener&&(c.opener=null),c&&f.noreferrer&&(c.opener=null)));SZC(_.ql().resolve(LeM),c,d);return!0}f=_.Bq(d);f=QxG(f)||d==="https://studio.youtube.com/";q=!(!_.ow(d)||G4(window.location.href,
d));A=d.indexOf("disable_polymer=1")>=0;if(q||A||f)NL(d),zi(),_.IV(d,void 0,void 0,window.top,aiG);else return _.u6(new _.KD("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",c)),!1;return!0};
_.vAn=function(c,f){f=f===void 0?0:f;if(!(_.b(c,XEY)||_.b(c,u6h)||_.b(c,_.Ib)&&_.b(c,_.Ib).url))return!1;var d,q=(d=_.b(c,_.Ib))==null?void 0:d.url;d=q?{externalLinkData:{url:q}}:null;return _.bP().clickCommand(c,d,f)};
hCe=function(c,f){return _.Bb(c.entities,"subscriptionStateEntity",f)};
wEG=function(c,f){return _.Bb(c.entities,"subscriptionNotificationStateEntity",f)};
yON=function(c,f){return _.Bb(c.entities,"upcomingEventReminderStateEntity",f)};
We4=function(c,f){return _.Bb(c.entities,"engagementToolbarSurfaceEntityPayload",f)};
DpY=function(c,f){return _.Bb(c.entities,"triStateButtonStateEntityPayload",f)};
eCM=function(c,f){return _.Bb(c.entities,"commerceCartCheckoutButtonEntity",f)};
_.NaY=function(c,f){return _.Bb(c.entities,"playlistLoopStateEntity",f)};
IiY=function(c,f){return _.Bb(c.entities,"commandEntity",f)};
RCM=function(c,f,d,q,Z){Z=Z===void 0?{}:Z;return function(M){var g,O;var l=((g=c.loggingDirectives)==null?0:(O=g.clientVeSpec)==null?0:O.uiType)?_.m_(c.loggingDirectives.clientVeSpec.uiType):void 0;Z.clickedVisualElement||(Z.clickedVisualElement=l);l=Puk(c,f);d(l,M);l=_.C(l);for(g=l.next();!g.done;g=l.next()){g=g.value;O=q;var m=M,H=Z;H.form?H.form.event=m:H.form={element:O,event:m};Vy(g,H)}}};
Puk=function(c,f){var d=[];f?(c.toggledCommand&&d.push(c.toggledCommand),c.toggledServiceEndpoint&&d.push(c.toggledServiceEndpoint)):(c.defaultCommand&&d.push(c.defaultCommand),c.defaultServiceEndpoint&&d.push(c.defaultServiceEndpoint),c.defaultNavigationEndpoint&&d.push(c.defaultNavigationEndpoint));return d};
UpN=function(c,f){var d=c.toggledStyle||c.style,q;switch((q=f?d:c.style)==null?void 0:q.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"}}};
_.H9=function(){return _.k(function(c){return c.nextAddress==1?c.yield(_.ql().resolve(_.sR),2):c.return(_.ql().resolve(pEk)())})};
_.Ac=function(){return _.ql().resolve(pEk)()};
_.Yv=function(){return z4(function(){return{lottieEl:void 0}})};
xpC=function(c,f){return c.startsWith(f.uniqueId)};
oAr=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(_.H9(),2);f=q.yieldResult;if((d=f)==null||!d.addEventListener)return F8(),q.return();f.addEventListener("onCueRangeEnter",c);_.Fm(q)})};
GkN=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(_.H9(),2);f=q.yieldResult;if((d=f)==null||!d.removeEventListener)return F8(),q.return();f.removeEventListener("onCueRangeEnter",c);_.Fm(q)})};
car=function(c){var f,d,q,Z,M;_.k(function(g){if(g.nextAddress==1)return g.yield(_.H9(),2);f=g.yieldResult;if((d=f)==null||!d.addCueRange)return F8(),g.return();q=_.C(c.timings);for(Z=q.next();!Z.done;Z=q.next())M=Z.value,f.addCueRange(c.uniqueId+"-"+M,M/1E3,(M+100)/1E3);_.Fm(g)})};
fwn=function(c){var f,d,q,Z,M;_.k(function(g){if(g.nextAddress==1)return g.yield(_.H9(),2);f=g.yieldResult;if((d=f)==null||!d.removeCueRange)return F8(),g.return();q=_.C(c.timings);for(Z=q.next();!Z.done;Z=q.next())M=Z.value,f.removeCueRange(c.uniqueId+"-"+M);_.Fm(g)})};
dfl=function(){var c,f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(_.H9(),2);c=q.yieldResult;if((f=c)==null||!f.getPlayerState)return F8(),q.return();d=c.getPlayerState();return q.return(d===2)})};
F8=function(){_.u6(new _.KD("Smartimation player does not exist or is corrupted"))};
jrl=function(){try{var c;return(c=window.CSS)!=null&&c.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(f){return _.u6(new _.KD("Smartimation CSS.supports threw an error")),!1}};
kmn=function(c,f,d,q,Z){var M=c.playlistId?qbk:ZYk;f=f();d=d();Z=!!c.videoId&&Z()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.bI(f))return MKn({data:c,actionType:M,disabled:Z},d);if(c.videoId&&q())return raM({data:c,actionType:M,disabled:Z});switch(f){case "TRANSFER_STATE_UNKNOWN":return raM({data:c,actionType:M,disabled:Z});case "TRANSFER_STATE_FAILED":return c.videoId?CiY({data:c,actionType:M,disabled:Z}):gbM({data:c,actionType:M,disabled:Z});case "TRANSFER_STATE_COMPLETE":return gbM({data:c,
actionType:M,disabled:Z});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return MKn({data:c,actionType:M,disabled:Z},d);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return c.videoId?CiY({data:c,actionType:M,disabled:Z}):raM({data:c,actionType:M,disabled:Z});default:return raM({data:c,actionType:M,disabled:Z})}};
OYn=function(c,f){var d=c.onTapCommand,q=_.D9(d);if(c.videoId&&_.b(q,_.tc))return _.b(q,_.tc).action=f,d;c.playlistId&&_.b(q,_.b7)&&(_.b(q,_.b7).action=f);return d};
raM=function(c){var f=c.data;var d=c.actionType;c=c.disabled;return{text:lwN,iconType:"OFFLINE_DOWNLOAD",onTap:OYn(f,d.ACTION_ADD),disabled:c}};
MKn=function(c,f){var d=c.data;var q=c.actionType;c=c.disabled;var Z="OFFLINE_DOWNLOAD";f>=0&&f<=.1?Z="OFFLINE_DOWNLOADING_ZERO":f>.1&&f<=.3?Z="OFFLINE_DOWNLOADING_TWENTY":f>.3&&f<=.5?Z="OFFLINE_DOWNLOADING_FORTY":f>.5&&f<=.7?Z="OFFLINE_DOWNLOADING_SIXTY":f>.7&&f<1?Z="OFFLINE_DOWNLOADING_EIGHTY":f===1&&(Z="OFFLINE_PIN");return{text:srl,iconType:Z,onTap:OYn(d,q.ACTION_REMOVE_WITH_PROMPT),disabled:c}};
gbM=function(c){var f=c.data;var d=c.actionType;c=c.disabled;return{text:B6k,iconType:"OFFLINE_PIN",onTap:OYn(f,d.ACTION_REMOVE_WITH_PROMPT),disabled:c}};
CiY=function(c){var f=c.data;var d=c.actionType;c=c.disabled;return{text:iYN,iconType:"OFFLINE_DOWNLOAD",onTap:OYn(f,d.ACTION_RETRY),disabled:c}};
Aal=function(c){var f=T64;mfh.push(c);HYe||(f(function(){for(var d=_.C(mfh),q=d.next();!q.done;q=d.next())q=q.value,q();mfh.length=0;HYe=!1}),HYe=!0)};
T64=function(c){Promise.resolve().then(c)};
Ybl=function(c){c=_.C(r9h(c));var f=c.next().value,d=c.next().value,q=!1;_.L9(function(){return function(){q=!0}});
return[f,function(Z){Aal(function(){q&&!_.F("cow_prevent_state_setter_after_cleanup_killswitch")||d(Z)})}]};
_.Ka=function(c,f){var d=ZfC();return _.TZ(function(){d();return CyN(c,[_.LL(f)||""])},{debugName:"LUZslf"},"qYSKAc")};
FGe=function(c){var f=_.Ka(_.hE,function(){return c().videoId}),d=_.Ka(_.wW,function(){return c().playlistId});
return function(){return c().videoId?f:c().playlistId?d:_.C(_.OT("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
tKG=function(c){var f=_.Ka(yR,function(){return c().videoId}),d=_.Ka(_.GGe,function(){return c().playlistId});
return function(){return c().videoId?f:c().playlistId?d:_.C(_.OT(0,void 0,"K4tgOc")).next().value}};
bYz=function(c){var f=_.Ka(_.CKM,function(){return c().videoId});
return function(){return c().videoId?f:_.C(_.OT(!1,void 0,"Oaxwcf")).next().value}};
KGr=function(c){var f=_.Ka(d2k,function(){return c().videoId});
return function(){return c().videoId?f:_.C(_.OT("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Ebl=function(){return{}};
nbe=function(){var c,f;return(f=(c=_.ql().resolve(_.dx(_.of)))==null?void 0:c())!=null?f:!1};
Qrk=function(c,f){c=c===void 0?$fP:c;switch(f.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},c,{isOpen:f.payload});default:return c}};
LG4=function(c,f){c=c===void 0?Sb4:c;switch(f.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},c,{isAllowed:f.payload});default:return c}};
JaP=function(c,f){c=c===void 0?zy4:c;switch(f.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},c,{errorMessage:f.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},c,{title:f.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},c,{privacy:f.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},c,{isDisabled:f.payload});default:return c}};
VKz=function(c,f){c=c===void 0?awh:c;switch(f.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},c,{isOpen:f.payload});default:return c}};
uOl=function(c,f){c=c===void 0?X8l:c;switch(f.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},c,{isFullscreen:f.payload});case "SET_NAVIGATION_BUTTON":var d=f.payload.targetId,q=Object.assign({},c.navigationButtons);q[d]=f.payload.button;return Object.assign({},c,{navigationButtons:q});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},c,{topPanelId:f.payload});case "SET_SECONDARY_HEADER":return d=f.payload.panelId,q=Object.assign({},c.secondaryHeader),q[d]=f.payload.secondaryHeader,
Object.assign({},c,{secondaryHeader:q});default:return c}};
yan=function(){return mF(Object.assign({},{entities:gfN,voiceSearch:RzC,engagementPanel:uOl,bottomSheet:Qrk,cinematicSetting:LG4,shorts:JLC,drawerLayout:VKz,createPlaylist:JaP,locationCollection:vbP,reportChannel:hyP,reportForm:w8k},a$N))};
WGP=function(c,f){_.a7.addLowPriorityJob(function(){var d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:return _.iY(M,2),M.yield(VNN(),4);case 4:return M.yield(fetch(c),5);case 5:return d=M.yieldResult,M.yield(d.json(),6);case 6:q=M.yieldResult;YZ.set(c,q);requestAnimationFrame(function(){f(q)});
_.Pq(M,0);break;case 2:Z=_.Yw(M),_.u6(Z),_.Fm(M)}})})};
Dfh=function(c){var f={animationConfig:{},listeners:{}},d=function(){c(!0)};
f.listeners.data_failed=d;f.listeners.error=d;f.listeners.data_ready=function(){c(!1)};
return f};
Iwe=function(c){var f=c.model;var d=c.subscribed;var q=c.isOverlay;var Z=c.element;var M=c.commandController;var g=c.notificationState;if(d){var O,l;var m=(f==null?void 0:(O=f.buttonStyle)==null?void 0:O.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:f==null?void 0:(l=f.unsubscribeButtonContent)==null?void 0:l.buttonText}else{var H;m=f==null?void 0:(H=f.subscribeButtonContent)==null?void 0:H.buttonText}a:{var A;switch(f==null?void 0:(A=f.buttonStyle)==
null?void 0:A.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":O="S";break a;default:O="M"}}a:if(q)q="overlay";else switch(f.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":q="overlay";break a;default:q="mono"}a:if(d)var Y="tonal";else switch((Y=f.buttonStyle)==
null?void 0:Y.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":Y="tonal";break a;default:Y="filled"}return{style:q,type:Y,state:f.disableSubscribeButton?"disabled":"active",size:O,focused:c.focused,toggled:d,accessibilityLabel:eyn(f,d,g),buttonText:m,iconPosition:f.disableNotificationBell?"none":"leading-trailing",onTap:N6C(f,d,Z,M),disableTextEllipsis:!!c.disableTextEllipsis}};
N6C=function(c,f,d,q){return function(Z){if(f){var M;var g=c.disableNotificationBell?_.D9(c==null?void 0:(M=c.unsubscribeButtonContent)==null?void 0:M.onTapCommand):_.D9(c==null?void 0:c.onShowSubscriptionOptions)}else{var O;g=_.D9(c==null?void 0:(O=c.subscribeButtonContent)==null?void 0:O.onTapCommand)}g&&Vy(g,{form:{element:d==null?void 0:d.value},commandController:q});Z.stopPropagation()}};
eyn=function(c,f,d){if(f){if(c==null?0:c.disableNotificationBell){var q;return c==null?void 0:(q=c.unsubscribeButtonContent)==null?void 0:q.accessibilityText}switch(d){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Z;return c==null?void 0:(Z=c.bellAccessibilityData)==null?void 0:Z.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var M;return c==null?void 0:(M=c.bellAccessibilityData)==null?void 0:M.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var g;return c==null?void 0:(g=
c.bellAccessibilityData)==null?void 0:g.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var O;return c==null?void 0:(O=c.bellAccessibilityData)==null?void 0:O.disabledLabel;default:var l;return c==null?void 0:(l=c.unsubscribeButtonContent)==null?void 0:l.accessibilityText}}else{var m;return c==null?void 0:(m=c.subscribeButtonContent)==null?void 0:m.accessibilityText}};
Pi4=function(c){if(c){switch(c){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":c="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":c="NOTIFICATIONS_OFF";break;default:c="NOTIFICATIONS_NONE"}return c}};
RyP=function(c,f,d){d.subscribed!==f&&((d=d.key)&&_.oa(_.ER("subscriptionStateEntity",d,{key:d,subscribed:f})),c.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:f})),f||_.gS(c,"yt-unsubscribe-action"))};
p8C=function(c){c=_.b(_.D9(c),_.na);var f,d,q,Z;return(Z=_.b(c==null?void 0:(f=c.panelLoadingStrategy)==null?void 0:(d=f.inlineContent)==null?void 0:(q=d.sheetViewModel)==null?void 0:q.content,UfN))==null?void 0:Z.listItems};
xfh=function(c,f){if(c.onShowSubscriptionOptions&&f&&(c=p8C(c.onShowSubscriptionOptions),c!=null&&c.length)){var d=Pi4(f);c.forEach(function(q){q=_.b(q,_.$v);var Z,M,g,O,l=q==null?void 0:(Z=q.leadingImage)==null?void 0:(M=Z.sources)==null?void 0:(g=M[0])==null?void 0:(O=g.clientResource)==null?void 0:O.imageName;q&&l&&(q.isSelected=l===d)})}};
obe=function(c,f,d,q){f&&d?c.style.width=d+"px":!f&&q&&(c.style.width=q+"px")};
Gmn=function(c,f,d){var q;(q=c.lottieEl)==null||q.goToAndPlay(0);var Z;(Z=f.lottieEl)==null||Z.goToAndPlay(0);_.QH(_.a7,function(){var M;(M=d.lottieEl)==null||M.goToAndPlay(0)},300)};
Sc=function(){return _.ql().resolve(_.dx(cfk))||{}};
f6k=function(c){return typeof c==="function"};
_.La=function(c){Object.keys(c);var f=function(d,q){var Z=f.mapping||c;if(!d)return _.B(_.qD,null);if(Array.isArray(d)&&(d=dZ4(Z,f,d),Array.isArray(d))){if(!d.length)return _.B(_.qD,null);if(d.length>1){for(var M=!1,g=!1,O=[],l={},m=0;m<d.length;l={data$jscomp$1911:void 0},m++)if(l.data$jscomp$1911=d[m],l.data$jscomp$1911){var H=jLn(l.data$jscomp$1911,Z),A=H.mappingEntry;H=H.rendererName;A&&H&&(A&&(!f6k(A)&&qfh(A)&&(g=!0),!f6k(A)&&A.asyncId||(M=!0)),O.push(ZVP(l.data$jscomp$1911,A,H,f,q)))}return g&&
!M?_.B(_.qD,null,MLY()):_.B(_.qD,null,O)}d=d[0]}if(!d)return _.B(_.qD,null);d=dZ4(Z,f,[d])[0];if(!d)return _.B(_.qD,null);M=jLn(d,Z);Z=M.mappingEntry;M=M.rendererName;return Z&&M?_.B(_.qD,null,ZVP(d,Z,M,f,q)):_.B(_.qD,null)};
f.mapping=c;return f};
_.rfe=function(c){var f=void 0,d;for(d in c)if(c.hasOwnProperty(d)){f=d;break}return f};
dZ4=function(c,f,d){var q,Z=(q=Sc().preProcessOptions)==null?void 0:q.idomOptions;if(!Z)return d;Sc();return Z.preProcessPropsIdom(c,d,f.triggerRerender)};
jLn=function(c,f){return(c=_.rfe(c))?{mappingEntry:f[c],rendererName:c}:{mappingEntry:void 0,rendererName:void 0}};
ZVP=function(c,f,d,q,Z){if(!f)return _.B(_.qD,null);var M={};Z&&Z[d]&&(M=Object.assign({},Z[d]));c[d]!==void 0&&(M.data=c[d]);if(f6k(f))return f.debugName||(f.debugName=d),_.B(f,M);f.asyncId&&(q.pendingIdsMap=q.pendingIdsMap||{},q.pendingIdsMap[d]=f.asyncId);return f.templateFn?f.templateFn(M):qfh(f)?MLY():_.B(_.qD,null)};
qfh=function(c){var f;return(f=c.showPlaceholder)!=null?f:Sc().defaultShowPlaceholder};
MLY=function(){var c=Sc().placeholder;return c()};
CTC=function(c){c=_.b(c,_.zx);return(c==null?void 0:c.iconName)&&!(c==null?0:c.title)};
OVe=function(c,f,d){var q;return _.B(_.qD,null,c==null?void 0:(q=c.actions)==null?void 0:q.map(function(Z){return _.B("div",{class:function(){var M={"yt-flexible-actions-view-model-wiz__action":!0};M["yt-flexible-actions-view-model-wiz__action--row-action"]=f;M["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(CTC(Z))var g=!0;else if(g=_.b(Z,_.Jc),(g==null?0:g.isToggled)&&CTC(g==null?void 0:g.toggledButtonViewModel)||(g==null||!g.isToggled)&&CTC(g==null?void 0:g.defaultButtonViewModel))g=
!0;else{var O;g=((O=_.b(Z,g7e))==null?0:O.playlistId)?!0:!1}M=(M["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=g,M["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=d,M);return _.tp(M)}},k_P([Z],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!f}}))}))};
l6k=function(c){var f=c.layout===1,d,q=((d=c.data)==null?void 0:d.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";d={};q=(d["yt-flexible-actions-view-model-wiz"]=!0,d["yt-flexible-actions-view-model-wiz--inline"]=!f,d["yt-flexible-actions-view-model-wiz--scrollable"]=q,d);var Z,M;return _.B("yt-flexible-actions-view-model",{class:_.tp(c.className,q)},(Z=c.data)==null?void 0:(M=Z.actionsRows)==null?void 0:M.map(function(g){if(f){var O;return _.B("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
OVe(g,f,!((O=c.data)==null||!O.respectActionIntrinsicWidth)))}return OVe(g,f,!1)}))};
sLY=function(c,f){f=f===void 0?{shouldPersist:!0}:f;return{useUpdatableData:function(d,q){var Z=[],M=_.C(_.ns(function(){var m=d();if(q!=null&&q.length&&Z){var H=Z.length>0;for(var A=!1,Y=0;Y<q.length;Y++){var t=q[Y]();H&&t!==Z[Y]&&(A=!0);Z[Y]=t}H=A}else H=!1;if(H)_.ae.remove(l());else if(H=_.ae.get(l()))return H;return m})),g=M.next().value,O=M.next().value,l=_.TZ(function(){return c(d())},void 0,"VFraLb");
_.$k(function(){if(l()!=null){VH.set(l(),[g,O,!1]);var m=l();_.Q4(function(){VH.delete(m)})}},"Fdafud");
return[g,function(m){O(m);f.shouldPersist&&_.ae.set(l(),m)}]},
getData:function(d){var q;return(q=VH.get(c(d)))==null?void 0:q[0]()},
updateData:function(d,q){d=c(d);var Z=VH.get(d);if(!Z)return!1;var M=_.C(Z);Z=M.next().value;M=M.next().value;q=q(Z());M(q);f.shouldPersist&&_.ae.set(d,q);return!0},
useUpdatableDataIdom:function(d,q){var Z=c(d),M=_.ae.get(Z),g=_.C(Ybl(M!=null?M:d)),O=g.next().value,l=g.next().value,m=Jk(M!=null?M:d);_.SZ(function(){if(Z!=null)return VH.set(Z,[function(){return m.value},
function(H){l(H);m.value=H},
VH.has(Z)]),_.a7.addJob(function(){_.X8(_.a7,function(){var H=VH.get(Z);H&&(H[2]=!1)},0)},8),function(){var H;
((H=VH.get(Z))==null?0:H[2])||VH.delete(Z)}},[Z]);
_.SZ(function(){O!==d&&(l(d),m.value=d)},q?[].concat(_.LT(q),[Z]):[Z]);
return[O,l]}}};
Bfl=function(c){var f=_.C(_.OT(!0,void 0,"bKtO6d")),d=f.next().value;f.next();return function(){var q=mf(c.children());return _.B(_.T,{cond:d,then:function(){return q},
else:c.fallback})}()};
_.u7=function(c){var f=iVl(c),d=f.data,q=f.mapping,Z=f.wrapper;f=f.pendingFallback;var M=function(){return Tfk(_.LL(d))},g=function(){var O=M(),l=[];
O=_.C(O);for(var m=O.next();!m.done;m=O.next()){var H=void 0;m=m.value;var A=void 0;for(H in m)if(!(!m).hasOwnProperty(H)){A=H;break}(H=A)&&l.push(H)}return l};
return c.data?_.B(Bfl,{fallback:f},function(){return _.B(_.bd,{each:g},function(O,l){var m=Z?function(A){return Z(function(){return q[O](A,l)},H,l)}:function(A){return q[O](A,l)};
m.debugName||(m.debugName=String(O));if(!q[String(O)])return document.createComment("");m.componentType!==bm&&mZY(String(O));var H=HVe(M,O,l);return _.B(m,{data:H})})}):_.B(_.qD,null)};
iVl=function(c){var f=c.targetId||Afh(c.children);if(!c.data||!f||_.F("mweb_new_replaceables_killswitch"))return Object.assign({},c,{mapping:c.children,wrapper:void 0});var d="stamper-"+YfP++,q=function(){var O;return(O=typeof c.targetId==="function"?c.targetId(d):c.targetId)!=null?O:d};
f=_.C(Fyk(function(){var O=Tfk(c.data());O.targetId=q;return O})).next().value;
var Z=Object.assign({},Sc().replaceableMapping,c.children);if(c.replacementWrapper){var M=Z.notificationTextRenderer,g=Z.notificationMultiActionRenderer;M&&(Z.notificationTextRenderer=function(O,l){return c.replacementWrapper(M({data:O.data},l))});
g&&(Z.notificationMultiActionRenderer=function(O,l){return c.replacementWrapper(g({data:O.data},l))})}return Object.assign({},c,{data:f,
mapping:Z,wrapper:function(O,l,m){return $JP({targetId:q,stamperIndex:m},O)}})};
HVe=function(c,f,d){var q;return _.TZ(function(){var Z=c()[d()];if(Z)q=Z[f];else return _.u6(new _.KD("Stamper failed to find "+String(f)+" at index "+d()+" of data array of length "+(c().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),q;return Z[f]},void 0,"wgRPHd")};
Afh=function(c){c=_.C(Object.keys(c));for(var f=c.next();!f.done;f=c.next())if(f=f.value,tLe.includes(f)||bVN.includes(f)||Kyz.includes(f))return!0;return!1};
Tfk=function(c){return c?Array.isArray(c)?c:[c]:[]};
mZY=function(c){if(_.F("web_enable_renderer_logger")){var f;(f=_.ql().resolve(_.dx(E7k)))!=null&&f.loggingEnabled&&!f.ids.has(c)&&f.ids.add(c)}};
n7h=function(c){return!(c==null||!c.iconName||(c==null?0:c.title))};
$ZG=function(c,f,d,q){d&&_.a7.cancelJob(d);d=_.a7.addLowPriorityJob(function(){q(void 0)},5E3);
q(d);f&&c!==(f.likeStatus==="LIKE")&&f.key&&_.oa(_.ER("likeStatusEntity",f.key,{key:f.key,likeStatus:c?"LIKE":"INDIFFERENT",hadUserInteraction:c}))};
_.QLP=function(c,f){return _.Bb(c.entities,"accountLinkStatusEntity",f)};
Sfn=function(c,f){return _.Bb(c.entities,"hatsSurveyEntity",f)};
LyP=function(c,f){return _.Bb(c.entities,"hatsSurveyStateEntity",f)};
zpP=function(c,f){return _.Bb(c.entities,"quantityIncrementerEntity",f)};
JfY=function(c){switch(c){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_SIMPLE":return 0;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}};
a6C=function(c){switch(c){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}};
VLG=function(c){switch(c){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"}};
_.uMN=function(c){var f=_.rx("web_generic_client_event_wait_period ",0);f||(f=3E5);var d=X7h.get(c);!_.F("enable_web_client_experiment_event_timeout_killswitch")&&d&&(0,_.qR)()-d<f||(X7h.set(c,(0,_.qR)()),_.JN("genericClientExperimentEvent",{eventType:c}))};
v7M=function(c){switch(c){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""}};
hph=function(c){if(!c)return"";var f,d=(f=_.ql().resolve(_.dx(_.of)))==null?void 0:f(),q;if(!d&&((q=c.vibrantColorPalette)==null?0:q.iconInactiveColor))return Dm(c.vibrantColorPalette.iconInactiveColor,"1");var Z;return d&&((Z=c.darkColorPalette)==null?0:Z.iconInactiveColor)?Dm(c.darkColorPalette.iconInactiveColor,"1"):c.color?Dm(c.color,"1"):c.sampledThumbnailColor?(c=c.sampledThumbnailColor,"rgba("+c.red+","+c.green+","+c.blue+");"):""};
_.hc=function(c,f){if(!c.includes("DATE_PLACEHOLDER"))return c;var d=new Date(0);d.setUTCSeconds(f);return c.replace("DATE_PLACEHOLDER",w7z(d))};
yfr=function(c,f,d){return function(q){var Z=c.command;Z&&(Vy(Z,{form:{element:d}}),f([Z],q))}};
DZk=function(c,f,d,q,Z){return function(M){var g=Wyn(c,f);g&&Vy(g,{form:{element:d},commandController:q});Z&&M.stopPropagation()}};
Wyn=function(c,f){if(c.signInEndpoint&&!_.F("web_subscribe_sign_in_endpoint_killswitch"))return c.signInEndpoint;if(f){if(c.serviceEndpoints)return c.serviceEndpoints[1];if(c.onUnsubscribeEndpoints)return c.onUnsubscribeEndpoints[0]}else{if(c.serviceEndpoints)return c.serviceEndpoints[0];if(c.onSubscribeEndpoints)return c.onSubscribeEndpoints[0]}};
epN=function(c,f){var d,q,Z,M;f=f&&((d=c.unsubscribeAccessibility)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label)||((Z=c.subscribeAccessibility)==null?void 0:(M=Z.accessibilityData)==null?void 0:M.label);return c.longSubscriberCountText?[f,_.xC(c.longSubscriberCountText)].filter(function(g){return g}).join(" "):f};
wy=function(c,f){return f||(c==null?0:c.isChannelDelegate)?"disabled":"active"};
NfP=function(c,f){var d;switch((d=c.style)==null?void 0:d.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:wy(c)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:wy(c)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:wy(c,!0)};case "OVERLAY":return f?{style:"overlay",type:"tonal",state:wy(c)}:{style:"overlay",type:"filled",state:wy(c)};default:return f?{style:"mono",type:"tonal",state:wy(c)}:{style:"mono",type:"filled",state:wy(c)}}};
I6N=function(c){switch(c){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
PTe=function(c){switch(c){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
RpM=function(c,f){var d=c.map(function(q){return q.toString()});
return _.Ks(function(q){if(d.includes(q.key)){f&&q.preventDefault();var Z;(Z=q.currentTarget)==null||Z.click()}})};
_.UZk=function(){return RpM(["Enter"])};
_.p7l=function(){return RpM(["Enter"," "],!0)};
_.yH=function(c){if(c.composedPath)return c.composedPath();if(!c.__composedPath){for(var f=[],d=c.target;d;)f.push(d),d=d.parentNode;f.push(window);c.__composedPath=f}return c.__composedPath};
_.W9=function(c,f,d){c=_.C(c);for(var q=c.next();!q.done;q=c.next()){q=q.value;if(q===f)break;for(var Z=_.C(d),M=Z.next();!M.done;M=Z.next())if(M=M.value,q.tagName===M||q.role==="button"&&M==="BUTTON")return!0}return!1};
o7k=function(c,f){var d,q=(d=f.observer)!=null?d:_.ql().resolve(jR);if(c){d=xZn(c);var Z=[];f.showOption&&Z.push(q.observe(c,function(){f.visibilityCallback(!0,c)},f.showOption));
f.hideOption&&Z.push(q.observe(c,function(){f.visibilityCallback(!1,c)},f.hideOption));
f.prescanOption&&f.prescanCallback&&Z.push(q.observe(c,function(){f.prescanCallback()},f.prescanOption));
var M;d.visibilityMonitorKeys=((M=d.visibilityMonitorKeys)!=null?M:[]).concat(Z)}};
xZn=function(c){var f;return(f=c.polymerController)!=null?f:c};
_.ec=function(c){return!!_.DW(c)};
_.NY=function(c,f,d,q,Z){return function(M){var g=_.nWl();_.$k(function(){if(M){_.G_z(M,c(),Z);var O=_.cmY(M,c(),f,d,q,g);_.Q4(O)}},"nr377e")}};
_.G_z=function(c,f,d){var q=fS4(f),Z=d3n(f);f=q&&jUM;var M=Z&&qpk;(q||Z)&&o7k(c,{visibilityCallback:function(g){var O=_.ql().resolve(_.ZM);g&&q?O.resolveCommand(q,{form:{element:d?c:void 0},disableClickTracking:!0}):!g&&Z&&O.resolveCommand(Z,{form:{element:d?c:void 0},disableClickTracking:!0})},
showOption:f,hideOption:M})};
_.cmY=function(c,f,d,q,Z,M){var g=new Map;if(f=_.DW(f)){var O;c=(q==null?void 0:(O=q.onTap)==null?void 0:O.value)||c;d=Z6n(f,c,d==null?void 0:d.onTap,Z,M);c.addEventListener("click",d);g.set("click",d)}return function(){for(var l=_.C(g),m=l.next();!m.done;m=l.next()){var H=_.C(m.value);m=H.next().value;H=H.next().value;c.removeEventListener(m,H)}}};
_.DW=function(c){var f;return(c=(f=_.b(c,Mpk))==null?void 0:f.onTap)&&_.D9(c)};
fS4=function(c){var f;return(c=(f=_.b(c,Mpk))==null?void 0:f.onVisible)&&_.D9(c)};
d3n=function(c){var f;return(c=(f=_.b(c,Mpk))==null?void 0:f.onHidden)&&_.D9(c)};
Z6n=function(c,f,d,q,Z){var M=function(O){_.ql().resolve(_.ZM).resolveCommand(c,O)},g=function(O){q&&_.W9(_.yH(O),f,q)||M(O.target?{form:{element:O.target,
sourceData:c,mutationContext:Z}}:void 0)};
d&&(g=function(O){d(O,M)});
return g};
rmG=function(c){switch(c){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}};
CRP=function(c){var f=c.numAvatarsInCluster;switch(c.clusterSize){case "small":return f===2?22:18;case "40":return f===2?24:22;default:return f===2?24:20}};
gg4=function(c,f){return function(d){var q=Object.keys(f);_.$k(function(){if(c!=null&&c()){for(var Z=_.C(q),M=Z.next();!M.done;M=Z.next())M=M.value,d.addEventListener(M,f[M]);_.Q4(function(){for(var g=_.C(q),O=g.next();!O.done;O=g.next())O=O.value,d.removeEventListener(O,f[O])})}},"bXZGfe")}};
kBk=function(c){switch(CRP(c)){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""}};
O6e=function(c){switch(c){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""}};
lSP=function(c){switch(CRP(c)){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""}};
sUh=function(c){switch(c){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""}};
BXr=function(c){switch(c){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}};
i6k=function(c){return c==="medium"||c==="48"||c==="large"||c==="extra-large"||c==="extra-extra-large"||c==="giant"};
TXG=function(c){return!!((c==null?0:c.includes(3))||(c==null?0:c.includes(5)))};
H6r=function(c){return{size:m3C(c.data.avatarImageSize),onTap:c.onTap,decorations:c.decorations||[],badgeText:c.badgeText,accessibilityText:c.accessibilityText,avatarButtonCustomClassName:c.avatarButtonCustomClassName,clusterLayoutConfig:c.clusterLayoutConfig}};
m3C=function(c){switch(c){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"}};
Amr=function(c){switch(c){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}};
YpC=function(c){switch(c){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""}};
F9M=function(c){var f=c.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",d,q=c.avatars&&c.avatars.length>0?(d=_.b(c.avatars[0],_.Ie))==null?void 0:d.avatarImageSize:"AVATAR_SIZE_UNKNOWN";d=Amr(q)||0;if(f){var Z,M=(Z=c.avatarClusterSize)!=null?Z:"AVATAR_SIZE_M";f=Amr(M);var g,O,l=Math.min((O=(g=c.avatars)==null?void 0:g.length)!=null?O:0,4),m;return{avatars:((m=c.avatars)==null?void 0:m.slice(0,4))||[],avatarSizeInPx:d,avatarStackStyle:{width:f+"px",height:f+"px",position:"relative"},avatarStyle:function(A){var Y=
CRP({clusterSize:m3C(M),numAvatarsInCluster:l,avatarIndex:A});var t=Amr(M);l===3&&A===2?(t=(t-Y)/2,t=(_.hk("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*t):t=void 0;return{position:"absolute",top:l===2&&A===1||l===3&&A===2||l===4&&A>=2?"0":void 0,bottom:l===2&&A===0||l>2&&A<2?"0":void 0,left:l===2&&A===1||l>2&&(A===1||A===3)?"0":void 0,right:l<=3&&A===0||l===4&&(A===0||A===2)?"0":void 0,transform:t?"translateX("+t+"px)":void 0,width:Y+"px",height:Y+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(A){return{clusterSize:m3C(c.avatarClusterSize),numAvatarsInCluster:l,avatarIndex:A}},
avatarButtonCustomClassName:void 0}}var H;return{avatars:((H=c.avatars)==null?void 0:H.slice())||[],avatarSizeInPx:d,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:YpC(q),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
tpY=function(c,f,d){return function(){Vy(c,{form:{element:f},commandController:d})}};
b6N=function(c){switch(c){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
K9z=function(c){switch(c){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"}};
EgY=function(c){var f=c.data;c=c.hidden===void 0?!1:c.hidden;var d={};c={class:_.tp("yt-page-indicator-view-model",(d["yt-page-indicator-view-model__indicator--hidden"]=!f.indicatorCount,d)),hidden:c};if(f.indicatorCount){d=[];for(var q=0;q<f.indicatorCount;q++){var Z={};Z=_.tp("yt-page-indicator-view-model__indicator",(Z["yt-page-indicator-view-model__indicator--selected"]=f.selectedIndex===q,Z));d.push(_.B("div",{class:Z}))}f=_.B(_.qD,null,d)}else f=_.B(_.qD,null);return _.B("yt-page-indicator-view-model",
c,f)};
$3e=function(c){c&&(ngk(c)?delete c.inlinePlayerData:"inlinePlaybackEndpoint"in c&&delete c.inlinePlaybackEndpoint)};
QUN=function(c){if("accessibilityText"in c)return c.accessibilityText||"";if("title"in c){var f,d,q;return((f=c.title)==null?void 0:(d=f.accessibility)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label)||""}if("accessibility"in c){var Z,M;return((Z=c.accessibility)==null?void 0:(M=Z.accessibilityData)==null?void 0:M.label)||""}return""};
ngk=function(c){return"inlinePlayerData"in c};
P9=function(c){return new Spn(c)};
L9e=function(c){var f=c.data;c=_.Ks(function(){var Z=_.b(f.onTap,_.Wh);Z&&_.ql().resolve(_.ZM).resolveCommand(Z);return!1});
var d={sources:[{url:f.thumbnailUrl,width:120,height:90}]},q=f.rating&&f.ratingA11yLabel&&f.reviewsCount&&f.reviewsCountA11yLabel;return _.B("place-data-view-model",null,f.placeName&&f.placeCategory?_.B("div",{class:"yt-spec-place-data-view-model-shape","on:click":c},_.B(_.jC,{data:d,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.B(_.Re,{className:"yt-spec-place-data-view-model-shape__place-link",command:f.onTap},_.B("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:f.placeName},f.placeName)),_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata"},q?_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.B("span",{class:"score",title:f.ratingA11yLabel},f.rating),_.B("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.B(_.Qy,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.B("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:f.reviewsCountA11yLabel},f.reviewsCount)):_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.B("span",{class:"category",title:f.placeCategory},f.placeCategory)))):null)};
z$h=function(c){return function(f){c&&(c.thumbnailElRef=f.thumbnailElRef,c.thumbnail=f.thumbnail,c.thumbnailOverlays=f.thumbnailOverlays,c.thumbnailSize=f.thumbnailSize)}};
Jme=function(c){var f;return(f=c.sharedUi)==null?void 0:f.animatedThumbnailEnabled};
aSG=function(c){var f;return(f=c.sharedUi)==null?void 0:f.inlinePreviewEnabled};
_.Vpk=function(c){var f;return(f=c.sharedUi)==null?void 0:f.currentPageSubType};
X3h=function(c){switch(c){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"}};
vgC=function(c){var f=_.C(_.OT(!1,void 0,"RIOonf")),d=f.next().value,q=f.next().value;_.L9(function(){var Z=c==null?void 0:c();if(Z){var M=_.ql().resolve(_.dx(ufG));if(M){var g={triggeringElement:Z,onDwellTriggeredFn:function(){q(!0)},
onDwellEndFn:function(){q(!1)}};
M.registerElement(g);_.Q4(function(){_.UR(M,g)})}}});
return d};
h$h=function(c,f,d){d?d(f):_.Ph(f,c.target?{form:{element:c.target}}:void 0)};
_.pa=function(c,f,d){return function(q){_.$k(function(){var Z=new Map,M,g=(M=c())==null?void 0:M.onTap;g&&(M=function(O){a:{var l=O.composedPath();l=_.C(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;if(m===q)break;if(m.className.indexOf("HostIsClickableAdComponent")>=0||m.tagName==="A".toString()||m.tagName==="BUTTON".toString()){l=!0;break a}}l=!1}l||h$h(O,g,f)},(d==null?0:d())||_.F("enable_web_home_top_landscape_image_layout_level_click")?(q.addEventListener("tap",M),Z.set("tap",M)):(q.addEventListener("click",
M),Z.set("click",M)));
_.Q4(function(){for(var O=_.C(Z),l=O.next();!l.done;l=O.next()){var m=_.C(l.value);l=m.next().value;m=m.next().value;q.removeEventListener(l,m)}})},"NMyqj")}};
w3N=function(c,f){var d,q=(d=c.interaction)==null?void 0:d.onTap;if(c=_.NV({elementsCommand:q,forceNewState:!0,skipOnClick:!0}))return c.onclick=function(Z){$X4(Z)&&(Z.preventDefault(),q&&h$h(Z,q,f))},If(c)?c:void 0};
ymN=function(c){switch(c){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
W9N=function(c){switch(c){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"}};
D34=function(c){switch(c){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"}};
_.e$e=function(c){return _.F("rich_grid_enable_dynamic_offset")&&c?Math.max(Math.round((c-_.rx("rich_grid_dynamic_offset_anchor_width",1300))/100*_.rx("rich_grid_dynamic_offset_offset_per_100",10)),_.rx("rich_grid_dynamic_offset_lower_bound",-60)):0};
NXk=function(c,f){switch(f){case 4:return 16;case 1:return c<528?16:c<1024?32:48;case 2:return(c>=528?16:8)/2;case 3:return(c<528?16:c<1024?32:48)+(c>=528?16:8)/2;default:return 0}};
ISl=function(c){var f=c.originalContainerWidth;var d=c.sizing;var q=c.standardUnit;if(c.isCompactList&&f<528)return 1;switch(d){case "STANDARD":return q;case "COMPACT":return q+1;case "EXTRA_COMPACT":return _.F("web_responsive_extra_compact_2x")?q*2:_.F("web_responsive_current")?q===1?2:q%2===0?q/2*3:q+2:q<4?q*2:Math.ceil(q*3/2);case "MINI":return q>1?q*2:3;default:return q}};
R$k=function(c){var f=c.containerWidth;var d=c.peek;var q=c.gutter;var Z=c.numItems;c=c.ignoreMaxWidthLimit;f=d?Math.max((f-d-q*Z)/Z,0):Math.max((f-q*(Z-1))/Z,0);return c?f:Math.min(f,PRY)};
_.xv=function(c){var f=c.containerWidth;var d=c.hasPeek;var q=c.sizing;var Z=c.marginSettings;var M=c.isCompactList;var g=c.enableFullBleedForSingleCol;var O=c.standardUnitMinWidth;q=q||"STANDARD";d=!!d;c=f>=528?16:8;var l=d?f>=528?48:24:0;Z=NXk(f,Z);var m=Math.max(f-Z*2,0);O=_.F("kevlar_disable_min_width_override")?void 0:O;O=Math.min(Math.max(Math.floor((m-l+c)/((O!=null?O:U3r)+_.e$e(f)+c)),1),6);var H=(g=!!g&&O===1)||O===1&&q!=="STANDARD";d=d||H?m:Math.min(m,(PRY+c)*O-c);q=ISl({originalContainerWidth:f,
sizing:q,standardUnit:O,isCompactList:M});return{itemWidth:R$k({containerWidth:d,peek:l,gutter:c,numItems:q,ignoreMaxWidthLimit:H}),gutter:c,maxContainerWidth:d,numItems:q,margin:g?0:Z,contentMargin:NXk(f,1),typographyBump:R$k({containerWidth:d,peek:l,gutter:c,numItems:O,ignoreMaxWidthLimit:H})>400&&!(M&&f<528),standardUnit:O}};
p3G=function(c){switch(c){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.x3Y=function(c){if(c){var f;if((f=c.responsiveContainerConfiguration)==null?0:f.responsiveSize)return p3G(c.responsiveContainerConfiguration.responsiveSize);if(c.layoutSizing)switch(c.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"}}};
ogl=function(c){if(c.fullbleed)return 1;switch(c.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
d8P=function(c,f,d,q,Z,M,g,O){a:if(c===4&&q==="LOCKUP_CONTENT_TYPE_SOURCE")var l=1;else switch(c){case 3:l=1;break a;default:l=0}a:switch(c){case 4:M=!!(M&&M<100);break a;default:M=!1}a:switch(c){case 3:case 4:var m=q==="LOCKUP_CONTENT_TYPE_CHANNEL"||q==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:m=!1}a:switch(c){case 5:var H=!0;break a;case 4:H=!1;break a;default:H=!1}return{isOverlay:H,isCard:GBY(q,g),sizing:f!=null?f:"STANDARD",typographyBump:d!=null?d:!1,isTiny:M,isCentered:m,isCollection:cVz(q),
arrangement:l,addMarginForFullbleed:c===1&&q!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:c===1&&q==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:fCC(q,Z,O),disableRounding:c===5||GBY(q,g)||c===1&&q==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:cVz(q)?2:0,useLegacyTypography:!(O==null||!O.useLegacyTypography),useRichGridLegacyTypography:!(O==null||!O.useRichGridLegacyTypography)&&!_.F("web_enable_typography_bump"),compactMetadata:l===0&&q==="LOCKUP_CONTENT_TYPE_VIDEO"}};
cVz=function(c){switch(c){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}};
GBY=function(c,f){if(f&&c==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(c){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
fCC=function(c,f,d){if(f&&(d==null||!d.alwaysRespectPodcastShowAspectRatio||c!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(c){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}};
jiM=function(c){switch(c){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"}};
qgC=function(c){switch(c){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}};
Z7M=function(c){switch(c){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}};
_.oe=function(c){if(c){var f;return((f=_.ql().resolve(_.dx(_.of)))==null?0:f())?c.darkThemeImage:c.image}};
C_4=function(c,f,d,q,Z,M){if(Z&&M&&f==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Z,height:M};if(!d)return{};Z=d.size;d=d.allowFullWidth;if(f==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&d)return{fullWidth:!0};if(Z===void 0)return{};switch(c){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Z,height:Z};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Z,height:1/M9Y*Z};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Z*
rVC,height:Z};default:return(q==null?0:q.height)&&(q==null?0:q.width)?q.width/q.height>1?{maxWidth:Z*rVC}:{maxWidth:Z}:{maxWidth:Z}}};
gNz=function(c){var f;return c&&((f=_.oe(c.themedImage))!=null?f:c.image)};
ksN=function(c){var f;return c==null?void 0:(f=c.sources)==null?void 0:f[0]};
O74=function(c){switch(c){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"}};
_.lCM=function(c){if(c)return"content-id-"+c};
siz=function(c){switch(c.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"}}};
Brk=function(c){var f=_.Vpk(_.xE().getState())||"";return c?c+f:""};
i7k=function(c){switch(c){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
m8r=function(c){var f=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],d=_.C(_.OT(void 0,void 0,"JrqNsb")),q=d.next().value,Z=d.next().value,M=_.C(_.OT(void 0,void 0,"rWytse"));d=M.next().value;var g=M.next().value;M=_.C(_.OT(void 0,void 0,"DHRqxe"));var O=M.next().value,l=M.next().value;return{touchFeedbackEvents:{pointerUpEvent:q,pointerDownEvent:d,pointerLeaveEvent:O},touchFeedbackOnPointerUp:_.Ks(function(m){TrC(_.yH(m),f)||(Z(m),g(void 0),l(void 0))}),
touchFeedbackOnPointerDown:_.Ks(function(m){c==null||c(m);TrC(_.yH(m),f)||(g(m),Z(void 0),l(void 0))}),
touchFeedbackOnPointerLeave:_.Ks(function(m){TrC(_.yH(m),f)||(l(m),g(void 0),Z(void 0))})}};
TrC=function(c,f){f=f===void 0?[]:f;f=[].concat(_.LT(f),["BUTTON".toString()]);c=_.C(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var q=_.C(f),Z=q.next();!Z.done;Z=q.next())if(d.tagName===Z.value)return!0}return!1};
H7n=function(c){switch(c){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"}};
AVY=function(c){return c.scrollHeight-c.offsetHeight>1};
Ygn=function(c,f){var d;return xp(c,((d=c.content)==null?void 0:d.length)||0,!f)};
Fin=function(c,f){f=Ygn(c,f);var d,q;return(((d=c.content)==null?void 0:d.length)||0)>(((q=f.content)==null?void 0:q.length)||0)};
Kin=function(c,f,d,q,Z,M){if(!f||t9k){var g;return xp(c,((g=c.content)==null?void 0:g.length)||0,!0)}f=q.value;if(!d.value||!f||!c.content)return c;d=0;q=c.content.length;g=0;b7N||(b7N=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var O=b7N;for(Z=Z*M*O;d<=q;)M=Math.floor(d+(q-d)/2),O=xp(c,M)||c,f.firstChild&&(f.firstChild.textContent=O.content),f.scrollHeight>Z?q=M-1:(g=M,d=M+1);return xp(c,g)};
ENe=function(c,f){var d,q;return(((d=c.content)==null?void 0:d.length)||0)>(((q=f.content)==null?void 0:q.length)||0)};
nNl=function(c){var f=c.isTruncated;var d=c.isAbsoluteButton;var q=c.lineHeight;var Z=c.contentRef.value,M=c.placeholderTruncationTextRef.value,g=c.truncationTextRef.value;c=c.appDirection==="rtl";if(Z&&M){var O=M.offsetLeft;c&&(O=Z.offsetWidth-M.offsetWidth-M.offsetLeft);if(f){f=M.offsetWidth;M=Z.offsetWidth;var l=d?M-f-70:O-70;q="linear-gradient(\n      to top, transparent 0%,\n      transparent "+q+"rem,\n      #000 "+q+"rem,\n      #000 100%), linear-gradient(\n      to "+((c?"left":"right")+
",\n      #000 0px,\n      #000 "+l+"px,\n      transparent "+(d?M-f:l+70)+"px)");Z.style.setProperty("-webkit-mask-image",q);Z.style.setProperty("mask-image",q)}else Z.style.setProperty("-webkit-mask-image",""),Z.style.setProperty("mask-image","");d?c?(g.style.setProperty("left","0"),g.style.setProperty("right","unset")):(g.style.setProperty("left",""),g.style.setProperty("right","0")):c?(g.style.setProperty("left","unset"),g.style.setProperty("right",O+"px")):(g.style.setProperty("left",O+"px"),
g.style.setProperty("right","unset"))}};
$8e=function(c,f,d,q,Z){var M=_.xz("truncated-text-content"),g=_.xz("truncated-text-content"),O=_.xz("button"),l=_.xz("button"),m=_.xz("button"),H=_.ql().resolve(_.cr),A=_.C(_.ns(function(){return Ygn(c(),Z())})),Y=A.next().value,t=A.next().value;
A=_.C(_.ns(function(){return _.F("enable_truncated_text_max_lines")?ENe(c(),Y()):Fin(c(),Z())}));
var E=A.next().value,J=A.next().value,X=null;_.$k(function(){function u(){if(M.value&&O.value&&m.value)if(_.F("enable_truncated_text_max_lines")){var N=Kin(c(),Z(),M,g,f(),d());t(N);q()||requestAnimationFrame(function(){if(M.value&&O.value&&m.value){var I=AVY(M.value)||ENe(c(),N);J(I);nNl({isTruncated:I,isAbsoluteButton:AVY(M.value),lineHeight:d(),contentRef:M,placeholderTruncationTextRef:O,truncationTextRef:m,appDirection:H})}})}else t(Ygn(c(),Z())),requestAnimationFrame(function(){if(M.value&&O.value&&
m.value){var I=c();
f();var R=d(),qN=q(),kl=Z();AVY(M.value)?(J(!0),qN||nNl({isTruncated:!0,isAbsoluteButton:!0,lineHeight:R,contentRef:M,placeholderTruncationTextRef:O,truncationTextRef:m,appDirection:H})):(I=Fin(I,kl),J(I),qN||nNl({isTruncated:I,isAbsoluteButton:!1,lineHeight:R,contentRef:M,placeholderTruncationTextRef:O,truncationTextRef:m,appDirection:H}))}})}
var W,p;(W=X)==null||(p=W.stop)==null||p.call(W);W=new _.Gx(u,17);u();X=W},"ZsU5lb");
_.L9(function(){t(Ygn(c(),Z()));J(_.F("enable_truncated_text_max_lines")?ENe(c(),Y()):Fin(c(),Z()));var u=function(){b7N=void 0;var p,N;(p=X)==null||(N=p.fire)==null||N.call(p)};
if(window.ResizeObserver){var W=new ResizeObserver(u);W.observe(M.value);_.Q4(function(){var p,N;(p=X)==null||(N=p.stop)==null||N.call(p);W.disconnect()})}else window.addEventListener("resize",u),_.Q4(function(){var p,N;
(p=X)==null||(N=p.stop)==null||N.call(p);window.removeEventListener("resize",u)})});
return{isTruncated:E,displayText:Y,contentRef:M,hiddenRef:g,placeholderTruncationTextRef:O,hiddenTruncationTextRef:l,truncationTextRef:m}};
Qil=function(c){return{content:c!=null?c:""}};
Sgl=function(c){return _.D9(c.onTap)||_.DW(c.rendererContext)};
LiM=function(c){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:c.overflowMenuA11yLabel,onTap:function(f){f.preventDefault();f.stopPropagation();if(c.overflowMenuOnTap){var d=_.NV({elementsCommand:c.overflowMenuOnTap,forceNewState:!0});if(d==null?0:d.onclick)d.onclick(f)}}}};
_.cZ=function(c,f,d,q,Z){q=q===void 0?{}:q;if(!Z||Math.random()<5E-4){f=f||null;d=d||null;c=c instanceof Error?c:new _.KD(c);if(c.args)for(var M=_.C(c.args),g=M.next();!g.done;g=M.next())g=g.value,g instanceof Object&&(q=Object.assign({},g,q));q.category="H5 Ads Control Flow";f&&(q.slot=f?"slot:  "+f.slotType:"");d&&(q.layout=d?"layout:  "+d.layoutType:"",q.layoutId=d.layoutId);Z&&(q.known_error_aggressively_sampled=!0);c.args=[q];_.u6(c)}};
_.zAl=function(c,f){_.gS(c,"yt-open-popup-action",[_.fX(f),c])};
_.fO=function(c,f){_.zAl(c,_.pC(f))};
aCn=function(c){if(!c)return"";if(JVC[c])return JVC[c];dB||(dB=_.A5("A"));dB.href!==c&&_.yM(dB,c);var f=dB.pathname;JVC[c]=f.startsWith("/")?f:"/"+f;return JVC[c]};
V9P=function(){var c=aCn(window.location.href);if(c==="/")return"home";if(c.startsWith("/results"))return"search";if(c.startsWith("/watch"))return"watch";if(c.startsWith("/shorts"))return"shorts";if(c.startsWith("/hashtag"))return"hashtag";if(c.startsWith("/create_channel"))return"create_channel";if(c.startsWith("/@")||c.startsWith("/user/")||c.startsWith("/channel/"))return"channel";if(c.startsWith("/experiments"))return"experiments";if(c.startsWith("/sponsor_channel"))return"sponsorship";if(c.startsWith("/select_site"))return"settings";
if(c.startsWith("/locate"))return"locate";if(c.startsWith("/redeem"))return"redeem";if(c.startsWith("/musicpremium")||c.startsWith("/premium")||c.startsWith("/red"))return"premium";if(c.startsWith("/paid_memberships"))return"paid_memberships";if(c.startsWith("/oops"))return"oops";if(c.startsWith("/clip"))return"clip";var f;return(j4==null?void 0:(f=j4.response)==null?void 0:f.page)==="404"?"404":c.startsWith("/feed/history")?"history":c.startsWith("/feed/library")?"library":c.startsWith("/feed/subscriptions")?
"subscriptions":c.startsWith("/feed/trending")?"trending":c.startsWith("/feed/news_destination")?"news":c.startsWith("/playlist")?"playlist":c.startsWith("/minor_moment")?"minor_moment":c.startsWith("/playable/")||c.match("^/playables/(?!saved).")?"mini_app":c.startsWith("/playables")?"playables":c.startsWith("/create/live/join")?"open_in_app":c.startsWith("/feed/explore")?"explore":"browse"};
_.hAN=function(){var c=j4==null?void 0:j4.response,f=c==null?void 0:c.endpoint;if(!f)return(c==null?void 0:c.page)==="watch"?"watch":V9P();var d;c=(d=_.b(f==null?void 0:f.commandMetadata,_.jO))==null?void 0:d.webPageType;d=!1;if(c&&!XtM.includes(c))switch(c){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 q;return((q=_.b(f==null?void 0:f.commandMetadata,_.jO))==null?0:q.url)&&aCn(_.b(f.commandMetadata,_.jO).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Z;return(f=(Z=_.b(f,_.Fw))==null?void 0:Z.browseId)?uuY[f]||"browse":"browse";default:d=!0}if(_.b(f,_.qC)||_.b(f,vNr))return"sponsorship";Z=aCn(window.location.href);if(Z.startsWith("/experiments"))return"experiments";if(Z.startsWith("/create_channel"))return"create_channel";
if(_.b(f,_.Ib)&&Z.startsWith("/shorts"))return"shorts";if(_.b(f,_.Ib)&&Z.startsWith("/watch"))return"watch";d&&(f=new _.KD("Unsupported mWeb page type",{pathname:Z,webPageType:c}),_.VO(f));return"browse"};
ZL=function(c,f,d,q){return c&&f?c!==d||f!==q?(_.cZ(Error("Gh"),void 0,void 0,{"stored-slot":c,"stored-layout":f,"latest-slot":d,"latest-layout":q}),!1):!0:!1};
wtY=function(c,f,d){return c({targetId:f},function(q){return d.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},q,{header:d.continuationItems?d.continuationItems[0]:void 0}):Object.assign({},q,{contents:d.continuationItems?d.continuationItems:[]})})};
yVr=function(c,f,d,q){if(f=f.trackingParams){var Z,M=(Z=d.getScreenLayer)==null?void 0:Z.call(d);d=_.X2(M);Z=_.V5(M);if(d&&Z){var g=_.Q1(f);_.F("combine_ve_grafts")?c.graftServerVe(f,Z,M):_.Dr(d,Z,g);q==null||q(g)}}};
D8l=function(c){var f;return((f=WiN.get(c))==null?void 0:f.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
ICk=function(c,f){var d={type:f.slotType,controlFlowManagerLayer:eAN.get(f.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};f.slotEntryTrigger&&(d.entryTriggerType=f.slotEntryTrigger.triggerType);f.slotPhysicalPosition!==1&&(d.slotPhysicalPosition=f.slotPhysicalPosition);if(c){d.debugData={slotId:f.slotId};if(c=f.slotEntryTrigger)d.debugData.slotEntryTriggerData=Nrk(c);c=f.slotFulfillmentTriggers;d.debugData.fulfillmentTriggerData=[];c=_.C(c);for(var q=c.next();!q.done;q=c.next())d.debugData.fulfillmentTriggerData.push(Nrk(q.value));
f=f.slotExpirationTriggers;d.debugData.expirationTriggerData=[];f=_.C(f);for(c=f.next();!c.done;c=f.next())d.debugData.expirationTriggerData.push(Nrk(c.value))}return d};
Nrk=function(c,f){var d={type:c.triggerType};f!=null&&(d.category=f);c.triggeringSlotId!=null&&(d.triggerSourceData||(d.triggerSourceData={}),d.triggerSourceData.associatedSlotId=c.triggeringSlotId);c.triggeringLayoutId!=null&&(d.triggerSourceData||(d.triggerSourceData={}),d.triggerSourceData.associatedLayoutId=c.triggeringLayoutId);return d};
P_P=function(c,f,d,q){f={opportunityType:f};c&&(q||d)&&(q=_.JT(q||[],function(Z){return ICk(c,Z)}),f.debugData=Object.assign({},d&&d.length>0?{associatedSlotId:d}:{},q.length>0?{slots:q}:{}));
return f};
RAh=function(c){return MC(c.opportunityAdapterMap).concat(MC(c.triggerAdapterMap)).concat(MC(c.fulfillmentAdapterFactoryMap)).concat(MC(c.slotAdapterFactoryMap)).concat(MC(c.layoutRenderingAdapterFactoryMap))};
MC=function(c){var f=[];c=_.C(c.values());for(var d=c.next();!d.done;d=c.next())d=d.value,d.isAdsControlFlowEventListener&&f.push(d);return f};
CO=function(c){var f=c.slotId,d=c.slotType,q=c.slotPhysicalPosition;return f===void 0?new rB("Cannot construct a slot due to the missing id.",{adSlotMetadata:c}):d===void 0?new rB("Cannot construct a slot due to the missing type.",{adSlotMetadata:c}):q===void 0?new rB("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:c}):{slotId:f,slotType:d,slotPhysicalPosition:q,managerLayer:"external",adSlotLoggingData:c.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new U8N}};
ptl=function(c){var f=c.layoutId,d=c.layoutType;return f===void 0?new gB("Cannot construct a layout due to the missing id.",{adLayoutMetadata:c}):d===void 0?new gB("Cannot construct a layout due to the missing type.",{adLayoutMetadata:c}):{layoutId:f,layoutType:d,managerLayer:"external",adLayoutLoggingData:c.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new U8N,interactionLoggingAdsClientData:{}}};
x8n=function(c){if(c.querySelector("img")){var f=c.querySelector("img");f.addEventListener("error",function(){iJk(f.src).then(function(d){(d=_.vU(d).toString())?f.src=d:f.removeAttribute("src")}).catch(function(){f.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Oo=function(c,f){if(f&&(oNN(f.viewableCommand)||oNN(f.endOfSessionCommand))){var d=GsM(f==null?void 0:f.viewableCommand);f=GsM(f==null?void 0:f.endOfSessionCommand);if(!ks){var q=_.rx("custom_active_view_tos_timeout_ms");ks=q>0&&q!==36E5?new ctN(fEh(),q):new ctN(fEh())}dt4(ks,c);j6e(ks,c,d,f)}};
lh=function(c){ks&&dt4(ks,c)};
fEh=function(){var c=_.hk("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(c==null?void 0:c.length)===2?c[1]:null};
oNN=function(c){c=_.D9(c);return!(c==null||!c.loggingUrls)&&c.loggingUrls.length>0};
GsM=function(c){if(!c)return[];var f=[],d,q;((q=(d=_.D9(c))==null?void 0:d.loggingUrls)!=null?q:[]).forEach(function(Z){Z.baseUrl&&f.push(Z.baseUrl)});
return f};
qLC=function(c){if(_.F("stop_av_measurement_on_detach"))return function(){lh(c)}};
Zcz=function(c){return function(){_.F("stop_av_measurement_on_detach")&&lh(c)}};
M2h=function(c){if(_.F("stop_av_measurement_on_detach"))return function(){lh(c)}};
rtM=function(c){return c.shorts.isDesktopSmallWidth};
_.CEG=function(c){return c.shorts.isShortsActive};
_.g8M=function(c){return c.shorts.isWatchWhileMode};
_.so=function(c){return c.shorts.isFullscreen};
_.BZ=function(c){return c.shorts.isShortsPipActive};
OcY=function(c){var f,d;if(c=(f=_.b(c.reelsAdCardButtoned,kLk))==null?void 0:(d=f.animatedRenderingConfig)==null?void 0:d.easeOutSeconds)return c+"s"};
s6l=function(c,f,d){return _.k(function(q){return q.return(new Promise(function(Z){var M=new Image;M.onload=function(){Z(new lEY(c,f,d,M.naturalWidth,M.naturalHeight))};
M.src=d.toString()}))})};
BC4=function(c,f){return Math.round(c/1E-5)===Math.round(f/1E-5)};
icz=function(c,f){return Math.round(c/1E-5)===Math.round(f/1E-5)};
TCz=function(c,f){return c.year===f.year&&c.month===f.month&&c.day===f.day};
mte=function(c,f){return c.year!==f.year?c.year<f.year:c.month!==f.month?c.month<f.month:c.day<f.day};
AtG=function(c){return c.day===Hcr(c.year,c.month)?c.month===11?{year:c.year+1,month:0,day:1}:{year:c.year,month:c.month+1,day:1}:{year:c.year,month:c.month,day:c.day+1}};
YLn=function(){var c=new Date,f={year:c.getFullYear(),month:c.getMonth(),day:c.getDate()};return{start:f,end:{year:c.getFullYear()+2,month:c.getMonth(),day:c.getDate()},selectedDate:AtG(f)}};
Fx4=function(c){return(new Rn(2)).format(new Date(c.year,c.month,c.day))};
t2k=function(c){return{year:c.getFullYear(),month:c.getMonth(),day:c.getDate()}};
bch=function(c,f){c=(c+(Number(f.utcOffsetSec)+(new Date(c*1E3)).getTimezoneOffset()*60))*1E3;f=t2k(new Date(c));return{date:f,secondsSinceMidnight:Math.floor((c-(new Date(f.year,f.month,f.day)).getTime())/1E3)}};
KxM=function(c,f){f=f.months.findIndex(function(d){return d.year===c.year&&d.month===c.month});
return f>=0?f:void 0};
E8Y=function(c){if(!c)return!1;try{if(c.host&&c.host.tagName==="YT-FORMATTED-STRING"&&c.host.id==="contenteditable-textarea"||c.nodeType===Node.ELEMENT_NODE&&c.tagName==="YTD-COMMENTBOX")return!0}catch(f){return!1}return E8Y(c.parentNode)};
ih=function(c){return c?!(c.tagName!=="A"||!c.href||!c.classList.contains("yt-simple-endpoint")):!1};
n8l=function(c){return c?c.tagName==="IMG"&&c.classList.contains("emoji"):!1};
$tG=function(c,f,d){if(!c)return null;var q=ih(c);if(q&&d)return f=c.pathname.substring(c.pathname.indexOf("/channel/")+9),document.createTextNode("@"+f);if(q&&!d)return document.createTextNode("");if(n8l(c))return d=c.alt,c=c.dataset.emojiId,!c&&f&&(f=_.T6(f,d))&&f.isCustomEmoji&&(c=f.emojiId),c?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+c+">"):document.createTextNode(d);q=c.cloneNode(!1);for(var Z=0;Z<c.childNodes.length;++Z){var M=$tG(c.childNodes[Z],f,d);M&&q.appendChild(M)}return q};
mo=function(c){return c?ih(c)?c:mo(c.lastChild):null};
Q6h=function(c){return c?ih(c)?c:Q6h(c.firstChild):null};
SLn=function(c){if(!c)return null;for(var f=c.previousSibling;f;)if(f.nodeType===Node.ELEMENT_NODE&&f.nodeName==="BR")f=f.previousSibling;else if(f.nodeType===Node.TEXT_NODE&&/\s+/.test(f.textContent))f=f.previousSibling;else break;(f=mo(f))?c=f:c=(c=c.parentNode)?mo(c.previousElementSibling):null;return c};
LxN=function(c){if(!c)return null;for(var f=c.nextSibling;f;)if(f.nodeType===Node.ELEMENT_NODE&&f.nodeName==="BR")f=f.nextSibling;else if(f.nodeType===Node.TEXT_NODE&&/\s+/.test(f.textContent))f=f.nextSibling;else break;return(f=Q6h(f))?f:LxN(c.parentNode)};
zPM=function(c){var f=_.HZ(),d=f.JSC$11236_getStartNode();if(!E8Y(d.parentNode))return null;f=f.JSC$11236_getStartOffset();if(d.nodeType===Node.TEXT_NODE){var q=_.vv(d,ih);if(q){if(c&&f===0||!c&&f===d.length)return q}else{if(c&&f===d.length)return!d||d.nodeName==="BR"||d.nextElementSibling&&_.A9(d.nextElementSibling,"display")==="block"?null:Q6h(d.nextElementSibling);if(!c&&f===0)return d?mo(d.previousElementSibling):null}}if(d.nodeType===Node.ELEMENT_NODE)if(c){if(0<=f&&f<d.childNodes.length)return Q6h(d.childNodes[f])}else if(0<
f&&f<=d.childNodes.length)return mo(d.childNodes[f-1]);return null};
Jtn=function(c,f,d){if(!c)return null;if(c.nodeType===Node.TEXT_NODE)if(d){var q=SLn(c);if(q&&!/^\s+\S/.test(c.wholeText.substr(0,f)))return q}else if((q=LxN(c))&&!/\S\s+/.test(c.wholeText.substr(f,c.wholeText.length)))return q;return c.nodeType===Node.ELEMENT_NODE?d?SLn(c.childNodes[f]):LxN(c.childNodes[f]):Jtn(c.parentNode,f,d)};
aEC=function(c){if(c.hasChildNodes())switch(c.tagName){case "DIV":case "A":case "SPAN":var f="";for(c=c.firstChild;c;c=c.nextSibling)f+=aEC(c);return f;default:return""}else switch(c.nodeType){case 3:return c.textContent;default:return""}};
Ys=function(c,f){return c.year===f.year&&c.month===f.month&&c.day===f.day};
Fd=function(c,f){return c.year!==f.year?c.year<f.year:c.month!==f.month?c.month<f.month:c.day<f.day};
V2e=function(c){return{year:c.getFullYear(),month:c.getMonth(),day:c.getDate()}};
X6G=function(c){var f=m2N;f=f===void 0?m2N:f;f(new Date(c.year,c.month,c.day))};
t9=function(c){return V2e(new Date(Number(c.seconds)*1E3))};
u3e=function(c){return c.year!==void 0&&c.month!==void 0&&c.day!==void 0};
v8N=function(c){return c.start!==void 0&&c.end!==void 0};
hPn=function(c){return v8N(c)?c.start:c};
w6r=function(c){return v8N(c)?c.end:void 0};
Wxk=function(c,f){for(var d=[],q=new Date(c.start.year,c.start.month);q.getFullYear()<c.end.year||q.getFullYear()===c.end.year&&q.getMonth()<=c.end.month;){var Z=d,M=Z.push,g=q.getFullYear(),O=q.getMonth(),l=c,m=f,H=void 0,A=[],Y=Object.freeze({extraCssClass:"invisible"}),t=new Date(g,O),E=V2e(t);t=t.getDay();for(var J=V2e(new Date);E.month===O;){t!==ytk&&H||(H=Array.from({length:7}).fill(Y),A.push(H));var X={date:{year:g,month:O,day:E.day},extraCssClass:"",debugClass:""};X.extraCssClass=m(X.date,
E,J,l).trim();H[(t-ytk+7)%7]=X;E=E.day===Hcr(E.year,E.month)?E.month===11?{year:E.year+1,month:0,day:1}:{year:E.year,month:E.month+1,day:1}:{year:E.year,month:E.month,day:E.day+1};t=(t+1)%7}M.call(Z,{weeks:A,monthLabel:bh.SHORTMONTHS[O]+" "+g,year:g,month:O,monthLabelExtraCssClass:A[0][2]===Y?"shift-down-label":""});q.setMonth(q.getMonth()+1)}return d};
Dtk=function(c,f){f=f.months.findIndex(function(d){return d.year===c.year&&d.month===c.month});
return f>=0?f:void 0};
NCr=function(c,f){a:{var d=d===void 0?[2,3]:d;d=_.C(d);for(var q=d.next();!q.done;q=d.next()){var Z=new Date;if((new ePN(q.value)).parse(f,Z,{validate:!0})){Z.setHours(0,0,0,0);f=Z;break a}}f=null}if(!f)return{isValid:!1,value:void 0};f=V2e(f);d=c.end;return Fd(f,c.start)||Fd(d,f)?{isValid:!1,value:void 0}:{isValid:!0,value:f}};
p6G=function(c){var f=IEG;f=f===void 0?PEr:f;var d=c.columnsToShow||[],q=RPP(c.columnDimensions,c.columnsToShow,c.leftFloatingColumns,f);return d.map(function(Z,M){var g=c.columns[Z];if(g===void 0)throw Error("Mh");var O=q?q[M]:"";var l=c.getCustomTooltip?c.getCustomTooltip(Z,g.headerTooltipParagraphs):g.headerTooltipParagraphs;var m=UtG(c,Z);return{type:Z,index:M,style:O,classes:m,headerName:g.headerName||"",headerIcon:g.headerIcon,headerTooltipParagraphs:l||[],headerTooltipHelpContext:g.headerTooltipHelpContext,
sortOrders:g.sortOrders||[],selectionState:g.isSelectionCheckbox?c.selectionState:void 0}})};
UtG=function(c,f){var d=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],q=c.columns[f];if(q===void 0)return"";var Z=d.includes("DEFAULTS")&&q.cssClass?[q.cssClass]:[];if(d.includes("SORTING")){q.sortOrders&&q.sortOrders.length&&Z.push("sortable");if(c.sorting&&c.sorting.columnType===f)a:switch(c.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var M="column-sorted";break a;default:M=""}else M="";M&&Z.push(M)}d.includes("FLOATING")&&(f=c.columnsToShow.indexOf(f),c.leftFloatingColumns&&f<c.leftFloatingColumns&&
Z.push("floating-column"),c.leftFloatingColumns&&f===c.leftFloatingColumns-1&&Z.push("last-floating-column"));d.includes("RIGHT_ALIGN")&&q.rightAlignHeader&&Z.push("right-align");return Z.filter(function(g){return g}).join(" ")};
RPP=function(c,f,d,q){d=d===void 0?0:d;q=q===void 0?PEr:q;if(c){var Z=[],M=0;xtG(c,f,q).forEach(function(g,O){var l="min-width:"+g.minWidth+"px;padding-left:"+g.paddingLeft+"px;padding-right:"+g.paddingRight+"px;flex:"+g.flexGrow+" 0 "+g.minWidth+"px;";g.maxWidth!==Infinity&&(l=[l,"max-width:"+g.maxWidth+"px;"].join(""));M>0&&O<d&&(l=[l,"left:"+M+"px;"].join(""));Z.push(l);M+=g.minWidth+g.paddingLeft+g.paddingRight});
return Z}};
xtG=function(c,f,d){d=d===void 0?PEr:d;return f.map(function(q,Z){q=c&&c[q]||{};var M=Z===0?d.paddingLeftFirstColumn:d.padding;q.paddingLeft!==void 0&&(M=q.paddingLeft);Z=Z===f.length-1?d.paddingRightLastColumn:d.padding;q.paddingRight!==void 0&&(Z=q.paddingRight);return{paddingLeft:M,paddingRight:Z,minWidth:q.minWidth!==void 0?q.minWidth:d.minWidth,maxWidth:q.maxWidth!==void 0?q.maxWidth:d.maxWidth,flexGrow:q.flexGrow!==void 0?q.flexGrow:d.flexGrow}})};
o8e=function(c){var f=c.reduce(function(q,Z){var M=Z.columnId,g={};Z.headerText&&(g.headerName=_.xC(Z.headerText));Z.rightAlignHeader&&(g.rightAlignHeader=Z.rightAlignHeader);var O;if((O=Z.headerIcon)==null?0:O.iconType)g.headerIcon=_.Tu(Z.headerIcon.iconType);q[M]=g;return q},{}),d=c.filter(function(q){return!q.hideColumn}).map(function(q){return q.columnId});
c=c.filter(function(q){return!!q.dimensions}).reduce(function(q,Z){q[Z.columnId]=Z.dimensions;
return q},{});
return{columns:f,columnsToShow:d,columnDimensions:c}};
_.GLr=function(c){return c?c.simpleText?c.simpleText:c.runs?c.runs.map(function(f){return f.text}).join(""):"":""};
qsM=function(c){var f=c.data;var d=c.onTap;var q=c.isSelected;var Z=c.onFocusIn;if(!f)return{};c=c_N(f);q===void 0&&(q=f==null?void 0:f.isSelected);var M;return{text:fQk(f,c),startIcon:(M=f.icon)==null?void 0:M.iconType,state:q?0:2,type:0,onTap:dnh(f,d),accessibilityLabel:j1P(f,c),onFocusIn:function(){return Z==null?void 0:Z()}}};
fQk=function(c,f){if(!f)return c.text?_.GLr(c.text):void 0};
dnh=function(c,f){return function(d){f==null||f(d,c)}};
c_N=function(c){c=c.style&&c.style.styleType;return!t9k&&c==="STYLE_EXPLORE_LAUNCHER_CHIP"};
j1P=function(c,f){if(f){var d,q,Z;return(Z=(d=c.accessibilityData)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label)!=null?Z:fQk(c,!1)}};
KO=function(c){return{signalAction:{signal:c}}};
r_n=function(){return _.hk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ZIN:_.MSG};
CHk=function(c,f){c=c===void 0?"SOFT_RELOAD_PAGE":c;f=f===void 0?49504:f;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.jU(_.HO("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:f}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:c}}]}}}};
gVk=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.jU(_.HO("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:r_n()}};
kzP=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.jU(_.HO("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:r_n()}};
OIn=function(c,f){var d=_.jU(_.HO("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),q=_.jU(_.HO("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Z={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.jU(_.HO("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Z.serviceEndpoint=c?c:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[KO("SOFT_RELOAD_PAGE")]}};return{title:d,bodyText:q,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Z},
style:{value:f!=null?f:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
s1z=function(c){c=c===void 0?{}:c;return{title:_.jU(c.localizedZeroStateTitleText===void 0?"":c.localizedZeroStateTitleText),bodyText:_.jU(c.localizedZeroStateMessage===void 0?"":c.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.jU(c.localizedZeroStateButtonText===void 0?"":c.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[lQk]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
iIr=function(c){c=c===void 0?{}:c;return{title:_.jU(c.localizedOptInBannerTitleText===void 0?"":c.localizedOptInBannerTitleText),titleLength:19,subtitle:_.jU(c.localizedOptInMessage===void 0?"":c.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.jU(_.HO("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:_.jU(_.HO("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:[Beh]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
HIh=function(c,f){var d=f=f===void 0?{}:f;f=d.offlineTitleText===void 0?"":d.offlineTitleText;var q=d.offlineDescriptionText===void 0?"":d.offlineDescriptionText,Z=d.formattedSupplementalText,M=d.actionButtonText===void 0?"":d.actionButtonText,g=d.titleText===void 0?"":d.titleText;d=d.descriptionText===void 0?"":d.descriptionText;var O={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.jU(M),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};c||(g=f,d=q,O={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.jU(M),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.jU(g),titleLength:g.length,overrideTitleMaxFontSize:30,subtitle:_.jU(d),supplementalText:Z,primaryButton:{buttonRenderer:O},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[TeY]},darkTileImage:{thumbnails:[mnk]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.FMC=function(c,f,d,q,Z,M,g,O,l,m,H){Z=Z===void 0?!1:Z;M=M===void 0?!1:M;g=g===void 0?0:g;O=O===void 0?-Infinity:O;l=l===void 0?!1:l;m=m===void 0?!1:m;H=H===void 0?!1:H;var A=[],Y=_.jU(_.HO("SMART_DOWNLOADS",void 0,"Smart downloads")),t=_.jU(A_z(g,O,c.length));O=g=void 0;m?g={statementBannerRenderer:HIh(H,q)}:Z?c.length>0?O=YsG(c,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.F("kevlar_manual_downloads_above"),Y,t):l?O={alertBannerViewModel:{heading:{content:d.localizedOptInBannerTitleText===
void 0?"":d.localizedOptInBannerTitleText},body:{content:d.localizedPromptMessage===void 0?"":d.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.HO("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.HO("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:_.LZY}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:M&&(O={backgroundPromoRenderer:{bodyText:_.jU(_.HO("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"}}}):
M&&(O={alertBannerViewModel:{heading:{content:d.localizedOptInBannerTitleText===void 0?"":d.localizedOptInBannerTitleText},body:{content:d.localizedOptInMessage===void 0?"":d.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.HO("TURN_ON",void 0,"Turn on"),accessibilityText:_.HO("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}}}}}});d=_.jU(_.HO("YOUR_DOWNLOADS",void 0,"Your downloads"));q=void 0;f.length>0?(q=void 0,_.F("kevlar_display_downloads_numbers")&&(q=_.jU(_.AQ("VIDEO_COUNT",f.length))),q=YsG(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,d,q)):Z||c.length||
m||(q={backgroundPromoRenderer:{bodyText:_.jU(_.HO("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}}}});g?A.push({richSectionRenderer:{content:g}}):O&&!_.F("kevlar_manual_downloads_above")&&A.push({richSectionRenderer:{content:O,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
q&&A.push({richSectionRenderer:{content:q,loggingDirectives:{clientVeSpec:{uiType:51721}}}});O&&_.F("kevlar_manual_downloads_above")&&A.push({richSectionRenderer:{content:O,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(f.length>0||Z&&c.length>0&&!m)&&A.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.jU(_.HO("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:A}};
_.bIM=function(c){return tSl(c,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.KMC=function(c){return tSl(c,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
tSl=function(c,f){var d=[];c=YsG(c,f,!0);d.push({richSectionRenderer:{content:c}});return{contents:d}};
YsG=function(c,f,d,q,Z){d=d===void 0?!1:d;var M="RESPONSIVE_SIZE_STANDARD";_.F("kevlar_modern_downloads_compact")?M="RESPONSIVE_SIZE_COMPACT":_.F("kevlar_modern_downloads_extra_compact")&&(M="RESPONSIVE_SIZE_EXTRA_COMPACT");c={isExpanded:d,contents:Eo(c),entitySelectorType:f,responsiveContainerConfiguration:{responsiveSize:M}};q&&(c.title=q);Z&&(c.subtitle=Z);d||(_.F("kevlar_smart_downloads_show_more_button")?(c.showMoreButton={buttonRenderer:{accessibility:{label:_.HO("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.jU(_.HO("SHOW_MORE",void 0,"Show more"))}},c.showLessButton={buttonRenderer:{accessibility:{label:_.HO("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.jU(_.HO("SHOW_LESS",void 0,"Show less"))}}):(c.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.HO("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}}}},c.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.HO("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}}}},c.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.HO("VIEW_ALL",void 0,"View all"),accessibilityText:_.HO("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:fC("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:c}};
Eo=function(c){var f=[];c=_.C(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,sXC(d)){var q=f,Z=q.push;var M=void 0;if(d==null?0:(M=d.videoEntity)==null?0:M.videoId){M=Wb(_.Gh().getState(),d.videoEntity.videoId);var g=_.Gh().getState();var O=_.sx(d.videoEntity.videoId,"mainVideoEntity");g=!!_.QR(g.entities)[O];g={videoId:d.videoEntity.videoId,title:q$(d.videoEntity.title),shortBylineText:q$(d.channelEntity.title),thumbnail:d.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:g&&_.F("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:eir(d.videoEntity.videoId,M,d.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.HO("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};d.videoEntity.lengthSeconds&&(g.thumbnailOverlays=uQk(d.videoEntity.lengthSeconds,M));g.isWatched=M>0;_.F("kevlar_modern_downloads_page")&&(g.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:d.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.HO("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},g.badges=void 0);d=g}else d={};Z.call(q,{richItemRenderer:{content:{videoRenderer:d},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(lKz(d)){q=f;Z=q.push;var l=O=M=void 0,m=void 0,H=void 0,A=void 0,Y=void 0,t=void 0,E=void 0,J=void 0,X=void 0,u=void 0;g=d.mainPlaylistEntity.playlistId;var W=d==null?void 0:(u=d.mainPlaylistEntity)==null?void 0:(X=u.thumbnailStyleData)==null?void 0:(J=X[0])==null?void 0:(E=J.value)==null?void 0:(t=E.collageThumbnail)==
null?void 0:t.coverThumbnail;if(g&&W){t=Nqk(g);!_.F("enable_offline_playlist_page")&&(d==null?0:(Y=d.mainPlaylistEntity)==null?0:Y.videos)&&(Y=d==null?void 0:(A=d.mainPlaylistEntity)==null?void 0:(H=A.videos)==null?void 0:H[0],H=_.kC(Y).entityId,H=JSON.parse(H).videoId,H!==void 0&&(A=Wb(_.Gh().getState(),H),t=_.dW(H,g,void 0,void 0,A)));H=[];if(d==null?0:(m=d.mainPlaylistEntity)==null?0:(l=m.videos)==null?0:l.length)H=[TUM(),Object.assign({},(O=ite(d==null?void 0:d.mainPlaylistEntity.videos.length))!=
null?O:{})];d={playlistId:g,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:W}},navigationEndpoint:t,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:H,title:q$(d.mainPlaylistEntity.title),shortBylineText:q$(d==null?void 0:(M=d.channelEntity)==null?void 0:M.title),badges:[{metadataBadgeRenderer:{label:_.HO("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.F("kevlar_modern_downloads_page")&&(d.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:EVY,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:g,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.HO("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},d.badges=void 0)}else d=void 0;Z.call(q,{richItemRenderer:{content:{playlistRenderer:d},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return f};
A_z=function(c,f,d){c=c?nVz(c):"";f!==void 0&&isFinite(f)?f===0?f=_.HO("UPDATING",void 0,"Updating..."):(f=XLh(new Date(f),new Date),f=_.HO("UPDATED_TIME",{relative_time:f},"Updated "+f)):f="";var q="";c&&f&&(q=" \u2022 ");if(d&&_.F("kevlar_display_downloads_numbers")){d=_.AQ("VIDEO_COUNT",d);if(c||f)q=" \u2022 ";return d+q+c+q+f}return c+q+f};
$nY=function(c){return q8k(c.entities).length};
_.Q1C=function(c,f){var d=p3G(c.responsiveSize),q;c=!((q=c.responsiveMap)==null||!q.some(function(Z){return Z.containerSize==="CONTAINER_SIZE_NARROW"&&Z.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:f,sizing:d,enableFullBleedForSingleCol:!1,isCompactList:d==="COMPACT"&&c}};
SsN=function(c,f){return _.Bb(c.entities,"votingEntity",f)};
LMC=function(c){if(c){var f;return((f=_.ql().resolve(_.dx(_.of)))==null?0:f())?c.darkTheme:c.lightTheme}};
zLN=function(c,f){if(c.simpleText)return Object.assign({},c,{simpleText:UD(c.simpleText,f)});if(!c.runs)return c;for(var d=Object.assign({},c,{runs:[]}),q=0,Z=_.C(c.runs),M=Z.next();!M.done;M=Z.next())if(M=M.value,M.text)if(q+M.text.length<=f)d.runs.push(M),q+=M.text.length;else return d.runs.push(Object.assign({},M,{text:UD(M.text,f-q)})),d;return c};
J_l=function(c,f){return _.Bb(c.entities,"chipBarStateEntity",f)};
aQh=function(c,f){return _.Bb(c.entities,"chipEntity",f)};
XoY=function(c,f,d,q){return function(){var Z=VSk.has(c.displayType)&&c.selected,M=Z&&c.deselectCommand?c.deselectCommand:c.tapCommand;!M||Z&&q||_.Ph(M,{form:{element:f==null?void 0:f.value}});d==null||d()}};
uaM=function(c){switch(c){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""}};
vVl=function(c,f){return{triggeringElement:c,onDwellTriggeredFn:function(){var d={triggeringElement:c,loadVideoPreviewEventData:f},q=document.querySelector(".video-preview");q&&q.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:d}))},
onDwellEndFn:function(){var d=document.querySelector(".video-preview");d&&d.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
hLN=function(c,f){var d=_.ql().resolve(_.dx(ufG)),q=function(){var Z=f();return d&&Z?vVl(c.value,Z):null};
_.$k(function(){var Z=q();d&&Z&&Promise.resolve().then(function(){d.registerElement(Z)});
_.Q4(function(){d&&Z&&Promise.resolve().then(function(){_.UR(d,Z)})})},"csPUge")};
y_z=function(c){var f=c.dataset.resizeObserverId;if(f)return f;f=""+woz++;return c.dataset.resizeObserverId=f};
WMN=function(c,f){var d=y_z(c);nO.has(d)||nO.set(d,new Set);nO.get(d).add(f);$s.has(d)&&f(Object.assign({},{target:c},$s.get(d)))};
DnG=function(c){c=_.C(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var d=y_z(f.target),q=Object.assign({},{target:f.target},$s.get(d));if(q!=null&&q.contentRect?q.contentRect.width!==f.contentRect.width||q.contentRect.height!==f.contentRect.height:1)for($s.set(d,{borderBoxSize:f.borderBoxSize,contentBoxSize:f.contentBoxSize,contentRect:f.contentRect,devicePixelContentBoxSize:f.devicePixelContentBoxSize}),d=_.C(nO.get(d)||[]),q=d.next();!q.done;q=d.next())q=q.value,q(f)}};
Nel=function(){return Q0?Q0:Q0=new eLk(DnG)};
IQ4=function(c,f){var d=y_z(c);nO.has(d)&&(nO.get(d).delete(f),nO.get(d).size===0&&(nO.delete(d),$s.delete(d),Q0.unobserve(c),delete c.dataset.resizeObserverId));nO.size===0&&Q0&&(Q0.disconnect(),Q0=void 0)};
RLr=function(c,f){var d=_.ql().resolve(jR);return PHn.map(function(q){return d.observe(c,f,q)})};
Unk=function(c){var f=_.ql().resolve(jR);c.forEach(function(d){f.unobserveByKey(d)})};
_.oVl=function(c,f){var d=Object.assign({},poN,f);f=_.C($uk());var q=f.next().value,Z=f.next().value,M=function(g){var O=g.contentRect.height;if((g=g.contentRect.width)||O||d.canHaveZeroSize)q.width()===g&&q.height()===O||Z(q,{height:O,width:g})};
_.L9(function(){var g=c instanceof HTMLElement?c:c.value,O=xnn(M,d.throttleMs),l=[];d.useVisibilityObserver&&(l=RLr(g,function(m,H){requestAnimationFrame(function(){H==="visible"?(WMN(g,O),Nel().observe(g)):IQ4(g,O)})}));
l.length||(WMN(g,O),Nel().observe(g));_.Q4(function(){l.length&&(Unk(l),l.length=0);IQ4(g,O)})});
return q};
cln=function(c){var f=c.data;var d=c.callback;var q=c.enableSingleChipSelection;var Z=c.disableChipsScrollAnimation;var M=_.ob("div"),g=Jk(!1),O=Jk(0);c={};c=_.C(Ybl(f.autoselectedChipIndex!=null?(c[f.autoselectedChipIndex]=!0,c):{}));var l=c.next().value,m=c.next().value,H=function(){var kl=M.value;return kl==null||kl.scrollLeft-1<=0},A=function(){var kl=M.value;
return kl==null?!1:kl.scrollLeft+1>=(kl==null?NaN:kl.scrollWidth)-(kl==null?NaN:kl.clientWidth)};
c=_.C(Ybl(H()));var Y=c.next().value,t=c.next().value;c=_.C(Ybl(A()));var E=c.next().value,J=c.next().value;c=f.isHorizontallyScrollable;var X=function(kl){M.value!=null&&(_.hk("HTML_DIR")==="rtl"&&(kl=-kl),M.value.scrollBy({left:kl,behavior:Z?"instant":"smooth"}))},u=function(){X(-320)},W=function(){X(320)},p=_.Ks(function(kl){g.value=!0;
O.value=kl.clientX}),N=_.Ks(function(kl){if(g.value){kl=kl.clientX;
var BN=kl-O.value;O.value=kl;var tP;(tP=M.value)==null||tP.scrollBy({left:-BN})}}),I=_.Ks(function(){var kl=H(),BN=A();
kl!==Y&&t(kl);BN!==E&&J(BN)});
du("pointerup",function(){g.value&&(g.value=!1)});
var R={},qN={};return _.B("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},p1(f.title,function(){return _.B("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.B("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},f.title),Gzk(f.overflowButton))}),_.B("div",{class:"ytChipsShelfViewModelChipsShelfContent"},p1(f.previousButton!=null,function(){var kl={};
return _.B("div",{class:_.tp("ytChipsShelfViewModelLeftArrowContainer",(kl.ytChipsShelfViewModelLeftArrowContainerIsHidden=Y,kl))},Gzk(f.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:u}}))}),_.B("div",{el:M,
"on:pointerdown":p,"on:pointermove":N,"on:scroll":I,class:_.tp("ytChipsShelfViewModelChipsScrollContainer",(R.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!c,R))},_.B("div",{class:_.tp("ytChipsShelfViewModelChipsContainer",(qN.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!c,qN.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!c&&!1,qN)),role:"tablist"},(f.contents||[]).map(function(kl,BN){return _.B("div",{class:"ytChipsShelfViewModelChipWrapper"},
Gzk(kl,{chipViewModel:{callback:function(tP,EC){if(q){var AP={};m((AP[BN]=EC,AP))}else AP={},m(Object.assign({},l,(AP[BN]=EC,AP)));d==null||d(tP,EC,BN)},
disableDeselection:q,selected:!!l[BN]}}))}))),p1(f.nextButton!=null,function(){var kl={};
return _.B("div",{class:_.tp("ytChipsShelfViewModelRightArrowContainer",(kl.ytChipsShelfViewModelRightArrowContainerIsHidden=E,kl))},Gzk(f.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:W}}))})))};
dqr=function(c,f,d,q,Z){c=f?c.switchOffCommand:c.switchOnCommand;if(q&&Z)fyM(c,d,Z);else{var M,g;(M=_.NV({elementsCommand:c}))==null||(g=M.onclick)==null||g.call(M,d)}};
fyM=function(c,f,d){c=_.NV({elementsCommand:c,additionalCommandArgs:{commandController:{onSuccess:function(){d(!1)},
onServerError:function(){d(!1)}}}});
if(c==null?0:c.onclick)c.onclick(f),d(!0)};
qtY=function(c){if(c)return _.b(c,jtN)};
gMe=function(c,f,d){if(f)return[ZUz];switch(c){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[S4];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return d?[S4]:[Mmk,S4];case "TRANSFER_STATE_PAUSED_BY_USER":return[rll,S4];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[CZk,S4];default:return[ZUz]}};
kgY=function(c,f,d,q){return gMe(c,f,q).map(function(Z){var M=Z.text,g=Z.iconType,O=Z.videoAction;Z=Z.playlistAction;M=M?{content:M}:void 0;g=g&&{sources:[{clientResource:{imageName:g}}]};var l=(0,_.zV.unsafeClone)(d);if(l){var m=_.b(l,_.tc),H=_.b(l,_.b7);m&&O?m.action=O:H&&Z&&(H.action=Z)}return{title:M,leadingImage:g,rendererContext:l&&{commandContext:{onTap:{innertubeCommand:l}}}}})};
OUk=function(c){c=_.DW(c.rendererContext);var f;return(f=_.b(c,_.b7))==null?void 0:f.playlistId};
lyl=function(c){var f;return(f=c.listItems)==null?void 0:f.some(function(d){var q;return _.ec((q=_.b(d,_.$v))==null?void 0:q.rendererContext)})};
iUr=function(c){var f;return(f=c.listItems)==null?void 0:f.some(function(d){var q,Z,M=(Z=(q=_.b(d,ste))==null?void 0:q.defaultListItem)!=null?Z:d;d=_.b(M,_.$v);return!!_.b(d==null?void 0:d.leadingAccessory,BIn)})};
HUP=function(c){var f=c.element;var d=c.veType;var q=c.storedVisualElement===void 0?null:c.storedVisualElement;var Z=c.elementIndex===void 0?0:c.elementIndex;c=c.clientYouTubeData;var M=_.X2();M!==TIk&&(mql.clear(),TIk=M);if(f.visualElement&&mql.has(f.visualElement))return null;if(q&&mql.has(q))return f.visualElement=q,null;d=_.te(_.bP(),{veType:d,elementIndex:Z,clientYouTubeData:c});if(!d)return null;f.visualElement=d;mql.add(d);return d};
_.LO=function(c,f,d,q){d=d===void 0?null:d;q=q===void 0?NHk:q;var Z=Z===void 0?null:Z;af(function(){if(f){d instanceof Function&&(d=d());var M=HUP({element:f,veType:c,storedVisualElement:d,clientYouTubeData:void 0});M&&(Rse(f,Z),q(M))}})};
z6=function(c,f){if(c){switch(f){case 0:c=c.primaryTitleColor;break;case 1:c=c.secondaryTitleColor;break;case 2:c=c.surgeColor;break;case 3:c=c.section2Color;break;case 4:c=c.section3Color;break;default:return}if(c)return _.ya(c)}};
AlN=function(c){return c?_.WS(c):""};
Ytz=function(c){return(c==null?void 0:c.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
FSl=function(c,f){var d;return"linear-gradient(to bottom, "+((d=f==null?void 0:f.map(function(q){var Z=c?q.darkThemeColor:q.lightThemeColor;return Z?_.WS(Z)+" "+((q==null?void 0:q.startLocation)||0)*100+"%":"transparent"}))==null?void 0:d.join(", "))+")"};
tmG=function(c,f,d,q,Z){if(!((q==null?0:q.height)&&(q==null?0:q.width)))return{size:0};var M=q.width;q=q.height;if(Z)return f==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||f==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&M>q?{size:312/rVC}:f==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(d!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||c!==1&&c!==2||f!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&f!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&f!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(f==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||f==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||q===M)switch(c){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(f==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||q>M)switch(c){case 1:case 3:return{size:240*M9Y};default:return{size:360*M9Y}}switch(c){case 1:case 2:return{size:1/rVC*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.bUM=function(c){if(!("matchMedia"in window))return _.eZ(Error("Nh")),function(){return!1};
var f=window.matchMedia(c);c=_.C(_.OT(f.matches,void 0,"jLJc8e"));var d=c.next().value,q=c.next().value,Z=function(M){q(M.matches)};
f.addEventListener?(f.addEventListener("change",Z),_.Q4(function(){f.removeEventListener("change",Z)})):f.addListener&&(f.addListener(Z),_.Q4(function(){f.removeListener(Z)}));
return d};
KS4=function(c){return c==="IMAGE_BANNER_STYLE_INSET"||c==="IMAGE_BANNER_STYLE_UNKNOWN"};
EMG=function(){if(!("matchMedia"in window))return _.eZ(Error("Nh")),function(){return 0};
var c=z4(function(){return window.matchMedia("(max-width: 527.9px)")}),f=z4(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),d=z4(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),q=z4(function(){return window.matchMedia("(min-width: 1024px)")}),Z=_.C(_.OT(c.matches,void 0,"og9kEc")),M=Z.next().value,g=Z.next().value;
Z=_.C(_.OT(f.matches,void 0,"ybDWCb"));var O=Z.next().value,l=Z.next().value;Z=_.C(_.OT(d.matches,void 0,"o0Gfh"));var m=Z.next().value,H=Z.next().value;Z=_.C(_.OT(q.matches,void 0,"yqUUgd"));var A=Z.next().value,Y=Z.next().value,t=z4(function(){return function(u){g(u.matches)}}),E=z4(function(){return function(u){l(u.matches)}}),J=z4(function(){return function(u){H(u.matches)}}),X=z4(function(){return function(u){Y(u.matches)}});
_.L9(function(){c.addEventListener?(c.addEventListener("change",t),f.addEventListener("change",E),d.addEventListener("change",J),q.addEventListener("change",X)):c.addListener&&(c.addListener(t),f.addListener(E),d.addListener(J),q.addListener(X));_.Q4(function(){c.removeEventListener?(c.removeEventListener("change",t),f.removeEventListener("change",E),d.removeEventListener("change",J),q.removeEventListener("change",X)):c.removeListener&&(c.removeListener(t),f.removeListener(E),d.removeListener(J),
q.removeListener(X))})});
return function(){return M()?1:O()?2:m()?3:A()?4:0}};
nMC=function(c){var f=0;c=_.C([c.title,c.metadata,c.actions,c.description,c.attribution]);for(var d=c.next();!d.done;d=c.next())d.value&&f++;return f};
$qM=function(c){return c===1||c===2?1:0};
StG=function(c){var f,d=((f=_.ql().resolve(_.dx(_.of)))==null?0:f())&&c.data.darkThemeImage?c.data.darkThemeImage:c.data.image;f=_.B("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.B("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},d?_.B(_.jC,{data:d,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),QtY(c.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));d=_.B(_.J9,{text:c.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var q=c.data;if(q.bodyText){var Z=[];q=_.C(q.bodyText);for(var M=q.next();!M.done;M=q.next())Z.push(_.B(_.J9,{text:M.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else Z=_.B(_.qD,null);return _.B("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},f,d,Z,QtY(c.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.B(_.J9,{text:c.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.B(_.J9,{text:c.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
z6C=function(c){c=(new LS4).parse(c);return(new iV).render(c).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(f){var d=f.split(":").map(Number),q=0,Z=0;if(d.length===3)d=_.C(d),q=d.next().value,Z=d.next().value,d=d.next().value;else if(d.length===2)d=_.C(d),Z=d.next().value,d=d.next().value;else if(d.length===1)d=_.C(d).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(q*3600+Z*60+d)+'" role="button">'+f+"</span>"})};
Jlk=function(c){c=_.C(c.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var f=c.next(),d={};!f.done;d={clickHandler$jscomp$4:void 0},f=c.next()){f=f.value;d.clickHandler$jscomp$4=function(Z){Z=Number(Z.target.getAttribute("data-time"));if(isNaN(Z))throw Error("Ph");var M;(M=_.Ac())==null||M.seekTo(Z,!0)};
var q=function(Z){return function(M){M.key!=="Enter"&&M.key!=="Space"||(0,Z.clickHandler$jscomp$4)(M)}}(d);
f.setAttribute("tabindex","0");f.removeEventListener("click",d.clickHandler$jscomp$4);f.removeEventListener("keydown",q);f.addEventListener("click",d.clickHandler$jscomp$4);f.addEventListener("keydown",q)}};
ayN=function(){return _.B("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.B(a9,{percentWidth:100}),_.B(a9,{animationDelay:200}),_.B(a9,{animationDelay:400}),_.B(a9,{animationDelay:600}),_.B(a9,{animationDelay:800,percentWidth:60}),_.B("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.B(a9,{percentWidth:100}),_.B(a9,{animationDelay:200}),_.B(a9,{animationDelay:400}),_.B(a9,{animationDelay:600,percentWidth:50}))};
a9=function(c){return _.B("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(c.percentWidth===void 0?100:c.percentWidth)+"%"},_.B("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(c.animationDelay===void 0?0:c.animationDelay)+"ms"}))};
Vmr=function(){var c=_.C(_.OT(function(){return""},void 0,"v2wS5e")),f=c.next().value;
return[function(){return f()()},
c.next().value]};
Xzk=function(c,f){c=c?nVz(c):"";f!==void 0&&isFinite(f)?f===0?f=_.HO("UPDATING",void 0,"Updating..."):(f=XLh(new Date(f),new Date),f=_.HO("UPDATED_TIME",{relative_time:f},"Updated "+f)):f="";var d="";c&&f&&(d=" \u2022 ");return _.jU(c+d+f)};
h6e=function(c,f,d,q,Z,M){f=f===void 0?0:f;var g=u_r[f],O=g.title,l=g.iconType,m=g.topButtonRenderer,H=g.sectionClientVE;g=g.videoClientVE;var A;if(f!==1||c.length){d=[];c=_.C(c);for(q=c.next();!q.done;q=c.next()){var Y=q.value;if(sXC(Y))d.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:Y.videoEntity.videoId,title:q$(Y.videoEntity.title),shortBylineText:q$(Y.channelEntity.title),thumbnail:Y.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Y.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.HO("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:g}}}}}});else if(lKz(Y)){q=d;var t=q.push;var E=void 0,J=void 0,X=void 0,u=void 0,W=void 0,p=void 0,N=void 0,I=void 0,R=Y.mainPlaylistEntity.playlistId,qN=Y==null?void 0:(I=Y.mainPlaylistEntity)==null?void 0:(N=I.thumbnailStyleData)==null?void 0:(p=N[0])==null?void 0:(W=p.value)==null?void 0:(u=W.collageThumbnail)==null?void 0:u.coverThumbnail;u=Nqk(R);if(!_.F("enable_offline_playlist_page")&&
(Y==null?0:(X=Y.mainPlaylistEntity)==null?0:X.videos)){b:{X=Y==null?void 0:(J=Y.mainPlaylistEntity)==null?void 0:J.videos;J=_.Gh().getState().entities;if(X!=null&&X.length&&J)for(X=_.C(X),W=X.next();!W.done;W=X.next())if(W=_.kC(W.value).entityId,(W=JSON.parse(W).videoId)&&dIe(J,W)==="TRANSFER_STATE_COMPLETE"){J=W;break b}J=""}J!==void 0&&(u=Wb(_.Gh().getState(),J),u=_.dW(J,R,void 0,void 0,u))}J=PsG(_.HO("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Nqk(R));Y=R&&qN&&J?{playlistId:R,navigationEndpoint:u,
viewPlaylistText:J,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:qN}},title:q$(Y.mainPlaylistEntity.title),shortBylineText:q$(Y==null?void 0:(E=Y.channelEntity)==null?void 0:E.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:vMh,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:R,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.HO("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:g}}}:
void 0;t.call(q,{gridPlaylistRenderer:Y})}}g={gridRenderer:{items:d}};f===1&&(A=Xzk(Z,M))}else if(q){var kl=_.jU((t=d==null?void 0:d.localizedPromptMessage)!=null?t:"");g={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.jU(_.HO("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.LZY}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.jU(_.HO("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};A=Xzk(Z,M)}else kl=_.jU(_.HO("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
g={};return{contents:[{shelfRenderer:{title:O,titleAnnotation:A,icon:{iconType:l},subtitle:kl,content:g,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:m}]}}}}],loggingDirectives:{clientVeSpec:{uiType:H}}}};
wzz=function(c,f,d,q,Z,M,g,O,l,m,H){d=d===void 0?{}:d;q=q===void 0?{}:q;Z=Z===void 0?!1:Z;M=M===void 0?!1:M;g=g===void 0?!1:g;O=O===void 0?!1:O;l=l===void 0?!1:l;m=m===void 0?0:m;H=H===void 0?-Infinity:H;if(!(f.length||c.length||Z||O))return M?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:s1z(d)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.jU(_.HO("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 A=[];c.length&&A.push(h6e(c,0));O?A.push({contents:[{statementBannerRenderer:HIh(l,q)}]}):Z?A.push(h6e(f,1,d,g,m,H)):M&&A.push({contents:[{statementBannerRenderer:iIr(d)}]});(Z&&f.length||c.length)&&A.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.jU(_.HO("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 A.map(function(Y){return{itemSectionRenderer:Y}})};
V0=function(c,f){if(typeof c!=="object")return null;c=_.C(Object.entries(c));for(var d=c.next();!d.done;d=c.next()){var q=_.C(d.value);d=q.next().value;q=q.next().value;if(d===f)return d;if(q=V0(q,f))return d+"."+q}return null};
Xd=function(c){var f=c.content;return(c=c.styleRuns)&&f?{runs:c.map(function(d){var q={text:f.slice(d.startIndex,d.startIndex+d.length)};d.fontColor&&(q.textColor=d.fontColor);return q})}:{simpleText:f}};
Dqk=function(c,f,d,q){var Z=ylP;q&&(c.quantity=q);if(!c.quantity||!c.maxQuantity)return{};q=c.minusButton;var M=c.plusButton,g,O,l,m;return{value:c.quantity,maxValue:c.maxQuantity,onChangeCallback:function(H){Z(c,H)},
minusLabel:(g=_.b(q,WSk))==null?void 0:g.label,minimumReachedLabel:(O=_.b(q,WSk))==null?void 0:O.limitReachedLabel,plusLabel:(l=_.b(M,WSk))==null?void 0:l.label,maximumReachedLabel:(m=_.b(M,WSk))==null?void 0:m.limitReachedLabel,disabled:f,onRemoveCommand:d}};
ylP=function(c,f){var d=c.quantityIncrementerEntityKey;if(d){var q={};q.quantity=f;_.oa(_.uh("quantityIncrementerEntity",d,q));c.onChangeCommand&&_.Ph(c.onChangeCommand)}};
IyC=function(c,f){(c=e6N(c))&&(f?NIn.push({command:c,sourceData:{},commandContext:void 0}):_.ql().resolve(_.ZM).resolveCommand(c))};
e6N=function(c){return _.b(c,_.Wh)};
PZk=function(){var c=window.performance.timeOrigin+window.performance.now(),f=(new _.vZ).setSeconds(c/1E9);return _.p3(f,2,_.cD(c%1E9),0)};
UqP=function(c,f){var d;c=(d=_.b(_.b(c,_.Wh),R6e))==null?void 0:d.methodName;var q,Z;(d=window.youtubewebview||((q=window.webkit)==null?void 0:(Z=q.messageHandlers)==null?void 0:Z.youtubewebview))&&c&&(q=new h9,c=_.b5(q,1,c),c=_.$S(c.JSC$12279_serializeBinary()),f=_.$S(f),d.postMessage(c+","+f))};
wB=function(c,f){var d=_.b(_.b(c,_.Wh),R6e);d&&(f&&(d.serializedAdditionalMetadata=_.$S(f)),IyC(c,!0))};
pzk=function(c){switch(c){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"}};
xqP=function(){return!!_.hk("ID_TOKEN")};
c1k=function(c){return c instanceof Error&&c.cause instanceof oMk&&c.cause.rpcErrorCode!==void 0?!GgG.includes(c.cause.rpcErrorCode):!0};
dcr=function(){return _.p9(fPG,{authuser:""+(_.hk("SESSION_INDEX")||0)})};
y0=function(c,f,d,q){d=d===void 0?"MINI_APP_SDK_API_UNSPECIFIED":d;q=q===void 0?"":q;var Z=new _.KD;d={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:q,sdkApi:d};c instanceof Error&&(Z.message=c.message,Z.name=c.name,c.cause instanceof oMk&&c.cause.rpcErrorCode!==void 0&&(d.rpcErrorCode=c.cause.rpcErrorCode));var M;(M=f.onError)==null||M.call(f,{loggingError:Z,metadata:d})};
qnP=function(c,f,d,q){switch(c){case "MINI_APP_SOURCE_GAMESNACKS":return new WZ(f,d,q);default:return new jje(f,d,q)}};
ZRe=function(c){switch(c){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"}};
MiN=function(c){switch(c){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"}};
r1z=function(c){switch(c){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"}};
COn=function(){return Math.floor(Math.random()*4)+1};
gTk=function(c,f,d,q){c=_.C(Object.entries(c));for(var Z=c.next(),M={};!Z.done;M={message$jscomp$990:void 0},Z=c.next()){var g=_.C(Z.value);Z=g.next().value;g=g.next().value;M.message$jscomp$990=g;f.push(setTimeout(function(O){return function(){q(!1);d(O.message$jscomp$990.text)}}(M),M.message$jscomp$990.delayMs));
Number(Z)>0&&f.push(setTimeout(function(){q(!0)},M.message$jscomp$990.delayMs-400))}};
kqG=function(c,f){var d=d===void 0?NHk:d;_.F("mweb_fix_monitor_visibility_after_render")?c&&af(function(){Rse(c,f,d)}):af(function(){Rse(c,f,d)})};
lPk=function(c){var f=c.data;var d=c.uniqueId;c=c.overrides;var q,Z=((q=f.timedAnimationData)==null?void 0:q.animationTiming)||[];return _.B("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.B(DL,{settings:{uniqueId:d,timings:Z,experimentEnabled:Z.length>0,enabled:Z.length>0}},ORM(f.buttonRenderer,{buttonRenderer:{buttonOverrides:c}})))};
TLC=function(c){sjh||(sjh=BLN(new _.eU(1,void 0,void 0,iRN),0));var f=sjh.format(Math.floor(c));f=_.D8==="be"||_.D8==="bg"||_.D8==="es"||_.D8==="et"||_.D8==="hu"||_.D8==="ka"||_.D8==="lv"||_.D8==="pl"||_.D8==="pt-PT"||_.D8==="sq"?f.replace(new RegExp("^(\\d)"+iRN.GROUP_SEP.replace(".","\\.")+"(\\d+("+iRN.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):f;return c>=1E3&&c<=9999&&f[1]==="."&&(_.D8==="sl"||_.D8==="it")?f.replace(".",""):f};
mcz=function(c,f){XN("ytd-button-renderer",{data:c,className:f?f.className:"",overrides:f==null?void 0:f.buttonOverrides},PV)};
YnG=function(c,f,d,q){if(c)return q=q||c.likeStatus,f?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:q==="LIKE",isDisabled:!c.likesAllowed,defaultIcon:{iconType:d},defaultText:q==="LIKE"?c.likeCountWithUnlikeText:c.likeCountText,toggledText:q==="LIKE"?c.likeCountText:c.likeCountWithLikeText,defaultNavigationEndpoint:HRz(c,"LIKE"),defaultServiceEndpoint:A14(c,"LIKE"),toggledServiceEndpoint:A14(c,"INDIFFERENT"),defaultTooltip:_.xC(c.likeCountTooltipText),toggledTooltip:_.xC(c.likeCountTooltipText),
targetId:c.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:q==="DISLIKE",isDisabled:!c.likesAllowed,defaultIcon:{iconType:d},defaultText:q==="DISLIKE"?c.dislikeCountWithUndislikeText:c.dislikeCountText,toggledText:q==="DISLIKE"?c.dislikeCountText:c.dislikeCountWithDislikeText,defaultNavigationEndpoint:HRz(c,"DISLIKE"),defaultServiceEndpoint:A14(c,"DISLIKE"),toggledServiceEndpoint:A14(c,"INDIFFERENT"),defaultTooltip:_.xC(c.dislikeCountTooltipText),
toggledTooltip:_.xC(c.dislikeCountTooltipText)}};
HRz=function(c,f){if(f==="LIKE")return c.likeCommand;if(f==="DISLIKE")return c.dislikeNavigationEndpoint};
A14=function(c,f){var d;return(d=c.serviceEndpoints)==null?void 0:d.find(function(q){var Z;return((Z=_.b(q,_.e4))==null?void 0:Z.status)===f})};
_.bRC=function(c,f,d){return window.spf&&!_.F("web_disable_spfjs_client")?FXl(c,f,d):tih(c,f)};
FXl=function(c,f,d){var q=null,Z=(new _.i6(function(M,g){var O={};if(f){O.method=f.method;var l=f.postParams||{};e5k(c,f)&&(l[_.hk("XSRF_FIELD_NAME")]=_.hk("XSRF_TOKEN"));O.postData=_.Tf(l);f.type&&(O.type=f.type);l=f.headers}O.headers=vtk(c,l);_.F("debug_forward_web_query_parameters")&&(c=_.WnC(c,window.location.search));O.experimental_headers=O.headers;O.onError=function(m){m.err&&m.xhr&&(m.err.params={url:m.xhr.responseURL,response:m.xhr.responseText.substr(0,64)});g(m.err)};
O.onPartDone=function(m){d&&d.call(null,m.part)};
O.onDone=function(m){var H=KXN(m.response,"xsrf_token");G4(window.location.href,c)&&H&&_.Xr("XSRF_TOKEN",H);if(H=KXN(m.response,"service_worker_killswitch"))_.Xr("SERVICE_WORKER_KILLSWITCH",H),neh();M(m.response)};
q=spf.request(c,O)})).then(ETn);
Z.thenCatch(function(M){var g=M instanceof _.NC,O=M&&M.hasOwnProperty("params")&&M.params.response?M.params.response:"";M instanceof Error&&(O?g?nvl(M):O===')]}\'\n{"reload":"now"}'?nvl(M):(nTC(M,c,O),$ce(M,O)?_.u6(M):_.VO(M)):nvl(M));q&&q.abort()});
return Z};
ETn=function(c){if(c.type==="multipart"){var f=c.timing;c=c.parts.reduce(function(d,q){Object.assign(d,q);return d},{});
c.timing=c.timing||{};Object.assign(c.timing,f);c.type="reduced"}return c};
tih=function(c,f){f=f===void 0?{}:f;var d=null,q=new _.i6(function(Z,M){f.onFinish=function(g){if(g.readyState===XMLHttpRequest.DONE)if(g.status===200){if(g.responseType!=="json"){var O=g.response;O.substring(0,5)===")]}'\n"&&(O=O.substring(5));try{var l=JSON.parse(O)}catch(m){l=m}}else l=g.response;l instanceof Error?M(l):(O=KXN(l,"xsrf_token"),G4(window.location.href,c)&&O&&_.Xr("XSRF_TOKEN",O),g=g.responseURL,window.performance&&window.performance.getEntriesByName?(O=window.performance.getEntriesByName(g).pop())?
g={responseStart:(0,_.qR)()-(O.responseEnd-O.responseStart)}:(Math.random()<.01&&(O=Error("ai"),O.params=g,_.u6(O)),g={responseStart:-1}):g={responseStart:0},l.timing=l.timing||{},Object.assign(l.timing,g),Z(l))}else M(Error("$h`"+g.status))};
(d=_.iF(c,f))||M(Error("$h`"+d.status))});
q.thenCatch(function(Z){Z instanceof Error&&(nTC(Z,c),$ce(Z)&&(Z.level="WARNING"))});
_.F("cancel_pending_navs")&&q.thenCatch(function(){d.abort()});
return q};
KXN=function(c,f){var d=c[f],q=c.parts;c.type==="multipart"&&q&&(d=(c=q.find(function(Z){return f in Z}))&&c[f]);
return d};
nTC=function(c,f,d){var q=c.message||"";f={original:q,url:f};if(d)if(q=q.match(/position:?\s*(\d+)/)){q=q&&Number(q[1])?Number(q[1]):0;var Z=Math.max(q-25,0);f.position=q;f.response=d.substring(Z,q+25)}else f.response=d.substring(0,50);_.wK(c,f);try{c.message="JSON parse error"}catch(M){}};
$ce=function(c,f){c=c.message||"";c=!!(c.indexOf("<")>=0||c.indexOf("end of ")>=0||c.indexOf("Unterminated string")>=0||c.indexOf("Unexpected EOF"));if(!c&&f)for(var d=f.length,q=!1,Z=0;Z<d;Z++)if(q&&f[Z]==="\\")Z++;else if(f[Z]==='"')q=!q;else if(f[Z]==="<"&&!q){c=!0;break}return c};
QjN=function(){return document.documentElement.hasAttribute("dark")};
_.Snn=function(c,f){if(c!=="GFEEDBACK"&&c!=="GUIDED_HELP")_.yJ(Error("bi`"+c));else{var d=_.ql().resolve(_.dx(_.MY));if(d&&(d=d.getCurrentPage())&&d.getServiceTrackingParams&&(d=d.getServiceTrackingParams()))for(var q=0,Z;Z=d[q++];)if(Z.service===c){if(c=Z.params)for(d=0;q=c[d++];)f[q.key]=q.value;break}}};
_.LXz=function(c){var f=_.Ca();f&&(f=f.getPlayer())&&(f.pauseVideo(),c.playback_id=f.getVideoData().cpn,c.eid=f.getVideoData().eventId,Object.assign(c,f.getFeedbackProductData()))};
zMl=function(){var c={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.hk("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(c.enableAnonymousFeedback=!0);_.hk("SESSION_INDEX")&&(c.authuser=String(_.hk("SESSION_INDEX")));_.F("enable_pageid_for_feedback")&&_.hk("DELEGATED_SESSION_ID")&&(c.pageId=String(_.hk("DELEGATED_SESSION_ID")));return c};
_.I9=function(c){_.F("enable_ypc_spinners")&&_.gS(c,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},c])};
_.PZ=function(c){_.F("enable_ypc_spinners")&&_.gS(c,"yt-close-popup-action",["yt-loading-renderer"])};
J1N=function(c){return new Promise(function(f,d){_.eq({verifyCommand:{recaptchaToken:c.recaptchaResponse}},{commandController:{onSuccess:function(q,Z){Z||d("ChallengeService did not return a response.");var M;f({challengeCompleted:(M=Z.verified)!=null?M:!1})},
onServerError:function(q,Z){d(Z)}}})})};
aPP=function(c,f,d,q){f({recaptchaResponse:q}).then(function(Z){Z.challengeCompleted?_.FJ()?(d(3),_.ql().resolve(_.ZM).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:c}})):d(2):d(4)},function(){d(4)})};
XYk=function(c,f,d){_.Dz(_.CG(ViY,_.hk("HL")),function(){var q;(q=window.grecaptcha)==null||q.ready(function(){var Z=window.grecaptcha;Z?(d(Z.render(c,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:aPP.bind(null,c,J1N,f)})),f(1)):f(4)})})};
uqr=function(c,f){return function(){switch(f()){case 0:return c().captchaLoadingMessage;case 1:return c().challengeReason;case 3:return c().captchaSuccessfulMessage;case 2:return c().captchaCookieSetFailureMessage;case 4:return c().captchaFailedMessage;default:return c().challengeReason}}()};
_.R9=function(){if(!vTN){var c=document.querySelector("#player.skeleton");c&&(_.Y6(c),vTN=!0)}};
_.wYN=function(){return hMN=nqG()};
Dc4=function(){return _.k(function(c){return y1k!==void 0?c.return():c.yield(WXk(),0)})};
WXk=function(){return _.k(function(c){if(c.nextAddress==1)return c.yield(Q0h(),2);hMN=c.yieldResult;y1k=_.a7.addLowPriorityJob(WXk,5E3);_.Fm(c)})};
UcP=function(c){var f=f===void 0?eMz:f;var d,q,Z=(d=c.responseContext)==null?void 0:(q=d.mainAppWebResponseContext)==null?void 0:q.trackingParam;if(!Z){f.increment("MISSING");var M,g,O,l,m,H;_.u6(new _.KD("282054944_a",{dmc:!!((M=c.responseContext)==null?0:(g=M.mainAppWebResponseContext)==null?0:g.loggedOut),vWi:((O=c.responseContext)==null?void 0:O.mainAppWebResponseContext)===void 0,qNG:c.responseContext===void 0,cp:(l=c.playabilityStatus)==null?void 0:l.contextParams,mZj:(((m=c.streamingData)==
null?void 0:m.formats)||[]).length>0,u0U:(((H=c.streamingData)==null?void 0:H.adaptiveFormats)||[]).length>0,os:!!c.offlineState,cotn:c.cotn}));return 2}d="";try{d=NLr(Z)}catch(t){return f.increment("C_ERROR"),_.VO(t),2}try{var A=_.IPl(d);var Y=POr(A)}catch(t){return f.increment("P_ERROR"),_.VO(t),2}Y=_.db(Y,RMY,1,_.jQ());Z=[];Y=_.C(Y);for(A=Y.next();!A.done;A=Y.next())q=A.value,A=q.getPath(),d=(0,_.zV.getValueByKeys)(c,A.split(".")),d=String(d===void 0||d===null?"":d),q=q.getValue()||"",M=/[+\-\/_]/g,
d.replace(M,"")!==q.replace(M,"")&&(f.increment("MISMATCH"),_.F("ab_mis_log_err")&&(d=new _.KD("282054944_p",{jeA:A,g:String(d),e:String(q)}),_.VO(d)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(A)||(A.match(/enforcementMessageViewModel/i)?Z.push(3):Z.push(2)));if(Z.length>0)return Math.max.apply(Math,_.LT(Z));f.increment("SUCCESS");return 1};
oTn=function(c){var f=new Uo;if(c.interpreterJavascript){var d=_.AYe(c.interpreterJavascript);d=M8C(d).toString();var q=new pYN;_.b5(q,6,d);_.BU(f,1,q,zv)}else c.interpreterUrl&&(d=_.Vm(c.interpreterUrl),d=_.Kq(d).toString(),q=new _.xcY,_.b5(q,4,d),_.BU(f,2,q,zv));c.interpreterHash&&_.pO(f,3,c.interpreterHash,zv);c.program&&_.pO(f,4,c.program,zv);c.globalName&&_.pO(f,5,c.globalName,zv);c.clientExperimentsStateBlob&&_.pO(f,7,c.clientExperimentsStateBlob,zv);return f};
xs=function(c){var f={};c=_.C(c.split("&"));for(var d=c.next();!d.done;d=c.next())d=d.value.split("="),d.length===2&&(f[d[0]]=d[1]);return f};
GqG=function(c){return Number(c.t)||7200};
QwN=function(){if(_.F("bg_st_hr"))return"havuokmhhs-0";var c,f=((c=performance)==null?void 0:c.timeOrigin)||0;return"havuokmhhs-"+Math.floor(f)};
cje=function(){return new Promise(function(c){var f=window;f.ntpevasrs!==void 0?c(new o9(f.ntpevasrs)):(f.ntpqfbel===void 0&&(f.ntpqfbel=[]),f.ntpqfbel.push(function(d){c(new o9(d))}))})};
fRl=function(c){var f=c.tYY.bind(c);_.fu("yt.aba.att",f);c=c.lpd.bind(c);_.fu("yt.aba.att2",c)};
jzN=function(c){switch(_.Bq(c.input)){case _.cS(d1l):var f={};return f.encryptedVideoId=c.innerTubeRequest.externalVideoId,f}return{}};
MoG=function(c){switch(_.Bq(c.input)){case _.cS(d1l):if(_.F("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.cS(qEe):if(_.F("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.cS(G6):if(_.F("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&c.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.cS(Zbk):var f,d;if(_.F("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((d=_.b((f=c.config)==null?void 0:f.command,yye))==null?0:d.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.C8Y=function(c){var f;if(c.playlistVideoRenderer&&((f=c.playlistVideoRenderer)==null?0:f.engagementBar))return rjn(c.playlistVideoRenderer.engagementBar);if(_.b(c,c5)){var d;if(c=(d=_.b(c,c5))==null?void 0:d.engagementBar)return rjn(c)}return""};
rjn=function(c){if(!c)return"";c=_.b(c,_.gUz);if(c==null||!c.actions)return"";c=_.C(c.actions);for(c=c.next();!c.done;c=c.next()){c=_.b(c.value,_.kQC);var f=void 0;if((f=c)==null||!f.itemId)break;return c.itemId}return""};
_.Ob4=function(c){var f;if(c.playlistVideoRenderer&&((f=c.playlistVideoRenderer)==null?0:f.videoId))return c.playlistVideoRenderer.videoId;if(_.b(c,c5)){var d,q;if(c=(d=_.b(c,c5))==null?void 0:(q=d.playlistItemData)==null?void 0:q.videoId)return c}return""};
_.lRk=function(c){var f;if(c.playlistVideoRenderer&&((f=c.playlistVideoRenderer)==null?0:f.voteCount))return c.playlistVideoRenderer.voteCount;if(_.b(c,c5)){var d,q;if(c=(d=_.b(c,c5))==null?void 0:(q=d.playlistItemData)==null?void 0:q.voteCount)return c}return 0};
_.fp=function(c,f){return _.Bb(c.entities,"flowStateEntity",f)};
BQC=function(c,f,d,q){var Z=void 0;c=_.C(c[f.iconName]||[]);for(var M=c.next();!M.done;M=c.next()){M=M.value;var g=f.iconSize;var O=f.iconStyle;g=!g||g===M[2];var l=szh[M[0]];q&&q!==M[1]||!g||O&&O!==l?O=!1:Z?(O=szh[M[0]],O=!!f.iconStyle||O==="youtube_outline",g=Z.version<=M[1],O=(!!f.iconSize||M[2]===24)&&O&&g):O=!0;O&&(Z={name:f.iconName,style:szh[M[0]],size:M[2],version:M[1],allowMirroring:!!M[3],url:d(f.iconName,M)})}return Z};
ibM=function(c,f,d,q){return c+(""+szh[d[0]]+((q===void 0?0:q)?"_experimental":"")+"/"+f+"/v"+d[1]+"/")+(d[2]+"px.svg")};
TQG=function(c){return _.hk("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":c};
m1M=function(c,f){return ibM("https://fonts.gstatic.com/s/i/",c,f)};
Hbh=function(c,f){return ibM("https://fonts.gstatic.com/s/i/",c,f,!0)};
AjG=function(c,f){return ibM("https://www.gstatic.com/youtube/img/icons/web/",c,f)};
Fmh=function(c){var f=c.enabled;var d=c.itemPlaybackModel;var q=c.thumbnailElRef;var Z=c.containerElRef;var M=c.options;var g;_.$k(function(){var O=Z==null?void 0:Z.value;var l,m=(l=q())==null?void 0:l.value;l=d();var H=M();if(f&&l&&O&&m&&(H==null?0:H.thumbnail)){var A={data:l,hostElement:O},Y,t,E=_.F("web_explore_hub_on_hover")||_.F("web_client_explore_hub_on_hover")?[].concat(_.LT((Y=H.thumbnailOverlays)!=null?Y:[]),_.LT((t=l.overlays)!=null?t:[])):H.thumbnailOverlays||[],J,X;O={mediaRenderer:A,
lockupElement:O,thumbnailElement:m,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.D9((J=l.inlinePlayerData)==null?void 0:J.onVisible),navigationEndpoint:_.D9((X=l.inlinePlayerData)==null?void 0:X.onSelect),thumbnail:H.thumbnail,thumbnailOverlays:E,accessibilityText:H.accessibilityText||""},thumbnailSize:H.thumbnailSize,enableRounding:H.enableRounding}}}else O=void 0;if(J=O){var u;(u=g)==null||dO(u);g=P9(J);var W,p;((W=d())==null?0:(p=W.inlinePlayerData)==null?0:p.forceImpAutoplay)&&
YEn(g)}},"B33dEc");
_.Q4(function(){var O;(O=g)==null||dO(O)})};
toN=function(c){c=atob(c);for(var f=[],d=0;d<c.length;d++)f.push(c.charCodeAt(d));return new Blob([new Uint8Array(f)],{type:"image/png"})};
Km4=function(c,f,d,q){q=q===void 0?"INSERTION_POSITION_UNSPECIFIED":q;return c({targetId:f},function(Z){var M,g=(M=Z.contents)!=null?M:[];M=d!=null?d:[];var O=bbN(g);switch(q){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Z,{contents:[].concat(_.LT(g.slice(0,O)),_.LT(M),_.LT(g.slice(O+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Z,{contents:[].concat(_.LT(M),_.LT(g))});case "INSERTION_POSITION_LAST":return Object.assign({},Z,{contents:[].concat(_.LT(g),_.LT(M))});
default:return Z}})};
nUC=function(c,f,d,q,Z){Z=Z===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Z;return c({targetId:f},function(M){var g,O=(g=M.contents)!=null?g:[];g=EUh(O,d);if(g<0)return M;g=Z==="RELATIVE_INSERTION_POSITION_BEFORE"?g:g+1;return Object.assign({},M,{contents:[].concat(_.LT(O.slice(0,g)),_.LT(q),_.LT(O.slice(g)))})})};
bbN=function(c){var f=c.findIndex(function(d){return _.b(d,_.jJ)});
return f>=0?f:c.length};
EUh=function(c,f){return c.findIndex(function(d){a:{d=_.C(Object.values(d));for(var q=d.next();!q.done;q=d.next())if((q=q.value)&&q.targetId){d=q.targetId;break a}d=""}return d===f})};
Qz4=function(c,f,d){return c({targetId:f},function(q){var Z,M=(Z=q.contents)!=null?Z:[];return Object.assign({},q,{contents:$1k(M,d)})})};
$1k=function(c,f){return c.filter(function(d){var q=f.includes;a:{d=_.C(Object.values(d));for(var Z=d.next();!Z.done;Z=d.next())if((Z=Z.value)&&Z.targetId){d=Z.targetId;break a}d=""}return!q.call(f,d||"")})};
_.SEC=function(c,f){return{engagementPanelSectionListRenderer:{panelIdentifier:c,identifier:f,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.z7M=function(c){var f,d=(f=c.getOption("captions","tracklist",{includeAsr:!0}))!=null?f:[];return d=LmG(d,c)};
Jjl=function(c){return c.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
LmG=function(c,f){f=Jjl(f);if(f==null||!f.length)return c;var d=f.filter(function(g){return g});
f=c.filter(function(g){return g.languageCode.startsWith("en")});
d=_.C(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,f.length){var Z=f[0],M=Object.assign({},Z);Z.languageCode!==q.languageCode&&(M.displayName=Z.languageName+" >> "+q.languageName,M.translationLanguage=q,c.push(M))}return c};
aRh=function(c,f,d){c=_.z7M(c);if(c.length)return d?c.find(function(q){if(typeof(q==null?void 0:q.translationLanguage)==="object"){var Z;return((Z=q.translationLanguage)==null?void 0:Z.languageCode)===f}return!1}):c==null?void 0:c.find(function(q){return q.languageCode===f})};
Voh=function(c){return c.getOption("captions","tracklist",{includeAsr:!0})};
XcG=function(c){return c.getOption("captions","tracklist",{includeAsr:!0})};
uZY=function(c){var f=XcG(c);if(f==null?0:f.length)return f;c.loadModule("captions");return XcG(c)};
vU4=function(c){var f=c.getOption("captions","track");if(f)return f;c.loadModule("captions");return c.getOption("captions","track")};
wck=function(c){var f=uZY(c);if(f!=null&&f.length){var d=vU4(c),q;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.HO("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(d==null?0:d.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.LT(f.map(function(Z){return{listItemViewModel:{title:{content:Z.displayName},
isSelected:Z.displayName===(d==null?void 0:d.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Z.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.HO("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!d.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!d.translationLanguage&&{selectionText:{content:(d==null?void 0:(q=d.translationLanguage)==null?void 0:q.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[h7l(c)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
h7l=function(c){var f=Jjl(c);if(f==null||!f.length)throw Error("Ai");var d=vU4(c);c=f.filter(function(q){return!q.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.LT(c.map(function(q){var Z;return{listItemViewModel:{title:{content:q.languageName},isSelected:q.languageName===(d==null?void 0:(Z=d.translationLanguage)==null?void 0:Z.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:q.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
e7Y=function(c){return new Promise(function(f,d){if(c===void 0)_.VO(Error("Ei"),"ERROR"),d(Error("Ei"));else{d=new _.yjn;var q=_.Wmh();d=d.init();var Z=_.D1r(_.hk("YPC_MB_URL"),!0);Promise.all([d,Z]).then(function(){var M=payments.business.integration.ClientTokenFactory.createClientToken(c,q);f(M)})}})};
P8C=function(c,f,d,q,Z,M,g){var O=_.c9();d=d.replace(/-/g,"+").replace(/_/g,"/");var l=_.Ft().get("hl"),m=_.qo(_.pX),H=f==null?void 0:f.element;H&&_.I9(H);NQP(f,!0);_.IR4(m,d,O.resolve,function(){H&&_.PZ(H)},function(A){H&&_.PZ(H);
O.reject(A)},l,q?function(A){q&&_.G3(c,q,{backend_analytics:A})}:void 0,O.resolve,Z,M,g);
return O.promise};
NQP=function(c,f){!(c=c==null?void 0:c.element)||c.tagName!=="YT-BUTTON-RENDERER"&&c.tagName!=="YTD-BUTTON-RENDERER"||(c.disabled=f)};
R7M=function(){var c=_.HO("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.jU(c),actionButton:{buttonRenderer:kzP()}}},popupType:"TOAST"}};
U1N=function(){var c=_.HO("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.jU(c),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
pcz=function(c){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:c}]}}};
Zh=function(c,f,d,q){var Z;return _.k(function(M){if(M.nextAddress==1)return _.iY(M,2),M.yield(c,4);if(M.nextAddress!=2)return(Z=_.Ex(f.getState().entities).length>0)?M.return({title:_.jU(_.HO("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.jU(_.HO("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:gVk()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
M.return(OIn(d,q));_.Yw(M);return M.return(OIn(d,q))})};
x1M=function(c,f){return f?f==="PPSV"||Z5k(c,f):!1};
oUn=function(c){c.responseContext||(c.responseContext={});c.responseContext.maxAgeSeconds=0;return c};
rO=function(c){var f;return _.k(function(d){return d.nextAddress==1?d.yield(GQY(c,"service:topbar:fallback"),2):(f=d.yieldResult)&&_.Mo(f)?d.return(oUn(_.Mo(f))):d.return()})};
cGG=function(c){var f;return _.k(function(d){return d.nextAddress==1?d.yield(GQY(c,"service:downloads_settings:fallback"),2):(f=d.yieldResult)&&_.Mo(f)?d.return(f):d.return()})};
GQY=function(c,f){var d;return _.k(function(q){if(q.nextAddress==1)return c?q.yield(c.get(f),2):q.return();d=q.yieldResult;return!d||!_.Mo(d)||!isNaN(Number(d.data.expireTimestampMs))&&d.isExpired()?q.return():q.return(d)})};
fXl=function(c){var f=_.ql().resolve(Cp).getState().entities;return c.playlistId?x1M(f,c.playlistId):!1};
dyN=function(c,f){var d;if(f==null?0:(d=f.requestTemplate)==null?0:d.panelId)c.panelId=f.requestTemplate.panelId;var q;if(f==null?0:(q=f.requestTemplate)==null?0:q.params)c.params=f.requestTemplate.params};
qdk=function(){if(jsN)return jsN();var c=!_.F("idb_response_store_auth_killswitch"),f={};jsN=j6("yt-it-response-store",{objectStores:(f.ResponseStore={addedAtVersion:1},f),shared:!c,upgrade:function(d,q){q(1)&&(d=ym(d,"ResponseStore",{keyPath:["key","clientName"]}),Ws(d,"byExpiration","expireTimestampMs"),Ws(d,"byInterface","clientName"))},
version:1});return jsN()};
ZE4=function(c){return _.Uz(qdk(),c)};
rGl=function(c,f){var d;return _.k(function(q){return q.nextAddress==1?q.yield(_.dR(),2):(d=q.yieldResult)?q.return(new MbM(c,f,d)):q.return()})};
CGY=function(c){var f=Object.keys(c)[0];if(f)return c.screenExit&&(f=f+";"+c.screenExit.screen),f};
gLN=function(c){var f=new Map;c=_.C(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d!=null&&(f.has(d.taskType)||f.set(d.taskType,[]),f.get(d.taskType).push(d));return f};
kW4=function(c){return!isNaN(c)&&c>0};
OEz=function(c){c=[].concat(_.LT(c)).sort(function(d,q){return d-q});
var f=Math.floor(c.length/2);return c.length%2?c[f]:(c[f-1]+c[f])/2};
B0n=function(c,f){c=c===void 0?Oar:c;f=f===void 0?{}:f;_.fu("yt.logging.errors.log",_.VO);gvC();lXz(TyC(),f);window.onerror=c;ssk=kxk;window.addEventListener("unhandledrejection",function(d){if(d.reason instanceof Error){var q=d.reason;_.wK(q,{source:"unhandledrejection"});q.name==="AbortError"&&(q.level="WARNING")}kxk(d.reason);d.preventDefault()})};
_.iEk=function(c){return c.a11y.ephemeralAction||null};
_.T0M=function(c){var f,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R,qN,kl,BN,tP,EC,AP,eM,ue,BH,J3,lr,xl,Tv,ir,$_,AH,U3,MN;return _.k(function(qH){if(qH.nextAddress==1)return qH.yield(_.YC(c,{mode:"readonly",enableRetries:!0},function(br){return F5(br,"playbackData").then(function(YS){var Y_=YS.map(function(Cj){return Cj.transfer}).filter(function(Cj){return!!Cj}),eu=YS.map(function(Cj){return Cj.offlineVideoPolicy}).filter(function(Cj){return!!Cj}),fT=YS.filter(function(Cj){return!!Cj.key}).map(function(Cj){return _.sx(_.kC(Cj.key).entityId,
"downloadStatusEntity")});
Y_=F5(br,"transfer",Y_);eu=F5(br,"offlineVideoPolicy",eu);fT=F5(br,"downloadStatusEntity",fT);var Gv=Y_.then(function(Cj){Cj=Cj.reduce(function(dJ,BD){(BD==null?0:BD.offlineVideoStreams)&&dJ.push.apply(dJ,_.LT(BD.offlineVideoStreams));return dJ},[]).filter(function(dJ){return!!dJ});
return F5(br,"offlineVideoStreams",Cj)});
return Wq.all([Y_,eu,Gv,fT]).then(function(Cj){var dJ=_.C(Cj);Cj=dJ.next().value;var BD=dJ.next().value;var E3=dJ.next().value;dJ=dJ.next().value;return[YS,Cj,BD,E3,dJ]})})}),2);
if(qH.nextAddress!=3)return f=qH.yieldResult,qH.yield(_.YC(c,{mode:"readonly",enableRetries:!0},function(br){return F5(br,"mainDownloadsListEntity").then(function(YS){var Y_,eu;return(eu=(Y_=YS[0])==null?void 0:Y_.downloads)!=null?eu:[]})}),3);
d=qH.yieldResult;q=_.C(f);Z=q.next().value;M=q.next().value;g=q.next().value;O=q.next().value;l=q.next().value;m=Z;H=M;A=g;Y=O;t=l;E={};J={};X={};u={};W={};p=[];N=_.C(H);for(I=N.next();!I.done;I=N.next())(R=I.value)&&(E[R.key]=R);qN=_.C(A);for(kl=qN.next();!kl.done;kl=qN.next())(BN=kl.value)&&(J[BN.key]=BN);tP=_.C(t);for(EC=tP.next();!EC.done;EC=tP.next())(AP=EC.value)&&(X[AP.key]=AP);eM=_.C(Y);for(ue=eM.next();!ue.done;ue=eM.next())(BH=ue.value)&&(u[BH.key]=BH);J3=_.C(d);for(lr=J3.next();!lr.done;lr=
J3.next())xl=lr.value,Tv=void 0,W[(Tv=xl.videoItem)!=null?Tv:""]=!0,xl.videoItem&&($_=ir=void 0,AH=($_=(ir=_.kC(xl.videoItem))==null?void 0:ir.entityId)!=null?$_:"",p.push({externalVideoId:AH}));U3=m.filter(function(br){if(!br||!br.key||!br.offlineVideoPolicy)return!1;br=_.kC(br.key).entityId;br=_.sx(br,"downloadStatusEntity");var YS;return!(br&&((YS=X[br])==null?void 0:YS.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
MN=U3.map(function(br){var YS=E[br.transfer],Y_=[];if(YS==null?0:YS.offlineVideoStreams)for(var eu=_.C(YS.offlineVideoStreams),fT=eu.next();!fT.done;fT=eu.next())(fT=u[fT.value])&&Y_.push(fT);eu=J[br.offlineVideoPolicy];fT=W;var Gv=br==null?void 0:br.playerResponseTimestamp,Cj=_.kC(eu.key).entityId;br=_.sx(Cj,"mainVideoEntity");if(eu.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var dJ="OFFLINE_VIDEO_STATE_DISABLED";eu.expirationTimestamp&&Number(eu.expirationTimestamp)<Date.now()/1E3&&(dJ="OFFLINE_VIDEO_STATE_EXPIRED")}else if(eu.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")dJ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(YS==null?void 0:YS.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":dJ="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":dJ="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":dJ="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":dJ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":dJ="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":dJ="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:dJ="OFFLINE_VIDEO_STATE_UNKNOWN"}if(dJ==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(YS==null?void 0:YS.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":dJ="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":dJ="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":dJ=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Cj={id:Cj,videoState:dJ};if(YS==null?0:YS.cotn)Cj.cotn=YS.cotn;if(YS==null?0:YS.maximumDownloadQuality)Cj.selectedVideoQuality=YS==null?void 0:YS.maximumDownloadQuality;if(YS==null?0:YS.lastProgressTimeMs)Cj.lastProgressTimeMs=YS.lastProgressTimeMs;Gv&&(Cj.playerResponseSavedTimeMs=String(Number(Gv)*1E3));YS=String;Gv=0;Y_=_.C(Y_);for(dJ=Y_.next();!dJ.done;dJ=Y_.next())if(dJ=dJ.value,dJ.streamsProgress){dJ=_.C(dJ.streamsProgress);for(var BD=dJ.next();!BD.done;BD=
dJ.next()){var E3=void 0;Gv+=Number((E3=BD.value.numBytesDownloaded)!=null?E3:0)}}Cj.downloadedBytes=YS(Gv);Cj.selectedOfflineMode=fT[br]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";eu.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Cj.offlinePlaybackDisabledReason=eu.offlinePlaybackDisabledReason);return Cj});
return qH.return({offlineVideos:MN,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:p}}})})};
myG=function(){var c;return _.k(function(f){return f.nextAddress==1?f.yield(_.md(),2):(c=f.yieldResult)?f.return(_.T0M(c)):f.return({state:"PES Unavailable"})})};
YdC=function(){var c,f,d,q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(_.md(),2);if(Z.nextAddress!=3)return(c=Z.yieldResult)?Z.yield(HEn(c),3):Z.return({state:"PES Unavailable"});f=Z.yieldResult;d={};q=f.reduce(function(M,g){M[g.key]=g;return M},d);
return Z.return(AGk(q))})};
AGk=function(c){for(var f={},d=[],q=_.C(Object.keys(c)),Z=q.next();!Z.done;Z=q.next()){var M=Z.value;Z=c[M];var g=void 0;if(((g=Z)==null?void 0:g.entityType)==="mainVideoEntity"){delete c[M];var O=Z.data;Z={};if(O){var l=void 0;g=(l=O.videoId)!=null?l:"vid-"+M;M=c;Z.video=O;delete Z.video.formattedDescription;delete Z.video.thumbnail;O.owner&&(l=M[O.owner],l==null?0:l.data)&&(delete M[l.key],Z.video.owner=l.data,delete Z.video.owner.avatar);if(O=O.downloadState)if(l=M[O],l==null?0:l.data)if(delete M[O],
O=l.data.playbackData)if(l=M[O],l!=null&&l.data){delete M[O];O=l.data;delete O.playerResponseJson;Z.playbackData=O;if(O.transfer&&(l=M[O.transfer],l==null?0:l.data)){delete M[l.key];var m=l.data;Z.transfer=m;l=[];m=_.C(m.offlineVideoStreams||[]);for(var H=m.next();!H.done;H=m.next())if(H=M[H.value])delete M[H.key],l.push(H.data);l&&(Z.streams=l)}(O=O.offlineVideoPolicy)&&(O=M[O])&&O.data&&(delete M[O.key],Z.offlineVideoPolicy=O.data)}f[g]=Z}}else Z&&Z.entityType==="offlineOrchestrationActionWrapperEntity"&&
Z.data&&(delete c[Z.key],g=Z.data,M=void 0,d.push({id:g.rootActionId,type:((M=g.actionProto)==null?void 0:M.actionType)||"",entity:Z}))}f.wrapperEntities=d;Object.keys(c).length>0&&(f.unknownKeys=c);return f};
FI4=function(){var c,f,d,q,Z,M,g,O,l;return _.k(function(m){if(m.nextAddress==1)return c=!!(new _.hw("")).expiringStorage_,q=!!((f=_.dz.crypto)==null?0:(d=f.subtle)==null?0:d.importKey),Z=!!_.dz.BroadcastChannel,M=!!_.dz.navigator.locks,m.yield(D$z(),2);g=m.yieldResult;O=c&&q&&Z&&M&&g;l={isSupported:O};if(O)return m.return(l);l.missingBrowserFeatures=[];g||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");c||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
q||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Z||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");M||l.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return m.return(l)})};
tbN=function(){var c;return!((c=gO?gO:null)==null||!c.window)};
_.KI4=function(c){if(_.Qn()&&_.BzP("Chromium")>=120){var f=_.bE4().mediaSession;try{f.setActionHandler("enterpictureinpicture",function(){c()})}catch(d){}}};
ELk=function(c){for(var f=[],d=_.C(document.styleSheets),q=d.next(),Z={};!q.done;Z={node$jscomp$727:void 0},q=d.next())Z.node$jscomp$727=q.value.ownerNode,Z.node$jscomp$727&&(Z.node$jscomp$727 instanceof HTMLStyleElement||Z.node$jscomp$727 instanceof HTMLLinkElement)&&f.push(new Promise(function(M){return function(g){var O=M.node$jscomp$727.cloneNode(!0);O.onload=function(){g()};
O.onerror=function(){_.u6(Error("gj"));g()};
c.document.head.appendChild(O)}}(Z)));
return Promise.all(f)};
XJP=function(c){var f=[_.j5(nLP),_.j5($yh),_.j5(Qsh)];Sdz(window.document.documentElement,c.document.documentElement,[_.j5(LIk),_.j5(zXk),_.j5(JGe),_.j5(aXk),_.j5(Vbk)]);Sdz(window.document.body,c.document.body,f)};
Sdz=function(c,f,d){c=_.C(c.attributes);for(var q=c.next();!q.done;q=c.next())if(q=q.value)try{_.ck(d,f,q.name,q.value)}catch(Z){}};
vLh=function(c,f){c=new _.kR(c.document.documentElement);c.start(uKP,f);return c};
hXC=function(c){var f=c.document.documentElement;f.addEventListener("click",function(d){RSk(f,d)});
f.addEventListener("touchstart",function(d){G$n(d)});
f.addEventListener("mousedown",function(d){G$n(d)})};
yGk=function(c,f,d,q){q=q===void 0?!1:q;f=new wJe(f||c,d||c);return{x:c.x+((q===void 0?0:q)?f.lengthX*-1:f.lengthX)*.2,y:c.y+((q===void 0?0:q)?f.lengthY*-1:f.lengthY)*.2}};
WIG=function(c){if(!c)return!1;var f=c.status==="OK"||c.status==="LIVE_STREAM_OFFLINE",d,q,Z,M=(Z=(d=c.errorScreen)==null?void 0:d.playerLegacyDesktopYpcTrailerRenderer)!=null?Z:(q=c.errorScreen)==null?void 0:q.ypcTrailerRenderer;return!!f||!!M};
_.DyP=function(c,f){if(!c)return!1;var d,q=(d=c.errorScreen)==null?void 0:d.playerLegacyDesktopYpcOfferRenderer,Z;f=!!(f==null?0:(Z=f.playerOverlayRenderer)==null?0:Z.gatedActionsOverlayRenderer);return!!WIG(c)||!!q||!!f};
IX4=function(c){return eXN(c,0,"gclid",c.search(N0h))>=0||eXN(c,0,"gad_source",c.search(N0h))>=0};
PGe=function(c){var f=[],d=0;return{clear:function(){d=f.length=0},
push:function(q){f[d]=q;d=(d+1)%c},
iterate:function(){return function Z(){var M,g,O,l;return _.O_(Z,function(m){switch(m.nextAddress){case 1:_.Hk(m,2),M=f.length,g=0;case 4:if(!(g<M)){m.jumpTo(2);break}O=d+g;l=_.lk;return m.yield(f[O%M],7);case 7:l(m.yieldResult);g++;m.jumpTo(4);break;case 2:_.m0(m),_.AD(m,0)}})}()}}};
UyY=function(){var c=RXz,f=fx.bufferSize;c||(c=[]);c=c.map(ZPn);var d=new Set(c),q=PGe(f);return{flush:function(){var Z=Array.from(q.iterate());q.clear();Z=Z.map(function(M){return{name:M.name,timestamp:M.startTime,attributes:M.attributes}});
return JSON.stringify(Z)},
onSpanStart:function(Z){Z.name==="event"&&d.has(Z.attributes.type)||q.push(Z)}}};
pJY=function(){var c=UyY(),f=c.flush;XKl({onSpanStart:c.onSpanStart});F_M.subscribe("handleError",function(d){try{d.params.breadcrumbs=f()}catch(q){_.VO(q,"WARNING")}})};
xyk=function(c,f,d){var q=c.endTime;if(q==null)throw Error("ij");var Z=c.name,M={};q-=c.startTime;var g=c.startTime;M={webTracing:(M[Z]=c.attributes,M)};d=_.WC(pdC)(Z,q,g,M,d,f);if(c.children)for(c=_.C(c.children),Z=c.next();!Z.done;Z=c.next())xyk(Z.value,f,d)};
GWY=function(){for(var c={},f=_.C(fx.enabledSpansArray),d=f.next();!d.done;d=f.next())c[d.value]=!0;(fx.exportToCsi||fx.exportBreadcrumbs)&&aG4({sessionId:BEY(),enabledSpans:c});fx.exportBreadcrumbs&&pJY();fx.exportToCsi&&XKl(oLk);if(fx.exportToDevTools){var q=[];XKl({onSpanEnd:function(Z){q.push(Z)===1&&setTimeout(function(){var M=q.map(u$z);q.length=0;window.postMessage({type:"telemetry",spans:M},"*")},1E3)}})}};
cSl=function(c){return new Promise(function(f){window.setTimeout(f,c)})};
fxk=function(c){var f={bicf:function(M){c.vFG=M},
blc:function(){return c.getLatestChallengeResponse()},
bcr:function(M){c.xdv.push(M)}},d=window;
d.ntpevasrs=f;if(d.ntpqfbel!==void 0)for(var q=_.C(d.ntpqfbel),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z(f);d.ntpqfbel=void 0};
d7e=function(c){return _.k(function(f){if(f.nextAddress==1)return _.iY(f,2),f.yield(c.b5z(),4);if(f.nextAddress!=2)return _.Pq(f,0);_.Yw(f);_.Fm(f)})};
jmk=function(c){var f,d;(f=c.ytcsi)==null||(d=f.tick)==null||d.call(f,"pot_ist")};
qGM=function(c){if(c instanceof Error){var f=_.D5("yt.logging.errors.log");f&&f(c,"WARNING")}};
Z_k=function(c){try{var f=JSON.parse(c);if(f.bgChallenge)return f}catch(d){}};
rSk=function(){var c=window,f={networkStatusManagerPromise:_.ql().resolve(new ntl(_.I7)),initialChallengeSli:_.F("wpo_att_sli")?new _.anN("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};c=c===void 0?window:c;var d=c.ytAtR,q;f==null||(q=f.initialChallengeSli)==null||_.s_(q);if(d){if(d=Z_k(d)){var Z;f==null||(Z=f.initialChallengeSli)==null||_.B5(Z,"SUCCESS");MVk(d,f)}c.ytAtR=void 0}else c.ytAtRC=function(M){if(M=Z_k(M)){var g;f==null||(g=f.initialChallengeSli)==null||
_.B5(g,"SUCCESS");MVk(M,f);c.ytAtRC=void 0}}};
kEP=function(){if(Ctn)return Ctn;try{var c=_.A5("IFRAME");_.NS(c,_.CG(g14));c.sandbox.add("allow-same-origin");c.style.display="none";document.body.appendChild(c);return Ctn=c}catch(f){c=new _.KD("Failed to create sandbox iframe"),_.VO(c)}};
O_z=function(c){var f,d;return(d=c==null?void 0:(f=c.contentWindow)==null?void 0:f.fetch)!=null?d:window.fetch};
lxn=function(c){var f,d;return(d=c==null?void 0:(f=c.contentWindow)==null?void 0:f.JSON.parse)!=null?d:JSON.parse};
sme=function(c){var f,d;return(d=c==null?void 0:(f=c.contentWindow)==null?void 0:f.Request)!=null?d:window.Request};
BZk=function(c){var f,d;return(d=c==null?void 0:(f=c.contentWindow)==null?void 0:f.TextDecoder)!=null?d:window.TextDecoder};
i_Y=function(){return function(c,f){_.hk("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[c]=f}};
TZn=function(){return function(c,f){var d={};d[c]=f;c=_.WC(_.R9r)(d);Object.keys(c).length>0&&_.JQ(c)}};
ASe=function(){if(VqG()==="hidden")var c="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else VqG()==="visible"&&(c="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",m7k=null);c&&H_M(c)};
H_M=function(c){if(c==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||c==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(YGl===c)return;YGl=c}var f=9E4+Math.random()*2E3;if(c!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.ZZ()>f)&&VqG()==="visible"){f=-1;m7k&&(f=Math.round((0,_.qR)()-m7k));var d=String;var q=_.D5("_fact",window);q=q==null||q==-1?-1:Math.max(Date.now()-q,0);_.JN("foregroundHeartbeat",{firstActivityMs:d(q),clientDocumentNonce:iie,index:String(FBM),lastEventDeltaMs:String(f),trigger:c});
_.fu("_fact",-1,window);FBM++;m7k=(0,_.qR)()}};
_.tVG=function(){try{return!!self.sessionStorage}catch(c){return!1}};
b_k=function(){var c=navigator;return new Promise(function(f,d){var q;(q=c.webkitTemporaryStorage)!=null&&q.queryUsageAndQuota?c.webkitTemporaryStorage.queryUsageAndQuota(function(Z,M){f({usage:Z,quota:M})},function(Z){d(Z)}):d(Error("qj"))})};
KBG=function(c,f){var d={errorSeverity:f.errorSeverity.toString(),wizFeatureFlags:Object.entries(f.featureFlags).join("\n")};C7G(f,d);f=f.errorSeverity;f===3?_.VO(c,"ERROR",void 0,void 0,void 0,d):f===2&&_.VO(c,"WARNING",void 0,void 0,void 0,d);_.F("cow_if_errors_in_popup")&&f===3&&c.message.indexOf("<If>")!==-1&&window.alert(c.message)};
E1n=function(c,f){var d=oc.get(c)||{layerNode:f};d.layerNode=f;Jsn(c,d);c.getScreenLayer=function(){return ik(d.layerNode)}};
n1N=function(c){var f;c=c.parentNode;for(var d;c&&((f=oc.get(c))==null||!f.isRenderer)&&!((d=c.polymerController)!=null?d:c).isRenderer_;)c=c.parentNode||c.host;if(f=c)return oc.get(f)};
$7N=function(c){if(c){oc.delete(c);var f=_.ql().resolve(jR);vFG(c,f)}};
SG4=function(c,f,d){if(d===void 0?0:d){if(d=c.getAttribute("client-ve-type"),f.data&&!f.disableReactiveLogging||d)_.zZ(function(){QmG(c,_.LL(f.data))}),_.Q4(function(){return void $7N(c)})}else typeof f.data!=="function"&&QmG(c,f.data)};
QmG=function(c,f){LBM++;zQh(c,f)&&_.a7.addJob(function(){_.X8(_.a7,function(){if(zQh(c,f)&&c.ownerDocument.documentElement===document.documentElement&&c){var d;if(c.getAttribute("layer")){var q=d=Number(c.getAttribute("layer")),Z=oc.get(c);Z?Z.layerNode.layer=q:E1n(c,new JSz(q));(q=n1N(c))&&(Z=oc.get(c))!=null&&(Z.layerNode.parent=q.layerNode)}else if(d=oc.get(c))d=ik(d.layerNode);else{d=ik;q=new JSz;if(Z=n1N(c))q.parent=Z.layerNode;E1n(c,q);d=d(q)}d!=null||(d=0);q=c.getAttribute("client-ve-type");
Z=Number(q);var M=!1;q=!1;var g=oc.get(c),O;if((O=g)&&!(O=g[axn]!==f)&&(O=Z)){var l;O=((l=oc.get(c))==null?void 0:l.clientVeType)===void 0}O&&(g[axn]=f,M=q=g.isRenderer=!0);oc.has(c)&&(oc.get(c).clientVeType=Z);c.visualElement&&(q=!0);if(_.F("wiz_next_ld_fix_client_ve_spec")){var m;l=((m=_.b(f==null?void 0:f.rendererContext,_.Kx))==null?void 0:m.loggingDirectives)||(f==null?void 0:f.loggingDirectives)}else l=f==null?void 0:f.loggingDirectives;l&&l.clientVeSpec&&(m=VVk(_.FN(),c),m=_.XIN(_.bP(),l,m||
void 0,d))&&(c.visualElement=m);!c.visualElement&&Z&&M&&(c.veType=Z,m=void 0,_.F("wiz_next_client_ve_parent_fix")&&(m=VVk(_.FN(),c)),m=_.te(_.bP(),c,m,d),c.visualElement=m);q&&(m=_.ql().resolve(jR),WQ4(c,{data:f,observer:m,layer:d,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
zQh=function(c,f){return(f==null?0:f.trackingParams)||(f==null?0:f.loggingDirectives)||_.b(f==null?void 0:f.rendererContext,_.Kx)||c.getAttribute("client-ve-type")?!0:!1};
uAr=function(c,f,d){c.componentType!==bm&&d instanceof HTMLElement&&f&&!_.F("cow_logging_in_component_wrapper")&&SG4(d,f,!0)};
D7N=function(){if(!v1h){v1h=!0;var c=Object.assign({},{enableLazyTsx:_.F("mweb_enable_wiz_lazy_tsx")||_.F("kevlar_enable_wiz_lazy_tsx")||_.F("creator_enable_wiz_lazy_tsx")||hQe,flushRenderEffectsDuringRender:!0},{handleError:KBG,enableComponentStacksInErrorMessages:!1});Object.assign(d$,c);Enl=wI4;ySk();LFN=M$N;$TY=rXk;_.F("ytwiz_enable_debug_component_props")&&(c=document.body.firstElementChild,window.ng||c.__ngContext__||(c.__ngContext__={},c.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
WBn))}};
ySk=function(){_.F("cow_logging_in_component_wrapper")?(ifk=function(c,f){f instanceof HTMLElement&&SG4(f,c,!0)},B2n=function(){}):(ifk=function(){},B2n=uAr)};
eQn=function(c,f,d){f=f===void 0?{}:f;var q,Z=(q=_.b(c.commandMetadata,_.jO))==null?void 0:q.url;q=f.form||{};!d||q.element||q.skipDefaultElement||(f.form=f.form||{},f.form.element=d);if(Z&&Z!=="/service_ajax")return{type:0,command:c,form:f.form};if(_.F("kevlar_service_command_check")){if(_.oT(_.ql().resolve(_.uo),c))return Object.assign({},{type:1,command:c},f)}else{var M;if((M=_.b(c.commandMetadata,_.jO))==null?0:M.apiUrl)return Object.assign({},{type:1,command:c},f)}return{type:2,command:c,form:f.form}};
NZP=function(c){if(c.form){var f=c.form,d=Object.assign({},f);f=f.element;d=(delete d.element,d);if(f)return[_.OX(f,[c.command,d,c.commandController])]}return[]};
Ixl=function(c){if(c.form){var f=c.form,d=Object.assign({},f);f=f.element;d=(delete d.element,d);f&&_.ll(f,[c.command],f,d)}};
RQM=function(c,f,d){var q=new Pth(c,f),Z=new Td(c,f,d);c={"/youtubei/v1/browse":new ma(c,f,d),"/youtubei/v1/player":q,"/youtubei/v1/navigation/resolve_url":new H5,"/youtubei/v1/next":Z,"/youtubei/v1/guide":new AK(d),"/youtubei/v1/search":new YR(c,f,d),"/youtubei/v1/reel/reel_item_watch":new Kp(c,f,d),"/youtubei/v1/get_watch":new E_(q,Z)};c["/youtubei/v1/account/account_menu"]=new np;c["/youtubei/v1/notification/get_notification_menu"]=new $R;return c};
SJ=function(){var c=_.ql().resolve(QN);return Promise.resolve(U7h(c,_.dz.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
pIl=function(c){return c&&(c=_.Lp(_.bBe(c)))?(new URLSearchParams(c)).get("service"):null};
av=function(c,f){_.Br(_.zd(),function(){_.V_("adl")});
_.ql().resolve(x7r)(f);c=c.root;c.loadData&&c.loadData(f);(f==null?0:f.response)?_.B5(uek(),"SUCCESS"):_.u6(new _.KD("Lifecycle: No response in data",_.wi("IS_SHELL_LOAD"),f?f.page:"NO_PAGE",f?f.endpoint:"NO_ENDPOINT"));c.polymerController.$["page-manager"].lazyPrepareCriticalPages((f==null?void 0:f.page)||"",f.endpoint);var d,q;((q=_.b(f==null?void 0:(d=f.endpoint)==null?void 0:d.commandMetadata,_.jO))==null?0:q.webPageType)&&_.Gh().dispatch(_.JK(_.b(f.endpoint.commandMetadata,_.jO).webPageType))};
o1n=function(){var c,f;return _.k(function(d){switch(d.nextAddress){case 1:c=window;if(!c.getDataPromise){d.jumpTo(2);break}_.iY(d,3);return d.yield(c.getDataPromise(),5);case 5:return d.return(d.yieldResult);case 3:return _.Yw(d),d.yield(SJ(),6);case 6:return d.return(d.yieldResult);case 2:if(c.getInitialData)return f=c.getInitialData(),c.getInitialData=void 0,d.return(f);throw Error("sj`"+_.dz.location.href);}})};
cgk=function(){_.Xr("CSI_SERVICE_NAME","youtube");_.JQ({loadType:"cold"});_.F("kevlar_log_lcp")&&GEl(function(c){_.V_("lcp",c.value)})};
fIr=function(){var c=_.y2(document.location.href,"enable");c&&c.indexOf("scraper")>-1&&_.Xr("ADD_SCRAPER_ATTRIBUTES",!0)};
MTe=function(c){var f=c.root;c=[drG,jIn,_.VN];_.F("web_feedback_endpoint_autolog_allowlist_killswitch")&&c.push(_.Xb,q$l);ZwY(function(d,q){return eQn(d,q,f)},function(d){if(!d.command)return[];
var q;((q=d.form)==null?0:q.element)?d.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},d.form,{endpoint:d.command})})):f.handleNavigate(d);return[]},c);
_.ql().addProvider({provide:_.ZM,useValue:_.Hh.instance})};
CAY=function(){var c={},f={},d;for(d in rgM){var q=_.C(_.OT(rgM[d],void 0,"NBH2te"));c[d]=q.next().value;f[d]=q.next().value}return[c,function(Z){for(var M in Z){var g=void 0;(g=f[M])==null||g(Z[M])}}]};
_.Owz=function(c,f){var d=!1;d=d===void 0?!1:d;var q=_.zV.getValueByKeys(c,"contents","twoColumnWatchNextResults","results","results","contents"),Z=_.zV.getValueByKeys(c,"contents","twoColumnWatchNextResults","playlist","playlist")||null;d&&(Z=null);var M=d=null;if(Z)d=_.zV.getValueByKeys(Z,"titleText"),M=_.zV.unsafeClone(_.zV.getValueByKeys(Z,"longBylineText")),q="",M&&(q=_.xC(M)),M=_.pC(q);else if(q){q=_.C(q);for(var g=q.next();!g.done;g=q.next())g=g.value,g.videoPrimaryInfoRenderer&&(d=_.zV.getValueByKeys.apply(_.zV,
[g].concat(_.LT(gJ4)))),g.videoSecondaryInfoRenderer&&(M=_.zV.getValueByKeys.apply(_.zV,[g].concat(_.LT(kTY))))}else _.eZ(Error("xj"));var O;c.currentVideoEndpoint?O=c.currentVideoEndpoint:_.eZ(Error("yj"));var l;f&&(l=_.zV.getValueByKeys(f,"playabilityStatus","miniplayer","miniplayerRenderer"));c={miniplayerTitle:d,miniplayerSubtitle:M,watchEndpoint:O,playlistData:Z};l&&(c.miniplayerRenderer=l);return c};
lIY=function(c){if(c)return _.he(c)};
_.sIG=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
Bsr=function(c){return c.videoDuration?c.numTaps>1&&c.tapDirection!==0?_.uk(c.draggedTime/c.videoDuration,0,1):_.uk((c.playedTime||0)/c.videoDuration,0,1):0};
iwh=function(c){return c.videoDuration?c.isDragging||c.numTaps>1&&c.tapDirection!==0?_.uk(c.draggedTime/c.videoDuration,0,1):_.uk((c.playedTime||0)/c.videoDuration,0,1):0};
mrn=function(c){var f,d,q;return _.b(c==null?void 0:(f=c.markersMap)==null?void 0:(d=f.find(function(Z){return Z.key==="HEATSEEKER"}))==null?void 0:(q=d.value)==null?void 0:q.heatmap,Tsr)};
HwY=function(c){var f,d;return(d=(f=mrn(c))==null?void 0:f.heatMarkersDecorations)!=null?d:[]};
Agk=function(c){if(_.F("mweb_supported_chapters_killswitch"))return!0;var f;return!!(c==null?0:(f=c.markersMap)==null?0:f.find(function(d){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(d.key)}))};
_.Y$k=function(c){var f=Object,d=f.assign,q;c={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(q=c==null?void 0:c.getPlayerState())!=null?q:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return d.call(f,{},{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},c,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
FVM=function(c){return function(f){var d=c(),q,Z=(q=d.playerApi)==null?void 0:q.getPlayerState();f&&f!==d.playerState&&(f===1||f===2)&&d.setState({playerState:Z})}};
bwk=function(c){return function(f){var d=c(),q=d.playerApi;q&&(f==null?void 0:f.type)==="newdata"&&(tTC&&(clearTimeout(tTC),tTC=void 0),_.F("web_shorts_use_progress_state_for_gapless")?(f=q==null?void 0:q.getProgressState(f==null?void 0:f.playertype),f=f.seekableEnd-f.seekableStart):f=q==null?void 0:q.getDuration(f==null?void 0:f.playertype),d.setState({playedTime:0,videoDuration:f}))}};
KVn=function(c){return function(f){var d=c(),q=d.playerApi;if(q){var Z=q.getPresentingPlayerType();_.F("web_shorts_use_progress_state_for_gapless")?(q=q.getProgressState(Z),q=q.seekableEnd-q.seekableStart):q=q.getDuration(Z);d.setState({playedTime:f,videoDuration:q})}}};
nJP=function(c){_.LO(112394,c,function(){return EJG},function(f){EJG=f})};
S$k=function(c,f){if(!c)return[];var d,q,Z;c=((d=c.markersMap)==null?void 0:(q=d.find(function(M){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(M.key)}))==null?void 0:(Z=q.value)==null?void 0:Z.chapters)||[];
!$rG(c)||(f==null?0:f.ignoreStub)||(c=[QIh()].concat(_.LT(c)));return c};
QIh=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
$rG=function(c){if(c.length===0)return!1;var f;return((f=_.b(c[0],v5))==null?void 0:f.timeRangeStartMillis)!==0};
hK=function(c){return c?c.timeRangeStartMillis||0:0};
zkM=function(c,f){if(c.isDragging&&f)return c=LVk(c,f),c===-1?QIh():S$k(f)[c]};
LVk=function(c,f){return c.isDragging&&f?S$k(f,{ignoreStub:!0}).findIndex(function(d,q,Z){d=JgC(c);return aIN(d,Z,q).scrubberHovering}):-1};
JgC=function(c){return Object.assign({},c,{videoDuration:c.videoDuration*1E3,playedTime:c.playedTime*1E3,draggedTime:c.draggedTime*1E3})};
aIN=function(c,f,d){var q=hK(_.b(f[d],v5));f=hK(_.b(f[d+1],v5))||c.videoDuration;d=c.isDragging;var Z;if(Z=c.isDragging)Z=c.draggedTime,Z=Z!==null&&Z>=q&&Z<f;var M=c.playedTime;return M!==null&&M>=q&&M<f?{videoPosition:"active",isScrubbing:d,scrubberHovering:Z}:c.playedTime<q?{videoPosition:"pending",isScrubbing:d,scrubberHovering:Z}:{videoPosition:"seen",isScrubbing:d,scrubberHovering:Z}};
VTk=function(c,f){return c.videoPosition==="seen"||(f===void 0?0:f)>0};
X4N=function(c,f,d){f=c/f.storyboardInterval;var q=S$k(d);if(!q.length)return-f*72;d=0;q=_.C(q);for(var Z=q.next();!Z.done;Z=q.next())if(hK(_.b(Z.value,v5))/1E3<c)d++;else break;return-(f*72)-d*56};
uVz=function(c){return c?c.width/c.columns:0};
vJk=function(c){return c.isHovering?c.hoveredTime:c.draggedTime};
hkl=function(c,f){c=c.draggedTime*1E3;return c>=f.visibleTimeRangeStartMillis&&c<=f.visibleTimeRangeEndMillis};
_.w4z=function(c){if(c===void 0||Number.isNaN(c))return"--:--";var f=Math.abs(Math.floor(c)),d=Math.floor(f/86400),q=Math.floor(f%86400/3600),Z=Math.floor(f%3600/60);f=Math.floor(f%60);var M="";d>0&&(M+=d+":",q<10&&(M+="0"));if(d>0||q>0)M+=q+":",Z<10&&(M+="0");M+=Z+":";f<10&&(M+="0");M+=f;return c>=0?M:"-"+M};
ygC=function(c,f){return function(){var d=vJk(c());var q=f();var Z=c().playerApi;if(Z&&Z.getNumberOfStoryboardLevels()!==0){var M=Z.getStoryboardFrameIndex(d,1);M!==-1?q=Z.getStoryboardFrame(M,1):(d=Z.getStoryboardFrameIndex(d,0),Z=Z.getStoryboardFrame(d,0),q&&Z&&(Z.height*=3,Z.width*=3),q=Z)}else q=null;if(!q)return null;f()&&(q.width=90*q.columns,q.height=160*q.rows);return q}};
_.wO=function(c){if(!c||c.getVideoData)return c};
WVz=function(){var c;return{playerApi:(c=_.Ac())!=null?c:void 0}};
DrN=function(c){var f;_.k(function(d){if(d.nextAddress==1)return d.yield(_.H9(),2);if(f=d.yieldResult)f.unMute(!0),f.setVolume(c,!0);_.Fm(d)})};
ekr=function(c,f){c&&(c.value=""+f,c.style.setProperty("--gradient-percent",f+"%"))};
NsY=function(c){var f;return(f=c==null?void 0:c.value)!=null?f:0};
IIY=function(){var c;_.k(function(f){if(f.nextAddress==1)return f.yield(_.H9(),2);c=f.yieldResult;if(!c)return f.return();c.isMuted()?c.unMute(!0):c.mute(!0);_.Fm(f)})};
PAG=function(c){var f=_.ql().resolve(_.yN).getPlayerElement();f&&c&&(c===1?f.pause():f.play())};
RkN=function(c){_.kt(c,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
UrC=function(c){_.kt(c,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
xrr=function(c){return _.$5(c.document.body,function(){return _.B(p4P,null)})};
oJM=function(){var c=window.performance.getEntriesByType("navigation");return c?c.map(function(f){return f.type}).includes("reload"):!1};
M04=function(){W5(W5(W5(W5(W5(W5(W5(_.ql().resolve(_.Dh),_.GTh),_.cFN),_.f1h),_.dwr),_.j3z),_.q0Y),_.ZNM)};
rFr=function(c,f){f=f===void 0?!1:f;var d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return f||!_.F("kevlar_shorts_seedless_retry_initial_load")||(d=window,q=!(!d.getDataPromise&&!d.getInitialData),q)?g.yield(o1n(),2):(setTimeout(rFr.bind(window,c,!0),1E3),g.return());if(g.nextAddress!=3)return Z=g.yieldResult,g.yield(Cbr(Z),3);M=g.yieldResult;av(c,M);_.Fm(g)})};
Cbr=function(c){var f;if((f=c.response)==null||!f.replacementEndpoint)return _.sX(c);f=_.ql().resolve(QN);c=c.response;_.b(c.replacementEndpoint,_.EO)&&c.sequenceContinuation&&(_.b(c.replacementEndpoint,_.EO).sequenceParams=c.sequenceContinuation);return eJ(f,c.replacementEndpoint,{},_.dz.location.href,"shorts",function(){},function(){return!1})};
kbr=function(c){var f=_.ql().resolve(grk);c.playerResponse&&f.handleResponse(c.playerResponse);c.response&&f.handleResponse(c.response)};
ONM=function(c){var f=_.Gh(),d,q=_.b((d=c.response)==null?void 0:d.frameworkUpdates,dy),Z;d=_.b((Z=c.playerResponse)==null?void 0:Z.frameworkUpdates,dy);var M;c=_.b((M=c.reelWatchSequenceResponse)==null?void 0:M.frameworkUpdates,dy);q&&_.AE(q,f);d&&_.AE(d,f);c&&_.AE(c,f)};
l1l=function(c){var f;_.F("enable_redirect_linking_for_desktop_web_client")&&((f=window.location.hash)==null?0:f.includes("redirect_state"))&&c.url&&(c.url=c.url.toString()+window.location.hash)};
iNe=function(c){var f=_.ql(),d=f.resolve(QN);f=f.resolve(_.s3r);c.endpoint&&(d=BjM(d,c.endpoint),d.content&&c.response&&_.No(f,c.response,d.content),d.player&&c.playerResponse&&_.No(f,c.playerResponse,d.player),d.reelSequence&&c.reelWatchSequenceResponse&&_.No(f,c.reelWatchSequenceResponse,d.reelSequence))};
Iv=function(c,f){_.F("web_service_params_response_processor")&&kbr(f);ONM(f);var d;(f==null?0:f.url)&&((d=window.location.hash)==null?0:d.includes("redirect_state"))&&(l1l(f),(d=pIl(f.url))&&_.gS(c.root,"yt-initialize-third-party",[d,f]));iNe(f);d=_.ql();var q=d.resolve(Tjk);f.playerResponse&&d.resolve(mwz).handleResponse(f.playerResponse);if(f.playerResponse){d=void 0;if(_.F("ab_v_vid_sig")&&f.endpoint){var Z,M=(Z=_.b(f.endpoint,_.pe))!=null?Z:_.b(f.endpoint,_.EO);M&&(d=M.videoId)}HNN(q,f.playerResponse,
d)}f.playerResponse&&fbC(f.playerResponse)&&_.F("web_enable_ab_rsp_cl")?Dc4().then(function(){AFN(q,f.playerResponse);av(c,f)}):av(c,f)};
Fkn=function(c){if(c=c.root.data){var f=_.ql().resolve(Y0M);c.endpoint&&(c.response&&f.handleResponse(c.response,void 0,document.querySelector("ytd-app")),c.playerResponse&&f.handleResponse(c.playerResponse),c.reelWatchSequenceResponse&&f.handleResponse(c.reelWatchSequenceResponse))}};
t0h=function(c){var f,d,q,Z,M,g;return _.k(function(O){switch(O.nextAddress){case 1:f=window;if(!f.getDataPromise){O.jumpTo(2);break}_.iY(O,3);return O.yield(f.getDataPromise(),5);case 5:d=O.yieldResult;Iv(c,d);_.Pq(O,4);break;case 3:return _.Yw(O),O.yield(SJ(),6);case 6:q=O.yieldResult,av(c,q);case 4:return O.return();case 2:if(!_.F("sw_nav_preload_pbj")){O.jumpTo(7);break}f.fetchInitialData=function(){var l;return _.k(function(m){if(m.nextAddress==1)return m.yield(SJ(),2);l=m.yieldResult;av(c,l);
_.Fm(m)})};
if(f.getInitialData){f.loadInitialData=function(l){Iv(c,l)};
Z=f.getInitialData();f.getInitialData=void 0;Iv(c,Z);O.jumpTo(8);break}f.fetchInitialData=void 0;return O.yield(SJ(),9);case 9:M=O.yieldResult,av(c,M);case 8:return O.return();case 7:f.getInitialData?(g=f.getInitialData(),f.getInitialData=void 0,Iv(c,g)):f.loadInitialData=function(l){Iv(c,l)},_.Fm(O)}})};
bNM=function(c){var f=0;return function(){return f<c.length?{done:!1,value:c[f++]}:{done:!0}}};
KkP=typeof Object.defineProperties=="function"?Object.defineProperty:function(c,f,d){if(c==Array.prototype||c==Object.prototype)return c;c[f]=d.value;return c};
ErP=function(c){c=["object"==typeof globalThis&&globalThis,c,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var f=0;f<c.length;++f){var d=c[f];if(d&&d.Math==Math)return d}throw Error("a");};
_.ci=ErP(this);P5=function(c,f){if(f)a:{var d=_.ci;c=c.split(".");for(var q=0;q<c.length-1;q++){var Z=c[q];if(!(Z in d))break a;d=d[Z]}c=c[c.length-1];q=d[c];f=f(q);f!=q&&f!=null&&KkP(d,c,{configurable:!0,writable:!0,value:f})}};
P5("Symbol",function(c){if(c)return c;var f=function(M,g){this.$jscomp$symbol$id_=M;KkP(this,"description",{configurable:!0,writable:!0,value:g})};
f.prototype.toString=function(){return this.$jscomp$symbol$id_};
var d="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",q=0,Z=function(M){if(this instanceof Z)throw new TypeError("b");return new f(d+(M||"")+"_"+q++,M)};
return Z});
P5("Symbol.iterator",function(c){if(c)return c;c=Symbol("c");for(var f="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),d=0;d<f.length;d++){var q=_.ci[f[d]];typeof q==="function"&&typeof q.prototype[c]!="function"&&KkP(q.prototype,c,{configurable:!0,writable:!0,value:function(){return nrk(bNM(this))}})}return c});
P5("Symbol.asyncIterator",function(c){return c?c:Symbol("d")});
var nrk=function(c){c={next:c};c[Symbol.iterator]=function(){return this};
return c},$wn=typeof Object.create=="function"?Object.create:function(c){var f=function(){};
f.prototype=c;return new f},Q34=function(){function c(){function d(){}
new d;Reflect.construct(d,[],function(){});
return new d instanceof d}
if(typeof Reflect!="undefined"&&Reflect.construct){if(c())return Reflect.construct;var f=Reflect.construct;return function(d,q,Z){d=f(d,q);Z&&Reflect.setPrototypeOf(d,Z.prototype);return d}}return function(d,q,Z){Z===void 0&&(Z=d);
Z=$wn(Z.prototype||Object.prototype);return Function.prototype.apply.call(d,Z,q)||Z}}(),S0C;
if(typeof Object.setPrototypeOf=="function")S0C=Object.setPrototypeOf;else{var Lkk;a:{var zoM={a:!0},JFN={};try{JFN.__proto__=zoM;Lkk=JFN.a;break a}catch(c){}Lkk=!1}S0C=Lkk?function(c,f){c.__proto__=f;if(c.__proto__!==f)throw new TypeError("e`"+c);return c}:null}Rv=S0C;
_.K=function(c,f){c.prototype=$wn(f.prototype);c.prototype.constructor=c;if(Rv)Rv(c,f);else for(var d in f)if(d!="prototype")if(Object.defineProperties){var q=Object.getOwnPropertyDescriptor(f,d);q&&Object.defineProperty(c,d,q)}else c[d]=f[d];c.superClass_=f.prototype};
_.C=function(c){var f=typeof Symbol!="undefined"&&Symbol.iterator&&c[Symbol.iterator];if(f)return f.call(c);if(typeof c.length=="number")return{next:bNM(c)};throw Error("f`"+String(c));};
RO=function(c){for(var f,d=[];!(f=c.next()).done;)d.push(f.value);return d};
_.LT=function(c){return c instanceof Array?c:RO(_.C(c))};
_.pp=function(c){return U_(c,c)};
U_=function(c,f){c.raw=f;Object.freeze&&(Object.freeze(c),Object.freeze(f));return c};
xR=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)};
a1M=typeof Object.assign=="function"?Object.assign:function(c,f){for(var d=1;d<arguments.length;d++){var q=arguments[d];if(q)for(var Z in q)xR(q,Z)&&(c[Z]=q[Z])}return c};
P5("Object.assign",function(c){return c||a1M});
var ov=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},V0M=function(c){if(c.isRunning_)throw new TypeError("h");
c.isRunning_=!0};
ov.prototype.JSC$8670_next_=function(c){this.yieldResult=c};
var X0r=function(c,f){c.abruptCompletion_={exception:f,isException:!0};c.nextAddress=c.catchAddress_||c.finallyAddress_};
ov.prototype.return=function(c){this.abruptCompletion_={return:c};this.nextAddress=this.finallyAddress_};
ov.prototype.yield=function(c,f){this.nextAddress=f;return{value:c}};
ov.prototype.jumpTo=function(c){this.nextAddress=c};
_.Fm=function(c){c.nextAddress=0};
_.iY=function(c,f,d){c.catchAddress_=f;d!=void 0&&(c.finallyAddress_=d)};
_.Hk=function(c,f){c.catchAddress_=0;c.finallyAddress_=f||0};
_.Pq=function(c,f,d){c.nextAddress=f;c.catchAddress_=d||0};
_.Yw=function(c,f){c.catchAddress_=f||0;f=c.abruptCompletion_.exception;c.abruptCompletion_=null;return f};
_.m0=function(c,f,d,q){q?c.finallyContexts_[q]=c.abruptCompletion_:c.finallyContexts_=[c.abruptCompletion_];c.catchAddress_=f||0;c.finallyAddress_=d||0};
_.AD=function(c,f,d){d=c.finallyContexts_.splice(d||0)[0];(d=c.abruptCompletion_=c.abruptCompletion_||d)?d.isException?c.nextAddress=c.catchAddress_||c.finallyAddress_:d.jumpTo!=void 0&&c.finallyAddress_<d.jumpTo?(c.nextAddress=d.jumpTo,c.abruptCompletion_=null):c.nextAddress=c.finallyAddress_:c.nextAddress=f};
uFl=function(c){this.JSC$8675_context_=new ov;this.program_=c};
hoY=function(c,f){V0M(c.JSC$8675_context_);var d=c.JSC$8675_context_.yieldAllIterator_;if(d)return vrh(c,"return"in d?d["return"]:function(q){return{value:q,done:!0}},f,c.JSC$8675_context_.return);
c.JSC$8675_context_.return(f);return Gd(c)};
vrh=function(c,f,d,q){try{var Z=f.call(c.JSC$8675_context_.yieldAllIterator_,d);if(!(Z instanceof Object))throw new TypeError("g`"+Z);if(!Z.done)return c.JSC$8675_context_.isRunning_=!1,Z;var M=Z.value}catch(g){return c.JSC$8675_context_.yieldAllIterator_=null,X0r(c.JSC$8675_context_,g),Gd(c)}c.JSC$8675_context_.yieldAllIterator_=null;q.call(c.JSC$8675_context_,M);return Gd(c)};
Gd=function(c){for(;c.JSC$8675_context_.nextAddress;)try{var f=c.program_(c.JSC$8675_context_);if(f)return c.JSC$8675_context_.isRunning_=!1,{value:f.value,done:!1}}catch(d){c.JSC$8675_context_.yieldResult=void 0,X0r(c.JSC$8675_context_,d)}c.JSC$8675_context_.isRunning_=!1;if(c.JSC$8675_context_.abruptCompletion_){f=c.JSC$8675_context_.abruptCompletion_;c.JSC$8675_context_.abruptCompletion_=null;if(f.isException)throw f.exception;return{value:f.return,done:!0}}return{value:void 0,done:!0}};
w0Y=function(c){this.next=function(f){V0M(c.JSC$8675_context_);c.JSC$8675_context_.yieldAllIterator_?f=vrh(c,c.JSC$8675_context_.yieldAllIterator_.next,f,c.JSC$8675_context_.JSC$8670_next_):(c.JSC$8675_context_.JSC$8670_next_(f),f=Gd(c));return f};
this.throw=function(f){V0M(c.JSC$8675_context_);c.JSC$8675_context_.yieldAllIterator_?f=vrh(c,c.JSC$8675_context_.yieldAllIterator_["throw"],f,c.JSC$8675_context_.JSC$8670_next_):(X0r(c.JSC$8675_context_,f),f=Gd(c));return f};
this.return=function(f){return hoY(c,f)};
this[Symbol.iterator]=function(){return this}};
_.O_=function(c,f){f=new w0Y(new uFl(f));Rv&&c.prototype&&Rv(f,c.prototype);return f};
yFN=function(c){function f(q){return c.next(q)}
function d(q){return c.throw(q)}
return new Promise(function(q,Z){function M(g){g.done?q(g.value):Promise.resolve(g.value).then(f,d).then(M,Z)}
M(c.next())})};
_.k=function(c){return yFN(new w0Y(new uFl(c)))};
_.T5=function(c){var f=c[Symbol.asyncIterator];return f!==void 0?f.call(c):new Wkr(_.C(c))};
Wkr=function(c){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return c};
this.next=function(f){return Promise.resolve(c.next(f))};
this["throw"]=function(f){return new Promise(function(d,q){var Z=c["throw"];Z!==void 0?d(Z.call(c,f)):(d=c["return"],d!==void 0&&d.call(c),q(new TypeError("i")))})};
c["return"]!==void 0&&(this["return"]=function(f){return Promise.resolve(c["return"](f))})};
_.hv=function(){for(var c=Number(this),f=[],d=c;d<arguments.length;d++)f[d-c]=arguments[d];return f};
_.lk=function(c){return c};
P5("globalThis",function(c){return c||_.ci});
P5("Reflect",function(c){return c?c:{}});
P5("Reflect.construct",function(){return Q34});
P5("Reflect.setPrototypeOf",function(c){return c?c:Rv?function(f,d){try{return Rv(f,d),!0}catch(q){return!1}}:null});
P5("Promise",function(c){function f(){this.batch_=null}
function d(g){return g instanceof Z?g:new Z(function(O){O(g)})}
if(c&&(typeof _.ci.PromiseRejectionEvent!=="undefined"||!_.ci.Promise||_.ci.Promise.toString().indexOf("[native code]")===-1))return c;f.prototype.asyncExecute=function(g){if(this.batch_==null){this.batch_=[];var O=this;this.asyncExecuteFunction(function(){O.executeBatch_()})}this.batch_.push(g)};
var q=_.ci.setTimeout;f.prototype.asyncExecuteFunction=function(g){q(g,0)};
f.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var O=0;O<g.length;++O){var l=g[O];g[O]=null;try{l()}catch(m){this.asyncThrow_(m)}}}this.batch_=null};
f.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};
var Z=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var O=this.createResolveAndReject_();try{g(O.resolve,O.reject)}catch(l){O.reject(l)}};
Z.prototype.createResolveAndReject_=function(){function g(m){return function(H){l||(l=!0,m.call(O,H))}}
var O=this,l=!1;return{resolve:g(this.resolveTo_),reject:g(this.JSC$8703_reject_)}};
Z.prototype.resolveTo_=function(g){if(g===this)this.JSC$8703_reject_(new TypeError("m"));else if(g instanceof Z)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var O=g!=null;break a;case "function":O=!0;break a;default:O=!1}O?this.resolveToNonPromiseObj_(g):this.fulfill_(g)}};
Z.prototype.resolveToNonPromiseObj_=function(g){var O=void 0;try{O=g.then}catch(l){this.JSC$8703_reject_(l);return}typeof O=="function"?this.settleSameAsThenable_(O,g):this.fulfill_(g)};
Z.prototype.JSC$8703_reject_=function(g){this.settle_(2,g)};
Z.prototype.fulfill_=function(g){this.settle_(1,g)};
Z.prototype.settle_=function(g,O){if(this.state_!=0)throw Error("n`"+g+"`"+O+"`"+this.state_);this.state_=g;this.result_=O;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Z.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;q(function(){if(g.notifyUnhandledRejection_()){var O=_.ci.console;typeof O!=="undefined"&&O.error(g.result_)}},1)};
Z.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var g=_.ci.CustomEvent,O=_.ci.Event,l=_.ci.dispatchEvent;if(typeof l==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof O==="function"?g=new O("unhandledrejection",{cancelable:!0}):(g=_.ci.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return l(g)};
Z.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var g=0;g<this.onSettledCallbacks_.length;++g)M.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};
var M=new f;Z.prototype.settleSameAsPromise_=function(g){var O=this.createResolveAndReject_();g.callWhenSettled_(O.resolve,O.reject)};
Z.prototype.settleSameAsThenable_=function(g,O){var l=this.createResolveAndReject_();try{g.call(O,l.resolve,l.reject)}catch(m){l.reject(m)}};
Z.prototype.then=function(g,O){function l(Y,t){return typeof Y=="function"?function(E){try{m(Y(E))}catch(J){H(J)}}:t}
var m,H,A=new Z(function(Y,t){m=Y;H=t});
this.callWhenSettled_(l(g,m),l(O,H));return A};
Z.prototype.catch=function(g){return this.then(void 0,g)};
Z.prototype.callWhenSettled_=function(g,O){function l(){switch(m.state_){case 1:g(m.result_);break;case 2:O(m.result_);break;default:throw Error("o`"+m.state_);}}
var m=this;this.onSettledCallbacks_==null?M.asyncExecute(l):this.onSettledCallbacks_.push(l);this.isRejectionHandled_=!0};
Z.resolve=d;Z.reject=function(g){return new Z(function(O,l){l(g)})};
Z.race=function(g){return new Z(function(O,l){for(var m=_.C(g),H=m.next();!H.done;H=m.next())d(H.value).callWhenSettled_(O,l)})};
Z.all=function(g){var O=_.C(g),l=O.next();return l.done?d([]):new Z(function(m,H){function A(E){return function(J){Y[E]=J;t--;t==0&&m(Y)}}
var Y=[],t=0;do Y.push(void 0),t++,d(l.value).callWhenSettled_(A(Y.length-1),H),l=O.next();while(!l.done)})};
return Z});
var cg=function(c,f,d){if(c==null)throw new TypeError("p`"+d);if(f instanceof RegExp)throw new TypeError("q`"+d);return c+""};
P5("String.prototype.startsWith",function(c){return c?c:function(f,d){var q=cg(this,f,"startsWith"),Z=q.length,M=f.length;d=Math.max(0,Math.min(d|0,q.length));for(var g=0;g<M&&d<Z;)if(q[d++]!=f[g++])return!1;return g>=M}});
P5("Object.setPrototypeOf",function(c){return c||Rv});
P5("Symbol.dispose",function(c){return c?c:Symbol("r")});
P5("SuppressedError",function(c){function f(d,q,Z){if(!(this instanceof f))return new f(d,q,Z);Z=Error(Z);"stack"in Z&&(this.stack=Z.stack);this.message=Z.message;this.error=d;this.suppressed=q}
if(c)return c;_.K(f,Error);f.prototype.name="SuppressedError";return f});
var DwM=function(c,f,d){c instanceof String&&(c=String(c));for(var q=c.length,Z=0;Z<q;Z++){var M=c[Z];if(f.call(d,M,Z,c))return{i:Z,v:M}}return{i:-1,v:void 0}};
P5("Array.prototype.find",function(c){return c?c:function(f,d){return DwM(this,f,d).v}});
P5("WeakMap",function(c){function f(){}
function d(l){var m=typeof l;return m==="object"&&l!==null||m==="function"}
function q(l){if(!xR(l,M)){var m=new f;KkP(l,M,{value:m})}}
function Z(l){var m=Object[l];m&&(Object[l]=function(H){if(H instanceof f)return H;Object.isExtensible(H)&&q(H);return m(H)})}
if(function(){if(!c||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),H=new c([[l,2],[m,3]]);if(H.get(l)!=2||H.get(m)!=3)return!1;H.delete(l);H.set(m,4);return!H.has(l)&&H.get(m)==4}catch(A){return!1}}())return c;
var M="$jscomp_hidden_"+Math.random();Z("freeze");Z("preventExtensions");Z("seal");var g=0,O=function(l){this.JSC$8710_id_=(g+=Math.random()+1).toString();if(l){l=_.C(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}};
O.prototype.set=function(l,m){if(!d(l))throw Error("s");q(l);if(!xR(l,M))throw Error("t`"+l);l[M][this.JSC$8710_id_]=m;return this};
O.prototype.get=function(l){return d(l)&&xR(l,M)?l[M][this.JSC$8710_id_]:void 0};
O.prototype.has=function(l){return d(l)&&xR(l,M)&&xR(l[M],this.JSC$8710_id_)};
O.prototype.delete=function(l){return d(l)&&xR(l,M)&&xR(l[M],this.JSC$8710_id_)?delete l[M][this.JSC$8710_id_]:!1};
return O});
P5("Map",function(c){if(function(){if(!c||typeof c!="function"||!c.prototype.entries||typeof Object.seal!="function")return!1;try{var O=Object.seal({x:4}),l=new c(_.C([[O,"s"]]));if(l.get(O)!="s"||l.size!=1||l.get({x:4})||l.set({x:4},"t")!=l||l.size!=2)return!1;var m=l.entries(),H=m.next();if(H.done||H.value[0]!=O||H.value[1]!="s")return!1;H=m.next();return H.done||H.value[0].x!=4||H.value[1]!="t"||!m.next().done?!1:!0}catch(A){return!1}}())return c;
var f=new WeakMap,d=function(O){this[0]={};this[1]=M();this.size=0;if(O){O=_.C(O);for(var l;!(l=O.next()).done;)l=l.value,this.set(l[0],l[1])}};
d.prototype.set=function(O,l){O=O===0?0:O;var m=q(this,O);m.list||(m.list=this[0][m.id]=[]);m.entry?m.entry.value=l:(m.entry={next:this[1],previous:this[1].previous,head:this[1],key:O,value:l},m.list.push(m.entry),this[1].previous.next=m.entry,this[1].previous=m.entry,this.size++);return this};
d.prototype.delete=function(O){O=q(this,O);return O.entry&&O.list?(O.list.splice(O.index,1),O.list.length||delete this[0][O.id],O.entry.previous.next=O.entry.next,O.entry.next.previous=O.entry.previous,O.entry.head=null,this.size--,!0):!1};
d.prototype.clear=function(){this[0]={};this[1]=this[1].previous=M();this.size=0};
d.prototype.has=function(O){return!!q(this,O).entry};
d.prototype.get=function(O){return(O=q(this,O).entry)&&O.value};
d.prototype.entries=function(){return Z(this,function(O){return[O.key,O.value]})};
d.prototype.keys=function(){return Z(this,function(O){return O.key})};
d.prototype.values=function(){return Z(this,function(O){return O.value})};
d.prototype.forEach=function(O,l){for(var m=this.entries(),H;!(H=m.next()).done;)H=H.value,O.call(l,H[1],H[0],this)};
d.prototype[Symbol.iterator]=d.prototype.entries;var q=function(O,l){var m=l&&typeof l;m=="object"||m=="function"?f.has(l)?m=f.get(l):(m=""+ ++g,f.set(l,m)):m="p_"+l;var H=O[0][m];if(H&&xR(O[0],m))for(O=0;O<H.length;O++){var A=H[O];if(l!==l&&A.key!==A.key||l===A.key)return{id:m,list:H,index:O,entry:A}}return{id:m,list:H,index:-1,entry:void 0}},Z=function(O,l){var m=O[1];
return nrk(function(){if(m){for(;m.head!=O[1];)m=m.previous;for(;m.next!=m.head;)return m=m.next,{done:!1,value:l(m)};m=null}return{done:!0,value:void 0}})},M=function(){var O={};
return O.previous=O.next=O.head=O},g=0;
return d});
P5("Set",function(c){if(function(){if(!c||typeof c!="function"||!c.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),q=new c(_.C([d]));if(!q.has(d)||q.size!=1||q.add(d)!=q||q.size!=1||q.add({x:4})!=q||q.size!=2)return!1;var Z=q.entries(),M=Z.next();if(M.done||M.value[0]!=d||M.value[1]!=d)return!1;M=Z.next();return M.done||M.value[0]==d||M.value[0].x!=4||M.value[1]!=M.value[0]?!1:Z.next().done}catch(g){return!1}}())return c;
var f=function(d){this.JSC$8724_map_=new Map;if(d){d=_.C(d);for(var q;!(q=d.next()).done;)this.add(q.value)}this.size=this.JSC$8724_map_.size};
f.prototype.add=function(d){d=d===0?0:d;this.JSC$8724_map_.set(d,d);this.size=this.JSC$8724_map_.size;return this};
f.prototype.delete=function(d){d=this.JSC$8724_map_.delete(d);this.size=this.JSC$8724_map_.size;return d};
f.prototype.clear=function(){this.JSC$8724_map_.clear();this.size=0};
f.prototype.has=function(d){return this.JSC$8724_map_.has(d)};
f.prototype.entries=function(){return this.JSC$8724_map_.entries()};
f.prototype.values=function(){return this.JSC$8724_map_.values()};
f.prototype.keys=f.prototype.values;f.prototype[Symbol.iterator]=f.prototype.values;f.prototype.forEach=function(d,q){var Z=this;this.JSC$8724_map_.forEach(function(M){return d.call(q,M,M,Z)})};
return f});
P5("Math.log2",function(c){return c?c:function(f){return Math.log(f)/Math.LN2}});
P5("Object.values",function(c){return c?c:function(f){var d=[],q;for(q in f)xR(f,q)&&d.push(f[q]);return d}});
P5("Object.is",function(c){return c?c:function(f,d){return f===d?f!==0||1/f===1/d:f!==f&&d!==d}});
P5("Array.prototype.includes",function(c){return c?c:function(f,d){var q=this;q instanceof String&&(q=String(q));var Z=q.length;d=d||0;for(d<0&&(d=Math.max(d+Z,0));d<Z;d++){var M=q[d];if(M===f||Object.is(M,f))return!0}return!1}});
P5("String.prototype.includes",function(c){return c?c:function(f,d){return cg(this,f,"includes").indexOf(f,d||0)!==-1}});
P5("Array.from",function(c){return c?c:function(f,d,q){d=d!=null?d:function(O){return O};
var Z=[],M=typeof Symbol!="undefined"&&Symbol.iterator&&f[Symbol.iterator];if(typeof M=="function"){f=M.call(f);for(var g=0;!(M=f.next()).done;)Z.push(d.call(q,M.value,g++))}else for(M=f.length,g=0;g<M;g++)Z.push(d.call(q,f[g],g));return Z}});
P5("Object.entries",function(c){return c?c:function(f){var d=[],q;for(q in f)xR(f,q)&&d.push([q,f[q]]);return d}});
P5("Number.isFinite",function(c){return c?c:function(f){return typeof f!=="number"?!1:!isNaN(f)&&f!==Infinity&&f!==-Infinity}});
P5("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
P5("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
P5("Number.isInteger",function(c){return c?c:function(f){return Number.isFinite(f)?f===Math.floor(f):!1}});
P5("Number.isSafeInteger",function(c){return c?c:function(f){return Number.isInteger(f)&&Math.abs(f)<=Number.MAX_SAFE_INTEGER}});
P5("String.prototype.endsWith",function(c){return c?c:function(f,d){var q=cg(this,f,"endsWith");d===void 0&&(d=q.length);d=Math.max(0,Math.min(d|0,q.length));for(var Z=f.length;Z>0&&d>0;)if(q[--d]!=f[--Z])return!1;return Z<=0}});
var eo4=function(c,f){c instanceof String&&(c+="");var d=0,q=!1,Z={next:function(){if(!q&&d<c.length){var M=d++;return{value:f(M,c[M]),done:!1}}q=!0;return{done:!0,value:void 0}}};
Z[Symbol.iterator]=function(){return Z};
return Z};
P5("Array.prototype.entries",function(c){return c?c:function(){return eo4(this,function(f,d){return[f,d]})}});
P5("Math.trunc",function(c){return c?c:function(f){f=Number(f);if(isNaN(f)||f===Infinity||f===-Infinity||f===0)return f;var d=Math.floor(Math.abs(f));return f<0?-d:d}});
P5("Number.isNaN",function(c){return c?c:function(f){return typeof f==="number"&&isNaN(f)}});
P5("Array.prototype.keys",function(c){return c?c:function(){return eo4(this,function(f){return f})}});
P5("Array.prototype.values",function(c){return c?c:function(){return eo4(this,function(f,d){return d})}});
P5("Array.prototype.fill",function(c){return c?c:function(f,d,q){var Z=this.length||0;d<0&&(d=Math.max(0,Z+d));if(q==null||q>Z)q=Z;q=Number(q);q<0&&(q=Math.max(0,Z+q));for(d=Number(d||0);d<q;d++)this[d]=f;return this}});
var fS=function(c){return c?c:Array.prototype.fill};
P5("Int8Array.prototype.fill",fS);P5("Uint8Array.prototype.fill",fS);P5("Uint8ClampedArray.prototype.fill",fS);P5("Int16Array.prototype.fill",fS);P5("Uint16Array.prototype.fill",fS);P5("Int32Array.prototype.fill",fS);P5("Uint32Array.prototype.fill",fS);P5("Float32Array.prototype.fill",fS);P5("Float64Array.prototype.fill",fS);
P5("Object.fromEntries",function(c){return c?c:function(f){var d={};if(!(Symbol.iterator in f))throw new TypeError("u`"+f);f=f[Symbol.iterator].call(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;if(Object(q)!==q)throw new TypeError("v");d[q[0]]=q[1]}return d}});
P5("String.prototype.replaceAll",function(c){return c?c:function(f,d){if(f instanceof RegExp&&!f.global)throw new TypeError("w");return f instanceof RegExp?this.replace(f,d):this.replace(new RegExp(String(f).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),d)}});
P5("Object.getOwnPropertySymbols",function(c){return c?c:function(){return[]}});
P5("String.prototype.repeat",function(c){return c?c:function(f){var d=cg(this,null,"repeat");if(f<0||f>1342177279)throw new RangeError("x");f|=0;for(var q="";f;)if(f&1&&(q+=d),f>>>=1)d+=d;return q}});
P5("Array.prototype.findIndex",function(c){return c?c:function(f,d){return DwM(this,f,d).i}});
P5("Array.prototype.flatMap",function(c){return c?c:function(f,d){var q=[];Array.prototype.forEach.call(this,function(Z,M){Z=f.call(d,Z,M,this);Array.isArray(Z)?q.push.apply(q,Z):q.push(Z)});
return q}});
P5("String.prototype.codePointAt",function(c){return c?c:function(f){var d=cg(this,null,"codePointAt"),q=d.length;f=Number(f)||0;if(f>=0&&f<q){f|=0;var Z=d.charCodeAt(f);if(Z<55296||Z>56319||f+1===q)return Z;f=d.charCodeAt(f+1);return f<56320||f>57343?Z:(Z-55296)*1024+f+9216}}});
P5("String.fromCodePoint",function(c){return c?c:function(f){for(var d="",q=0;q<arguments.length;q++){var Z=Number(arguments[q]);if(Z<0||Z>1114111||Z!==Math.floor(Z))throw new RangeError("y`"+Z);Z<=65535?d+=String.fromCharCode(Z):(Z-=65536,d+=String.fromCharCode(Z>>>10&1023|55296),d+=String.fromCharCode(Z&1023|56320))}return d}});
P5("String.prototype.trimLeft",function(c){function f(){return this.replace(/^[\s\xa0]+/,"")}
return c||f});
P5("String.prototype.trimStart",function(c){return c||String.prototype.trimLeft});
P5("String.prototype.padStart",function(c){return c?c:function(f,d){var q=cg(this,null,"padStart");f-=q.length;d=d!==void 0?String(d):" ";return(f>0&&d?d.repeat(Math.ceil(f/d.length)).substring(0,f):"")+q}});
P5("Promise.prototype.finally",function(c){return c?c:function(f){return this.then(function(d){return Promise.resolve(f()).then(function(){return d})},function(d){return Promise.resolve(f()).then(function(){throw d;
})})}});
P5("Math.imul",function(c){return c?c:function(f,d){f=Number(f);d=Number(d);var q=f&65535,Z=d&65535;return q*Z+((f>>>16&65535)*Z+q*(d>>>16&65535)<<16>>>0)|0}});
P5("Object.hasOwn",function(c){return c?c:function(f,d){return Object.prototype.hasOwnProperty.call(f,d)}});
P5("Math.sign",function(c){return c?c:function(f){f=Number(f);return f===0||isNaN(f)?f:f>0?1:-1}});
P5("Array.prototype.flat",function(c){return c?c:function(f){f=f===void 0?1:f;var d=[];Array.prototype.forEach.call(this,function(q){Array.isArray(q)&&f>0?(q=Array.prototype.flat.call(q,f-1),d.push.apply(d,q)):d.push(q)});
return d}});
P5("String.raw",function(c){return c?c:function(f,d){if(f==null)throw new TypeError("z");for(var q=f.raw,Z=q.length,M="",g=0;g<Z;++g)M+=q[g],g+1<Z&&g+1<arguments.length&&(M+=String(arguments[g+1]));return M}});
P5("Reflect.ownKeys",function(c){return c?c:function(f){var d=[],q=Object.getOwnPropertyNames(f);f=Object.getOwnPropertySymbols(f);for(var Z=0;Z<q.length;Z++)(q[Z].substring(0,14)=="jscomp_symbol_"?f:d).push(q[Z]);return d.concat(f)}});
P5("Object.getOwnPropertyDescriptors",function(c){return c?c:function(f){for(var d={},q=Reflect.ownKeys(f),Z=0;Z<q.length;Z++)d[q[Z]]=Object.getOwnPropertyDescriptor(f,q[Z]);return d}});
P5("WeakSet",function(c){if(function(){if(!c||!Object.seal)return!1;try{var d=Object.seal({}),q=Object.seal({}),Z=new c([d]);if(!Z.has(d)||Z.has(q))return!1;Z.delete(d);Z.add(q);return!Z.has(d)&&Z.has(q)}catch(M){return!1}}())return c;
var f=function(d){this.JSC$8731_map_=new WeakMap;if(d){d=_.C(d);for(var q;!(q=d.next()).done;)this.add(q.value)}};
f.prototype.add=function(d){this.JSC$8731_map_.set(d,!0);return this};
f.prototype.has=function(d){return this.JSC$8731_map_.has(d)};
f.prototype.delete=function(d){return this.JSC$8731_map_.delete(d)};
return f});
P5("Promise.allSettled",function(c){function f(q){return{status:"fulfilled",value:q}}
function d(q){return{status:"rejected",reason:q}}
return c?c:function(q){var Z=this;q=Array.from(q,function(M){return Z.resolve(M).then(f,d)});
return Z.all(q)}});
P5("Number.parseInt",function(c){return c||parseInt});
_._DumpException=window._DumpException||function(c){throw c;};
window._DumpException=_._DumpException;var Njr,dn,j7,q6,I1P,PbM,Roh,UwY,Er,p0Y;Njr=Njr||{};_.dz=this||self;_.fu=function(c,f,d){c=c.split(".");d=d||_.dz;for(var q;c.length&&(q=c.shift());)c.length||f===void 0?d[q]&&d[q]!==Object.prototype[q]?d=d[q]:d=d[q]={}:d[q]=f};
dn=function(c,f){var d=_.D5("WIZ_global_data.oxN3nb");c=d&&d[c];return c!=null?c:f};
j7=_.dz._F_toggles_default_kevlar_base||[];q6=function(){};
q6.get=function(){return null};
_.D5=function(c,f){c=c.split(".");f=f||_.dz;for(var d=0;d<c.length;d++)if(f=f[c[d]],f==null)return null;return f};
_.Z2=function(c){c.instance_=void 0;c.getInstance=function(){return c.instance_?c.instance_:c.instance_=new c}};
_.IK=function(c){var f=typeof c;return f!="object"?f:c?Array.isArray(c)?"array":f:"null"};
_.WN=function(c){var f=_.IK(c);return f=="array"||f=="object"&&typeof c.length=="number"};
_.Ik=function(c){var f=typeof c;return f=="object"&&c!=null||f=="function"};
_.Rk=function(c){return Object.prototype.hasOwnProperty.call(c,I1P)&&c[I1P]||(c[I1P]=++PbM)};
I1P="closure_uid_"+(Math.random()*1E9>>>0);PbM=0;Roh=function(c,f,d){return c.call.apply(c.bind,arguments)};
UwY=function(c,f,d){if(!c)throw Error();if(arguments.length>2){var q=Array.prototype.slice.call(arguments,2);return function(){var Z=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Z,q);return c.apply(f,Z)}}return function(){return c.apply(f,arguments)}};
_.n1=function(c,f,d){_.n1=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Roh:UwY;return _.n1.apply(null,arguments)};
_.Yt=function(c,f){var d=Array.prototype.slice.call(arguments,1);return function(){var q=d.slice();q.push.apply(q,arguments);return c.apply(this,q)}};
_.M6=function(){return Date.now()};
Er=function(c){return c};
_.rn=function(c,f){function d(){}
d.prototype=f.prototype;c.superClass_=f.prototype;c.prototype=new d;c.prototype.constructor=c;c.base=function(q,Z,M){for(var g=Array(arguments.length-2),O=2;O<arguments.length;O++)g[O-2]=arguments[O];return f.prototype[Z].apply(q,g)}};
p0Y=function(c){return c};var xwl,orz;_.y=function(c,f,d,q){var Z=arguments.length,M=Z<3?f:q===null?q=Object.getOwnPropertyDescriptor(f,d):q,g;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")M=Reflect.decorate(c,f,d,q);else for(var O=c.length-1;O>=0;O--)if(g=c[O])M=(Z<3?g(M):Z>3?g(f,d,M):g(f,d))||M;Z>3&&M&&Object.defineProperty(f,d,M)};
_.D=function(c,f){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(c,f)};
xwl=function(c,f){if(f!==null&&f!==void 0){if(typeof f!=="object"&&typeof f!=="function")throw new TypeError("A");if(d===void 0){if(!Symbol.dispose)throw new TypeError("C");var d=f[Symbol.dispose]}if(typeof d!=="function")throw new TypeError("D");c.stack.push({value:f,dispose:d,async:!1})}return f};
orz=function(c){function f(M){c.error=c.hasError?new SuppressedError(M,c.error,"An error was suppressed during disposal."):M;c.hasError=!0}
function d(){for(;q=c.stack.pop();)try{if(!q.async&&Z===1)return Z=0,c.stack.push(q),Promise.resolve().then(d);if(q.dispose){var M=q.dispose.call(q.value);if(q.async)return Z|=2,Promise.resolve(M).then(d,function(g){f(g);return d()})}else Z|=1}catch(g){f(g)}if(Z===1)return c.hasError?Promise.reject(c.error):Promise.resolve();
if(c.hasError)throw c.error;}
var q,Z=0;d()};_.rn(_.cN,Error);_.cN.prototype.name="CustomError";var GbP;var cnl=void 0,ffM,dEl=typeof TextDecoder!=="undefined",jkk,dNk=typeof String.prototype.isWellFormed==="function",f4l=typeof TextEncoder!=="undefined";var jRN;_.K1=function(c){for(var f=[],d=0,q=0;q<c.length;q++){var Z=c.charCodeAt(q);Z<128?f[d++]=Z:(Z<2048?f[d++]=Z>>6|192:((Z&64512)==55296&&q+1<c.length&&(c.charCodeAt(q+1)&64512)==56320?(Z=65536+((Z&1023)<<10)+(c.charCodeAt(++q)&1023),f[d++]=Z>>18|240,f[d++]=Z>>12&63|128):f[d++]=Z>>12|224,f[d++]=Z>>6&63|128),f[d++]=Z&63|128)}return f};
jRN=function(c){for(var f=[],d=0,q=0;d<c.length;){var Z=c[d++];if(Z<128)f[q++]=String.fromCharCode(Z);else if(Z>191&&Z<224){var M=c[d++];f[q++]=String.fromCharCode((Z&31)<<6|M&63)}else if(Z>239&&Z<365){M=c[d++];var g=c[d++],O=c[d++];Z=((Z&7)<<18|(M&63)<<12|(g&63)<<6|O&63)-65536;f[q++]=String.fromCharCode(55296+(Z>>10));f[q++]=String.fromCharCode(56320+(Z&1023))}else M=c[d++],g=c[d++],f[q++]=String.fromCharCode((Z&15)<<12|(M&63)<<6|g&63)}return f.join("")};var sC=String.prototype.trim?function(c){return c.trim()}:function(c){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(c)[1]},qH4=/&/g,Z4e=/</g,MGh=/>/g,rnC=/"/g,CLN=/'/g,gml=/\x00/g,kMG=/[\x00&<>"']/;var CS=!!(j7[0]>>15&1),O4k=!!(j7[0]&1024),lfl=!!(j7[0]>>16&1),sRM=!!(j7[0]&8),B5h=!!(j7[0]&2),i4M=!!(j7[0]&4),T5n=!!(j7[0]&16),mEC=!!(j7[0]&128);var H4r=dn(1,!0),HN=CS?lfl:dn(610401301,!1),Ann=CS?sRM:dn(772657768,!1),YHN=CS?B5h:dn(513659523,!1),Fle=CS?O4k||!i4M:dn(568333945,H4r),zCC=CS?T5n:dn(1331761403,!1),i3N=CS?O4k||!mEC:dn(748402147,H4r);var Yl,tGr=_.dz.navigator;Yl=tGr?tGr.userAgentData||null:null;var R7;_.Xk=function(c,f){return Array.prototype.indexOf.call(c,f,void 0)};
_.Iw=function(c,f,d){Array.prototype.forEach.call(c,f,d)};
_.gn=function(c,f,d){return Array.prototype.filter.call(c,f,d)};
_.JT=function(c,f,d){return Array.prototype.map.call(c,f,d)};
R7=function(c,f,d){return Array.prototype.some.call(c,f,d)};
_.qwr=function(c,f,d){return Array.prototype.every.call(c,f,d)};var k9=function(c){k9[" "](c);return c};
k9[" "]=function(){};
var bGk=function(c,f){try{return k9(c[f]),!0}catch(d){}return!1},mRz=function(c,f,d,q){q=q?q(f):f;
return Object.prototype.hasOwnProperty.call(c,q)?c[q]:c[q]=d(f)};var b4r,Gf,KlP,Eme,$Er,QRG,ful,SHN,Lll,zFP,t9k,afr,VGk,hFn,w$Y,ynz;_.bE4=function(){return _.dz.navigator||null};
b4r=rPk();_.OJ=CeM();Gf=Fk("Edge");KlP=Gf||_.OJ;_.lf=Fk("Gecko")&&!(_.le(_.TY(),"WebKit")&&!Fk("Edge"))&&!(Fk("Trident")||Fk("MSIE"))&&!Fk("Edge");_.sJ=_.le(_.TY(),"WebKit")&&!Fk("Edge");Eme=_.sJ&&Fk("Mobile");_.nmk=_.mNz();$Er=_.Hrn();QRG=(SM()?Yl.platform==="Linux":Fk("Linux"))||_.APl();ful=_.irM();SHN=Tzz();Lll=Fk("iPad");zFP=Fk("iPod");_.Jnh=_.Lr();t9k=_.le(_.TY(),"KaiOS");afr=function(){var c=_.dz.document;return c?c.documentMode:void 0};
a:{var X$l="",uRz=function(){var c=_.TY();if(_.lf)return/rv:([^\);]+)(\)|;)/.exec(c);if(Gf)return/Edge\/([\d\.]+)/.exec(c);if(_.OJ)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(c);if(_.sJ)return/WebKit\/(\S+)/.exec(c);if(b4r)return/(?:Version)[ \/]?(\S+)/.exec(c)}();
uRz&&(X$l=uRz?uRz[1]:"");if(_.OJ){var vmP=afr();if(vmP!=null&&vmP>parseFloat(X$l)){VGk=String(vmP);break a}}VGk=X$l}hFn=VGk;w$Y={};_.Bg=function(c){return mRz(w$Y,c,function(){return _.ie(hFn,c)>=0})};
if(_.dz.document&&_.OJ){var Wlr=afr();ynz=Wlr?Wlr:parseInt(hFn,10)||void 0}else ynz=void 0;_.DEe=ynz;var FdN,tUk,eFM;_.TK=$l();FdN=Tzz()||Fk("iPod");tUk=Fk("iPad");eFM=_.Ore();_.m8=_.Qn();_.wx=_.kYn()&&!_.Lr();var N5k,Hg,WC4,rxl,PLz,IfM;N5k={};Hg=null;WC4=_.lf||_.sJ||typeof _.dz.btoa=="function";_.$S=function(c,f){f===void 0&&(f=0);IfM();f=N5k[f];for(var d=Array(Math.floor(c.length/3)),q=f[64]||"",Z=0,M=0;Z<c.length-2;Z+=3){var g=c[Z],O=c[Z+1],l=c[Z+2],m=f[g>>2];g=f[(g&3)<<4|O>>4];O=f[(O&15)<<2|l>>6];l=f[l&63];d[M++]=m+g+O+l}m=0;l=q;switch(c.length-Z){case 2:m=c[Z+1],l=f[(m&15)<<2]||q;case 1:c=c[Z],d[M]=f[c>>2]+f[(c&3)<<4|m>>4]+l+q}return d.join("")};
rxl=function(c){var f="";PLz(c,function(d){f+=String.fromCharCode(d)});
return f};
_.IPl=function(c){var f=[];PLz(c,function(d){f.push(d)});
return f};
_.pr=function(c){var f=c.length,d=f*3/4;d%3?d=Math.floor(d):_.OC("=.",c[f-1])&&(d=_.OC("=.",c[f-2])?d-2:d-1);var q=new Uint8Array(d),Z=0;PLz(c,function(M){q[Z++]=M});
return Z!==d?q.subarray(0,Z):q};
PLz=function(c,f){function d(l){for(;q<c.length;){var m=c.charAt(q++),H=Hg[m];if(H!=null)return H;if(!_.gz(m))throw Error("H`"+m);}return l}
IfM();for(var q=0;;){var Z=d(-1),M=d(0),g=d(64),O=d(64);if(O===64&&Z===-1)break;f(Z<<2|M>>4);g!=64&&(f(M<<4&240|g>>2),O!=64&&f(g<<6&192|O))}};
IfM=function(){if(!Hg){Hg={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),f=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++){var q=c.concat(f[d].split(""));N5k[d]=q;for(var Z=0;Z<q.length;Z++){var M=q[Z];Hg[M]===void 0&&(Hg[M]=Z)}}}};var Nzz=typeof Uint8Array!=="undefined",a4n=!_.OJ&&typeof btoa==="function",VMe=/[-_.]/g,zGN={"-":"+",_:"/",".":"="},nj={};var t3,UEC;t3=function(c,f){if(f!==nj)throw Error("J");this.JSC$8761_value_=c;if(c!=null&&c.length===0)throw Error("I");};
_.QF=function(){return RFG||(RFG=new t3(null,nj))};
UEC=function(c){return new Uint8Array(vSr(c)||0)};
t3.prototype.isEmpty=function(){return this.JSC$8761_value_==null};
t3.prototype.sizeBytes=function(){var c=vSr(this);return c?c.length:0};
var vSr=function(c){if(nj!==nj)throw Error("J");var f=c.JSC$8761_value_;f==null||Nzz&&f!=null&&f instanceof Uint8Array||(typeof f==="string"?f=XNP(f):(_.IK(f),f=null));return f==null?f:c.JSC$8761_value_=f},RFG;var vlz=void 0;var ju=typeof Symbol==="function"&&typeof Symbol()==="symbol",p$M=cH("jas",void 0,!0),VuY=cH(void 0,"0di"),xS=cH(void 0,"1oa"),n3=cH(void 0,Symbol()),xHG=cH(void 0,"0ub"),GvM=cH(void 0,"0ubs"),mSN=cH(void 0,"0ubsb"),mQh=cH(void 0,"0actk"),mc=cH("m_m","messagePrototypeMarker",!0),gSC=cH(void 0,"vps"),R_G=cH();var yPn,wNl,yq,xEC;yPn={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};wNl=Object.defineProperties;_.MH=ju?p$M:"internalArrayState";xEC=[];ro(xEC,7);yq=Object.freeze(xEC);var HD={},O3={},omG=function(c,f,d){this.iterable=c;this.mapper=f;this.thisArg=d};
omG.prototype.next=function(){var c=this.iterable.next();c.done||(c.value=this.mapper.call(this.thisArg,c.value));return c};
omG.prototype[Symbol.iterator]=function(){return this};
var GMr=Object.freeze({}),zv={};_.c7z=VF(function(c){return c!==null&&c!==void 0});var xNr=VF(function(c){return typeof c==="number"}),pNr=VF(function(c){return typeof c==="string"}),GY4=VF(function(c){return typeof c==="boolean"}),fqC=VF(function(c){return c!=null&&typeof c==="object"&&typeof c.then==="function"}),Nxe=VF(function(c){return typeof c==="function"}),jh=VF(function(c){return!!c&&(typeof c==="object"||typeof c==="function")});var olC=typeof _.dz.BigInt==="function"&&typeof _.dz.BigInt(0)==="bigint";var QKe=VF(function(c){return olC?c>=diM&&c<=jBP:c[0]==="-"?c3k(c,q1M):c3k(c,ZHY)}),q1M=Number.MIN_SAFE_INTEGER.toString(),diM=olC?BigInt(Number.MIN_SAFE_INTEGER):void 0,ZHY=Number.MAX_SAFE_INTEGER.toString(),jBP=olC?BigInt(Number.MAX_SAFE_INTEGER):void 0;var MfN=typeof Uint8Array.prototype.slice==="function",ur=0,vH=0,YWk;var qQ,rJ,PH,C3,OjP;qQ=typeof BigInt==="function"?BigInt.asIntN:void 0;_.gJ=typeof BigInt==="function"?BigInt.asUintN:void 0;rJ=Number.isSafeInteger;PH=Number.isFinite;C3=Math.trunc;OjP=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var kCe={};var Nok={},r7k=function(){try{var c=function(){return Q34(Map,[],this.constructor)};
_.K(c,Map);k9(new c);return!1}catch(f){return!0}}(),Ar=function(){this.JSC$8781_map_=new Map};
_.r=Ar.prototype;_.r.get=function(c){return this.JSC$8781_map_.get(c)};
_.r.set=function(c,f){this.JSC$8781_map_.set(c,f);this.size=this.JSC$8781_map_.size;return this};
_.r.delete=function(c){c=this.JSC$8781_map_.delete(c);this.size=this.JSC$8781_map_.size;return c};
_.r.clear=function(){this.JSC$8781_map_.clear();this.size=this.JSC$8781_map_.size};
_.r.has=function(c){return this.JSC$8781_map_.has(c)};
_.r.entries=function(){return this.JSC$8781_map_.entries()};
_.r.keys=function(){return this.JSC$8781_map_.keys()};
_.r.values=function(){return this.JSC$8781_map_.values()};
_.r.forEach=function(c,f){return this.JSC$8781_map_.forEach(c,f)};
Ar.prototype[Symbol.iterator]=function(){return this.entries()};
var SF=function(){if(r7k)return Object.setPrototypeOf(Ar.prototype,Map.prototype),Object.defineProperties(Ar.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Ar;var c=function(){return Q34(Map,[],this.constructor)};
_.K(c,Map);return c}(),Fi=function(c,f,d,q){d=d===void 0?wHk:d;
q=q===void 0?wHk:q;var Z=SF.call(this)||this;Z.arrayState=c[_.MH]|0;Z.valueCtor=f;Z.keyToApi=d;Z.valueToApi=Z.valueCtor?WTk:q;for(var M=0;M<c.length;M++){var g=c[M],O=d(g[0],!1,!0),l=g[1];f?l===void 0&&(l=null):l=q(g[1],!1,!0,void 0,void 0,Z.arrayState);SF.prototype.set.call(Z,O,l)}return Z};
_.K(Fi,SF);var CUl=function(c){if(c.arrayState&2)throw Error("N");};
_.r=Fi.prototype;_.r.clear=function(){CUl(this);SF.prototype.clear.call(this)};
_.r.delete=function(c){CUl(this);return SF.prototype.delete.call(this,this.keyToApi(c,!0,!1))};
_.r.entries=function(){if(this.valueCtor){var c=SF.prototype.keys.call(this);c=new omG(c,DHr,this)}else c=SF.prototype.entries.call(this);return c};
_.r.values=function(){if(this.valueCtor){var c=SF.prototype.keys.call(this);c=new omG(c,Fi.prototype.get,this)}else c=SF.prototype.values.call(this);return c};
_.r.forEach=function(c,f){this.valueCtor?SF.prototype.forEach.call(this,function(d,q,Z){c.call(f,Z.get(q),q,Z)}):SF.prototype.forEach.call(this,c,f)};
_.r.set=function(c,f){CUl(this);c=this.keyToApi(c,!0,!1);return c==null?this:f==null?(SF.prototype.delete.call(this,c),this):SF.prototype.set.call(this,c,this.valueToApi(f,!0,!0,this.valueCtor,!1,this.arrayState))};
_.r.has=function(c){return SF.prototype.has.call(this,this.keyToApi(c,!1,!1))};
_.r.get=function(c){c=this.keyToApi(c,!1,!1);var f=SF.prototype.get.call(this,c);if(f!==void 0){var d=this.valueCtor;return d?(d=this.valueToApi(f,!1,!0,d,this.callToMutableOnAccess,this.arrayState),d!==f&&SF.prototype.set.call(this,c,d),d):f}};
Fi.prototype[Symbol.iterator]=function(){return this.entries()};
Fi.prototype.toJSON=void 0;var e_C;var jGN=function(){},fpP=function(c,f){for(var d in c)!isNaN(d)&&f(c,+d,c[d])},qrC=function(c){var f=new jGN;
fpP(c,function(d,q,Z){f[q]=yF(Z)});
f.reviveUnknownFields=c.reviveUnknownFields;return f},UHG={reviveIntoImmutable:!0};var dQN;var O3G,lpl;var gPe,IG,TP,FX,kJN,$9,AN,OHC,lqr,zK,sBe,Jr,Xv,uf;gPe=_.Xy(0);_.Y9={};_.Fv=function(c,f,d,q,Z){f=IG(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f,d,Z);if(f!==null||q&&c.noLegacyNull!==O3)return f};
IG=function(c,f,d,q){if(f===-1)return null;var Z=f+(d?0:-1),M=c.length-1;if(!(M<1+(d?0:-1))){if(Z>=M){var g=c[M];if(g!=null&&typeof g==="object"&&g.constructor===Object){d=g[f];var O=!0}else if(Z===M)d=g;else return}else d=c[Z];if(q&&d!=null){q=q(d);if(q==null)return q;if(!Object.is(q,d))return O?g[f]=q:c[Z]=q,q}return d}};
_.Cu=function(c,f,d,q){uC(c);var Z=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;wJ(Z,Z[_.MH]|0,f,d,q);return c};
_.tr=function(c,f,d){c=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JHz(c,c[_.MH]|0,f,d)!==void 0};
_.bf=function(c,f,d,q){var Z=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JHz(Z,Z[_.MH]|0,f,FX(c,q,d))!==void 0};
_.jQ=function(c){return c===GMr?2:4};
_.KS=function(c,f){c=_.Fv(c,f,void 0,void 0,nSz);return c==null?_.QF():c};
TP=function(c,f,d,q){uC(c);var Z=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Z[_.MH]|0;if(q==null){var g=Srh(Z);if(Lcr(g,Z,M,d)===f)g.set(d,0);else return c}else M=z3r(Z,M,d,f);wJ(Z,M,f,q);return c};
_.EJ=function(c,f,d,q){var Z=c[_.MH]|0,M=aK(Z);Z=z3r(c,Z,d,f,M);wJ(c,Z,f,q,M)};
FX=function(c,f,d){return _.nS(c,f)===d?d:-1};
_.nS=function(c,f){c=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Lcr(Srh(c),c,void 0,f,void 0)};
kJN=function(c,f,d){var q=c[_.MH]|0,Z=aK(q),M=IG(c,d,Z);if(M!=null&&M[mc]===HD){if(!s3(M))return Xi(M),M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var g=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(M)&&(g=M);if(g){var O=g[_.MH]|0;O&2&&(g=JH(g,O))}g=BJr(g,f,!0);g!==M&&wJ(c,q,d,g,Z);return g};
_.TD=function(c,f,d,q){var Z=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Z[_.MH]|0;f=JHz(Z,M,f,d,q);if(f==null)return f;M=Z[_.MH]|0;if(!s3(c,M)){var g=y3z(f);g!==f&&(Xi(c)&&(Z=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Z[_.MH]|0),f=g,M=wJ(Z,M,d,f,q),hH(Z,M))}return f};
_.db=function(c,f,d,q){var Z=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ape(c,Z,Z[_.MH]|0,f,d,q,!1,!0)};
_.BU=function(c,f,d,q){d=VFh(d);_.Cu(c,f,d,q);d&&!s3(d)&&hH(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return c};
_.iX=function(c,f,d,q){q=VFh(q);TP(c,f,d,q);q&&!s3(q)&&hH(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return c};
$9=function(c,f,d){uC(c);var q=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=q[_.MH]|0;if(d==null)return wJ(q,Z,f),c;for(var M=d===yq?7:d[_.MH]|0,g=M,O=NQ(M),l=O||Object.isFrozen(d),m=!0,H=!0,A=0;A<d.length;A++){var Y=d[A];O||(Y=s3(Y),m&&(m=!Y),H&&(H=Y))}O||(M=m?13:5,M=H?M&-4097:M|4096);l&&M===g||(d=yF(d),g=0,M=WD(M,Z));M!==g&&ro(d,M);Z=wJ(q,Z,f,d);2&M||!(4096&M||16&M)||hH(q,Z);return c};
AN=function(c,f,d,q){uin(c,f,d,q);return c};
OHC=function(c,f,d){uin(c,f,QQ,void 0,d,1,!0);return c};
_.S7=function(c,f,d){c=_.Fv(c,f,void 0,d);f=typeof c;c=c==null?c:f==="bigint"?_.Xy((0,_.gJ)(64,c)):_.RK(c)?f==="string"?_.$Hr(c):_.E_M(c):void 0;return c};
_.LS=function(c,f){var d=d===void 0?!1:d;var q;return(q=_.kvG(_.Fv(c,f)))!=null?q:d};
_.qx=function(c,f,d){d=d===void 0?0:d;var q;return(q=_.f3(_.Fv(c,f)))!=null?q:d};
lqr=function(c,f){var d=d===void 0?0:d;c=_.sKP(_.Fv(c,f));return c!=null?c:d};
zK=function(c,f,d){d=d===void 0?gPe:d;var q;return(q=_.z_r(_.Fv(c,f)))!=null?q:d};
sBe=function(c){var f=f===void 0?gPe:f;var d;return(d=_.S7(c,23))!=null?d:f};
Jr=function(c,f){var d=d===void 0?0:d;var q;return(q=_.Fv(c,f,void 0,void 0,_.CrY))!=null?q:d};
_.aW=function(c,f,d,q){d=d===void 0?"":d;var Z;return(Z=_.TC(_.Fv(c,f,q)))!=null?Z:d};
_.VQ=function(c,f){var d=d===void 0?0:d;var q;return(q=_.oK(_.Fv(c,f)))!=null?q:d};
Xv=function(c,f){var d=d===void 0?"0":d;c=LTY(_.Fv(c,f),!0);return c!=null?c:d};
uf=function(c,f,d){return _.aW(c,FX(c,d,f))};
_.vg=function(c,f,d,q){return _.TD(c,f,FX(c,q,d),void 0)};
_.Hu=function(c,f){return _.TC(_.Fv(c,f,void 0,_.Y9))};
_.C1=function(c,f,d){return _.Cu(c,f,g_k(d))};
_.zc=function(c,f,d){return _.p3(c,f,g_k(d),!1)};
_.hr=function(c,f,d){return _.Cu(c,f,_.cD(d))};
_.b6=function(c,f,d){return _.Cu(c,f,MQ(d))};
_.b5=function(c,f,d){return _.Cu(c,f,lC(d))};
_.pO=function(c,f,d,q){return _.p3(c,f,lC(d),"",q)};
_.rR=function(c,f,d){return _.Cu(c,f,d==null?d:_.pj(d))};
_.wn=function(c,f,d){return _.p3(c,f,d==null?d:_.pj(d),0)};var oG=function(c,f,d){this.buffer=c;if(d&&!f)throw Error();this.JSC$8793_isImmutable=f};var Bc4=function(c,f,d,q){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8796_start_=0;this.init(c,f,d,q)},yQ,TcP,mi4,A7e,MPC,iHP;
_.r=Bc4.prototype;_.r.init=function(c,f,d,q){var Z=q===void 0?{}:q;q=Z.aliasBytesFields===void 0?!1:Z.aliasBytesFields;Z=Z.treatNewDataAsImmutable===void 0?!1:Z.treatNewDataAsImmutable;this.aliasBytesFields=q;this.treatNewDataAsImmutable=Z;c&&(c=h3n(c,this.treatNewDataAsImmutable),this.bytes_=c.buffer,this.bytesAreImmutable_=c.JSC$8793_isImmutable,this.JSC$8796_start_=f||0,this.end_=d!==void 0?this.JSC$8796_start_+d:this.bytes_.length,this.cursor_=this.JSC$8796_start_)};
_.r.free=function(){this.clear();iHP.length<100&&iHP.push(this)};
_.r.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8796_start_=0;this.aliasBytesFields=!1};
_.r.reset=function(){this.cursor_=this.JSC$8796_start_};
_.r.atEnd=function(){return this.cursor_==this.end_};
_.Wg=function(c,f){var d=0,q=0,Z=0,M=c.bytes_,g=c.cursor_;do{var O=M[g++];d|=(O&127)<<Z;Z+=7}while(Z<32&&O&128);if(Z>32)for(q|=(O&127)>>4,Z=3;Z<32&&O&128;Z+=7)O=M[g++],q|=(O&127)<<Z;yQ(c,g);if(!(O&128))return f(d>>>0,q>>>0);throw Error();};
yQ=function(c,f){c.cursor_=f;if(f>c.end_)throw Error();};
_.D2=function(c){var f=c.bytes_,d=c.cursor_,q=f[d++],Z=q&127;if(q&128&&(q=f[d++],Z|=(q&127)<<7,q&128&&(q=f[d++],Z|=(q&127)<<14,q&128&&(q=f[d++],Z|=(q&127)<<21,q&128&&(q=f[d++],Z|=q<<28,q&128&&f[d++]&128&&f[d++]&128&&f[d++]&128&&f[d++]&128&&f[d++]&128)))))throw Error();yQ(c,d);return Z};
_.e7=function(c){var f=c.bytes_,d=c.cursor_,q=f[d],Z=f[d+1],M=f[d+2];f=f[d+3];yQ(c,c.cursor_+4);return(q<<0|Z<<8|M<<16|f<<24)>>>0};
TcP=function(c){var f=_.e7(c);c=_.e7(c);return jK4(f,c)};
mi4=function(c){var f=_.e7(c),d=_.e7(c);c=(d>>31)*2+1;var q=d>>>20&2047;f=4294967296*(d&1048575)+f;return q==2047?f?NaN:c*Infinity:q==0?c*4.9E-324*f:c*Math.pow(2,q-1075)*(f+4503599627370496)};
_.HHY=function(c){for(var f=0,d=c.cursor_,q=d+10,Z=c.bytes_;d<q;){var M=Z[d++];f|=M;if((M&128)===0)return yQ(c,d),!!(f&127)}throw Error();};
A7e=function(c,f){if(f<0)throw Error();var d=c.cursor_;f=d+f;if(f>c.end_)throw Error();c.cursor_=f;return d};
MPC=function(c,f){if(f==0)return _.QF();var d=A7e(c,f);c.aliasBytesFields&&c.bytesAreImmutable_?d=c.bytes_.subarray(d,d+f):(c=c.bytes_,f=d+f,d=d===f?new Uint8Array(0):MfN?c.slice(d,f):new Uint8Array(c.subarray(d,f)));return d.length==0?_.QF():new t3(d,nj)};
iHP=[];var FWN=function(c,f,d,q){if(iHP.length){var Z=iHP.pop();Z.init(c,f,d,q);c=Z}else c=new Bc4(c,f,d,q);this.decoder_=c;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Y1M(this,q)},Y1M=function(c,f){f=f===void 0?{}:f;
c.discardUnknownFields=f.discardUnknownFields===void 0?!1:f.discardUnknownFields},ghN=function(c,f,d,q){if(tfN.length){var Z=tfN.pop();
Y1M(Z,q);Z.decoder_.init(c,f,d,q);return Z}return new FWN(c,f,d,q)},jhG,Zqh,bHP,tfN;
FWN.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;tfN.length<100&&tfN.push(this)};
FWN.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
jhG=function(c){if(c.decoder_.atEnd())return!1;c.fieldCursor_=c.decoder_.cursor_;var f=_.D2(c.decoder_)>>>0,d=f>>>3;f&=7;if(!(f>=0&&f<=5))throw Error();if(d<1)throw Error();c.nextField_=d;c.nextWireType_=f;return!0};
Zqh=function(c){switch(c.nextWireType_){case 0:c.nextWireType_!=0?Zqh(c):_.HHY(c.decoder_);break;case 1:c=c.decoder_;yQ(c,c.cursor_+8);break;case 2:if(c.nextWireType_!=2)Zqh(c);else{var f=_.D2(c.decoder_)>>>0;c=c.decoder_;yQ(c,c.cursor_+f)}break;case 5:c=c.decoder_;yQ(c,c.cursor_+4);break;case 3:f=c.nextField_;do{if(!jhG(c))throw Error();if(c.nextWireType_==4){if(c.nextField_!=f)throw Error();break}Zqh(c)}while(1);break;default:throw Error();}};
bHP=function(c,f,d){var q=c.decoder_.end_,Z=_.D2(c.decoder_)>>>0;Z=c.decoder_.cursor_+Z;var M=Z-q;M<=0&&(c.decoder_.end_=Z,d(f,c,void 0,void 0,void 0),M=Z-c.decoder_.cursor_);if(M)throw Error();c.decoder_.cursor_=Z;c.decoder_.end_=q};
_.KWM=function(c){var f=_.D2(c.decoder_)>>>0;c=c.decoder_;var d=A7e(c,f);c=c.bytes_;if(dEl){var q=c,Z;(Z=ffM)||(Z=ffM=new TextDecoder("utf-8",{fatal:!0}));f=d+f;q=d===0&&f===q.length?q:q.subarray(d,f);try{var M=Z.decode(q)}catch(m){if(cnl===void 0){try{Z.decode(new Uint8Array([128]))}catch(H){}try{Z.decode(new Uint8Array([97])),cnl=!0}catch(H){cnl=!1}}!cnl&&(ffM=void 0);throw m;}}else{M=d;f=M+f;d=[];for(var g=null,O,l;M<f;)O=c[M++],O<128?d.push(O):O<224?M>=f?fr():(l=c[M++],O<194||(l&192)!==128?(M--,
fr()):d.push((O&31)<<6|l&63)):O<240?M>=f-1?fr():(l=c[M++],(l&192)!==128||O===224&&l<160||O===237&&l>=160||((Z=c[M++])&192)!==128?(M--,fr()):d.push((O&15)<<12|(l&63)<<6|Z&63)):O<=244?M>=f-2?fr():(l=c[M++],(l&192)!==128||(O<<28)+(l-144)>>30!==0||((Z=c[M++])&192)!==128||((q=c[M++])&192)!==128?(M--,fr()):(O=(O&7)<<18|(l&63)<<12|(Z&63)<<6|q&63,O-=65536,d.push((O>>10&1023)+55296,(O&1023)+56320))):fr(),d.length>=8192&&(g=cPY(g,d),d.length=0);M=cPY(g,d)}return M};
_.EPk=function(c){var f=_.D2(c.decoder_)>>>0;return MPC(c.decoder_,f)};
_.nPM=function(c,f,d){var q=_.D2(c.decoder_)>>>0;for(q=c.decoder_.cursor_+q;c.decoder_.cursor_<q;)d.push(f(c.decoder_))};
tfN=[];var $ie=function(c,f){this.JSC$8803_lo=c>>>0;this.JSC$8803_hi=f>>>0},S1G=function(c){if(!c)return QBz||(QBz=new $ie(0,0));
if(!/^\d+$/.test(c))return null;r3N(c);return new $ie(ur,vH)},QBz,KEk=function(c,f){this.JSC$8805_lo=c>>>0;
this.JSC$8805_hi=f>>>0},tPM=function(c){if(!c)return LWl||(LWl=new KEk(0,0));
if(!/^-?\d+$/.test(c))return null;r3N(c);return new KEk(ur,vH)},LWl;var N6=function(){this.JSC$8807_buffer_=[]},bqM,zlz;
N6.prototype.length=function(){return this.JSC$8807_buffer_.length};
N6.prototype.end=function(){var c=this.JSC$8807_buffer_;this.JSC$8807_buffer_=[];return c};
bqM=function(c,f,d){for(;d>0||f>127;)c.JSC$8807_buffer_.push(f&127|128),f=(f>>>7|d<<25)>>>0,d>>>=7;c.JSC$8807_buffer_.push(f)};
zlz=function(c,f){for(;f>127;)c.JSC$8807_buffer_.push(f&127|128),f>>>=7;c.JSC$8807_buffer_.push(f)};
_.EhG=function(c,f){if(f>=0)zlz(c,f);else{for(var d=0;d<9;d++)c.JSC$8807_buffer_.push(f&127|128),f>>=7;c.JSC$8807_buffer_.push(1)}};
N6.prototype.writeUint8=function(c){this.JSC$8807_buffer_.push(c>>>0&255)};
_.Cq=function(c,f){c.JSC$8807_buffer_.push(f>>>0&255);c.JSC$8807_buffer_.push(f>>>8&255);c.JSC$8807_buffer_.push(f>>>16&255);c.JSC$8807_buffer_.push(f>>>24&255)};
N6.prototype.writeInt8=function(c){this.JSC$8807_buffer_.push(c>>>0&255)};var J7N,jP,$Sk,LEz;J7N=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new N6};
jP=function(c,f){f.length!==0&&(c.blocks_.push(f),c.totalLength_+=f.length)};
_.DQG=function(c,f){_.r8(c,f,2);f=c.encoder_.end();jP(c,f);f.push(c.totalLength_);return f};
_.e3z=function(c,f){var d=f.pop();for(d=c.totalLength_+c.encoder_.length()-d;d>127;)f.push(d&127|128),d>>>=7,c.totalLength_++;f.push(d);c.totalLength_++};
_.r8=function(c,f,d){zlz(c.encoder_,f*8+d)};
$Sk=function(c,f,d){if(d!=null){switch(typeof d){case "string":S1G(d)}_.r8(c,f,1);switch(typeof d){case "number":c=c.encoder_;fOl(d);_.Cq(c,ur);_.Cq(c,vH);break;case "bigint":d=BigInt.asUintN(64,d);d=new $ie(Number(d&BigInt(4294967295)),Number(d>>BigInt(32)));c=c.encoder_;f=d.JSC$8803_hi;_.Cq(c,d.JSC$8803_lo);_.Cq(c,f);break;default:d=S1G(d),c=c.encoder_,f=d.JSC$8803_hi,_.Cq(c,d.JSC$8803_lo),_.Cq(c,f)}}};
LEz=function(c,f,d){_.r8(c,f,2);zlz(c.encoder_,d.length);jP(c,c.encoder_.end());jP(c,d)};var wDN,Xmr,uze,wmz,y7P;wDN=GC();_.aql=GC();_.VfP=GC();Xmr=GC();uze=GC();_.vPn=GC();_.IW=GC();_.hlP=GC();wmz=GC();y7P=GC();_.WWz=GC();_.Die=GC();_.d8=function(c,f,d){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c,f,d)};
_.d8.prototype.toJSON=function(){return L3(this)};
_.d8.prototype.serialize=function(c){return JSON.stringify(L3(this,c))};
var hhY=function(c,f){if(f==null||f=="")return new c;f=JSON.parse(f);if(!Array.isArray(f))throw Error("V");return new c(eGe(f))};
_.d8.prototype.getExtension=function(c){o_k(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c.fieldIndex);pHz(this,c.fieldIndex);return c.ctor?c.isRepeated?c.getExtensionFn(this,c.ctor,c.fieldIndex,_.jQ(),c.JSC$8818_hasMessageId):c.getExtensionFn(this,c.ctor,c.fieldIndex,c.JSC$8818_hasMessageId):c.isRepeated?c.getExtensionFn(this,c.fieldIndex,_.jQ(),c.JSC$8818_hasMessageId):c.getExtensionFn(this,c.fieldIndex,c.defaultValue,c.JSC$8818_hasMessageId)};
_.d8.prototype.clone=function(){var c=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=c[_.MH]|0;return tFe(this,c,f)?FcY(this,c,!0):new this.constructor(JH(c,f,!1))};
_.d8.prototype[mc]=HD;_.d8.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var cU=function(c,f,d){this.$$binaryReaderFn=c;this.$$binaryWriterFn=f;c=Er(wDN);this.$$isMsg=!!c&&d===c||!1},UQN=yHz(function(c,f,d,q,Z){if(c.nextWireType_!==2)return!1;
bHP(c,kJN(f,q,d),Z);return!0},NJP),pDn=yHz(function(c,f,d,q,Z){if(c.nextWireType_!==2)return!1;
bHP(c,kJN(f,q,d),Z);return!0},NJP),Oqe=Symbol(),GCl=Symbol(),dSr=Symbol(),B8N=Symbol(),rvk=Symbol(),Ipk,PCl;var XUh,eln,NcG,Iqn,PUP,RlP,UiC,pmk,xiG,oPn,GJN,fAr,dFn,qhh,Zvk;XUh=function(c,f){var d=new J7N;iqr(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d,fq(Oqe,k8N,lJl,f));jP(d,d.encoder_.end());c=new Uint8Array(d.totalLength_);f=d.blocks_;for(var q=f.length,Z=0,M=0;M<q;M++){var g=f[M];c.set(g,Z);Z+=g.length}d.blocks_=[c];return c};
eln=_.qS(function(c,f,d){if(c.nextWireType_!==1)return!1;_.ZJ(f,d,mi4(c.decoder_));return!0},FEN,y7P);
NcG=_.qS(function(c,f,d,q){if(c.nextWireType_!==1)return!1;_.EJ(f,d,q,mi4(c.decoder_));return!0},FEN,y7P);
Iqn=_.qS(function(c,f,d,q){if(c.nextWireType_!==5)return!1;var Z=_.e7(c.decoder_);c=(Z>>31)*2+1;var M=Z>>>23&255;Z&=8388607;_.EJ(f,d,q,M==255?Z?NaN:c*Infinity:M==0?c*1.401298464324817E-45*Z:c*Math.pow(2,M-150)*(Z+8388608));return!0},function(c,f,d){f=_.CrY(f);
f!=null&&(_.r8(c,d,5),c=c.encoder_,d=YWk||(YWk=new DataView(new ArrayBuffer(8))),d.setFloat32(0,+f,!0),vH=0,ur=d.getUint32(0,!0),_.Cq(c,ur))},wmz);
_.RW=_.qS(function(c,f,d){if(c.nextWireType_!==0)return!1;_.ZJ(f,d,_.Wg(c.decoder_,q3N));return!0},_.g8,_.IW);
PUP=_.qS(function(c,f,d){if(c.nextWireType_!==0)return!1;c=_.Wg(c.decoder_,q3N);_.ZJ(f,d,c===0?void 0:c);return!0},_.g8,_.IW);
RlP=_.qS(function(c,f,d,q){if(c.nextWireType_!==0)return!1;_.EJ(f,d,q,_.Wg(c.decoder_,q3N));return!0},_.g8,_.IW);
_.UJ=_.qS(function(c,f,d){if(c.nextWireType_!==0)return!1;_.ZJ(f,d,_.D2(c.decoder_));return!0},nhM,Xmr);
UiC=_.qS(function(c,f,d){if(c.nextWireType_!==0)return!1;c=_.D2(c.decoder_);_.ZJ(f,d,c===0?void 0:c);return!0},nhM,Xmr);
pmk=_.qS(function(c,f,d,q){if(c.nextWireType_!==0)return!1;_.EJ(f,d,q,_.D2(c.decoder_));return!0},nhM,Xmr);
xiG=_.qS(function(c,f,d){if(c.nextWireType_!==1)return!1;_.ZJ(f,d,TcP(c.decoder_));return!0},_.QhC,_.hlP);
oPn=_.Avn(function(c,f,d){if(c.nextWireType_!==1&&c.nextWireType_!==2)return!1;f=_.QGN(f,f[_.MH]|0,d);c.nextWireType_==2?_.nPM(c,TcP,f):f.push(TcP(c.decoder_));return!0},function(c,f,d){f=_.Hqk(aO4,f,!1);
if(f!=null)for(var q=0;q<f.length;q++)$Sk(c,d,f[q])},_.hlP);
_.pS=_.qS(function(c,f,d){if(c.nextWireType_!==0)return!1;_.ZJ(f,d,_.HHY(c.decoder_));return!0},_.SWk,_.aql);
GJN=_.qS(function(c,f,d,q){if(c.nextWireType_!==0)return!1;_.EJ(f,d,q,_.HHY(c.decoder_));return!0},_.SWk,_.aql);
_.x9=_.qS(function(c,f,d){if(c.nextWireType_!==2)return!1;_.ZJ(f,d,_.KWM(c));return!0},_.zhP,_.VfP);
_.cIn=_.qS(function(c,f,d,q){if(c.nextWireType_!==2)return!1;_.EJ(f,d,q,_.KWM(c));return!0},_.zhP,_.VfP);
fAr=_.Avn(function(c,f,d){if(c.nextWireType_!==2)return!1;c=_.KWM(c);_.QGN(f,f[_.MH]|0,d).push(c);return!0},function(c,f,d){f=_.Hqk(_.TC,f,!0);
if(f!=null)for(var q=0;q<f.length;q++){var Z=c,M=d,g=f[q];g!=null&&LEz(Z,M,qCz(g))}},_.VfP);
dFn=void 0;dFn=dFn===void 0?wDN:dFn;_.oW=new cU(function(c,f,d,q,Z){if(c.nextWireType_!==2)return!1;q=BJr(void 0,q,!0);_.QGN(f,f[_.MH]|0,d).push(q);bHP(c,q,Z);return!0},function(c,f,d,q,Z){if(Array.isArray(f))for(var M=0;M<f.length;M++)JvN(c,f[M],d,q,Z)},dFn);
_.GK=yHz(function(c,f,d,q,Z,M){if(c.nextWireType_!==2)return!1;var g=f[_.MH]|0;z3r(f,g,M,d,aK(g));f=kJN(f,q,d);bHP(c,f,Z);return!0},JvN);
_.j4N=_.qS(function(c,f,d){if(c.nextWireType_!==2)return!1;_.ZJ(f,d,_.EPk(c));return!0},_.aJC,_.WWz);
qhh=_.qS(function(c,f,d,q){if(c.nextWireType_!==2)return!1;_.EJ(f,d,q,_.EPk(c));return!0},_.aJC,_.WWz);
Zvk=_.qS(function(c,f,d,q){if(c.nextWireType_!==0)return!1;_.EJ(f,d,q,_.D2(c.decoder_)>>>0);return!0},function(c,f,d){f=_.sKP(f);
f!=null&&f!=null&&(_.r8(c,d,0),zlz(c.encoder_,f))},uze);
_.c1=_.qS(function(c,f,d){if(c.nextWireType_!==0)return!1;_.ZJ(f,d,_.D2(c.decoder_));return!0},_.VPM,_.Die);var C$C=function(){var c=Mdn,f=rI4;this.fieldIndex=175237375;this.ctor=f;this.isRepeated=0;this.getExtensionFn=_.TD;this.defaultValue=void 0;this.JSC$8818_hasMessageId=c.messageId!=null?zv:void 0};
C$C.prototype.register=function(){k9(this)};var gYN=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(gYN,_.d8);var klY=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(klY,_.d8);var WEN=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(WEN,_.d8);var Ovn=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Ovn,_.d8);var lAr=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(lAr,_.d8);var s4r=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(s4r,_.d8);var BMN=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(BMN,_.d8);BMN.prototype.getData=function(){return _.KS(this,2)};var iv4=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(iv4,_.d8);var TMk=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(TMk,_.d8);TMk.prototype.getStyle=function(){return _.TD(this,gYN,1)};var sW=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(sW,_.d8);sW.prototype.getPayloadCase=function(){return _.nS(this,HU)};
sW.prototype.getStyle=function(){return _.vg(this,TMk,6,HU)};
var mFz=function(){var c=new sW,f=new lAr;return _.iX(c,7,HU,f)},Hv4=function(){var c=new sW,f=new s4r;
return _.iX(c,8,HU,f)},HU=[1,
2,3,4,5,6,7,8];var AIG=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(AIG,_.d8);var YhN=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(YhN,_.d8);var F2N=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(F2N,_.d8);var tdn=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(tdn,_.d8);var bvn=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(bvn,_.d8);var K2M=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(K2M,_.d8);var EY4=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(EY4,_.d8);var nYk=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(nYk,_.d8);nYk.prototype.getData=function(){return _.KS(this,2)};var $Fl=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K($Fl,_.d8);var yvh=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(yvh,_.d8);yvh.prototype.getPayloadCase=function(){return _.nS(this,fo)};
var fo=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var d4=function(c,f){c=Error.call(this,c);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=f===void 0?2:f};
_.K(d4,Error);var Q4z=Promise;var ShM=function(c){this.channelPromise=c};
ShM.prototype.send=function(c,f,d){this.channelPromise.then(function(q){q.send(c,f,d)})};var L2G=function(c,f){this.data=c;this.channel=f};
L2G.prototype.reply=function(c,f,d){this.channel.send(c,f,d)};var zTn=function(c){this.JSC$8884_port_=c};
zTn.prototype.send=function(c,f,d){d=d===void 0?[]:d;var q=new MessageChannel;JIY(q.port1,f);this.JSC$8884_port_.postMessage(c,[q.port2].concat(d))};
var aAC=function(c,f){JIY(c,f);return new zTn(c)},JIY=function(c,f){f&&(c.onmessage=function(d){f(new L2G(d.data,aAC(d.ports[0])))})};var Vdr=function(c){this.verifier_=c};
Vdr.prototype.verify=function(c){return this.verifier_(c)};
var XlC=function(c){var f=Object.create(null);(typeof c==="string"?[c]:c).forEach(function(d){if(d==="null")throw Error("X");f[d]=!0});
return function(d){return f[d]===!0}};_.ugG=function(){if(!_.dz.addEventListener||!Object.defineProperty)return!1;var c=!1,f=Object.defineProperty({},"passive",{get:function(){c=!0}});
try{var d=function(){};
_.dz.addEventListener("test",d,f);_.dz.removeEventListener("test",d,f)}catch(q){}return c}();var vYn;_.jj=function(c){var f=c.destination;var d=c.iframe;var q=c.origin;var Z=c.channelName===void 0?"ZNWN1d":c.channelName;var M=c.onMessage===void 0?void 0:c.onMessage;c=c.onEstablished===void 0?void 0:c.onEstablished;return vYn({destination:f,getSource:function(){return d.contentWindow},
originVerifier:q instanceof Vdr?q:typeof q==="function"?new Vdr(q):new Vdr(XlC(q)),channelName:Z,onMessage:M,onEstablished:c})};
vYn=function(c){var f=c.destination;var d=c.getSource;var q=c.originVerifier;var Z=c.token===void 0?void 0:c.token;var M=c.channelName;var g=c.onMessage===void 0?void 0:c.onMessage;var O=c.onEstablished===void 0?void 0:c.onEstablished;return new ShM(new Q4z(function(l,m){var H=function(A){A.source&&A.source===d()&&q.verify(A.origin)&&(A.data.n||A.data)===M&&(f.removeEventListener("message",H,!1),Z&&A.data.t!==Z?m(Error("Y`"+M+"`"+Z+"`"+A.data.t)):(l(aAC(A.ports[0],g)),O&&O(A)))};
f.addEventListener("message",H,!1)}))};var hTh=function(c){try{c()}catch(f){jM(f)}};var yIz=function(c){var f=this;var d=c.getMessageType;var q=c.onUnregisteredMessage===void 0?function(){}:c.onUnregisteredMessage;
var Z=c.onBeforeRegisteredMessage===void 0?function(){}:c.onBeforeRegisteredMessage;
c=c.onAfterRegisteredMessage===void 0?function(){}:c.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=d;this.onUnregisteredMessage_=q;this.onBeforeRegisteredMessage_=Z;this.onAfterRegisteredMessage_=c;this.onMessage=function(M){return wlG(f,M)}};
yIz.prototype.register=function(c,f){this.registry_.set(c,f);return this};
var wlG=function(c,f){var d=c.getMessageType_(f.data),q=c.registry_.get(d);q?(hTh(function(){return c.onBeforeRegisteredMessage_(f,d)}),hTh(function(){return q(f)}),hTh(function(){return c.onAfterRegisteredMessage_(f,d)})):hTh(function(){return c.onUnregisteredMessage_(f,d)})};var W2C=function(c){this.JSC$8901_channel_=c},eTk,NMM;
W2C.prototype.send=function(c,f,d){this.JSC$8901_channel_.send(L3(c),f,d)};
_.DFe=function(c,f){return function(d){var q=new c(d.data);return f(new L2G(q,d.channel))}};
eTk=function(c){return function(f){return c(new L2G(f.data,new W2C(f.channel)))}};
NMM=function(c,f){return eTk(_.DFe(c,f))};var IAk=function(c,f,d,q){this.registry=c;this.delegate=f;this.receiveMessageConstructor=d;this.createInitMessage=q;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},wUG=function(c){var f=new yIz({getMessageType:c.getPayloadCase});
return new IAk(f,new W2C(_.jj({iframe:c.child,destination:window,origin:c.origin,channelName:c.channelName,onMessage:NMM(c.receiveMessageConstructor,f.onMessage)})),c.receiveMessageConstructor,c.createInitMessage)},P$k=function(c,f){c.createInitMessage=f};
IAk.prototype.send=function(c){if(!this.initialised)throw new d4("Attempted to send a message before initialisation.");this.delegate.send(c)};
var RTk=function(c,f){return _.k(function(d){if(!c.initialised)throw new d4("Attempted to send a message before initialisation.");return d.return(new Promise(function(q){c.delegate.send(f,NMM(c.receiveMessageConstructor,q))}))})};
IAk.prototype.init=function(){var c=this;return _.k(function(f){if(c.initialised)throw new d4("Attempted to initialise twice. The SDK can only be initialised once.");if(c.createInitMessage!==void 0){var d=c.delegate,q=d.send,Z=c.createInitMessage;var M=new klY;var g=[].concat(_.LT(c.features));M=_.RG(M,1,g,_.pj);q.call(d,Z.call(c,M))}c.initialised=!0;_.Fm(f)})};
var q0=function(c,f){if(c.initialised)throw new d4('Attempted to set up API "'+f+'" after initialisation. All APIs must be set up before initialising the SDK.');c.features.add(f);return c.registry};
_.ci.Object.defineProperties(IAk.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var UFk=function(c){this.channel=c;this.registered=!1};
UFk.prototype.update=function(c){if(this.channel.isInitialised){if(!this.registered)throw new d4("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var f=new sW;var d=new Ovn;d=_.C1(d,1,c);f=_.iX(f,2,HU,d);this.channel.send(f)}else this.register();this.JSC$8915_audioEnabled=c};
UFk.prototype.register=function(){q0(this.channel,1);this.registered=!0};
UFk.prototype.isAudioEnabled=function(){return this.JSC$8915_audioEnabled};var plN=function(c){this.channel=c};
_.r=plN.prototype;_.r.onFirstFrameReady=function(c){q0(this.channel,2).register(11,function(f){f=_.vg(f.data,AIG,11,fo);if(!f)throw new d4("Unexpectedly nonexistent GameFirstFrameReadyEvent");c(_.aW(f,1))})};
_.r.onReady=function(c){q0(this.channel,2).register(4,function(f){f=_.vg(f.data,F2N,4,fo);if(!f)throw new d4("Unexpectedly nonexistent GameReadyEvent");c(_.aW(f,1))})};
_.r.onLevelComplete=function(c){q0(this.channel,2).register(5,function(f){f=_.vg(f.data,tdn,5,fo);if(!f)throw new d4("Unexpectedly nonexistent LevelCompleteEvent");c(_.aW(f,1),_.qx(f,2))})};
_.r.onGameOver=function(c){q0(this.channel,2).register(6,function(f){f=_.vg(f.data,YhN,6,fo);if(!f)throw new d4("Unexpectedly nonexistent GameOverEvent");c(_.aW(f,1))})};
_.r.pause=function(){var c=this;if(!this.channel.isInitialised)return q0(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new d4("Using unregistered Game Feature: pause.");var f=mFz();return new Promise(function(d){return _.k(function(q){if(q.nextAddress==1)return q.yield(RTk(c.channel,f),2);d();_.Fm(q)})})};
_.r.resume=function(){var c=this;if(!this.channel.isInitialised)return q0(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new d4("Using unregistered Game Feature: resume.");var f=Hv4();return new Promise(function(d){return _.k(function(q){if(q.nextAddress==1)return q.yield(RTk(c.channel,f),2);d();_.Fm(q)})})};var xFe=function(c){this.channel=c};
xFe.prototype.onReady=function(c){q0(this.channel,5).register(8,function(f){if(!_.vg(f.data,bvn,8,fo))throw new d4("Unexpectedly nonexistent PageReadyEvent");c()})};var oYG=function(c){this.channel=c};
oYG.prototype.onChange=function(c){q0(this.channel,3).register(7,function(f){f=_.vg(f.data,K2M,7,fo);if(!f)throw new d4("Unexpectedly nonexistent ScoreEvent");c(_.aW(f,1),_.qx(f,2))})};var Glr={load:function(){throw new d4("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new d4("Storage used, but storage.onSave() listener not set!");}},cPv=function(c){this.channel=c;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},f4_=function(c){q0(c.channel,4).register(2,Glr.load).register(3,Glr.save);
c.initialSetupDone=!0};
cPv.prototype.onLoad=function(c){this.initialSetupDone||f4_(this);this.loadRegistered||(this.loadRegistered=!0,q0(this.channel,4).register(2,function(f){var d,q,Z;return _.k(function(M){if(M.nextAddress==1){d=_.vg(f.data,EY4,2,fo);if(!d)throw new d4("Unexpectedly nonexistent StorageLoad");q=_.aW(d,1);return M.yield(c(q),2)}Z=M.yieldResult;var g=f.reply,O=new sW;var l=new BMN;l=_.b5(l,1,q);l=_.Cu(l,2,_.Su(Z,!1));O=_.iX(O,3,HU,l);g.call(f,O);_.Fm(M)})}))};
cPv.prototype.onSave=function(c){this.initialSetupDone||f4_(this);this.saveRegistered||(this.saveRegistered=!0,q0(this.channel,4).register(3,function(f){var d,q,Z;return _.k(function(M){if(M.nextAddress==1){d=_.vg(f.data,nYk,3,fo);if(!d)throw new d4("Unexpectedly nonexistent StorageSave");q=_.aW(d,1);Z=UEC(d.getData());return M.yield(c(q,Z),2)}var g=f.reply,O=new sW;var l=new iv4;l=_.b5(l,1,q);O=_.iX(O,4,HU,l);g.call(f,O);_.Fm(M)})}))};var dNy=function(c){this.channel=c};
dNy.prototype.update=function(c){if(!this.channel.features.has(6))throw new d4("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var f=new sW,d=new TMk;c=_.BU(d,1,c);f=_.iX(f,6,HU,c);this.channel.send(f)};
dNy.prototype.register=function(){q0(this.channel,6)};var jky=function(c){this.channel=c;this.userActivityLoggingIntervalMs=0};
jky.prototype.onUserActivity=function(c,f){this.userActivityLoggingIntervalMs=f;q0(this.channel,7).register(9,function(d){if(!_.vg(d.data,$Fl,9,fo))throw new d4("Unexpectedly nonexistent ClickEvent");c()})};var qCo=function(c){var f=this;this.channel=c;this.init=this.channel.init.bind(this.channel);this.page=new xFe(this.channel);this.game=new plN(this.channel);this.audio=new UFk(this.channel);this.score=new oYG(this.channel);this.storage=new cPv(this.channel);this.style=new dNy(this.channel);this.userActivity=new jky(this.channel);P$k(this.channel,function(d){var q=new WEN;d=_.BU(q,1,d);d=_.hr(d,3,f.userActivity.userActivityLoggingIntervalMs);q=f.audio.isAudioEnabled();q!==void 0&&_.C1(d,2,q);q=new sW;
return _.iX(q,5,HU,d)})};var ZrT=function(){this.timedFunctionContext=0};
ZrT.prototype.timeExecution=function(c,f){var d=this;return function(){var q=_.hv.apply(0,arguments);d.timedFunctionContext=c;return f.apply(null,_.LT(q))}};var MMo=function(){var c={};this.priorityTasks=(c[3]=[],c[2]=[],c[1]=[],c);this.isFlushing=!1},TV=function(c,f,d){var q=rPy(c,d);
c.priorityTasks[d].push(f);q&&c.priorityTasks[d].length===1&&c.flush()},rPy=function(c,f){return Object.keys(c.priorityTasks).map(function(d){return Number(d)}).filter(function(d){return!isNaN(d)&&d>f}).every(function(d){return c.priorityTasks[d].length===0})};
MMo.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(c){return c.length>0});)Ceu(this,3),Ceu(this,2),Ceu(this,1)}catch(c){throw Object.values(this.priorityTasks).forEach(function(f){return void f.splice(0,f.length)}),c;
}finally{this.isFlushing=!1}}};
var Ceu=function(c,f){for(;rPy(c,f)&&c.priorityTasks[f].length>0;)c.priorityTasks[f][0](),c.priorityTasks[f].shift()};
_.ci.Object.defineProperties(MMo.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(c){return c.length>0})}}});var pUn={};var gly=globalThis.trustedTypes,ehN=gly,IJM;var tv=function(c){this.privateDoNotAccessOrElseWrappedResourceUrl=c};
tv.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var kYF,Orr,l4F,sk3,Bz3,iru,Tzo,mNo;kYF=_.pp([""]);Orr=U_(["\x00"],["\\0"]);l4F=U_(["\n"],["\\n"]);sk3=U_(["\x00"],["\\u0000"]);Bz3=_.pp([""]);iru=U_(["\x00"],["\\0"]);Tzo=U_(["\n"],["\\n"]);mNo=U_(["\x00"],["\\u0000"]);_.HrF=RhG(function(c){return c(kYF)})||RhG(function(c){return c(Orr)})||RhG(function(c){return c(l4F)})||RhG(function(c){return c(sk3)});
_.AP_=_.EW(Bz3)&&_.EW(iru)&&_.EW(Tzo)&&_.EW(mNo);var VM;_.nq=function(c,f){this.privateDoNotAccessOrElseWrappedUrl=f};
_.nq.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.YC3=$h("about:blank");VM=$h("about:invalid#zClosurez");var xSM=function(c){this.isValid=c},FhH=new xSM(function(c){return/^[^:]*([/?#]|$)/.test(c)}),tMy=Jv("data"),br_=Jv("http"),Kh_=Jv("https"),El3=Jv("ftp"),nlO=Jv("mailto"),$NF=Jv("intent"),Qkv=Jv("vnd.youtube"),ohY=[tMy,
br_,Kh_,nlO,El3,FhH],cDC=FD(function(){return typeof URL==="function"}),SCu=["data:",
"http:","https:","mailto:","ftp:"],dOn=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var WU=function(c){this.privateDoNotAccessOrElseWrappedHtml=c};
WU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var BRN=FD(function(){return new WU(gly?gly.emptyHTML:"")});var Lhj={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"},qlk=function(c,f){var d=Error.call(this,c+" cannot be used with intent "+Lhj[f]);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.type=c;this.intent=f;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.K(qlk,Error);_.UW=function(c){this.privateDoNotAccessOrElseWrappedScript=c};
_.UW.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var CYP=function(c){this.privateDoNotAccessOrElseWrappedAttributePrefix=c};
CYP.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var gwM="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var j8=function(c){this.privateDoNotAccessOrElseWrappedStyleSheet=c};
j8.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var iaz=function(c){var f=_.D5("window.location.href");c==null&&(c='Unknown Error of type "null/undefined"');if(typeof c==="string")return{message:c,name:"Unknown error",lineNumber:"Not available",fileName:f,stack:"Not available"};var d=!1;try{var q=c.lineNumber||c.line||"Not available"}catch(g){q="Not available",d=!0}try{var Z=c.fileName||c.filename||c.sourceURL||_.dz.$googDebugFname||f}catch(g){Z="Not available",d=!0}f=zGH(c);if(!(!d&&c.lineNumber&&c.fileName&&c.stack&&c.message&&c.name)){d=c.message;
if(d==null){if(c.constructor&&c.constructor instanceof Function){if(c.constructor.name)d=c.constructor.name;else if(d=c.constructor,ZD[d])d=ZD[d];else{d=String(d);if(!ZD[d]){var M=/function\s+([^\(]+)/m.exec(d);ZD[d]=M?M[1]:"[Anonymous]"}d=ZD[d]}d='Unknown Error of type "'+d+'"'}else d="Unknown Error of unknown type";typeof c.toString==="function"&&Object.prototype.toString!==c.toString&&(d+=": "+c.toString())}return{message:d,name:c.name||"UnknownError",lineNumber:q,fileName:Z,stack:f||"Not available"}}return{message:c.message,
name:c.name,lineNumber:c.lineNumber,fileName:c.fileName,stack:f}},zGH=function(c,f){f||(f={});
f[JP_(c)]=!0;var d=c.stack||"",q=c.cause;q&&!f[JP_(q)]&&(d+="\nCaused by: ",q.stack&&q.stack.indexOf(q.toString())==0||(d+=typeof q==="string"?q:q.message+"\n"),d+=zGH(q,f));c=c.errors;if(Array.isArray(c)){q=1;var Z;for(Z=0;Z<c.length&&!(q>4);Z++)f[JP_(c[Z])]||(d+="\nInner error "+q++ +": ",c[Z].stack&&c[Z].stack.indexOf(c[Z].toString())==0||(d+=typeof c[Z]==="string"?c[Z]:c[Z].message+"\n"),d+=zGH(c[Z],f));Z<c.length&&(d+="\n... "+(c.length-Z)+" more inner errors")}return d},JP_=function(c){var f=
"";
typeof c.toString==="function"&&(f=""+c);return f+c.stack},ZD={};var a4F,fD,Tx,XN3,uky,VMr,Wu,es,hG3;a4F=function(c,f){for(var d=c.split("%s"),q="",Z=Array.prototype.slice.call(arguments,1);Z.length&&d.length>1;)q+=d.shift()+Z.shift();return q+d.join("%s")};
_.ND=function(c){return encodeURIComponent(String(c))};
fD=function(c){return decodeURIComponent(c.replace(/\+/g," "))};
Tx=function(c){kMG.test(c)&&(c.indexOf("&")!=-1&&(c=c.replace(qH4,"&amp;")),c.indexOf("<")!=-1&&(c=c.replace(Z4e,"&lt;")),c.indexOf(">")!=-1&&(c=c.replace(MGh,"&gt;")),c.indexOf('"')!=-1&&(c=c.replace(rnC,"&quot;")),c.indexOf("'")!=-1&&(c=c.replace(CLN,"&#39;")),c.indexOf("\x00")!=-1&&(c=c.replace(gml,"&#0;")));return c};
XN3=function(c){var f={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var d=_.dz.document.createElement("div");return c.replace(VMr,function(q,Z){var M=f[q];if(M)return M;Z.charAt(0)=="#"&&(Z=Number("0"+Z.slice(1)),isNaN(Z)||(M=String.fromCharCode(Z)));M||(_.G8(d,DJ(q+" ")),M=d.firstChild.nodeValue.slice(0,-1));return f[q]=M})};
uky=function(c){return c.replace(/&([^;]+);/g,function(f,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return d.charAt(0)!="#"||(d=Number("0"+d.slice(1)),isNaN(d))?f:String.fromCharCode(d)}})};
VMr=/&([^;\s<&]+);?/g;_.von=function(c){return String(c).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.vlo=String.prototype.repeat?function(c,f){return c.repeat(f)}:function(c,f){return Array(f+1).join(c)};
_.M0=function(c,f){if(!Number.isFinite(c))return String(c);c=String(c);var d=c.indexOf(".");d===-1&&(d=c.length);var q=c[0]==="-"?"-":"";q&&(c=c.substring(1));return q+(0,_.vlo)("0",Math.max(0,f-d))+c};
Wu=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.M6()).toString(36)};
es=function(c){for(var f=0,d=0;d<c.length;++d)f=31*f+c.charCodeAt(d)>>>0;return f};
_.Yn=function(c){return String(c).replace(/\-([a-z])/g,function(f,d){return d.toUpperCase()})};
_.Ai=function(c){return String(c).replace(/([A-Z])/g,"-$1").toLowerCase()};
hG3=function(c){return c.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(f,d,q){return d+q.toUpperCase()})};var wN_=function(){this.names=new Map};
wN_.prototype.getName=function(c){var f=this.names.get(c);if(f)return f;var d;f=(d=c.description)!=null?d:Wu();this.names.set(c,f);return f};var yPF=function(c){var f=Error.call(this,c?c.length+" errors occurred during unsubscription:\n"+c.map(function(d,q){return q+1+") "+d.toString()}).join("\n  "):"");
this.message=f.message;"stack"in f&&(this.stack=f.stack);this.errors=c;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.K(yPF,Error);var Zd=function(c){this.initialTeardown=c;this.closed=!1;this._teardowns=this._parentage=null};
_.r=Zd.prototype;
_.r.unsubscribe=function(){if(!this.closed){this.closed=!0;var c=this._parentage;if(Array.isArray(c))for(var f=_.C(c),d=f.next();!d.done;d=f.next())d.value.remove(this);else c==null||c.remove(this);f=this.initialTeardown;if(qO(f))try{f()}catch(M){var q=M instanceof yPF?M.errors:[M]}var Z=this._teardowns;if(Z)for(this._teardowns=null,f=_.C(Z),d=f.next();!d.done;d=f.next()){d=d.value;try{qO(d)?d():d.unsubscribe()}catch(M){d=void 0,q=(d=q)!=null?d:[],M instanceof yPF?q=[].concat(_.LT(q),_.LT(M.errors)):
q.push(M)}}if(q)throw new yPF(q);}};
_.r.add=function(c){if(c&&c!==this)if(this.closed)qO(c)?c():c.unsubscribe();else{if(c instanceof Zd){if(c.closed||c._hasParent(this))return;c._addParent(this)}var f;(this._teardowns=(f=this._teardowns)!=null?f:[]).push(c)}};
_.r._hasParent=function(c){var f=this._parentage;return f===c||Array.isArray(f)&&f.includes(c)};
_.r._addParent=function(c){var f=this._parentage;this._parentage=Array.isArray(f)?(f.push(c),f):f?[f,c]:c};
_.r._removeParent=function(c){var f=this._parentage;f===c?this._parentage=null:Array.isArray(f)&&ldY(f,c)};
_.r.remove=function(c){var f=this._teardowns;f&&ldY(f,c);c instanceof Zd&&c._removeParent(this)};
var WhH=new Zd;WhH.closed=!0;Zd.JSC$9011_EMPTY=WhH;var Bdr=function(){setTimeout.apply(null,_.LT(_.hv.apply(0,arguments)))};var r4=function(c){Zd.call(this);this.JSC$9016_isStopped=!1;this.destination=c instanceof r4?c:new Co(!c||qO(c)?{next:c!=null?c:void 0}:c);sZe(c)&&c.add(this)};
_.K(r4,Zd);r4.JSC$9011_EMPTY=Zd.JSC$9011_EMPTY;r4.create=function(c,f,d){return new g4(c,f,d)};
_.r=r4.prototype;_.r.next=function(c){this.JSC$9016_isStopped||this._next(c)};
_.r.error=function(c){this.JSC$9016_isStopped||(this.JSC$9016_isStopped=!0,this._error(c))};
_.r.complete=function(){this.JSC$9016_isStopped||(this.JSC$9016_isStopped=!0,this._complete())};
_.r.unsubscribe=function(){this.closed||(this.JSC$9016_isStopped=!0,Zd.prototype.unsubscribe.call(this))};
_.r._next=function(c){this.destination.next(c)};
_.r._error=function(c){this.destination.error(c);this.unsubscribe()};
_.r._complete=function(){this.destination.complete();this.unsubscribe()};
var Co=function(c){this.partialObserver=c};
Co.prototype.next=function(c){var f=this.partialObserver;if(f.next)try{f.next(c)}catch(d){rd(d)}};
Co.prototype.error=function(c){var f=this.partialObserver;if(f.error)try{f.error(c)}catch(d){rd(d)}else rd(c)};
Co.prototype.complete=function(){var c=this.partialObserver;if(c.complete)try{c.complete()}catch(f){rd(f)}};
var g4=function(c,f,d){r4.call(this);var q;qO(c)||!c?q={next:c!=null?c:void 0,error:f!=null?f:void 0,complete:d!=null?d:void 0}:q=c;this.destination=new Co(q)};
_.K(g4,r4);g4.JSC$9011_EMPTY=r4.JSC$9011_EMPTY;g4.create=r4.create;var lY=typeof Symbol==="function"&&Symbol.observable||"@@observable";var kw=function(c){c&&(this._subscribe=c)};
_.r=kw.prototype;_.r.lift=function(c){var f=new kw;f.source=this;f.operator=c;return f};
_.r.subscribe=function(c,f,d){c=c&&c instanceof r4||c&&qO(c.next)&&qO(c.error)&&qO(c.complete)&&sZe(c)?c:new g4(c,f,d);f=this.operator;d=this.source;c.add(f?f.call(c,d):d?this._subscribe(c):this._trySubscribe(c));return c};
_.r._trySubscribe=function(c){try{return this._subscribe(c)}catch(f){c.error(f)}};
_.r.forEach=function(c,f){var d=this;f=Tdn(f);return new f(function(q,Z){var M=d.subscribe(function(g){try{c(g)}catch(O){Z(O),M==null||M.unsubscribe()}},Z,q)})};
_.r._subscribe=function(c){var f;return(f=this.source)==null?void 0:f.subscribe(c)};
kw.prototype[lY]=function(){return this};
kw.prototype.pipe=function(){var c=_.hv.apply(0,arguments);return c.length?iTe(c)(this):this};
kw.create=function(c){return new kw(c)};var DNO=function(){var c=Error.call(this,"object unsubscribed");this.message=c.message;"stack"in c&&(this.stack=c.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.K(DNO,Error);var OM=function(){this.observers=[];this.hasError=this.JSC$9032_isStopped=this.closed=!1;this.thrownError=null};
_.K(OM,kw);_.r=OM.prototype;_.r.lift=function(c){var f=new kx(this,this);f.operator=c;return f};
_.r._throwIfClosed=function(){if(this.closed)throw new DNO;};
_.r.next=function(c){this._throwIfClosed();if(!this.JSC$9032_isStopped){var f=this.observers.slice();f=_.C(f);for(var d=f.next();!d.done;d=f.next())d.value.next(c)}};
_.r.error=function(c){this._throwIfClosed();if(!this.JSC$9032_isStopped){this.hasError=this.JSC$9032_isStopped=!0;this.thrownError=c;for(var f=this.observers;f.length;)f.shift().error(c)}};
_.r.complete=function(){this._throwIfClosed();if(!this.JSC$9032_isStopped){this.JSC$9032_isStopped=!0;for(var c=this.observers;c.length;)c.shift().complete()}};
_.r.unsubscribe=function(){this.JSC$9032_isStopped=this.closed=!0;this.observers=null};
_.r._trySubscribe=function(c){this._throwIfClosed();return kw.prototype._trySubscribe.call(this,c)};
_.r._subscribe=function(c){this._throwIfClosed();this._checkFinalizedStatuses(c);return this._innerSubscribe(c)};
_.r._innerSubscribe=function(c){var f=this,d=this.JSC$9032_isStopped,q=this.observers;return this.hasError||d?Zd.JSC$9011_EMPTY:(q.push(c),new Zd(function(){return ldY(f.observers,c)}))};
_.r._checkFinalizedStatuses=function(c){var f=this.thrownError,d=this.JSC$9032_isStopped;this.hasError?c.error(f):d&&c.complete()};
OM.create=function(c,f){return new kx(c,f)};
var kx=function(c,f){OM.call(this);this.destination=c;this.source=f};
_.K(kx,OM);kx.create=OM.create;kx.prototype.next=function(c){var f,d;(f=this.destination)==null||(d=f.next)==null||d.call(f,c)};
kx.prototype.error=function(c){var f,d;(f=this.destination)==null||(d=f.error)==null||d.call(f,c)};
kx.prototype.complete=function(){var c,f;(c=this.destination)==null||(f=c.complete)==null||f.call(c)};
kx.prototype._subscribe=function(c){var f,d;return(d=(f=this.source)==null?void 0:f.subscribe(c))!=null?d:Zd.JSC$9011_EMPTY};var Wv=function(c){OM.call(this);this._value=c};
_.K(Wv,OM);Wv.create=OM.create;Wv.prototype._subscribe=function(c){var f=OM.prototype._subscribe.call(this,c);!f.closed&&c.next(this._value);return f};
Wv.prototype.getValue=function(){var c=this.thrownError,f=this._value;if(this.hasError)throw c;this._throwIfClosed();return f};
Wv.prototype.next=function(c){OM.prototype.next.call(this,this._value=c)};
_.ci.Object.defineProperties(Wv.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Xm=new kw(function(c){return c.complete()});var YlC=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var EwY=function(c){return c&&typeof c.length==="number"&&typeof c!=="function"};var eGr={now:function(){return(eGr.delegate||Date).now()},
delegate:void 0};var xw=function(c,f,d){c=c===void 0?Infinity:c;f=f===void 0?Infinity:f;d=d===void 0?eGr:d;OM.call(this);this.bufferSize=c;this.windowTime=f;this.timestampProvider=d;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=f===Infinity;this.bufferSize=Math.max(1,c);this.windowTime=Math.max(1,f)};
_.K(xw,OM);xw.create=OM.create;xw.prototype.next=function(c){var f=this.buffer,d=this.infiniteTimeWindow,q=this.timestampProvider,Z=this.windowTime;this.JSC$9032_isStopped||(f.push(c),!d&&f.push(q.now()+Z));Nzo(this);OM.prototype.next.call(this,c)};
xw.prototype._subscribe=function(c){this._throwIfClosed();Nzo(this);for(var f=this._innerSubscribe(c),d=this.infiniteTimeWindow,q=this.buffer.slice(),Z=0;Z<q.length&&!c.closed;Z+=d?1:2)c.next(q[Z]);this._checkFinalizedStatuses(c);return f};
var Nzo=function(c){var f=c.bufferSize,d=c.timestampProvider,q=c.buffer;c=c.infiniteTimeWindow;var Z=(c?1:2)*f;f<Infinity&&Z<q.length&&q.splice(0,q.length-Z);if(!c){f=d.now();d=0;for(c=1;c<q.length&&q[c]<=f;c+=2)d=c;d&&q.splice(0,d+1)}};var Pe_=function(c,f){f=f===void 0?I4T:f;this.schedulerActionCtor=c;this.now=f};
Pe_.prototype.schedule=function(c,f,d){f=f===void 0?0:f;return(new this.schedulerActionCtor(this,c)).schedule(d,f)};
var I4T=eGr.now;var mzY=function(){var c=Error.call(this,"no elements in sequence");this.message=c.message;"stack"in c&&(this.stack=c.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.K(mzY,Error);var $w=function(c,f,d,q,Z){r4.call(this,c);this.onUnsubscribe=Z;f&&(this._next=function(M){try{f(M)}catch(g){this.destination.error(g)}});
d&&(this._error=function(M){try{d(M)}catch(g){this.destination.error(g)}this.unsubscribe()});
q&&(this._complete=function(){try{q()}catch(M){this.destination.error(M)}this.unsubscribe()})};
_.K($w,r4);$w.JSC$9011_EMPTY=r4.JSC$9011_EMPTY;$w.create=r4.create;$w.prototype.unsubscribe=function(){var c;this.closed||(c=this.onUnsubscribe)!=null&&c.call(this);r4.prototype.unsubscribe.call(this)};var Ul=function(c,f){this.source=c;this.subjectFactory=f;this._subject=null;this._refCount=0;this._connection=null};
_.K(Ul,kw);Ul.create=kw.create;Ul.prototype._subscribe=function(c){return RGu(this).subscribe(c)};
var RGu=function(c){var f=c._subject;if(!f||f.JSC$9032_isStopped)c._subject=c.subjectFactory();return c._subject};
Ul.prototype._teardown=function(){this._refCount=0;var c=this._connection;this._subject=this._connection=null;c==null||c.unsubscribe()};
Ul.prototype.connect=function(){var c=this,f=this._connection;if(!f){f=this._connection=new Zd;var d=RGu(this);f.add(this.source.subscribe(new $w(d,void 0,function(q){c._teardown();d.error(q)},function(){c._teardown();
d.complete()},function(){return c._teardown()})));
f.closed&&(this._connection=null,f=Zd.JSC$9011_EMPTY)}return f};var vwG=Array.isArray;var wkr=Array.isArray,UNy=Object,yDr=UNy.getPrototypeOf,W04=UNy.prototype,DON=UNy.keys;var JD=function(c,f,d){r4.call(this,c);this._next=f;this.shouldComplete=d};
_.K(JD,r4);JD.JSC$9011_EMPTY=r4.JSC$9011_EMPTY;JD.create=r4.create;JD.prototype._complete=function(){this.shouldComplete()?r4.prototype._complete.call(this):this.unsubscribe()};var own=["addListener","removeListener"],xOP=["addEventListener","removeEventListener"],cTl=["on","off"];var O5=function(){Zd.call(this)};
_.K(O5,Zd);O5.JSC$9011_EMPTY=Zd.JSC$9011_EMPTY;O5.prototype.schedule=function(){return this};var pNj=function(c,f){return setInterval.apply(null,[c,f].concat(_.LT(_.hv.apply(2,arguments))))};var s5=function(c,f){Zd.call(this);this.scheduler=c;this.work=f;this.pending=!1};
_.K(s5,O5);s5.JSC$9011_EMPTY=O5.JSC$9011_EMPTY;s5.prototype.schedule=function(c,f){f=f===void 0?0:f;if(this.closed)return this;this.state=c;c=this.id;var d=this.scheduler;c!=null&&(this.id=xNj(this,c,f));this.pending=!0;this.delay=f;this.id=this.id||this.requestAsyncId(d,this.id,f);return this};
s5.prototype.requestAsyncId=function(c,f,d){d=d===void 0?0:d;return pNj(c.flush.bind(c,this),d)};
var xNj=function(c,f,d){d=d===void 0?0:d;if(d!=null&&c.delay===d&&c.pending===!1)return f;clearInterval(f)};
s5.prototype.execute=function(c,f){if(this.closed)return Error("ha");this.pending=!1;if(c=this._execute(c,f))return c;this.pending===!1&&this.id!=null&&(this.id=xNj(this,this.id,null))};
s5.prototype._execute=function(c){var f=!1;try{this.work(c)}catch(q){f=!0;var d=!!q&&q||Error(q)}if(f)return this.unsubscribe(),d};
s5.prototype.unsubscribe=function(){if(!this.closed){var c=this.id,f=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;ldY(f,this);c!=null&&(this.id=xNj(this,c,null));this.delay=null;O5.prototype.unsubscribe.call(this)}};var ol3=function(c,f){f=f===void 0?I4T:f;Pe_.call(this,c,f);this.actions=[];this.active=!1;this.scheduled=void 0};
_.K(ol3,Pe_);ol3.prototype.flush=function(c){var f=this.actions;if(this.active)f.push(c);else{var d;this.active=!0;do if(d=c.execute(c.state,c.delay))break;while(c=f.shift());this.active=!1;if(d){for(;c=f.shift();)c.unsubscribe();throw d;}}};var QT=new kw(MO);var fgN=Array.isArray;var B1=function(c,f){s5.call(this,c,f);this.scheduler=c;this.work=f};
_.K(B1,s5);B1.JSC$9011_EMPTY=s5.JSC$9011_EMPTY;B1.prototype.schedule=function(c,f){f=f===void 0?0:f;if(f>0)return s5.prototype.schedule.call(this,c,f);this.delay=f;this.state=c;this.scheduler.flush(this);return this};
B1.prototype.execute=function(c,f){return f>0||this.closed?s5.prototype.execute.call(this,c,f):this._execute(c,f)};
B1.prototype.requestAsyncId=function(c,f,d){d=d===void 0?0:d;return d!=null&&d>0||d==null&&this.delay>0?s5.prototype.requestAsyncId.call(this,c,f,d):c.flush(this)};var GYO=function(){ol3.apply(this,arguments)};
_.K(GYO,ol3);var XkY=new GYO(B1);var c3y=function(){this.performanceMonitor=new ZrT;this.queue=new MMo;this.internalSymbol=Symbol();this.debugNames=new wN_};
c3y.prototype.getOnBackgrounded=function(){return QT};
_.ci.Object.defineProperties(c3y.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var i4=function(c,f){f=Error.call(this,f?c+": "+f:String(c));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=c;this.__proto__=i4.prototype;this.name=String(c)};
_.K(i4,Error);var S5=function(c){i4.call(this,1E3,'sfr:"'+c+'"');this.measurementStrategyFailureReason=c;this.__proto__=S5.prototype};
_.K(S5,i4);var LG=function(){i4.call(this,1003);this.__proto__=LG.prototype};
_.K(LG,i4);var TU=function(){i4.call(this,1009);this.__proto__=TU.prototype};
_.K(TU,i4);var fO_=function(){i4.call(this,1011);this.__proto__=fO_.prototype};
_.K(fO_,i4);var dHF=function(){i4.call(this,1007);this.__proto__=LG.prototype};
_.K(dHF,i4);var nG=function(c){i4.call(this,1004,String(c));this.inputObservableIndex=c;this.__proto__=nG.prototype};
_.K(nG,i4);var J5Y=function(c){i4.call(this,1010,c);this.__proto__=aUG.prototype};
_.K(J5Y,i4);var aUG=function(c){i4.call(this,1005,c);this.__proto__=aUG.prototype};
_.K(aUG,i4);var jKO=function(c){var f=_.hv.apply(1,arguments),d=this;this.orderedFactories=[];this.orderedFactories.push(c);f.forEach(function(q){d.orderedFactories.push(q)})};
jKO.prototype.isSupported=function(c){return this.orderedFactories.some(function(f){return f.isSupported(c)})};
jKO.prototype.makeBeacon=function(c,f){for(var d=0;d<this.orderedFactories.length;d++)if(this.orderedFactories[d].isSupported(f))return this.orderedFactories[d].makeBeacon(c,f);throw new TU;};var FKk=Symbol("ia"),q3H=Symbol("ja"),yl=function(c,f){this.value=c;this.timeline=f},hD=function(c,f){if(f.timeline!==c.timeline)throw new dHF;
return c.value-f.value};
_.r=yl.prototype;_.r.equals=function(c){return hD(this,c)===0};
_.r.maximum=function(c){if(c.timeline!==this.timeline)throw new dHF;return this.value>=c.value?this:c};
_.r.round=function(){return new yl(Math.round(this.value),this.timeline)};
_.r.add=function(c){return new yl(this.value+c,this.timeline)};
_.r.toString=function(){return String(this.value)};var mb=function(c,f){this.context=c;this.JSC$9138_pinger=f};
mb.prototype.isSupported=function(c){return this.JSC$9138_pinger.isSupported(c)};
mb.prototype.makeBeacon=function(c,f){if(!this.isSupported(f))throw new TU;return new H1(this.context,this.JSC$9138_pinger,f!=null?f:void 0,c)};
var H1=function(c,f,d,q){var Z=this;this.JSC$9144_pinger=f;this.properties=d;this.url=q;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var M;this.method=(M=d==null?void 0:d.beaconMethod)!=null?M:"GET";this.backgroundedSubscription=c.getOnBackgrounded().subscribe(function(){Z.sendNow()})};
H1.prototype.deactivate=function(){this.internalIsPending=!1};
H1.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9144_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var c,f;this.JSC$9144_pinger.pingWithHeadersAndBody((c=this.properties)!=null?c:{},this.customHeaders,(f=this.body)!=null?f:"",this.url)}else this.JSC$9144_pinger.ping(this.url);this.internalIsPending=!1}catch(d){}else this.internalIsPending=!1};
H1.prototype.setHeader=function(c,f){this.customHeaders.set(c,f)};
_.ci.Object.defineProperties(H1.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var MuK=function(){for(var c=_.C(_.hv.apply(0,arguments)),f=c.next();!f.done;f=c.next())if(f=f.value,f.available()){this.timeProvider=f;return}this.timeProvider=new Zjy};
_.r=MuK.prototype;_.r.available=function(){return this.timeProvider.available()};
_.r.now=function(){return this.timeProvider.now()};
_.r.setTimeout=function(c,f){return this.timeProvider.setTimeout(c,f)};
_.r.clearTimeout=function(c){this.timeProvider.clearTimeout(c)};
_.r.interval=function(c,f){var d=this.intervalObservable(c).subscribe(f);return function(){return void d.unsubscribe()}};
_.r.intervalObservable=function(c){return this.timeProvider.intervalObservable(c)};
_.ci.Object.defineProperties(MuK.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Zjy=function(){this.timeline=Symbol()};
_.r=Zjy.prototype;_.r.available=function(){return!1};
_.r.now=function(){return new yl(0,this.timeline)};
_.r.setTimeout=function(){return 0};
_.r.clearTimeout=function(){};
_.r.interval=function(){return function(){}};
_.r.intervalObservable=function(){return QT};var Aq=function(c,f){this.intrinsicFunctionNamespace=c;this.performanceMonitor=f};
_.r=Aq.prototype;_.r.setTimeout=function(c,f){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,c),f)};
_.r.clearTimeout=function(c){this.intrinsicFunctionNamespace.clearTimeout(c)};
_.r.interval=function(c,f){var d=this.intervalObservable(c).subscribe(f);return function(){return void d.unsubscribe()}};
_.r.intervalObservable=function(c){var f=this;return new kw(function(d){var q=0,Z=f.intrinsicFunctionNamespace.setInterval(function(){d.next(q++)},c);
return function(){f.intrinsicFunctionNamespace.clearInterval(Z)}})};
_.r.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var r3H=function(c,f){Aq.call(this,c,f);this.timeline=q3H};
_.K(r3H,Aq);r3H.prototype.now=function(){return new yl(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
r3H.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Aq.prototype.available.call(this)};var Crv=function(c,f){Aq.call(this,c,f);this.timeline=FKk};
_.K(Crv,Aq);Crv.prototype.now=function(){return new yl(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Crv.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Aq.prototype.available.call(this)};var kv_=function(c){this.context=c;if(g_y===void 0)a:{var f,d,q=(f=c.global)==null?void 0:(d=f.document)==null?void 0:d.createElement("meta");if(q)try{q.httpEquiv="origin-trial";q.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";c.global.document.head.append(q);g_y=q;break a}catch(Z){}g_y=void 0}},
g_y;
kv_.prototype.isSupported=function(c){return OGe(this.context)!==void 0&&!(c==null||!c.endOfSession)&&!Yx(this.context)&&!(c==null?0:c.attributionEnabled)&&!(c==null?0:c.customHeaders)&&!(c==null?0:c.customBody)};
kv_.prototype.makeBeacon=function(c,f){if(!this.isSupported(f))throw new TU;return new FB(this.context,c,f)};
var FB=function(c,f,d){this.context=c;this.properties=d;this.JSC$9171_urlWithoutToken=f;var q;this.beaconMethod=(q=d==null?void 0:d.beaconMethod)!=null?q:"GET";c=OGe(this.context);if(c===void 0)throw Error();this.fetchLater=c;Oj3(this,lO_(this))},Oj3=function(c,f){c.beaconResult&&c.beaconResult.activated||(c.beaconAbort=new AbortController,c.beaconResult=c.fetchLater(f,{method:c.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:c.beaconAbort.signal,activateAfter:96E4}))},lO_=function(c){c=c.JSC$9171_urlWithoutToken;
return(c.slice(-1)[0]==="&"?c:c+"&")+"flapi=1"};
FB.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
FB.prototype.sendNow=function(){};
FB.prototype.setHeader=function(){};
_.ci.Object.defineProperties(FB.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9171_urlWithoutToken},
set:function(c){this.JSC$9171_urlWithoutToken=c;c=lO_(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);Oj3(this,c)}},
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 sK3=function(c){this.context=c};
sK3.prototype.isSupported=function(){return!Yx(this.context)&&!!this.context.global.fetch};
sK3.prototype.ping=function(){var c=this;return uY.apply(null,_.LT(_.hv.apply(0,arguments).map(function(f){return Bk(c.context.global.fetch(f,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(S8(function(d){return d.status===200}))}))).pipe(HGr(function(f){return f}),YMe())};
sK3.prototype.pingWithHeadersAndBody=function(c,f,d){for(var q=_.hv.apply(3,arguments),Z=this,M=new Headers,g=_.C(f.entries()),O=g.next();!O.done;O=g.next()){var l=_.C(O.value);O=l.next().value;l=l.next().value;M.set(O,l)}var m,H=(m=c.keepAlive)!=null?m:!1;uY.apply(null,_.LT(q.map(function(A){return Bk(Z.context.global.fetch(A,Object.assign({},{method:String(c.beaconMethod),cache:"no-cache"},H?{keepalive:!0}:{},{mode:"no-cors",headers:M,body:d}))).pipe(S8(function(Y){return Y.status===200}))}))).pipe(HGr(function(A){return A}),
YMe())};var Boj,xnn;_.tq=function(){};
_.Vn=function(c){return c};
Boj=function(c){var f=f||0;return function(){return c.apply(this,Array.prototype.slice.call(arguments,0,f))}};
_.b4=function(c){var f=!1,d;return function(){f||(d=c(),f=!0);return d}};
_.Ko=function(c,f){var d=0;return function(q){_.dz.clearTimeout(d);var Z=arguments;d=_.dz.setTimeout(function(){c.apply(void 0,Z)},f)}};
xnn=function(c,f){var d=0,q=!1,Z=[],M=function(){d=0;q&&(q=!1,g())},g=function(){d=_.dz.setTimeout(M,f);
var O=Z;Z=[];c.apply(void 0,O)};
return function(O){Z=arguments;d?q=!0:g()}};var To3=function(){return HN&&Yl?Yl.mobile:!ijK()&&(Fk("iPod")||Fk("iPhone")||Fk("Android")||Fk("IEMobile"))},ijK=function(){return HN&&Yl?!Yl.mobile&&(Fk("iPad")||Fk("Android")||Fk("Silk")):Fk("iPad")||Fk("Android")&&!Fk("Mobile")||Fk("Silk")};var mHO;_.zV={};mHO="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.zV.add=function(c,f,d){if(c!==null&&f in c)throw Error("la`"+f);c[f]=d};
_.zV.clear=function(c){for(var f in c)delete c[f]};
_.zV.clone=function(c){var f={},d;for(d in c)f[d]=c[d];return f};
_.zV.contains=function(c,f){return ncn(c,f)};
_.zV.containsKey=function(c,f){return c!==null&&f in c};
_.zV.containsValue=ncn;_.zV.create=SMh;_.zV.createImmutableView=function(c){var f=c;Object.isFrozen&&!Object.isFrozen(c)&&(f=Object.create(c),Object.freeze(f));return f};
_.zV.createSet=LCC;_.zV.equals=function(c,f){for(var d in c)if(!(d in f)||c[d]!==f[d])return!1;for(var q in f)if(!(q in c))return!1;return!0};
_.zV.every=function(c,f,d){for(var q in c)if(!f.call(d,c[q],q,c))return!1;return!0};
_.zV.extend=function(c,f){for(var d,q,Z=1;Z<arguments.length;Z++){q=arguments[Z];for(d in q)c[d]=q[d];for(var M=0;M<mHO.length;M++)d=mHO[M],Object.prototype.hasOwnProperty.call(q,d)&&(c[d]=q[d])}};
_.zV.filter=function(c,f,d){var q={},Z;for(Z in c)f.call(d,c[Z],Z,c)&&(q[Z]=c[Z]);return q};
_.zV.findKey=$zl;_.zV.findValue=function(c,f,d){return(f=$zl(c,f,d))&&c[f]};
_.zV.forEach=function(c,f,d){for(var q in c)f.call(d,c[q],q,c)};
_.zV.get=function(c,f,d){return c!==null&&f in c?c[f]:d};
_.zV.getAllPropertyNames=function(c,f,d){if(!c)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return EcG(c);for(var q={};c&&(c!==Object.prototype||f)&&(c!==Function.prototype||d);){for(var Z=Object.getOwnPropertyNames(c),M=0;M<Z.length;M++)q[Z[M]]=!0;c=Object.getPrototypeOf(c)}return EcG(q)};
_.zV.getAnyKey=function(c){for(var f in c)return f};
_.zV.getAnyValue=function(c){for(var f in c)return c[f]};
_.zV.getCount=function(c){var f=0,d;for(d in c)f++;return f};
_.zV.getKeys=EcG;_.zV.getSuperClass=function(c){return(c=Object.getPrototypeOf(c.prototype))&&c.constructor};
_.zV.getValueByKeys=function(c,f){var d=_.WN(f),q=d?f:arguments;for(d=d?0:1;d<q.length;d++){if(c==null)return;c=c[q[d]]}return c};
_.zV.getValues=function(c){var f=[],d=0,q;for(q in c)f[d++]=c[q];return f};
_.zV.isEmpty=function(c){for(var f in c)return!1;return!0};
_.zV.isImmutableView=function(c){return!!Object.isFrozen&&Object.isFrozen(c)};
_.zV.map=function(c,f,d){var q={},Z;for(Z in c)q[Z]=f.call(d,c[Z],Z,c);return q};
_.zV.remove=function(c,f){var d;(d=f in c)&&delete c[f];return d};
_.zV.set=function(c,f,d){c[f]=d};
_.zV.setIfUndefined=function(c,f,d){return f in c?c[f]:c[f]=d};
_.zV.setWithReturnValueIfNotSet=function(c,f,d){if(f in c)return c[f];d=d();return c[f]=d};
_.zV.some=function(c,f,d){for(var q in c)if(f.call(d,c[q],q,c))return!0;return!1};
_.zV.transpose=function(c){var f={},d;for(d in c)f[c[d]]=d;return f};
_.zV.unsafeClone=Q8e;var E5=function(c,f,d,q,Z){this.allowedElements=c;this.elementPolicies=f;this.allowedGlobalAttributes=d;this.globalAttributePolicies=q;this.globallyAllowedAttributePrefixes=Z},Hj3=function(c,f,d){d=c.elementPolicies.get(d);
return(d==null?0:d.has(f))?d.get(f):c.allowedGlobalAttributes.has(f)?{policyAction:1}:(d=c.globalAttributePolicies.get(f))?d:c.globallyAllowedAttributePrefixes&&[].concat(_.LT(c.globallyAllowedAttributePrefixes)).some(function(q){return f.indexOf(q)===0})?{policyAction:1}:{policyAction:0}};var A3F="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(" "),
Y3K=[["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}]])]],FTj="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(" "),
tuO=[["dir",{policyAction:3,conditions:FD(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:FD(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:FD(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:FD(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],bjo=new E5(new Set(A3F),new Map(Y3K),new Set(FTj),new Map(tuO)),KTH=new E5(new Set(A3F.concat(["BUTTON",
"INPUT"])),new Map(Y3K),new Set(FD(function(){return FTj.concat(["class","id","name"])})),new Map(FD(function(){return tuO.concat([["style",
{policyAction:1}]])})));var E_u,n_F,QKr;E_u=function(c,f,d,q,Z){this.JSC$9231_sanitizerTable=c;this.styleElementSanitizer=f;this.styleAttributeSanitizer=d;this.JSC$9231_resourceUrlPolicy=q;this.JSC$9231_navigationUrlPolicy=Z;this.changes=[]};
_.$Hj=function(c,f){var d=document.implementation.createHTMLDocument("");c=n_F(c,f,d);d=d.body;d.appendChild(c);d=(new XMLSerializer).serializeToString(d);d=d.slice(d.indexOf(">")+1,d.lastIndexOf("</"));return DJ(d)};
n_F=function(c,f,d){f=agl(f,d);f=document.createTreeWalker(f,5,function(O){if(O.nodeType===3)O=1;else if(XvG(O))if(O=V5k(O),O===null)O=2;else{var l=c.JSC$9231_sanitizerTable;O=O!=="FORM"&&(l.allowedElements.has(O)||l.elementPolicies.has(O))?1:2}else O=2;return O});
for(var q=f.nextNode(),Z=d.createDocumentFragment(),M=Z;q!==null;){var g=void 0;if(q.nodeType===3)c.styleElementSanitizer&&M.nodeName==="STYLE"?(q=c.styleElementSanitizer(q.data),g=c.createTextNode(q)):g=c.createTextNode(q.data);else if(XvG(q))g=QKr(c,q,d);else throw Error("Z");M.appendChild(g);if(q=f.firstChild())M=g;else for(;!(q=f.nextSibling())&&(q=f.parentNode());)M=M.parentNode}return Z};
E_u.prototype.createTextNode=function(c){return document.createTextNode(c)};
QKr=function(c,f,d){var q,Z=V5k(f);d=d.createElement(Z);f=f.attributes;for(var M=_.C(f),g=M.next();!g.done;g=M.next()){var O=g.value;g=O.name;O=O.value;var l=Hj3(c.JSC$9231_sanitizerTable,g,Z);a:{if(q=l.conditions){q=_.C(q);for(var m=q.next();!m.done;m=q.next()){var H=_.C(m.value);m=H.next().value;H=H.next().value;var A=void 0;if((m=(A=f.getNamedItem(m))==null?void 0:A.value)&&!H.has(m)){q=!1;break a}}}q=!0}if(q)switch(l.policyAction){case 1:qz(d,g,O);break;case 2:throw Error();case 3:qz(d,g,O.toLowerCase());
break;case 4:c.styleAttributeSanitizer?(O=c.styleAttributeSanitizer(O),qz(d,g,O)):qz(d,g,O);break;case 5:c.JSC$9231_resourceUrlPolicy?(l={type:2,attributeName:g,elementName:Z},O=JTe(O),(O=c.JSC$9231_resourceUrlPolicy(O,l))&&qz(d,g,O.toString())):qz(d,g,O);break;case 6:if(c.JSC$9231_resourceUrlPolicy){l={type:2,attributeName:g,elementName:Z};q=[];O=_.C(O.split(","));for(m=O.next();!m.done;m=O.next())H=_.C(m.value.trim().split(/\s+/,2)),m=H.next().value,H=H.next().value,q.push({url:m,descriptor:H});
O={parts:[]};q=_.C(q);for(m=q.next();!m.done;m=q.next())m=m.value,H=JTe(m.url),(H=c.JSC$9231_resourceUrlPolicy(H,l))&&O.parts.push({url:H.toString(),descriptor:m.descriptor});qz(d,g,u1z(O))}else qz(d,g,O);break;case 7:l=O;if(c.JSC$9231_navigationUrlPolicy){l={type:2,attributeName:g,elementName:Z};O=JTe(O);O=c.JSC$9231_navigationUrlPolicy(O,l);if(O===null)break;l=O.toString()}O=l;l=_.fdY(O);l=l!==void 0&&SCu.indexOf(l.toLowerCase())!==-1?O:"about:invalid#zClosurez";qz(d,g,l)}}return d};
_.S3O=FD(function(){return new E_u(bjo)});
_.LTv=FD(function(){return new E_u(KTH)});var z_j=function(){this.calledBuild=!1;this.JSC$9243_sanitizerTable=bjo},J33=function(){z_j.apply(this,arguments)};
_.K(J33,z_j);J33.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new E_u(this.JSC$9243_sanitizerTable,void 0,void 0,this.JSC$9243_resourceUrlPolicy,this.JSC$9243_navigationUrlPolicy)};var aOO=/[^#]*/;var XH3=function(c){var f=Vuv;if(f)for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&c(f[d],d,f)},uyH=function(){var c=[];
XH3(function(f){c.push(f)});
return c},Vuv={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"},v_O=_.b4(function(){return uyH()}),wHK=function(){var c=h_r("IFRAME"),
f={};
_.Iw(v_O(),function(d){c.sandbox&&c.sandbox.supports&&c.sandbox.supports(d)&&(f[d]=!0)});
return f},h_r=function(c,f){f=f===void 0?document:f;
return f.createElement(String(c).toLowerCase())};var no;_.uk=function(c,f,d){return Math.min(Math.max(c,f),d)};
no=function(c,f,d){return c+d*(f-c)};_.a8=function(c,f){this.x=c!==void 0?c:0;this.y=f!==void 0?f:0};
_.r=_.a8.prototype;_.r.clone=function(){return new _.a8(this.x,this.y)};
_.r.equals=function(c){return c instanceof _.a8&&(this==c?!0:this&&c?this.x==c.x&&this.y==c.y:!1)};
_.r.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.r.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.r.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.r.translate=function(c,f){c instanceof _.a8?(this.x+=c.x,this.y+=c.y):(this.x+=Number(c),typeof f==="number"&&(this.y+=f));return this};
_.r.scale=function(c,f){this.x*=c;this.y*=typeof f==="number"?f:c;return this};_.AT=function(c,f){this.width=c;this.height=f};
_.r=_.AT.prototype;_.r.clone=function(){return new _.AT(this.width,this.height)};
_.r.area=function(){return this.width*this.height};
_.r.aspectRatio=function(){return this.width/this.height};
_.r.isEmpty=function(){return!this.area()};
_.r.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.r.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.r.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.r.scale=function(c,f){this.width*=c;this.height*=typeof f==="number"?f:c;return this};var yO=function(c,f){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=c===Hae&&f||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=y3o};
yO.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var WTy=function(c){return c instanceof yO&&c.constructor===yO&&c.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===y3o?c.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},y3o={},Hae={};
new yO(Hae,"");var tT,FE,Qv,DHj,IO3,NoK,VT,R__,pHo,UH_,Jq,xH_,qr3,jGH,dQH,Z33,MFr,rH3,CC_,vpn,gS3,O3_,lp_,kCr,$x;tT=function(c){return c?new $x(_.X1(c)):GbP||(GbP=new $x)};
_.kv=function(c,f){return typeof f==="string"?c.getElementById(f):f};
FE=function(c,f){return(f||document).getElementsByTagName(String(c))};
_.e_3=function(c){return DHj("yt-formatted-string","paper-input-input",c)};
Qv=function(c,f,d,q){c=q||c;return(f=f&&f!="*"?String(f).toUpperCase():"")||d?c.querySelectorAll(f+(d?"."+d:"")):c.getElementsByTagName("*")};
DHj=function(c,f,d){var q=document,Z=c&&c!="*"?String(c).toUpperCase():"";return Z||f?(d||q).querySelector(Z+(f?"."+f:"")):Qv(q,c,f,d)[0]||null};
IO3=function(c,f){_.zV.forEach(f,function(d,q){q=="style"?c.style.cssText=d:q=="class"?c.className=d:q=="for"?c.htmlFor=d:NoK.hasOwnProperty(q)?c.setAttribute(NoK[q],d):_.Z4(q,"aria-")||_.Z4(q,"data-")?c.setAttribute(q,d):c[q]=d})};
NoK={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"};_.Yc=function(c){c=(c||window).document;c=c.compatMode=="CSS1Compat"?c.documentElement:c.body;return new _.AT(c.clientWidth,c.clientHeight)};
_.Pr3=function(c){var f=_.Sj(c);c=c.defaultView;return new _.a8(c.pageXOffset||f.scrollLeft,c.pageYOffset||f.scrollTop)};
_.Sj=function(c){return c.scrollingElement?c.scrollingElement:_.sJ||c.compatMode!="CSS1Compat"?c.body||c.documentElement:c.documentElement};
VT=function(c){return c?c.defaultView:window};
_.Lo=function(c,f,d){return R__(document,arguments)};
R__=function(c,f){var d=f[1],q=UH_(c,String(f[0]));d&&(typeof d==="string"?q.className=d:Array.isArray(d)?q.className=d.join(" "):IO3(q,d));f.length>2&&pHo(c,q,f,2);return q};
pHo=function(c,f,d,q){function Z(O){O&&f.appendChild(typeof O==="string"?c.createTextNode(O):O)}
for(;q<d.length;q++){var M=d[q];if(!_.WN(M)||_.Ik(M)&&M.nodeType>0)Z(M);else{a:{if(M&&typeof M.length=="number"){if(_.Ik(M)){var g=typeof M.item=="function"||typeof M.item=="string";break a}if(typeof M==="function"){g=typeof M.item=="function";break a}}g=!1}_.Iw(g?_.yn(M):M,Z)}}};
_.A5=function(c){return UH_(document,c)};
UH_=function(c,f){f=String(f);c.contentType==="application/xhtml+xml"&&(f=f.toLowerCase());return c.createElement(f)};
_.zU=function(){return document.createTextNode("\n")};
Jq=function(c){if(c.nodeType!=1)return!1;switch(c.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};
xH_=function(c,f){pHo(_.X1(c),c,arguments,1)};
_.a_=function(c){for(var f;f=c.firstChild;)c.removeChild(f)};
_.Vv=function(c,f){f.parentNode&&f.parentNode.insertBefore(c,f)};
_.XB=function(c,f){f.parentNode&&f.parentNode.insertBefore(c,f.nextSibling)};
_.Y6=function(c){return c&&c.parentNode?c.parentNode.removeChild(c):null};
_.o_y=function(c,f){var d=f.parentNode;d&&d.replaceChild(c,f)};
_.Gvu=function(c){var f,d=c.parentNode;if(d&&d.nodeType!=11)if(c.removeNode)c.removeNode(!1);else{for(;f=c.firstChild;)d.insertBefore(f,c);_.Y6(c)}};
_.u4=function(c){return c.children!=void 0?c.children:Array.prototype.filter.call(c.childNodes,function(f){return f.nodeType==1})};
_.fp3=function(c){return c.nextElementSibling!==void 0?c.nextElementSibling:_.cHF(c.nextSibling,!0)};
_.cHF=function(c,f){for(;c&&c.nodeType!=1;)c=f?c.nextSibling:c.previousSibling;return c};
_.Gr=function(c){return _.Ik(c)&&c.nodeType==1};
_.wb=function(c,f){if(!c||!f)return!1;if(c.contains&&f.nodeType==1)return c==f||c.contains(f);if(typeof c.compareDocumentPosition!="undefined")return c==f||!!(c.compareDocumentPosition(f)&16);for(;f&&c!=f;)f=f.parentNode;return f==c};
qr3=function(c,f){if(c==f)return 0;if(c.compareDocumentPosition)return c.compareDocumentPosition(f)&2?1:-1;if("sourceIndex"in c||c.parentNode&&"sourceIndex"in c.parentNode){var d=c.nodeType==1,q=f.nodeType==1;if(d&&q)return c.sourceIndex-f.sourceIndex;var Z=c.parentNode,M=f.parentNode;return Z==M?dQH(c,f):!d&&_.wb(Z,f)?-1*jGH(c,f):!q&&_.wb(M,c)?jGH(f,c):(d?c.sourceIndex:Z.sourceIndex)-(q?f.sourceIndex:M.sourceIndex)}q=_.X1(c);d=q.createRange();d.selectNode(c);d.collapse(!0);c=q.createRange();c.selectNode(f);
c.collapse(!0);return d.compareBoundaryPoints(_.dz.Range.START_TO_END,c)};
jGH=function(c,f){var d=c.parentNode;if(d==f)return-1;for(;f.parentNode!=d;)f=f.parentNode;return dQH(f,c)};
dQH=function(c,f){for(;f=f.previousSibling;)if(f==c)return-1;return 1};
Z33=function(c){var f,d=arguments.length;if(!d)return null;if(d==1)return arguments[0];var q=[],Z=Infinity;for(f=0;f<d;f++){for(var M=[],g=arguments[f];g;)M.unshift(g),g=g.parentNode;q.push(M);Z=Math.min(Z,M.length)}M=null;for(f=0;f<Z;f++){g=q[0][f];for(var O=1;O<d;O++)if(g!=q[O][f])return M;M=g}return M};
_.X1=function(c){return c.nodeType==9?c:c.ownerDocument||c.document};
MFr=function(c){return c.contentDocument||c.contentWindow.document};
_.v1=function(c,f){if("textContent"in c)c.textContent=f;else if(c.nodeType==3)c.data=String(f);else if(c.firstChild&&c.firstChild.nodeType==3){for(;c.lastChild!=c.firstChild;)c.removeChild(c.lastChild);c.firstChild.data=String(f)}else _.a_(c),c.appendChild(_.X1(c).createTextNode(String(f)))};
rH3={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};CC_={IMG:" ",BR:"\n"};vpn=function(c){var f;c.tagName=="A"&&c.hasAttribute("href")||c.tagName=="INPUT"||c.tagName=="TEXTAREA"||c.tagName=="SELECT"||c.tagName=="BUTTON"?f=!c.disabled&&(!c.hasAttribute("tabindex")||gS3(c)):f=c.hasAttribute("tabindex")&&gS3(c);return f};
gS3=function(c){c=c.tabIndex;return typeof c==="number"&&c>=0&&c<32768};
O3_=function(c){var f=[];kCr(c,f,!0);c=f.join("");c=c.replace(/ \xAD /g," ").replace(/\xAD/g,"");c=c.replace(/\u200B/g,"");c=c.replace(/ +/g," ");c!=" "&&(c=c.replace(/^\s*/,""));return c};
lp_=function(c){var f=[];kCr(c,f,!1);return f.join("")};
kCr=function(c,f,d){if(!(c.nodeName in rH3))if(c.nodeType==3)d?f.push(String(c.nodeValue).replace(/(\r\n|\r|\n)/g,"")):f.push(c.nodeValue);else if(c.nodeName in CC_)f.push(CC_[c.nodeName]);else for(c=c.firstChild;c;)kCr(c,f,d),c=c.nextSibling};
_.sG3=function(c,f,d){if(!f&&!d)return null;var q=f?String(f).toUpperCase():null;return _.vv(c,function(Z){return(!q||Z.nodeName==q)&&(!d||typeof Z.className==="string"&&_.hP(Z.className.split(/\s+/),d))},!0)};
_.vv=function(c,f,d){c&&!d&&(c=c.parentNode);for(d=0;c;){if(f(c))return c;c=c.parentNode;d++}return null};
$x=function(c){this.JSC$9268_document_=c||_.dz.document||document};
_.r=$x.prototype;_.r.getElement=function(c){return _.kv(this.JSC$9268_document_,c)};
_.r.$=$x.prototype.getElement;_.r.getElementsByTagName=function(c,f){return(f||this.JSC$9268_document_).getElementsByTagName(String(c))};
_.r.getElementsByTagNameAndClass=function(c,f,d){return Qv(this.JSC$9268_document_,c,f,d)};
_.r.$$=$x.prototype.getElementsByTagNameAndClass;_.r.setProperties=IO3;_.r.JSC$9270_createDom=function(c,f,d){return R__(this.JSC$9268_document_,arguments)};
_.r.createElement=function(c){return UH_(this.JSC$9268_document_,c)};
_.r.createTextNode=function(c){return this.JSC$9268_document_.createTextNode(String(c))};
_.r.getWindow=function(){return this.JSC$9268_document_.defaultView};
var F1=function(c){return _.Pr3(c.JSC$9268_document_)};
_.r=$x.prototype;_.r.appendChild=function(c,f){c.appendChild(f)};
_.r.append=xH_;_.r.canHaveChildren=Jq;_.r.removeNode=_.Y6;_.r.getChildren=_.u4;_.r.contains=_.wb;_.r=kc.prototype;_.r.getWidth=function(){return this.right-this.left};
_.r.getHeight=function(){return this.bottom-this.top};
_.r.clone=function(){return new kc(this.top,this.right,this.bottom,this.left)};
_.r.contains=function(c){return this&&c?c instanceof kc?c.left>=this.left&&c.right<=this.right&&c.top>=this.top&&c.bottom<=this.bottom:c.x>=this.left&&c.x<=this.right&&c.y>=this.top&&c.y<=this.bottom:!1};
_.r.expand=function(c,f,d,q){_.Ik(c)?(this.top-=c.top,this.right+=c.right,this.bottom+=c.bottom,this.left-=c.left):(this.top-=c,this.right+=Number(f),this.bottom+=Number(d),this.left-=Number(q));return this};
_.r.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};
_.r.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};
_.r.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};
_.r.translate=function(c,f){c instanceof _.a8?(this.left+=c.x,this.right+=c.x,this.top+=c.y,this.bottom+=c.y):(this.left+=c,this.right+=c,typeof f==="number"&&(this.top+=f,this.bottom+=f));return this};
_.r.scale=function(c,f){f=typeof f==="number"?f:c;this.left*=c;this.right*=c;this.top*=f;this.bottom*=f;return this};var hq=function(c,f,d,q){this.left=c;this.top=f;this.width=d;this.height=q};
_.r=hq.prototype;_.r.clone=function(){return new hq(this.left,this.top,this.width,this.height)};
_.r.boundingRect=function(c){var f=Math.max(this.left+this.width,c.left+c.width),d=Math.max(this.top+this.height,c.top+c.height);this.left=Math.min(this.left,c.left);this.top=Math.min(this.top,c.top);this.width=f-this.left;this.height=d-this.top};
_.r.contains=function(c){return c instanceof _.a8?c.x>=this.left&&c.x<=this.left+this.width&&c.y>=this.top&&c.y<=this.top+this.height:this.left<=c.left&&this.left+this.width>=c.left+c.width&&this.top<=c.top&&this.top+this.height>=c.top+c.height};
_.r.distance=function(c){var f=c.x<this.left?this.left-c.x:Math.max(c.x-(this.left+this.width),0);c=c.y<this.top?this.top-c.y:Math.max(c.y-(this.top+this.height),0);return Math.sqrt(f*f+c*c)};
_.r.getSize=function(){return new _.AT(this.width,this.height)};
_.r.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};
_.r.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};
_.r.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};
_.r.translate=function(c,f){c instanceof _.a8?(this.left+=c.x,this.top+=c.y):(this.left+=c,typeof f==="number"&&(this.top+=f));return this};
_.r.scale=function(c,f){f=typeof f==="number"?f:c;this.left*=c;this.width*=c;this.top*=f;this.height*=f;return this};var i3H,W1,gkG,yv,AHT,H3K,Yro,Q_4,Fcv,b3_;_.w4=function(c,f,d){if(typeof f==="string")(f=_.BJj(c,f))&&(c.style[f]=d);else for(var q in f){d=c;var Z=f[q],M=_.BJj(d,q);M&&(d.style[M]=Z)}};
i3H={};_.BJj=function(c,f){var d=i3H[f];if(!d){var q=_.Yn(f);d=q;c.style[q]===void 0&&(q=(_.sJ?"Webkit":_.lf?"Moz":null)+hG3(q),c.style[q]!==void 0&&(d=q));i3H[f]=d}return d};
_.A9=function(c,f){var d=_.X1(c);return d.defaultView&&d.defaultView.getComputedStyle&&(c=d.defaultView.getComputedStyle(c,null))?c[f]||c.getPropertyValue(f)||"":""};
_.h5=function(c,f){return _.A9(c,f)||(c.currentStyle?c.currentStyle[f]:null)||c.style&&c.style[f]};
_.TJv=function(c){return _.h5(c,"position")};
W1=function(c,f,d){if(f instanceof _.a8){var q=f.x;f=f.y}else q=f,f=d;c.style.left=yv(q,!1);c.style.top=yv(f,!1)};
gkG=function(c){try{return c.getBoundingClientRect()}catch(f){return{left:0,top:0,right:0,bottom:0}}};
_.u5=function(c){var f=_.X1(c),d=new _.a8(0,0);if(c==(f?_.X1(f):document).documentElement)return d;c=gkG(c);f=F1(tT(f));d.x=c.left+f.x;d.y=c.top+f.y;return d};
_.mQT=function(c,f,d){if(f instanceof _.AT)d=f.height,f=f.width;else if(d==void 0)throw Error("oa");c.style.width=yv(f,!0);c.style.height=yv(d,!0)};
yv=function(c,f){typeof c=="number"&&(c=(f?Math.round(c):c)+"px");return c};
AHT=function(c){return H3K(c)};
H3K=function(c){var f=Yro;if(_.h5(c,"display")!="none")return f(c);var d=c.style,q=d.display,Z=d.visibility,M=d.position;d.visibility="hidden";d.position="absolute";d.display="inline";c=f(c);d.display=q;d.position=M;d.visibility=Z;return c};
Yro=function(c){var f=c.offsetWidth,d=c.offsetHeight,q=_.sJ&&!f&&!d;return(f===void 0||q)&&c.getBoundingClientRect?(c=gkG(c),new _.AT(c.right-c.left,c.bottom-c.top)):new _.AT(f,d)};
Q_4=function(c){var f=_.u5(c);c=H3K(c);return new hq(f.x,f.y,c.width,c.height)};
Fcv=function(c,f){c=c.style;"opacity"in c?c.opacity=f:"MozOpacity"in c?c.MozOpacity=f:"filter"in c&&(c.filter=f===""?"":"alpha(opacity="+Number(f)*100+")")};
_.IO=function(c,f){c.style.display=f?"":"none"};
_.tFr=function(c){return"rtl"==_.h5(c,"direction")};
b3_=function(c){var f=_.A9(c,"marginLeft"),d=_.A9(c,"marginRight"),q=_.A9(c,"marginTop");c=_.A9(c,"marginBottom");return new kc(parseFloat(q),parseFloat(d),parseFloat(c),parseFloat(f))};
_.Kcy=function(c){var f=_.A9(c,"borderLeftWidth"),d=_.A9(c,"borderRightWidth"),q=_.A9(c,"borderTopWidth");c=_.A9(c,"borderBottomWidth");return new kc(parseFloat(q),parseFloat(d),parseFloat(c),parseFloat(f))};var DD=function(c){this.context=c};
DD.prototype.isSupported=function(c){return(c==null?0:c.attributionEnabled)||(c==null?void 0:c.beaconMethod)==="POST"||(c==null?0:c.customHeaders)||(c==null?0:c.customBody)||(c==null?0:c.keepAlive)?!1:!Yx(this.context)};
DD.prototype.ping=function(){var c=this;return KT(_.hv.apply(0,arguments).map(function(f){try{var d=c.context.global,q=!1;q=q===void 0?!1:q;d.google_image_requests||(d.google_image_requests=[]);var Z=h_r("IMG",d.document);q&&(Z.attributionSrc="");Z.src=f;d.google_image_requests.push(Z);return!0}catch(M){return!1}}).every(function(f){return f}))};
DD.prototype.pingWithHeadersAndBody=function(c,f,d){this.ping.apply(this,_.LT(_.hv.apply(3,arguments)))};var ESF=function(c){this.context=c};
ESF.prototype.isSupported=function(c){return nSo&&!Yx(this.context)&&hRn(this.context)!==void 0&&!(c==null?0:c.attributionEnabled)&&(c==null?void 0:c.beaconMethod)!=="POST"&&!(c==null?0:c.customHeaders)&&!(c==null?0:c.customBody)};
ESF.prototype.makeBeacon=function(c,f){if(!this.isSupported(f))throw new TU;return new ej(this.context,c)};
var nSo=!1,ej=function(c,f){this.context=c;this.JSC$9289_urlWithoutToken=f;c=hRn(this.context);if(c===void 0)throw Error();this.wrappedBeacon=new c($Qr(this),{})},$Qr=function(c){c=c.JSC$9289_urlWithoutToken;
return(c.slice(-1)[0]==="&"?c:c+"&")+"pbapi=1"};
ej.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
ej.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
ej.prototype.setHeader=function(){};
_.ci.Object.defineProperties(ej.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9289_urlWithoutToken},
set:function(c){this.JSC$9289_urlWithoutToken=c;this.wrappedBeacon.setURL($Qr(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(c){if(c!=="GET")throw new TU;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var QGH=function(c){this.context=c};
QGH.prototype.isSupported=function(c){if((c==null?0:c.attributionEnabled)||(c==null?void 0:c.beaconMethod)==="GET"||(c==null?0:c.customHeaders)||(c==null?0:c.customBody)||(c==null?0:c.keepAlive))return!1;var f;return!Yx(this.context)&&((f=this.context.global.navigator)==null?void 0:f.sendBeacon)!==void 0};
QGH.prototype.ping=function(){var c=this;return KT(_.hv.apply(0,arguments).map(function(f){var d;return(d=c.context.global.navigator)==null?void 0:d.sendBeacon(f)}).every(function(f){return f}))};
QGH.prototype.pingWithHeadersAndBody=function(c,f,d){this.ping.apply(this,_.LT(_.hv.apply(3,arguments)))};var mC=function(c){this.value=c},UM=function(c,f){return KT(c.value).pipe(i5(f))},xc=new mC(!1),Ffk=new mC(!0);var hT=function(c){this.value=c;this.releasedSubject=new OM};
hT.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.ci.Object.defineProperties(hT.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9302_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var ocM=["FRAME","IMG","IFRAME"],Ig4=/^[01](px)?$/,xzz=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},pvN=function(){var c=new xzz;
c.crossDomainLoadedDefault=!0;c.pendingImagesBlockLoad=!0;return c};var SrT=function(c,f){var d=Z1n(c);if(d)if(d.onCreativeLoad)d.onCreativeLoad(f);else{var q=f?[f]:[],Z=function(M){for(var g=0;g<q.length;++g)try{q[g](1,M)}catch(O){}q={push:function(O){O(1,M)}}};
d.onCreativeLoad=function(M){q.push(M)};
d.setAttribute("data-creative-load-listener","");d.addEventListener("creativeLoad",function(M){Z(M.detail)});
_.dz.addEventListener("message",function(M){qSC(d,Z,M)})}};var N0=function(c,f){var d=this;this.global=c;this.parentContext=f;this.JSC$9313_onVisibilityChange=this.document?uY(KT(!0),Vl(this.document,"visibilitychange")).pipe(Wk(this.parentContext.performanceMonitor,748),S8(function(){return d.getVisibilityState()}),Pk()):KT("visible");
this.document?Vl(this.document,"DOMContentLoaded").pipe(Wk(this.parentContext.performanceMonitor,739),IZ(1)):KT(eRN("DOMContentLoaded"))},Y6l=function(c){return c.document!==null&&c.document.visibilityState!==void 0};
N0.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
N0.prototype.querySelector=function(c){return this.document?this.document.querySelector(c):null};
N0.prototype.querySelectorAll=function(c){return this.document?_.yn(this.document.querySelectorAll(c)):[]};
N0.prototype.elementFromPoint=function(c,f){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;c=this.document.elementFromPoint(c,f);return c===null?null:new hT(c)};
var g5k=function(c,f,d){d=d===void 0?!1:d;if(f.ref===void 0||!c.document)return KT(f).pipe(Wk(c.parentContext.performanceMonitor,749));var q=new xw(1),Z=function(){q.next(f)};
d||SrT(f.ref,Z);GVN(f.ref,Z);return q.pipe(Wk(c.parentContext.performanceMonitor,749),IZ(1))};
_.ci.Object.defineProperties(N0.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return bGk(this.global,"document")?this.global.document||null:null}}});var MQC=_.pp(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),r5e=_.pp(["./reach_worklet.js"]),CnN=_.pp(["./reach_worklet.js"]),Lcj=_.pp(["./reach_worklet.html"]),z3j=_.pp(["./reach_worklet.js"]),JHo=_.pp(["./reach_worklet.js"]);_.CG(Lcj);_.CG(z3j);_.CG(JHo);var Dg={left:0,top:0,width:0,height:0};var apr,VFT,XDH,uiF,G4,h3F,wDH,yHo,eXN,N0h,e3o,NJ3;apr=function(c,f,d,q,Z,M,g){var O="";c&&(O+=c+":");d&&(O+="//",f&&(O+=f+"@"),O+=d,q&&(O+=":"+q));Z&&(O+=Z);M&&(O+="?"+M);g&&(O+="#"+g);return O};
VFT=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.x5=function(c){return c.match(VFT)};
_.Lp=function(c,f){return c?f?decodeURI(c):decodeURIComponent(c):c};
XDH=function(c){c=_.x5(c)[1]||null;!c&&_.dz.self&&_.dz.self.location&&(c=_.dz.self.location.protocol.slice(0,-1));return c?c.toLowerCase():""};
_.ow=function(c){return _.Lp(_.x5(c)[3]||null,!0)};
_.Bq=function(c){return _.Lp(_.x5(c)[5]||null,!0)};
_.bBe=function(c){var f=c.indexOf("#");return f<0?null:c.slice(f+1)};
uiF=function(c){c=_.x5(c);return apr(c[1],c[2],c[3],c[4])};
_.vSj=function(c){c=_.x5(c);return apr(c[1],null,c[3],c[4])};
_.NT=function(c){c=_.x5(c);return apr(null,null,null,null,c[5],c[6],c[7])};
_.Gc=function(c){var f=c.indexOf("#");return f<0?c:c.slice(0,f)};
G4=function(c,f){c=_.x5(c);f=_.x5(f);return c[3]==f[3]&&c[1]==f[1]&&c[4]==f[4]};
h3F=function(c,f){if(c){c=c.split("&");for(var d=0;d<c.length;d++){var q=c[d].indexOf("="),Z=null;if(q>=0){var M=c[d].substring(0,q);Z=c[d].substring(q+1)}else M=c[d];f(M,Z?fD(Z):"")}}};
wDH=function(c){var f=c.indexOf("#");f<0&&(f=c.length);var d=c.indexOf("?");if(d<0||d>f){d=f;var q=""}else q=c.substring(d+1,f);return[c.slice(0,d),q,c.slice(f)]};
yHo=function(c,f){return f?c?c+"&"+f:f:c};
_.Wco=function(c,f){if(!f)return c;c=wDH(c);c[1]=yHo(c[1],f);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
_.DQ_=function(c,f,d){if(Array.isArray(f))for(var q=0;q<f.length;q++)_.DQ_(c,String(f[q]),d);else f!=null&&d.push(c+(f===""?"":"="+_.ND(f)))};
_.Tf=function(c){var f=[],d;for(d in c)_.DQ_(d,c[d],f);return f.join("&")};
_.p9=function(c,f){f=_.Tf(f);return _.Wco(c,f)};
_.I_=function(c,f,d){d=d!=null?"="+_.ND(d):"";return _.Wco(c,f+d)};
eXN=function(c,f,d,q){for(var Z=d.length;(f=c.indexOf(d,f))>=0&&f<q;){var M=c.charCodeAt(f-1);if(M==38||M==63)if(M=c.charCodeAt(f+Z),!M||M==61||M==38||M==35)return f;f+=Z+1}return-1};
N0h=/#|$/;_.y2=function(c,f){var d=c.search(N0h),q=eXN(c,0,f,d);if(q<0)return null;var Z=c.indexOf("&",q);if(Z<0||Z>d)Z=d;q+=f.length+1;return fD(c.slice(q,Z!==-1?Z:0))};
e3o=/[?&]($|#)/;_.fZ=function(c,f){for(var d=c.search(N0h),q=0,Z,M=[];(Z=eXN(c,q,f,d))>=0;)M.push(c.substring(q,Z)),q=Math.min(c.indexOf("&",Z)+1||d,d);M.push(c.slice(q));return M.join("").replace(e3o,"$1")};
_.Ww=function(c,f,d){return _.I_(_.fZ(c,f),f,d)};
NJ3=function(c){var f=wDH(window.location.href),d=f[1],q=[];d&&d.split("&").forEach(function(Z){var M=Z.indexOf("=");M=M>=0?Z.slice(0,M):Z;c.hasOwnProperty(M)||q.push(Z)});
f[1]=yHo(q.join("&"),_.Tf(c));return f[0]+(f[1]?"?"+f[1]:"")+f[2]};var QOe=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(QOe,_.d8);QOe.prototype.getVersion=function(){return _.aW(this,2)};var $xk=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K($xk,_.d8);var FAC=function(c,f){return _.b5(c,2,f)},n6k=function(c,f){return _.b5(c,3,f)};
$xk.prototype.getModel=function(){return _.aW(this,4)};
var b1Y=function(c,f){return _.b5(c,4,f)},YSY=function(c,f){return _.b5(c,5,f)},E6P=function(c,f){return _.b5(c,9,f)},A5e=function(c,f){return $9(c,10,f)},H1k=function(c,f){return _.C1(c,11,f)},tQP=function(c,f){return _.b5(c,1,f)},KAN=function(c,f){return _.C1(c,7,f)};var TbN="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var pG=function(c,f,d,q){c=c===void 0?window:c;f=f===void 0?null:f;d=d===void 0?new ZrT:d;q=q===void 0?g6M():q;c3y.call(this);var Z=this;this.global=c;this.debugChannel=f;this.performanceMonitor=d;this.onPageHide=pkk(function(){return Vl(Z.global,"pagehide")}).pipe(Wk(this.performanceMonitor,941));
this.onLoad=pkk(function(){return Vl(Z.global,"load")}).pipe(Wk(this.performanceMonitor,738),IZ(1));
this.onResize=pkk(function(){return Vl(Z.global,"resize")}).pipe(Wk(this.performanceMonitor,741));
this.onMessage=pkk(function(){return Vl(Z.global,"message")}).pipe(Wk(this.performanceMonitor,740));
this.document=new N0(this.global,this);this.timeProvider=new MuK(new Crv(this.intrinsicFunctionNamespace,this.performanceMonitor),new r3H(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new jKO(new kv_(this),new ESF(this),new mb(this,new sK3(this)),new mb(this,new QGH(this)),new mb(this,new DD(this)))};
_.K(pG,c3y);var Yx=function(c){var f=c.global;return!!c.global.HTMLFencedFrameElement&&!!f.fence&&typeof f.fence.reportEvent==="function"};
_.r=pG.prototype;_.r.reportFencedFrameEvent=function(c){Yx(this)&&this.global.fence.reportEvent(c)};
_.r.getOnBackgrounded=function(){return this.onPageHide.pipe(Wk(this.performanceMonitor,942),i5(this.queue),S8(function(){}))};
_.r.postMessage=function(c,f,d){d=d===void 0?[]:d;this.global.postMessage(c,f,d)};
_.r.getWidth=function(){return KC4(this.global)?this.global.width:0};
_.r.getHeight=function(){return KC4(this.global)?this.global.height:0};
_.r.isMobile=function(){return ijK()||To3()};
var wk=function(c,f){try{var d=sOG(f,c.global,c.isMobile());return{left:d.left,top:d.top,width:d.getWidth(),height:d.getHeight()}}catch(q){return Dg}};
pG.prototype.validate=function(){var c=this.beaconFactory.isSupported()||Yx(this);return this.global&&this.timeProvider.available()&&c};
var yTl=function(c){return(c=LAN(c.global))?Bk(c):null};
_.ci.Object.defineProperties(pG.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(c){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!KC4(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}}});_.IpK=!_.OJ&&!_.kYn();var tZG=function(c){return c};var KfG=function(c){return c.pipe(vk(function(f){var d=f.endOfSessionReason;var q;return((q=f.viewable)==null?void 0:q.extrapolateToNow().value)||d!=void 0}),IZ(1),e8())};var v6h=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},hWY=function(c){var f=c.sequenceNumber.toString(10).padStart(2,"0");
f=""+c.startTime+f;c.sequenceNumber<99&&c.sequenceNumber++;return f};var AkG=gd(dk(function(c){return c.endOfSessionReason===void 0}),S8(function(c){return Object.assign({},c,{timestamps:$c(c)})}),vk(function(c){var f=c.viewable;
c=c.timestamps;var d;return(d=f==null?void 0:f.extrapolateUsingTimestampMap(c).value)!=null?d:!1}),S8(function(c){var f=c.beaconFactory;
var d=c.timestampedExposureHistory;var q=c.timeOnScreen;var Z=c.binaryContext;c=c.timestamps;if(f===void 0||d===void 0||q===void 0||Z===void 0)return!1;if(q.extrapolateUsingTimestampMap(c).value.every(function(M){return M>=0}))return!0;
d=d.map(function(M){return M.timestamp+":"+M.value}).join(",");
q=wue({bin:Z,tos:q},c);f.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+q+("&eh="+d)).sendNow();return!0}),dk(function(c){return!c}),e8());var WAY=function(c){return{id:c.pingId,mcvt:c.maxConsecutiveViewTime,p:c.creativePosition,asp:c.adSpeedPosition,tm:c.totalMeasurementTime,tu:c.totalUnviewedTime,mtos:c.maxTimeOnScreen,tos:c.timeOnScreen,v:c.binaryVersion,bin:c.binaryContext,avms:c.measurementStrategy,bs:c.browserSize,mc:c.maximumExposure,"if":c.crossDomainIframeState,vu:c.delayedImpressionJsState,app:c.inApp,mse:c.mraidError,mtop:c.mraidSituation,itpl:c.injectedTemplateId,adk:c.adKey,exk:c.awbidKey,rs:c.requestSource,la:c.isLargeAd,
cr:c.isContentRecommendationAd,uach:c.userAgentClientHints,vs:c.viewState,r:c.reasonCode,pay:c.hasCpmavUrl,co:c.clientPingOrderCounter,rst:c.adRenderStartTime,rpt:c.adRenderPeriodTime,isd:c.initialScrollDepth,lsd:c.loadedScrollDepth,context:c.errorContext,msg:c.errorMessage,stack:c.errorStack,name:c.errorName,ec:c.hasElementChanged,sfr:c.strategyFailureReasons,met:c.creativeSearchResult,wmsd:c.webMeasurementStartDiagnostic,pv:c.pageVisible,epv:c.eosPageVisible,pbe:c.inStatefulBeaconExperiment,fle:c.inFetchLaterBeaconExperiment,
vae:c.inViewableAttributionExperiment,spb:c.supportsPendingBeacon,sfl:c.supportsFetchLater,ffslot:c.isFencedFrameSlotTurtlex,reach:c.sharedStorageReachMode,io2:c.v2VisibilityBitVector,rxdbg:c.rxDebugger,omida:c.omidAppId,omidp:c.omidPartner,omidpv:c.omidPartnerVersion,omidor:c.omidOcclusionReasons,omidv:c.omidVersion,omids:c.omidSessionType,omidam:c.omidAccessMode,omidct:c.omidCreativeType,omidia:c.omidInApp,omiddc:c.omidDeviceCategory,omidlat:c.omidLastActivity,omiddit:c.omidDeviceIdleTime,qid:c.errorEscapedQueryId}};var b9l=function(c){var f=[];return c.pipe(S8(function(d){var q=d.beaconFactory,Z=d.fetchBeaconFactory,M=d.timeOnScreen,g=d.timeOnScreenUrlPrefixes,O=d.payloadMapper,l=d.timeOnScreenPingId,m=d.timeOnScreenReason,H=d.urlSerializer,A=d.viewable,Y=d.hasImpressionFired,t=d.inStatefulBeaconExperiment,E=d.supportsPendingBeacon,J=d.supportsFetchLater,X=d.turtlexReportEventData;if(!d.geometryMeasurable||!Y||d.maxTimeOnScreen===void 0||M===void 0||g===void 0||O===void 0||l===void 0||H===void 0||q===void 0)return!1;
if(d.isTurtlex){if(m===void 0)return!1;g=d.reportFencedFrameEvent;if(!g)return!1;g({eventType:"active-view-time-on-screen",eventData:X!=null?X:"",destination:["buyer"]});return!0}if(!(t||J||m))return!1;X=$c(d);var u;A=(u=A==null?void 0:A.extrapolateUsingTimestampMap(X).value)!=null?u:!1;u=H(Object.assign({},d,{pingId:l,viewState:A?4:3,reasonCode:m!=null?m:"u",payloadMapper:O,urlPrefixes:g}),X);if(t){for(;f.length>g.length;)d=void 0,(d=f.shift())==null||d.deactivate();u.forEach(function(p,N){N>=f.length?
f.push(q.makeBeacon(p)):f[N].url=p});
return E&&Z&&m!==void 0?(u.forEach(function(p){Z.makeBeacon(p).sendNow()}),!0):m!==void 0}if(E&&Z&&m!==void 0)return u.forEach(function(p){Z.makeBeacon(p).sendNow()}),!0;
if(J&&Z){for(;f.length>g.length;)E=void 0,(E=f.shift())==null||E.deactivate();var W=H(Object.assign({},d,{pingId:l,viewState:A?4:3,reasonCode:m!=null?m:"u",payloadMapper:O,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),X)[0];u.forEach(function(p,N){N>=f.length?f.push(q.makeBeacon(W,{endOfSession:!0})):f[N].url=W});
return m!==void 0?(u.forEach(function(p){Z.makeBeacon(p).sendNow()}),!0):m!==void 0}return m!==void 0?(u.forEach(function(p){q.makeBeacon(p).sendNow()}),!0):!1}),dk(function(d){return!d}),e8())};var E5M=gd(vk(function(c){return c.immediateUrlPrefixes!==void 0&&c.payloadMapper!==void 0&&c.urlSerializer!==void 0&&c.inferredPingId!==void 0&&c.beaconFactory!==void 0}),vk(function(c){return pun(c)!==null}),RWz(function(c){return c.activeViewUnmeasurableEvent},function(c){return c.emit}),S8(function(c){if(c.isTurtlex){var f=c.reportFencedFrameEvent;
if(f){var d;f({eventType:"active-view-unmeasurable",eventData:(d=c.turtlexReportEventData)!=null?d:"",destination:["buyer"]})}}else{d=void 0;var q=pun(c);if(q==="x"){var Z,M=(Z=c.geometricMeasurementErrors)!=null?Z:c.contextValidationErrors;M&&(f=M.stack,d=M.message)}c.urlSerializer(Object.assign({},c,{urlPrefixes:c.immediateUrlPrefixes,payloadMapper:c.payloadMapper,pingId:c.inferredPingId,viewState:2,reasonCode:q,errorMessage:d,errorStack:f}),$c(c)).forEach(function(g){c.beaconFactory.makeBeacon(g).sendNow()})}}),
IZ(1),e8());var xxn=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var H9k=gd(vk(function(c){return c.payloadMapper!==void 0&&c.immediateUrlPrefixes!==void 0&&c.urlSerializer!==void 0&&c.inferredPingId!==void 0&&c.beaconFactory!==void 0}),S8(function(c){return Object.assign({},c,{timestamps:$c(c)})}),vk(function(c){var f=c.viewable;
var d=c.hasImpressionFired;c=c.timestamps;var q;return!!d&&((q=f==null?void 0:f.extrapolateUsingTimestampMap(c).value)!=null?q:!1)}),RWz(function(c){return c.activeViewViewableEvent},function(c){return c.emit}),S8(function(c){var f=c.beaconFactory,d=c.turtlexReportEventData;
if(c.isTurtlex){var q=c.reportFencedFrameEvent;if(!q)return!1;q({eventType:"active-view-viewable",eventData:d!=null?d:"",destination:["buyer"]});return!0}d=c.urlSerializer(Object.assign({},c,{urlPrefixes:c.immediateUrlPrefixes,payloadMapper:c.payloadMapper,pingId:c.inferredPingId,viewState:4,reasonCode:"v"}),c.timestamps);(q=c.cpmavUrls)&&q.length>0&&c.viewUrlSerializer&&c.viewUrlSerializer(q,c).forEach(function(Z){f.makeBeacon(Z).sendNow()});
(q=c.viewableRelayUrls)&&q.length>0&&c.viewUrlSerializer&&c.viewUrlSerializer(q,c).forEach(function(Z){f.makeBeacon(Z).sendNow()});
d.forEach(function(Z){f.makeBeacon(Z,{attributionEnabled:c.isViewableAttributionEnabled}).sendNow()});
return!0}),dk(function(c){return!c}),e8());var WKC=S8(function(c){return[c.value.topWindowViewportExternalGeometry.width,c.value.topWindowViewportExternalGeometry.height]});var yT=function(c,f){this.callback=c;this.options=f;this.intersectionObserverV2=this.intersectionObserverV1=null},bLh=function(c,f){f?c.intersectionObserverV2||(f=Object.assign({},c.options,{delay:100,
trackVisibility:!0}),c.intersectionObserverV2=new IntersectionObserver(c.callback,f)):c.intersectionObserverV1||(c.intersectionObserverV1=new IntersectionObserver(c.callback,c.options))},PC_=function(c,f){c=f?c.intersectionObserverV2:c.intersectionObserverV1;
if(!c)throw new fO_;return c};
yT.prototype.observe=function(c,f){PC_(this,c).observe(f)};
yT.prototype.unobserve=function(c,f){PC_(this,c).unobserve(f)};
yT.prototype.disconnect=function(c){PC_(this,c).disconnect()};
yT.prototype.takeRecords=function(c){return PC_(this,c).takeRecords()};var OLr={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Dg,topWindowViewportExternalGeometry:Dg,measurementRequests:new OM,elementGeometrySourceName:"ns",elementGeometry:Dg,intersectionGeometry:Dg,viewportLocalAppOffset:{x:0,y:0}};var LKM=e5(gd(S8(function(c){var f;return(f=c.exposureOverride)!=null?f:Ekr(c)}),S8(function(c){return isFinite(c)?c:0}))),vkC=e5(gd(S8(function(c){var f;
return(f=c.exposureOverride)!=null?f:Ekr(c)}),S8(function(c){return isFinite(c)?c:-1})));var P1=function(c,f){this.a=c;this.b=f;if(c.clock.timeline!==f.clock.timeline)throw Error();};
P1.prototype.equivalentTo=function(c){return c instanceof P1?this.a.equivalentTo(c.a)&&this.b.equivalentTo(c.b):!1};
P1.prototype.extrapolateToTime=function(c){var f=this.a.extrapolateToTime(c).value,d=this.b.extrapolateToTime(c).value;return{timestamp:c,value:[f,d]}};
_.ci.Object.defineProperties(P1.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 c=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),f=this.a.lastMeasurement.timestamp.equals(c)?this.a.lastMeasurement.value:this.a.extrapolateToTime(c).value,d=this.b.lastMeasurement.timestamp.equals(c)?this.b.lastMeasurement.value:this.b.extrapolateToTime(c).value;return{timestamp:c,value:[f,d]}}}});var R_=function(c,f){this.input=c;this.mapFunction=f;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
R_.prototype.equivalentTo=function(c){return c instanceof R_?this.input.equivalentTo(c.input)&&this.mapFunction===c.mapFunction:!1};
R_.prototype.extrapolateToTime=function(c){c=this.input.extrapolateToTime(c);return{timestamp:c.timestamp,value:this.mapFunction(c.value)}};
_.ci.Object.defineProperties(R_.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var U5=function(){};
U5.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
U5.prototype.extrapolateUsingTimestampMap=function(c){var f=this.clock.timeline,d,q=(d=c.get(f))!=null?d:this.clock.now();c.set(f,q);return this.extrapolateToTime(q)};
U5.prototype.map=function(c){return new R3v(this,c)};
U5.prototype.joinWith=function(c){return new UQH(this,c)};
var UQH=function(){P1.apply(this,arguments);this.map=U5.prototype.map;this.joinWith=U5.prototype.joinWith;this.extrapolateToNow=U5.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=U5.prototype.extrapolateUsingTimestampMap};
_.K(UQH,P1);var R3v=function(){R_.apply(this,arguments);this.map=U5.prototype.map;this.joinWith=U5.prototype.joinWith;this.extrapolateToNow=U5.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=U5.prototype.extrapolateUsingTimestampMap};
_.K(R3v,R_);var Pv=function(c,f){this.lastMeasurement=f;this.extrapolateToNow=U5.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=U5.prototype.extrapolateUsingTimestampMap;this.map=U5.prototype.map;this.joinWith=U5.prototype.joinWith;this.clock=c};
Pv.prototype.equivalentTo=function(c){return c.active};
Pv.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.ci.Object.defineProperties(Pv.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var yor=S8(function(c){if(c.value.viewportGeometrySourceName==="omid"){if(c.value.elementGeometrySourceName==="nio")return"omio";if(c.value.elementGeometrySourceName==="geo")return"omgeo"}return c.value.elementGeometrySourceName==="geo"||c.value.elementGeometrySourceName==="nio"?c.value.viewportGeometrySourceName:c.value.elementGeometrySourceName});var $az=gd(vk(function(c){return!isNaN(c)}),G5(function(c,f){return isNaN(c)?f:Math.min(c,f)},NaN),Pk());var zEY=e5(gd(S8(function(c){return c.intersectionGeometry.width*c.intersectionGeometry.height/(c.exposedViewportLocalGeometry.width*c.exposedViewportLocalGeometry.height)}),S8(function(c){return isFinite(c)?Math.min(1,c):0})));var wVN=gd(e5(S8(function(c){c=c.exposureOverride?c.elementGeometry.width*c.elementGeometry.height*c.exposureOverride/(c.topWindowViewportExternalGeometry.width*c.topWindowViewportExternalGeometry.height):c.intersectionGeometry.width*c.intersectionGeometry.height/(c.topWindowViewportExternalGeometry.width*c.topWindowViewportExternalGeometry.height);return isFinite(c)?c:0})));var N$C=function(c,f){var d=this;this.timeProvider=c;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=f.pipe(Pk()).subscribe(function(q){PmM(d);d.measurementRequestObserver=q})},REP=function(c,f){PmM(c);
c.lastMeasurementRequest=c.timeProvider.setTimeout(function(){var d;return void((d=c.measurementRequestObserver)==null?void 0:d.next())},f)},PmM=function(c){c.lastMeasurementRequest!==null&&c.timeProvider.clearTimeout(c.lastMeasurementRequest);
c.lastMeasurementRequest=null};
N$C.prototype.dispose=function(){PmM(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var pDF=function(){};var i9e=function(c,f){this.context=c;this.strategies=f};
_.K(i9e,pDF);i9e.prototype.buildGeometrySource=function(c,f){var d=this.strategies.map(function(M){return M.buildGeometrySource(c,f)}),q=GZe(d.map(function(M){return M.geometrySource})),Z=q.capturedErrors.pipe(xQ3());
return{geometrySource:q.chain.pipe(i5(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Z,strategyErrors:q.capturedErrors}].concat(_.LT(d.map(function(M){return M.additionalOutputs}))))}};
var xQ3=function(){return G5(function(c,f){f instanceof S5?c.push(f.measurementStrategyFailureReason):c.push(-1);return c},[])};var mDk=function(c,f){this.context=c;this.poller=f};
_.K(mDk,pDF);mDk.prototype.buildGeometrySource=function(c,f){var d=ckn(dDY(this.context,this.poller),lah(this.context,f.requestSource));return{geometrySource:okl(c.measurableCreative.pipe(d),f.inApp),additionalOutputs:{}}};var Til=function(c,f,d){d=d===void 0?HLC(c,f):d;this.context=c;this.intersectionObserverStrategy=d};
_.K(Til,pDF);Til.prototype.buildGeometrySource=function(c,f){var d=this.intersectionObserverStrategy(f.useV2);return{geometrySource:okl(c.measurableCreative.pipe(d,Aor(this.context)),f.inApp),additionalOutputs:{}}};var oSy=function(c,f,d){var q=q===void 0?Symbol():q;this.element=c;this.immediateUrls=f;this.timeOnScreenUrls=d;this.symbol=q};var eEN=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),rkn=Object.freeze([1,.75,eEN.exposureThreshold,eEN.largeAdExposureThreshold,0]);var ctN=function(c,f){f=f===void 0?36E5:f;var d=d===void 0?!0:d;this.creatives=new OM;this.elementsToUnregister=new OM;this.elementMap=new Map;var q=new pG(window,null);q.beaconFactory=new mb(q,new DD(q));Biz(q,this.creatives,this.elementsToUnregister,c,f,d).subscribe()},j6e=function(c,f,d,q){if(!c.elementMap.has(f)){var Z=new hT(f);
c.elementMap.set(f,Z);c.creatives.next(new oSy(Z,d,q))}},dt4=function(c,f){c.elementsToUnregister.next(f);
var d=c.elementMap.get(f);d!==void 0&&(d.release(),c.elementMap.delete(f))};var sfl=function(c){var f=c.url;c=c.uaDataValues;this.JSC$9418_url_=f;this.uaDataValues_=c;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var d=/[?&]([^&=]+)=([^&]*)/g;c=d.exec(f);)this.urlParamValues_[c[1]]=c[2]},BNY=function(c){c=c.uaDataValues_;
if(!c)return"";var f=o8("uap",c.platform)+o8("uapv",c.platformVersion)+o8("uafv",c.uaFullVersion)+o8("uaa",c.architecture)+o8("uam",c.model)+o8("uab",c.bitness);c.fullVersionList&&(f+="&uafvl="+encodeURIComponent(c.fullVersionList.map(function(d){return encodeURIComponent(d.brand)+";"+encodeURIComponent(d.version)}).join("|")));
c.wow64!=null&&(f+="&uaw="+Number(c.wow64));return f.slice(1)};var GC_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(GC_,_.d8);GC_.prototype.getId=function(){return _.aW(this,1)};var po=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(po,_.d8);po.prototype.getSeconds=function(){return zK(this,1)};
po.prototype.setSeconds=function(c){return _.p3(this,1,MQ(c),"0")};_.vZ=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(_.vZ,_.d8);_.vZ.prototype.getSeconds=function(){return zK(this,1)};
_.vZ.prototype.setSeconds=function(c){return _.p3(this,1,MQ(c),"0")};
_.cvy=function(c){var f=Number(Xv(c,1));c=_.qx(c,2);return new Date(f*1E3+c/1E6)};var xx=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(xx,_.d8);xx.prototype.getUrl=function(){return _.aW(this,1)};
xx.prototype.setUrl=function(c){return _.pO(this,1,c)};
xx.prototype.getHeight=function(){return _.qx(this,2)};
xx.prototype.getWidth=function(){return _.qx(this,3)};var o_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(o_,_.d8);o_.prototype.getAspectRatio=function(){return Jr(this,1)};
o_.prototype.getDuration=function(){return _.TD(this,po,2)};var fJu=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(fJu,_.d8);var dSj=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(dSj,_.d8);var jh_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(jh_,_.d8);var qWu=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(qWu,_.d8);var ZqT=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ZqT,_.d8);var MP3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(MP3,_.d8);var rvy=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(rvy,_.d8);var CXy=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(CXy,_.d8);var ghH=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ghH,_.d8);var GU=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(GU,_.d8);var c2=[2,4,5,6,7];var k8H=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(k8H,_.d8);var QQ=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(QQ,_.d8);_.r=QQ.prototype;_.r.getId=function(){return _.TD(this,GC_,1)};
_.r.getName=function(){return _.aW(this,2)};
_.r.setDescription=function(c){return _.pO(this,3,c)};
_.r.getUrl=function(){return _.aW(this,8)};
_.r.setUrl=function(c){return _.pO(this,8,c)};
var fF=function(c){return _.db(c,xx,10,_.jQ())};
QQ.prototype.getOwner=function(c){var f=_.Dp(this,40,_.TC,3,!0);I4h(f,c);return f[c]};
QQ.prototype.getVersion=function(){return zK(this,45)};
var d7=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(d7,_.d8);_.Oqr=[0,PUP,UiC];_.lJ_=[0,PUP,UiC];var shH=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(shH,_.d8);var jW=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(jW,_.d8);jW.prototype.getStatus=function(){return _.VQ(this,1)};
jW.prototype.removeItem=function(c){return OHC(this,2,c)};var B8H=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(B8H,_.d8);B8H.prototype.getName=function(){return _.aW(this,8)};var qU=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(qU,_.d8);qU.prototype.getCommand=function(){return _.VQ(this,1)};
qU.prototype.getSource=function(){return _.TD(this,B8H,2)};
qU.prototype.setVisible=function(c){return _.zc(this,5,c)};
qU.prototype.removeItem=function(c){return OHC(this,7,c)};var iqj=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(iqj,_.d8);iqj.prototype.getCommand=function(){return _.VQ(this,1)};
iqj.prototype.removeItem=function(c){return OHC(this,4,c)};
var T8y=_.lX(iqj);var ZH=function(c,f,d){d=d===void 0?Error():d;var q=Error.call(this);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=c;f+=":";d instanceof Error?(this.message=f+d.message,this.stack=d.stack||""):(this.message=f+String(d),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(ZH,Error);_.ES=function(){this.JSC$9476_disposed_=this.JSC$9476_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.ES.prototype.JSC$9476_disposed_=!1;_.ES.prototype.isDisposed=function(){return this.JSC$9476_disposed_};
_.ES.prototype.dispose=function(){this.JSC$9476_disposed_||(this.JSC$9476_disposed_=!0,this.disposeInternal())};
_.ES.prototype[Symbol.dispose]=function(){this.dispose()};
_.ln=function(c,f){c.addOnDisposeCallback(_.Yt(_.GV,f))};
_.ES.prototype.addOnDisposeCallback=function(c,f){this.JSC$9476_disposed_?f!==void 0?c.call(f):c():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),f&&(c=c.bind(f)),this.onDisposeCallbacks_.push(c))};
_.ES.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var MU=function(c){_.ES.call(this);this.wpc=c};
_.K(MU,_.ES);MU.prototype.b5z=function(){return this.wpc.f()};
MU.prototype.hNz=function(c){return this.wpc.c(c)};
MU.prototype.ze=function(c){return this.wpc.m(Lfe(c))};
MU.prototype.wOO=function(c){return this.wpc.mws(Lfe(c))};
var f1=function(c){_.ES.call(this);var f=this;this.vm=c;this.uFd="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.bpG=void 0;this.yaP=this.vm.p;this.nA5=this.w8p.bind(this);this.addOnDisposeCallback(function(){return void mSH(f)})};
_.K(f1,_.ES);var Hqy=function(c){var f;return _.k(function(d){if(d.nextAddress==1){if(!c.vm.wpc)throw new ZH(30,"NWA");return c.miu?d.return(c.miu):d.yield(c.vm.wpc(),2)}f=d.yieldResult;c.miu=new MU(f);return d.return(c.miu)})};
f1.prototype.snapshot=function(c){return this.vm.s(Object.assign({},c.hI&&{c:c.hI},c.qRm&&{s:c.qRm},c.hJz!==void 0&&{p:c.hJz}))};
f1.prototype.w8p=function(c){this.vm.e(c)};
f1.prototype.pWv=function(c,f){return this.vm.c(c,f,!1)};
var mSH=function(c){c.bpG!==void 0&&(c.uFd.forEach(function(f){var d;(d=c.bpG)==null||d.removeEventListener(f,c.nA5)}),c.bpG=void 0)};
f1.prototype.cVm=function(){return this.vm.l()};var r7=function(){_.ES.apply(this,arguments);this.wZm=1};
_.K(r7,_.ES);r7.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.wZm++;return this};
r7.prototype.dispose=function(){--this.wZm||_.ES.prototype.dispose.call(this)};var AvF=function(c){this.hSf=c;c.addNewEventMetric("/client_streamz/bg/frs",_.rb("mk"))};
AvF.prototype.record=function(c,f){this.hSf.record("/client_streamz/bg/frs",c,f)};
var YWK=function(c){this.vyT=c;c.addNewEventMetric("/client_streamz/bg/wrl",_.rb("mn"),Mx("ac"),Mx("sc"),_.rb("rk"),_.rb("mk"))};
YWK.prototype.record=function(c,f,d,q,Z,M){this.vyT.record("/client_streamz/bg/wrl",c,f,d,q,Z,M)};
var FEH=function(c){this.aen=c;c.addNewCounter("/client_streamz/bg/ec",_.rb("en"),_.rb("mk"))};
FEH.prototype.increment=function(c,f){this.aen.JSC$9730_incrementCounter("/client_streamz/bg/ec",c,f)};
var tPu=function(c){this.qHf=c;c.addNewEventMetric("/client_streamz/bg/el",_.rb("en"),_.rb("mk"))};
tPu.prototype.record=function(c,f,d){this.qHf.record("/client_streamz/bg/el",c,f,d)};
var bqu=function(c){this.bvg=c;c.addNewCounter("/client_streamz/bg/cec",Mx("ec"),_.rb("mk"))};
bqu.prototype.increment=function(c,f){this.bvg.JSC$9730_incrementCounter("/client_streamz/bg/cec",c,f)};
var KEy=function(c){this.dFg=c;c.addNewCounter("/client_streamz/bg/po/csc",Mx("cs"),_.rb("mk"))};
KEy.prototype.increment=function(c,f){this.dFg.JSC$9730_incrementCounter("/client_streamz/bg/po/csc",c,f)};
var Eh_=function(c){this.j7g=c;c.addNewCounter("/client_streamz/bg/po/ctav",_.rb("av"),_.rb("mk"))};
Eh_.prototype.increment=function(c,f){this.j7g.JSC$9730_incrementCounter("/client_streamz/bg/po/ctav",c,f)};
var nhu=function(c){this.yef=c;c.addNewCounter("/client_streamz/bg/po/cwsc",_.rb("su"),_.rb("mk"))};
nhu.prototype.increment=function(c,f){this.yef.JSC$9730_incrementCounter("/client_streamz/bg/po/cwsc",c,f)};var ZDG=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ZDG,_.d8);var qzk=function(c,f){return _.RG(c,3,f,lOG)};var $SK=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K($SK,_.d8);var Qh3=[1,2,3];var SWy=[0,Qh3,_.cIn,pmk,GJN];var LEo=[0,_.oW,[0,eln,_.RW]];var zh3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(zh3,_.d8);var JvH=[1,2,3];var aJ3=[0,JvH,RlP,NcG,_.GK,LEo];var VPu=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(VPu,_.d8);var XUT=[0,_.oW,SWy,aJ3];var uDr=[0,_.x9];var vhv=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(vhv,_.d8);var hhv=[0,_.x9,-1,_.pS];var wU_=[0,_.x9,-1,_.UJ,_.pS];var yvT=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(yvT,_.d8);var WEH=[1,2,3];var DSH=[0,WEH,_.GK,hhv,_.GK,wU_,_.GK,uDr];var ehH=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ehH,_.d8);ehH.prototype.JSC$9550_serializeBinary=uDe([0,_.x9,DSH,fAr,_.oW,XUT,xiG,oPn]);var N8H=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(N8H,_.d8);var Rh_=function(c){var f=new ehH;f=_.b5(f,1,c.JSC$9666_metricName);var d=IJu(c);f=_.RG(f,3,d,_.kS);d=[];for(var q=[],Z=_.C(c.cellMap.keys()),M=Z.next();!M.done;M=Z.next())q.push(M.value.split(","));for(Z=0;Z<q.length;Z++){M=q[Z];for(var g=c.cellType,O=c.getCells(M)||[],l=[],m=0;m<O.length;m++){var H=O[m],A=H&&H.cellValue;H=new zh3;switch(g){case 3:A=Number(A);Number.isFinite(A)&&TP(H,1,JvH,MQ(A));break;case 2:TP(H,2,JvH,_.DO(Number(A)))}l.push(H)}g=l;for(O=0;O<g.length;O++){l=g[O];m=new VPu;l=_.BU(m,
2,l);m=[];H=PX3(c);for(A=0;A<H.length;A++){var Y=H[A],t=M[A],E=new $SK;switch(Y){case 3:TP(E,1,Qh3,lC(String(t)));break;case 2:Y=Number(t);Number.isFinite(Y)&&TP(E,2,Qh3,_.cD(Y));break;case 1:TP(E,3,Qh3,g_k(t==="true"))}m.push(E)}$9(l,1,m);d.push(l)}}$9(f,4,d);return f};var USy=function(c){if(!c)return"";if(/^about:(?:blank|srcdoc)$/.test(c))return window.origin||"";c.indexOf("blob:")===0&&(c=c.substring(5));c=c.split("#")[0].split("?")[0];c=c.toLowerCase();c.indexOf("//")==0&&(c=window.location.protocol+c);/^[\w\-]*:\/\//.test(c)||(c=window.location.href);var f=c.substring(c.indexOf("://")+3),d=f.indexOf("/");d!=-1&&(f=f.substring(0,d));d=c.substring(0,c.indexOf("://"));if(!d)throw Error("qa`"+c);if(d!=="http"&&d!=="https"&&d!=="chrome-extension"&&d!=="moz-extension"&&
d!=="file"&&d!=="android-app"&&d!=="chrome-search"&&d!=="chrome-untrusted"&&d!=="chrome"&&d!=="app"&&d!=="devtools")throw Error("ra`"+d);c="";var q=f.indexOf(":");if(q!=-1){var Z=f.substring(q+1);f=f.substring(0,q);if(d==="http"&&Z!=="80"||d==="https"&&Z!=="443")c=":"+Z}return d+"://"+f+c};var xSu=function(c,f,d){var q=String(_.dz.location.href);return q&&c&&f?[f,pUF(USy(q),c,d||null)].join(" "):null},pUF=function(c,f,d){var q=[],Z=[];
if((Array.isArray(d)?2:1)==1)return Z=[f,c],_.Iw(q,function(O){Z.push(O)}),ohv(Z.join(" "));
var M=[],g=[];_.Iw(d,function(O){g.push(O.key);M.push(O.value)});
d=Math.floor((new Date).getTime()/1E3);Z=M.length==0?[d,f,c]:[M.join(":"),d,f,c];_.Iw(q,function(O){Z.push(O)});
c=ohv(Z.join(" "));c=[d,c];g.length==0||c.push(g.join(""));return c.join("_")},ohv=function(c){var f=hrl();
f.update(c);return f.digestString().toLowerCase()};var CF=function(c){this.JSC$9561_document_=c||{cookie:""}},G8y;
_.r=CF.prototype;_.r.isEnabled=function(){if(!_.dz.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};
_.r.set=function(c,f,d){var q=!1;if(typeof d==="object"){var Z=d.sameSite;q=d.secure||!1;var M=d.domain||void 0;var g=d.path||void 0;var O=d.maxAge}if(/[;=\s]/.test(c))throw Error("sa`"+c);if(/[;\r\n]/.test(f))throw Error("ta`"+f);O===void 0&&(O=-1);d=M?";domain="+M:"";g=g?";path="+g:"";q=q?";secure":"";O=O<0?"":O==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+O*1E3)).toUTCString();this.JSC$9561_document_.cookie=c+"="+f+d+g+O+q+(Z!=null?";samesite="+Z:"")};
_.r.get=function(c,f){for(var d=c+"=",q=(this.JSC$9561_document_.cookie||"").split(";"),Z=0,M;Z<q.length;Z++){M=sC(q[Z]);if(M.lastIndexOf(d,0)==0)return M.slice(d.length);if(M==c)return""}return f};
_.r.remove=function(c,f,d){var q=this.containsKey(c);this.set(c,"",{maxAge:0,path:f,domain:d});return q};
_.r.getKeys=function(){return G8y(this).keys};
_.r.getValues=function(){return G8y(this).values};
_.r.isEmpty=function(){return!this.JSC$9561_document_.cookie};
_.r.getCount=function(){return this.JSC$9561_document_.cookie?(this.JSC$9561_document_.cookie||"").split(";").length:0};
_.r.containsKey=function(c){return this.get(c)!==void 0};
_.r.containsValue=function(c){for(var f=G8y(this).values,d=0;d<f.length;d++)if(f[d]==c)return!0;return!1};
_.r.clear=function(){for(var c=G8y(this).keys,f=c.length-1;f>=0;f--)this.remove(c[f])};
G8y=function(c){c=(c.JSC$9561_document_.cookie||"").split(";");for(var f=[],d=[],q,Z,M=0;M<c.length;M++)Z=sC(c[M]),q=Z.indexOf("="),q==-1?(f.push(""),d.push(Z)):(f.push(Z.substring(0,q)),d.push(Z.substring(q+1)));return{keys:f,values:d}};
_.A4=new CF(typeof document=="undefined"?null:document);var cRY,cD3;cRY=function(){var c=_.dz.__SAPISID||_.dz.__APISID||_.dz.__3PSAPISID||_.dz.__1PSAPISID||_.dz.__OVERRIDE_SID;if(c)return!0;typeof document!=="undefined"&&(c=new CF(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("__Secure-1PAPISID"));return!!c};
cD3=function(c,f,d,q){(c=_.dz[c])||typeof document==="undefined"||(c=(new CF(document)).get(f));return c?xSu(c,d,q):null};
_.Dhe=function(c){var f=USy(_.dz==null?void 0:_.dz.location.href),d=[];if(cRY()){f=f.indexOf("https:")==0||f.indexOf("chrome-extension:")==0||f.indexOf("chrome-untrusted://new-tab-page")==0||f.indexOf("moz-extension:")==0;var q=f?_.dz.__SAPISID:_.dz.__APISID;q||typeof document==="undefined"||(q=new CF(document),q=q.get(f?"SAPISID":"APISID")||q.get("__Secure-3PAPISID"));(q=q?xSu(q,f?"SAPISIDHASH":"APISIDHASH",c):null)&&d.push(q);f&&((f=cD3("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",c))&&d.push(f),
(c=cD3("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",c))&&d.push(c))}return d.length==0?null:d.join(" ")};var fdv=function(){this.minSize=1024};
fdv.prototype.compress=function(c){var f,d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:return f=new CompressionStream("gzip"),d=(new Response(f.readable)).arrayBuffer(),q=f.writable.getWriter(),M.yield(q.write((new TextEncoder).encode(c)),2);case 2:return M.yield(q.close(),3);case 3:return Z=Uint8Array,M.yield(d,4);case 4:return M.return(new Z(M.yieldResult))}})};
fdv.prototype.isSupported=function(c){return c<this.minSize?!1:typeof CompressionStream!=="undefined"};var dOF=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(dOF,_.d8);var g7=function(c,f){this.intervalMs=c;this.callback=f;this.enabled=!1;this.nowFn=function(){return _.M6()};
this.lastTimeMs=this.nowFn()};
g7.prototype.setInterval=function(c){this.intervalMs=c;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
g7.prototype.start=function(){var c=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){c.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
g7.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
g7.prototype.tick=function(){var c=this;if(this.enabled){var f=Math.max(this.nowFn()-this.lastTimeMs,0);f<this.intervalMs*.8?this.timer=setTimeout(function(){c.tick()},this.intervalMs-f):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var jZF=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(jZF,_.d8);var qly=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(qly,_.d8);var ZTu=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ZTu,_.d8);ZTu.prototype.getTransmissionType=function(){return _.VQ(this,1)};var DDN=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(DDN,_.d8);DDN.prototype.getVersion=function(){return _.aW(this,2)};var ko=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ko,_.d8);var Wfh=function(c){$9(er4,1,c)};
ko.prototype.getModel=function(){return _.aW(this,6)};
var M83=_.lX(ko);var rDH=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(rDH,_.d8);var wCP=["platform","platformVersion","architecture","model","uaFullVersion"],er4=new ko,ykz=null;var OA=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(OA,_.d8);var CY3=function(c){return _.rR(c,1,1)};var gwu=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c,4)};
_.K(gwu,_.d8);_.lp=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c,36)};
_.K(_.lp,_.d8);_.lp.prototype.getExperimentIds=function(){return _.TD(this,dOF,16)};var k5H=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c,19)};
_.K(k5H,_.d8);k5H.prototype.setLogSource=function(c){return _.rR(this,2,c)};
k5H.prototype.setScheduler=function(c){return _.rR(this,10,c)};var ldv=function(c,f){this.isServiceWorkerScope=f=f===void 0?!1:f;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new k5H;Number.isInteger(c)&&this.logRequest.setLogSource(c);f||(this.locale=document.documentElement.getAttribute("lang"));OTv(this,new OA)};
ldv.prototype.setLogSource=function(c){this.logRequest.setLogSource(c);return this};
var OTv=function(c,f){_.BU(c.logRequest,1,f);_.VQ(f,1)||CY3(f);c.isServiceWorkerScope||(f=sA(c),_.aW(f,5)||_.b5(f,5,c.locale));c.uach&&(f=sA(c),_.TD(f,ko,9)||_.BU(f,9,c.uach))},sZr=function(c,f){c.transmissionType=f},Bdj=function(c){var f=f===void 0?wCP:f;
var d=c.isServiceWorkerScope?void 0:VT();d?Nih(d,f).then(function(q){c.uach=M83(q!=null?q:"[]");q=sA(c);_.BU(q,9,c.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},sA=function(c){var f=_.TD(c.logRequest,OA,1);
f||(f=new OA,OTv(c,f));c=f;f=_.TD(c,rDH,11);f||(f=new rDH,_.BU(c,11,f));return f};
ldv.prototype.build=function(c,f,d,q,Z,M){f=f===void 0?0:f;d=d===void 0?0:d;q=q===void 0?null:q;Z=Z===void 0?0:Z;M=M===void 0?0:M;if(!this.isServiceWorkerScope){var g=sA(this);var O=new ZTu;O=_.rR(O,1,this.transmissionType);O=_.C1(O,2,this.isFinal);d=_.hr(O,3,d>0?d:void 0);d=_.hr(d,4,Z>0?Z:void 0);d=_.hr(d,5,M>0?M:void 0);Z=d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=Z[_.MH]|0;d=s3(d,M)?d:tFe(d,Z,M)?FcY(d,Z):new d.constructor(JH(Z,M,!0));_.BU(g,10,d)}g=this.logRequest.clone();d=Date.now().toString();
g=_.Cu(g,4,MQ(d));c=c.slice();c=$9(g,3,c);q&&(g=new jZF,q=_.hr(g,13,q),g=new qly,q=_.BU(g,2,q),g=new gwu,q=_.BU(g,1,q),q=_.rR(q,2,9),_.BU(c,18,q));f&&_.b6(c,14,f);return c};gb.prototype.currBackoffCount_=0;gb.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
gb.prototype.getValue=function(){return this.currValue_};
var iTr=function(c){c.currBaseValue_=Math.min(c.maxValue_,c.currBaseValue_*c.backoffFactor_);c.currValue_=Math.min(c.maxValue_,c.currBaseValue_+(c.randomFactor_?Math.round(c.randomFactor_*(Math.random()-.5)*2*c.currBaseValue_):0));c.currBackoffCount_++};var Mdn=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c,8)};
_.K(Mdn,_.d8);var TdF=_.lX(Mdn);var rI4=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(rI4,_.d8);var B2;B2=new C$C;var ip=function(c){_.ES.call(this);var f=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9639_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$9639_sendBeaconApiEnabled=!1;this.logSource=c.logSource;this.getAuthHeaderValue=
c.getAuthHeaderValue||function(){};
this.logRequestBuilder=new ldv(c.logSource,c.isServiceWorkerScope);this.network=c.network||null;this.productID=c.productID||null;this.bufferSize=1E3;this.clearcutUrl=c.urlOverride||null;this.sessionIndex=c.sessionIndex||null;this.disableAutomaticFlush=c.disableAutomaticFlush||!1;this.withCredentials=!c.disableWithCredentials;this.isServiceWorkerScope=c.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!VT()&&!!VT().navigator&&VT().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(mOj())).searchParams&&!!(new URL(mOj())).searchParams.set;var d=CY3(new OA);OTv(this.logRequestBuilder,d);this.flushBackoff=new gb(1E4,3E5,.1);c=HTH(this,c.backgroundJobDeferrer);this.JSC$9639_flushTimer=new g7(this.flushBackoff.getValue(),c);this.backupTimer=new g7(6E5,c);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){ADK(f);
var q;(q=f.metalogService)==null||q.flush()}}),document.addEventListener("pagehide",function(){ADK(f);
var q;(q=f.metalogService)==null||q.flush()}))};
_.K(ip,_.ES);var HTH=function(c,f){return c.isBrowserSupported?f?function(){f().then(function(){c.flush()})}:function(){c.flush()}:function(){}};
ip.prototype.disposeInternal=function(){ADK(this);this.JSC$9639_flushTimer.stop();this.backupTimer.stop();_.ES.prototype.disposeInternal.call(this)};
var Yl3=function(c){c.clearcutUrl||(c.clearcutUrl=mOj());try{return(new URL(c.clearcutUrl)).toString()}catch(f){return(new URL(c.clearcutUrl,VT().location.origin)).toString()}};
ip.prototype.dispatch=function(c){if(c instanceof _.lp)this.log(c);else try{var f=new _.lp,d=c.serialize();var q=_.b5(f,8,d);this.log(q)}catch(Z){To(this,4,1)}};
var To=function(c,f,d){c.metalogService&&c.metalogService.increment(f,d)};
ip.prototype.log=function(c){To(this,2,1);if(this.isBrowserSupported){c=c.clone();var f=this.sequencePosition++;c=_.b6(c,21,f);this.componentId&&_.b5(c,26,this.componentId);f=c;if(LTY(_.Fv(f,1))==null){var d=Date.now();d=Number.isFinite(d)?d.toString():"0";_.Cu(f,1,MQ(d))}_.S34(_.Fv(f,15))!=null||_.b6(f,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(d=this.experimentIds.clone(),_.BU(f,16,d));To(this,1,1);f=this.pendingEvents.length-this.bufferSize+1;f>0&&(this.pendingEvents.splice(0,f),
this.numLogsDroppedSinceLastFlush+=f,To(this,3,f));this.pendingEvents.push(c);this.disableAutomaticFlush||this.JSC$9639_flushTimer.enabled||this.JSC$9639_flushTimer.start()}};
ip.prototype.flush=function(c,f){var d=this;if(this.pendingEvents.length===0)c&&c();else if(this.JSC$9639_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,F0_(this);else{var q=Date.now();if(this.noFlushUntilMs>q&&this.startWaitingMs<q)f&&f("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?sZr(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Z=this.pendingEvents.length,
M=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),g=this.getAuthHeaderValue();if(g&&this.lastFailedAuth===g)f&&f("stale-auth-token");else{this.pendingEvents=[];this.JSC$9639_flushTimer.enabled&&this.JSC$9639_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;q=M.serialize();var O;this.JSC$9639_compressor&&this.JSC$9639_compressor.isSupported(q.length)&&
(O=this.JSC$9639_compressor.compress(q));var l=t8y(this,q,g),m=function(Y){d.flushBackoff.reset();d.JSC$9639_flushTimer.setInterval(d.flushBackoff.getValue());if(Y){var t=null;try{var E=JSON.stringify(JSON.parse(Y.replace(")]}'\n","")));t=TdF(E)}catch(J){}t&&(Y=Number(zK(t,1,_.Xy("-1"))),Y>0&&(d.startWaitingMs=Date.now(),d.noFlushUntilMs=d.startWaitingMs+Y),o_k(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B2.fieldIndex),pHz(t,B2.fieldIndex),t=B2.ctor?B2.getExtensionFn(t,B2.ctor,B2.fieldIndex,
B2.JSC$8818_hasMessageId):B2.getExtensionFn(t,B2.fieldIndex,null,B2.JSC$8818_hasMessageId),t=t===null?void 0:t)&&(t=_.qx(t,1,-1),t!==-1&&(d.flushBackoff=new gb(t<1?1:t,3E5,.1),d.JSC$9639_flushTimer.setInterval(d.flushBackoff.getValue())))}c&&c();d.numRetriesSinceLastSuccessfulFlush=0},H=function(Y,t){var E=_.db(M,_.lp,3,_.jQ());
var J=Number(zK(M,14));iTr(d.flushBackoff);d.JSC$9639_flushTimer.setInterval(d.flushBackoff.getValue());Y===401&&g&&(d.lastFailedAuth=g);J&&(d.numLogsDroppedSinceLastFlush+=J);t===void 0&&(t=d.isRetryable(Y));t&&(d.pendingEvents=E.concat(d.pendingEvents),d.disableAutomaticFlush||d.JSC$9639_flushTimer.enabled||d.JSC$9639_flushTimer.start());To(d,7,1);f&&f("net-send-failed",Y);++d.numRetriesSinceLastSuccessfulFlush},A=function(){d.network&&d.network.send(l,m,H)};
O?O.then(function(Y){To(d,5,Z);l.requestHeaders["Content-Encoding"]="gzip";l.requestHeaders["Content-Type"]="application/binary";l.body=Y;l.bodyType=2;A()},function(){To(d,6,Z);
A()}):A()}}}};
var t8y=function(c,f,d){d=d===void 0?null:d;var q=q===void 0?c.withCredentials:q;var Z={},M=new URL(Yl3(c));d&&(Z.Authorization=d);c.sessionIndex&&(Z["X-Goog-AuthUser"]=c.sessionIndex,M.searchParams.set("authuser",c.sessionIndex));c.pageId&&(Object.defineProperty(Z,"X-Goog-PageId",{value:c.pageId}),M.searchParams.set("pageId",c.pageId));return{url:M.toString(),body:f,bodyType:1,requestHeaders:Z,requestType:"POST",withCredentials:q,timeoutMillis:c.timeoutMillis}},ADK=function(c){c.logRequestBuilder.isFinal=
!0;
c.flush();c.logRequestBuilder.isFinal=!1},F0_=function(c){bT3(c,function(f,d){f=new URL(f);
f.searchParams.set("format","json");var q=!1;try{q=VT().navigator.sendBeacon(f.toString(),d.serialize())}catch(Z){}q||(c.isSendBeaconSupported=!1);return q})},bT3=function(c,f){if(c.pendingEvents.length!==0){var d=new URL(Yl3(c));
d.searchParams.delete("format");var q=c.getAuthHeaderValue();q&&d.searchParams.set("auth",q);d.searchParams.set("authuser",c.sessionIndex||"0");for(q=0;q<10&&c.pendingEvents.length;++q){var Z=c.pendingEvents.slice(0,32),M=c.logRequestBuilder.build(Z,c.numLogsDroppedSinceLastFlush,c.numRetriesSinceLastSuccessfulFlush,c.productID,c.persistedLogRecoveredCount,c.persistedLogExpiredCount);if(!f(d.toString(),M)){++c.numRetriesSinceLastSuccessfulFlush;break}c.numLogsDroppedSinceLastFlush=0;c.numRetriesSinceLastSuccessfulFlush=
0;c.persistedLogRecoveredCount=0;c.persistedLogExpiredCount=0;c.pendingEvents=c.pendingEvents.slice(Z.length)}c.JSC$9639_flushTimer.enabled&&c.JSC$9639_flushTimer.stop()}};
ip.prototype.isRetryable=function(c){return 500<=c&&c<600||c===401||c===0};
var mOj=function(){return"https://play.google.com/log?format=json&hasfast=true"};var K0o=function(){this.abortSupported=typeof AbortController!=="undefined"};
K0o.prototype.send=function(c,f,d){var q=this,Z,M,g,O,l,m,H,A,Y,t;return _.k(function(E){switch(E.nextAddress){case 1:return M=(Z=q.abortSupported?new AbortController:void 0)?setTimeout(function(){Z.abort()},c.timeoutMillis):void 0,_.iY(E,2,3),g=Object.assign({},{method:c.requestType,
headers:Object.assign({},c.requestHeaders)},c.body&&{body:c.body},c.withCredentials&&{credentials:"include"},{signal:c.timeoutMillis&&Z?Z.signal:null}),E.yield(fetch(c.url,g),5);case 5:O=E.yieldResult;if(O.status!==200){(l=d)==null||l(O.status);E.jumpTo(3);break}if((m=f)==null){E.jumpTo(7);break}return E.yield(O.text(),8);case 8:m(E.yieldResult);case 7:case 3:_.m0(E);clearTimeout(M);_.AD(E,0);break;case 2:H=_.Yw(E);switch((A=H)==null?void 0:A.name){case "AbortError":(Y=d)==null||Y(408);break;default:(t=
d)==null||t(400)}E.jumpTo(3)}})};
K0o.prototype.getTransmissionType=function(){return 4};_.OS=function(c,f){f=f===void 0?"0":f;_.ES.call(this);this.logSource=c;this.sessionIndex=f;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9657_clearExperimentIds=this.productID=null;this.JSC$9657_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.K(_.OS,_.ES);var fM4=function(c,f){c.buildLabel=f;return c},c4M=function(c,f){c.network=f;
return c},joP=function(c,f){c.JSC$9657_clearExperimentIds=f},G4h=function(c){c.JSC$9657_sendBeaconApiEnabled=!0;
return c};
_.OS.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.OS.prototype.build=function(){this.network||(this.network=new K0o);var c=new ip({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.Dhe,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.ln(this,c);if(this.buildLabel){var f=this.buildLabel,d=
sA(c.logRequestBuilder);_.b5(d,7,f)}c.JSC$9639_compressor=new fdv;this.componentId&&(c.componentId=this.componentId);this.productID&&(c.productID=this.productID);this.pageId&&(c.pageId=this.pageId);this.JSC$9657_clearExperimentIds&&((d=this.JSC$9657_clearExperimentIds)?(c.experimentIds||(c.experimentIds=new dOF),f=c.experimentIds,d=d.serialize(),_.b5(f,4,d)):c.experimentIds&&_.Cu(c.experimentIds,4));this.JSC$9657_sendBeaconApiEnabled&&(c.JSC$9639_sendBeaconApiEnabled=c.isSendBeaconSupported);Bdj(c.logRequestBuilder);
this.bufferSize&&(c.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(c);return c};var MAG=function(c,f,d,q,Z,M,g){c=c===void 0?-1:c;f=f===void 0?"":f;d=d===void 0?"":d;q=q===void 0?!1:q;Z=Z===void 0?"":Z;_.ES.call(this);this.logSource=c;this.componentId=f;M?f=M:(c=new _.OS(c,"0"),c.componentId=f,_.ln(this,c),d!==""&&(c.destinationUrl=d),q&&(c.serviceWorkerScopeEnabled=!0),Z&&fM4(c,Z),g&&c4M(c,g),f=c.build());this.JSC$9661_transport=f};
_.K(MAG,_.ES);MAG.prototype.flush=function(c){c=c||[];if(c.length){for(var f=new N8H,d=[],q=0;q<c.length;q++){var Z=c[q],M=Rh_(Z);d.push(M);Z.clear()}$9(f,1,d);this.JSC$9661_transport.dispatch(f);this.JSC$9661_transport.flush()}};var Ewv=function(c){this.cellValue=c};var mJ=function(c,f,d){this.JSC$9666_metricName=c;this.cellType=f;this.fields=d||[];this.cellMap=new Map},PX3=function(c){return c.fields.map(function(f){return f.fieldType})},IJu=function(c){return c.fields.map(function(f){return f.fieldName})};
_.r=mJ.prototype;_.r.addCell=function(c){var f=_.hv.apply(1,arguments),d=this.getCells(f);d?d.push(new Ewv(c)):this.JSC$9666_setCell(c,f)};
_.r.JSC$9666_setCell=function(c){var f=this.JSC$9666_getKey(_.hv.apply(1,arguments));this.cellMap.set(f,[new Ewv(c)])};
_.r.getCells=function(){var c=this.JSC$9666_getKey(_.hv.apply(0,arguments));return this.cellMap.has(c)?this.cellMap.get(c):void 0};
_.r.getCell=function(){var c=this.getCells(_.hv.apply(0,arguments));return c&&c.length?c[0]:void 0};
_.r.clear=function(){this.cellMap.clear()};
_.r.JSC$9666_getKey=function(){var c=_.hv.apply(0,arguments);return c?c.join(","):"key"};var nwo=function(c,f){mJ.call(this,c,3,f)};
_.K(nwo,mJ);nwo.prototype.JSC$9669_incrementCounterBy=function(c){var f=_.hv.apply(1,arguments),d=0,q=this.getCell(f);q&&(d=q.cellValue);this.JSC$9666_setCell(d+c,f)};var $OH=function(c,f){mJ.call(this,c,2,f)};
_.K($OH,mJ);$OH.prototype.record=function(c){this.addCell(c,_.hv.apply(1,arguments))};_.H2=function(c){this.id=c};
_.H2.prototype.toString=function(){return this.id};_.AC=function(c,f){this.type=c instanceof _.H2?String(c):c;this.currentTarget=this.target=f;this.defaultPrevented=this.propagationStopped_=!1};
_.AC.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.AC.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Yo=function(c,f){_.AC.call(this,c?c.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;c&&this.init(c,f)};
_.rn(_.Yo,_.AC);
_.Yo.prototype.init=function(c,f){var d=this.type=c.type,q=c.changedTouches&&c.changedTouches.length?c.changedTouches[0]:null;this.target=c.target||c.srcElement;this.currentTarget=f;f=c.relatedTarget;f||(d=="mouseover"?f=c.fromElement:d=="mouseout"&&(f=c.toElement));this.relatedTarget=f;q?(this.clientX=q.clientX!==void 0?q.clientX:q.pageX,this.clientY=q.clientY!==void 0?q.clientY:q.pageY,this.screenX=q.screenX||0,this.screenY=q.screenY||0):(this.offsetX=_.sJ||c.offsetX!==void 0?c.offsetX:c.layerX,
this.offsetY=_.sJ||c.offsetY!==void 0?c.offsetY:c.layerY,this.clientX=c.clientX!==void 0?c.clientX:c.pageX,this.clientY=c.clientY!==void 0?c.clientY:c.pageY,this.screenX=c.screenX||0,this.screenY=c.screenY||0);this.button=c.button;this.keyCode=c.keyCode||0;this.key=c.key||"";this.charCode=c.charCode||(d=="keypress"?c.keyCode:0);this.ctrlKey=c.ctrlKey;this.altKey=c.altKey;this.shiftKey=c.shiftKey;this.metaKey=c.metaKey;this.pointerId=c.pointerId||0;this.pointerType=c.pointerType;this.state=c.state;
this.timeStamp=c.timeStamp;this.event_=c;c.defaultPrevented&&_.Yo.superClass_.preventDefault.call(this)};
_.Yo.prototype.stopPropagation=function(){_.Yo.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Yo.prototype.preventDefault=function(){_.Yo.superClass_.preventDefault.call(this);var c=this.event_;c.preventDefault?c.preventDefault():c.returnValue=!1};var QZy="closure_listenable_"+(Math.random()*1E6|0),F9=function(c){return!(!c||!c[QZy])};var Sl_=0;var L03=function(c,f,d,q,Z){this.listener=c;this.proxy=null;this.src=f;this.type=d;this.capture=!!q;this.handler=Z;this.key=++Sl_;this.removed=this.callOnce=!1},zUy=function(c){c.removed=!0;
c.listener=null;c.proxy=null;c.src=null;c.handler=null};k6.prototype.add=function(c,f,d,q,Z){var M=c.toString();c=this.listeners[M];c||(c=this.listeners[M]=[],this.typeCount_++);var g=JDu(c,f,q,Z);g>-1?(f=c[g],d||(f.callOnce=!1)):(f=new L03(f,this.src,M,!!q,Z),f.callOnce=d,c.push(f));return f};
k6.prototype.remove=function(c,f,d,q){c=c.toString();if(!(c in this.listeners))return!1;var Z=this.listeners[c];f=JDu(Z,f,d,q);return f>-1?(zUy(Z[f]),_.brG(Z,f),Z.length==0&&(delete this.listeners[c],this.typeCount_--),!0):!1};
var adO=function(c,f){var d=f.type;if(!(d in c.listeners))return!1;var q=_.wz(c.listeners[d],f);q&&(zUy(f),c.listeners[d].length==0&&(delete c.listeners[d],c.typeCount_--));return q};
k6.prototype.removeAll=function(c){c=c&&c.toString();var f=0,d;for(d in this.listeners)if(!c||d==c){for(var q=this.listeners[d],Z=0;Z<q.length;Z++)++f,zUy(q[Z]);delete this.listeners[d];this.typeCount_--}return f};
k6.prototype.getListener=function(c,f,d,q){c=this.listeners[c.toString()];var Z=-1;c&&(Z=JDu(c,f,d,q));return Z>-1?c[Z]:null};
k6.prototype.hasListener=function(c,f){var d=c!==void 0,q=d?c.toString():"",Z=f!==void 0;return _.zV.some(this.listeners,function(M){for(var g=0;g<M.length;++g)if(!(d&&M[g].type!=q||Z&&M[g].capture!=f))return!0;return!1})};
var JDu=function(c,f,d,q){for(var Z=0;Z<c.length;++Z){var M=c[Z];if(!M.removed&&M.listener==f&&M.capture==!!d&&M.handler==q)return Z}return-1};var V8T,Xkv,umj,hUH,wkj,nx,$p,DOH,yDj,W0O,tC,eUu,vw_;V8T="closure_lm_"+(Math.random()*1E6|0);Xkv={};umj=0;_.Lx=function(c,f,d,q,Z){if(q&&q.once)return nx(c,f,d,q,Z);if(Array.isArray(f)){for(var M=0;M<f.length;M++)_.Lx(c,f[M],d,q,Z);return null}d=vw_(d);return F9(c)?c.listen(f,d,_.Ik(q)?!!q.capture:!!q,Z):hUH(c,f,d,!1,q,Z)};
hUH=function(c,f,d,q,Z,M){if(!f)throw Error("va");var g=_.Ik(Z)?!!Z.capture:!!Z,O=tC(c);O||(c[V8T]=O=new k6(c));d=O.add(f,d,q,g,M);if(d.proxy)return d;q=wkj();d.proxy=q;q.src=c;q.listener=d;if(c.addEventListener)_.ugG||(Z=g),Z===void 0&&(Z=!1),c.addEventListener(f.toString(),q,Z);else if(c.attachEvent)c.attachEvent(yDj(f.toString()),q);else if(c.addListener&&c.removeListener)c.addListener(q);else throw Error("wa");umj++;return d};
wkj=function(){var c=W0O,f=function(d){return c.call(f.src,f.listener,d)};
return f};
nx=function(c,f,d,q,Z){if(Array.isArray(f)){for(var M=0;M<f.length;M++)nx(c,f[M],d,q,Z);return null}d=vw_(d);return F9(c)?c.listenOnce(f,d,_.Ik(q)?!!q.capture:!!q,Z):hUH(c,f,d,!0,q,Z)};
_.bp=function(c,f,d,q,Z){if(Array.isArray(f))for(var M=0;M<f.length;M++)_.bp(c,f[M],d,q,Z);else q=_.Ik(q)?!!q.capture:!!q,d=vw_(d),F9(c)?c.unlisten(f,d,q,Z):c&&(c=tC(c))&&(f=c.getListener(f,d,q,Z))&&$p(f)};
$p=function(c){if(typeof c==="number"||!c||c.removed)return!1;var f=c.src;if(F9(f))return adO(f.eventTargetListeners_,c);var d=c.type,q=c.proxy;f.removeEventListener?f.removeEventListener(d,q,c.capture):f.detachEvent?f.detachEvent(yDj(d),q):f.addListener&&f.removeListener&&f.removeListener(q);umj--;(d=tC(f))?(adO(d,c),d.typeCount_==0&&(d.src=null,f[V8T]=null)):zUy(c);return!0};
DOH=function(c,f,d,q,Z){d=vw_(d);q=!!q;return F9(c)?c.getListener(f,d,q,Z):c?(c=tC(c))?c.getListener(f,d,q,Z):null:null};
yDj=function(c){return c in Xkv?Xkv[c]:Xkv[c]="on"+c};
W0O=function(c,f){if(c.removed)c=!0;else{f=new _.Yo(f,this);var d=c.listener,q=c.handler||c.src;c.callOnce&&$p(c);c=d.call(q,f)}return c};
tC=function(c){c=c[V8T];return c instanceof k6?c:null};
eUu="__closure_events_fn_"+(Math.random()*1E9>>>0);vw_=function(c){if(typeof c==="function")return c;c[eUu]||(c[eUu]=function(f){return c.handleEvent(f)});
return c[eUu]};_.KF=function(){_.ES.call(this);this.eventTargetListeners_=new k6(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.rn(_.KF,_.ES);_.KF.prototype[QZy]=!0;_.r=_.KF.prototype;_.r.setParentEventTarget=function(c){this.parentEventTarget_=c};
_.r.addEventListener=function(c,f,d,q){_.Lx(this,c,f,d,q)};
_.r.removeEventListener=function(c,f,d,q){_.bp(this,c,f,d,q)};
_.r.dispatchEvent=function(c){var f,d=this.parentEventTarget_;if(d)for(f=[];d;d=d.parentEventTarget_)f.push(d);d=this.actualEventTarget_;var q=c.type||c;if(typeof c==="string")c=new _.AC(c,d);else if(c instanceof _.AC)c.target=c.target||d;else{var Z=c;c=new _.AC(q,d);_.zV.extend(c,Z)}Z=!0;var M;if(f)for(M=f.length-1;!c.propagationStopped_&&M>=0;M--){var g=c.currentTarget=f[M];Z=NdT(g,q,!0,c)&&Z}c.propagationStopped_||(g=c.currentTarget=d,Z=NdT(g,q,!0,c)&&Z,c.propagationStopped_||(Z=NdT(g,q,!1,c)&&
Z));if(f)for(M=0;!c.propagationStopped_&&M<f.length;M++)g=c.currentTarget=f[M],Z=NdT(g,q,!1,c)&&Z;return Z};
_.r.disposeInternal=function(){_.KF.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.r.listen=function(c,f,d,q){return this.eventTargetListeners_.add(String(c),f,!1,d,q)};
_.r.listenOnce=function(c,f,d,q){return this.eventTargetListeners_.add(String(c),f,!0,d,q)};
_.r.unlisten=function(c,f,d,q){return this.eventTargetListeners_.remove(String(c),f,d,q)};
_.r.removeAllListeners=function(c){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(c):0};
var NdT=function(c,f,d,q){f=c.eventTargetListeners_.listeners[String(f)];if(!f)return!0;f=f.concat();for(var Z=!0,M=0;M<f.length;++M){var g=f[M];if(g&&!g.removed&&g.capture==d){var O=g.listener,l=g.handler||g.src;g.callOnce&&adO(c.eventTargetListeners_,g);Z=O.call(l,q)!==!1&&Z}}return Z&&!q.defaultPrevented};
_.KF.prototype.getListener=function(c,f,d,q){return this.eventTargetListeners_.getListener(String(c),f,d,q)};
_.KF.prototype.hasListener=function(c,f){return this.eventTargetListeners_.hasListener(c!==void 0?String(c):void 0,f)};var EA=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(c){return c&&AsyncContext.Snapshot.wrap(c)}:function(c){return c};var Id_=function(c,f){this.create_=c;this.reset_=f;this.occupants_=0;this.JSC$9701_head_=null};
Id_.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var c=this.JSC$9701_head_;this.JSC$9701_head_=c.next;c.next=null}else c=this.create_();return c};
Id_.prototype.put=function(c){this.reset_(c);this.occupants_<100&&(this.occupants_++,c.next=this.JSC$9701_head_,this.JSC$9701_head_=c)};var PYu=function(){this.workTail_=this.workHead_=null};
PYu.prototype.add=function(c,f){var d=PdN.get();d.set(c,f);this.workTail_?this.workTail_.next=d:this.workHead_=d;this.workTail_=d};
PYu.prototype.remove=function(){var c=null;this.workHead_&&(c=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),c.next=null);return c};
var PdN=new Id_(function(){return new RU3},function(c){return c.reset()}),RU3=function(){this.next=this.scope=this.fn=null};
RU3.prototype.set=function(c,f){this.fn=c;this.scope=f;this.next=null};
RU3.prototype.reset=function(){this.next=this.scope=this.fn=null};var UO3,RrP,I5l,pky;RrP=!1;I5l=new PYu;_.nF=function(c,f){UO3||pky();RrP||(UO3(),RrP=!0);I5l.add(c,f)};
pky=function(){var c=Promise.resolve(void 0);UO3=function(){c.then(UDl)}};var xO3=function(c){c.prototype.$goog_Thenable=!0},owF=function(c){if(!c)return!1;
try{return!!c.$goog_Thenable}catch(f){return!1}};var G5y,cT_,fgH,j8_,qM_,ZGH,gcj,lgv,Tk3,Bk3,ssk;_.i6=function(c,f){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(c!=_.tq)try{var d=this;c.call(f,function(q){d.resolve_(2,q)},function(q){d.resolve_(3,q)})}catch(q){this.resolve_(3,q)}};
G5y=function(){this.next=this.context=this.JSC$9712_onRejected=this.JSC$9712_onFulfilled=this.child=null;this.always=!1};
G5y.prototype.reset=function(){this.context=this.JSC$9712_onRejected=this.JSC$9712_onFulfilled=this.child=null;this.always=!1};
cT_=new Id_(function(){return new G5y},function(c){c.reset()});
fgH=function(c,f,d){var q=cT_.get();q.JSC$9712_onFulfilled=c;q.JSC$9712_onRejected=f;q.context=d;return q};
_.sX=function(c){if(c instanceof _.i6)return c;var f=new _.i6(_.tq);f.resolve_(2,c);return f};
_.Je=function(c){return new _.i6(function(f,d){d(c)})};
j8_=function(c,f,d){dz3(c,f,d,null)||_.nF(_.Yt(f,c))};
_.$o=function(c){return new _.i6(function(f,d){var q=c.length,Z=[];if(q)for(var M=function(m,H){q--;Z[m]=H;q==0&&f(Z)},g=function(m){d(m)},O,l=0;l<c.length;l++)O=c[l],j8_(O,_.Yt(M,l),g);
else f(Z)})};
qM_=function(c){return new _.i6(function(f){var d=c.length,q=[];if(d)for(var Z=function(O,l,m){d--;q[O]=l?{fulfilled:!0,value:m}:{fulfilled:!1,reason:m};d==0&&f(q)},M,g=0;g<c.length;g++)M=c[g],j8_(M,_.Yt(Z,g,!0),_.Yt(Z,g,!1));
else f(q)})};
ZGH=function(c){return new _.i6(function(f,d){var q=c.length,Z=[];if(q)for(var M=function(m){f(m)},g=function(m,H){q--;
Z[m]=H;q==0&&d(Z)},O,l=0;l<c.length;l++)O=c[l],j8_(O,M,_.Yt(g,l));
else f(void 0)})};
_.c9=function(){var c,f,d=new _.i6(function(q,Z){c=q;f=Z});
return new M5H(d,c,f)};
_.i6.prototype.then=function(c,f,d){return rTF(this,EA(typeof c==="function"?c:null),EA(typeof f==="function"?f:null),d)};
xO3(_.i6);gcj=function(c,f,d,q){C5o(c,fgH(f||_.tq,d||null,q))};
_.QS=function(c,f){f=EA(f);f=fgH(f,f);f.always=!0;C5o(c,f);return c};
_.i6.prototype.finally=function(c){var f=this;c=EA(c);return new _.i6(function(d,q){gcj(f,function(Z){c();d(Z)},function(Z){c();
q(Z)})})};
_.i6.prototype.thenCatch=function(c,f){return rTF(this,null,EA(c),f)};
_.i6.prototype.catch=_.i6.prototype.thenCatch;_.i6.prototype.cancel=function(c){if(this.state_==0){var f=new _.NC(c);_.nF(function(){kVy(this,f)},this)}};
var kVy=function(c,f){if(c.state_==0)if(c.parent_){var d=c.parent_;if(d.callbackEntries_){for(var q=0,Z=null,M=null,g=d.callbackEntries_;g&&(g.always||(q++,g.child==c&&(Z=g),!(Z&&q>1)));g=g.next)Z||(M=g);Z&&(d.state_==0&&q==1?kVy(d,f):(M?(q=M,q.next==d.callbackEntriesTail_&&(d.callbackEntriesTail_=q),q.next=q.next.next):OGr(d),lgv(d,Z,3,f)))}c.parent_=null}else c.resolve_(3,f)},C5o=function(c,f){c.callbackEntries_||c.state_!=2&&c.state_!=3||s8o(c);
c.callbackEntriesTail_?c.callbackEntriesTail_.next=f:c.callbackEntries_=f;c.callbackEntriesTail_=f},rTF=function(c,f,d,q){var Z=fgH(null,null,null);
Z.child=new _.i6(function(M,g){Z.JSC$9712_onFulfilled=f?function(O){try{var l=f.call(q,O);M(l)}catch(m){g(m)}}:M;
Z.JSC$9712_onRejected=d?function(O){try{var l=d.call(q,O);l===void 0&&O instanceof _.NC?g(O):M(l)}catch(m){g(m)}}:g});
Z.child.parent_=c;C5o(c,Z);return Z.child};
_.i6.prototype.unblockAndFulfill_=function(c){this.state_=0;this.resolve_(2,c)};
_.i6.prototype.unblockAndReject_=function(c){this.state_=0;this.resolve_(3,c)};
_.i6.prototype.resolve_=function(c,f){this.state_==0&&(this===f&&(c=3,f=new TypeError("xa")),this.state_=1,dz3(f,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=f,this.state_=c,this.parent_=null,s8o(this),c!=3||f instanceof _.NC||Bk3(this,f)))};
var dz3=function(c,f,d,q){if(c instanceof _.i6)return gcj(c,f,d,q),!0;if(owF(c))return c.then(f,d,q),!0;if(_.Ik(c))try{var Z=c.then;if(typeof Z==="function")return iGF(c,Z,f,d,q),!0}catch(M){return d.call(q,M),!0}return!1},iGF=function(c,f,d,q,Z){var M=!1,g=function(l){M||(M=!0,d.call(Z,l))},O=function(l){M||(M=!0,q.call(Z,l))};
try{f.call(c,g,O)}catch(l){O(l)}},s8o=function(c){c.executing_||(c.executing_=!0,_.nF(c.executeCallbacks_,c))},OGr=function(c){var f=null;
c.callbackEntries_&&(f=c.callbackEntries_,c.callbackEntries_=f.next,f.next=null);c.callbackEntries_||(c.callbackEntriesTail_=null);return f};
_.i6.prototype.executeCallbacks_=function(){for(var c;c=OGr(this);)lgv(this,c,this.state_,this.result_);this.executing_=!1};
lgv=function(c,f,d,q){if(d==3&&f.JSC$9712_onRejected&&!f.always)for(;c&&c.hadUnhandledRejection_;c=c.parent_)c.hadUnhandledRejection_=!1;if(f.child)f.child.parent_=null,Tk3(f,d,q);else try{f.always?f.JSC$9712_onFulfilled.call(f.context):Tk3(f,d,q)}catch(Z){ssk.call(null,Z)}cT_.put(f)};
Tk3=function(c,f,d){f==2?c.JSC$9712_onFulfilled.call(c.context,d):c.JSC$9712_onRejected&&c.JSC$9712_onRejected.call(c.context,d)};
Bk3=function(c,f){c.hadUnhandledRejection_=!0;_.nF(function(){c.hadUnhandledRejection_&&ssk.call(null,f)})};
ssk=jM;_.NC=function(c){_.cN.call(this,c)};
_.rn(_.NC,_.cN);_.NC.prototype.name="cancel";var M5H=function(c,f,d){this.promise=c;this.resolve=f;this.reject=d};var SW;_.MT=function(c,f){_.KF.call(this);this.JSC$9724_interval_=c||1;this.timerObject_=f||_.dz;this.boundTick_=(0,_.n1)(this.tick_,this);this.last_=_.M6()};
_.rn(_.MT,_.KF);_.r=_.MT.prototype;_.r.enabled=!1;_.r.JSC$9726_timer_=null;_.r.setInterval=function(c){this.JSC$9724_interval_=c;this.JSC$9726_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9726_timer_&&this.stop()};
_.r.tick_=function(){if(this.enabled){var c=_.M6()-this.last_;c>0&&c<this.JSC$9724_interval_*.8?this.JSC$9726_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9724_interval_-c):(this.JSC$9726_timer_&&(this.timerObject_.clearTimeout(this.JSC$9726_timer_),this.JSC$9726_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.r.start=function(){this.enabled=!0;this.JSC$9726_timer_||(this.JSC$9726_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9724_interval_),this.last_=_.M6())};
_.r.stop=function(){this.enabled=!1;this.JSC$9726_timer_&&(this.timerObject_.clearTimeout(this.JSC$9726_timer_),this.JSC$9726_timer_=null)};
_.r.disposeInternal=function(){_.MT.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
SW=function(c,f,d){if(typeof c==="function")d&&(c=(0,_.n1)(c,d));else if(c&&typeof c.handleEvent=="function")c=(0,_.n1)(c.handleEvent,c);else throw Error("ya");return Number(f)>2147483647?-1:_.dz.setTimeout(c,f||0)};
_.mzv=function(c){var f=null;return(new _.i6(function(d,q){f=SW(function(){d(void 0)},c);
f==-1&&q(Error("za"))})).thenCatch(function(d){_.dz.clearTimeout(f);
throw d;})};var sS=function(c){_.ES.call(this);this.streamzLogger=c;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9730_flushTimer=new _.MT(this.flushInterval);this.JSC$9730_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.ln(this,this.JSC$9730_flushTimer)};
_.K(sS,_.ES);sS.prototype.sendIsolatedPayload=function(c){this.shouldSendIsolatedPayload=c;this.invocationLimit=1};
var HGj=function(c){c.JSC$9730_flushTimer.enabled||c.JSC$9730_flushTimer.start();c.invocationCount++;c.invocationCount>=c.invocationLimit&&c.snapshotAndFlush()};
sS.prototype.snapshotAndFlush=function(){var c=this.metricMap.values();c=[].concat(_.LT(c)).filter(function(f){return f.cellMap.size});
c.length&&this.streamzLogger.flush(c,this.shouldSendIsolatedPayload);ATH(c);this.invocationCount=0;this.JSC$9730_flushTimer.enabled&&this.JSC$9730_flushTimer.stop()};
sS.prototype.addNewCounter=function(c){var f=_.hv.apply(1,arguments);this.metricMap.has(c)||this.metricMap.set(c,new nwo(c,f))};
sS.prototype.addNewEventMetric=function(c){var f=_.hv.apply(1,arguments);this.metricMap.has(c)||this.metricMap.set(c,new $OH(c,f))};
var YMr=function(c,f){return c.disabledMetrics.has(f)?void 0:c.metricMap.get(f)};
sS.prototype.JSC$9730_incrementCounter=function(c){this.JSC$9730_incrementCounterBy(c,1,_.hv.apply(1,arguments))};
sS.prototype.JSC$9730_incrementCounterBy=function(c,f){var d=_.hv.apply(2,arguments),q=YMr(this,c);q&&q instanceof nwo&&(q.JSC$9669_incrementCounterBy(f,d),HGj(this))};
sS.prototype.record=function(c,f){var d=_.hv.apply(2,arguments),q=YMr(this,c);q&&q instanceof $OH&&(q.record(f,d),HGj(this))};
var ATH=function(c){for(var f=0;f<c.length;f++)c[f].clear()};_.LF=function(c,f,d){d=d===void 0?{}:d;f=Error.call(this,f);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=c;this.metadata=d;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(_.LF,Error);_.LF.prototype.toString=function(){var c="RpcError("+(xDN(this.code)||String(this.code))+")";this.message&&(c+=": "+this.message);return c};_.FCH=_.dz.JSON.parse;_.zo=_.dz.JSON.stringify;_.Le=_.dz.JSON.parse;_.t5H=function(c){switch(c){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 bGK=function(c){switch(c){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var KCO,Ec_=function(){};
_.rn(Ec_,_.o5C);Ec_.prototype.createInstance=function(){return new XMLHttpRequest};
KCO=new Ec_;_.JC=function(c){_.KF.call(this);this.headers=new Map;this.JSC$9739_xmlHttpFactory_=c||null;this.JSC$9739_active_=!1;this.JSC$9739_xhr_=null;this.JSC$9739_lastUri_="";this.JSC$9739_lastErrorCode_=0;this.JSC$9739_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9739_timeoutId_=null;this.responseType_="";this.JSC$9739_withCredentials_=!1};
_.rn(_.JC,_.KF);var ncF=/^https?$/i,$z_=["POST","PUT"],Q8r=[],d_G=function(c,f,d,q,Z,M,g){var O=new _.JC;Q8r.push(O);f&&O.listen("complete",f);O.listenOnce("ready",O.cleanupSend_);M&&(O.timeoutInterval_=Math.max(0,M));g&&(O.JSC$9739_withCredentials_=g);O.send(c,d,q,Z)};
_.JC.prototype.cleanupSend_=function(){this.dispose();_.wz(Q8r,this)};
_.JC.prototype.send=function(c,f,d,q){if(this.JSC$9739_xhr_)throw Error("Aa`"+this.JSC$9739_lastUri_+"`"+c);f=f?f.toUpperCase():"GET";this.JSC$9739_lastUri_=c;this.JSC$9739_lastError_="";this.JSC$9739_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9739_active_=!0;this.JSC$9739_xhr_=this.createXhr();this.JSC$9739_xhr_.onreadystatechange=EA((0,_.n1)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9739_xhr_.open(f,String(c),!0),this.inOpen_=!1}catch(g){SMT(this,g);return}c=d||"";d=new Map(this.headers);
if(q)if(Object.getPrototypeOf(q)===Object.prototype)for(var Z in q)d.set(Z,q[Z]);else if(typeof q.keys==="function"&&typeof q.get==="function"){Z=_.C(q.keys());for(var M=Z.next();!M.done;M=Z.next())M=M.value,d.set(M,q.get(M))}else throw Error("Ba`"+String(q));q=Array.from(d.keys()).find(function(g){return"content-type"==g.toLowerCase()});
Z=_.dz.FormData&&c instanceof _.dz.FormData;!_.hP($z_,f)||q||Z||d.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");f=_.C(d);for(q=f.next();!q.done;q=f.next())d=_.C(q.value),q=d.next().value,d=d.next().value,this.JSC$9739_xhr_.setRequestHeader(q,d);this.responseType_&&(this.JSC$9739_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9739_xhr_&&this.JSC$9739_xhr_.withCredentials!==this.JSC$9739_withCredentials_&&(this.JSC$9739_xhr_.withCredentials=this.JSC$9739_withCredentials_);
try{this.JSC$9739_timeoutId_&&(clearTimeout(this.JSC$9739_timeoutId_),this.JSC$9739_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9739_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9739_xhr_.send(c),this.inSend_=!1}catch(g){SMT(this,g)}};
_.JC.prototype.createXhr=function(){return this.JSC$9739_xmlHttpFactory_?this.JSC$9739_xmlHttpFactory_.createInstance():KCO.createInstance()};
_.JC.prototype.timeout_=function(){typeof Njr!="undefined"&&this.JSC$9739_xhr_&&(this.JSC$9739_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9739_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var SMT=function(c,f){c.JSC$9739_active_=!1;c.JSC$9739_xhr_&&(c.inAbort_=!0,c.JSC$9739_xhr_.abort(),c.inAbort_=!1);c.JSC$9739_lastError_=f;c.JSC$9739_lastErrorCode_=5;LC3(c);zR_(c)},LC3=function(c){c.errorDispatched_||(c.errorDispatched_=!0,c.dispatchEvent("complete"),c.dispatchEvent("error"))};
_.JC.prototype.abort=function(c){this.JSC$9739_xhr_&&this.JSC$9739_active_&&(this.JSC$9739_active_=!1,this.inAbort_=!0,this.JSC$9739_xhr_.abort(),this.inAbort_=!1,this.JSC$9739_lastErrorCode_=c||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),zR_(this))};
_.JC.prototype.disposeInternal=function(){this.JSC$9739_xhr_&&(this.JSC$9739_active_&&(this.JSC$9739_active_=!1,this.inAbort_=!0,this.JSC$9739_xhr_.abort(),this.inAbort_=!1),zR_(this,!0));_.JC.superClass_.disposeInternal.call(this)};
_.JC.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)JTr(this);else this.onReadyStateChangeEntryPoint_()};
_.JC.prototype.onReadyStateChangeEntryPoint_=function(){JTr(this)};
var JTr=function(c){if(c.JSC$9739_active_&&typeof Njr!="undefined")if(c.inSend_&&_.ap(c)==4)setTimeout(c.onReadyStateChange_.bind(c),0);else if(c.dispatchEvent("readystatechange"),c.isComplete()){c.JSC$9739_active_=!1;try{if(c.isSuccess())c.dispatchEvent("complete"),c.dispatchEvent("success");else{c.JSC$9739_lastErrorCode_=6;try{var f=_.ap(c)>2?c.JSC$9739_xhr_.statusText:""}catch(d){f=""}c.JSC$9739_lastError_=f+" ["+c.getStatus()+"]";LC3(c)}}finally{zR_(c)}}},zR_=function(c,f){if(c.JSC$9739_xhr_){c.JSC$9739_timeoutId_&&
(clearTimeout(c.JSC$9739_timeoutId_),c.JSC$9739_timeoutId_=null);
var d=c.JSC$9739_xhr_;c.JSC$9739_xhr_=null;f||c.dispatchEvent("ready");try{d.onreadystatechange=null}catch(q){}}};
_.JC.prototype.isActive=function(){return!!this.JSC$9739_xhr_};
_.JC.prototype.isComplete=function(){return _.ap(this)==4};
_.JC.prototype.isSuccess=function(){var c=this.getStatus(),f;if(!(f=bGK(c))){if(c=c===0)c=XDH(String(this.JSC$9739_lastUri_)),c=!ncF.test(c);f=c}return f};
_.ap=function(c){return c.JSC$9739_xhr_?c.JSC$9739_xhr_.readyState:0};
_.r=_.JC.prototype;_.r.getStatus=function(){try{return _.ap(this)>2?this.JSC$9739_xhr_.status:-1}catch(c){return-1}};
_.r.getResponseText=function(){try{return this.JSC$9739_xhr_?this.JSC$9739_xhr_.responseText:""}catch(c){return""}};
_.r.getResponse=function(){try{if(!this.JSC$9739_xhr_)return null;if("response"in this.JSC$9739_xhr_)return this.JSC$9739_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9739_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9739_xhr_)return this.JSC$9739_xhr_.mozResponseArrayBuffer}return null}catch(c){return null}};
_.r.getAllResponseHeaders=function(){return this.JSC$9739_xhr_&&_.ap(this)>=2?this.JSC$9739_xhr_.getAllResponseHeaders()||"":""};
_.r.getLastError=function(){return typeof this.JSC$9739_lastError_==="string"?this.JSC$9739_lastError_:String(this.JSC$9739_lastError_)};var dlN=function(){};
dlN.prototype.send=function(c,f,d){f=f===void 0?function(){}:f;
d=d===void 0?function(){}:d;
d_G(c.url,function(q){q=q.target;q.isSuccess()?f(q.getResponseText()):d(q.getStatus())},c.requestType,c.body,c.requestHeaders,c.timeoutMillis,c.withCredentials)};
dlN.prototype.getTransmissionType=function(){return 1};var ag_=function(c,f){this.gXk=c;this.event=f;this.startTime=Bu()},CFN;
ag_.prototype.done=function(){this.gXk.xH(this.event,Bu()-this.startTime)};
var VS=function(){r7.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.K(VS,r7);_.X9=function(c,f,d){var q=Bu();f=f();c.xH(d,Bu()-q);return f};
CFN=function(){VS.apply(this,arguments)};
_.K(CFN,VS);_.r=CFN.prototype;_.r.byO=function(){};
_.r.w1=function(){};
_.r.xH=function(){};
_.r.logError=function(){};
_.r.fc=function(){};
_.r.f0v=function(){};
_.r.j4O=function(){};
_.r.yoG=function(){};
var V5y=function(c){VS.call(this);var f=this;this.cP=c;this.TEST_ONLY={e0G:function(){return f.cP},
getExperimentIds:function(){return f.cP.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void f.cP.dispose()})};
_.K(V5y,VS);_.r=V5y.prototype;_.r.update=function(c){this.cP.dispose();this.cP=c};
_.r.w1=function(c){this.cP.w1(c)};
_.r.xH=function(c,f){this.cP.xH(c,f)};
_.r.logError=function(c){this.cP.logError(c)};
_.r.fc=function(){this.cP.fc()};
_.r.f0v=function(c){this.cP.f0v(c)};
_.r.j4O=function(c){this.cP.j4O(c)};
_.r.yoG=function(c){this.cP.yoG(c)};
_.r.byO=function(c){this.cP.byO(c)};
var Xv_=function(c,f){_.ES.call(this);var d=this;this.callback=c;this.pxB=f;this.nLB=-f;this.addOnDisposeCallback(function(){return void clearTimeout(d.timer)})};
_.K(Xv_,_.ES);var u1o=function(c){if(c.timer===void 0){var f=Math.max(0,c.nLB+c.pxB-Bu());c.timer=setTimeout(function(){try{c.callback()}finally{c.nLB=Bu(),c.timer=void 0}},f)}},vcT=function(c,f){VS.call(this);
this.metrics=c;this.qJ=f};
_.K(vcT,VS);_.r=vcT.prototype;_.r.byO=function(c){this.metrics.dgq.record(c,this.qJ)};
_.r.w1=function(c){this.metrics.eventCount.increment(c,this.qJ)};
_.r.xH=function(c,f){this.metrics.hlf.record(f,c,this.qJ)};
_.r.logError=function(c){this.metrics.errorCount.increment(c,this.qJ)};
_.r.f0v=function(c){this.metrics.a6q.increment(c,this.qJ)};
_.r.j4O=function(c){this.metrics.gkT.increment(c,this.qJ)};
_.r.yoG=function(c){this.metrics.vIj.increment(c,this.qJ)};
var kfC=function(c,f){f=f===void 0?[]:f;var d={qJ:c.qJ||"_",lVe:c.lVe||[],yUC:c.yUC|0,destinationUrl:c.destinationUrl,disableClearcutCredentialBinding:c.disableClearcutCredentialBinding,m5P:c.m5P||function(){},
mVQ:c.mVQ||function(M,g){return r4l(M,g,d.m5P,d.destinationUrl,d.disableClearcutCredentialBinding)}},q=d.mVQ("50",d.lVe.concat(f));
vcT.call(this,{dgq:new AvF(q),errorCount:new bqu(q),eventCount:new FEH(q),hlf:new tPu(q),kgj:new YWK(q),a6q:new KEy(q),gkT:new Eh_(q),vIj:new nhu(q)},d.qJ);var Z=this;this.TEST_ONLY={getExperimentIds:function(){return Z.options.lVe.concat(Z.eud).sort(function(M,g){return M-g})}};
this.options=d;this.service=q;this.erf=!c.mVQ;this.flushDebouncer=new Xv_(function(){return void Z.service.snapshotAndFlush()},d.yUC);
this.addOnDisposeCallback(function(){Z.flushDebouncer.dispose();Z.erf&&Z.service.dispose()});
(this.eud=f.slice()).sort(_.$Nn)};
_.K(kfC,vcT);kfC.prototype.fc=function(){u1o(this.flushDebouncer)};var pYN=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(pYN,_.d8);_.xcY=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(_.xcY,_.d8);var Uo=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c,0,Uo.messageId)};
_.K(Uo,_.d8);var hRF=_.vhY(Uo);Uo.messageId="bfkj";var gKr=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(gKr,_.d8);var VZP=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(VZP,_.d8);var wvy=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(wvy,_.d8);var yT_=_.lX(wvy);_.BS=function(){var c=this;this.promise=new Promise(function(f,d){c.resolve=f;c.reject=d})};_.up=function(c){_.ES.call(this);var f=this;this.rfG=Math.floor(Math.random()*200);this.pEp=new wvy;if("challenge"in c&&hRF(c.challenge)){var d=_.aW(c.challenge,4,void 0,zv);var q=_.aW(c.challenge,5,void 0,zv);_.aW(c.challenge,7,void 0,zv)&&(this.pEp=yT_(_.aW(c.challenge,7,void 0,zv)))}else d=c.program,q=c.globalName;this.addOnDisposeCallback(function(){var E,J,X;return _.k(function(u){if(u.nextAddress==1)return u.yield(f.qTQ,2);E=u.yieldResult;J=E.wEC;(X=J)==null||X();_.Fm(u)})});
this.uY=ODe(c.evG||{},this.pEp);_.ln(this,this.uY);var Z=new _.BS;this.qTQ=Z.promise;this.uY.w1("t");var M=this.uY.share(),g=new ag_(M,"t"),O=function(E,J,X,u){if(!f.uY.isDisposed()){var W="k";J?W="h":X&&(W="u");W!=="k"?u!==0&&(f.uY.w1(W),f.uY.xH(W,E)):f.rfG<=0?(f.uY.w1(W),f.uY.xH(W,E),f.rfG=Math.floor(Math.random()*200)):f.rfG--}},l=function(E,J,X,u){Promise.resolve().then(function(){g.done();
M.fc();M.dispose();Z.resolve({fYn:E,wEC:J,jxm:X,bc4:u})})};
if(!_.dz[q])throw this.uY.logError(25),Error("Ca");if(!_.dz[q].a)throw this.uY.logError(26),Error("Da");try{var m=_.dz[q].a;q=[];for(var H=[],A=XCh(this.pEp),Y=0;Y<A.length;Y++)q.push(A[Y]),H.push(1);var t=urn(this.pEp);for(A=0;A<t.length;A++)q.push(t[A]),H.push(2);this.km2=_.C(m(d,l,!0,c.r55,O,[q,H],_.aW(this.pEp,5))).next().value;this.yaP=Z.promise.then(function(){})}catch(E){throw this.uY.logError(28),E;
}};
_.K(_.up,_.ES);_.up.prototype.snapshot=function(c){if(this.isDisposed())throw Error("Ea");this.uY.w1("n");var f=this.uY.share();return this.qTQ.then(function(d){var q=d.fYn;return new Promise(function(Z){var M=new ag_(f,"n");q(function(g){M.done();f.byO(g.length);f.fc();f.dispose();Z(g)},[c.hI,
c.qRm,c.jaf,c.hJz])})})};
_.up.prototype.w8p=function(c){this.qTQ.then(function(f){var d;(d=f.jxm)==null||d(c)})};
_.up.prototype.pWv=function(c,f){return this.qTQ.then(function(d){var q;return(q=d.bc4)==null?void 0:q(c,f,!1)})};
_.up.prototype.cVm=function(){return this.uY.share()};var WCO=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(WCO,_.d8);var Udk=_.vhY(WCO);var DzO=function(){this.promises={};this.gVv=null},eRH=function(){DzO.instance||(DzO.instance=new DzO);
return DzO.instance},IgO=function(c,f){return NkT(c,_.TD(f,pYN,1,zv),_.TD(f,_.xcY,2,zv),_.aW(f,3,void 0,zv))},NkT=function(c,f,d,q){if(!f&&!d)return Promise.resolve();
if(!q)return Txr(f,d);var Z;(Z=c.promises)[q]||(Z[q]=new Promise(function(M,g){Txr(f,d).then(function(){c.gVv=q;M()},function(O){delete c.promises[q];
g(O)})}));
return c.promises[q]};var P5r=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(P5r,_.d8);var RRo=function(c,f){return _.pO(c,1,f)},Uzr=function(c,f){return _.pO(c,2,f)};var v2=function(c){_.ES.call(this);var f=this;this.options=c;this.t3p=new _.BS;this.yaP=this.t3p.promise;this.uGT=new _.BS;this.lKP=1;this.xNG=new _.BS;this.t7Q=[];this.q0T=c.q0T||function(){};
this.w4m=new V5y(ODe(c.evG||{}));pvH(this,c.kv,c.hI5,c.iLA,c.lJu,Object.assign({},xzo,c.kAm||{}));this.addOnDisposeCallback(function(){return void ocu(f)})};
_.K(v2,_.ES);v2.prototype.snapshot=function(c){var f=this;return _.k(function(d){switch(d.nextAddress){case 1:if(f.isDisposed())throw Error("Ea");if(f.mg||f.lTu){d.jumpTo(2);break}return d.yield(f.uGT.promise,2);case 2:if(!f.mg){d.jumpTo(4);break}return d.yield(f.mg.snapshot(c),5);case 5:return d.return(d.yieldResult);case 4:throw f.lTu;}})};
var GVH=function(c){var f;return _.k(function(d){if(c.isDisposed())throw Error("Ea");(f=c.sN)!=null&&(f.endTimeMs=0,f.resolver(1));return d.yield(c.xNG.promise,0)})},ocu=function(c){c.lTu=Error("Ga");
c.uGT.resolve();v5N(c.t3p.promise);c.t3p.reject(Error("Ga"));c.w4m.dispose();Promise.all(c.t7Q).then(function(){var d;return _.k(function(q){(d=c.mg)==null||d.dispose();c.mg=void 0;_.Fm(q)})});
c.t7Q=[];var f;(f=c.sN)!=null&&(f.endTimeMs=0,f.resolver(1));v5N(c.xNG.promise);c.xNG.reject(Error("Ga"))};
v2.prototype.w8p=function(c){var f,d;(f=this.mg)==null||(d=f.w8p)==null||d.call(f,c)};
v2.prototype.pWv=function(c,f){var d,q,Z;return(Z=(d=this.mg)==null?void 0:(q=d.pWv)==null?void 0:q.call(d,c,f))!=null?Z:Promise.resolve()};
var c5H=function(c,f){var d=c.q0T;c.q0T=function(){d();f()}},fUv=function(c,f){c.isDisposed()||(c.mg=f,c.w4m.update(f.cVm()),c.uGT.resolve(),c.t3p.resolve(void 0),c.q0T())};
v2.prototype.handleError=function(c){if(!this.isDisposed()){this.lTu=c;this.uGT.resolve();var f,d;(d=(f=this.options).bCB)==null||d.call(f,c)}};
var dxH=function(c,f){f&&(Promise.all(c.t7Q).then(function(){return void f.dispose()}),c.t7Q=[])},hC=function(c,f){c.lKP=f;
var d,q;(q=(d=c.options).snG)==null||q.call(d,f)},jO3=function(c){c.isDisposed()||(c.xNG.resolve(),c.xNG=new _.BS)},pvH=function(c,f,d,q,Z,M){q=q===void 0?eRH():q;
Z=Z===void 0?Promise.resolve(void 0):Z;var g,O,l,m,H,A,Y,t,E,J,X,u;_.k(function(W){switch(W.nextAddress){case 1:return W.yield(0,3);case 3:O=null;if(!g){W.jumpTo(6);break}hC(c,7);_.iY(W,7);return W.yield(t5(g.snapshot({}),M.eqf,function(){return Promise.resolve("E:CTO")}),9);
case 9:O=W.yieldResult;_.Pq(W,6);break;case 7:_.Yw(W),O="E:UCE";case 6:l=void 0,m=g?M.u75:M.mzX,H=new gb(m,M.pvB,M.elg,M.t04),A=1;case 10:if(!(A<=M.maxAttempts)){W.jumpTo(12);break}if(A===1){W.jumpTo(13);break}hC(c,0);c.sN=new qS3(H.getValue(),M.yXT,M.oJk);return W.yield(c.sN.promise,14);case 14:Y=W.yieldResult,c.sN=void 0,Y===1?(A=1,H.reset()):iTr(H);case 13:_.iY(W,15);t=void 0;if(d){t=d;W.jumpTo(17);break}hC(c,5);E=q.gVv;return W.yield(t5(Z1F(f,E,O),M.wr4,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:t=W.yieldResult;case 17:return hC(c,3),W.yield(t5(IgO(q,t),M.i95,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return hC(c,8),W.yield(Z,20);case 20:return J=new _.up({challenge:t,evG:c.options.evG,r55:c.options.r55}),W.yield(t5(J.yaP,M.iuj,function(){return Promise.reject(Error("Ja"))}),21);
case 21:l=J;W.jumpTo(12);break;case 15:X=_.Yw(W),c.handleError(X),jO3(c);case 11:A++;W.jumpTo(10);break;case 12:if(c.isDisposed()){W.jumpTo(5);break}l&&(d=void 0,dxH(c,g),g=l,fUv(c,l),jO3(c));hC(c,2);c.sN=new qS3(M.xqf,M.yXT,M.oJk);return W.yield(c.sN.promise,22);case 22:c.sN=void 0;if(c.isDisposed()){W.jumpTo(5);break}W.jumpTo(3);break;case 5:(u=g)==null||u.dispose(),_.Fm(W)}})};
v2.prototype.cVm=function(){return this.w4m.share()};
var xzo={xqf:432E5,yXT:3E5,oJk:10,eqf:1E4,wr4:3E4,i95:3E4,iuj:6E4,mzX:1E3,u75:6E4,pvB:6E5,elg:.25,t04:2,maxAttempts:10},qS3=function(c,f,d){var q=this;this.endTimeMs=Date.now()+c;this.promise=new Promise(function(M){q.resolver=M});
var Z=function(){var M=q.endTimeMs-Date.now();M<=d?q.resolver(0):setTimeout(Z,Math.min(M,f))};
Z()};var MQ3,uJz=(MQ3=Math.imul)!=null?MQ3:function(c,f){return c*f|0},bn=[196,
200,224,18],w7=function(c,f,d){d=d===void 0?[]:d;this.maxItems=c;this.bt=f===void 0?0:f;this.iO=d},r5r=function(c){var f=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!f)return new w7(c);var d=f.split(",");if(d.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new w7(c);f=d.slice(1);f.length===1&&f[0]===""&&(f=[]);d=Number(d[0]);return isNaN(d)||d<0||d>f.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new w7(c)):new w7(c,d,f)};
w7.prototype.serialize=function(){return String(this.bt)+","+this.iO.join()};
w7.prototype.insert=function(c,f){var d=void 0;if(this.iO[this.bt]!==c){var q=this.iO.indexOf(c);q!==-1?(this.iO.splice(q,1),q<this.bt&&this.bt--,this.iO.splice(this.bt,0,c)):(d=this.iO[this.bt],this.iO[this.bt]=c)}this.bt=(this.bt+1)%this.maxItems;c=VAh("iU5q-!O9@$",this.serialize());d&&c&&f(d);return c};
var CnH=function(c,f){this.lqG=f;try{var d=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(q){d=!1}d&&(this.index=r5r(c))},g6u=function(c,f,d,q,Z){var M=c.index?_.X9(c.lqG,function(){return y4l(c.index,hvz(f),d,q,Z)},"W"):"u";
c.lqG.yoG(M)},kDH=function(c,f,d){var q=_.C(c.index?_.X9(c.lqG,function(){return WuN(hvz(f),d)},"R"):["u"]),Z=q.next().value;
q=q.next().value;c.lqG.j4O(Z);return q};var O13={toString:function(c){var f=[],d=0;c-=-2147483648;f[d++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(c%52);for(c=Math.floor(c/52);c>0;)f[d++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(c%62),c=Math.floor(c/62);return f.join("")}};var Bby=function(c){c=lUo(c);for(var f=2654435769,d=2654435769,q=314159265,Z=c.length,M=Z,g=0,O=function(){f-=d;f-=q;f^=q>>>13;d-=q;d-=f;d^=f<<8;q-=f;q-=d;q^=d>>>13;f-=d;f-=q;f^=q>>>12;d-=q;d-=f;d^=f<<16;q-=f;q-=d;q^=d>>>5;f-=d;f-=q;f^=q>>>3;d-=q;d-=f;d^=f<<10;q-=f;q-=d;q^=d>>>15};M>=12;M-=12,g+=12)f+=sO_(c,g),d+=sO_(c,g+4),q+=sO_(c,g+8),O();
q+=Z;switch(M){case 11:q+=c[g+10]<<24;case 10:q+=c[g+9]<<16;case 9:q+=c[g+8]<<8;case 8:d+=c[g+7]<<24;case 7:d+=c[g+6]<<16;case 6:d+=c[g+5]<<8;case 5:d+=c[g+4];case 4:f+=c[g+3]<<24;case 3:f+=c[g+2]<<16;case 2:f+=c[g+1]<<8;case 1:f+=c[g]}O();return O13.toString(q)},lUo=function(c){for(var f=[],d=0;d<c.length;d++)f.push(c.charCodeAt(d));
return f},sO_=function(c,f){return c[f]+(c[f+1]<<8)+(c[f+2]<<16)+(c[f+3]<<24)};var yS=function(c){_.ES.call(this);this.cT=c;this.ztG=new _.BS};
_.K(yS,_.ES);var i13=function(c,f){var d=setTimeout(function(){c.ztG.resolve()},f);
c.addOnDisposeCallback(function(){return void clearTimeout(d)})};
yS.prototype.wOO=function(c,f){var d=this.ze(c);f==null||f(d);return _.X9(this.cT,function(){return _.$S(d,2)},this.cLM)};
var TbH=function(c,f,d,q){return _.X9(c.cT,function(){return d?c.wOO(f,q):c.ze(f,q)},c.xMq)},mxF=function(c,f,d,q){yS.call(this,c);
this.xQA=f;this.hPg=d;this.xMq="m";this.cLM="x";this.nPk=0;i13(this,q)};
_.K(mxF,yS);mxF.prototype.ze=function(c,f){var d=this;this.cT.w1(this.xMq);++this.nPk>=this.hPg&&this.ztG.resolve();var q=c();c=_.X9(this.cT,function(){return d.xQA(q)},"C");
if(c===void 0)throw new ZH(17,"YNJ:Undefined");if(!(c instanceof Uint8Array))throw new ZH(18,"ODM:Invalid");f==null||f(c);return c};
var H1K=function(c,f,d){yS.call(this,c);this.mO5=f;this.xMq="f";this.cLM="z";i13(this,d)};
_.K(H1K,yS);H1K.prototype.ze=function(){return this.mO5};
var A5r=function(c,f,d){yS.call(this,c);this.ybA=f;this.xMq="w";this.cLM="z";i13(this,d)};
_.K(A5r,yS);A5r.prototype.ze=function(){var c=this;return _.X9(this.cT,function(){return _.pr(c.ybA)},"d")};
A5r.prototype.wOO=function(){return this.ybA};
var YSv=function(c,f){yS.call(this,c);this.error=f;this.xMq="e";this.cLM="y"};
_.K(YSv,yS);var FA3=function(c,f){var d=(f(c.error.message)+":"+f(c.error.stack)).substring(0,2048);f=d.length+1;d=DlM(d);var q=new Uint8Array(4+d.length);q.set([42,f&127|128,f>>7,c.error.code]);q.set(d,4);return q};
YSv.prototype.ze=function(){if(this.osB)return this.osB;this.osB=FA3(this,function(c){return"_"+Bby(c)});
return FA3(this,function(c){return c})};
var tQ3=function(c,f,d){yS.call(this,c);this.dli=f;this.clientState=d;this.xMq="S";this.cLM="q"};
_.K(tQ3,yS);tQ3.prototype.ze=function(){var c=Math.floor(Date.now()/1E3),f=[Math.random()*255,Math.random()*255],d=f.concat([this.dli&255,this.clientState],[c>>24&255,c>>16&255,c>>8&255,c&255]);c=new Uint8Array(2+d.length);c[0]=34;c[1]=d.length;c.set(d,2);d=c.subarray(2);for(var q=f=f.length;q<d.length;++q)d[q]^=d[q%f];this.cT.f0v(this.clientState);return c};var b1v={nsX:3E4,jw2:2E4},W2=function(c){_.ES.call(this);var f=this;this.odO=new _.BS;this.fue=0;this.iJ=void 0;this.state=2;this.vm=c.vm;this.kv=c.kv;this.kAm=Object.assign({},b1v,c.kAm||{});this.vd=c.vm.cVm();var d;this.onError=(d=c.onError)!=null?d:function(){};
this.c4c=c.c4c||!1;if(KAH(c)){var q=this.vm;this.bvu=function(){return GVH(q).catch(function(g){g=f.reportError(new ZH(f.rT?20:32,"TRG:Disposed",g));f.iJ=g;var O;(O=f.rT)==null||O.dispose();f.rT=void 0;f.odO.reject(g)})};
c5H(q,function(){return void E63(f)});
q.lKP===2&&E63(this)}else this.bvu=c.qhm,E63(this);var Z=this.vd.share();Z.w1("o");var M=new ag_(Z,"o");this.odO.promise.then(function(){M.done();Z.fc();Z.dispose()},function(){return void Z.dispose()});
this.addOnDisposeCallback(function(){f.rT?(f.rT.dispose(),f.rT=void 0):f.iJ?f.vd.fc():(f.iJ=f.reportError(new ZH(32,"TNP:Disposed")),f.vd.fc(),f.odO.reject(f.iJ))});
_.ln(this,this.vd)};
_.K(W2,_.ES);W2.prototype.b5z=function(){return this.odO.promise};
var n6y=function(c,f){if(!(f instanceof ZH))if(f instanceof _.LF){var d=Error(f.toString());d.stack=f.stack;f=new ZH(11,"EBH:Error",d)}else f=new ZH(12,"BSO:Unknown",f);return c.reportError(f)},E63=function(c){var f,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J;
return _.k(function(X){switch(X.nextAddress){case 1:f=void 0;c.fue++;d=new _.BS;c.vm instanceof v2&&c.vm.t7Q.push(d.promise);if(!c.c4c){X.jumpTo(2);break}q=new _.BS;setTimeout(function(){return void q.resolve()});
return X.yield(q.promise,2);case 2:return Z=c.vd.share(),_.iY(X,4,5),c.state=5,M={},g=[],X.yield(t5(c.vm.snapshot({hI:M,jaf:g}),c.kAm.jw2,function(){return Promise.reject(new ZH(15,"MDA:Timeout"))}),7);
case 7:O=X.yieldResult;if(c.isDisposed())throw new ZH(c.rT?20:32,"MDA:Disposed");l=g[0];c.state=6;return X.yield(t5($xy(c.kv,O),c.kAm.nsX,function(){return Promise.reject(new ZH(10,"BWB:Timeout"))}),8);
case 8:m=X.yieldResult;if(c.isDisposed())throw new ZH(c.rT?20:32,"BWB:Disposed");c.state=7;f=_.X9(Z,function(){var W=QOr(c,m,d,l);W.ztG.promise.then(function(){return void c.bvu()});
return W},"i");
case 5:_.m0(X);Z.dispose();_.AD(X,6);break;case 4:H=_.Yw(X);(A=f)==null||A.dispose();if(!c.iJ){Y=n6y(c,H);d.resolve();var u;if(u=c.vm instanceof v2&&c.fue<2)a:if(H instanceof ZH)u=H.code!==32&&H.code!==20&&H.code!==10;else{if(H instanceof _.LF)switch(H.code){case 2:case 13:case 14:case 4:break;default:u=!1;break a}u=!0}if(u)return t=(1+Math.random()*.25)*(c.rT?6E4:1E3),E=setTimeout(function(){return void c.bvu()},t),c.addOnDisposeCallback(function(){return void clearTimeout(E)}),X.return();
c.iJ=Y}Z.logError(c.rT?13:14);c.odO.reject(c.iJ);return X.return();case 6:c.state=8,c.fue=0,(J=c.rT)==null||J.dispose(),c.rT=f,c.odO.resolve(),_.Fm(X)}})},QOr=function(c,f,d,q){var Z=lqr(f,2)*1E3;
if(Z<=0)throw new ZH(31,"TTM:Invalid");if(_.aW(f,4))return new A5r(c.vd,_.aW(f,4),Z);if(!lqr(f,3))return new H1K(c.vd,UEC(_.KS(f,1)),Z);if(!q)throw new ZH(4,"PMD:Undefined");q=q(UEC(_.KS(f,1)));if(!(q instanceof Function))throw new ZH(16,"APF:Failed");c.i2n=Math.floor((Date.now()+Z)/1E3);c=new mxF(c.vd,q,lqr(f,3),Z);c.addOnDisposeCallback(function(){return void d.resolve()});
return c};
W2.prototype.ze=function(c){return SSy(this,Object.assign({},c),!1)};
W2.prototype.wOO=function(c){return SSy(this,Object.assign({},c),!0)};
W2.prototype.hNz=function(c){if(c>150)return!1;try{return this.cache=new CnH(c,this.vd),!0}catch(f){return this.reportError(new ZH(22,"GBJ:init",f)),!1}};
W2.prototype.reportError=function(c){this.vd.logError(c.code);this.onError(c);return c};
var LAH=function(c,f){f=f instanceof ZH?f:new ZH(5,"TVD:error",f);return c.reportError(f)},SSy=function(c,f,d){try{if(c.isDisposed())throw new ZH(21,"BNT:disposed");
if(!c.rT&&c.iJ)throw c.iJ;var q,Z;return(Z=(q=zWO(c,f,d))!=null?q:J5v(c,f,d))!=null?Z:aU_(c,f,d)}catch(M){if(!f.k52)throw LAH(c,M);return VQH(c,d,M)}},zWO=function(c,f,d){var q;
return(q=c.rT)==null?void 0:TbH(q,function(){return XuF(c,f)},d,function(Z){var M;
if(c.rT instanceof mxF&&((M=f.kg)==null?0:M.wk5))try{var g;(g=c.cache)==null||g6u(g,XuF(c,f),Z,f.kg.tFg,c.i2n-120)}catch(O){c.reportError(new ZH(24,"ELX:write",O))}})},J5v=function(c,f,d){var q;
if((q=f.kg)!=null&&q.g4u)try{var Z,M=(Z=c.cache)==null?void 0:kDH(Z,XuF(c,f),f.kg.tFg);return M?d?_.X9(c.vd,function(){return _.$S(M,2)},"a"):M:void 0}catch(g){c.reportError(new ZH(23,"RXO:read",g))}},aU_=function(c,f,d){var q={stack:[],
error:void 0,hasError:!1};try{if(!f.rX9)throw new ZH(29,"SDF:notready");return TbH(xwl(q,new tQ3(c.vd,0,c.state)),function(){return XuF(c,f)},d)}catch(Z){q.error=Z,q.hasError=!0}finally{orz(q)}},VQH=function(c,f,d){var q={stack:[],
error:void 0,hasError:!1};try{var Z=LAH(c,d);return TbH(xwl(q,new YSv(c.vd,Z)),function(){return[]},f)}catch(M){q.error=M,q.hasError=!0}finally{orz(q)}},XuF=function(c,f){return f.x2e?f.x2e:f.hI?_.X9(c.vd,function(){return f.x2e=DlM(f.hI)},"c"):[]},KAH=function(c){return VF(function(f){if(!jh(f))return!1;
for(var d=_.C(Object.entries(c)),q=d.next();!q.done;q=d.next()){var Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;if(!(q in f)){if(Z.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Z(f[q]))return!1}return!0})}({vm:function(c){return VF(function(f){return f instanceof c})}(v2)},"");var uE3=function(){var c=_.gD();this.JSC$9859_streamzService=c;c.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",ZU("cookie_enabled"),ZU("cookie_3p_enabled"),_.rb("browser"))};
uE3.prototype.increment=function(c,f,d){this.JSC$9859_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",c,f,d)};
var A6n=function(){var c=_.gD();this.JSC$9883_streamzService=c;c.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Mx("tick"),ZU("from_st_cookie"))};
A6n.prototype.increment=function(c,f){this.JSC$9883_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",c,f)};
var v6T=function(){var c=_.gD();this.JSC$9889_streamzService=c;c.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.rb("status"))};
v6T.prototype.increment=function(c){this.JSC$9889_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",c)};
var hWv=function(){var c=_.gD();this.JSC$9892_streamzService=c;c.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.rb("stage"),ZU("is_using_ytd_player"),ZU("has_expandable_tiles"))};
hWv.prototype.increment=function(c,f,d){this.JSC$9892_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",c,f,d)};
var wur=function(){var c=_.gD();this.JSC$9895_streamzService=c;c.addNewCounter("/client_streamz/youtube/web/response_signature",_.rb("check_status"))};
wur.prototype.increment=function(c){this.JSC$9895_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/web/response_signature",c)};
var y5j=function(){var c=_.gD();this.JSC$9898_streamzService=c;c.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.rb("sig"),Mx("de"))};
y5j.prototype.increment=function(c,f){this.JSC$9898_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/web/e_sig_log",c,f)};
var WAv=function(){var c=_.gD();this.JSC$9901_streamzService=c;c.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.rb("sig"),Mx("de"))};
WAv.prototype.increment=function(c,f){this.JSC$9901_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/web/e_sig_en",c,f)};
_.DxT=function(){var c=_.gD();this.JSC$9904_streamzService=c;c.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.rb("action"))};
_.DxT.prototype.increment=function(c){this.JSC$9904_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/web/enforcement_intent",c)};var DH=window;var eW3=(new Date).getTime();_.zV.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.zV.createSet("action","cite","data","formaction","href","manifest","poster","src");var Nbv=function(c){this.servicePromise_=c;c.then((0,_.n1)(function(){},this),function(){},this)},IU3=function(c,f,d){c.servicePromise_.then(function(q){var Z=q[f];
if(!Z)throw Error("Ka`"+f);return Z.apply(q,d)})},UxF=function(c,f,d){for(var q=Array(arguments.length-2),Z=2;Z<arguments.length;Z++)q[Z-2]=arguments[Z];
Z=PnO(c,f).then(function(M){return M.apply(null,q)},function(M){M=Error("La`"+f+"`"+c,{cause:M});
delete RWo[f];return _.Je(M)});
return new Nbv(Z)},RWo={},PnO=function(c,f){var d=RWo[f];
if(d)return d;d=(d=_.D5(f))?_.sX(d):(new _.i6(function(q,Z){var M=(new $x(document)).createElement("SCRIPT");M.async=!0;_.oh(M,_.bX(WTy(c)));M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||q()};
M.onerror=function(g){Z(Error("Ma`"+f+"`"+c,{cause:g}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(M)})).then(function(){var q=_.D5(f);
if(!q)throw Error("Na`"+f+"`"+c);return q});
return RWo[f]=d};var puF={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},o63=function(){var c=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=evr(function(){return _.k(function(f){if(f.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?f.return(Promise.resolve()):f.yield(xxF(c),2);c.rsaForList.length>
0&&document.addEventListener("click",c.requestAccessForHelpPanel);_.Fm(f)})});
this.requestAccessForHelpPanel=function(){if(!(c.rsaForPromises.length>0)){for(var f=_.C(c.rsaForList),d=f.next();!d.done;d=f.next()){d=d.value;try{c.rsaForPromises.push(document.requestStorageAccessFor(d))}catch(q){}}Promise.all(c.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){c.reset()})}}};
o63.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var xxF=function(c){var f,d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:f=_.C(Object.values(puF)),d=f.next();case 2:if(d.done){M.jumpTo(0);break}q=d.value;_.iY(M,5);return M.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:q}),7);case 7:Z=M.yieldResult;Z.state!=="granted"&&c.rsaForList.push(q);_.Pq(M,3);break;case 5:_.Yw(M);M.jumpTo(0);break;case 3:d=f.next(),M.jumpTo(2)}})};(new o63).initialize();var GDv=function(c){this.JSC$9918_loader_=c};
GDv.prototype.startHelp=function(c){IU3(this.JSC$9918_loader_,"startHelp",arguments)};
GDv.prototype.JSC$9920_loadChatSupport=function(c){IU3(this.JSC$9918_loader_,"loadChatSupport",arguments)};
var fa3=function(c,f){f=f||{};c=UxF(coH,"help.service.Lazy.create",c,{apiKey:f.apiKey||f.apiKey,asxUiUri:f.asxUiUri||f.asxUiUri,environment:f.environment||f.environment,flow:f.flow||f.flow,frdProductData:f.frdProductData||f.frdProductData,frdProductDataSerializedJspb:f.frdProductDataSerializedJspb||f.frdProductDataSerializedJspb,helpCenterPath:f.helpCenterPath||f.helpCenterPath,locale:f.locale||f.locale||"en-US".replace(/-/g,"_"),nonce:f.nonce||f.nonce,productData:f.productData||f.productData,receiverUri:f.receiverUri||
f.receiverUri,renderApiUri:f.renderApiUri||f.renderApiUri,theme:f.theme||f.theme,window:f.window||f.window});return new GDv(c)},coH=new yO(Hae,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var daj=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(daj,_.d8);var juT=_.lX(daj);_.qTT=new function(c,f,d,q){this.configType=c;this.flagName=d;this.defaultValue=q;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 MhK=function(){this.retriever=_.ql().resolve(ZLo)};IMl(Node);IMl(Element);var roo=IMl(HTMLElement);IMl(SVGElement);var CmH,gk_,Ip,kZF;CmH=function(c){return typeof c.className=="string"?c.className:c.getAttribute&&c.getAttribute("class")||""};
gk_=function(c){return c.classList?c.classList:CmH(c).match(/\S+/g)||[]};
_.eW=function(c,f){typeof c.className=="string"?c.className=f:c.setAttribute&&c.setAttribute("class",f)};
_.NU=function(c,f){return c.classList?c.classList.contains(f):_.hP(gk_(c),f)};
_.q5=function(c,f){if(c.classList)c.classList.add(f);else if(!_.NU(c,f)){var d=CmH(c);_.eW(c,d+(d.length>0?" "+f:f))}};
Ip=function(c,f){if(c.classList)Array.prototype.forEach.call(f,function(Z){_.q5(c,Z)});
else{var d={};Array.prototype.forEach.call(gk_(c),function(Z){d[Z]=!0});
Array.prototype.forEach.call(f,function(Z){d[Z]=!0});
f="";for(var q in d)f+=f.length>0?" "+q:q;_.eW(c,f)}};
_.d_=function(c,f){c.classList?c.classList.remove(f):_.NU(c,f)&&_.eW(c,Array.prototype.filter.call(gk_(c),function(d){return d!=f}).join(" "))};
kZF=function(c,f){c.classList?Array.prototype.forEach.call(f,function(d){_.d_(c,d)}):_.eW(c,Array.prototype.filter.call(gk_(c),function(d){return!_.hP(f,d)}).join(" "))};var OLj=function(c){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=c.document},B$r=function(c,f){laT(c);
var d=document.createElement("div"),q;(q=f.parentNode)==null||q.insertBefore(d,f);d.tabIndex=0;d.id="fc-focus-trap-pre-div";d=document.createElement("div");var Z;(Z=f.parentNode)==null||Z.insertBefore(d,f.nextSibling);d.tabIndex=0;d.id="fc-focus-trap-post-div";var M=suK(c,f),g=suK(c,f,!0);M&&g&&(c.focusChangeHandler=function(){var O=c.document.activeElement;if(O)if(_.wb(f,O))c.previouslyFocusedElement=O;else if(O===c.document.activeElement)switch(c.previouslyFocusedElement){case M:g.focus();c.previouslyFocusedElement=
g;break;default:M.focus(),c.previouslyFocusedElement=M}},c.document.addEventListener("focus",c.focusChangeHandler,!0),c.document.addEventListener("focusin",c.focusChangeHandler))},laT=function(c){c.focusChangeHandler&&(document.removeEventListener("focus",c.focusChangeHandler,!0),document.removeEventListener("focusin",c.focusChangeHandler),c.focusChangeHandler=null);
var f;(f=document.getElementById("fc-focus-trap-pre-div"))==null||f.remove();var d;(d=document.getElementById("fc-focus-trap-post-div"))==null||d.remove()},iLr=function(c,f,d,q,Z){d=d===void 0?!0:d;
var M;Z=(M=Z===void 0?null:Z)!=null?M:suK(c,f,q===void 0?!1:q);Z!==null&&(Z.focus(),d&&B$r(c,f))};
OLj.prototype.disableButton=function(c,f){f=f===void 0?null:f;c.disabled=!0;f&&_.q5(c,f)};
var suK=function(c,f,d){d=d===void 0?!1:d;if(vpn(f)&&!d)return f;var q=d?[].slice.call(f.children,0).reverse():f.children;q=_.C(q);for(var Z=q.next();!Z.done;Z=q.next())if(Z=Z.value,roo(Z)&&(Z=suK(c,Z,d)))return Z;return vpn(f)&&d?f:null};var T$v=function(c){this.originalBodyOverflow="";this.JSC$9944_domHelper=tT(c)};
T$v.prototype.enableScrolling=function(){this.JSC$9944_domHelper.JSC$9268_document_.body.style.overflow=this.originalBodyOverflow};_.rn(_.$6,_.ES);_.r=_.$6.prototype;_.r.JSC$9947_id_=0;_.r.disposeInternal=function(){_.$6.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9945_listener_;delete this.handler_};
_.r.start=function(c){this.stop();this.JSC$9947_id_=SW(this.callback_,c!==void 0?c:this.JSC$9945_interval_)};
_.r.stop=function(){this.isActive()&&_.dz.clearTimeout(this.JSC$9947_id_);this.JSC$9947_id_=0};
_.r.fire=function(){this.stop();this.JSC$9947_doAction_()};
_.r.isActive=function(){return this.JSC$9947_id_!=0};
_.r.JSC$9947_doAction_=function(){this.JSC$9947_id_=0;this.JSC$9945_listener_&&this.JSC$9945_listener_.call(this.handler_)};_.r2=function(c){_.ES.call(this);this.handler_=c;this.JSC$9948_keys_={}};
_.rn(_.r2,_.ES);var mau=[];_.r2.prototype.listen=function(c,f,d,q){Array.isArray(f)||(f&&(mau[0]=f.toString()),f=mau);for(var Z=0;Z<f.length;Z++){var M=_.Lx(c,f[Z],d||this.handleEvent,q||!1,this.handler_||this);if(!M)break;this.JSC$9948_keys_[M.key]=M}return this};
_.r2.prototype.listenOnce=function(c,f,d,q){return HL3(this,c,f,d,q)};
var HL3=function(c,f,d,q,Z,M){if(Array.isArray(d))for(var g=0;g<d.length;g++)HL3(c,f,d[g],q,Z,M);else{f=nx(f,d,q||c.handleEvent,Z,M||c.handler_||c);if(!f)return c;c.JSC$9948_keys_[f.key]=f}return c};
_.r2.prototype.unlisten=function(c,f,d,q,Z){if(Array.isArray(f))for(var M=0;M<f.length;M++)this.unlisten(c,f[M],d,q,Z);else if(c=DOH(c,f,d||this.handleEvent,_.Ik(q)?!!q.capture:!!q,Z||this.handler_||this))$p(c),delete this.JSC$9948_keys_[c.key];return this};
_.r2.prototype.removeAll=function(){_.zV.forEach(this.JSC$9948_keys_,function(c,f){this.JSC$9948_keys_.hasOwnProperty(f)&&$p(c)},this);
this.JSC$9948_keys_={}};
_.r2.prototype.disposeInternal=function(){_.r2.superClass_.disposeInternal.call(this);this.removeAll()};
_.r2.prototype.handleEvent=function(){throw Error("Oa");};var P2=function(){_.ES.call(this);this.services_={}};
_.rn(P2,_.ES);P2.prototype.connect=function(c){c&&c()};
P2.prototype.isConnected=function(){return!0};
P2.prototype.registerService=function(c,f,d){this.services_[c]={callback:f,objectPayload:!!d}};
P2.prototype.getService=function(c,f){var d=this.services_[c];return d?d:this.defaultService_?{callback:_.Yt(this.defaultService_,c),objectPayload:_.Ik(f)}:null};
var Aoj=function(c,f){if(f&&typeof c==="string")try{return JSON.parse(c)}catch(d){return null}else if(!f&&typeof c!=="string")return(0,_.zo)(c);return c};
P2.prototype.disposeInternal=function(){P2.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 Rp=function(c,f){this.sequence_=[];this.onCancelFunction_=c;this.defaultScope_=f||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};
Rp.prototype.cancel=function(c){if(this.fired_)this.result_ instanceof Rp&&this.result_.cancel();else{if(this.parent_){var f=this.parent_;delete this.parent_;c?f.cancel(c):(f.branches_--,f.branches_<=0&&f.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new UA(this))}};
Rp.prototype.continue_=function(c,f){this.blocked_=!1;YTu(this,c,f)};
var YTu=function(c,f,d){c.fired_=!0;c.result_=d;c.hadError_=!f;FKK(c)},bLT=function(c){if(c.fired_){if(!c.silentlyCanceled_)throw new th_(c);
c.silentlyCanceled_=!1}};
Rp.prototype.callback=function(c){bLT(this);YTu(this,!0,c)};
Rp.prototype.errback=function(c){bLT(this);YTu(this,!1,c)};
var KKj=function(c,f,d){pF(c,f,null,d)};
Rp.prototype.finally=function(c){var f=this;return Ekj(new Promise(function(d,q){pF(f,function(Z){c();d(Z)},function(Z){c();
q(Z)})}))};
var pF=function(c,f,d,q){var Z=c.fired_;Z||(f===d?f=d=EA(f):(f=EA(f),d=EA(d)));c.sequence_.push([f,d,q]);Z&&FKK(c)};
Rp.prototype.then=function(c,f,d){var q,Z,M=new _.i6(function(g,O){Z=g;q=O});
pF(this,Z,function(g){g instanceof UA?M.cancel():q(g);return nko},this);
return M.then(c,f,d)};
xO3(Rp);var $ao=function(c,f){f instanceof Rp?KKj(c,(0,_.n1)(f.branch,f)):KKj(c,function(){return f})};
Rp.prototype.branch=function(c){var f=new Rp;pF(this,f.callback,f.errback,f);c&&(f.parent_=this,this.branches_++);return f};
Rp.prototype.isError=function(c){return c instanceof Error};
var QuF=function(c){return R7(c.sequence_,function(f){return typeof f[1]==="function"})},nko={},FKK=function(c){if(c.unhandledErrorId_&&c.fired_&&QuF(c)){var f=c.unhandledErrorId_,d=STo[f];
d&&(_.dz.clearTimeout(d.JSC$9965_id_),delete STo[f]);c.unhandledErrorId_=0}c.parent_&&(c.parent_.branches_--,delete c.parent_);f=c.result_;for(var q=d=!1;c.sequence_.length&&!c.blocked_;){var Z=c.sequence_.shift(),M=Z[0],g=Z[1];Z=Z[2];if(M=c.hadError_?g:M)try{var O=M.call(Z||c.defaultScope_,f);O===nko&&(O=void 0);O!==void 0&&(c.hadError_=c.hadError_&&(O==f||c.isError(O)),c.result_=f=O);if(owF(f)||typeof _.dz.Promise==="function"&&f instanceof _.dz.Promise)q=!0,c.blocked_=!0}catch(l){f=l,c.hadError_=
!0,QuF(c)||(d=!0)}}c.result_=f;q&&(O=(0,_.n1)(c.continue_,c,!0),q=(0,_.n1)(c.continue_,c,!1),f instanceof Rp?(pF(f,O,q),f.blocking_=!0):f.then(O,q));d&&(f=new LKu(f),STo[f.JSC$9965_id_]=f,c.unhandledErrorId_=f.JSC$9965_id_)},Ekj=function(c){var f=new Rp;
c.then(function(d){f.callback(d)},function(d){f.errback(d)});
return f},th_=function(){_.cN.call(this)};
_.rn(th_,_.cN);th_.prototype.message="Deferred has already fired";th_.prototype.name="AlreadyCalledError";var UA=function(){_.cN.call(this)};
_.rn(UA,_.cN);UA.prototype.message="Deferred was canceled";UA.prototype.name="CanceledError";var LKu=function(c){this.JSC$9965_id_=_.dz.setTimeout((0,_.n1)(this.throwError,this),0);this.JSC$9965_error_=c};
LKu.prototype.throwError=function(){delete STo[this.JSC$9965_id_];throw this.JSC$9965_error_;};
var STo={};var zEv={1:"NativeMessagingTransport"},JoO=["pu","lru","pru","lpu","ppu"],Vhu=function(){for(var c=10,f=aar,d=f.length,q="";c-- >0;)q+=f.charAt(Math.floor(Math.random()*d));return q},aar="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var xo=function(c){_.ES.call(this);this.JSC$9968_domHelper_=c||tT()};
_.rn(xo,_.ES);xo.prototype.transportType=0;xo.prototype.getWindow=function(){return this.JSC$9968_domHelper_.getWindow()};
xo.prototype.getName=function(){return zEv[String(this.transportType)]||""};var op=function(c,f,d,q,Z){xo.call(this,d);this.JSC$9971_channel_=c;this.protocolVersion_=Z||2;this.peerHostname_=f||"*";this.JSC$9971_eventHandler_=new _.r2(this);this.maybeAttemptToConnectTimer_=new _.MT(100,this.getWindow());this.oneSidedHandshake_=!!q;this.setupAckReceived_=new Rp;this.setupAckSent_=new Rp;this.JSC$9971_connected_=new Rp;this.endpointId_=Vhu();this.peerEndpointId_=null;this.oneSidedHandshake_?XVO(this.JSC$9971_channel_)==1?$ao(this.JSC$9971_connected_,this.setupAckReceived_):
$ao(this.JSC$9971_connected_,this.setupAckSent_):($ao(this.JSC$9971_connected_,this.setupAckReceived_),this.protocolVersion_==2&&$ao(this.JSC$9971_connected_,this.setupAckSent_));KKj(this.JSC$9971_connected_,this.notifyConnected_,this);this.JSC$9971_connected_.callback(!0);this.JSC$9971_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.rn(op,xo);op.prototype.peerProtocolVersion_=null;op.prototype.initialized_=!1;op.prototype.transportType=1;var uCT={};op.prototype.sendTimerId_=0;
var wVH=function(c){var f=c.event_.data;if(typeof f!=="string")return!1;var d=f.indexOf("|"),q=f.indexOf(":");if(d==-1||q==-1)return!1;var Z=f.substring(0,d);d=f.substring(d+1,q);f=f.substring(q+1);if(q=Go[Z])return q.xpcDeliver(d,f,c.event_.origin),!0;q=vk3(f)[0];for(var M in Go){var g=Go[M];if(XVO(g)==1&&!g.isConnected()&&d=="tp"&&(q=="SETUP"||q=="SETUP_NTPV2")&&hET(g,c.event_.origin))return delete Go[g.name],g.name=Z,Go[Z]=g,g.xpcDeliver(d,f),!0}return!1},yoj=function(c){c.protocolVersion_!=2||
c.peerProtocolVersion_!=null&&c.peerProtocolVersion_!=2||c.send("tp","SETUP_NTPV2,"+c.endpointId_);
c.peerProtocolVersion_!=null&&c.peerProtocolVersion_!=1||c.send("tp","SETUP")},WK3=function(c,f){if(c.protocolVersion_!=2||c.peerProtocolVersion_!=null&&c.peerProtocolVersion_!=2||f!=2){if(c.peerProtocolVersion_!=null&&c.peerProtocolVersion_!=1||f!=1)return;
c.send("tp","SETUP_ACK")}else c.send("tp","SETUP_ACK_NTPV2");c.setupAckSent_.fired_||c.setupAckSent_.callback(!0)},Dao=function(c,f){f>c.peerProtocolVersion_&&(c.peerProtocolVersion_=f);
c.peerProtocolVersion_==1&&(c.setupAckSent_.fired_||c.oneSidedHandshake_||c.setupAckSent_.callback(!0),c.peerEndpointId_=null)};
_.r=op.prototype;_.r.connect=function(){var c=this.getWindow(),f=_.Rk(c),d=uCT[f];typeof d!=="number"&&(d=0);d==0&&_.Lx(c.postMessage?c:c.document,"message",wVH,!1,op);uCT[f]=d+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.r.maybeAttemptToConnect_=function(){var c=XVO(this.JSC$9971_channel_)==0;this.oneSidedHandshake_&&c||this.JSC$9971_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),yoj(this))};
_.r.send=function(c,f){var d=this.JSC$9971_channel_.peerWindowObject_;d&&(this.send=function(q,Z){var M=this,g=this.JSC$9971_channel_.name;this.sendTimerId_=SW(function(){M.sendTimerId_=0;try{var O=d.postMessage?d:d.document;O.postMessage&&O.postMessage(g+"|"+q+":"+Z,M.peerHostname_)}catch(l){}},0)},this.send(c,f))};
_.r.notifyConnected_=function(){var c=this.JSC$9971_channel_,f=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;c.isConnected()||c.connectionDelay_&&c.connectionDelay_.isActive()||(c.state_=2,_.GV(c.connectionDelay_),f!==void 0?(c.connectionDelay_=new _.$6(c.connectCb_,f),c.connectionDelay_.start()):(c.connectionDelay_=null,c.connectCb_()))};
_.r.disposeInternal=function(){if(this.initialized_){var c=this.getWindow(),f=_.Rk(c),d=uCT[f];uCT[f]=d-1;d==1&&_.bp(c.postMessage?c:c.document,"message",wVH,!1,op)}this.sendTimerId_&&(_.dz.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.GV(this.JSC$9971_eventHandler_);delete this.JSC$9971_eventHandler_;_.GV(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9971_connected_.cancel();delete this.JSC$9971_connected_;delete this.send;op.superClass_.disposeInternal.call(this)};
var vk3=function(c){c=c.split(",");c[1]=c[1]||null;return c};var N$3;_.cf=function(c){if(c.getValues&&typeof c.getValues=="function")return c.getValues();if(typeof Map!=="undefined"&&c instanceof Map||typeof Set!=="undefined"&&c instanceof Set)return Array.from(c.values());if(typeof c==="string")return c.split("");if(_.WN(c)){for(var f=[],d=c.length,q=0;q<d;q++)f.push(c[q]);return f}return _.zV.getValues(c)};
_.eEH=function(c){if(c.getKeys&&typeof c.getKeys=="function")return c.getKeys();if(!c.getValues||typeof c.getValues!="function"){if(typeof Map!=="undefined"&&c instanceof Map)return Array.from(c.keys());if(!(typeof Set!=="undefined"&&c instanceof Set)){if(_.WN(c)||typeof c==="string"){var f=[];c=c.length;for(var d=0;d<c;d++)f.push(d);return f}return _.zV.getKeys(c)}}};
N$3=function(c,f,d){if(c.forEach&&typeof c.forEach=="function")c.forEach(f,d);else if(_.WN(c)||typeof c==="string")Array.prototype.forEach.call(c,f,d);else for(var q=_.eEH(c),Z=_.cf(c),M=Z.length,g=0;g<M;g++)f.call(d,Z[g],q&&q[g],c)};var bmk,r3,g3,ok_,Ia_,RE3,Pmu,xa3,Uay;
_.xn=function(c,f){this.JSC$9976_domain_=this.userInfo_=this.scheme_="";this.JSC$9976_port_=null;this.fragment_=this.JSC$9976_path_="";this.JSC$9976_ignoreCase_=!1;var d;c instanceof _.xn?(this.JSC$9976_ignoreCase_=f!==void 0?f:c.JSC$9976_ignoreCase_,_.f0(this,c.scheme_),this.userInfo_=c.userInfo_,_.d3(this,c.JSC$9976_domain_),_.jn(this,c.JSC$9976_port_),_.qK(this,c.getPath()),_.Zk(this,c.JSC$9976_queryData_.clone()),_.MK(this,c.fragment_)):c&&(d=_.x5(String(c)))?(this.JSC$9976_ignoreCase_=!!f,_.f0(this,
d[1]||"",!0),this.userInfo_=r3(d[2]||""),_.d3(this,d[3]||"",!0),_.jn(this,d[4]),_.qK(this,d[5]||"",!0),_.Zk(this,d[6]||"",!0),_.MK(this,d[7]||"",!0)):(this.JSC$9976_ignoreCase_=!!f,this.JSC$9976_queryData_=new _.C0(null,this.JSC$9976_ignoreCase_))};
_.xn.prototype.toString=function(){var c=[],f=this.scheme_;f&&c.push(g3(f,Ia_,!0),":");var d=this.JSC$9976_domain_;if(d||f=="file")c.push("//"),(f=this.userInfo_)&&c.push(g3(f,Ia_,!0),"@"),c.push(_.ND(d).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),d=this.JSC$9976_port_,d!=null&&c.push(":",String(d));if(d=this.getPath())this.JSC$9976_domain_&&d.charAt(0)!="/"&&c.push("/"),c.push(g3(d,d.charAt(0)=="/"?Pmu:RE3,!0));(d=this.JSC$9976_queryData_.toString())&&c.push("?",d);(d=this.fragment_)&&c.push("#",g3(d,
Uay));return c.join("")};
_.xn.prototype.resolve=function(c){var f=this.clone(),d=!!c.scheme_;d?_.f0(f,c.scheme_):d=!!c.userInfo_;d?f.userInfo_=c.userInfo_:d=!!c.JSC$9976_domain_;d?_.d3(f,c.JSC$9976_domain_):d=c.JSC$9976_port_!=null;var q=c.getPath();if(d)_.jn(f,c.JSC$9976_port_);else if(d=!!c.JSC$9976_path_){if(q.charAt(0)!="/")if(this.JSC$9976_domain_&&!this.JSC$9976_path_)q="/"+q;else{var Z=f.getPath().lastIndexOf("/");Z!=-1&&(q=f.getPath().slice(0,Z+1)+q)}Z=q;if(Z==".."||Z==".")q="";else if(_.OC(Z,"./")||_.OC(Z,"/.")){q=
_.Z4(Z,"/");Z=Z.split("/");for(var M=[],g=0;g<Z.length;){var O=Z[g++];O=="."?q&&g==Z.length&&M.push(""):O==".."?((M.length>1||M.length==1&&M[0]!="")&&M.pop(),q&&g==Z.length&&M.push("")):(M.push(O),q=!0)}q=M.join("/")}else q=Z}d?_.qK(f,q):d=c.JSC$9976_queryData_.toString()!=="";d?_.Zk(f,c.JSC$9976_queryData_.clone()):d=!!c.fragment_;d&&_.MK(f,c.fragment_);return f};
_.xn.prototype.clone=function(){return new _.xn(this)};
_.f0=function(c,f,d){c.scheme_=d?r3(f,!0):f;c.scheme_&&(c.scheme_=c.scheme_.replace(/:$/,""));return c};
_.d3=function(c,f,d){c.JSC$9976_domain_=d?r3(f,!0):f;return c};
_.jn=function(c,f){if(f){f=Number(f);if(isNaN(f)||f<0)throw Error("Pa`"+f);c.JSC$9976_port_=f}else c.JSC$9976_port_=null;return c};
_.xn.prototype.getPath=function(){return this.JSC$9976_path_};
_.qK=function(c,f,d){c.JSC$9976_path_=d?r3(f,!0):f;return c};
_.Zk=function(c,f,d){f instanceof _.C0?(c.JSC$9976_queryData_=f,pV_(c.JSC$9976_queryData_,c.JSC$9976_ignoreCase_)):(d||(f=g3(f,xa3)),c.JSC$9976_queryData_=new _.C0(f,c.JSC$9976_ignoreCase_));return c};
_.Nx=function(c,f,d){c.JSC$9976_queryData_.set(f,d);return c};
_.eQ=function(c,f){return c.JSC$9976_queryData_.get(f)};
_.MK=function(c,f,d){c.fragment_=d?r3(f):f;return c};
_.kG=function(c){_.Nx(c,"zx",Wu());return c};
_.DU=function(c,f){return c instanceof _.xn?c.clone():new _.xn(c,f)};
bmk=function(c,f){c instanceof _.xn||(c=_.DU(c));f instanceof _.xn||(f=_.DU(f));return c.resolve(f)};
r3=function(c,f){return c?f?decodeURI(c.replace(/%25/g,"%2525")):decodeURIComponent(c):""};
g3=function(c,f,d){return typeof c==="string"?(c=encodeURI(c).replace(f,ok_),d&&(c=c.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c):null};
ok_=function(c){c=c.charCodeAt(0);return"%"+(c>>4&15).toString(16)+(c&15).toString(16)};
Ia_=/[#\/\?@]/g;RE3=/[#\?:]/g;Pmu=/[#\?]/g;xa3=/[#\?@]/g;Uay=/#/g;_.C0=function(c,f){this.count_=this.keyMap_=null;this.encodedQuery_=c||null;this.JSC$9977_ignoreCase_=!!f};
_.OK=function(c){c.keyMap_||(c.keyMap_=new Map,c.count_=0,c.encodedQuery_&&h3F(c.encodedQuery_,function(f,d){c.add(fD(f),d)}))};
_.r=_.C0.prototype;_.r.getCount=function(){_.OK(this);return this.count_};
_.r.add=function(c,f){_.OK(this);this.encodedQuery_=null;c=lJ(this,c);var d=this.keyMap_.get(c);d||this.keyMap_.set(c,d=[]);d.push(f);this.count_+=1;return this};
_.r.remove=function(c){_.OK(this);c=lJ(this,c);return this.keyMap_.has(c)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(c).length,this.keyMap_.delete(c)):!1};
_.r.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.r.isEmpty=function(){_.OK(this);return this.count_==0};
_.r.containsKey=function(c){_.OK(this);c=lJ(this,c);return this.keyMap_.has(c)};
_.r.containsValue=function(c){var f=this.getValues();return _.hP(f,c)};
_.r.forEach=function(c,f){_.OK(this);this.keyMap_.forEach(function(d,q){d.forEach(function(Z){c.call(f,Z,q,this)},this)},this)};
_.r.getKeys=function(){_.OK(this);for(var c=Array.from(this.keyMap_.values()),f=Array.from(this.keyMap_.keys()),d=[],q=0;q<f.length;q++)for(var Z=c[q],M=0;M<Z.length;M++)d.push(f[q]);return d};
_.r.getValues=function(c){_.OK(this);var f=[];if(typeof c==="string")this.containsKey(c)&&(f=f.concat(this.keyMap_.get(lJ(this,c))));else{c=Array.from(this.keyMap_.values());for(var d=0;d<c.length;d++)f=f.concat(c[d])}return f};
_.r.set=function(c,f){_.OK(this);this.encodedQuery_=null;c=lJ(this,c);this.containsKey(c)&&(this.count_-=this.keyMap_.get(c).length);this.keyMap_.set(c,[f]);this.count_+=1;return this};
_.r.get=function(c,f){if(!c)return f;c=this.getValues(c);return c.length>0?String(c[0]):f};
_.GZr=function(c,f,d){c.remove(f);d.length>0&&(c.encodedQuery_=null,c.keyMap_.set(lJ(c,f),_.yn(d)),c.count_+=d.length)};
_.C0.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var c=[],f=Array.from(this.keyMap_.keys()),d=0;d<f.length;d++){var q=f[d],Z=_.ND(q);q=this.getValues(q);for(var M=0;M<q.length;M++){var g=Z;q[M]!==""&&(g+="="+_.ND(q[M]));c.push(g)}}return this.encodedQuery_=c.join("&")};
_.C0.prototype.clone=function(){var c=new _.C0;c.encodedQuery_=this.encodedQuery_;this.keyMap_&&(c.keyMap_=new Map(this.keyMap_),c.count_=this.count_);return c};
var lJ=function(c,f){f=String(f);c.JSC$9977_ignoreCase_&&(f=f.toLowerCase());return f},pV_=function(c,f){f&&!c.JSC$9977_ignoreCase_&&(_.OK(c),c.encodedQuery_=null,c.keyMap_.forEach(function(d,q){var Z=q.toLowerCase();
q!=Z&&(this.remove(q),_.GZr(this,Z,d))},c));
c.JSC$9977_ignoreCase_=f};
_.C0.prototype.extend=function(c){for(var f=0;f<arguments.length;f++)N$3(arguments[f],function(d,q){this.add(q,d)},this)};var sK=function(c,f){P2.call(this);for(var d=0,q;q=JoO[d];d++)if(q in c&&!/^https?:\/\//.test(c[q]))throw Error("Ra`"+c[q]+"`"+q);this.cfg_=c;this.name=this.cfg_.cn||Vhu();this.JSC$9972_domHelper_=f||tT();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.r2(this);c.lpu=c.lpu||uiF(this.JSC$9972_domHelper_.getWindow().location.href)+"/robots.txt";c.ppu=c.ppu||uiF(c.pu||"")+"/robots.txt";Go[this.name]=this;DOH(window,"unload",ckF)||nx(window,"unload",ckF)};
_.rn(sK,P2);var f5r=RegExp("^%*tp$"),dDv=RegExp("^%+tp$");_.r=sK.prototype;_.r.connectionDelay_=null;_.r.peerWindowDeferred_=null;_.r.transport_=null;_.r.state_=1;_.r.isConnected=function(){return this.state_==2};
_.r.peerWindowObject_=null;_.r.iframeElement_=null;_.r.connect=function(c){this.connectCb_=c||_.tq;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?KKj(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.r.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9972_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var c=this.iframeElement_.contentWindow;c||(c=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=c}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$9972_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new op(this,this.cfg_.ph,this.JSC$9972_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()()};
_.r.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.GV(this.transport_);this.connectCb_=this.transport_=null;_.GV(this.connectionDelay_);this.connectionDelay_=null};
_.r.send=function(c,f){if(this.isConnected()){try{var d=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Z){d=!1}if(d){_.Ik(f)&&(f=(0,_.zo)(f));d=this.transport_;var q=d.send;f5r.test(c)&&(c="%"+c);c=c.replace(/[%:|]/g,encodeURIComponent);q.call(d,c,f)}else this.close()}};
_.r.xpcDeliver=function(c,f,d){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.n1)(this.xpcDeliver,this,c,f,d));else if(hET(this,d)&&!this.isDisposed()&&this.state_!=3)if(c&&c!="tp")this.isConnected()&&(c=c.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),c=dDv.test(c)?c.substring(1):c,c=this.getService(c,f))&&(f=Aoj(f,c.objectPayload),f!=null&&c.callback(f));else switch(c=this.transport_,d=vk3(f),f=d[1],d[0]){case "SETUP_ACK":Dao(c,1);c.setupAckReceived_.fired_||c.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":c.protocolVersion_==2&&(Dao(c,2),c.setupAckReceived_.fired_||c.setupAckReceived_.callback(!0));break;case "SETUP":Dao(c,1);WK3(c,1);break;case "SETUP_NTPV2":c.protocolVersion_==2&&(d=c.peerProtocolVersion_,Dao(c,2),WK3(c,2),d!=1&&c.peerEndpointId_==null||c.peerEndpointId_==f||yoj(c),c.peerEndpointId_=f)}};
var XVO=function(c){var f=c.cfg_.role;return typeof f==="number"?f:window.parent==c.peerWindowObject_?1:0},hET=function(c,f){var d=c.cfg_.ph;
return _.gz(f==null?"":String(f))||_.gz(d==null?"":String(d))||f==c.cfg_.ph};
sK.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Go[this.name];_.GV(this.peerLoadHandler_);delete this.peerLoadHandler_;sK.superClass_.disposeInternal.call(this)};
var ckF=function(){for(var c in Go)_.GV(Go[c])},Go={};var q6r=function(c,f){this.JSC$9986_win=c;this.allowAdsHttpEndpoint=f;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$9986_domHelper=tT(c);this.scrollManager=new T$v(c);this.accessibilityManager=new OLj(c);jwF(this)},jwF=function(c){var f=function(){c.allowAdsPopup&&c.allowAdsPopup.style.setProperty("display","none","important");
c.wallElement.style.setProperty("display","","important");laT(c.accessibilityManager);iLr(c.accessibilityManager,c.wallElement.querySelector(".fc-dialog-container"),!1,!1,c.wallElement.querySelector(".fc-button-whitelist"));c.scrollManager.enableScrolling()};
c.allowAdsPopup=c.JSC$9986_domHelper.JSC$9270_createDom("DIV",{"class":"fc-whitelist-root"});c.allowAdsPopup.style.setProperty("display","none","important");c.JSC$9986_domHelper.appendChild(c.JSC$9986_domHelper.JSC$9268_document_.body,c.allowAdsPopup);var d=c.JSC$9986_domHelper.JSC$9270_createDom("DIV",{"class":"fc-dialog-overlay"});c.JSC$9986_domHelper.appendChild(c.allowAdsPopup,d);var q=c.JSC$9986_domHelper.JSC$9270_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:f});c.JSC$9986_domHelper.appendChild(c.allowAdsPopup,
q);d=c.JSC$9986_domHelper.JSC$9270_createDom("IFRAME");d.className="fc-whitelist-dialog";d.frameBorder="0";d.id="fc-whitelist-iframe";d.tabIndex="0";_.NS(d,c.allowAdsHttpEndpoint);c.JSC$9986_domHelper.appendChild(q,d);q={};q.pu=_.Kq(c.allowAdsHttpEndpoint).toString();q.tp=1;q.cn="fc-whitelist-channel";q.ifrid=d.id;q.osh=!0;c.allowAdsCrossPageChannel=new sK(q);c.allowAdsCrossPageChannel.registerService("close",f);c.allowAdsCrossPageChannel.registerService("refresh",function(){c.JSC$9986_win.location.reload()});
c.allowAdsCrossPageChannel.registerService("resize",function(Z){if(Z){var M=c.allowAdsPopup.querySelector(".fc-whitelist-dialog");Z.width&&M.style.setProperty("width",Z.width,"important");Z.height&&M.style.setProperty("height",Z.height,"important")}},!0);
c.allowAdsCrossPageChannel.connect()};
q6r.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$9986_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var iJ=window,Te=document,Z9T=iJ.location,MZO=function(){},rkF=/\[native code\]/,m6=function(c,f,d){return c[f]=c[f]||d},CdF=function(c){c=c.sort();
for(var f=[],d=void 0,q=0;q<c.length;q++){var Z=c[q];Z!=d&&f.push(Z);d=Z}return f},Hf=function(){var c;
if((c=Object.create)&&rkF.test(c))c=c(null);else{c={};for(var f in c)c[f]=void 0}return c},AM=m6(iJ,"gapi",{});var YG={};YG=m6(iJ,"___jsl",Hf());m6(YG,"I",0);m6(YG,"hel",10);var g5y=function(){var c=Z9T.href;if(YG.dpo)var f=YG.h;else{f=YG.h;var d=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),q=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(c=c&&(d.exec(c)||q.exec(c)))try{f=decodeURIComponent(c[2])}catch(Z){}}return f},k4_=function(c){var f=m6(YG,"PQ",[]);
YG.PQ=[];var d=f.length;if(d===0)c();else for(var q=0,Z=function(){++q===d&&c()},M=0;M<d;M++)f[M](Z)},O9F=function(c){return m6(m6(YG,"H",Hf()),c,Hf())};var Fl=function(c){this.JSC$9988_obj_=c};
Fl.prototype.value=function(){return this.JSC$9988_obj_};
Fl.prototype.getWidth=function(){return this.JSC$9988_obj_.width};
Fl.prototype.getHeight=function(){return this.JSC$9988_obj_.height};
Fl.prototype.getStyle=function(){return this.JSC$9988_obj_.style};var l5u=function(c){this.JSC$9991_obj_=c||{}};
_.r=l5u.prototype;_.r.value=function(){return this.JSC$9991_obj_};
_.r.setUrl=function(c){this.JSC$9991_obj_.url=c;return this};
_.r.getUrl=function(){return this.JSC$9991_obj_.url};
_.r.getStyle=function(){return this.JSC$9991_obj_.style};
_.r.getId=function(){return this.JSC$9991_obj_.id};
_.r.getContext=function(){return this.JSC$9991_obj_.context};
var swH=function(c){c.JSC$9991_obj_.attributes=c.JSC$9991_obj_.attributes||{};return new Fl(c.JSC$9991_obj_.attributes)};var Bio=function(){l5u.apply(this,arguments)};
_.K(Bio,l5u);var i9r=m6(YG,"perf",Hf());m6(i9r,"g",Hf());var Ti_=m6(i9r,"i",Hf());m6(i9r,"r",[]);Hf();Hf();var H9K=function(c,f,d){f&&f.length>0&&(f=mDy(f),d&&d.length>0&&(f+="___"+mDy(d)),f.length>28&&(f=f.substr(0,28)+(f.length-28)),d=f,f=m6(Ti_,"_p",Hf()),m6(f,d,Hf())[c]=(new Date).getTime(),f=i9r.r,typeof f==="function"?f(c,"_p",d):f.push([c,"_p",d]))},mDy=function(c){return c.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Ak_=Hf(),Y6_=[],tM=function(c){throw Error("Ua`"+c);};
Y6_.push(["jsl",function(c){for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var d=c[f];typeof d=="object"?YG[f]=m6(YG,f,[]).concat(d):m6(YG,f,d)}if(f=c.u)c=m6(YG,"us",[]),c.push(f),(f=/^https:(.*)$/.exec(f))&&c.push("http:"+f[1])}]);
var FfK=/^(\/[a-zA-Z0-9_\-]+)+$/,tZ_=[/\/amp\//,/\/amp$/,/^\/amp$/],b9_=/^[a-zA-Z0-9\-_\.,!]+$/,Kf_=/^gapi\.loaded_[0-9]+$/,E5u=/^[a-zA-Z0-9,._-]+$/,S6u=function(c,f,d,q,Z){var M=c.split(";"),g=M.shift(),O=Ak_[g],l=null;O?l=O(M,f,d,q):tM("no hint processor for: "+g);l||tM("failed to generate load url");f=l;d=f.match(n5F);(q=f.match($DO))&&q.length===1&&QwH.test(f)&&d&&d.length===1||tM("failed sanity: "+c);try{c="?";if(Z&&Z.length>0){nl4(Z);var m=Z.join(",");l=l+"?le="+m;c="&"}if(YG.rol){var H=YG.ol;
H&&H.length&&(l=""+l+c+"ol="+H.length)}}catch(A){}return l},JkK=function(c,f,d,q){c=Lfr(c);
Kf_.test(d)||tM("invalid_callback");f=zry(f);q=q&&q.length?zry(q):null;var Z=function(M){return encodeURIComponent(M).replace(/%2C/g,",")};
return[encodeURIComponent(c.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Z(c.version),"/m=",Z(f),q?"/exm="+Z(q):"","/rt=j/sv=1/d=1/ed=1",c.activeMods?"/am="+Z(c.activeMods):"",c.resourceSig?"/rs="+Z(c.resourceSig):"",c.zcms?"/t="+Z(c.zcms):"","/cb=",Z(d)].join("")},Lfr=function(c){c.charAt(0)!=="/"&&tM("relative path");
for(var f=c.substring(1).split("/"),d=[];f.length;){c=f.shift();if(!c.length||c.indexOf(".")==0)tM("empty/relative directory");else if(c.indexOf("=")>0){f.unshift(c);break}d.push(c)}c={};for(var q=0,Z=f.length;q<Z;++q){var M=f[q].split("="),g=decodeURIComponent(M[0]),O=decodeURIComponent(M[1]);M.length==2&&g&&O&&(c[g]=c[g]||O)}f="/"+d.join("/");FfK.test(f)||tM("invalid_prefix");d=0;for(q=tZ_.length;d<q;++d)tZ_[d].test(f)&&tM("invalid_prefix");d=a5o(c,"k",!0);q=a5o(c,"am");Z=a5o(c,"rs");c=a5o(c,"t");
return{pathPrefix:f,version:d,activeMods:q,resourceSig:Z,zcms:c}},zry=function(c){for(var f=[],d=0,q=c.length;d<q;++d){var Z=c[d].replace(/\./g,"_").replace(/-/g,"_");
E5u.test(Z)&&f.push(Z)}return f.join(",")},a5o=function(c,f,d){c=c[f];
!c&&d&&tM("missing: "+f);if(c){if(b9_.test(c))return c;tM("invalid: "+f)}return null},QwH=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,$DO=/\/cb=/g,n5F=/\/\//g;
Ak_.m=function(c,f,d,q){(c=c[0])||tM("missing_hint");return"https://apis.google.com"+JkK(c,f,d,q)};
var VZ3=decodeURI("%73cript"),XCT=/^[-+_0-9\/A-Za-z]+={0,2}$/,urF=function(c,f){for(var d=[],q=0;q<c.length;++q){var Z=c[q],M;if(M=Z){a:{for(M=0;M<f.length;M++)if(f[M]===Z)break a;M=-1}M=M<0}M&&d.push(Z)}return d},v5H=function(){var c=YG.nonce;
return c!==void 0?c&&c===String(c)&&c.match(XCT)?c:YG.nonce=null:Te.querySelector?(c=Te.querySelector("script[nonce]"))?(c=c.nonce||c.getAttribute("nonce")||"",c&&c===String(c)&&c.match(XCT)?YG.nonce=c:YG.nonce=null):null:null},yko=function(c){if(Te.readyState!="loading")hr_(c);
else{var f=v5H(),d="";f!==null&&(d=' nonce="'+f+'"');c="<"+VZ3+' src="'+encodeURI(c)+'"'+d+"></"+VZ3+">";Te.write(wC3?wC3.createHTML(c):c)}},hr_=function(c){var f=Te.createElement(VZ3);
f.setAttribute("src",wC3?wC3.createScriptURL(c):c);c=v5H();c!==null&&f.setAttribute("nonce",c);f.async="true";(c=Te.getElementsByTagName(VZ3)[0])?c.parentNode.insertBefore(f,c):(Te.head||Te.body||Te.documentElement).appendChild(f)},DDH=function(c,f,d){WfT(function(){var q=f===g5y()?m6(AM,"_",Hf()):Hf();
q=m6(O9F(f),"_",q);c(q)},d)},i8M=function(c,f){var d=f||{};
typeof f=="function"&&(d={},d.callback=f);var q=(f=d)&&f._c;if(q)for(var Z=0;Z<Y6_.length;Z++){var M=Y6_[Z][0],g=Y6_[Z][1];g&&Object.prototype.hasOwnProperty.call(q,M)&&g(q[M],c,f)}f=[];c?f=c.split(":"):d.features&&(f=d.features);if(!(c=d.h)&&(c=g5y(),!c))throw Error("Va");erO(f||[],d,c)},erO=function(c,f,d){c=CdF(c)||[];
var q=f.callback,Z=f.config,M=f.timeout,g=f.ontimeout,O=f.onerror,l=void 0;typeof O=="function"&&(l=O);var m=null,H=!1;if(M&&!g||!M&&g)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";O=m6(O9F(d),"r",[]).sort();var A=m6(O9F(d),"L",[]).sort(),Y=YG.le||[],t=[].concat(O),E=function(p,N){if(H)return 0;iJ.clearTimeout(m);A.push.apply(A,J);var I=((AM||{}).config||{}).update;I?I(Z):Z&&m6(YG,"cu",[]).push(Z);if(N){H9K("me0",p,t);try{DDH(N,d,l)}finally{H9K("me1",p,t)}}return 1};
M>0&&(m=iJ.setTimeout(function(){H=!0;g()},M));
var J=urF(c,A);if(J.length){J=urF(c,O);var X=m6(YG,"CP",[]),u=X.length;X[u]=function(p){if(!p)return 0;H9K("ml1",J,t);var N=function(R){X[u]=null;E(J,p)&&k4_(function(){q&&q();R()})},I=function(){var R=X[u+1];
R&&R()};
u>0&&X[u-1]?X[u]=function(){N(I)}:N(I)};
if(J.length){var W="loaded_"+YG.I++;AM[W]=function(p){X[u](p);AM[W]=null};
c=S6u(d,J,"gapi."+W,O,Y);O.push.apply(O,J);H9K("ml0",J,t);f.sync||iJ.___gapisync?yko(c):hr_(c)}else X[u](MZO)}else E(J)&&q&&q()},NiT;
var I5_=null,PdH=_.dz.trustedTypes;if(PdH&&PdH.createPolicy){try{I5_=PdH.createPolicy("goog#gapi",{createHTML:p0Y,createScript:p0Y,createScriptURL:p0Y})}catch(c){_.dz.console&&_.dz.console.error(c.message)}NiT=I5_}else NiT=I5_;var wC3=NiT,WfT=function(c,f){if(YG.hee&&YG.hel>0)try{return c()}catch(d){f&&f(d),YG.hel--,i8M("debug_error",function(){try{window.___jsl.hefn(d)}catch(q){throw d;}})}else try{return c()}catch(d){throw f&&f(d),d;
}},Rr3=AM.load;
Rr3&&m6(YG,"ol",[]).push(Rr3);AM.load=function(c,f){return WfT(function(){return i8M(c,f)})};var xlG;var pCv=function(c,f){var d=d||[];this.serviceId_=c;this.moduleId_=f||null;this.dependencies_=[];UD_(this,d)};
pCv.prototype.toString=function(){return this.serviceId_};
pCv.prototype.getModuleId=function(){return this.moduleId_};
var UD_=function(c,f){var d=!1;d=d===void 0?!1:d;c.dependencies_=c.dependencies_.concat(f);if(d){if(!c.moduleId_)throw Error("Wa`"+c.serviceId_);f.map(function(q){return q.getModuleId()}).forEach(function(q){oKN(function(Z){Z.addExtraEdge(c.moduleId_,q)})})}};var cQk=new pCv("MpJwZc","MpJwZc");var d9r=new _.H2("a"),frk=function(c,f,d){_.AC.call(this,c,f);this.node=f;this.kind=d};
_.K(frk,_.AC);var xDH=function(){this.JSC$10004_keys_={};this.urlPrefix_="";this.JSC$10004_queryData_={}};
xDH.prototype.toString=function(){var c=this.urlPrefix_+o53(this),f=_.Tf(this.JSC$10004_queryData_),d="";f!=""&&(d="?"+f);return c+d};
var G4T=function(c){c=bJ(c,"md");return!!c&&c!=="0"},o53=function(c){var f=[],d=(0,_.n1)(function(q){this.JSC$10004_keys_[q]!==void 0&&f.push(q+"="+this.JSC$10004_keys_[q])},c);
G4T(c)?(d("md"),d("k"),d("ck"),d("am"),d("rs"),d("gssmodulesetproto"),d("slk"),d("dti")):(d("sdch"),d("k"),d("ck"),d("am"),d("rt"),"d"in c.JSC$10004_keys_||K0(c,"d","0"),d("d"),d("exm"),d("excm"),(c.JSC$10004_keys_.excm||c.JSC$10004_keys_.exm)&&f.push("ed=1"),d("im"),d("dg"),d("sm"),bJ(c,"br")!="1"&&bJ(c,"br")!="0"||d("br"),d("br-d"),bJ(c,"rb")=="1"&&d("rb"),bJ(c,"zs")!=="0"&&d("zs"),c4u(c)!==""&&d("wt"),d("gssmodulesetproto"),d("ujg"),d("sp"),d("rs"),d("cb"),d("ee"),d("slk"),d("dti"),d("m"));return f.join("/")},
bJ=function(c,f){return c.JSC$10004_keys_[f]?c.JSC$10004_keys_[f]:null},K0=function(c,f,d){d?c.JSC$10004_keys_[f]=d:delete c.JSC$10004_keys_[f]},fMO=function(c,f){c.urlPrefix_=f},dlH=function(c,f){f&&f.length>0?(f.sort(),K0(c,"exm",f.join(","))):K0(c,"exm",null)},jo3=function(c,f){f&&f.length>0?(f.sort(),K0(c,"excm",f.join(","))):K0(c,"excm",null)},qzy=function(c){return(c=bJ(c,"m"))?c.split(","):[]},c4u=function(c){switch(bJ(c,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},ZD_=function(c,f){var d=Object.keys(f).filter(function(q){return!!Object.keys(f[q]).length}).map(function(q){var Z=Object.keys(f[q]);
Z.length>1&&Z.sort();return q+":"+Z.join(",")});
d.sort();K0(c,"ee",d.join(";"))},DRN=function(c){var f=bJ(c,"ee");
if(!f)return{};c={};f=_.C(f.split(";"));for(var d=f.next();!d.done;d=f.next()){var q=_.C(d.value.split(":"));d=q.next().value;q=q.next().value;c[d]={};q=_.C(q.split(","));for(var Z=q.next();!Z.done;Z=q.next())c[d][Z.value]=!0}return c},MA_=function(c){delete c.JSC$10004_keys_.m;
delete c.JSC$10004_keys_.exm;delete c.JSC$10004_keys_.ed};
xDH.prototype.clone=function(){var c=new xDH;c.JSC$10004_keys_=Object.assign({},this.JSC$10004_keys_);c.urlPrefix_=this.urlPrefix_;c.JSC$10004_queryData_=Object.assign({},this.JSC$10004_queryData_);return c};
var efP=function(c,f){f=f===void 0?!0:f;var d=r4_(c),q=new xDH,Z=_.x5(d)[5];_.zV.forEach(CFH,function(g){var O=Z.match("/"+g+"=([^/]+)");O&&K0(q,g,O[1])});
var M="";M=c.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";fMO(q,c.substr(0,c.indexOf(M)+M.length));if(!f)return q;(c=_.x5(d)[6]||null)&&h3F(c,function(g,O){q.JSC$10004_queryData_[g]=O});
return q},wsP=function(c){c=_.Bq(r4_(c));
return c===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(c)?/\/k=/.test(c):!1},r4_=function(c){return c.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?c.substr(65):c},CFH={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"},gKj=RegExp("^loaded_(g|h)?[_\\d]+$");_.EK=function(c){this.JSC$10016_id_=c;this.opts={}};
_.EK.prototype.JSC$10018_setLabel=function(c){this.label_=c||void 0;return this};
_.EK.prototype.addUploadMetadata=function(c,f){var d=this.opts.data||{};d[c]=f;this.opts.data=d;return this};
var kf3=function(c){var f=_.zV.filter(c.opts,function(d){return d!==null});
f=_.zV.isEmpty(f)?null:f;c=[c.JSC$10016_id_,c.label_,f];f=FhN(c);return c=c.slice(0,f+1)};
_.EK.prototype.toString=function(){var c=kf3(this);return"("+_.JT(c,function(f){return JSON.stringify(f)}).join(",")+")"};
_.EK.prototype.getId=function(){return this.JSC$10016_id_};
_.EK.prototype.getOptions=function(){return _.zV.clone(this.opts)};var n0=function(){_.EK.call(this,"image-search")};
_.K(n0,_.EK);n0.prototype.setSize=function(c){this.opts.imgsz=c;return this};
n0.prototype.JSC$10018_setLabel=function(c){_.EK.prototype.JSC$10018_setLabel.call(this,c);return this};
n0.prototype.addUploadMetadata=function(c,f){_.EK.prototype.addUploadMetadata.call(this,c,f);return this};var $G=function(){_.EK.call(this,"maps")};
_.K($G,_.EK);$G.prototype.setZoom=function(c){this.opts.zoom=c;return this};
$G.prototype.JSC$10018_setLabel=function(c){_.EK.prototype.JSC$10018_setLabel.call(this,c);return this};
$G.prototype.addUploadMetadata=function(c,f){_.EK.prototype.addUploadMetadata.call(this,c,f);return this};_.Qj=function(){_.EK.call(this,"photos")};
_.K(_.Qj,_.EK);_.Qj.prototype.JSC$10018_setLabel=function(c){_.EK.prototype.JSC$10018_setLabel.call(this,c);return this};
_.Qj.prototype.addUploadMetadata=function(c,f){_.EK.prototype.addUploadMetadata.call(this,c,f);return this};var Sn=function(){_.EK.call(this,"url")};
_.K(Sn,_.EK);var ODr=function(){var c=new Sn;c.opts.type="video";c.opts.site="youtube.com";return c};
Sn.prototype.JSC$10018_setLabel=function(c){_.EK.prototype.JSC$10018_setLabel.call(this,c);return this};
Sn.prototype.addUploadMetadata=function(c,f){_.EK.prototype.addUploadMetadata.call(this,c,f);return this};var L0=function(){_.EK.call(this,"video-search")};
_.K(L0,_.EK);var lMu=function(){var c=new L0;c.opts.site="youtube.com";return c};
L0.prototype.JSC$10018_setLabel=function(c){_.EK.prototype.JSC$10018_setLabel.call(this,c);return this};
L0.prototype.addUploadMetadata=function(c,f){_.EK.prototype.addUploadMetadata.call(this,c,f);return this};var sov=function(){_.EK.call(this,"web")};
_.K(sov,_.EK);sov.prototype.JSC$10018_setLabel=function(c){_.EK.prototype.JSC$10018_setLabel.call(this,c);return this};
sov.prototype.addUploadMetadata=function(c,f){_.EK.prototype.addUploadMetadata.call(this,c,f);return this};var ze=function(){this.items_=[];this.opts={}},Bxu=function(c){switch(c){case "image-search":return new n0;
case "maps":return new $G;case "photos":return new _.Qj;case "url":return new Sn;case "video-search":return new L0;case "web":return new sov}return new _.EK(c)};
ze.prototype.addView=function(c){this.items_.push(typeof c==="string"?Bxu(c):c);return this};
var iDT=function(c){return"("+_.JT(c.items_,function(f){return f.toString()}).join(",")+")"};
ze.prototype.toString=function(){return iDT(this)};
ze.prototype.getViews=function(c,f){f=f===void 0?[]:f;for(var d=this.items_,q=0;q<d.length;q++){var Z=d[q];Z instanceof ze?Z.getViews(c,f):Z.getId()==c&&f.push(Z)}return f};
ze.prototype.getOptions=function(){return _.zV.clone(this.opts)};var un=function(c){this.basePickerUrl_=c||"https://docs.google.com/picker";this.nav_=new ze};
un.prototype.nav_=null;un.prototype.addView=function(c){this.nav_.addView(c);return this};
un.prototype.getBaseUrl=function(){return this.basePickerUrl_};
un.prototype.getViews=function(c){return this.nav_.getViews(c)};
_.Txj=function(c,f){c.callback_=f;return c};var mlH=new Map;mlH.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");mlH.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");mlH.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var HDy=new Set;HDy.add("application/vnd.google-apps.kix");HDy.add("application/vnd.google-apps.ritz");HDy.add("application/vnd.google-apps.punch");var LuO=function(c,f,d){var q=d&&_.aW(d,1);d=A4r(d);var Z=c[0].getId();switch(_.VQ(Z,2)){case 13:return YzH(c,f,q,d);case 3:return Fu_(c,f,q,d);case 10:return tAK(c,f,q,d);case 27:return tAK(c,f,q,d);case 12:return bDK(c,f);case 2:return KuF(c,f,q,d);case 5:return EKK(c,f,q,d);case 9:return nKH(c,f,q,d);case 6:return $lF(c,f,q,d);case 25:return Qo_(c,f,q,d);case 1:return _.tr(c[0],fJu,26)?Sz_(c,f,q,d):tAK(c,f,q,d);default:return{}}},$lF=function(c,f,d,q){c=c.map(function(Z){return{id:Z.getId().getId(),
serviceId:"youtube",name:Z.getName(),description:_.aW(Z,3),type:JM(Z),lastEditedUtc:_.cvy(_.TD(Z,_.vZ,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Z.getUrl(),embedUrl:_.aW(Z,13),thumbnails:a5(fF(Z))}});
return{action:f,docs:c,viewToken:q,view:d||"youtube",v2Translated:!0}},KuF=function(c,f,d,q){var Z=c.map(function(M){var g=M.getId().getId(),O=_.aW(M,7),l=M.getName(),m=JM(M),H=_.cvy(_.TD(M,_.vZ,12)).getTime(),A=M.getUrl(),Y=Number(sBe(M)),t=_.aW(M,3),E=_.aW(M,11),J=a5(fF(M));
var X=_.TD(M,d7,21);X=_.LS(X,1);var u=_.TD(M,d7,21);u=_.aW(u,10);var W=_.aW(M,13);var p=_.TD(M,d7,21);p=_.LS(p,9);var N=_.TD(M,d7,21);N=_.aW(N,11);g={id:g,serviceId:"docs",mimeType:O,name:l,type:m,lastEditedUtc:H,url:A,sizeBytes:Y,description:t,iconUrl:E,thumbnails:J,isShared:X,downloadUrl:u,embedUrl:W,copyable:p,resourceKey:N};O=_.TD(M,d7,21);_.LS(O,12)&&(g.uploadState="success",g.isNew=!0);O=_.TD(M,d7,21);_.tr(O,o_,3)&&(M=_.TD(M,d7,21),M=_.TD(M,o_,3),_.tr(M,po,2)&&(O=V2(M.getDuration().getSeconds()),
l=M.getDuration(),l=_.qx(l,2),g.duration=O+l/1E9),g.aspectRatio=M.getAspectRatio());return g});
return{action:f,docs:Z,viewToken:q,view:d||"all",extraUserInputs:zv_(c),v2Translated:!0}},EKK=function(c,f,d,q){c=c.map(function(Z){var M=_.TD(Z,k8H,15);
M=_.TD(M,xx,1);AN(Z,10,xx,M);return{id:Z.getId().getId(),serviceId:"web",mimeType:_.aW(Z,7),name:Z.getName(),type:JM(Z),url:Z.getUrl(),description:_.aW(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:a5(fF(Z))}});
return{action:f,docs:c,viewToken:q,view:d||"image-search",v2Translated:!0}},nKH=function(c,f,d,q){c=c.map(function(Z){return{serviceId:"url",
name:fF(Z)[0].getUrl().split("/").pop(),type:JM(Z),mimeType:_.aW(Z,7),url:Z.getUrl(),description:_.aW(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:a5(fF(Z))}});
return{action:f,docs:c,viewToken:q,view:d||"url",v2Translated:!0}},Sz_=function(c,f,d,q){c=c.map(function(Z){return{id:Z.getId().getId(),
serviceId:"picasa",name:Z.getName(),type:JM(Z),description:_.aW(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:a5(fF(Z))}});
return{action:f,docs:c,viewToken:q,view:d||"webcam",v2Translated:!0}},tAK=function(c,f,d,q){return{action:f,
docs:c.map(J4o),viewToken:q,view:aMu(d||"upload",c),extraUserInputs:zv_(c),v2Translated:!0}},aMu=function(c,f){return f.some(function(d){var q;
return((q=_.TD(d,GU,30))==null?void 0:_.VQ(q,3))===9})?c+"/gmailphotos":c},Fu_=function(c,f,d,q){var Z=c.map(function(M){var g={id:M.getId().getId(),
serviceId:"picasa",mimeType:_.aW(M,7),name:M.getName(),type:JM(M),lastEditedUtc:_.cvy(_.TD(M,_.vZ,12)).getTime(),url:M.getUrl(),sizeBytes:Number(sBe(M)),description:_.aW(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:a5(fF(M)),mediaKey:M.getId().getId(),parentId:_.aW(M,4)},O,l=(O=_.TD(M,qWu,18))==null?void 0:_.TD(O,jh_,3);l&&(g.latitude=Jr(l,1),g.longitude=Jr(l,2));var m;M=(m=_.TD(M,qWu,18))==null?void 0:zK(m,6);m=M!=null?V2(M):void 0;m&&(g.version=
m);return g});
return{action:f,docs:Z,viewToken:q,view:d||"photos",extraUserInputs:zv_(c),v2Translated:!0}},YzH=function(c,f,d,q){c=c.map(function(Z){return{id:Z.getId().getId(),
serviceId:"et",name:fF(Z)[0].getUrl().split("/").pop(),description:_.aW(Z,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:a5(fF(Z),"etjpg")}});
return{action:f,docs:c,viewToken:q,view:d||"et",v2Translated:!0}},Qo_=function(c,f,d,q){c=c.map(function(Z){var M=Z.getId().getId(),g=q["2"];
return{id:M,serviceId:g.type!=="gmail_themes"&&g.parent==="6226252643674576769"?"picasa":"static_themes",name:Z.getName(),mimeType:_.aW(Z,7),type:JM(Z),description:_.aW(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Z.getUrl(),embedUrl:Z.getUrl(),thumbnails:a5(fF(Z))}});
return{action:f,docs:c,viewToken:q,view:d||"photos",v2Translated:!0}},bDK=function(c,f){c=c.map(function(d){var q=_.TD(d,dSj,27);
q=_.Dp(q,1,_.TC,_.jQ())[0];return{id:d.getId().getId(),serviceId:"contacts",mimeType:_.aW(d,7),name:d.getName(),description:_.aW(d,3),url:"mailto:"+q,thumbnail:[{url:_.aW(d,11)}],email:q}});
return{action:f,docs:c,view:"contacts",v2Translated:!0}},A4r=function(c){if(!c)return{};
var f=_.aW(c,3);f=f&&JSON.parse(f)||{};return{0:_.aW(c,1),1:_.aW(c,2),2:f}},a5=function(c,f){f=f===void 0?"":f;
if(!c.length)return null;f=="etjpg"&&(c=c.filter(function(d){return d.getUrl().includes("w1200-h300")}));
return c.map(function(d){return{url:d.getUrl(),height:d.getHeight(),width:d.getWidth(),type:f}})},zv_=function(c){return{isAttachment:c.some(function(f){return _.LS(f,31)})}},J4o=function(c){var f,d={id:(f=c.getId())==null?void 0:f.getId(),
serviceId:VAT(c),mimeType:_.aW(c,7),name:c.getName(),type:JM(c),sizeBytes:Number(sBe(c)),description:_.aW(c,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:a5(fF(c)),isNew:!0};if(f=_.TD(c,GU,30)){d.dataUrl=_.aW(f,1)||null;a:{var q=_.TD(c,GU,30);switch(_.VQ(q,3)){case 9:q=_.vg(q,CXy,2,c2);q={remoteRefs:q&&_.aW(q,1)};break a;case 10:case 15:q=_.vg(q,rvy,4,c2);var Z=fF(c);q={photo_id:q&&_.aW(q,1),media_key:c.getId().getId(),media_type:_.VQ(c,6)===1?1:2,image_url:Z&&
Z[0].getUrl(),width:Z&&String(Z[0].getWidth()),height:Z&&String(Z[0].getHeight())};break a}q=null}d.uploadMetadata=q;d.uploadId=_.aW(f,9)||null;d.uploadState=Xq_(f)||null}(q=f&&_.vg(f,rvy,4,c2))&&(d.id=_.aW(q,1));(q=f&&_.vg(f,ghH,5,c2))&&(d.contentId=_.aW(q,1));(q=f&&_.vg(f,ZqT,7,c2))&&(d.contentId=_.aW(q,1));(q=f&&_.vg(f,MP3,6,c2))&&(d.contentId=_.aW(q,1));(f==null?void 0:_.VQ(f,3))===1&&(d.mediaKey=c.getId().getId());return d},VAT=function(c){var f;
switch(((f=_.TD(c,GU,30))==null?void 0:_.VQ(f,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},JM=function(c){switch(_.VQ(c,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 _.aW(c,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},Xq_=function(c){switch(c==null?void 0:_.VQ(c,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 wqr,uJo,vKv,hvo;_.y4_=function(c,f){var d=f||{};f=d.document||document;var q=_.Kq(c).toString(),Z=(new $x(f)).createElement("SCRIPT"),M={script_:Z,timeout_:void 0},g=new Rp(uJo,M),O=null,l=d.timeout!=null?d.timeout:5E3;l>0&&(O=window.setTimeout(function(){vKv(Z,!0);g.errback(new hvo(1,"Timeout reached for loading script "+q))},l),M.timeout_=O);
Z.onload=Z.onreadystatechange=function(){Z.readyState&&Z.readyState!="loaded"&&Z.readyState!="complete"||(vKv(Z,d.cleanupWhenDone||!1,O),g.callback(null))};
Z.onerror=function(){vKv(Z,!0,O);g.errback(new hvo(0,"Error while loading script "+q))};
M=d.attributes||{};_.zV.extend(M,{type:"text/javascript",charset:"UTF-8"});IO3(Z,M);_.oh(Z,c);wqr(f).appendChild(Z);return g};
wqr=function(c){var f=FE("HEAD",c);return f&&f.length!==0?f[0]:c.documentElement};
uJo=function(){if(this&&this.script_){var c=this.script_;c&&c.tagName=="SCRIPT"&&vKv(c,!0,this.timeout_)}};
vKv=function(c,f,d){d!=null&&_.dz.clearTimeout(d);c.onload=function(){};
c.onerror=function(){};
c.onreadystatechange=function(){};
f&&window.setTimeout(function(){_.Y6(c)},0)};
hvo=function(c,f){var d="Jsloader error (code #"+c+")";f&&(d+=": "+f);_.cN.call(this,d);this.code=c};
_.rn(hvo,_.cN);var WuH=_.pp(["https://apis.google.com/js/api.js"]),Dlu=_.CG(WuH),PFy=function(c,f){var d=!1,q=evj(c,f).then(function(M){d=!0;return M}),Z=_.mzv(5E3).then(function(){return d?evj(c,f):Nxr(f).then(function(M){return IM_(M,c)})});
return ZGH([q,Z])},evj=function(c,f){return RvH(f).then(function(d){return IM_(d,c)})},IM_=function(c,f){var d=_.Z4(f,"gapi.")?f.slice(5):f;
return c[d]?_.sX(c[d]):new _.i6(function(q,Z){var M=SW(function(){Z(Error("Ya"))},3E4);
c.load(f,{callback:function(){_.dz.clearTimeout(M);q(c[d])},
onerror:function(g){_.dz.clearTimeout(M);Z(g)}})})},RvH=function(c){return c.gapi&&c.gapi.load?_.sX(c.gapi):Nxr(c)},Nxr=function(c){return _.y4_(Dlu,{document:c.document}).then(function(){return c.gapi})},UlK=function(){};
UlK.prototype.load=function(c,f){f=f===void 0?window:f;var d=Date.now();return PFy(c,f).then(function(q){var Z=Date.now();return{library:q,loadStartMs:d,loadEndMs:Z}},function(q){throw q instanceof Error?q:Error(String(q));
})};var krN=function(){_.ES.call(this);this.gapiLoader_=new UlK;this.origin_=null;this.gapiPickerIframeResolver_=_.c9();this.gapiIframesResolver_=_.c9();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.K(krN,_.ES);var pqj=function(c,f){var d=_.D5("gapi.iframes",f);return d?(c=Date.now(),_.sX({library:d,loadStartMs:c,loadEndMs:c})):c.gapiLoader_.load("gapi.iframes",f)},xl_=function(c,f,d,q,Z,M){var g=!1;
g=g===void 0?!1:g;pqj(c,VT(f.ownerDocument)).then(function(O){var l=O.library;c.gapiIframesResolver_.resolve(l);O=c.gapiPickerIframeResolver_;var m=O.resolve,H=g;H=H===void 0?!1:H;var A={};A["host-message-handler"]=d;c.hostMessageHandlerInternal_=A;var Y=_.DU(q);Y=_.DU(Y);Y=_.jn(_.d3(_.f0(new _.xn,Y.scheme_),Y.JSC$9976_domain_),Y.JSC$9976_port_).toString();c.origin_=Y;Y=(new Bio).setUrl(q);Y.JSC$9991_obj_.where=f;Y.JSC$9991_obj_.allowPost=H;Y.JSC$9991_obj_.messageHandlers=A;H=_.D5("makeWhiteListIframesFilter",
l)([c.origin_]);Y.JSC$9991_obj_.messageHandlersFilter=H;Z!=null&&(Y.JSC$9991_obj_.id=Z);M!=null&&(Y.JSC$9991_obj_.rpctoken=M);H=swH(Y);H.JSC$9988_obj_.style={display:"block","min-width":"100%",width:"1px"};H.JSC$9988_obj_.height="100%";swH(Y).value().allow="camera 'src' "+c.origin_;l=l.getContext().openChild(Y.value());m.call(O,l)},function(O){c.gapiIframesResolver_.reject(O);
c.gapiPickerIframeResolver_.reject(O)});
return c.gapiPickerIframeResolver_.promise},oKH=function(c,f){return _.$o([c.gapiIframesResolver_.promise,
c.gapiPickerIframeResolver_.promise]).then(function(d){var q=_.C(d);d=q.next().value;return(q=q.next().value)?q.send("picker-message-handler",f,void 0,_.D5("makeWhiteListIframesFilter",d)([c.origin_])):_.Je(Error("Za"))})};
krN.prototype.disposeInternal=function(){Gfu(this);_.ES.prototype.disposeInternal.call(this)};
var Gfu=function(c){c.gapiPickerIframeResolver_.promise.then(function(f){f&&(f.unregister("host-message-handler"),delete c.hostMessageHandlerInternal_["host-message-handler"])})};var cwH=function(){this.JSC$10078_nextId=0};var dRF=function(c,f){switch(c.action){case "select-contacts":c=fev(c.contacts);break;case "visibility":c=c.visible;var d=new qU;c=_.wn(d,1,7).setVisible(c);d={};d["iframe-command"]=c.serialize();c=d;break;default:c=null}return c?oKH(f,c):_.sX()},fev=function(c){if(!c||c.length==0)return null;
var f=new qU;_.wn(f,1,11);var d=new cwH;c.forEach(function(q){if(q.email){var Z=new QQ;Z=_.pO(Z,2,q.name?q.name:q.email);var M=new dSj;q=_.XDN(M,1,_.kS,q.email,_.TC);q=_.BU(Z,27,q);Z=new GC_;M=":"+(d.JSC$10078_nextId++).toString(36);Z=_.pO(Z,1,M);Z=_.wn(Z,2,12);q=_.BU(q,1,Z)}else q=null;q&&AN(f,7,QQ,q)});
c={};c["iframe-command"]=f.serialize();return c};_.j7F=function(){if($Er){var c=/Windows NT ([0-9.]+)/;return(c=c.exec(_.TY()))?c[1]:"0"}return _.nmk?(c=/1[0|1][_.][0-9_.]+/,(c=c.exec(_.TY()))?c[0].replace(/_/g,"."):"10"):ful?(c=/Android\s+([^\);]+)(\)|;)/,(c=c.exec(_.TY()))?c[1]:""):SHN||Lll||zFP?(c=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(c=c.exec(_.TY()))?c[1].replace(/_/g,"."):""):""}();var Vj;Vj=function(c){return(c=c.exec(_.TY()))?c[1]:""};
_.qNH=function(){if(_.TK)return Vj(/Firefox\/([0-9.]+)/);if(_.OJ||Gf||b4r)return hFn;if(_.m8){if(_.Lr()||_.mNz()){var c=Vj(/CriOS\/([0-9.]+)/);if(c)return c}return Vj(/Chrome\/([0-9.]+)/)}if(_.wx&&!_.Lr())return Vj(/Version\/([0-9.]+)/);if(FdN||tUk){if(c=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.TY()))return c[1]+"."+c[2]}else if(eFM)return(c=Vj(/Android\s+([0-9.]+)/))?c:Vj(/Version\/([0-9.]+)/);return""}();var Zuj=function(){};
_.Z2(Zuj);Zuj.prototype.nextId_=0;_.Xl=function(c){return":"+(c.nextId_++).toString(36)};var uJ=function(c){_.KF.call(this);this.JSC$10086_dom_=c||tT();this.JSC$10086_id_=null;this.inDocument_=!1;this.JSC$10086_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.rn(uJ,_.KF);uJ.prototype.idGenerator_=Zuj.getInstance();uJ.prototype.getId=function(){return this.JSC$10086_id_||(this.JSC$10086_id_=_.Xl(this.idGenerator_))};
uJ.prototype.getElement=function(){return this.JSC$10086_element_};
var vf=function(c){c.googUiComponentHandler_||(c.googUiComponentHandler_=new _.r2(c));return c.googUiComponentHandler_},M6u=function(c,f){if(c==f)throw Error("$a");
var d;if(d=f&&c.parent_&&c.JSC$10086_id_){d=c.parent_;var q=c.JSC$10086_id_;d=d.childIndex_&&q?_.zV.get(d.childIndex_,q)||null:null}if(d&&c.parent_!=f)throw Error("$a");c.parent_=f;uJ.superClass_.setParentEventTarget.call(c,f)};
uJ.prototype.setParentEventTarget=function(c){if(this.parent_&&this.parent_!=c)throw Error("ab");uJ.superClass_.setParentEventTarget.call(this,c)};
uJ.prototype.JSC$10088_createDom=function(){this.JSC$10086_element_=this.JSC$10086_dom_.createElement("DIV")};
uJ.prototype.render=function(c){rwK(this,c)};
var rwK=function(c,f,d){if(c.inDocument_)throw Error("bb");c.JSC$10086_element_||c.JSC$10088_createDom();f?f.insertBefore(c.JSC$10086_element_,d||null):c.JSC$10086_dom_.JSC$9268_document_.body.appendChild(c.JSC$10086_element_);c.parent_&&!c.parent_.inDocument_||c.enterDocument()};
_.r=uJ.prototype;_.r.decorate=function(c){if(this.inDocument_)throw Error("bb");if(c&&this.canDecorate(c)){this.wasDecorated_=!0;var f=_.X1(c);this.JSC$10086_dom_&&this.JSC$10086_dom_.JSC$9268_document_==f||(this.JSC$10086_dom_=tT(c));this.decorateInternal(c);this.enterDocument()}else throw Error("cb");};
_.r.canDecorate=function(){return!0};
_.r.decorateInternal=function(c){this.JSC$10086_element_=c};
_.r.enterDocument=function(){this.inDocument_=!0;Cx_(this,function(c){!c.inDocument_&&c.getElement()&&c.enterDocument()})};
_.r.exitDocument=function(){Cx_(this,function(c){c.inDocument_&&c.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.r.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Cx_(this,function(c){c.dispose()});
!this.wasDecorated_&&this.JSC$10086_element_&&_.Y6(this.JSC$10086_element_);this.parent_=this.model_=this.JSC$10086_element_=this.childIndex_=this.children_=null;uJ.superClass_.disposeInternal.call(this)};
_.r.getModel=function(){return this.model_};
_.r.addChild=function(c,f){var d=this.children_?this.children_.length:0;if(c.inDocument_&&(f||!this.inDocument_))throw Error("bb");if(d<0||d>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);c.parent_==this?(_.zV.set(this.childIndex_,c.getId(),c),_.wz(this.children_,c)):_.zV.add(this.childIndex_,c.getId(),c);M6u(c,this);_.ElP(this.children_,d,0,c);c.inDocument_&&this.inDocument_&&c.parent_==this?(f=this.getContentElement(),
(f.childNodes[d]||null)!=c.getElement()&&(c.getElement().parentElement==f&&f.removeChild(c.getElement()),d=f.childNodes[d]||null,f.insertBefore(c.getElement(),d))):f?(this.JSC$10086_element_||this.JSC$10088_createDom(),d=this.children_?this.children_[d+1]||null:null,rwK(c,this.getContentElement(),d?d.JSC$10086_element_:null)):this.inDocument_&&!c.inDocument_&&c.JSC$10086_element_&&c.JSC$10086_element_.parentNode&&c.JSC$10086_element_.parentNode.nodeType==1&&c.enterDocument()};
_.r.getContentElement=function(){return this.JSC$10086_element_};
var Cx_=function(c,f){c.children_&&c.children_.forEach(f,void 0)};
uJ.prototype.removeChild=function(c,f){if(c){var d=typeof c==="string"?c:c.getId();c=this.childIndex_&&d?_.zV.get(this.childIndex_,d)||null:null;d&&c&&(_.zV.remove(this.childIndex_,d),_.wz(this.children_,c),f&&(c.exitDocument(),c.JSC$10086_element_&&_.Y6(c.JSC$10086_element_)),M6u(c,null))}if(!c)throw Error("eb");return c};_.rn(feY,cwN);_.rn(dRn,cwN);var gOK;_.zV.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var krH=function(c,f){f?c.setAttribute("role",f):c.removeAttribute("role")},hM=function(c,f,d){Array.isArray(d)&&(d=d.join(" "));
var q="aria-"+f;d===""||d==void 0?(gOK||(d={},gOK=(d.atomic=!1,d.autocomplete="none",d.dropeffect="none",d.haspopup=!1,d.live="off",d.multiline=!1,d.multiselectable=!1,d.orientation="vertical",d.readonly=!1,d.relevant="additions text",d.required=!1,d.sort="none",d.busy=!1,d.disabled=!1,d.hidden=!1,d.invalid="false",d)),d=gOK,f in d?c.setAttribute(q,d[f]):c.removeAttribute(q)):c.setAttribute(q,d)};var Ouo;_.w3=function(c,f,d){_.KF.call(this);this.target=c;this.handle=f||c;this.limits=d||new hq(NaN,NaN,NaN,NaN);this.JSC$10091_document_=_.X1(c);this.JSC$10091_eventHandler_=new _.r2(this);_.ln(this,this.JSC$10091_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;_.Lx(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Ouo};
_.rn(_.w3,_.KF);Ouo=_.dz.document&&_.dz.document.documentElement&&!!_.dz.document.documentElement.setCapture&&!!_.dz.document.releaseCapture;_.leT=function(c,f){c.hysteresisDistanceSquared_=Math.pow(f,2)};
_.r=_.w3.prototype;_.r.setEnabled=function(c){this.enabled_=c};
_.r.disposeInternal=function(){_.w3.superClass_.disposeInternal.call(this);_.bp(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10091_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10091_document_.releaseCapture();this.handle=this.target=null};
_.r.startDrag=function(c){var f=c.type=="mousedown";if(!this.enabled_||this.dragging_||f&&(c.event_.button!=0||_.nmk&&c.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new yj("start",this,c.clientX,c.clientY,c)))this.dragging_=!0,f&&c.preventDefault();else return;else f&&c.preventDefault();f=this.JSC$10091_document_;var d=f.documentElement,q=!this.useSetCapture_;this.JSC$10091_eventHandler_.listen(f,["touchmove","mousemove"],this.handleMove_,
{capture:q,passive:!1});this.JSC$10091_eventHandler_.listen(f,["touchend","mouseup"],this.endDrag,q);this.useSetCapture_?(d.setCapture(!1),this.JSC$10091_eventHandler_.listen(d,"losecapture",this.endDrag)):this.JSC$10091_eventHandler_.listen(VT(f),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10091_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,q);this.clientX=this.startX=c.clientX;this.clientY=this.startY=c.clientY;this.screenX=c.screenX;this.screenY=c.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=F1(tT(this.JSC$10091_document_))}};
_.r.endDrag=function(c,f){this.JSC$10091_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10091_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new yj("end",this,c.clientX,c.clientY,c,s7o(this,this.deltaX),BRH(this,this.deltaY),f||c.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.r.handleMove_=function(c){if(this.enabled_){var f=c.clientX-this.clientX,d=c.clientY-this.clientY;this.clientX=c.clientX;this.clientY=c.clientY;this.screenX=c.screenX;this.screenY=c.screenY;if(!this.dragging_){var q=this.startX-this.clientX,Z=this.startY-this.clientY;if(q*q+Z*Z>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new yj("start",this,c.clientX,c.clientY,c)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(c);return}}d=iuv(this,f,d);f=d.x;d=d.y;this.dragging_&&this.dispatchEvent(new yj("beforedrag",
this,c.clientX,c.clientY,c,f,d))&&(TRj(this,c,f,d),c.preventDefault())}};
var iuv=function(c,f,d){var q=F1(tT(c.JSC$10091_document_));f+=q.x-c.pageScroll.x;d+=q.y-c.pageScroll.y;c.pageScroll=q;c.deltaX+=f;c.deltaY+=d;return new _.a8(s7o(c,c.deltaX),BRH(c,c.deltaY))};
_.w3.prototype.onScroll_=function(c){var f=iuv(this,0,0);c.clientX=this.clientX;c.clientY=this.clientY;TRj(this,c,f.x,f.y)};
var TRj=function(c,f,d,q){c.target.style.left=d+"px";c.target.style.top=q+"px";c.dispatchEvent(new yj("drag",c,f.clientX,f.clientY,f,d,q))},s7o=function(c,f){var d=c.limits;
c=isNaN(d.left)?null:d.left;d=isNaN(d.width)?0:d.width;return Math.min(c!=null?c+d:Infinity,Math.max(c!=null?c:-Infinity,f))},BRH=function(c,f){var d=c.limits;
c=isNaN(d.top)?null:d.top;d=isNaN(d.height)?0:d.height;return Math.min(c!=null?c+d:Infinity,Math.max(c!=null?c:-Infinity,f))};
_.w3.prototype.isDragging=function(){return this.dragging_};
var yj=function(c,f,d,q,Z,M,g){_.AC.call(this,c);this.clientX=d;this.clientY=q;this.browserEvent=Z;this.left=M!==void 0?M:f.deltaX;this.top=g!==void 0?g:f.deltaY};
_.rn(yj,_.AC);var Wf=function(c){this.JSC$10098_map_=new Map;var f=arguments.length;if(f>1){if(f%2)throw Error("ka");for(var d=0;d<f;d+=2)this.set(arguments[d],arguments[d+1])}else c&&this.addAll(c)};
_.r=Wf.prototype;_.r.getCount=function(){return this.JSC$10098_map_.size};
_.r.getValues=function(){return Array.from(this.JSC$10098_map_.values())};
_.r.getKeys=function(){return Array.from(this.JSC$10098_map_.keys())};
_.r.containsKey=function(c){return this.JSC$10098_map_.has(c)};
_.r.containsValue=function(c){return this.getValues().some(function(f){return f==c})};
_.r.equals=function(c,f){var d=this;f=f===void 0?function(q,Z){return q===Z}:f;
return this===c?!0:this.JSC$10098_map_.size!=c.getCount()?!1:this.getKeys().every(function(q){return f(d.JSC$10098_map_.get(q),c.get(q))})};
_.r.isEmpty=function(){return this.JSC$10098_map_.size==0};
_.r.clear=function(){this.JSC$10098_map_.clear()};
_.r.remove=function(c){return this.JSC$10098_map_.delete(c)};
_.r.get=function(c,f){return this.JSC$10098_map_.has(c)?this.JSC$10098_map_.get(c):f};
_.r.set=function(c,f){this.JSC$10098_map_.set(c,f);return this};
_.r.addAll=function(c){if(c instanceof Wf){c=_.C(c.JSC$10098_map_);for(var f=c.next();!f.done;f=c.next()){var d=_.C(f.value);f=d.next().value;d=d.next().value;this.JSC$10098_map_.set(f,d)}}else if(c)for(c=_.C(Object.entries(c)),f=c.next();!f.done;f=c.next())d=_.C(f.value),f=d.next().value,d=d.next().value,this.JSC$10098_map_.set(f,d)};
_.r.forEach=function(c,f){var d=this;f=f===void 0?this:f;this.JSC$10098_map_.forEach(function(q,Z){return c.call(f,q,Z,d)})};
_.r.clone=function(){return new Wf(this)};(function(){for(var c=["ms","moz","webkit","o"],f,d=0;f=c[d]&&!_.dz.requestAnimationFrame;++d)_.dz.requestAnimationFrame=_.dz[f+"RequestAnimationFrame"],_.dz.cancelAnimationFrame=_.dz[f+"CancelAnimationFrame"]||_.dz[f+"CancelRequestAnimationFrame"];if(!_.dz.requestAnimationFrame){var q=0;_.dz.requestAnimationFrame=function(Z){var M=(new Date).getTime(),g=Math.max(0,16-(M-q));q=M+g;return _.dz.setTimeout(function(){Z(M+g)},g)};
_.dz.cancelAnimationFrame||(_.dz.cancelAnimationFrame=function(Z){clearTimeout(Z)})}})();
var mRo=[[],[]],Huv=0,Awu=!1,YNH=0,t6K=function(c,f){var d=YNH++,q={measureTask:{id:d,fn:c.measure,context:f},mutateTask:{id:d,fn:c.mutate,context:f},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(q.args||(q.args=[]),q.args.length=0,q.args.push.apply(q.args,arguments),q.args.push(q.state)):q.args&&q.args.length!=0?(q.args[0]=q.state,q.args.length=1):q.args=[q.state];q.isScheduled||(q.isScheduled=!0,mRo[Huv].push(q));Awu||(Awu=!0,window.requestAnimationFrame(Fwu))}},Fwu=
function(){Awu=!1;
var c=mRo[Huv],f=c.length;Huv=(Huv+1)%2;for(var d,q=0;q<f;++q){d=c[q];var Z=d.measureTask;d.isScheduled=!1;Z.fn&&Z.fn.apply(Z.context,d.args)}for(q=0;q<f;++q)d=c[q],Z=d.mutateTask,d.isScheduled=!1,Z.fn&&Z.fn.apply(Z.context,d.args),d.state={};c.length=0};var buF=_.pp(["about:blank"]),Kw3=_.pp(["javascript:undefined"]),EOy=_.CG(buF);_.Kq(EOy);var nO_=_.CG(Kw3);_.Kq(nO_);var Dk=function(c){_.KF.call(this);this.JSC$10104_element_=c;this.listenKeyIn_=_.Lx(this.JSC$10104_element_,"focus",this,!0);this.listenKeyOut_=_.Lx(this.JSC$10104_element_,"blur",this,!0)};
_.rn(Dk,_.KF);Dk.prototype.handleEvent=function(c){var f=new _.Yo(c.event_);f.type=c.type=="focusin"||c.type=="focus"?"focusin":"focusout";this.dispatchEvent(f)};
Dk.prototype.disposeInternal=function(){Dk.superClass_.disposeInternal.call(this);$p(this.listenKeyIn_);$p(this.listenKeyOut_);delete this.JSC$10104_element_};var $R3=function(c,f){this.JSC$10107_element_=c;this.JSC$10107_dom_=f};var en=function(c,f){uJ.call(this,f);this.useIframeMask_=!!c;this.lastFocus_=null;this.resizeBackgroundTask_=t6K({mutate:this.resizeBackground_},this);t6K({mutate:this.updateModalAndBackground_},this)};
_.rn(en,uJ);_.r=en.prototype;_.r.focusHandler_=null;_.r.visible_=!1;_.r.bgEl_=null;_.r.bgIframeEl_=null;_.r.tabCatcherElement_=null;_.r.backwardTabWrapInProgress_=!1;_.r.getCssClass=function(){return"goog-modalpopup"};
_.r.getBackgroundElement=function(){return this.bgEl_};
_.r.JSC$10088_createDom=function(){en.superClass_.JSC$10088_createDom.call(this);var c=this.getElement(),f=sC(this.getCssClass()).split(" ");Ip(c,f);c.tabIndex=0;_.IO(c,!1);Q7_(this);SNr(this)};
var Q7_=function(c){if(c.useIframeMask_&&!c.bgIframeEl_){var f=c.JSC$10086_dom_.JSC$9270_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.NS(f,EOy);c.bgIframeEl_=f;c.bgIframeEl_.className=c.getCssClass()+"-bg";_.IO(c.bgIframeEl_,!1);Fcv(c.bgIframeEl_,0)}c.bgEl_||(c.bgEl_=c.JSC$10086_dom_.JSC$9270_createDom("DIV",c.getCssClass()+"-bg"),_.IO(c.bgEl_,!1))},SNr=function(c){c.tabCatcherElement_||(c.tabCatcherElement_=c.JSC$10086_dom_.createElement("SPAN"),_.IO(c.tabCatcherElement_,
!1),c.tabCatcherElement_.tabIndex=0,c.tabCatcherElement_.style.position="absolute")};
_.r=en.prototype;_.r.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.r.canDecorate=function(c){return!!c&&c.tagName=="DIV"};
_.r.decorateInternal=function(c){en.superClass_.decorateInternal.call(this,c);c=sC(this.getCssClass()).split(" ");Ip(this.getElement(),c);Q7_(this);SNr(this);this.getElement().tabIndex=0;_.IO(this.getElement(),!1)};
_.r.enterDocument=function(){this.bgIframeEl_&&_.Vv(this.bgIframeEl_,this.getElement());_.Vv(this.bgEl_,this.getElement());en.superClass_.enterDocument.call(this);_.XB(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Dk(this.JSC$10086_dom_.JSC$9268_document_);vf(this).listen(this.focusHandler_,"focusin",this.onFocus);LwH(this,!1)};
_.r.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.GV(this.focusHandler_);en.superClass_.exitDocument.call(this);_.Y6(this.bgIframeEl_);_.Y6(this.bgEl_);_.Y6(this.tabCatcherElement_)};
_.r.setVisible=function(c){if(c!=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_&&LwH(this,c),c){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10086_dom_.JSC$9268_document_.activeElement}catch(Z){}this.updateModalAndBackground_();vf(this).listen(this.JSC$10086_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10086_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);zf3(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)nx(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){vf(this).unlisten(this.JSC$10086_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10086_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)nx(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var f=this.JSC$10086_dom_,d=f.JSC$9268_document_.body,q=f.JSC$9268_document_.activeElement||d;if(!this.lastFocus_||this.lastFocus_==d){this.lastFocus_=null;break a}(q==d||f.contains(this.getElement(),q))&&this.lastFocus_.focus()}catch(Z){}this.lastFocus_=
null}}};
var LwH=function(c,f){c.modalAriaVisibilityHelper_||(c.modalAriaVisibilityHelper_=new $R3(c.JSC$10086_element_,c.JSC$10086_dom_));c=c.modalAriaVisibilityHelper_;if(f){c.hiddenElements_||(c.hiddenElements_=[]);f=c.JSC$10107_dom_.getChildren(c.JSC$10107_dom_.JSC$9268_document_.body);for(var d=0;d<f.length;d++){var q=f[d],Z;if(Z=q!=c.JSC$10107_element_)Z=q.getAttribute("aria-hidden"),Z=!(Z==null||Z==void 0?0:String(Z));Z&&(hM(q,"hidden",!0),c.hiddenElements_.push(q))}}else if(c.hiddenElements_){for(f=
0;f<c.hiddenElements_.length;f++)c.hiddenElements_[f].removeAttribute("aria-hidden");c.hiddenElements_=null}};
en.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var zf3=function(c,f){c.bgIframeEl_&&_.IO(c.bgIframeEl_,f);c.bgEl_&&_.IO(c.bgEl_,f);_.IO(c.getElement(),f);_.IO(c.tabCatcherElement_,f)};
_.r=en.prototype;_.r.onShow=function(){this.dispatchEvent("show")};
_.r.onHide=function(){zf3(this,!1);this.dispatchEvent("hide")};
_.r.isVisible=function(){return this.visible_};
_.r.focus=function(){this.focusElement_()};
_.r.resizeBackground_=function(){this.bgIframeEl_&&_.IO(this.bgIframeEl_,!1);this.bgEl_&&_.IO(this.bgEl_,!1);var c=this.JSC$10086_dom_.JSC$9268_document_;var f=_.Yc(VT(this.JSC$10086_dom_.JSC$9268_document_)||window);var d=Math.max(f.width,Math.max(c.body.scrollWidth,c.documentElement.scrollWidth));c=Math.max(f.height,Math.max(c.body.scrollHeight,c.documentElement.scrollHeight));this.bgIframeEl_&&(_.IO(this.bgIframeEl_,!0),_.mQT(this.bgIframeEl_,d,c));this.bgEl_&&(_.IO(this.bgEl_,!0),_.mQT(this.bgEl_,
d,c))};
_.r.reposition=function(){var c;if(_.TJv(this.getElement())=="fixed")var f=c=0;else f=F1(this.JSC$10086_dom_),c=f.x,f=f.y;var d=AHT(this.getElement());var q=_.Yc(VT(this.JSC$10086_dom_.JSC$9268_document_)||window);c=Math.max(c+q.width/2-d.width/2,0);f=Math.max(f+q.height/2-d.height/2,0);W1(this.getElement(),c,f);W1(this.tabCatcherElement_,c,f)};
_.r.onFocus=function(c){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():c.target==this.tabCatcherElement_&&SW(this.focusElement_,0,this)};
_.r.focusElement_=function(){try{this.getElement().focus()}catch(c){}};
_.r.disposeInternal=function(){_.GV(this.popupShowTransition_);this.popupShowTransition_=null;_.GV(this.popupHideTransition_);this.popupHideTransition_=null;_.GV(this.bgShowTransition_);this.bgShowTransition_=null;_.GV(this.bgHideTransition_);this.bgHideTransition_=null;en.superClass_.disposeInternal.call(this)};var XE=function(c,f,d){en.call(this,f,d);this.JSC$10117_class_=c||"modal-dialog";this.buttons_=(new NK).addButton(JwH,!0).addButton(aey,!1,!0)};
_.rn(XE,en);_.r=XE.prototype;_.r.escapeToCancel_=!0;_.r.hasTitleCloseButton_=!0;_.r.modal_=!0;_.r.draggable_=!0;_.r.backgroundElementOpacity_=.5;_.r.title_="";_.r.JSC$10119_dragger_=null;_.r.JSC$10119_disposeOnHide_=!1;_.r.titleEl_=null;_.r.titleTextEl_=null;_.r.titleTextId_=null;_.r.titleCloseEl_=null;_.r.contentEl_=null;_.r.buttonEl_=null;_.r.getCssClass=function(){return this.JSC$10117_class_};
_.r.setTitle=function(c){this.title_=c;this.titleTextEl_&&_.v1(this.titleTextEl_,c)};
_.r.getTitle=function(){return this.title_};
_.r.getContent=function(){return""};
_.r.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var V6o=function(c){c.getElement()||c.render();return c.getElement()};
XE.prototype.getBackgroundElement=function(){this.getElement()||this.render();return XE.superClass_.getBackgroundElement.call(this)};
var XsH=function(c,f){c.backgroundElementOpacity_=f;c.getElement()&&(f=c.getBackgroundElement())&&Fcv(f,c.backgroundElementOpacity_)};
XE.prototype.setDraggable=function(c){this.draggable_=c;uhy(this,c&&this.inDocument_)};
XE.prototype.handleDrag=function(){};
var uhy=function(c,f){var d=sC(c.JSC$10117_class_+"-title-draggable").split(" ");c.getElement()&&(f?Ip(c.titleEl_,d):kZF(c.titleEl_,d));f&&!c.JSC$10119_dragger_?(f=new _.w3(c.getElement(),c.titleEl_),c.JSC$10119_dragger_=f,Ip(c.titleEl_,d),_.Lx(c.JSC$10119_dragger_,"start",c.setDraggerLimits_,!1,c),_.Lx(c.JSC$10119_dragger_,"drag",c.handleDrag,!1,c)):!f&&c.JSC$10119_dragger_&&(c.JSC$10119_dragger_.dispose(),c.JSC$10119_dragger_=null)};
_.r=XE.prototype;
_.r.JSC$10088_createDom=function(){XE.superClass_.JSC$10088_createDom.call(this);var c=this.getElement(),f=this.JSC$10086_dom_;this.titleTextId_=this.getId();var d=this.getId()+".contentEl";this.titleEl_=f.JSC$9270_createDom("DIV",this.JSC$10117_class_+"-title",this.titleTextEl_=f.JSC$9270_createDom("SPAN",{className:this.JSC$10117_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=f.JSC$9270_createDom("SPAN",this.JSC$10117_class_+"-title-close"));xH_(c,this.titleEl_,this.contentEl_=
f.JSC$9270_createDom("DIV",{className:this.JSC$10117_class_+"-content",id:d}),this.buttonEl_=f.JSC$9270_createDom("DIV",this.JSC$10117_class_+"-buttons"));krH(this.titleTextEl_,"heading");krH(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;hM(this.titleCloseEl_,"label","Close");krH(c,"dialog");hM(c,"labelledby",this.titleTextId_||"");_.IO(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(c=this.buttons_,c.JSC$10120_element_=this.buttonEl_,c.render());_.IO(this.buttonEl_,!!this.buttons_);
XsH(this,this.backgroundElementOpacity_)};
_.r.decorateInternal=function(c){XE.superClass_.decorateInternal.call(this,c);c=this.getElement();var f=this.JSC$10117_class_+"-content";this.contentEl_=Qv(document,null,f,c)[0];this.contentEl_||(this.contentEl_=this.JSC$10086_dom_.JSC$9270_createDom("DIV",f),c.appendChild(this.contentEl_));f=this.JSC$10117_class_+"-title";var d=this.JSC$10117_class_+"-title-text",q=this.JSC$10117_class_+"-title-close";(this.titleEl_=Qv(document,null,f,c)[0])?(this.titleTextEl_=Qv(document,null,d,this.titleEl_)[0],
this.titleCloseEl_=Qv(document,null,q,this.titleEl_)[0]):(this.titleEl_=this.JSC$10086_dom_.JSC$9270_createDom("DIV",f),c.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=O3_(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Lo("SPAN",{className:d,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;hM(c,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10086_dom_.JSC$9270_createDom("SPAN",q),this.titleEl_.appendChild(this.titleCloseEl_));_.IO(this.titleCloseEl_,this.hasTitleCloseButton_);f=this.JSC$10117_class_+"-buttons";(this.buttonEl_=Qv(document,null,f,c)[0])?(this.buttons_=new NK(this.JSC$10086_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10086_dom_.JSC$9270_createDom("DIV",f),c.appendChild(this.buttonEl_),this.buttons_&&(c=this.buttons_,c.JSC$10120_element_=this.buttonEl_,c.render()),_.IO(this.buttonEl_,
!!this.buttons_));XsH(this,this.backgroundElementOpacity_)};
_.r.enterDocument=function(){XE.superClass_.enterDocument.call(this);vf(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);vf(this).listen(this.buttonEl_,"click",this.onButtonClick_);uhy(this,this.draggable_);vf(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var c=this.getElement();krH(c,"dialog");this.titleTextEl_.id!==""&&hM(c,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){c=this.JSC$10086_dom_;
var f=this.getBackgroundElement();c.removeNode(this.bgIframeEl_);c.removeNode(f)}this.isVisible()&&LwH(this,!1)}};
_.r.exitDocument=function(){this.isVisible()&&this.setVisible(!1);uhy(this,!1);XE.superClass_.exitDocument.call(this)};
_.r.setVisible=function(c){c!=this.isVisible()&&(this.inDocument_||this.render(),XE.superClass_.setVisible.call(this,c))};
_.r.onShow=function(){XE.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.r.onHide=function(){XE.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10119_disposeOnHide_&&this.dispose()};
_.r.setDraggerLimits_=function(){var c=this.JSC$10086_dom_.JSC$9268_document_,f=_.Yc(VT(c)||window),d=Math.max(c.body.scrollWidth,f.width);c=Math.max(c.body.scrollHeight,f.height);var q=AHT(this.getElement());_.TJv(this.getElement())=="fixed"?this.JSC$10119_dragger_.limits=new hq(0,0,Math.max(0,f.width-q.width),Math.max(0,f.height-q.height)):this.JSC$10119_dragger_.limits=new hq(0,0,d-q.width,c-q.height)};
_.r.onTitleCloseClick_=function(){vO_(this)};
var vO_=function(c){if(c.hasTitleCloseButton_){var f=c.buttons_,d=f&&f.cancelButton_;d?(f=f.get(d),c.dispatchEvent(new I5(d,f))&&c.setVisible(!1)):c.setVisible(!1)}},hfK=function(c){c.hasTitleCloseButton_=!1;
c.titleCloseEl_&&_.IO(c.titleCloseEl_,c.hasTitleCloseButton_)};
XE.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;XE.superClass_.disposeInternal.call(this)};
XE.prototype.onButtonClick_=function(c){a:{for(c=c.target;c!=null&&c!=this.buttonEl_;){if(c.tagName=="BUTTON")break a;c=c.parentNode}c=null}if(c&&!c.disabled){c=c.name;var f=this.buttons_.get(c);this.dispatchEvent(new I5(c,f))&&this.setVisible(!1)}};
XE.prototype.onKey_=function(c){var f=!1,d=!1,q=this.buttons_,Z=c.target;if(c.type=="keydown")if(this.escapeToCancel_&&c.keyCode==27){var M=q&&q.cancelButton_;Z=Z.tagName=="SELECT"&&!Z.disabled;M&&!Z?(d=!0,f=q.get(M),f=this.dispatchEvent(new I5(M,f))):Z||(f=!0)}else{if(c.keyCode==9&&c.shiftKey&&Z==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(H){}SW(this.resetBackwardTabWrap_,0,this)}}else if(c.keyCode==13){if(Z.tagName=="BUTTON"&&!Z.disabled)M=Z.name;
else if(Z==this.titleCloseEl_)vO_(this);else if(q){var g=q.defaultButton_,O;if(O=g)a:{O=FE("BUTTON",q.JSC$10120_element_);for(var l,m=0;l=O[m];m++)if(l.name==g||l.id==g){O=l;break a}O=null}Z=(Z.tagName=="TEXTAREA"||Z.tagName=="SELECT"||Z.tagName=="A")&&!Z.disabled;!O||O.disabled||Z||(M=g)}M&&q&&(d=!0,f=this.dispatchEvent(new I5(M,String(q.get(M)))))}else Z!=this.titleCloseEl_||c.keyCode!=32&&c.key!=" "||vO_(this);if(f||d)c.stopPropagation(),c.preventDefault();f&&this.setVisible(!1)};
var I5=function(c,f){this.type="dialogselect";this.key=c;this.caption=f};
_.rn(I5,_.AC);var NK=function(c){Wf.call(this);c||tT();this.cancelButton_=this.JSC$10120_element_=this.defaultButton_=null};
_.rn(NK,Wf);_.r=NK.prototype;_.r.clear=function(){Wf.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.r.set=function(c,f,d,q){Wf.prototype.set.call(this,c,f);d&&(this.defaultButton_=c);q&&(this.cancelButton_=c);return this};
_.r.addButton=function(c,f,d){return this.set(c.key,c.caption,f,d)};
_.r.render=function(){if(this.JSC$10120_element_){_.G8(this.JSC$10120_element_,BRN);var c=tT(this.JSC$10120_element_);this.forEach(function(f,d){f=c.JSC$9270_createDom("BUTTON",{name:d},f);d==this.defaultButton_&&(f.className="goog-buttonset-default");this.JSC$10120_element_.appendChild(f)},this)}};
_.r.decorate=function(c){if(c&&c.nodeType==1){this.JSC$10120_element_=c;c=FE("BUTTON",this.JSC$10120_element_);for(var f,d,q,Z=0;f=c[Z];Z++)if(d=f.name||f.id,q=O3_(f)||f.value,d){var M=Z==0;this.set(d,q,M,f.name=="cancel");M&&_.q5(f,"goog-buttonset-default")}}};
_.r.getElement=function(){return this.JSC$10120_element_};
var JwH={key:"ok",caption:"OK"},aey={key:"cancel",caption:"Cancel"},ws3={key:"yes",caption:"Yes"},ywT={key:"no",caption:"No"},WwO={key:"save",caption:"Save"},DRH={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new NK).addButton(JwH,!0,!0),(new NK).addButton(JwH,!0).addButton(aey,!1,!0),(new NK).addButton(ws3,!0).addButton(ywT,!1,!0),(new NK).addButton(ws3).addButton(ywT,!0).addButton(aey,!1,!0),(new NK).addButton(DRH).addButton(WwO).addButton(aey,!0,!0));_.rn(j7n,XE);_.rn(qNN,un);var ef3=_.pp(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),NRO=_.pp(["//apis.google.com/js/rpc.js"]),s7z=_.CG(ef3),leh=_.CG(NRO),M6M=null;var vu=function(c,f){_.KF.call(this);this.JSC$10129_element_=c;c=_.Gr(this.JSC$10129_element_)?this.JSC$10129_element_:this.JSC$10129_element_?this.JSC$10129_element_.body:null;this.isRtl_=!!c&&_.tFr(c);this.listenKey_=_.Lx(this.JSC$10129_element_,_.lf?"DOMMouseScroll":"mousewheel",this,f)};
_.rn(vu,_.KF);vu.prototype.handleEvent=function(c){var f=0,d=0,q=c.event_;q.type=="mousewheel"?(c=Ie3(-q.wheelDelta),q.wheelDeltaX!==void 0?(f=Ie3(-q.wheelDeltaX),d=Ie3(-q.wheelDeltaY)):d=c):(c=q.detail,c>100?c=3:c<-100&&(c=-3),q.axis!==void 0&&q.axis===q.HORIZONTAL_AXIS?f=c:d=c);typeof this.maxDeltaX_==="number"&&(f=_.uk(f,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(d=_.uk(d,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(f=-f);f=new PxT(c,q,f,d);this.dispatchEvent(f)};
var Ie3=function(c){return _.sJ&&(_.nmk||QRG)&&c%40!=0?c:c/40};
vu.prototype.disposeInternal=function(){vu.superClass_.disposeInternal.call(this);$p(this.listenKey_);this.listenKey_=null};
var PxT=function(c,f,d,q){_.Yo.call(this,f);this.type="mousewheel";this.detail=c;this.deltaX=d;this.deltaY=q};
_.rn(PxT,_.Yo);_.qo=function(c){var f="instance_";if(c.instance_&&c.hasOwnProperty(f))return c.instance_;f=new c;return c.instance_=f};var Ouz;var RfK=_.pp(["https://about:blank"]),URH=_.pp(['javascript:""']),pso=_.pp(["about:blank"]);_.rn(Pu,j7n);_.r=Pu.prototype;_.r.JSC$10137_url_="";_.r.JSC$10137_iframe_=null;_.r.iframeLoaded_=!1;_.r.loadedFired_=!1;_.r.callback_=function(){};
_.r.enterDocument=function(){Pu.superClass_.enterDocument.call(this);gOk(this.getBackgroundElement(),vf(this))};
_.r.render=function(c){var f=this;Pu.superClass_.render.call(this,c);this.useGapi_?pqj(this.iframeManager_,window).then(function(){return xRT(f)}).then(null,function(){f.callback_({action:"error"})}):oOr(this)};
var xRT=function(c){var f=c.JSC$10086_dom_.JSC$9270_createDom("div",["picker-dialog-content","picker-frame"]);_.IO(f,!1);c.getContentElement().appendChild(f);return xl_(c.iframeManager_,f,function(d){var q=T8y(d["iframe-command"]);switch(q.getCommand()){case 1:d=c.callback_;q=_.TD(q,jW,2);var Z="";switch(q.getStatus()){case 2:Z="cancel";break;case 1:Z="picked";break;case 3:Z="error"}var M=_.db(q,QQ,2,_.jQ(GMr));q=M.length===0?{action:Z}:LuO(M,Z,_.TD(q,shH,7));d.call(c,q);c.setVisible(!1);break;case 4:hfK(c);
c.callback_({action:"loaded"});break;case 7:case 8:d=c.callback_;a:{Z=q.getCommand();M=_.TD(q,jW,2);switch(Z){case 7:Z="uploadScheduled";break;case 8:Z="uploadStateChange";break;default:q={};break a}q=_.db(M,QQ,2,_.jQ(GMr));if(q.length===0)q={action:Z};else{var g=_.TD(M,shH,7);M=g&&_.aW(g,1);g=A4r(g);q=tAK(q,Z,M,g)}}d.call(c,q)}},c.JSC$10137_url_,c.targetId_,c.rpcToken_).then(function(d){c.JSC$10137_iframe_=d.getIframeEl();
GrO(c);_.IO(c.JSC$10137_iframe_.parentElement,!0);_.q5(c.getElement(),"picker-dialog");cNv(c);return d})},oOr=function(c){c.JSC$10137_iframe_=c.JSC$10086_dom_.JSC$9270_createDom("IFRAME",{id:c.targetId_,
name:c.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.NS(c.JSC$10137_iframe_,fZv(c));_.q5(c.getElement(),"picker-dialog");c.getContentElement().appendChild(c.JSC$10137_iframe_);vf(c).listen(c.JSC$10137_iframe_,"load",function(){return void GrO(c)});
c.JSC$10137_iframe_.src=c.JSC$10137_url_;cNv(c)},jb_=function(c){dur(c,(0,_.n1)(function(f){f.setAuthToken(this.targetId_,this.rpcToken_)},c))},cNv=function(c){var f=_.eQ(_.DU(c.JSC$10137_url_),"title");
f&&c.setTitle(f)},fZv=function(c){return _.BzP("Internet Explorer")>=7&&_.Z4(c.JSC$10137_url_,"https")?_.CG(RfK):_.OJ?_.CG(URH):_.CG(pso)},GrO=function(c){jb_(c);
c.iframeLoaded_=!0;c.JSC$10137_iframe_.tabIndex=0;c.isVisible()&&c.focus()};
Pu.prototype.handleKeydown_=function(c){c.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),c.stopPropagation(),c.preventDefault())};
var dur=function(c,f){var d=c.JSC$10135_gadgetsDomHelper_;rwk(function(){f(d.getWindow().gadgets.rpc)},d)};
Pu.prototype.setUrl=function(c){c=_.Nx(new _.xn(c),"rpcService",this.targetId_);_.Nx(c,"rpctoken",this.rpcToken_);_.MK(c,"rpctoken="+this.rpcToken_);_.f0(c,"https");this.JSC$10137_url_=c.toString();this.JSC$10137_iframe_&&(this.JSC$10137_iframe_.src=this.JSC$10137_url_)};
var qmF=function(c,f){c.callback_=f;dur(c,(0,_.n1)(function(d){d.register(this.targetId_,(0,_.n1)(this.handlePickerAction_,this))},c))};
Pu.prototype.handlePickerAction_=function(c){var f=c.action;f=="loaded"&&(this.loadedFired_=!0,ZWT(this,new dRn(this.isVisible())),M_3(this),hfK(this),vf(this).unlisten(this.JSC$10086_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10137_iframe_.tabIndex=0);f!="picked"&&f!="cancel"||this.setVisible(!1);this.callback_(c)};
var M_3=function(c){c.JSC$10137_appId_&&ZWT(c,new feY(c.JSC$10137_appId_,window.location.protocol+"//"+window.location.host))};
Pu.prototype.setRelayUrl=function(c){dur(this,(0,_.n1)(function(f){f.setRelayUrl(this.targetId_,c)},this))};
var ZWT=function(c,f){c.useGapi_&&dRF(f,c.iframeManager_).then(null,function(){c.callback_({action:"error"})});
dur(c,(0,_.n1)(function(d){d.call(this.targetId_,"picker",null,f)},c))};
Pu.prototype.resizePicker_=function(){var c=VT(this.JSC$10086_dom_.JSC$9268_document_)||window;if(_.eQ(_.DU(this.JSC$10137_url_),"ignoreLimits")=="true")c=new _.AT(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.eQ(_.DU(this.JSC$10137_url_),"shadeDialog")=="true"){var f=V6o(this);f=b3_(f);var d=_.Yc(c);c=d.width-80;d=d.height-40;f&&(c-=f.left?f.left:0,c-=f.right?f.right:0,d-=f.top?f.top:0,d-=f.bottom?f.bottom:0);c=new _.AT(c>0?c:0,d>0?d:0)}else(f=this.preferredDialogWidth_)?(f=Math.max(320,
Math.min(1051,f)),(d=this.preferredDialogHeight_)||(d=_.Yc(c).height*.85),d=Math.max(480,Math.min(650,d))):(f=_.Yc(c),d=f.width*.618,d=d<f.height?Math.round(Math.max(480,Math.min(650,d*.85))):Math.round(Math.max(480,Math.min(650,f.height*.85))),f=Math.round(d/.618)),c=_.Yc(c),f=Math.min(f,Math.max(c.width,320)),d=Math.min(d,Math.max(c.height,480)),c=new _.AT(f,d);_.mQT(this.getContentElement(),c);this.reposition()};
Pu.prototype.reposition=function(){if(_.eQ(_.DU(this.JSC$10137_url_),"shadeDialog")=="true"){var c=AHT(this.getElement()),f=_.Yc(this.JSC$10086_dom_.getWindow());c=Math.floor(f.width/2-c.width/2);f=V6o(this);if(f=b3_(f)){var d=f.left?f.left:0;d+=f.right?f.right:0;c=Math.floor(c-d/2)}c=c>0?c:0;f=F1(this.JSC$10086_dom_).y;W1(this.getElement(),c,f)}else Pu.superClass_.reposition.call(this)};
Pu.prototype.setVisible=function(c){if(c!=this.isVisible()&&this.autoSizeDialog_){var f=this.JSC$10086_dom_.getWindow();c?(this.resizePicker_(),vf(this).listen(f,"resize",this.resizePicker_),this.iframeLoaded_||vf(this).listen(f,"keydown",this.handleKeydown_)):(vf(this).unlisten(f,"resize",this.resizePicker_),this.iframeLoaded_||vf(this).unlisten(f,"keydown",this.handleKeydown_))}Pu.superClass_.setVisible.call(this,c);ZWT(this,new dRn(c))};
Pu.prototype.focus=function(){Pu.superClass_.focus.call(this);if(this.JSC$10137_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10137_iframe_.focus()}catch(c){}};var Va=function(c,f){f=f===void 0?Pu:f;un.call(this,c);this.pickerConstructor=f;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(c=window.location.origin)||(c=window.location.protocol+"//"+window.location.host);c&&this.urlParamMap_.set("origin",c);this.postProcessors_=[]};
_.K(Va,qNN);Va.prototype.JSC$10142_disposeOnHide_=!1;
Va.prototype.build=function(){this.JSC$10043_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10043_appId_);this.getRelayUrl()||this.setRelayUrl(_.qK(_.MK(_.Zk(_.DU(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var c=new this.pickerConstructor(rNr(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);c.JSC$10119_disposeOnHide_=this.JSC$10142_disposeOnHide_;
c.JSC$10137_appId_=this.JSC$10043_appId_;c.loadedFired_&&M_3(c);qmF(c,this.callback_);return c};
var C6u=function(c){c.urlParamMap_.set("multiselectEnabled","true");return c};
_.r=Va.prototype;_.r.getHeight=function(){return this.dialogHeight_};
_.r.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.r.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.r.getTitle=function(){return this.urlParamMap_.get("title")};
_.r.getWidth=function(){return this.dialogWidth_};
var gz_=function(c){c.JSC$10142_disposeOnHide_=void 0;return c};
Va.prototype.setRelayUrl=function(c){this.urlParamMap_.set("parent",c);return this};
var kPo=function(c,f){c.urlParamMap_.set("selectButtonLabel",f);return c};
Va.prototype.setSize=function(c,f){this.dialogWidth_=c;this.dialogHeight_=f;return this};
Va.prototype.setTitle=function(c){this.urlParamMap_.set("title",c);return this};
var rNr=function(c){c.postProcessors_.length&&c.urlParamMap_.set("pp",JSON.stringify(c.postProcessors_));c.urlParamMap_.set("nav",iDT(c.nav_));var f=new _.xn(c.getBaseUrl());c.urlParamMap_.forEach(function(d,q){_.Nx(f,q,d)});
return f};var sbo=function(c,f){c.name!==void 0?(this.name=c.name,this.code=OWj[c.name]):(this.code=c=c.code,this.name=lZ3(c));_.cN.call(this,a4F("%s %s",this.name,f))};
_.rn(sbo,_.cN);var lZ3=function(c){var f=_.zV.findKey(OWj,function(d){return c==d});
if(f===void 0)throw Error("hb`"+c);return f},Pf={},OWj=(Pf.AbortError=3,Pf.EncodingError=5,Pf.InvalidModificationError=9,Pf.InvalidStateError=7,Pf.NotFoundError=1,Pf.NotReadableError=4,Pf.NoModificationAllowedError=6,Pf.PathExistsError=12,Pf.QuotaExceededError=10,Pf.SecurityError=2,Pf.SyntaxError=8,Pf.TypeMismatchError=11,Pf);var BKK=function(c,f){_.AC.call(this,c.type,f);this.event_=c};
_.rn(BKK,_.AC);var iWT=function(c,f,d){d===void 0&&(d=c.size);return c.slice?c.slice(f,d):null};var TRr=new WeakMap,iuY=function(c,f){c=[c];for(var d=f.length-1;d>=0;--d)c.push(typeof f[d],f[d]);return c.join("\v")};_.HuY(function(){if(!_.dz.Blob)return!1;var c=new Uint8Array(100);try{var f=new Blob([c])}catch(d){return!1}return f.size!=100?!1:!0});
var TK3=_.HuY(function(){if(!_.dz.Blob)return!1;var c=new Uint8Array(100);try{var f=new Blob([c])}catch(d){return!1}return iWT(f,0,1)===null?!1:!0});_.dz.U3bHHf!=null||(_.dz.U3bHHf=0);_.dz.U3bHHf++;_.muK=new WeakMap;_.HWj=new WeakMap;var AwM={};var x6=void 0;var FwM=Symbol("pb");var V6z=cV("WizInjectionContext_Dispatcher");var di=Symbol("qb");var T4,tk;T4=function(){this.afterRenderCallbacks=null};
_.PVC=Symbol("rb");tk=function(c){this.props=c;this.__unmounted=!1};
tk.prototype.didPatch=function(){};
tk.prototype.didMount=function(){};
tk.prototype.didUnmount=function(){};
tk.prototype.didUpdate=function(){};_.SNe=cV("WizInjectionContext_RootElement");var zfP=cV("WizInjectionContext_AppContext"),LwN=cV("WizInjectionContext_ModelRootElement"),JwN=cV("WizInjectionContext_RendererData"),aek=cV("WizInjectionContext_InjectingConstructor"),Q7l=cV("WizInjectionContext_AsyncDeps"),XsN={};var Ww4=!1;var IeC={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:YHN,enableLazyTsx:Fle,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:Ann,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var d$=Object.assign({},{attributes:{},handleError:function(c){throw c;}},IeC);var ANK=Symbol("vb"),HV=Symbol("wb"),XwM=Symbol("xb"),aZe=Symbol("yb"),Duk=VF(function(c){return jh(c)&&ANK in c});var Gr4=Symbol("zb"),R5={},xRh=(R5[Gr4]=!0,R5.debugName="[component]",R5.getComponentStack=function(){for(var c=[],f=this;f;)cNY(f)&&c.push(f.debugName),f=f.parent;return c},R5.registerSignal=function(){},R5.registerEffect=function(){},R5);var qa=null,Ma=!1,qmn=1,g$=Symbol("Ab"),im={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 UK=Symbol("Bb"),p0=Symbol("Cb"),CL=Symbol("Db"),lZP=Object.assign({},im,{value:UK,dirty:!0,error:null,equal:fZY,kind:"computed",producerMustRecompute:function(c){return c.value===UK||c.value===p0},
producerRecomputeValue:function(c){if(c.value===p0)throw Error("Z");var f=c.value;c.value=p0;var d=gzG(c),q=!1;try{var Z=c.computation();Za(null);q=f!==UK&&f!==CL&&Z!==CL&&c.equal(f,Z)}catch(M){Z=CL,c.error=M}finally{OWr(c,d)}q?c.value=f:(c.value=Z,c.version++)}});var TKC=function(){throw Error();};var HWr=null,BKk=Object.assign({},im,{equal:fZY,value:void 0,kind:"signal"});Object.assign({},im,{value:UK,dirty:!0,error:null,equal:fZY,kind:"linkedSignal",producerMustRecompute:function(c){return c.value===UK||c.value===p0},
producerRecomputeValue:function(c){if(c.value===p0)throw Error("Z");var f=c.value;c.value=p0;var d=gzG(c);try{var q=c.source();var Z=c.computation(q,f===UK||f===CL?void 0:{source:c.sourceValue,value:f});c.sourceValue=q}catch(M){Z=CL,c.error=M}finally{OWr(c,d)}f!==UK&&Z!==CL&&c.equal(f,Z)?c.value=f:(c.value=Z,c.version++)}});Object.assign({},im,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(c){c.schedule!==null&&c.schedule(c.ref)},
hasRun:!1,cleanupFn:function(){}});var Ymk=Symbol("Eb"),lm=Symbol("Fb");var sT=Array.isArray;var SmG;var YmK={},z2G=QbC(Object.assign({},{consumerAllowSignalWrites:!0},YmK)),HC=QbC(Object.assign({},{consumerAllowSignalWrites:!0},YmK));var Ao=0,Yk=!1,xG=function(){this.queue=new Set};
xG.prototype.remove=function(c){this.queue.delete(c)};
xG.prototype.clear=function(){this.queue.clear()};
var FjF=function(){xG.apply(this,arguments)};
_.K(FjF,xG);FjF.prototype.schedule=function(c){this.queue.add(c)};
FjF.prototype.flush=function(){if(this.queue.size){Yk=!0;try{for(var c=_.C(this.queue),f=c.next();!f.done;f=c.next()){var d=f.value;this.queue.delete(d);try{d.run()}catch(q){t_y(q)}}}finally{Yk=!1}}};
var bWH=new FjF,o5=function(){xG.apply(this,arguments)};
_.K(o5,xG);var KjH=function(){o5.apply(this,arguments)};
_.K(KjH,o5);KjH.prototype.schedule=function(c){c.hasRun?this.queue.add(c):c.run()};
KjH.prototype.flush=function(){if(this.queue.size)if(d$.flushRenderEffectsDuringRender){var c=this.queue;this.queue=new Set;e2e(c)}else e2e(this.queue)};
var JNe=new KjH,Ez3=function(){o5.apply(this,arguments)};
_.K(Ez3,o5);Ez3.prototype.schedule=function(c){var f=this;return _.k(function(d){if(d.nextAddress==1)return c.hasRun?d.jumpTo(2):d.yield(Promise.resolve(),3);if(d.nextAddress!=2)return c.run(),d.return();f.queue.add(c);_.Fm(d)})};
Ez3.prototype.flush=function(){var c=this;return _.k(function(f){if(f.nextAddress==1)return c.queue.size?f.yield(Promise.resolve(),2):f.return();e2e(c.queue);_.Fm(f)})};
var uXY=new Ez3,nzv=function(){o5.apply(this,arguments)};
_.K(nzv,o5);nzv.prototype.schedule=function(c){this.queue.add(c)};
nzv.prototype.flush=function(){this.queue.size&&e2e(this.queue)};
var V_l=new nzv,yNM=[JNe,bWH,V_l,uXY],$uy=[JNe,V_l,uXY],h2h=[];HWr=function(){WjN();for(var c=_.C(h2h),f=c.next();!f.done;f=c.next())f=f.value,f()};
var t_y=jM;var bm=Symbol("Kb");var to=null,P6h,R2C=null,Uuk;var Ge={},Qb3=Object.assign({},im,(Ge[ANK]=!0,Ge.effectType=HV,Ge.isResettableContext=!0,Ge.hasRun=!1,Ge.effectFn=null,Ge.consumerIsAlwaysLive=!0,Ge.consumerAllowSignalWrites=!0,Ge.consumerMarkedDirty=vze,Ge.kind="effect",Ge.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ma)throw Error("Lb");this.dirty=!1;if(!this.hasRun||ZWh(this)){this.hasRun=!0;$RP(this);var c=_.oO(this),f=gzG(this);Rfk("effectRun",this.debugName);try{nL(this.effectFn,this.componentStack,this)}catch(d){throw d$.enableContextBasedComponentStacks&&
ET(d),d;}finally{URN("effectRun",this.debugName),OWr(this,f),_.oO(c)}}}},Ge.componentStack=void 0,Ge.debugName="[effect]",Ge[Symbol.dispose]=function(){if(r$(this))for(var c=this.producers;c!==void 0;)c=kPz(c);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;c=_.C($uy);for(var f=c.next();!f.done;f=c.next())f.value.remove(this);nOG(this)},Ge));var ozG=Object.assign({},Qb3,{effectType:XwM});var GPG=Symbol("Mb");var c8h=Object.assign({},Qb3,{effectType:HV});var VRn=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 jlr={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},ddh=
{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}]}},SA4={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},MRr=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Zhr={"*":{async:1,dir:0,loading:2,target:3}};var Sm_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ca={},CWP=(ca[1]=null,ca[2]=function(c,f){return f instanceof WU?eP(f):VM.toString()},ca[3]=function(c,f){return SP(f)?_.Lq(f):Sm_.test(String(f))?String(f):VM.toString()},ca[4]=function(c,f){return f instanceof tv?_.Kq(f):VM.toString()},ca[5]=function(c,f){return String(f)},ca[7]=null,ca[8]=null,ca[10]=null,ca);var ovr=Symbol("Pb");var nVz=function(c){var f=Lju,d=c,q="",Z="",M=1;c<0&&(c=-c);if(c===Infinity)c=(Infinity*Math.sign(d)).toString();else{for(var g=0;g<z2_.length;g++){var O=z2_[g];M=f[O];if(c>=M||M<=1&&c>.1*M){q=O;break}}q?(q+="B",Z=" "):M=1;c=Math.round(d/M*10)/10+Z+q}return c},z2_="Y Z E P T G M K  m u n".split(" "),Lju={"":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};_.JNr=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 k5={};RegExp.prototype.hasOwnProperty("sticky");var ush=function(c){c=String(c);for(var f=function(q,Z,M){for(var g=Math.min(Z.length-M,q.length),O=0;O<g;O++){var l=Z[M+O];if(q[O]!==("A"<=l&&l<="Z"?l.toLowerCase():l))return!1}return!0},d=0;(d=c.indexOf("<",d))!=-1;){if(f("\x3c/script",c,d)||f("\x3c!--",c,d))return"zSoyz";
d+=1}return c};var ho={default:"__default"};var Bun=Object.prototype.hasOwnProperty;Ohz.prototype=Object.create(null);var fh=mdC();var pL=null;var QlC=function(c){this.created=[];this.deleted=[];this.node=c};var Sue=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var c=this,f=c;c;)f=c,c=c.parentNode;return f};var A8M=function(c,f){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=c;this.key=f;this.text=void 0};var Da=null,eh=null,y4=null,Iu=null,K4P=[],bh4=F4Y,Ru=[],UT=[],xYY=function(c){return L4N(function(f,d,q){y4=eh=f;eh=null;d(q);tRY(null);eh=y4;y4=y4.parentNode;return f},c)}(),p9e=function(c){return L4N(function(f,d,q){var Z={nextSibling:f};
eh=Z;d(q);y4&&tRY(f.nextSibling);return Z===eh?null:eh},c)}();var xk=[],J8n=0;var ou=new Ohz;var V1=new Ohz;var aZr=mdC(),wWn=aZr[ho.default],hwC=aZr.style,XWn=["focusin","focusout"],Ddh="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var Enl=function(){},B2n=function(){},LFN=function(){},$TY=function(){};var f9=Symbol("Wb");var RwN,PW4=IBN;var s6=Symbol("Xb");var Scr=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(" ")),
QSe=new Set(["a","font","script","style","title"]);var ld={setUp:riY,tearDown:riY,log:riY,logNodeRange:riY,graft:function(c,f){f()}};var Ak={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Y5=null,Fr=function(c,f){tk.call(this,c);var d=this;this.functionComponent=f;this.hooks=[];this.hookCounter=0;this.disposeEffects=Sh(function(q){d.effectContext=q;_.Q4(function(){HeM(d,d.el)})},d$.alwaysTrackContexts||!!x6)};
_.K(Fr,tk);Fr.prototype.render=function(c){var f=Y5;Y5=this;this.hookCounter=0;var d=Za(HC),q=_.oO(this.effectContext);try{return Rfk("render",this.componentName),this.functionComponent(c)}finally{URN("render",this.componentName),_.oO(q),Za(d),Y5=f}};
_.ci.Object.defineProperties(Fr.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return NKe(this.functionComponent)}}});var zgl=Symbol("kc"),bez=function(c,f,d){this.afterRenderCallbacks=null;this.kind=c;this.props=f;this.children=d};
_.K(bez,T4);bez.prototype.render=function(){var c=tsG(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var f=_.C(this.afterRenderCallbacks),d=f.next();!d.done;d=f.next())d=d.value,c=d(c);return c};
bez.prototype.getChildren=function(){return this.children};var azk=[];TKC=function(c){throw Error("ob`"+c.debugName);};
(function(){var c=pL;pL=function(f){c==null||c(f);Vsk(f)}})();var V__=new WeakMap,Xwu=0;var uXv=void 0,vzr={},h2T=new WeakMap,WBn={getComponent:function(c){if(c.hasAttribute("ng-version"))return vzr;if(!c.__wizComponent)return null;c=c.__wizComponent;h2T.set(c.propsAndState,c);return c.propsAndState},
getDirectiveMetadata:function(c){if(c===vzr)return{framework:"wiz",name:"<Root>",props:{}};c=h2T.get(c);if(!c)throw Error("lc");return{framework:"wiz",name:c.name,props:Object.fromEntries(Object.keys(c.props).map(function(f){return[f,f]}))}},
"\u0275setProfiler":function(c){var f;(f=uXv)==null||f();uXv=wwh(function(){c(2)})},
getInjector:function(c){return c.__wizComponent},
"\u0275getSignalGraph":function(c){var f;c=(f=c.effects)!=null?f:[];var d=XiP(c),q=Array.from(d.keys());f=[];c=[];for(var Z=new Map,M=0;M<q.length;M++)Z.set(q[M],M);d=_.C(d.entries());for(q=d.next();!q.done;q=d.next()){M=_.C(q.value);q=M.next().value;var g=M.next().value;M=q;q=Z.get(M);var O=V__.get(M);O||(O=Xwu.toString(),V__.set(M,O),Xwu++);var l=void 0,m=((l=M.debugName)!=null?l:"").replace(/@.+/,"");if(M.kind==="computed"){l=M.computation;var H=void 0;f.push({label:m,value:M.value,kind:M.kind,
epoch:M.version,debuggableFn:(H=l.userFn)!=null?H:l,id:O})}else if(M.kind==="signal")f.push({label:m,value:M.value,kind:M.kind,epoch:M.version,debuggableFn:M.debugFn,id:O});else if(M.kind==="effect"){H=void 0;l=(H=M.effectFn)!=null?H:void 0;var A=H=void 0;f.push({label:m,kind:M.kind,epoch:M.version,debuggableFn:(A=(H=l)==null?void 0:H.userFn)!=null?A:l,id:O})}else f.push({label:m,kind:M.kind,epoch:M.version,id:O});M=_.C(g);for(g=M.next();!g.done;g=M.next())c.push({consumer:q,producer:Z.get(g.value)})}return{nodes:f,
edges:c}},
isSignal:function(c){return typeof c==="function"&&c[g$]!==void 0}};Object.assign({},Qb3,{effectType:HV,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var c=this.elementRef;var f;c.element!=null||(c.element=(f=c.document.getElementById(c.value))!=null?f:void 0);c=c.element;for(f=this.attributes;f;){var d=f.signal();d!==f.prevValue&&(f.prevValue=d,VRn.has(f.name)?XC(c,f.name,d?"":null):XC(c,f.name,d));f=f.next}}});Object.assign({},Qb3,{effectType:HV,hasRun:!0});_.T.debugName="RlDudd";var u2N={nonNullableCondIsNull:function(){return Error("qc")}};var DTl=function(){this.map=new Map};
DTl.prototype.push=function(c,f){var d=this.map;d.has(c)&&(this.multi||(this.multi=new Map),this.multi.set(f,d.get(c)));d.set(c,f)};
DTl.prototype.pop=function(c){var f=this.map,d=f.get(c),q;d!==void 0&&((q=this.multi)==null?0:q.has(d))?(f.set(c,this.multi.get(d)),this.multi.delete(d)):f.delete(c);return d};_.bd.debugName="nsTGHd";_.K9.debugName="tbhMcf";_.E6.debugName="zyMFzb";_.n9.debugName="vI1rtf";_.UTC={OUT_OF_ORDER_HOOK_CALL:function(c){return Error("rc`"+c)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("sc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("tc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("uc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(c,f){return Error("vc`"+((f===void 0?0:f)?"IDOM":"Reactive")+"`"+c)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(c,f){return Error("wc`"+c+"`"+f)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(c){return Error("xc`"+c)},
USE_ELEMENT_NOT_ASSIGNED:function(c){return Error("yc`"+String(c))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(c){return Error("zc`"+String(c))}};RwN=KFz;var jcP=Symbol("Ac");T2z({beforeRender:function(c){var f=_.oO(c.effectContext);try{var d;((d=c.__syncEffects)==null?0:d.length)&&ZZz(c.__syncEffects)}finally{_.oO(f)}},
didPatch:function(c){var f=_.oO(c.effectContext);try{var d;((d=c.__syncEffects)==null?0:d.length)&&ZZz(c.__syncEffects)}finally{_.oO(f)}},
didUnmount:function(c){var f;((f=c.hooks)==null?0:f.length)&&c.hooks.forEach(qXh)}});var wwT,yNu,WjH;wwT=_.dz.window;_.VJ=(wwT==null?void 0:(yNu=wwT.yt)==null?void 0:yNu.config_)||(wwT==null?void 0:(WjH=wwT.ytcfg)==null?void 0:WjH.data_)||{};_.fu("yt.config_",_.VJ);var Duy={},gtn=[];_.KD=function(c){var f=_.hv.apply(1,arguments);var d=Error.call(this,c);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(_.LT(f));Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(_.KD,Error);var Bhk=function(c,f,d){this.actionName=c;this.optionalAction=f===void 0?!1:f;this.args=d===void 0?null:d;this.returnValue=[]};_.fi=function(c){this.name=c};_.e_=new _.fi("signalAction");var YXG=/^[\w.]*$/,BS4={q:!0,search_query:!0},scn=String(lrl);var dE;dE=Symbol("Bc");_.jk=function(c){this.name=c};
_.jk.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var FnN=function(c){this.key=c},ntl=function(c){this.deferredKey=c},bZC=function(){var c=this;
this.providers=new Map;this.JSC$10394_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(c.providers)}}};
bZC.prototype.addProvider=function(c){this.providers.set(c.provide,c);var f=this.JSC$10394_deferred.get(c.provide);if(f)try{f.resolver(this.resolve(c.provide))}catch(d){f.rejector(d)}};
bZC.prototype.resolve=function(c){return c instanceof ntl?e2r(this,c):c instanceof FnN?NKr(this,c.key,[],!0):NKr(this,c,[])};
var e2r=function(c,f){f=f.deferredKey;if(c.JSC$10394_deferred.has(f))return c.JSC$10394_deferred.get(f).promise;var d={};d.promise=new Promise(function(q,Z){d.resolver=q;d.rejector=Z});
c.JSC$10394_deferred.set(f,d);return d.promise},NKr=function(c,f,d,q){q=q===void 0?!1:q;
if(d.indexOf(f)>-1)throw Error("Cc`"+f);if(c.cachedValues.has(f))return c.cachedValues.get(f);if(!c.providers.has(f)){if(q)return;throw Error("Dc`"+f);}q=c.providers.get(f);d.push(f);if(q.useValue!==void 0)var Z=q.useValue;else if(q.useFactory)Z=q[dE]?IZv(c,q[dE],d):[],Z=q.useFactory.apply(q,_.LT(Z));else if(q.useClass){Z=q.useClass;var M=Z[dE]?IZv(c,Z[dE],d):[];Z=new (Function.prototype.bind.apply(Z,[null].concat(_.LT(M))))}else throw Error("Ec`"+f);d.pop();q.skipCache||c.cachedValues.set(f,Z);return Z},
IZv=function(c,f,d){return f?f.map(function(q){return q instanceof FnN?NKr(c,q.key,d,!0):NKr(c,q,d)}):[]};var tON;var Nu=new _.jk("ENDPOINT_HANDLER_TOKEN");_.Ib=new _.fi("urlEndpoint");var P6T=function(){this.data=[];this.cachedPackedInt52=-1};
P6T.prototype.set=function(c,f){f=f===void 0?!0:f;0<=c&&c<52&&Number.isInteger(c)&&this.data[c]!==f&&(this.data[c]=f,this.cachedPackedInt52=-1)};
P6T.prototype.get=function(c){return!!this.data[c]};
var R23=function(c){c.cachedPackedInt52===-1&&(c.cachedPackedInt52=c.data.reduce(function(f,d,q){return f+(d?Math.pow(2,q):0)},0));
return c.cachedPackedInt52};var yQ4=function(c){var f=Uuy;c=c===void 0?_.D5("yt.ads.biscotti.lastId_")||"":c;var d=Object,q=d.assign,Z={};Z.dt=eW3;Z.flash="0";a:{try{var M=f.JSC$10400_win_.top.location.href}catch(qN){M=2;break a}M=M?M===f.doc_.location.href?0:1:2}Z=(Z.frm=M,Z);try{Z.u_tz=-(new Date).getTimezoneOffset();try{var g=DH.history.length}catch(qN){g=0}Z.u_his=g;var O;Z.u_h=(O=DH.screen)==null?void 0:O.height;var l;Z.u_w=(l=DH.screen)==null?void 0:l.width;var m;Z.u_ah=(m=DH.screen)==null?void 0:m.availHeight;var H;Z.u_aw=
(H=DH.screen)==null?void 0:H.availWidth;var A;Z.u_cd=(A=DH.screen)==null?void 0:A.colorDepth}catch(qN){}g=f.JSC$10400_win_;try{var Y=g.screenX;var t=g.screenY}catch(qN){}try{var E=g.outerWidth;var J=g.outerHeight}catch(qN){}try{var X=g.innerWidth;var u=g.innerHeight}catch(qN){}try{var W=g.screenLeft;var p=g.screenTop}catch(qN){}try{X=g.innerWidth,u=g.innerHeight}catch(qN){}try{var N=g.screen.availWidth;var I=g.screen.availTop}catch(qN){}Y=[W,p,Y,t,N,I,E,J,X,u];t=lUz(!1,f.JSC$10400_win_.top);E={};
var R=R===void 0?_.dz:R;J=new P6T;"SVGElement"in R&&"createElementNS"in R.document&&J.set(0);X=wHK();X["allow-top-navigation-by-user-activation"]&&J.set(1);X["allow-popups-to-escape-sandbox"]&&J.set(2);R.crypto&&R.crypto.subtle&&J.set(3);"TextDecoder"in R&&"TextEncoder"in R&&J.set(4);R=R23(J);f=(E.bc=R,E.bih=t.height,E.biw=t.width,E.brdim=Y.join(),E.vis=jwn(f.doc_),E.wgl=!!DH.WebGLRenderingContext,E);d=q.call(d,Z,f);d.ca_type="image";c&&(d.bid=c);return d},Uuy=new function(){var c=window.document;
this.JSC$10400_win_=window;this.doc_=c};
_.fu("yt.ads_.signals_.getAdSignalsString",function(c){return iZe(yQ4(c))});_.M6();navigator.userAgent.indexOf(" (CrKey ");var z5l="XMLHttpRequest"in _.dz?function(){return new XMLHttpRequest}:null;var pwK="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),xuH=[].concat(_.LT(pwK),["client_dev_set_cookie"]);var wON={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"},VOz="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(_.LT(pwK)),pON=!1,utl=_.WnC,PlY=h5n;var mYC=[{messageFn:function(c){return"Cannot read property '"+c.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(c){return"Cannot call '"+c.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(c){return c.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var oz_={messageWeights:[],callbackWeights:[{callback:cEz,weight:500},{callback:f8k,weight:500}]};var GP_=function(){this.callbackWeights=[];this.messageWeights=[]},c8T,TyC=function(){if(!c8T){var c=c8T=new GP_;
c.messageWeights.length=0;c.callbackWeights.length=0;lXz(c,oz_)}return c8T},lXz=function(c,f){f.messageWeights&&c.messageWeights.push.apply(c.messageWeights,f.messageWeights);
f.callbackWeights&&c.callbackWeights.push.apply(c.callbackWeights,f.callbackWeights)};_.rn(_.mu,_.ES);_.mu.prototype.subscribe=function(c,f,d){var q=this.topics_[c];q||(q=this.topics_[c]=[]);var Z=this.JSC$10424_key_;this.subscriptions_[Z]=c;this.subscriptions_[Z+1]=f;this.subscriptions_[Z+2]=d;this.JSC$10424_key_=Z+3;q.push(Z);return Z};
var fBu=function(c){var f=F_M,d=!1,q=f.subscribe("handleError",function(Z){d||(d=!0,this.unsubscribeByKey(q),c.apply(void 0,arguments))},f)};
_.mu.prototype.unsubscribe=function(c,f,d){if(c=this.topics_[c]){var q=this.subscriptions_;if(c=c.find(function(Z){return q[Z+1]==f&&q[Z+2]==d}))return this.unsubscribeByKey(c)}return!1};
_.mu.prototype.unsubscribeByKey=function(c){var f=this.subscriptions_[c];if(f){var d=this.topics_[f];this.publishDepth_!=0?(this.pendingKeys_.push(c),this.subscriptions_[c+1]=function(){}):(d&&_.wz(d,c),delete this.subscriptions_[c],delete this.subscriptions_[c+1],delete this.subscriptions_[c+2])}return!!f};
_.mu.prototype.publish=function(c,f){var d=this.topics_[c];if(d){var q=Array(arguments.length-1),Z=arguments.length,M;for(M=1;M<Z;M++)q[M-1]=arguments[M];if(this.async_)for(M=0;M<d.length;M++)Z=d[M],ddT(this.subscriptions_[Z+1],this.subscriptions_[Z+2],q);else{this.publishDepth_++;try{for(M=0,Z=d.length;M<Z&&!this.isDisposed();M++){var g=d[M];this.subscriptions_[g+1].apply(this.subscriptions_[g+2],q)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;d=this.pendingKeys_.pop();)this.unsubscribeByKey(d)}}return M!=
0}return!1};
var ddT=function(c,f,d){_.nF(function(){c.apply(f,d)})};
_.mu.prototype.clear=function(c){if(c){var f=this.topics_[c];f&&(f.forEach(this.unsubscribeByKey,this),delete this.topics_[c])}else this.subscriptions_.length=0,this.topics_={}};
_.mu.prototype.getCount=function(c){if(c){var f=this.topics_[c];return f?f.length:0}c=0;for(f in this.topics_)c+=this.getCount(f);return c};
_.mu.prototype.disposeInternal=function(){_.mu.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var F_M=new _.mu;var gR=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(gR,_.d8);gR.prototype.getColdHashData=function(){return _.aW(this,3)};
gR.prototype.getHotHashData=function(){return _.aW(this,5)};
gR.prototype.setHotHashData=function(c){return _.b5(this,5,c)};var BDn=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(BDn,_.d8);var W$n=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(W$n,_.d8);_.r=W$n.prototype;_.r.getDeviceId=function(){return _.aW(this,6)};
_.r.getExperimentIds=function(c){var f=_.Dp(this,9,_.f3,3,!0);I4h(f,c);return f[c]};
_.r.getPlayerType=function(){return _.VQ(this,36)};
_.r.setHomeGroupInfo=function(c){return _.BU(this,81,c)};
_.r.clearLocationPlayabilityToken=function(){return _.Cu(this,89)};var Hw=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Hw,_.d8);Hw.prototype.setKey=function(c){return _.b5(this,1,c)};
Hw.prototype.getValue=function(){return uf(this,2,eYN)};
var eYN=[2,3,4,5,6];var jlj=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(jlj,_.d8);jlj.prototype.setTrackingParams=function(c){return _.Cu(this,1,_.Su(c,!1))};var D5M=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(D5M,_.d8);var mLl=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(mLl,_.d8);mLl.prototype.getExperimentIds=function(c){var f=_.Dp(this,5,_.sKP,3,!0);I4h(f,c);return f[c]};var tN=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(tN,_.d8);tN.prototype.getToken=function(){return _.Hu(this,2)};
tN.prototype.setToken=function(c){return _.b5(this,2,c)};var Yz=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Yz,_.d8);Yz.prototype.setSafetyMode=function(c){return _.rR(this,5,c)};var mj=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(mj,_.d8);mj.prototype.setClient=function(c){return _.BU(this,1,c)};var TD4={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 iXh;_.Jh=function(){var c=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.dz.addEventListener("beforeinstallprompt",function(f){f.preventDefault();c.deferredInstallPrompt=f});
_.dz.addEventListener("appinstalled",function(){c.appInstalledEventFired=!0},{once:!0})};
iXh=function(){if(!_.dz.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.dz.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.dz.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.dz.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.dz.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(c){return"WEB_DISPLAY_MODE_UNKNOWN"}};var YOe=function(){this.syncHeaders=!0},FqG=function(c){var f={},d=[];
"USER_SESSION_ID"in _.VJ&&d.push({key:"u",value:_.hk("USER_SESSION_ID")});if(d=_.Dhe(d))f.Authorization=d,d=c=c==null?void 0:c.sessionIndex,d===void 0&&(d=Number(_.hk("SESSION_INDEX",0)),d=isNaN(d)?0:d),_.F("voice_search_auth_header_removal")||(f["X-Goog-AuthUser"]=d.toString()),"INNERTUBE_HOST_OVERRIDE"in _.VJ||(f["X-Origin"]=window.location.origin),c===void 0&&"DELEGATED_SESSION_ID"in _.VJ&&(f["X-Goog-PageId"]=_.hk("DELEGATED_SESSION_ID"));return f};var quF={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var q_=_.D5("ytglobal.prefsUserPrefsPrefs_")||{},Zhj;_.fu("ytglobal.prefsUserPrefsPrefs_",q_);_.Zn=function(){this.cookieName=_.hk("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.hk("ALT_PREF_COOKIE_DOMAIN","youtube.com");var c=_.A4.get(this.cookieName,void 0);c&&this.parse(c)};
_.Ft=function(){Zhj||(Zhj=new _.Zn);return Zhj};
_.Zn.prototype.get=function(c,f){MRj(c);r8j(c);c=q_[c]!==void 0?q_[c].toString():null;return c!=null?c:f?f:""};
_.Zn.prototype.set=function(c,f){MRj(c);r8j(c);if(f==null)throw Error("Hc");q_[c]=f.toString()};
_.Zn.prototype.getFlag=function(c){return!!((CW3("f"+(Math.floor(c/31)+1))||0)&1<<c%31)};
_.tQ=function(c,f,d){c="f"+(Math.floor(f/31)+1);f=1<<f%31;var q=CW3(c)||0;q=d?q|f:q&~f;q===0?delete q_[c]:(d=q.toString(16),q_[c]=d.toString())};
_.Zn.prototype.remove=function(c){MRj(c);r8j(c);delete q_[c]};
_.Zn.prototype.save=function(){var c=!0;_.F("web_secure_pref_cookie_killswitch")&&(c=!1);_.YK(this.cookieName,this.dump(),63072E3,this.cookieDomain,c)};
_.Zn.prototype.clear=function(){_.zV.clear(q_)};
_.Zn.prototype.dump=function(){var c=[],f;for(f in q_)q_.hasOwnProperty(f)&&c.push(f+"="+encodeURIComponent(String(q_[f])));return c.join("&")};
var r8j=function(c){if(/^f([1-9][0-9]*)$/.test(c))throw Error("Ic`"+c);},MRj=function(c){if(!/^\w+$/.test(c))throw Error("Jc`"+c);
},CW3=function(c){c=q_[c]!==void 0?q_[c].toString():null;
return c!=null&&/^[A-Fa-f0-9]+$/.test(c)?parseInt(c,16):null};
_.Zn.prototype.parse=function(c){c=decodeURIComponent(c).split("&");for(var f=0;f<c.length;f++){var d=c[f].split("="),q=d[0];(d=d[1])&&(q_[q]=d.toString())}};var khh={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"},HXl={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},Ahn={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},l8r={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var sV;_.M_=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Em=function(c,f,d){return c.addJob(f,0,d)};
_.M_.prototype.addLowPriorityJob=function(c,f){return this.addJob(c,1,f)};
_.QH=function(c,f,d){return c.addJob(f,2,d)};
_.X8=function(c,f,d){return c.addJob(f,3,d)};
_.Br=function(c,f,d){return c.addJob(f,4,d)};
sV=function(c){var f=_.D5("yt.scheduler.instance.addImmediateJob");f?f(c):c()};
_.M_.prototype.debounce=function(c,f,d){var q=this,Z=0,M=function(){Z&&q.cancelJob(Z);Z=q.addJob(c,f,d);q.cancelDebouncedJobMap.set(M,Z)};
return M};
_.M_.prototype.cancelThrottle=function(c){(c=this.cancelThrottledJobMap.get(c))&&c()};var rE=function(){_.M_.apply(this,arguments)};
_.K(rE,_.M_);_.zd=function(){rE.instance||(rE.instance=new rE);return rE.instance};
rE.prototype.addJob=function(c,f,d){d!==void 0&&Number.isNaN(Number(d))&&(d=void 0);var q=_.D5("yt.scheduler.instance.addJob");return q?q(c,f,d):d===void 0?(c(),NaN):_.Oz(c,d||0)};
rE.prototype.cancelJob=function(c){if(c===void 0||!Number.isNaN(Number(c))){var f=_.D5("yt.scheduler.instance.cancelJob");f?f(c):_.sz(c)}};
rE.prototype.start=function(){var c=_.D5("yt.scheduler.instance.start");c&&c()};
rE.prototype.pause=function(){var c=_.D5("yt.scheduler.instance.pause");c&&c()};
_.a7=_.zd();_.Ez.prototype.set=function(c,f){f===void 0?this.mechanism.remove(c):this.mechanism.set(c,(0,_.zo)(f))};
_.Ez.prototype.get=function(c){try{var f=this.mechanism.get(c)}catch(d){return}if(f!==null)try{return JSON.parse(f)}catch(d){throw"Storage: Invalid value was encountered";}};
_.Ez.prototype.remove=function(c){this.mechanism.remove(c)};var Ci=function(c){this.mechanism=c};
_.rn(Ci,_.Ez);var gDr=function(c){this.data=c},kAo=function(c){return c===void 0||c instanceof gDr?c:new gDr(c)};
Ci.prototype.set=function(c,f){Ci.superClass_.set.call(this,c,kAo(f))};
Ci.prototype.getWrapper=function(c){c=Ci.superClass_.get.call(this,c);if(c===void 0||c instanceof Object)return c;throw"Storage: Invalid value was encountered";};
Ci.prototype.get=function(c){if(c=this.getWrapper(c)){if(c=c.data,c===void 0)throw"Storage: Invalid value was encountered";}else c=void 0;return c};_.rn(nD,Ci);_.Oho=function(c){var f=c.creation;c=c.expiration;return!!c&&c<_.M6()||!!f&&f>_.M6()};
nD.prototype.set=function(c,f,d){if(f=kAo(f)){if(d){if(d<_.M6()){nD.prototype.remove.call(this,c);return}f.expiration=d}f.creation=_.M6()}nD.superClass_.set.call(this,c,f)};
nD.prototype.getWrapper=function(c,f){var d=nD.superClass_.getWrapper.call(this,c);if(d)if(!f&&_.Oho(d))nD.prototype.remove.call(this,c);else return d};var gE=function(){};
gE.prototype.next=function(){return k3};
var k3={done:!0,value:void 0},O4=function(c){return{value:c,done:!1}};
gE.prototype.__iterator__=function(){return this};
_.lBo=function(c){if(c instanceof gE)return c;if(typeof c.__iterator__=="function")return c.__iterator__(!1);if(_.WN(c)){var f=0,d=new gE;d.next=function(){for(;;){if(f>=c.length)return k3;if(f in c)return O4(c[f++]);f++}};
return d}throw Error("Kc");};var sl_=function(c){if(c instanceof lB||c instanceof s4||c instanceof Ba)return c;if(typeof c.next=="function")return new lB(function(){return c});
if(typeof c[Symbol.iterator]=="function")return new lB(function(){return c[Symbol.iterator]()});
if(typeof c.__iterator__=="function")return new lB(function(){return c.__iterator__()});
throw Error("Lc");},lB=function(c){this.func_=c};
lB.prototype.__iterator__=function(){return new s4(this.func_())};
lB.prototype[Symbol.iterator]=function(){return new Ba(this.func_())};
lB.prototype.toEs6=function(){return new Ba(this.func_())};
var s4=function(c){this.JSC$10508_iter_=c};
_.K(s4,gE);s4.prototype.next=function(){return this.JSC$10508_iter_.next()};
s4.prototype[Symbol.iterator]=function(){return new Ba(this.JSC$10508_iter_)};
s4.prototype.toEs6=function(){return new Ba(this.JSC$10508_iter_)};
var Ba=function(c){lB.call(this,function(){return c});
this.JSC$10511_iter_=c};
_.K(Ba,lB);Ba.prototype.next=function(){return this.JSC$10511_iter_.next()};var BuF=function(){};var iB=function(){};
_.rn(iB,BuF);iB.prototype.getCount=function(){for(var c=0,f=_.C(this),d=f.next();!d.done;d=f.next())c++;return c};
iB.prototype[Symbol.iterator]=function(){return sl_(this.__iterator__(!0)).toEs6()};
iB.prototype.clear=function(){var c=Array.from(this);c=_.C(c);for(var f=c.next();!f.done;f=c.next())this.remove(f.value)};_.rn($K,iB);_.r=$K.prototype;_.r.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var c=this.storage_;if(c)try{c.setItem("__sak","1");c.removeItem("__sak");var f=!0}catch(d){f=d instanceof DOMException&&(d.name==="QuotaExceededError"||d.code===22||d.code===1014||d.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c&&c.length!==0}else f=!1;this.cachedIsStorageAvailable_=f}return this.cachedIsStorageAvailable_};
_.r.set=function(c,f){TN(this);try{this.storage_.setItem(c,f)}catch(d){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.r.get=function(c){TN(this);c=this.storage_.getItem(c);if(typeof c!=="string"&&c!==null)throw"Storage mechanism: Invalid value was encountered";return c};
_.r.remove=function(c){TN(this);this.storage_.removeItem(c)};
_.r.getCount=function(){TN(this);return this.storage_.length};
_.r.__iterator__=function(c){TN(this);var f=0,d=this.storage_,q=new gE;q.next=function(){if(f>=d.length)return k3;var Z=d.key(f++);if(c)return O4(Z);Z=d.getItem(Z);if(typeof Z!=="string")throw"Storage mechanism: Invalid value was encountered";return O4(Z)};
return q};
_.r.clear=function(){TN(this);this.storage_.clear()};
_.r.key=function(c){TN(this);return this.storage_.key(c)};
var TN=function(c){if(c.storage_==null)throw Error("Mc");c.isAvailable()||jM(Error("Mc"))};_.rn(BWn,$K);_.rn(iCz,$K);_.rn(QW,iB);QW.prototype.set=function(c,f){this.mechanism_.set(this.JSC$10526_prefix_+c,f)};
QW.prototype.get=function(c){return this.mechanism_.get(this.JSC$10526_prefix_+c)};
QW.prototype.remove=function(c){this.mechanism_.remove(this.JSC$10526_prefix_+c)};
QW.prototype.__iterator__=function(c){var f=this.mechanism_[Symbol.iterator](),d=this,q=new gE;q.next=function(){var Z=f.next();if(Z.done)return Z;for(Z=Z.value;Z.slice(0,d.JSC$10526_prefix_.length)!=d.JSC$10526_prefix_;){Z=f.next();if(Z.done)return Z;Z=Z.value}return O4(c?Z.slice(d.JSC$10526_prefix_.length):d.mechanism_.get(Z))};
return q};_.hw=function(c){this.expiringStorage_=(c=_.TWl(c))?new nD(c):null;this.JSC$10530_domain_=document.domain||window.location.hostname};
_.hw.prototype.set=function(c,f,d,q){d=d||31104E3;this.remove(c);if(this.expiringStorage_)try{this.expiringStorage_.set(c,f,Date.now()+d*1E3);return}catch(M){}var Z="";if(q)try{Z=escape((0,_.zo)(f))}catch(M){return}else Z=escape(f);_.YK(c,Z,d,this.JSC$10530_domain_)};
_.hw.prototype.get=function(c,f){var d=void 0,q=!this.expiringStorage_;if(!q)try{d=this.expiringStorage_.get(c)}catch(Z){q=!0}if(q&&(d=_.A4.get(c,void 0))&&(d=unescape(d),f))try{d=JSON.parse(d)}catch(Z){this.remove(c),d=void 0}return d};
_.hw.prototype.remove=function(c){this.expiringStorage_&&this.expiringStorage_.remove(c);_.rEh(c,"/",this.JSC$10530_domain_)};
_.hw.prototype.getCreationTime=function(c){return this.expiringStorage_&&(c=(this.expiringStorage_.getWrapper(c)||{}).creation,typeof c==="number")?c:null};var HCl=function(){var c;return function(){c||(c=new _.hw("ytidb"));return c}}();var Yxz;_.J4=[];Yxz=!1;var h4n=FdN||tUk;var mp={},ihK=(mp.AUTH_INVALID="No user identifier specified.",mp.EXPLICIT_ABORT="Transaction was explicitly aborted.",mp.IDB_NOT_SUPPORTED="IndexedDB is not supported.",mp.MISSING_INDEX="Index not created.",mp.MISSING_OBJECT_STORES="Object stores not created.",mp.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",mp.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",mp.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",mp.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",mp.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",mp.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",mp.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",mp),Ha={},TuO=(Ha.AUTH_INVALID="ERROR",Ha.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Ha.EXPLICIT_ABORT="IGNORED",
Ha.IDB_NOT_SUPPORTED="ERROR",Ha.MISSING_INDEX="WARNING",Ha.MISSING_OBJECT_STORES="ERROR",Ha.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Ha.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Ha.QUOTA_EXCEEDED="WARNING",Ha.QUOTA_MAYBE_EXCEEDED="WARNING",Ha.UNKNOWN_ABORT="WARNING",Ha.INCOMPATIBLE_DB_VERSION="WARNING",Ha),AW={},md3=(AW.AUTH_INVALID=!1,AW.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,AW.EXPLICIT_ABORT=!1,AW.IDB_NOT_SUPPORTED=!1,AW.MISSING_INDEX=!1,AW.MISSING_OBJECT_STORES=!1,AW.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,AW.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,AW.QUOTA_EXCEEDED=!1,AW.QUOTA_MAYBE_EXCEEDED=!0,AW.UNKNOWN_ABORT=!0,AW.INCOMPATIBLE_DB_VERSION=!1,AW),h4=function(c,f,d,q,Z){f=f===void 0?{}:f;d=d===void 0?ihK[c]:d;q=q===void 0?TuO[c]:q;Z=Z===void 0?md3[c]:Z;_.KD.call(this,d,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:c},f));this.type=c;this.message=d;this.level=q;this.retryable=Z;Object.setPrototypeOf(this,h4.prototype)};
_.K(h4,_.KD);var Hh3=function(c,f){h4.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:f,foundObjectStores:c},ihK.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Hh3.prototype)};
_.K(Hh3,h4);var Kdl=function(c,f){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.index=c;this.objectStore=f;Object.setPrototypeOf(this,Kdl.prototype)};
_.K(Kdl,Error);var ECe=["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 DM=function(c){this.executor=c},Wq=function(c){var f=this;
this.state={status:"PENDING"};this.JSC$10558_onFulfilled=[];this.JSC$10558_onRejected=[];c=c.executor;var d=function(Z){if(f.state.status==="PENDING"){f.state={status:"FULFILLED",value:Z};Z=_.C(f.JSC$10558_onFulfilled);for(var M=Z.next();!M.done;M=Z.next())M=M.value,M()}},q=function(Z){if(f.state.status==="PENDING"){f.state={status:"REJECTED",
reason:Z};Z=_.C(f.JSC$10558_onRejected);for(var M=Z.next();!M.done;M=Z.next())M=M.value,M()}};
try{c(d,q)}catch(Z){q(Z)}};
Wq.all=function(c){return new Wq(new DM(function(f,d){var q=[],Z=c.length;Z===0&&f(q);for(var M={i$jscomp$463:0};M.i$jscomp$463<c.length;M={i$jscomp$463:M.i$jscomp$463},++M.i$jscomp$463)Wq.resolve(c[M.i$jscomp$463]).then(function(g){return function(O){q[g.i$jscomp$463]=O;Z--;Z===0&&f(q)}}(M)).catch(function(g){d(g)})}))};
Wq.resolve=function(c){return new Wq(new DM(function(f,d){c instanceof Wq?c.then(f,d):f(c)}))};
Wq.reject=function(c){return new Wq(new DM(function(f,d){d(c)}))};
Wq.prototype.then=function(c,f){var d=this,q=c!=null?c:Qnk,Z=f!=null?f:$$l;return new Wq(new DM(function(M,g){d.state.status==="PENDING"?(d.JSC$10558_onFulfilled.push(function(){A8u(d,d,q,M,g)}),d.JSC$10558_onRejected.push(function(){Yuy(d,d,Z,M,g)})):d.state.status==="FULFILLED"?A8u(d,d,q,M,g):d.state.status==="REJECTED"&&Yuy(d,d,Z,M,g)}))};
Wq.prototype.catch=function(c){return this.then(void 0,c)};
var A8u=function(c,f,d,q,Z){try{if(c.state.status!=="FULFILLED")throw Error("Pc");var M=d(c.state.value);M instanceof Wq?F4v(c,f,M,q,Z):q(M)}catch(g){Z(g)}},Yuy=function(c,f,d,q,Z){try{if(c.state.status!=="REJECTED")throw Error("Qc");
var M=d(c.state.reason);M instanceof Wq?F4v(c,f,M,q,Z):q(M)}catch(g){Z(g)}},F4v=function(c,f,d,q,Z){f===d?Z(new TypeError("Rc")):d.then(function(M){M instanceof Wq?F4v(c,f,M,q,Z):q(M)},function(M){Z(M)})};var Y3;Y3=window;_.qR=Y3.ytcsi&&Y3.ytcsi.now?Y3.ytcsi.now:Y3.performance&&Y3.performance.timing&&Y3.performance.now&&Y3.performance.timing.navigationStart?function(){return Y3.performance.timing.navigationStart+Y3.performance.now()}:function(){return(new Date).getTime()};var Nl=function(c,f){this.JSC$10570_wrapped=c;this.options=f;this.transactionCount=0;this.startedMs=Math.round((0,_.qR)());this.hasUnknownAbortedTransaction=!1},Fe=function(){return _.F("idb_immediate_commit")},K43,EDF,Ki,Ql3;
Nl.prototype.add=function(c,f,d){return _.pD(this,[c],{mode:"readwrite",enableRetries:!0,commit:Fe()},function(q){return q.objectStore(c).add(f,d)})};
Nl.prototype.clear=function(c){return _.pD(this,[c],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore(c).clear()})};
Nl.prototype.close=function(){this.JSC$10570_wrapped.close();var c;((c=this.options)==null?0:c.closed)&&this.options.closed()};
Nl.prototype.count=function(c,f){return _.pD(this,[c],{mode:"readonly",enableRetries:!0,commit:Fe()},function(d){return d.objectStore(c).count(f)})};
var ym=function(c,f,d){c=c.JSC$10570_wrapped.createObjectStore(f,d);return new tW(c)};
Nl.prototype.delete=function(c,f){return _.pD(this,[c],{mode:"readwrite",enableRetries:!0,commit:Fe()&&!(f instanceof IDBKeyRange)},function(d){return d.objectStore(c).delete(f)})};
var tRv=function(c,f){return _.pD(c,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore("ResponseStore").index("byInterface").delete(f)})};
Nl.prototype.get=function(c,f){return _.pD(this,[c],{mode:"readonly",enableRetries:!0,commit:Fe()},function(d){return d.objectStore(c).get(f)})};
Nl.prototype.getAll=function(c,f,d){return _.pD(this,[c],{mode:"readonly",enableRetries:!0},function(q){return q.objectStore(c).getAll(f,d)})};
Nl.prototype.put=function(c,f,d){return _.pD(this,[c],{mode:"readwrite",enableRetries:!0,commit:Fe()},function(q){return q.objectStore(c).put(f,d)})};
Nl.prototype.objectStoreNames=function(){return Array.from(this.JSC$10570_wrapped.objectStoreNames)};
_.pD=function(c,f,d,q){var Z,M,g,O,l,m,H,A,Y,t,E,J;return _.k(function(X){switch(X.nextAddress){case 1:var u={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof d==="string"?u.mode=d:Object.assign(u,d);Z=u;c.transactionCount++;M=Z.enableRetries?3:1;g=0;case 2:if(O){X.jumpTo(4);break}g++;l=Math.round((0,_.qR)());_.iY(X,5);m=c.JSC$10570_wrapped.transaction(f,Z.mode);u=X.yield;var W=!!Z.commit;var p=new Io(m);W=bhO(p,q,W);return u.call(X,W,7);case 7:return H=X.yieldResult,A=Math.round((0,_.qR)()),
K43(c,l,A,g,void 0,f.join(),Z),X.return(H);case 5:Y=_.Yw(X);t=Math.round((0,_.qR)());E=nCC(Y,c.JSC$10570_wrapped.name,f.join(),c.JSC$10570_wrapped.version);if((J=E instanceof h4&&!E.retryable)||g>=M)K43(c,l,t,g,E,f.join(),Z),O=E;X.jumpTo(2);break;case 4:return X.return(Promise.reject(O))}})};
K43=function(c,f,d,q,Z,M,g){f=d-f;Z?(Z instanceof h4&&(Z.type==="QUOTA_EXCEEDED"||Z.type==="QUOTA_MAYBE_EXCEEDED")&&VW("QUOTA_EXCEEDED",{dbName:uF(c.JSC$10570_wrapped.name),objectStoreNames:M,transactionCount:c.transactionCount,transactionMode:g.mode}),Z instanceof h4&&Z.type==="UNKNOWN_ABORT"&&(d-=c.startedMs,d<0&&d>=2147483648&&(d=0),VW("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:M,transactionDuration:f,transactionCount:c.transactionCount,dbDuration:d}),c.hasUnknownAbortedTransaction=!0),
EDF(c,!1,q,M,f,g.tag),_.ao(Z)):EDF(c,!0,q,M,f,g.tag)};
EDF=function(c,f,d,q,Z,M){VW("TRANSACTION_ENDED",{objectStoreNames:q,connectionHasUnknownAbortedTransaction:c.hasUnknownAbortedTransaction,duration:Z,isSuccessful:f,tryCount:d,tag:M===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":M})};
Nl.prototype.getVersion=function(){return this.JSC$10570_wrapped.version};
Nl.prototype.getName=function(){return this.JSC$10570_wrapped.name};
var tW=function(c){this.JSC$10585_wrapped=c};
tW.prototype.add=function(c,f){return eA(this.JSC$10585_wrapped.add(c,f))};
tW.prototype.autoIncrement=function(){return this.JSC$10585_wrapped.autoIncrement};
tW.prototype.clear=function(){return eA(this.JSC$10585_wrapped.clear()).then(function(){})};
var Ws=function(c,f,d){c.JSC$10585_wrapped.createIndex(f,d,{unique:!1})};
tW.prototype.count=function(c){return eA(this.JSC$10585_wrapped.count(c))};
var nDF=function(c,f){return oo(c,{query:f},function(d){return d.delete().then(function(){return d.continue()})}).then(function(){})};
tW.prototype.delete=function(c){return c instanceof IDBKeyRange?nDF(this,c):eA(this.JSC$10585_wrapped.delete(c))};
tW.prototype.get=function(c){return eA(this.JSC$10585_wrapped.get(c))};
tW.prototype.getAll=function(c,f){return"getAll"in IDBObjectStore.prototype?eA(this.JSC$10585_wrapped.getAll(c,f)):$d_(this,c,f)};
var $d_=function(c,f,d){var q=[];return oo(c,{query:f},function(Z){if(!(d!==void 0&&q.length>=d))return q.push(Z.getValue()),Z.continue()}).then(function(){return q})};
tW.prototype.index=function(c){try{return new bB(this.JSC$10585_wrapped.index(c))}catch(f){if(f instanceof Error&&f.name==="NotFoundError")throw new Kdl(c,this.JSC$10585_wrapped.name);throw f;}};
tW.prototype.getName=function(){return this.JSC$10585_wrapped.name};
tW.prototype.keyPath=function(){return this.JSC$10585_wrapped.keyPath};
tW.prototype.put=function(c,f){return eA(this.JSC$10585_wrapped.put(c,f))};
var oo=function(c,f,d){c=c.JSC$10585_wrapped.openCursor(f.query,f.direction);return Ql3(c).then(function(q){return z4C(q,d)})},Io=function(c){var f=this;
this.JSC$10593_wrapped=c;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(d,q){f.JSC$10593_wrapped.addEventListener("complete",function(){d()});
f.JSC$10593_wrapped.addEventListener("error",function(Z){Z.currentTarget===Z.target&&q(f.JSC$10593_wrapped.error)});
f.JSC$10593_wrapped.addEventListener("abort",function(){var Z=f.JSC$10593_wrapped.error;if(Z)q(Z);else if(!f.aborted){Z=h4;for(var M=f.JSC$10593_wrapped.objectStoreNames,g=[],O=0;O<M.length;O++){var l=M.item(O);if(l===null)throw Error("Sc");g.push(l)}Z=new Z("UNKNOWN_ABORT",{objectStoreNames:g.join(),dbName:f.JSC$10593_wrapped.db.name,mode:f.JSC$10593_wrapped.mode});q(Z)}})})},bhO=function(c,f,d){var q=new Promise(function(Z,M){try{var g=f(c);
d&&c.commit();g.then(function(O){Z(O)}).catch(M)}catch(O){M(O),c.abort()}});
return Promise.all([q,c.done]).then(function(Z){return _.C(Z).next().value})};
Io.prototype.abort=function(){this.JSC$10593_wrapped.abort();this.aborted=!0;throw new h4("EXPLICIT_ABORT");};
Io.prototype.commit=function(){if(!this.aborted){var c,f;(f=(c=this.JSC$10593_wrapped).commit)==null||f.call(c)}};
Io.prototype.objectStore=function(c){c=this.JSC$10593_wrapped.objectStore(c);var f=this.objectStoreCache.get(c);f||(f=new tW(c),this.objectStoreCache.set(c,f));return f};
var bB=function(c){this.JSC$10595_wrapped=c};
bB.prototype.count=function(c){return eA(this.JSC$10595_wrapped.count(c))};
bB.prototype.delete=function(c){return _.Ze(this,{query:c},function(f){return f.delete().then(function(){return f.continue()})})};
bB.prototype.get=function(c){return eA(this.JSC$10595_wrapped.get(c))};
bB.prototype.getAll=function(c,f){return"getAll"in IDBIndex.prototype?eA(this.JSC$10595_wrapped.getAll(c,f)):Sur(this,c,f)};
var Sur=function(c,f,d){var q=[];return _.Ze(c,{query:f},function(Z){if(!(d!==void 0&&q.length>=d))return q.push(Z.getValue()),Z.continue()}).then(function(){return q})};
bB.prototype.keyPath=function(){return this.JSC$10595_wrapped.keyPath};
bB.prototype.unique=function(){return this.JSC$10595_wrapped.unique};
_.Ze=function(c,f,d){c=c.JSC$10595_wrapped.openCursor(f.query===void 0?null:f.query,f.direction===void 0?"next":f.direction);return Ql3(c).then(function(q){return z4C(q,d)})};
Ki=function(c,f){this.request=c;this.cursor=f};
Ql3=function(c){return eA(c).then(function(f){return f?new Ki(c,f):null})};
Ki.prototype.continue=function(c){this.cursor.continue(c);return Ql3(this.request)};
Ki.prototype.delete=function(){return eA(this.cursor.delete()).then(function(){})};
Ki.prototype.getValue=function(){return this.cursor.value};
Ki.prototype.update=function(c){return eA(this.cursor.update(c))};var E4=function(c,f){this.name=c;this.options=f;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},L4H;
E4.prototype.openDb=function(c,f,d){d=d===void 0?{}:d;return a8l(c,f,d)};
E4.prototype.delete=function(c){c=c===void 0?{}:c;return _.Ro(this.name,c)};
L4H=function(c,f){return new h4("INCOMPATIBLE_DB_VERSION",{dbName:c.name,oldVersion:c.options.version,newVersion:f})};
_.Uz=function(c,f){if(!f)throw yW("openWithToken",uF(c.name));return c.open()};
E4.prototype.open=function(){var c=this;if(!this.isCompatible)throw L4H(this);if(this.connectionPromise)return this.connectionPromise;var f,d=function(){c.connectionPromise===f&&(c.connectionPromise=void 0)},q={blocking:function(M){M.close()},
closed:d,terminated:d,upgrade:this.options.upgrade},Z=function(){var M,g,O,l,m,H,A,Y,t,E;return _.k(function(J){switch(J.nextAddress){case 1:return g=(M=Error().stack)!=null?M:"",_.iY(J,2),J.yield(c.openDb(c.name,c.options.version,q),4);case 4:for(var X=O=J.yieldResult,u=c.options,W=[],p=_.C(Object.keys(u.objectStores)),N=p.next();!N.done;N=p.next()){N=N.value;var I=u.objectStores[N],R=I.removedAtVersion===void 0?Number.MAX_VALUE:I.removedAtVersion;!(X.JSC$10570_wrapped.version>=I.addedAtVersion)||
X.JSC$10570_wrapped.version>=R||X.JSC$10570_wrapped.objectStoreNames.contains(N)||W.push(N)}l=W;if(l.length===0){J.jumpTo(5);break}m=Object.keys(c.options.objectStores);H=O.objectStoreNames();if(c.timesReopenedToFixMissingObjectStore<_.rx("ytidb_reopen_db_retries",0))return c.timesReopenedToFixMissingObjectStore++,O.close(),_.ao(new h4("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:m,foundObjectStores:H})),J.return(Z());if(!(c.timesDeletedToFixMissingObjectStore<_.rx("ytidb_remake_db_retries",
1))){J.jumpTo(6);break}c.timesDeletedToFixMissingObjectStore++;return J.yield(c.delete(),7);case 7:return _.ao(new h4("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:m,foundObjectStores:H})),J.return(Z());case 6:throw new Hh3(H,m);case 5:return J.return(O);case 2:A=_.Yw(J);if(A instanceof DOMException?A.name!=="VersionError":"DOMError"in self&&A instanceof DOMError?A.name!=="VersionError":!(A instanceof Object&&"message"in A)||A.message!=="An attempt was made to open a database using a lower version than the existing version."){J.jumpTo(8);
break}return J.yield(c.openDb(c.name,void 0,Object.assign({},q,{upgrade:void 0})),9);case 9:Y=J.yieldResult;t=Y.getVersion();if(c.options.version!==void 0&&t>c.options.version+1)throw Y.close(),c.isCompatible=!1,L4H(c,t);return J.return(Y);case 8:throw d(),A instanceof Error&&!_.F("ytidb_async_stack_killswitch")&&(A.stack=A.stack+"\n"+g.substring(g.indexOf("\n")+1)),nCC(A,c.name,"",(E=c.options.version)!=null?E:-1);}})};
return this.connectionPromise=f=Z()};var VUh=new E4("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(c,f){f(1)&&ym(c,"databases",{keyPath:"actualName"})}});var WdP,wbh=new function(){}(new function(){});new _.BS;var zw_=function(c,f){E4.call(this,c,f);this.options=f;XJ(c)};
_.K(zw_,E4);var oCl=function(c,f){var d;return function(){d||(d=new zw_(c,f));return d}};
zw_.prototype.openDb=function(c,f,d){d=d===void 0?{}:d;return(this.options.shared?PIk:I8n)(c,f,Object.assign({},d))};
zw_.prototype.delete=function(c){c=c===void 0?{}:c;return(this.options.shared?x$N:R4N)(this.name,c)};var J8F={},GhN=j6("ytGcfConfig",{objectStores:(J8F.coldConfigStore={addedAtVersion:1},J8F.hotConfigStore={addedAtVersion:1},J8F),shared:!1,upgrade:function(c,f){f(1)&&(Ws(ym(c,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Ws(ym(c,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var aBT=function(){_.ES.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var c=_.D5("yt.gcf.config.hotUpdateCallbacks");c?(this.localHotConfigJobQueue=[].concat(_.LT(c)),this.sharedHotConfigJobQueue=c):(this.sharedHotConfigJobQueue=[],_.fu("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.K(aBT,_.ES);aBT.prototype.disposeInternal=function(){for(var c=_.C(this.localHotConfigJobQueue),f=c.next();!f.done;f=c.next()){var d=this.sharedHotConfigJobQueue;f=d.indexOf(f.value);f>=0&&d.splice(f,1)}this.localHotConfigJobQueue.length=0;_.ES.prototype.disposeInternal.call(this)};var nW=function(){var c=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new aBT;this.TEST_ONLY={initializeConfigDb:function(){c.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return c.coldGlobalConfigGroup},
setHotConfigGroup:function(f){VRF(c,f)},
setHotHashData:function(f){c.setHotHashData(f)},
setColdConfigGroup:function(f){XWF(c,f)},
getColdHashData:function(){return c.coldHashData},
getHotHashData:function(){return c.hotHashData},
getHotConfigGroup:function(){return c.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return usT()},
getExportedHotConfigGroup:function(){return ni()},
getExportedColdHashData:function(){return _.D5("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.D5("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){vDO(c)},
resetInstance:function(){c.setHotHashData(void 0);hw3(c);delete nW.instance},
setDebounceTimer:function(f){c.debounceTimer=f},
getDebounceTimer:function(){return c.debounceTimer}}},wWF=function(){if(!nW.instance){var c=new nW;
nW.instance=c}return nW.instance},DdT=function(c){var f;
_.k(function(d){if(d.nextAddress==1)return _.F("start_client_gcf")||_.F("delete_gcf_config_db")?_.F("start_client_gcf")?d.yield(_.dR(),3):d.jumpTo(2):d.return();d.nextAddress!=2&&((f=d.yieldResult)&&_.bF()&&!_.F("delete_gcf_config_db")?(c.isConfigDbInitialized=!0,vDO(c)):(y83(c),W4u(c)));return _.F("delete_gcf_config_db")?d.yield(ZXk(),0):d.jumpTo(0)})},$z=function(){var c;
return(c=ni())!=null?c:_.hk("RAW_HOT_CONFIG_GROUP")},ewj=function(c){var f,d,q,Z,M,g;
return _.k(function(O){switch(O.nextAddress){case 1:if(c.hotGlobalConfigGroup)return O.return(ni());if(!c.isConfigDbInitialized)return f=yW("getHotConfig IDB not initialized"),_.eZ(f),O.return(Promise.reject(f));d=cs();q=_.hk("TIME_CREATED_MS");if(!d){Z=yW("getHotConfig token error");_.eZ(Z);O.jumpTo(2);break}return O.yield(qON(d),3);case 3:if((M=O.yieldResult)&&M.timestamp>q)return VRF(c,M.config),c.setHotHashData(M.hashData),O.return(ni());case 2:W4u(c);if(!(d&&c.hotGlobalConfigGroup&&c.hotHashData)){O.jumpTo(4);
break}return O.yield(fme(c.hotGlobalConfigGroup,c.hotHashData,d,q),4);case 4:return c.hotGlobalConfigGroup?O.return(ni()):(g=new _.KD("Config not available in ytConfig"),_.eZ(g),O.return(Promise.reject(g)))}})},IBH=function(c){var f,d,q,Z,M,g;
return _.k(function(O){switch(O.nextAddress){case 1:if(c.coldGlobalConfigGroup)return O.return(usT());if(!c.isConfigDbInitialized)return f=yW("getColdConfig IDB not initialized"),_.eZ(f),O.return(Promise.reject(f));d=cs();q=_.hk("TIME_CREATED_MS");if(!d){Z=yW("getColdConfig");_.eZ(Z);O.jumpTo(2);break}return O.yield(jV4(d),3);case 3:if((M=O.yieldResult)&&M.timestamp>q)return XWF(c,M.config),NuK(c,M.configData),hw3(c,M.hashData),O.return(usT());case 2:y83(c);if(!(d&&c.coldGlobalConfigGroup&&c.coldHashData&&
c.configData)){O.jumpTo(4);break}return O.yield(dLP(c.coldGlobalConfigGroup,c.coldHashData,c.configData,d,q),4);case 4:return c.coldGlobalConfigGroup?O.return(usT()):(g=new _.KD("Config not available in ytConfig"),_.eZ(g),O.return(Promise.reject(g)))}})},vDO=function(c){if(!c.hotGlobalConfigGroup||!c.coldGlobalConfigGroup){if(!cs()){var f=yW("scheduleGetConfigs");
_.eZ(f)}c.initJob||(c.initJob=_.a7.addLowPriorityJob(function(){return _.k(function(d){switch(d.nextAddress){case 1:return _.iY(d,2),d.yield(ewj(c),4);case 4:_.Pq(d,3);break;case 2:_.Yw(d);case 3:return _.iY(d,5),d.yield(IBH(c),7);case 7:_.Pq(d,6);break;case 5:_.Yw(d);case 6:c.initJob&&(c.initJob=0),_.Fm(d)}})},100))}},fWG=function(c,f,d){var q,Z,M;
return _.k(function(g){switch(g.nextAddress){case 1:if(!_.F("start_client_gcf")){g.jumpTo(0);break}d&&VRF(c,d);c.setHotHashData(f);q=cs();if(!q){g.jumpTo(3);break}if(d){g.jumpTo(4);break}return g.yield(qON(q),5);case 5:Z=g.yieldResult,d=(M=Z)==null?void 0:M.config;case 4:return g.yield(fme(d,f,q),3);case 3:if(d)for(var O=d,l=_.C(c.configUpdateService.sharedHotConfigJobQueue),m=l.next();!m.done;m=l.next())m=m.value,m(O);_.Fm(g)}})},dYG=function(c,f,d){var q,Z,M,g;
return _.k(function(O){if(O.nextAddress==1){if(!_.F("start_client_gcf"))return O.jumpTo(0);hw3(c,f);return(q=cs())?d?O.jumpTo(4):O.yield(jV4(q),5):O.jumpTo(0)}O.nextAddress!=4&&(Z=O.yieldResult,d=(M=Z)==null?void 0:M.config);if(!d)return O.jumpTo(0);g=d.configData;return O.yield(dLP(d,f,g,q),0)})},bXr=function(){var c=wWF(),f=(0,_.qR)()-c.debounceTimer;
if(!(c.debounceTimer!==0&&f<_.rx("send_config_hash_timer"))){f=_.D5("yt.gcf.config.coldConfigData");var d=_.D5("yt.gcf.config.hotHashData"),q=_.D5("yt.gcf.config.coldHashData");f&&d&&q&&(c.debounceTimer=(0,_.qR)());return{coldConfigData:f,hotHashData:d,coldHashData:q}}},y83=function(c){XWF(c,_.hk("RAW_COLD_CONFIG_GROUP"));
hw3(c,_.hk("SERIALIZED_COLD_HASH_DATA"));var f;NuK(c,(f=c.coldGlobalConfigGroup)==null?void 0:f.configData)},W4u=function(c){VRF(c,_.hk("RAW_HOT_CONFIG_GROUP"));
c.setHotHashData(_.hk("SERIALIZED_HOT_HASH_DATA"))},VRF=function(c,f){c.hotGlobalConfigGroup=f;
_.fu("yt.gcf.config.hotConfigGroup",c.hotGlobalConfigGroup||null)},XWF=function(c,f){c.coldGlobalConfigGroup=f;
_.fu("yt.gcf.config.coldConfigGroup",c.coldGlobalConfigGroup||null)};
nW.prototype.setHotHashData=function(c){this.hotHashData=c;_.fu("yt.gcf.config.hotHashData",this.hotHashData||null)};
var hw3=function(c,f){c.coldHashData=f;_.fu("yt.gcf.config.coldHashData",c.coldHashData||null)},NuK=function(c,f){c.configData=f;
_.fu("yt.gcf.config.coldConfigData",c.configData||null)},ni=function(){return _.D5("yt.gcf.config.hotConfigGroup")},usT=function(){return _.D5("yt.gcf.config.coldConfigGroup")};var Bs={},PWO=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Bs.assign=function(c){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var d=f.shift();if(d){if(typeof d!=="object")throw new TypeError("Vc`"+d);for(var q in d)Object.prototype.hasOwnProperty.call(d,q)&&(c[q]=d[q])}}return c};
Bs.shrinkBuf=function(c,f){if(c.length===f)return c;if(c.subarray)return c.subarray(0,f);c.length=f;return c};
var RwH={arraySet:function(c,f,d,q,Z){if(f.subarray&&c.subarray)c.set(f.subarray(d,d+q),Z);else for(var M=0;M<q;M++)c[Z+M]=f[d+M]},
flattenChunks:function(c){var f,d;var q=d=0;for(f=c.length;q<f;q++)d+=c[q].length;var Z=new Uint8Array(d);q=d=0;for(f=c.length;q<f;q++){var M=c[q];Z.set(M,d);d+=M.length}return Z}},UdK={arraySet:function(c,f,d,q,Z){for(var M=0;M<q;M++)c[Z+M]=f[d+M]},
flattenChunks:function(c){return[].concat.apply([],c)}};
Bs.setTyped=function(){PWO?(Bs.Buf8=Uint8Array,Bs.Buf16=Uint16Array,Bs.Buf32=Int32Array,Bs.assign(Bs,RwH)):(Bs.Buf8=Array,Bs.Buf16=Array,Bs.Buf32=Array,Bs.assign(Bs,UdK))};
Bs.setTyped();var pW_=!0;try{new Uint8Array(1)}catch(c){pW_=!1}
var qkz=function(c){var f,d,q=c.length,Z=0;for(f=0;f<q;f++){var M=c.charCodeAt(f);if((M&64512)===55296&&f+1<q){var g=c.charCodeAt(f+1);(g&64512)===56320&&(M=65536+(M-55296<<10)+(g-56320),f++)}Z+=M<128?1:M<2048?2:M<65536?3:4}var O=new Bs.Buf8(Z);for(f=d=0;d<Z;f++)M=c.charCodeAt(f),(M&64512)===55296&&f+1<q&&(g=c.charCodeAt(f+1),(g&64512)===56320&&(M=65536+(M-55296<<10)+(g-56320),f++)),M<128?O[d++]=M:(M<2048?O[d++]=192|M>>>6:(M<65536?O[d++]=224|M>>>12:(O[d++]=240|M>>>18,O[d++]=128|M>>>12&63),O[d++]=
128|M>>>6&63),O[d++]=128|M&63);return O};var NDh={};NDh=function(c,f,d,q){var Z=c&65535|0;c=c>>>16&65535|0;for(var M;d!==0;){M=d>2E3?2E3:d;d-=M;do Z=Z+f[q++]|0,c=c+Z|0;while(--M);Z%=65521;c%=65521}return Z|c<<16|0};for(var Qm={},$3,xdy=[],oDv=0;oDv<256;oDv++){$3=oDv;for(var GAT=0;GAT<8;GAT++)$3=$3&1?3988292384^$3>>>1:$3>>>1;xdy[oDv]=$3}Qm=function(c,f,d,q){d=q+d;for(c^=-1;q<d;q++)c=c>>>8^xdy[(c^f[q])&255];return c^-1};var Hs={};Hs={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 amz=[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],XSk=[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],ja4=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],DLY=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],bx=Array(576);kO(bx);var Ku=Array(60);kO(Ku);var Tr=Array(512);kO(Tr);var ix=Array(256);kO(ix);var Vvr=Array(29);kO(Vvr);var uwG=Array(30);kO(uwG);var cYN,f_e,dhN,GXM=!1;var Jw;
Jw=[new zr(0,0,0,0,function(c,f){var d=65535;for(d>c.pending_buf_size-5&&(d=c.pending_buf_size-5);;){if(c.lookahead<=1){S6(c);if(c.lookahead===0&&f===0)return 1;if(c.lookahead===0)break}c.strstart+=c.lookahead;c.lookahead=0;var q=c.block_start+d;if(c.strstart===0||c.strstart>=q)if(c.lookahead=c.strstart-q,c.strstart=q,EN(c,!1),c.strm.avail_out===0)return 1;if(c.strstart-c.block_start>=c.w_size-262&&(EN(c,!1),c.strm.avail_out===0))return 1}c.insert=0;if(f===4)return EN(c,!0),c.strm.avail_out===0?3:
4;c.strstart>c.block_start&&EN(c,!1);return 1}),
new zr(4,4,8,4,ImN),new zr(4,5,16,8,ImN),new zr(4,6,32,32,ImN),new zr(4,4,16,16,Lu),new zr(8,16,32,32,Lu),new zr(8,16,128,128,Lu),new zr(8,32,128,256,Lu),new zr(32,128,258,1024,Lu),new zr(32,258,258,4096,Lu)];var o0P={};o0P=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 Z$P=Object.prototype.toString;
xLr.prototype.push=function(c,f){var d=this.strm,q=this.options.chunkSize;if(this.ended)return!1;var Z=f===~~f?f:f===!0?4:0;typeof c==="string"?d.input=qkz(c):Z$P.call(c)==="[object ArrayBuffer]"?d.input=new Uint8Array(c):d.input=c;d.next_in=0;d.avail_in=d.input.length;do{d.avail_out===0&&(d.output=new Bs.Buf8(q),d.next_out=0,d.avail_out=q);c=pSh(d,Z);if(c!==1&&c!==0)return ciu(this,c),this.ended=!0,!1;if(d.avail_out===0||d.avail_in===0&&(Z===4||Z===2))if(this.options.to==="string"){var M=Bs.shrinkBuf(d.output,
d.next_out);f=M;M=M.length;if(M<65537&&(f.subarray&&pW_||!f.subarray))f=String.fromCharCode.apply(null,Bs.shrinkBuf(f,M));else{for(var g="",O=0;O<M;O++)g+=String.fromCharCode(f[O]);f=g}this.chunks.push(f)}else f=Bs.shrinkBuf(d.output,d.next_out),this.chunks.push(f)}while((d.avail_in>0||d.avail_out===0)&&c!==1);if(Z===4)return(d=this.strm)&&d.state?(q=d.state.status,q!==42&&q!==69&&q!==73&&q!==91&&q!==103&&q!==113&&q!==666?c=Aw(d,-2):(d.state=null,c=q===113?Aw(d,-3):0)):c=-2,ciu(this,c),this.ended=
!0,c===0;Z===2&&(ciu(this,0),d.avail_out=0);return!0};
var ciu=function(c,f){f===0&&(c.result=c.options.to==="string"?c.chunks.join(""):Bs.flattenChunks(c.chunks));c.chunks=[];c.err=f;c.msg=c.strm.msg};var fzK=typeof TextEncoder!=="undefined"?new TextEncoder:null,VBn=fzK?function(c){return fzK.encode(c)}:function(c){c=_.K1(c);
for(var f=new Uint8Array(c.length),d=0;d<f.length;d++)f[d]=c[d];return f};var g$h={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Onr={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var QK=function(c,f){this.version=c;this.args=f};
QK.prototype.serialize=function(){return{version:this.version,args:this.args}};var kaP=function(c,f){this.topic=c;this.dataClass=f};
kaP.prototype.toString=function(){return this.topic};var dTr=_.D5("ytPubsub2Pubsub2Instance")||new _.mu;_.mu.prototype.subscribe=_.mu.prototype.subscribe;_.mu.prototype.unsubscribeByKey=_.mu.prototype.unsubscribeByKey;_.mu.prototype.publish=_.mu.prototype.publish;_.mu.prototype.clear=_.mu.prototype.clear;_.fu("ytPubsub2Pubsub2Instance",dTr);var gEC=_.D5("ytPubsub2Pubsub2SubscribedKeys")||{};_.fu("ytPubsub2Pubsub2SubscribedKeys",gEC);var l_N=_.D5("ytPubsub2Pubsub2TopicToKeys")||{};_.fu("ytPubsub2Pubsub2TopicToKeys",l_N);
var O$N=_.D5("ytPubsub2Pubsub2IsAsync")||{};_.fu("ytPubsub2Pubsub2IsAsync",O$N);_.fu("ytPubsub2Pubsub2SkipSubKey",null);var tBz=void 0,Ykh=void 0;var L5h=_.rx("max_body_size_to_compress",5E5),zBr=_.rx("min_body_size_to_compress",500),Xh=!0,vEk=0,ux=0,uje=_.rx("compression_performance_threshold_lr",250),hBh=_.rx("slow_compressions_before_abandon_count",4),EEN=!1,nEC=new Map,a_n=1,JYY=!0;_.rn(vs,W54);vs.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 jSH=function(c,f,d){d||(d=0);var q=c.W_;if(typeof f==="string")for(var Z=0;Z<16;Z++)q[Z]=f.charCodeAt(d)<<24|f.charCodeAt(d+1)<<16|f.charCodeAt(d+2)<<8|f.charCodeAt(d+3),d+=4;else for(Z=0;Z<16;Z++)q[Z]=f[d]<<24|f[d+1]<<16|f[d+2]<<8|f[d+3],d+=4;for(f=16;f<80;f++)d=q[f-3]^q[f-8]^q[f-14]^q[f-16],q[f]=(d<<1|d>>>31)&4294967295;f=c.chain_[0];d=c.chain_[1];Z=c.chain_[2];for(var M=c.chain_[3],g=c.chain_[4],O,l,m=0;m<80;m++)m<40?m<20?(O=M^d&(Z^M),l=1518500249):(O=d^Z^M,l=1859775393):m<60?(O=d&Z|M&(d|Z),
l=2400959708):(O=d^Z^M,l=3395469782),O=(f<<5|f>>>27)+O+g+l+q[m]&4294967295,g=M,M=Z,Z=(d<<30|d>>>2)&4294967295,d=f,f=O;c.chain_[0]=c.chain_[0]+f&4294967295;c.chain_[1]=c.chain_[1]+d&4294967295;c.chain_[2]=c.chain_[2]+Z&4294967295;c.chain_[3]=c.chain_[3]+M&4294967295;c.chain_[4]=c.chain_[4]+g&4294967295};
vs.prototype.update=function(c,f){if(c!=null){f===void 0&&(f=c.length);for(var d=f-this.blockSize,q=0,Z=this.buf_,M=this.inbuf_;q<f;){if(M==0)for(;q<=d;)jSH(this,c,q),q+=this.blockSize;if(typeof c==="string")for(;q<f;){if(Z[M]=c.charCodeAt(q),++M,++q,M==this.blockSize){jSH(this,Z);M=0;break}}else for(;q<f;)if(Z[M]=c[q],++M,++q,M==this.blockSize){jSH(this,Z);M=0;break}}this.inbuf_=M;this.total_+=f}};
vs.prototype.digest=function(){var c=[],f=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var d=this.blockSize-1;d>=56;d--)this.buf_[d]=f&255,f/=256;jSH(this,this.buf_);for(d=f=0;d<5;d++)for(var q=24;q>=0;q-=8)c[f]=this.chain_[d]>>q&255,++f;return c};var N1Y;var Li=function(c){var f=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(H){f.databaseToken=H},
triggerThrottle:function(){f.throttledSend()},
cancelThrottle:function(){f.cancelThrottledSend()},
immediateSend:function(H){return _.k(function(A){return A.yield(f.immediateSend(H),0)})},
requestWithinAgeLimit:function(H,A){return f.requestWithinAgeLimit(H,A)},
retryQueuedRequests:function(){f.retryQueuedRequests()}};
var d;this.throttleTimeout=(d=c.throttleTimeout)!=null?d:100;var q;this.retryMaxAttempts=(q=c.retryMaxAttempts)!=null?q:1;var Z;this.requestAgeLimitMs=(Z=c.requestAgeLimitMs)!=null?Z:2592E6;var M;this.queuedRequestAgeLimitMs=(M=c.queuedRequestAgeLimitMs)!=null?M:12E4;var g;this.retryDelayMs=(g=c.retryDelayMs)!=null?g:5E3;var O;this.databaseToken=(O=c.databaseToken)!=null?O:void 0;this.enableCleaning=!!c.enableCleaning;var l;this.cleaningRate=(l=c.cleaningRate)!=null?l:.1;var m;this.potentialEsfErrorLimit=
(m=c.potentialEsfErrorLimit)!=null?m:10;c.handleError&&(this.handleError=c.handleError);c.handleWarning&&(this.handleWarning=c.handleWarning);c.disableYtIdbTransactions&&(this.disableYtIdbTransactions=c.disableYtIdbTransactions);c.bypassDbTokenDependency&&(this.bypassDbTokenDependency=c.bypassDbTokenDependency);this.getBooleanFlag=c.getBooleanFlag;this.jobManager=c.jobManager;this.logsStore=c.logsStore;this.networkManager=c.networkManager;this.sendFn=c.sendFn;this.onlineEvent=c.onlineEvent;this.offlineEvent=
c.offlineEvent;Sk(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&qcu(this)},qcu=function(c){Sk(c)&&!c.disableYtIdbTransactions&&(c.initialized=!0,c.enableCleaning&&Math.random()<=c.cleaningRate&&c.logsStore.cleanLogsStore(c.databaseToken),c.retryQueuedRequests(),c.networkManager.isNetworkAvailable()&&c.throttledSend(),c.networkManager.listen(c.onlineEvent,c.throttledSend.bind(c)),c.networkManager.listen(c.offlineEvent,c.cancelThrottledSend.bind(c)))};
_.r=Li.prototype;_.r.writeThenSend=function(c,f){var d=this;f=f===void 0?{}:f;if(Sk(this)&&this.initialized){var q={url:c,options:f,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(q,this.databaseToken).then(function(Z){q.id=Z;d.networkManager.isNetworkAvailable()&&d.immediateSend(q)}).catch(function(Z){d.immediateSend(q);
Ze3(d,Z)})}else this.sendFn(c,f)};
_.r.sendThenWrite=function(c,f,d){var q=this;f=f===void 0?{}:f;if(Sk(this)&&this.initialized){var Z={url:c,options:f,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Z.skipRetry=d);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Z.skipRetry){if(!Z.skipRetry){var M=f.onError?f.onError:function(){};
f.onError=function(g,O){return _.k(function(l){if(l.nextAddress==1)return l.yield(q.logsStore.set(Z,q.databaseToken).catch(function(m){Ze3(q,m)}),2);
M(g,O);_.Fm(l)})}}this.sendFn(c,f,Z.skipRetry)}else this.logsStore.set(Z,this.databaseToken).catch(function(g){q.sendFn(c,f,Z.skipRetry);
Ze3(q,g)})}else this.sendFn(c,f,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&d)};
_.r.sendAndWrite=function(c,f){var d=this;f=f===void 0?{}:f;if(Sk(this)&&this.initialized){var q={url:c,options:f,timestamp:this.now(),status:"NEW",sendCount:0},Z=!1,M=f.onSuccess?f.onSuccess:function(){};
q.options.onSuccess=function(g,O){q.id!==void 0?d.logsStore.deleteRequest(q.id,d.databaseToken):Z=!0;d.networkManager.networkStatusHint&&d.getBooleanFlag&&d.getBooleanFlag("vss_network_hint")&&d.networkManager.networkStatusHint(!0);M(g,O)};
this.sendFn(q.url,q.options,void 0,!0);this.logsStore.set(q,this.databaseToken).then(function(g){q.id=g;Z&&d.logsStore.deleteRequest(q.id,d.databaseToken)}).catch(function(g){Ze3(d,g)})}else this.sendFn(c,f,void 0,!0)};
_.r.throttledSend=function(){var c=this;if(!Sk(this))throw Error("Yc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(c.logsStore.getMostRecentByStatus("NEW",c.databaseToken),2);if(d.nextAddress!=3)return f=d.yieldResult,f?d.yield(c.immediateSend(f),3):(c.cancelThrottledSend(),d.return());c.intervalJob&&(c.intervalJob=0,c.throttledSend());_.Fm(d)})},this.throttleTimeout))};
_.r.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.r.immediateSend=function(c){var f=this,d;return _.k(function(q){switch(q.nextAddress){case 1:if(!Sk(f))throw Error("Zc");if(c.id===void 0){q.jumpTo(2);break}return q.yield(f.logsStore.markAsQueued(c.id,f.databaseToken),3);case 3:(d=q.yieldResult)||f.handleWarning(Error("$c"));case 2:if(f.requestWithinAgeLimit(c,f.requestAgeLimitMs)){q.jumpTo(4);break}f.handleWarning(Error("ad"));if(c.id===void 0){q.jumpTo(5);break}return q.yield(f.logsStore.deleteRequest(c.id,f.databaseToken),5);case 5:return q.return();
case 4:c.skipRetry||(c=MsK(f,c));if(!c){q.jumpTo(0);break}if(!c.skipRetry||c.id===void 0){q.jumpTo(8);break}return q.yield(f.logsStore.deleteRequest(c.id,f.databaseToken),8);case 8:f.sendFn(c.url,c.options,!!c.skipRetry),_.Fm(q)}})};
var MsK=function(c,f){if(!Sk(c))throw Error("bd");var d=f.options.onError?f.options.onError:function(){};
f.options.onError=function(Z,M){var g,O,l,m;return _.k(function(H){switch(H.nextAddress){case 1:g=pjN(M);(O=xhY(M))&&c.getBooleanFlag&&c.getBooleanFlag("web_enable_error_204")&&c.handleError(Error("cd"),f.url,M);if(!(c.getBooleanFlag&&c.getBooleanFlag("nwl_consider_error_code")&&g||c.getBooleanFlag&&!c.getBooleanFlag("nwl_consider_error_code")&&c.potentialEsfErrorCounter<=c.potentialEsfErrorLimit)){H.jumpTo(2);break}if(!c.networkManager.sendNetworkCheckRequest){H.jumpTo(3);break}return H.yield(c.networkManager.sendNetworkCheckRequest(),
3);case 3:if(c.networkManager.isNetworkAvailable()){H.jumpTo(2);break}d(Z,M);if(!c.getBooleanFlag||!c.getBooleanFlag("nwl_consider_error_code")||((l=f)==null?void 0:l.id)===void 0){H.jumpTo(6);break}return H.yield(c.logsStore.resetRequest(f.id,c.databaseToken,!1),6);case 6:return H.return();case 2:if(c.getBooleanFlag&&c.getBooleanFlag("nwl_consider_error_code")&&!g&&c.potentialEsfErrorCounter>c.potentialEsfErrorLimit)return H.return();c.potentialEsfErrorCounter++;if(((m=f)==null?void 0:m.id)===void 0){H.jumpTo(8);
break}return f.sendCount<c.retryMaxAttempts?H.yield(c.logsStore.resetRequest(f.id,c.databaseToken,!0,O?!1:void 0),12):H.yield(c.logsStore.deleteRequest(f.id,c.databaseToken),8);case 12:c.jobManager.addLowPriorityJob(function(){c.networkManager.isNetworkAvailable()&&c.throttledSend()},c.retryDelayMs);
case 8:d(Z,M),_.Fm(H)}})};
var q=f.options.onSuccess?f.options.onSuccess:function(){};
f.options.onSuccess=function(Z,M){var g;return _.k(function(O){if(O.nextAddress==1)return((g=f)==null?void 0:g.id)===void 0?O.jumpTo(2):O.yield(c.logsStore.deleteRequest(f.id,c.databaseToken),2);c.networkManager.networkStatusHint&&c.getBooleanFlag&&c.getBooleanFlag("vss_network_hint")&&c.networkManager.networkStatusHint(!0);q(Z,M);_.Fm(O)})};
return f};
Li.prototype.requestWithinAgeLimit=function(c,f){c=c.timestamp;return this.now()-c>=f?!1:!0};
Li.prototype.retryQueuedRequests=function(){var c=this;if(!Sk(this))throw Error("dd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(f){f&&!c.requestWithinAgeLimit(f,c.queuedRequestAgeLimitMs)?c.jobManager.addLowPriorityJob(function(){return _.k(function(d){if(d.nextAddress==1)return f.id===void 0?d.jumpTo(2):d.yield(c.logsStore.resetRequest(f.id,c.databaseToken),2);c.retryQueuedRequests();_.Fm(d)})}):c.networkManager.isNetworkAvailable()&&c.throttledSend()})};
var Ze3=function(c,f){c.writeError&&!c.networkManager.isNetworkAvailable()?c.writeError(f):c.handleError(f)},Sk=function(c){return!!c.databaseToken||c.bypassDbTokenDependency};var oEP;var Zaz={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 riv={},CPC=j6("ServiceWorkerLogsDatabase",{objectStores:(riv.SWHealthLog={addedAtVersion:1},riv),shared:!0,upgrade:function(c,f){f(1)&&Ws(ym(c,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var TNk={},ixz=0;var YDN;var zN=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Ps=function(){if(!zN.instance){var c=_.D5("yt.networkRequestMonitor.instance")||new zN;
_.fu("yt.networkRequestMonitor.instance",c);zN.instance=c}return zN.instance};
zN.prototype.requestComplete=function(c,f){f&&(this.anyRequestHasSucceeded=!0);c=this.removeParams(c);this.requestMap.get(c)||this.requestMap.set(c,f)};
zN.prototype.isEndpointCFR=function(c){c=this.removeParams(c);return(c=this.requestMap.get(c))?!1:c===!1&&this.anyRequestHasSucceeded?!0:null};
zN.prototype.removeParams=function(c){return c.split("?")[0]};
zN.prototype.removeParams=zN.prototype.removeParams;zN.prototype.isEndpointCFR=zN.prototype.isEndpointCFR;zN.prototype.requestComplete=zN.prototype.requestComplete;zN.getInstance=Ps;var JW=function(c){_.KF.call(this);var f=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=c!=null?c:{addLowPriorityJob:function(Z,M){return setTimeout(Z,M)},
cancelJob:function(Z){clearTimeout(Z)}};
var d,q;this.isOnline=(q=(d=window.navigator)==null?void 0:d.onLine)!=null?q:!0;this.onNavigatorChange=function(){return _.k(function(Z){return Z.yield(CVH(f),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||gnH(this)};
_.K(JW,_.KF);JW.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete JW.instance};
JW.prototype.isNetworkAvailable=function(){return this.isOnline};
var gnH=function(c){c.pollingJob=c.jobManager.addLowPriorityJob(function(){var f;return _.k(function(d){if(d.nextAddress==1)return c.isOnline?((f=window.navigator)==null?0:f.onLine)?d.jumpTo(3):d.yield(CVH(c),3):d.yield(CVH(c),3);gnH(c);_.Fm(d)})},3E4)},CVH=function(c,f){return c.networkRequestPromise?c.networkRequestPromise:c.networkRequestPromise=new Promise(function(d){var q,Z,M,g;
return _.k(function(O){switch(O.nextAddress){case 1:return q=window.AbortController?new window.AbortController:void 0,M=(Z=q)==null?void 0:Z.signal,g=!1,_.iY(O,2,3),q&&(c.abortTimeoutKey=c.jobManager.addLowPriorityJob(function(){q.abort()},f||2E4)),O.yield(fetch("/generate_204",{method:"HEAD",
signal:M}),5);case 5:g=!0;case 3:_.m0(O);c.networkRequestPromise=void 0;c.abortTimeoutKey&&(c.jobManager.cancelJob(c.abortTimeoutKey),c.abortTimeoutKey=0);g!==c.isOnline&&(c.isOnline=g,c.isOnline?c.dispatchEvent("networkstatus-online"):c.dispatchEvent("networkstatus-offline"));d(g);_.AD(O,0);break;case 2:_.Yw(O),g=!1,O.jumpTo(3)}})})};var a$=function(){_.KF.call(this);var c=this;this.shouldFlushErrors=!1;JW.instance||(JW.instance=new JW(_.a7));this.sharedNetworkStatusManager=JW.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(c.shouldFlushErrors&&_.F("offline_error_handling")){var f=Ftk().get("errors",!0);if(f){for(var d in f)if(f[d]){var q=new _.KD(d,"sent via offline_errors");q.name=f[d].name;q.stack=f[d].stack;q.level=f[d].level;_.yJ(q)}Ftk().set("errors",{},2592E3,!0)}}})};
_.K(a$,_.KF);var kcy=function(){if(!a$.instance){var c=_.D5("yt.networkStatusManager.instance")||new a$;_.fu("yt.networkStatusManager.instance",c);a$.instance=c}return a$.instance};
_.r=a$.prototype;_.r.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.r.networkStatusHint=function(c){this.sharedNetworkStatusManager.isOnline=c};
_.r.getWindowStatus=function(){var c=window.navigator.onLine;return c===void 0?!0:c};
_.r.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.r.listen=function(c,f){return this.sharedNetworkStatusManager.listen(c,f)};
_.r.sendNetworkCheckRequest=function(c){c=CVH(this.sharedNetworkStatusManager,c);c.then(function(f){_.F("use_cfr_monitor")&&Ps().requestComplete("generate_204",f)});
return c};
a$.prototype.sendNetworkCheckRequest=a$.prototype.sendNetworkCheckRequest;a$.prototype.listen=a$.prototype.listen;a$.prototype.enableErrorFlushing=a$.prototype.enableErrorFlushing;a$.prototype.getWindowStatus=a$.prototype.getWindowStatus;a$.prototype.networkStatusHint=a$.prototype.networkStatusHint;a$.prototype.isNetworkAvailable=a$.prototype.isNetworkAvailable;a$.getInstance=kcy;_.I7=function(c){c=c===void 0?{}:c;_.KF.call(this);var f=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=kcy();var d=_.D5("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);d&&(c.rateLimit?(this.rateLimit=c.rateLimit,d("networkstatus-online",function(){OeH(f,"publicytnetworkstatus-online")}),d("networkstatus-offline",function(){OeH(f,"publicytnetworkstatus-offline")})):(d("networkstatus-online",function(){f.dispatchEvent("publicytnetworkstatus-online")}),d("networkstatus-offline",
function(){f.dispatchEvent("publicytnetworkstatus-offline")})))};
_.K(_.I7,_.KF);_.I7.prototype.isNetworkAvailable=function(){var c=_.D5("yt.networkStatusManager.instance.isNetworkAvailable");return c?c.bind(this.nsmInstance)():!0};
_.I7.prototype.networkStatusHint=function(c){var f=_.D5("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);f&&f(c)};
_.I7.prototype.sendNetworkCheckRequest=function(c){var f=this,d;return _.k(function(q){d=_.D5("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(f.nsmInstance);return _.F("skip_network_check_if_cfr")&&Ps().isEndpointCFR("generate_204")?q.return(new Promise(function(Z){var M;f.networkStatusHint(((M=window.navigator)==null?void 0:M.onLine)||!0);Z(f.isNetworkAvailable())})):d?q.return(d(c)):q.return(!0)})};
var OeH=function(c,f){c.rateLimit?c.lastJobTime?(_.a7.cancelJob(c.schedulerJob),c.schedulerJob=_.a7.addLowPriorityJob(function(){c.lastPublicSignalSent!==f&&(c.dispatchEvent(f),c.lastPublicSignalSent=f,c.lastJobTime=(0,_.qR)())},c.rateLimit-((0,_.qR)()-c.lastJobTime))):(c.dispatchEvent(f),c.lastPublicSignalSent=f,c.lastJobTime=(0,_.qR)()):c.dispatchEvent(f)};var npl,VK=function(){Li.call(this,{logsStore:{cleanLogsStore:MqG,deleteRequest:Zxn,getMostRecentByStatus:dVh,markAsQueued:jfC,resetRequest:qDh,set:f9P},networkManager:_.$VG(),handleError:function(c,f,d){var q,Z=d==null?void 0:(q=d.error)==null?void 0:q.code;if(Z===400||Z===415){var M;c=new _.KD(c.message,f,d==null?void 0:(M=d.error)==null?void 0:M.code);_.eZ(c,void 0,void 0,void 0,!0)}else _.yJ(c)},
handleWarning:_.eZ,sendFn:Kte,now:_.qR,writeError:tqr,jobManager:_.zd(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.rx("potential_esf_error_limit",10),getBooleanFlag:_.F,disableYtIdbTransactions:!(_.bF()&&_.Qf4())});this.initializationPromise=new _.BS;_.F("networkless_immediately_drop_all_requests")&&reh();x$N("LogsDatabaseV2")};
_.K(VK,Li);_.sS3=function(){var c=_.D5("yt.networklessRequestController.instance");c||(c=new VK,_.fu("yt.networklessRequestController.instance",c),_.F("networkless_logging")&&_.dR().then(function(f){c.databaseToken=f;qcu(c);c.initializationPromise.resolve();c.enableCleaning&&Math.random()<=c.cleaningRate&&c.databaseToken&&kue(c.databaseToken);_.F("networkless_immediately_drop_sw_health_store")&&lzv(c)}));
return c};
VK.prototype.writeThenSend=function(c,f){f||(f={});f=EpG(c,f);_.bF()||(this.initialized=!1);Li.prototype.writeThenSend.call(this,c,f)};
VK.prototype.sendThenWrite=function(c,f,d){f||(f={});f=EpG(c,f);_.bF()||(this.initialized=!1);Li.prototype.sendThenWrite.call(this,c,f,d)};
VK.prototype.sendAndWrite=function(c,f){f||(f={});f=EpG(c,f);_.bF()||(this.initialized=!1);Li.prototype.sendAndWrite.call(this,c,f)};
VK.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var lzv=function(c){var f;_.k(function(d){if(!c.databaseToken)throw f=yW("clearSWHealthLogsDb"),f;return d.return(OxY(c.databaseToken).catch(function(q){c.handleError(q)}))})};_.LtC=!1;_.SDh=_.dz.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.LtC};_.fu("ytNetworklessLoggingInitializationOptions",_.SDh);var LW=function(c){var f=this;this.config_=null;c?this.config_=c:Mvh()&&(this.config_=_.MR());_.Em(_.a7,function(){Uhn(f)},5E3)};
LW.prototype.isReady=function(){!this.config_&&Mvh()&&(this.config_=_.MR());return!!this.config_};
var RBY=function(c,f,d,q){!_.hk("VISITOR_DATA")&&f!=="visitor_id"&&Math.random()<.01&&_.eZ(new _.KD("Missing VISITOR_DATA when sending innertube request.",f,d,q));if(!c.isReady()){var Z=new _.KD("innertube xhrclient not ready",f,d,q);_.yJ(Z);throw Z;}var M={headers:q.headers||{},method:"POST",postParams:d,postBody:q.postBody,postBodyFormat:q.postBodyFormat||"JSON",onTimeout:function(){q.onTimeout()},
onFetchTimeout:q.onTimeout,onSuccess:function(A,Y){if(q.onSuccess)q.onSuccess(Y)},
onFetchSuccess:function(A){if(q.onSuccess)q.onSuccess(A)},
onProgress:function(A){if(q.onProgress)q.onProgress(A)},
onError:function(A,Y){if(q.onError)q.onError(Y)},
onFetchError:function(A){if(q.onError)q.onError(A)},
timeout:q.timeout,withCredentials:!0,compress:q.compress};M.headers["Content-Type"]||(M.headers["Content-Type"]="application/json");var g="";(Z=c.config_.innertubeHostOverride)&&(g=Z);var O=c.config_.innertubeUseThirdPartyAuth||!1,l=_.tvP(O,g,q);Object.assign(M.headers,l);M.headers.Authorization&&!g&&O&&(M.headers["x-origin"]=window.location.origin);var m=_.U6(g+("/youtubei/"+c.config_.innertubeApiVersion+"/"+f),{alt:"json"}),H=function(A){A=A===void 0?!1:A;var Y;if(q.retry&&g!="www.youtube-nocookie.com"&&
(A||_.F("skip_ls_gel_retry")||M.headers["Content-Type"]!=="application/json"||(Y=I_C(f,d,l,O)),Y)){var t=M.onSuccess,E=M.onFetchSuccess;M.onSuccess=function(u,W){Pae(Y);t(u,W)};
d.onFetchSuccess=function(u,W){Pae(Y);E(u,W)}}try{if(A&&q.retry&&!q.networklessOptions.bypassNetworkless)M.method="POST",q.networklessOptions.writeThenSend?_.sS3().writeThenSend(m,M):_.sS3().sendAndWrite(m,M);
else if(q.compress){var J=!q.networklessOptions.writeThenSend;if(M.postBody){var X=M.postBody;typeof X!=="string"&&(X=JSON.stringify(M.postBody));Xje(m,X,M,_.iF,J)}else Xje(m,JSON.stringify(M.postParams),M,D9C,J)}else _.F("web_all_payloads_via_jspb")?_.iF(m,M):D9C(m,M)}catch(u){if(u.name==="InvalidAccessError")Y&&(Pae(Y),Y=0),_.eZ(Error("ed"));else throw u;}Y&&_.Em(_.a7,function(){Uhn(c)},5E3)};
_.zDN()?D$z().then(function(A){H(A)}):H(!1)};var uIk=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(uIk,_.d8);var B2F=0,a9z=_.sJ?"webkit":_.lf?"moz":_.OJ?"ms":b4r?"o":"";_.fu("ytDomDomGetNextId",_.D5("ytDomDomGetNextId")||function(){return++B2F});var ieH={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},fW=function(c){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(c=
c||window.event){this.event=c;for(var f in c)f in ieH||(this[f]=c[f]);this.scale=c.scale;this.rotation=c.rotation;var d=c.target||c.srcElement;d&&d.nodeType==3&&(d=d.parentNode);this.target=d;var q=c.relatedTarget;if(q)try{q=q.nodeName?q:null}catch(Z){q=null}else this.type=="mouseover"?q=c.fromElement:this.type=="mouseout"&&(q=c.toElement);this.relatedTarget=q;this.clientX=c.clientX!=void 0?c.clientX:c.pageX;this.clientY=c.clientY!=void 0?c.clientY:c.pageY;this.keyCode=c.keyCode?c.keyCode:c.which;
this.charCode=c.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=c.altKey;this.ctrlKey=c.ctrlKey;this.shiftKey=c.shiftKey;this.metaKey=c.metaKey;this.pageX_=c.pageX;this.pageY_=c.pageY}}catch(Z){}},T2o=function(c){if(document.body&&document.documentElement){var f=document.body.scrollTop+document.documentElement.scrollTop;
c.pageX_=c.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);c.pageY_=c.clientY+f}};
fW.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
fW.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
fW.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var cw=_.dz.ytEventsEventsListeners||{};_.fu("ytEventsEventsListeners",cw);var whM=_.dz.ytEventsEventsCounter||{count:0};_.fu("ytEventsEventsCounter",whM);var yeP=_.b4(function(){var c=!1;try{var f=Object.defineProperty({},"capture",{get:function(){c=!0}});
window.addEventListener("test",null,f)}catch(d){}return c});_.rn(j_,_.ES);j_.prototype.onMouseMove_=function(c){c.pageX_===void 0&&T2o(c);var f=c.pageX_;c.pageY_===void 0&&T2o(c);this.position_=new _.a8(f,c.pageY_)};
j_.prototype.checkPosition_=function(){if(this.position_){var c=(0,_.qR)();if(this.previousTime_!=0){var f=this.previousPosition_,d=this.position_,q=f.x-d.x;f=f.y-d.y;q=Math.sqrt(q*q+f*f)/(c-this.previousTime_);this.cycles_[this.index_]=Math.abs((q-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(d=f=0;d<4;d++)f+=this.cycles_[d]||0;f>=3&&this.callback_();this.previousVelocity_=q}this.previousTime_=c;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
j_.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Wtz(this.mouseListenerKey_)};var I9l={};var ccN=new _.fi("rawColdConfigGroup");var G3k=new _.fi("rawHotConfigGroup");var mTK=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(mTK,_.d8);var Xdl=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Xdl,_.d8);var KW=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c,500)};
_.K(KW,_.d8);KW.prototype.getPayloadCase=function(){return _.nS(this,Heu)};
KW.prototype.getContext=function(){return _.TD(this,Xdl,33)};
var Heu=[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 PSl=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(PSl,_.d8);var tCk=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(tCk,_.d8);tCk.prototype.setVideoId=function(c){return TP(this,1,bsr,lC(c))};
tCk.prototype.getPlaylistId=function(){return _.Hu(this,FX(this,bsr,2))};
var bsr=[1,2];var ypY=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ypY,_.d8);ypY.prototype.getContext=function(){return _.TD(this,mj,1)};
ypY.prototype.getTier=function(){return _.VQ(this,7)};var Aio,rK,CW;Aio=_.dz.ytPubsubPubsubInstance||new _.mu;rK=_.dz.ytPubsubPubsubSubscribedKeys||{};CW=_.dz.ytPubsubPubsubTopicToKeys||{};_.PP4=_.dz.ytPubsubPubsubIsSynchronous||{};_.mu.prototype.subscribe=_.mu.prototype.subscribe;_.mu.prototype.unsubscribeByKey=_.mu.prototype.unsubscribeByKey;_.mu.prototype.publish=_.mu.prototype.publish;_.mu.prototype.clear=_.mu.prototype.clear;_.fu("ytPubsubPubsubInstance",Aio);_.fu("ytPubsubPubsubTopicToKeys",CW);_.fu("ytPubsubPubsubIsSynchronous",_.PP4);
_.fu("ytPubsubPubsubSubscribedKeys",rK);var kz=window;var Xe=_.F("web_enable_lifecycle_monitoring")&&opM()!==0,YcO=_.F("web_enable_lifecycle_monitoring");var FFH=function(c){var f=this;var d=d===void 0?0:d;var q=q===void 0?_.zd():q;this.JSC$10792_defaultPriority=d;this.scheduler=q;this.completedResolver=new _.BS;this.scheduledPayloads=c;for(c={i$jscomp$487:0};c.i$jscomp$487<this.scheduledPayloads.length;c={payload$jscomp$19:void 0,i$jscomp$487:c.i$jscomp$487},c.i$jscomp$487++)c.payload$jscomp$19=this.scheduledPayloads[c.i$jscomp$487],d=function(Z){return function(){Z.payload$jscomp$19.job();f.scheduledPayloads[Z.i$jscomp$487].processed=!0;f.scheduledPayloads.every(function(M){return M.processed===
!0})&&f.completedResolver.resolve()}}(c),q=this.getPriority(c.payload$jscomp$19),q=this.scheduler.addJob(d,q),this.scheduledPayloads[c.i$jscomp$487]=Object.assign({},c.payload$jscomp$19,{job:d,
jobId:q})};
FFH.prototype.flushJobs=function(){var c=this,f=Array.from(this.scheduledPayloads.keys()).sort(function(q,Z){return c.getPriority(c.scheduledPayloads[Z])-c.getPriority(c.scheduledPayloads[q])});
f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=this.scheduledPayloads[d.value],d.jobId===void 0||d.processed||(this.scheduler.cancelJob(d.jobId),this.scheduler.addJob(d.job,10))};
FFH.prototype.cancel=function(){for(var c=_.C(this.scheduledPayloads),f=c.next();!f.done;f=c.next())f=f.value,f.jobId===void 0||f.processed||this.scheduler.cancelJob(f.jobId),f.processed=!0;this.completedResolver.resolve()};
FFH.prototype.getPriority=function(c){var f;return(f=c.priority)!=null?f:this.JSC$10792_defaultPriority};var uB=function(c){this.state=c;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Xe&&GuN(this.state)};
uB.prototype.install=function(c){this.plugins.push(c);return this};
uB.prototype.uninstall=function(){var c=this;_.hv.apply(0,arguments).forEach(function(f){f=c.plugins.indexOf(f);f>-1&&c.plugins.splice(f,1)})};
uB.prototype.transition=function(c,f){var d=this;Xe&&cpr(this.state);var q=this.transitions.find(function(M){return Array.isArray(M.from)?M.from.find(function(g){return g===d.state&&M.to===c}):M.from===d.state&&M.to===c});
if(q){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);ts_(this,c,f);this.state=c;Xe&&GuN(this.state);q=q.action.bind(this);var Z=this.plugins.filter(function(M){return M[c]}).map(function(M){return M[c]});
q(beo(this,Z),f)}else throw Error("fd`"+this.state+"`"+c);};
var beo=function(c,f){var d=f.filter(function(Z){return KFo(c,Z)===10}),q=f.filter(function(Z){return KFo(c,Z)!==10});
return c.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Z=_.hv.apply(0,arguments);return _.k(function(M){if(M.nextAddress==1)return M.yield(c.runImmediateJobsAsync.apply(c,[d].concat(_.LT(Z))),2);c.setJobSetWithScheduledJobs.apply(c,[q].concat(_.LT(Z)));_.Fm(M)})}:function(){var Z=_.hv.apply(0,arguments);
c.runImmediateJobsSync.apply(c,[d].concat(_.LT(Z)));c.setJobSetWithScheduledJobs.apply(c,[q].concat(_.LT(Z)))}};
uB.prototype.runImmediateJobsSync=function(c){var f=_.hv.apply(1,arguments);_.zd();for(var d=_.C(c),q=d.next(),Z={};!q.done;Z={lifecycle$jscomp$2:void 0},q=d.next())Z.lifecycle$jscomp$2=q.value,sV(function(M){return function(){En_(M.lifecycle$jscomp$2.name);d5C(function(){return M.lifecycle$jscomp$2.callback.apply(M.lifecycle$jscomp$2,_.LT(f))});
va(M.lifecycle$jscomp$2.name)}}(Z))};
uB.prototype.runImmediateJobsAsync=function(c){var f=_.hv.apply(1,arguments),d,q,Z,M;return _.k(function(g){g.nextAddress==1&&(_.zd(),d=_.C(c),q=d.next(),Z={});if(g.nextAddress!=3){if(q.done)return g.jumpTo(0);Z.lifecycle$jscomp$3=q.value;Z.asyncJobCompletion=void 0;M=function(O){return function(){En_(O.lifecycle$jscomp$3.name);var l=d5C(function(){return O.lifecycle$jscomp$3.callback.apply(O.lifecycle$jscomp$3,_.LT(f))});
fqC(l)?O.asyncJobCompletion=_.F("web_lifecycle_error_handling_killswitch")?l.then(function(){va(O.lifecycle$jscomp$3.name)}):l.then(function(){va(O.lifecycle$jscomp$3.name)},function(m){f7e(m);
va(O.lifecycle$jscomp$3.name)}):va(O.lifecycle$jscomp$3.name)}}(Z);
sV(M);return Z.asyncJobCompletion?g.yield(Z.asyncJobCompletion,3):g.jumpTo(3)}Z={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};q=d.next();return g.jumpTo(2)})};
uB.prototype.setJobSetWithScheduledJobs=function(c){var f=_.hv.apply(1,arguments),d=this,q=c.map(function(Z){return{job:function(){En_(Z.name);d5C(function(){return Z.callback.apply(Z,_.LT(f))});
va(Z.name)},
priority:KFo(d,Z)}});
q.length&&(this.jobSet=new FFH(q))};
var KFo=function(c,f){var d,q;return(q=(d=c.overridePriority)!=null?d:f.priority)!=null?q:0},En_=function(c){Xe&&c&&GuN(c)},va=function(c){Xe&&c&&cpr(c)},ts_=function(c,f,d){YcO&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+c.constructor.name+"] '"+c.state+"' to '"+f+"'"),console.log("with message: ",d),console.groupEnd())};
_.ci.Object.defineProperties(uB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var nnO=function(c){uB.call(this,c===void 0?"none":c);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(){}}]},$Tv;
_.K(nnO,uB);nnO.prototype.runApplicationNavigationBegin=function(c,f){var d=this;this.navigationTimer=_.Em(_.a7,function(){d.currentState==="application_navigating"&&d.transition("none")},5E3);
c(f==null?void 0:f.event)};
nnO.prototype.runApplicationNavigationEnd=function(c,f){this.navigationTimer&&(_.a7.cancelJob(this.navigationTimer),this.navigationTimer=null);c(f==null?void 0:f.event)};
_.oZk=function(){$Tv||($Tv=new nnO);return $Tv};var x5z=[];_.fu("yt.logging.transport.getScrapedGelPayloads",function(){return x5z});var Om=function(){var c=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return c.totalEntries}}};
Om.prototype.storePayload=function(c,f){c=jTh(c);this.store[c]?this.store[c].push(f):(this.memoizedKeySequences={},this.store[c]=[f]);this.totalEntries++;_.F("more_accurate_gel_parser")&&(f=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(f));return c};
Om.prototype.smartExtractMatchingEntries=function(c){if(!c.keys.length)return[];for(var f=QSr(this,c.keys.splice(0,1)[0]),d=[],q=0;q<f.length;q++)this.store[f[q]]&&c.sizeLimit&&(this.store[f[q]].length<=c.sizeLimit?(d.push.apply(d,_.LT(this.store[f[q]])),delete this.store[f[q]]):d.push.apply(d,_.LT(this.store[f[q]].splice(0,c.sizeLimit))));this.totalEntries-=d.length;(c==null?0:c.sizeLimit)&&d.length<(c==null?void 0:c.sizeLimit)&&(c.sizeLimit-=d.length,d.push.apply(d,_.LT(this.smartExtractMatchingEntries(c))));
return d};
Om.prototype.extractMatchingEntries=function(c){c=QSr(this,c);for(var f=[],d=0;d<c.length;d++)this.store[c[d]]&&(f.push.apply(f,_.LT(this.store[c[d]])),delete this.store[c[d]]);this.totalEntries-=f.length;return f};
Om.prototype.getSequenceCount=function(c){c=QSr(this,c);for(var f=0,d=0;d<c.length;d++){var q=void 0;f+=((q=this.store[c[d]])==null?void 0:q.length)||0}return f};
var QSr=function(c,f){var d=jTh(f);if(c.memoizedKeySequences[d])return c.memoizedKeySequences[d];var q=Object.keys(c.store)||[];if(q.length<=1&&jTh(f)===q[0])return q;for(var Z=[],M=0;M<q.length;M++){var g=q[M].split("/");if(Scj(f.auth,g[0])){var O=f.isJspb;Scj(O===void 0?"undefined":O?"true":"false",g[1])&&Scj(f.cttAuthInfo,g[2])&&(O=f.tier,O=O===void 0?"undefined":JSON.stringify(O),Scj(O,g[3])&&Z.push(q[M]))}}return c.memoizedKeySequences[d]=Z},Scj=function(c,f){return c===void 0||c==="undefined"?
!0:c===f};
Om.prototype.getSequenceCount=Om.prototype.getSequenceCount;Om.prototype.extractMatchingEntries=Om.prototype.extractMatchingEntries;Om.prototype.smartExtractMatchingEntries=Om.prototype.smartExtractMatchingEntries;Om.prototype.storePayload=Om.prototype.storePayload;var JpM,L$l,a7r,Bw,LFH,qRz,jee,SV4,QTk,m5n,zYP,U5N,EZn;JpM=_.rx("initial_gel_batch_timeout",2E3);L$l=_.rx("gel_queue_timeout_max_ms",6E4);a7r=_.rx("gel_min_batch_size",5);Bw=void 0;LFH=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
qRz=new LFH;jee=new LFH;SV4=new LFH;QTk=new LFH;zYP=!0;U5N=1;_.RYC=new Map;EZn=_.dz.ytLoggingTransportTokensToCttTargetIds_||{};_.fu("ytLoggingTransportTokensToCttTargetIds_",EZn);var K$n=_.dz.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.fu("ytLoggingTransportTokensToJspbCttTargetIds_",K$n);var sm={};var QO=_.dz.ytLoggingGelSequenceIdObj_||{};_.fu("ytLoggingGelSequenceIdObj_",QO);var rcl=[];var AcN=new Set,lWr=0,bah=0,tcP=0,ByP=[],se4=[],K_l=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var vvP=function(){};
vvP.prototype.getUrl=function(c,f){f=f===void 0?!1:f;return c.hasOwnProperty("shareEndpoint")?null:_.QeN(c,null,f)};
var pph=function(c,f,d){c={endpoint:f,actions:[]};d=(d.path?d.path[0]:d.target).icon||"";f=d.indexOf(":");f>0&&(d=d.substr(f+1));d&&c.actions.push(d);return c};var Vc4=/Command$/,aWz=/Endpoint$/,L_N=new Map;var zg_,JiH;zg_=1;_.Pw=function(){this.actionRoutingMap=new Map};
_.Pw.prototype.triggerAction=function(c){var f=new Bhk(c,!1,_.hv.apply(1,arguments));this.handleAction(f);return f.returnValue};
_.Pw.prototype.triggerOptionalAction=function(c){var f=new Bhk(c,!0,_.hv.apply(1,arguments));this.handleAction(f);return f.returnValue};
_.hW=function(c,f,d){f.forEach(function(q){var Z=JcY(q);Z&&c.triggerOptionalAction(Z,q,d,void 0)})};
_.Pw.prototype.handleAction=function(c){var f=this.actionRoutingMap.get(c.actionName);f&&JiH(c,f);c.optionalAction||c.returnValue.length!==0||(c=new _.KD("Unhandled action",c.actionName),_.eZ(c))};
JiH=function(c,f){f.forEach(function(d){var q=null;d?q=d.apply(null,c.args):(d=Error("gd"),d.params=c.actionName,_.yJ(d));c.returnValue.push(q)})};
_.Rb=function(c,f,d){d||(d=zg_++);for(var q=_.C(Object.keys(f)),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var M=c.actionRoutingMap.get(Z);M||(M=new Map,c.actionRoutingMap.set(Z,M));c.registerActionHandler(d,Z,f[Z],M)}return d};
_.Pw.prototype.registerActionHandler=function(c,f,d,q){q.set(c,_.WC(d))};
_.Um=function(c,f,d){f=_.C(Object.keys(f));for(var q=f.next();!q.done;q=f.next())(q=c.actionRoutingMap.get(q.value))&&q.delete(d)};
_.Z2(_.Pw);var ycl=function(c,f){var d=_.Pw.getInstance();_.L9(function(){var q={},Z=_.Rb(d,(q[c]=f,q));_.Q4(function(){var M={};_.Um(d,(M[c]="",M),Z)})})};var XMP=Symbol("id");RwN=KFz;var j9k=new Set(["For","If","Match","Watch"]),azK={},VsK=(azK[ho.default]=function(){return y8C},azK.style=function(){return y8C},azK),Xi3;
for(Xi3 in VsK)d$.attributes[Xi3]=VsK[Xi3](d$.attributes[Xi3]);var jR=new _.jk("VISIBILITY_OBSERVER");var s9k={retrieve:function(c){return this.id.\u0275prov.token===c.\u0275prov.token?this.contextValue:this?_.GD(this,this.id):FwM}};var wI4=function(c,f,d){if(c!==GP)return!1;c=xYY(document.createElement("div"),function(){var q=Z5(!1);try{d[0]()}finally{Z5(q)}});
c=Array.from(c.childNodes);c.length===1&&(c=c[0]);return c};var u2H=function(c){c=c.clone();MA_(c);K0(c,"dg",null);K0(c,"d","0");dlH(c,null);jo3(c,null);return c},vn_=!0,hgT=function(c,f,d){var q=d===void 0?{}:d;
d=q.cssRowKey===void 0?void 0:q.cssRowKey;var Z=q.combinedSignature===void 0?void 0:q.combinedSignature;var M=q.extraEdges===void 0?void 0:q.extraEdges;q=q.callback===void 0?void 0:q.callback;K0(c,"m",f.join(","));M&&ZD_(c,M);d&&(K0(c,"ck",d),Z?K0(c,"rs",Z):vn_&&(vn_=!1));if(q){if(q!=null&&!gKj.test(q))throw Error("Xa`"+q);K0(c,"cb",q)}c=c.toString();_.Z4(c,"/")&&(c=uiF(document.location.href)+c);return _.bX(c)};var yij=function(c){return wi_(c).then(function(f){return JSON.parse(f.responseText)})},wi_=function(c){var f={},d=f.xmlHttpFactory?f.xmlHttpFactory.createInstance():KCO.createInstance();
return(new _.i6(function(q,Z){var M;try{d.open("GET",c,!0)}catch(l){Z(new wE("Error opening XHR: "+l.message,c,d))}d.onreadystatechange=function(){if(d.readyState==4){_.dz.clearTimeout(M);var l;!(l=bGK(d.status))&&(l=d.status===0)&&(l=XDH(c),l=!(l=="http"||l=="https"||l==""));l?q(d):Z(new WFT(d.status,c,d))}};
d.onerror=function(){Z(new wE("Network error",c,d))};
if(f.headers)for(var g in f.headers){var O=f.headers[g];O!=null&&d.setRequestHeader(g,O)}f.withCredentials&&(d.withCredentials=f.withCredentials);f.responseType&&(d.responseType=f.responseType);f.mimeType&&d.overrideMimeType(f.mimeType);f.timeoutMs>0&&(M=_.dz.setTimeout(function(){d.onreadystatechange=function(){};
d.abort();Z(new DT_(c,d))},f.timeoutMs));
try{d.send(null)}catch(l){d.onreadystatechange=function(){},_.dz.clearTimeout(M),Z(new wE("Error sending XHR: "+l.message,c,d))}})).thenCatch(function(q){q instanceof _.NC&&d.abort();
throw q;})},wE=function(c,f,d){_.cN.call(this,c+", url="+f);
this.url=f;this.xhr=d};
_.rn(wE,_.cN);wE.prototype.name="XhrError";var WFT=function(c,f,d){wE.call(this,"Request Failed, status="+c,f,d);this.status=c};
_.rn(WFT,wE);WFT.prototype.name="XhrHttpError";var DT_=function(c,f){wE.call(this,"Request timed out",c,f)};
_.rn(DT_,wE);DT_.prototype.name="XhrTimeoutError";q6=q6||{};var yK=function(){_.ES.call(this)};
_.rn(yK,_.ES);yK.prototype.initialize=function(){};var egO=function(c,f){this.fn_=c;this.handler_=f};
egO.prototype.execute=function(c){this.fn_&&(this.fn_.call(this.handler_||null,c),this.fn_=this.handler_=null)};
egO.prototype.abort=function(){this.handler_=this.fn_=null};var Wa=function(c,f){_.ES.call(this);this.deps_=c;this.JSC$10919_id_=f;this.onloadCallbacks_=[];this.JSC$10919_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.rn(Wa,_.ES);Wa.prototype.moduleConstructor_=yK;Wa.prototype.module_=null;Wa.prototype.getId=function(){return this.JSC$10919_id_};
Wa.prototype.registerCallback=function(c,f){return N2T(this.onloadCallbacks_,c,f)};
var Izv=function(c,f){N2T(c.JSC$10919_onErrorCallbacks_,f)},N2T=function(c,f,d){f=new egO(f,d);
c.push(f);return f};
Wa.prototype.isLoaded=function(){return!!this.module_};
Wa.prototype.onLoad=function(c){var f=new this.moduleConstructor_;f.initialize(c());this.module_=f;f=(f=PV3(this.earlyOnloadCallbacks_,c()))||PV3(this.onloadCallbacks_,c());f||(this.JSC$10919_onErrorCallbacks_.length=0);return f};
Wa.prototype.onError=function(c){(c=PV3(this.JSC$10919_onErrorCallbacks_,c))&&jM(Error("md`"+c));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var PV3=function(c,f){for(var d=[],q=0;q<c.length;q++)try{c[q].execute(f)}catch(Z){jM(Z),d.push(Z)}c.length=0;return d.length?d:null};
Wa.prototype.disposeInternal=function(){Wa.superClass_.disposeInternal.call(this);_.GV(this.module_)};var Rgu,cQy,ono,GcK,piH,xTo,ZZo,jc3,qXT;
_.ek=function(c,f,d,q,Z){q=q===void 0?!1:q;Z=Z===void 0?!1:Z;var M=M===void 0?!0:M;this.scsReferenceUrl_=efP(_.Kq(c).toString(),M);this.cssRowKey_=f;this.combinedSignature_=d;this.useNegativeLoading_=q;this.requestedModuleMap_={};this.JSC$10922_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(c=bJ(this.scsReferenceUrl_,"excm"))?c.split(","):[];this.shouldScanForCss_=Z;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;NR4();_.Dn(this,qzy(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Rgu=function(c,f){if(f.href||f.getAttribute("data-href"))if(f=f.href||f.getAttribute("data-href"),wsP(f)&&!efP(f).urlPrefix_.endsWith("_/js/")){f=qzy(efP(f));f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=d.value,c.loadedCssModuleList_.includes(d)||c.loadedCssModuleList_.push(d)}};
_.ek.prototype.JSC$10924_loadModules=function(c,f,d){var q=d===void 0?{}:d;d=q.extraEdges;var Z=q.onError;var M=q.onSuccess;q=q.forceReload;this.JSC$10922_moduleInfoMap_=f;if(!c)throw Error("nd");if(this.shouldScanForCss_){f=_.C(document.getElementsByTagName("style"));for(var g=f.next();!g.done;g=f.next())Rgu(this,g.value);f=_.C(document.getElementsByTagName("link"));for(g=f.next();!g.done;g=f.next())Rgu(this,g.value)}UT3(this,piH(this,c),d,Z,M,q)};
var UT3=function(c,f,d,q,Z,M){q=q===void 0?function(){}:q;
Z=Z===void 0?function(){}:Z;
M=M===void 0?!1:M;xTo(c,f,function(g,O,l){l=l===void 0?O:l;c.enableFallbackFetch&&M?c.loadWithFetch(g,O,q,Z,l):c.load(g,O,q,Z,l,d)},d)||q(-1)};
_.ek.prototype.loadWithFetch=function(){_.k(function(){throw Error("od");})};
_.ek.prototype.maybeSetAdditionalFields=function(){};
cQy=function(c,f,d){if(c.useNegativeLoading_){var q=c.scsReferenceUrl_;c={cssRowKey:c.cssRowKey_,combinedSignature:c.combinedSignature_,extraEdges:d,requestedModuleIds:ono(c),requestedCssModuleIds:GcK(c)};var Z=c===void 0?{}:c;c=Z.requestedModuleIds===void 0?[]:Z.requestedModuleIds;d=Z.requestedCssModuleIds===void 0?[]:Z.requestedCssModuleIds;var M=Z.cssRowKey===void 0?void 0:Z.cssRowKey;var g=Z.combinedSignature===void 0?void 0:Z.combinedSignature;var O=Z.extraEdges===void 0?void 0:Z.extraEdges;
Z=Z.callback===void 0?void 0:Z.callback;q=u2H(q);K0(q,"d","1");dlH(q,c);jo3(q,d);f=hgT(q,f,{cssRowKey:M,combinedSignature:g,extraEdges:O,callback:Z})}else q=c.scsReferenceUrl_,c={cssRowKey:c.cssRowKey_,combinedSignature:c.combinedSignature_,requestedModuleIds:ono(c),requestedCssModuleIds:GcK(c)},O=c===void 0?{}:c,c=O.requestedCssModuleIds===void 0?[]:O.requestedCssModuleIds,d=O.cssRowKey===void 0?void 0:O.cssRowKey,M=O.combinedSignature===void 0?void 0:O.combinedSignature,g=O.extraEdges===void 0?
void 0:O.extraEdges,O=O.callback===void 0?void 0:O.callback,q=u2H(q),jo3(q,c),f=hgT(q,f,{cssRowKey:d,combinedSignature:M,extraEdges:g,callback:O});return f};
_.Dn=function(c,f){for(var d=!1,q=[],Z=0;Z<f.length;++Z){var M=f[Z];c.requestedModuleMap_[M]||(c.requestedModuleMap_[M]=!0,c.requestedModuleList_.push(M),d=!0,q.push(M))}d&&(c.requestedModuleListSorted_=!1)};
_.N_=function(c,f){for(var d=[],q=0;q<f.length;++q){var Z=f[q];c.requestedModuleMap_[Z]&&(delete c.requestedModuleMap_[Z],_.wz(c.requestedModuleList_,Z),d.push(Z))}};
_.ek.prototype.load=function(c,f,d,q,Z){Z=Z===void 0?f:Z;_.Kq(c);var M=this.useCors_,g=this.corsMode_,O=this.fetchPriority,l=_.A5("SCRIPT");_.oh(l,c);M&&(l.crossOrigin=g);l.async=!1;O&&l.setAttribute("fetchpriority",O);_.Dn(this,f);_.frK(this,c,l,f,d,q,Z)};
_.frK=function(c,f,d,q,Z,M,g){g=g===void 0?q:g;c.lastScript_=d;c.insertPos.insertBefore(d,c.insertPos.firstChild);_.d9j(d,q,function(){d.parentElement.removeChild(d);c.lastScript_==d&&(c.lastScript_=null);var O=new Set;q.map(function(m){return O.add(m)});
for(var l in c.JSC$10922_moduleInfoMap_)c.JSC$10922_moduleInfoMap_[l].isLoaded()&&O.add(l);Array.from(O);M()},function(O){d.parentElement.removeChild(d);
c.lastScript_==d&&(c.lastScript_=null);_.N_(c,O);c.pendingModuleGraphUpdate_?c.pendingModuleGraphUpdate_.then(function(){Z(-1,f)}):Z(-1,f)},g)};
_.d9j=function(c,f,d,q,Z){Z=Z===void 0?f:Z;var M=f.length,g=function(){M=0;c.onload=null;c.onerror=null;O=function(){}},O=function(){g();
var m=Z.filter(function(H){return!zD().getModuleInfo(H).isLoaded()});
m.length!==0?q(m,"Response was successful but was missing module(s) "+m+"."):d()},l=function(){M--;
M==0&&O()};
f.forEach(function(m){m=zD().getModuleInfo(m);m.isLoaded()?l():(N2T(m.earlyOnloadCallbacks_,l),Izv(m,l))});
c.onload=function(){return O()};
c.onerror=function(){g();q(f)}};
ono=function(c){c.requestedModuleListSorted_||(c.requestedModuleListSorted_=!0,c.requestedModuleList_.sort());return c.requestedModuleList_};
GcK=function(c){c=c.loadedCssModuleList_;c.sort();return c};
piH=function(c,f){return f.filter(function(d){return!c.requestedModuleMap_[d]})};
xTo=function(c,f,d,q){if(c.pendingModuleGraphUpdate_)return c.pendingModuleGraphUpdate_.then(function(){xTo(c,f,d,q)}),!0;
if(!c.useNegativeLoading_){var Z=[],M=Object.assign({},c.requestedModuleMap_);jc3(c,f,function(H){Z.push(H.getId())},q,function(H){return!H.isLoaded()},M);
f=Z}for(M=0;M<f.length;){for(var g=f.length-M,O=M==0?f:f.slice(M,f.length),l=cQy(c,O,q),m=_.Kq(l).toString();m.length>c.urlMaxLength;)if(g>1)g-=Math.ceil((m.length-c.urlMaxLength)/6),g=Math.max(g,1),O=f.slice(M,M+g),l=cQy(c,O,q),m=_.Kq(l).toString();else return c.useNegativeLoading_?(c.useNegativeLoading_=!1,c.pendingModuleGraphUpdate_=qXT(c).then(function(H){ZZo(c,H,q)}),xTo(c,f.slice(M),d,q)):!1;
M+=g;c.useNegativeLoading_?d(l,O):d(l,O,M===f.length?f:[])}return!0};
ZZo=function(c,f,d){zD().setAllModuleInfoString((f||{}).moduleGraph);jc3(c,ono(c),function(q){_.Dn(c,[q.getId()])},d);
c.pendingModuleGraphUpdate_=null};
jc3=function(c,f,d,q,Z,M){M=M===void 0?{}:M;var g=zD();f=_.C(f);for(var O=f.next();!O.done;O=f.next()){O=O.value;var l=g.getModuleInfo(O);if(!(M[O]||Z&&!Z(l))){M[O]=!0;var m=l.deps_||[];if(q){var H=[];q[O]&&(H=Object.keys(q[O]));m=m.concat(H)}jc3(c,m,d,q,Z,M);d(l)}}};
qXT=function(c){c=c.scsReferenceUrl_.clone();MA_(c);K0(c,"dg",null);K0(c,"md","1");return yij(c.toString())};var TBe=new Uint8Array(123);var MOH=[];var rQu=function(){this.JSC$9998_loader_=null};
_.r=rQu.prototype;_.r.setBatchModeEnabled=function(){};
_.r.setAllModuleInfoString=function(){};
_.r.addExtraEdge=function(){throw Error("pd");};
_.r.removeExtraEdge=function(){throw Error("qd");};
_.r.getModuleContext=function(){return null};
_.r.isActive=function(){return!1};
_.r.isUserActive=function(){return!1};
_.r.registerCallback=function(){};var I$=function(c,f,d,q,Z){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.name="ModuleLoadFailure";this.type=c;this.status=f;this.requestedModuleIds=d;this.url=q;this.cause=Z;this.message=this.toString()};
_.K(I$,Error);I$.prototype.toString=function(){return ClO(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var ClO=function(c){switch(c.type){case I$.Type.UNAUTHORIZED:return"Unauthorized";case I$.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case I$.Type.TIMEOUT:return"Timed out";case I$.Type.OLD_CODE_GONE:return"Out of date module id";case I$.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+c.type}};
q6.ModuleLoadFailure=I$;q6.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Pa=function(){this.moduleIds_=this.JSC$9998_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10937_extraEdges_={};this.JSC$10937_callbackMap_={};this.JSC$10937_currentlyLoadingModule_=this.baseModuleInfo_=new Wa([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Rp;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.rn(Pa,rQu);var gtF=function(c,f){_.cN.call(this,"Error loading "+c+": "+f)};
_.rn(gtF,_.cN);Pa.prototype.setBatchModeEnabled=function(c){this.batchModeEnabled_=c};
Pa.prototype.setAllModuleInfoString=function(c,f){if(!(this instanceof Pa))this.setAllModuleInfoString(c,f);else if(typeof c==="string"){if(c.startsWith("d$")){c=c.substring(2);for(var d=[],q=0,Z=c.indexOf("/"),M=0,g=!1,O=0;;){var l=g?c.substring(M):c.substring(M,Z);if(l.length===0)q++,M="sy"+q.toString(36),l=[];else{var m=l.indexOf(":");if(m<0)M=l,l=[];else if(m===l.length-1)M=l.substring(0,m),l=Array(d[O-1]);else{M=l.substring(0,m);l=l.substring(m+1).split(",");m=O;for(var H=0;H<l.length;H++)m-=
l[H].length===0?1:Number(l[H]),l[H]=d[m]}m=0;if(M.length===0)m=1;else if(M.charAt(0)==="+"||M.charAt(0)==="-")m=Number(M);m!==0&&(q+=m,M="sy"+q.toString(36))}d.push(M);ki3(this,M,l);if(g)break;M=Z+1;Z=c.indexOf("/",M);Z===-1&&(g=!0);O++}this.moduleIds_=d}else if(c.startsWith("p$"))OZF(this,c);else{c=c.split("/");d=[];for(q=0;q<c.length;q++){O=c[q].split(":");Z=O[0];g=[];if(O[1])for(g=O[1].split(","),O=0;O<g.length;O++)g[O]=d[parseInt(g[O],36)];d.push(Z);ki3(this,Z,g)}this.moduleIds_=d}f&&f.length?
(_.D4(this.loadingModuleIds_,f),this.lastInitialModuleId_=_.zY(f)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10937_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10937_currentlyLoadingModule_=null,(f=this.baseModuleInfo_.onLoad((0,_.n1)(this.getModuleContext,this)))&&f.length&&lr_(this,new q6.ModuleLoadFailure(q6.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,f[0])),R$(this))}};
var OZF=function(c,f){var d=f.substring(2);for(f=0;f<64;f++)TBe["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(f)]=f;var q={buf:d,pos:0};Md(q);var Z=Md(q),M=Md(q)+1;f=Array(Z);var g=Array(Z),O=Array(Z);M=Array(M);var l=0,m=0,H=q.pos,A=q.buf.indexOf("|",q.pos);q.pos=A+1;for(A=0;A<Z;A++){var Y=Md(q),t=Y&2,E=Y&1;Y>>>=2;E?(l+=Y>>>1^-(Y&1),Y="sy"+l.toString(36)):(E=H,H+=Y,Y=d.substring(E,H));f[A]=Y;t&&(M[m++]=Y)}M[m]="";q.pos++;m=Z&-2;d=Z&1;for(l=0;l<m;l+=2)H=mCN(q),O[l]=
H&7,O[l+1]=H>>>3&7;d&&(d=mCN(q),O[m]=d&7);q.pos++;for(m=0;m<Z;m++)O[m]===7&&(O[m]=Md(q));q.pos++;for(d=m=0;d<Z;d++){l=O[d];H=l===0?MOH:Array(l);g[d]=H;A=m;for(t=0;t<l;t++)A-=Md(q),H[t]=M[A];M[m]===f[d]&&m++}for(q=0;q<f.length;q++)ki3(c,f[q],g[q]);c.moduleIds_=f};
_.r=Pa.prototype;_.r.getModuleInfo=function(c){return this.moduleInfoMap[c]};
_.r.addExtraEdge=function(c,f){var d=this.getModuleInfo(c);d&&d.isLoaded()?this.load(f):(this.JSC$10937_extraEdges_[c]||(this.JSC$10937_extraEdges_[c]={}),this.JSC$10937_extraEdges_[c][f]=!0)};
_.r.removeExtraEdge=function(c,f){if(this.JSC$10937_extraEdges_[c]){delete this.JSC$10937_extraEdges_[c][f];for(var d in this.JSC$10937_extraEdges_[c])return;delete this.JSC$10937_extraEdges_[c]}};
_.r.isActive=function(){return this.loadingModuleIds_.length>0};
_.r.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var R$=function(c){var f=c.lastActive_,d=c.isActive();d!=f&&(c.executeCallbacks_(d?"active":"idle"),c.lastActive_=d);f=c.isUserActive();f!=c.userLastActive_&&(c.executeCallbacks_(f?"userActive":"userIdle"),c.userLastActive_=f)},ki3=function(c,f,d){c.moduleInfoMap[f]?(c=c.moduleInfoMap[f].deps_,c!=d&&c.splice.apply(c,[0,
c.length].concat(_.LT(d)))):c.moduleInfoMap[f]=new Wa(d,f)},BSO=function(c,f,d){var q=[];
nl4(f,q);f=[];for(var Z={},M=0;M<q.length;M++){var g=q[M],O=c.getModuleInfo(g);if(!O)throw Error("rd`"+g);var l=new Rp;Z[g]=l;O.isLoaded()?l.callback(null):(scF(c,g,O,!!d,l),c.isModuleLoading(g)||f.push(g))}f.length>0&&(c.loadingModuleIds_.length===0?c.loadModules_(f):(c.requestedModuleIdsQueue_.push(f),R$(c)));return Z},scF=function(c,f,d,q,Z){d.registerCallback(Z.callback,Z);
Izv(d,function(M){Z.errback(new gtF(f,M))});
c.isModuleLoading(f)?q&&(iZr(c,f),R$(c)):q&&iZr(c,f)};
Pa.prototype.loadModules_=function(c,f,d){var q=this;f||(this.consecutiveFailures_=0);var Z=TS3(this,c);this.loadingModuleIds_=Z;this.requestedLoadingModuleIds_=this.batchModeEnabled_?c:_.yn(Z);R$(this);if(Z.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Z);if(Object.keys(this.JSC$10937_extraEdges_).length>0&&!this.JSC$9998_loader_.supportsExtraEdges)throw Error("sd");c=(0,_.n1)(this.JSC$9998_loader_.JSC$10924_loadModules,this.JSC$9998_loader_,_.yn(Z),this.moduleInfoMap,
{extraEdges:this.JSC$10937_extraEdges_,forceReload:!!d,onError:function(M,g){var O=q.requestedLoadingModuleIds_;M=M!=null?M:void 0;q.consecutiveFailures_++;var l=_.yn(Z);q.requestedLoadingModuleIds_=O;Z.forEach(_.Yt(_.wz,q.requestedModuleIds_),q);M==401?(lr_(q,new q6.ModuleLoadFailure(q6.ModuleLoadFailure.Type.UNAUTHORIZED,M)),q.requestedModuleIdsQueue_.length=0):M==410?(m9r(q,new q6.ModuleLoadFailure(q6.ModuleLoadFailure.Type.OLD_CODE_GONE,M)),HZy(q)):q.consecutiveFailures_>=3?(m9r(q,new q6.ModuleLoadFailure(q6.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
M,l,g)),HZy(q)):q.loadModules_(q.requestedLoadingModuleIds_,!0,M==8001||!1)},
onTimeout:(0,_.n1)(this.handleLoadTimeout_,this)});(f=Math.pow(this.consecutiveFailures_,2)*5E3)?_.dz.setTimeout(c,f):c()}};
var TS3=function(c,f){f=f.filter(function(Z){return c.moduleInfoMap[Z].isLoaded()?(_.dz.setTimeout(function(){return Error("td`"+Z)},0),!1):!0});
for(var d=[],q=0;q<f.length;q++)d=d.concat(AQ3(c,f[q]));nl4(d);return!c.batchModeEnabled_&&d.length>1?(f=d.shift(),c.requestedModuleIdsQueue_=d.map(function(Z){return[Z]}).concat(c.requestedModuleIdsQueue_),[f]):d},AQ3=function(c,f){var d=_.zV.createSet(c.requestedModuleIds_),q=[];
d[f]||q.push(f);f=[f];for(var Z=0;Z<f.length;Z++)for(var M=c.getModuleInfo(f[Z]).deps_,g=M.length-1;g>=0;g--){var O=M[g];c.getModuleInfo(O).isLoaded()||d[O]||(q.push(O),f.push(O))}q.reverse();nl4(q);return q};
Pa.prototype.JSC$10932_setLoaded=function(){if(this.JSC$10937_currentlyLoadingModule_){var c=this.JSC$10937_currentlyLoadingModule_.getId(),f=[];if(this.JSC$10937_extraEdges_[c]){for(var d=_.C(Object.keys(this.JSC$10937_extraEdges_[c])),q=d.next();!q.done;q=d.next()){q=q.value;var Z=this.getModuleInfo(q);Z&&!Z.isLoaded()&&(this.removeExtraEdge(c,q),f.push(q))}this.loadMultiple(f)}this.isDisposed()||((f=this.moduleInfoMap[c].onLoad((0,_.n1)(this.getModuleContext,this)))&&f.length&&lr_(this,new q6.ModuleLoadFailure(q6.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,f[0])),_.wz(this.userInitiatedLoadingModuleIds_,c),_.wz(this.loadingModuleIds_,c),this.loadingModuleIds_.length===0&&HZy(this),this.lastInitialModuleId_&&c==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),R$(this),this.JSC$10937_currentlyLoadingModule_=null)}};
Pa.prototype.isModuleLoading=function(c){if(_.hP(this.loadingModuleIds_,c))return!0;for(var f=0;f<this.requestedModuleIdsQueue_.length;f++)if(_.hP(this.requestedModuleIdsQueue_[f],c))return!0;return!1};
Pa.prototype.load=function(c,f){return BSO(this,[c],f)[c]};
Pa.prototype.loadMultiple=function(c){return BSO(this,c)};
var iZr=function(c,f){_.hP(c.userInitiatedLoadingModuleIds_,f)||c.userInitiatedLoadingModuleIds_.push(f)};
Pa.prototype.beforeLoadModuleCode=function(c){var f=this;this.JSC$10937_currentlyLoadingModule_&&this.JSC$10937_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10932_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[c]&&YX_(this,this.moduleInfoMap[c].deps_||[],function(d){d.module_=new yK;_.wz(f.loadingModuleIds_,d.getId())},function(d){return!d.isLoaded()});
this.JSC$10937_currentlyLoadingModule_=this.getModuleInfo(c)};
Pa.prototype.handleLoadTimeout_=function(){m9r(this,new q6.ModuleLoadFailure(q6.ModuleLoadFailure.Type.TIMEOUT));HZy(this)};
var m9r=function(c,f){c.requestedLoadingModuleIds_.length>1?c.requestedModuleIdsQueue_=c.requestedLoadingModuleIds_.map(function(d){return[d]}).concat(c.requestedModuleIdsQueue_):lr_(c,f)},lr_=function(c,f){var d=c.requestedLoadingModuleIds_;
c.loadingModuleIds_.length=0;for(var q=[],Z=0;Z<c.requestedModuleIdsQueue_.length;Z++){var M=c.requestedModuleIdsQueue_[Z].filter(function(l){var m=AQ3(this,l);return R7(d,function(H){return _.hP(m,H)})},c);
_.D4(q,M)}for(Z=0;Z<d.length;Z++)_.tMk(q,d[Z]);for(Z=0;Z<q.length;Z++){for(M=0;M<c.requestedModuleIdsQueue_.length;M++)_.wz(c.requestedModuleIdsQueue_[M],q[Z]);_.wz(c.userInitiatedLoadingModuleIds_,q[Z])}if(Z=c.JSC$10937_callbackMap_.error)for(M=0;M<Z.length;M++)for(var g=Z[M],O=0;O<q.length;O++)g("error",q[O],f);for(q=0;q<d.length;q++)if(c.moduleInfoMap[d[q]])c.moduleInfoMap[d[q]].onError(f);c.requestedLoadingModuleIds_.length=0;R$(c)},HZy=function(c){for(;c.requestedModuleIdsQueue_.length;){var f=
c.requestedModuleIdsQueue_.shift().filter(function(d){return!this.getModuleInfo(d).isLoaded()},c);
if(f.length>0){c.loadModules_(f);return}}R$(c)};
Pa.prototype.registerCallback=function(c,f){Array.isArray(c)||(c=[c]);for(var d=0;d<c.length;d++){var q=c[d],Z=f,M=this.JSC$10937_callbackMap_;M[q]||(M[q]=[]);M[q].push(Z)}};
Pa.prototype.executeCallbacks_=function(c){for(var f=this.JSC$10937_callbackMap_[c],d=0;f&&d<f.length;d++)f[d](c)};
var YX_=function(c,f,d,q,Z){q=q===void 0?function(){return!0}:q;
Z=Z===void 0?{}:Z;f=_.C(f);for(var M=f.next();!M.done;M=f.next()){M=M.value;var g=c.getModuleInfo(M);!Z[M]&&q(g)&&(Z[M]=!0,YX_(c,g.deps_||[],d,q,Z),d(g))}};
Pa.prototype.dispose=function(){_.cu(_.zV.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10937_callbackMap_={};this.isDisposed_=!0};
Pa.prototype.isDisposed=function(){return this.isDisposed_};
_.L1=function(){return new Pa};var FnH=[5E3,2E4],tOH=function(){this.JSC$9998_loader_=null;this.JSC$10945_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10945_queue_=[];this.JSC$10945_extraEdges_=Object.create(null);this.JSC$10945_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.K(tOH,rQu);_.r=tOH.prototype;_.r.setAllModuleInfoString=function(){this.JSC$10945_currentlyLoadingModule_&&this.JSC$10945_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10932_setLoaded()};
_.r.getModuleInfo=function(c){var f=this.JSC$10945_moduleInfoMap_[c];f||(f=new Wa([],c),this.JSC$10945_moduleInfoMap_[c]=f);return f};
_.r.addExtraEdge=function(c,f){this.getModuleInfo(c).isLoaded()?this.load(f):(this.JSC$10945_extraEdges_[c]||(this.JSC$10945_extraEdges_[c]={}),this.JSC$10945_extraEdges_[c][f]=!0)};
_.r.removeExtraEdge=function(c,f){if(this.JSC$10945_extraEdges_[c]){delete this.JSC$10945_extraEdges_[c][f];for(var d in this.JSC$10945_extraEdges_[c])return;delete this.JSC$10945_extraEdges_[c]}};
_.r.isModuleLoading=function(c){return!!this.loadingModules_[c]};
_.r.load=function(c){bZ3(this,[c]);return Knj(this,c)};
_.r.loadMultiple=function(c){var f=this,d=Object.create(null),q=[];c.forEach(function(Z){d[Z]||(d[Z]=Knj(f,Z),q.push(Z))});
bZ3(this,q);return d};
_.r.beforeLoadModuleCode=function(c){var f;((f=this.JSC$10945_currentlyLoadingModule_)==null?void 0:f.getId())==="synthetic_module_overhead"&&this.JSC$10932_setLoaded();var d,q;EtF(this,(q=(d=this.JSC$10945_moduleInfoMap_[c])==null?void 0:d.deps_)!=null?q:[],function(Z){Z.module_=new yK},function(Z){return!Z.isLoaded()});
this.JSC$10945_currentlyLoadingModule_=this.getModuleInfo(c)};
_.r.JSC$10932_setLoaded=function(){if(this.JSC$10945_currentlyLoadingModule_){var c=this.JSC$10945_currentlyLoadingModule_.getId(),f=[];if(this.JSC$10945_extraEdges_[c]){for(var d=_.C(Object.keys(this.JSC$10945_extraEdges_[c])),q=d.next();!q.done;q=d.next())q=q.value,this.getModuleInfo(q).isLoaded()||(this.removeExtraEdge(c,q),f.push(q));this.loadMultiple(f)}this.JSC$10945_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10945_currentlyLoadingModule_=null;(!this.isModuleLoading(c)&&/^sy[0-9a-z]{0,4}$/.test(c)||c==="synthetic_module_overhead")&&delete this.JSC$10945_moduleInfoMap_[c];this.unsetModulesAsLoading(c)}};
_.r.setModulesAsLoading=function(){var c=this;_.hv.apply(0,arguments).forEach(function(f){c.loadingModules_[f]=!0})};
_.r.unsetModulesAsLoading=function(){var c=this;_.hv.apply(0,arguments).forEach(function(f){delete c.loadingModules_[f]})};
var Knj=function(c,f){return new _.i6(function(d,q){var Z=c.getModuleInfo(f);Z.isLoaded()?d(null):(Z.registerCallback(function(){d(null)}),Izv(Z,function(M){var g="Error loading "+f+": "+M;
M instanceof q6.ModuleLoadFailure&&M.url&&(g=g+", requested url: "+M.url.toString());q(Error(g))}))})},bZ3=function(c,f){f=f.filter(function(d){return!c.isModuleLoading(d)&&!c.getModuleInfo(d).isLoaded()});
f.length>0&&(c.setModulesAsLoading.apply(c,_.LT(f)),c.JSC$10945_queue_.push(f),nt_(c))},nt_=function(c){for(var f={};c.activeLoads_<Infinity&&c.JSC$10945_queue_.length>0;f={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})f.ids$jscomp$36=c.JSC$10945_queue_.shift().filter(function(d){return!c.getModuleInfo(d).isLoaded()}),f.ids$jscomp$36.length>0&&(c.activeLoads_++,f.finishLoad=function(d){return function(){c.activeLoads_--;
nt_(c);d.finishLoad=function(){}}}(f),_.$o(f.ids$jscomp$36.map(function(d){return Knj(c,d)})).then(function(d){return function(){(0,d.finishLoad)()}}(f)),f.attempt$jscomp$6=0,f.load$jscomp$1=function(d){return function(){if(Object.keys(c.JSC$10945_extraEdges_).length>0&&!c.JSC$9998_loader_.supportsExtraEdges)throw Error("sd");
c.JSC$9998_loader_.JSC$10924_loadModules(d.ids$jscomp$36,c.JSC$10945_moduleInfoMap_,{extraEdges:c.JSC$10945_extraEdges_,onError:function(q,Z){var M=FnH[d.attempt$jscomp$6++];M!==void 0?setTimeout(function(){(0,d.load$jscomp$1)()},M):(c.unsetModulesAsLoading.apply(c,_.LT(d.ids$jscomp$36)),(0,d.finishLoad)(),d.ids$jscomp$36.forEach(function(g){g=c.getModuleInfo(g);
if(!g.isLoaded())g.onError(new q6.ModuleLoadFailure(q6.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,q,d.ids$jscomp$36,Z))}))}})}}(f),(0,f.load$jscomp$1)())},EtF=function(c,f,d,q,Z){q=q===void 0?function(){return!0}:q;
Z=Z===void 0?{}:Z;f=_.C(f);for(var M=f.next();!M.done;M=f.next()){M=M.value;var g=c.getModuleInfo(M);!Z[M]&&q(g)&&(Z[M]=!0,EtF(c,g.deps_||[],d,q,Z),d(g))}};var $9F=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var A9h=Symbol("vd");window.JSCompiler_renameProperty=function(c){return c};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Qcv=!$9F||HTMLElement.es5Shimmed||_.dz.Reflect===void 0||_.dz.customElements===void 0||_.dz.customElements.polyfillWrapFlushCallback||!1,SX3,RZk=function(){var c=HTMLElement;if(Qcv)return c;if(SX3!==void 0)return SX3;var f=_.dz.Reflect,d=function(){return f.construct(c,[],this.constructor)};
d.prototype=c.prototype;d.prototype.constructor=d;d.es5Shimmed=!0;Object.setPrototypeOf(d,c);return SX3=d},LnH=!1;Qcv||LnH||(LnH=!0,_.dz.HTMLElement=RZk());/*

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 KoM=/(url\()([^)]*)(\))/g,t4G=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,bOk,ru;var yg=!window.ShadyDOM||!window.ShadyDOM.inUse,z5_=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),JQO=!window.customElements.polyfillWrapFlushCallback,arr;if(arr=yg&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var VOo=new CSSStyleSheet;VOo.replaceSync("");var XOv=document.createElement("div");XOv.attachShadow({mode:"open"});XOv.shadowRoot.adoptedStyleSheets=[VOo];arr=XOv.shadowRoot.adoptedStyleSheets[0]===VOo}catch(c){arr=!1}
var ut_=arr,vtK=window.Polymer&&window.Polymer.rootPath||nsY(document.baseURI||window.location.href),Fs=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,VJN=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Nd=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,h5F=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,wu=window.Polymer&&window.Polymer.legacyOptimizations||!1,eR=window.Polymer&&window.Polymer.legacyWarnings||!1,wOH=window.Polymer&&window.Polymer.syncInitialRender||
!1,bW=window.Polymer&&window.Polymer.legacyUndefined||!1,yQO=window.Polymer&&window.Polymer.orderedComputed||!1,U4=window.Polymer&&window.Polymer.removeNestedTemplates||!1,pi=window.Polymer&&window.Polymer.fastDomIf||!1,x3=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Wn3=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,D93=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var o$={},e5K={},$D=function(){return HTMLElement.apply(this,arguments)||this};
_.K($D,HTMLElement);$D.import=function(c,f){return c?(c=o$[c]||e5K[c.toLowerCase()])&&f?c.querySelector(f):c:null};
$D.prototype.attributeChangedCallback=function(c,f,d){f!==d&&this.register()};
$D.prototype.register=function(c){if(c=c||this.id){if(Nd&&(o$[c]||e5K[c.toLowerCase()])!==void 0)throw o$[c]=e5K[c.toLowerCase()]=null,Error("wd`"+c);this.id=c;o$[c]=e5K[c.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.ci.Object.defineProperties($D.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var c=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;c=_.Ch(this.getAttribute("assetpath")||"",c.baseURI);this.__assetpath=nsY(c)}return this.__assetpath}}});
_.ci.Object.defineProperties($D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
$D["import"]=$D.import;$D.prototype.modules=o$;customElements.define("dom-module",$D);var NS_=0,Q9Y=0,gu=[],Irv=0,$CP=!1,Plv=document.createTextNode(""),R5F,vW;(new window.MutationObserver(Soh)).observe(Plv,{characterData:!0});_.GN={after:function(c){return{run:function(f){return window.setTimeout(f,c)},
cancel:function(f){window.clearTimeout(f)}}},
run:function(c,f){return window.setTimeout(c,f)},
cancel:function(c){window.clearTimeout(c)}};
_.zu={run:function(c){return window.requestAnimationFrame(c)},
cancel:function(c){window.cancelAnimationFrame(c)}};
R5F={run:function(c){return window.requestIdleCallback?window.requestIdleCallback(c):window.setTimeout(c,16)},
cancel:function(c){window.cancelIdleCallback?window.cancelIdleCallback(c):window.clearTimeout(c)}};
vW={run:function(c){$CP||($CP=!0,Plv.textContent=Irv++);gu.push(c);return NS_++},
cancel:function(c){var f=c-Q9Y;if(f>=0){if(!gu[f])throw Error("xd`"+c);gu[f]=null}}};var U9T=0,cd=function(c){var f=c.__mixinApplications;f||(f=new WeakMap,c.__mixinApplications=f);var d=U9T++;return function(q){var Z=q.__mixinSet;if(Z&&Z[d])return q;var M=f,g=M.get(q);g||(g=c(q),M.set(q,g),q=Object.create(g.__mixinSet||Z||null),q[d]=!0,g.__mixinSet=q);return g}};_.YD=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(c){return ShadyDOM.patch(c)}:function(c){return c};var pOH=cd(function(c){var f=function(){var d=c.call(this)||this;d.__dataEnabled=!1;d.__dataReady=!1;d.__dataInvalid=!1;d.__data={};d.__dataPending=null;d.__dataOld=null;d.__dataInstanceProps=null;d.__dataCounter=0;d.__serializing=!1;d._initializeProperties();return d};
_.K(f,c);f.createProperties=function(d){var q=this.prototype,Z;for(Z in d)Z in q||q._createPropertyAccessor(Z)};
f.attributeNameForProperty=function(d){return d.toLowerCase()};
f.typeForProperty=function(){};
f.prototype._createPropertyAccessor=function(d,q){this._addPropertyToAttributeMap(d);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[d]||(this.__dataHasAccessor[d]=!0,this._definePropertyAccessor(d,q))};
f.prototype._addPropertyToAttributeMap=function(d){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var q=this.__dataAttributes[d];q||(q=this.constructor.attributeNameForProperty(d),this.__dataAttributes[q]=d);return q};
f.prototype._definePropertyAccessor=function(d,q){Object.defineProperty(this,d,{get:function(){return this.__data[d]},
set:q?function(){}:function(Z){this._setPendingProperty(d,Z,!0)&&this._invalidateProperties()}})};
f.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
f.prototype._initializeProperties=function(){for(var d in this.__dataHasAccessor)this.hasOwnProperty(d)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[d]=this[d],delete this[d])};
f.prototype._initializeInstanceProperties=function(d){Object.assign(this,d)};
f.prototype._setProperty=function(d,q){this._setPendingProperty(d,q)&&this._invalidateProperties()};
f.prototype._getProperty=function(d){return this.__data[d]};
f.prototype._setPendingProperty=function(d,q){var Z=this.__data[d],M=this._shouldPropertyChange(d,q,Z);M&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||d in this.__dataOld||(this.__dataOld[d]=Z),this.__data[d]=q,this.__dataPending[d]=q);return M};
f.prototype._isPropertyPending=function(d){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(d))};
f.prototype._invalidateProperties=function(){var d=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,vW.run(function(){d.__dataInvalid&&(d.__dataInvalid=!1,d._flushProperties())}))};
f.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
f.prototype._flushProperties=function(){this.__dataCounter++;var d=this.__data,q=this.__dataPending,Z=this.__dataOld;this._shouldPropertiesChange(d,q,Z)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(d,q,Z));this.__dataCounter--};
f.prototype._shouldPropertiesChange=function(d,q){return!!q};
f.prototype._propertiesChanged=function(){};
f.prototype._shouldPropertyChange=function(d,q,Z){return Z!==q&&(Z===Z||q===q)};
f.prototype.attributeChangedCallback=function(d,q,Z,M){q!==Z&&this._attributeToProperty(d,Z);c.prototype.attributeChangedCallback&&c.prototype.attributeChangedCallback.call(this,d,q,Z,M)};
f.prototype._attributeToProperty=function(d,q,Z){if(!this.__serializing){var M=this.__dataAttributes;d=M&&M[d]||d;this[d]=this._deserializeValue(q,Z||this.constructor.typeForProperty(d))}};
f.prototype._propertyToAttribute=function(d,q,Z){this.__serializing=!0;Z=arguments.length<3?this[d]:Z;this._valueToNodeAttribute(this,Z,q||this.constructor.attributeNameForProperty(d));this.__serializing=!1};
f.prototype._valueToNodeAttribute=function(d,q,Z){q=this._serializeValue(q);if(Z==="class"||Z==="name"||Z==="slot")d=(0,_.YD)(d);q===void 0?d.removeAttribute(Z):d.setAttribute(Z,q===""&&window.trustedTypes?window.trustedTypes.emptyScript:q)};
f.prototype._serializeValue=function(d){switch(typeof d){case "boolean":return d?"":void 0;default:return d!=null?d.toString():void 0}};
f.prototype._deserializeValue=function(d,q){switch(q){case Boolean:return d!==null;case Number:return Number(d);default:return d}};
return f});var x9F=0,Loh=[];var otj=cd(function(c){function f(M){M=Object.getPrototypeOf(M);return M.prototype instanceof Z?M:null}
function d(M){if(!M.hasOwnProperty("__ownProperties")){var g=null;if(M.hasOwnProperty("properties")){var O=M.properties;if(O){g={};for(var l in O){var m=O[l];g[l]=typeof m==="function"?{type:m}:m}}}M.__ownProperties=g}return M.__ownProperties}
var q=pOH(c),Z=function(){return q.apply(this,arguments)||this};
_.K(Z,q);Z.finalize=function(){if(!this.hasOwnProperty("__finalized")){var M=f(this);M&&M.finalize();this.__finalized=!0;this._finalizeClass()}};
Z._finalizeClass=function(){var M=d(this);M&&this.createProperties(M)};
Z.typeForProperty=function(M){return(M=this._properties[M])&&M.type};
Z.prototype._initializeProperties=function(){x9F++;this.constructor.finalize();q.prototype._initializeProperties.call(this)};
Z.prototype.connectedCallback=function(){q.prototype.connectedCallback&&q.prototype.connectedCallback.call(this);this._enableProperties()};
Z.prototype.disconnectedCallback=function(){q.prototype.disconnectedCallback&&q.prototype.disconnectedCallback.call(this)};
_.ci.Object.defineProperties(Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var M=this;if(!this.hasOwnProperty("__observedAttributes")){zaP(this.prototype);var g=this._properties;this.__observedAttributes=g?Object.keys(g).map(function(O){return M.prototype._addPropertyToAttributeMap(O)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var M=f(this);this.__properties=Object.assign({},M&&M._properties,d(this))}return this.__properties}}});
return Z});var J9Y={},aLh=/-[a-z]/g,V4N=/([A-Z])/g;for(var Gi_={},cEo=HTMLElement.prototype;cEo;){for(var f8K=Object.getOwnPropertyNames(cEo),d$T=0;d$T<f8K.length;d$T++)Gi_[f8K[d$T]]=!0;cEo=Object.getPrototypeOf(cEo)}var jno=window.trustedTypes?function(c){return trustedTypes.isHTML(c)||trustedTypes.isScript(c)||trustedTypes.isScriptURL(c)}:function(){return!1},qxy=cd(function(c){var f=pOH(c);
c=function(){return f.apply(this,arguments)||this};
_.K(c,f);c.createPropertiesForAttributes=function(){for(var d=this.observedAttributes,q=0;q<d.length;q++)this.prototype._createPropertyAccessor(kD(d[q]))};
c.attributeNameForProperty=function(d){return Ou(d)};
c.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);f.prototype._initializeProperties.call(this)};
c.prototype._initializeProtoProperties=function(d){for(var q in d)this._setProperty(q,d[q])};
c.prototype._ensureAttribute=function(d,q){this.hasAttribute(d)||this._valueToNodeAttribute(this,q,d)};
c.prototype._serializeValue=function(d){switch(typeof d){case "object":if(d instanceof Date)return d.toString();if(d){if(jno(d))return d;try{return JSON.stringify(d)}catch(q){return""}}default:return f.prototype._serializeValue.call(this,d)}};
c.prototype._deserializeValue=function(d,q){switch(q){case Object:try{var Z=JSON.parse(d)}catch(M){Z=d}break;case Array:try{Z=JSON.parse(d)}catch(M){Z=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+d)}break;case Date:Z=isNaN(d)?String(d):Number(d);Z=new Date(Z);break;default:Z=f.prototype._deserializeValue.call(this,d,q)}return Z};
c.prototype._definePropertyAccessor=function(d,q){if(!Gi_[d]){var Z=this[d];Z!==void 0&&(this.__data?this._setPendingProperty(d,Z):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[d]=Z))}f.prototype._definePropertyAccessor.call(this,d,q)};
c.prototype._hasAccessor=function(d){return this.__dataHasAccessor&&this.__dataHasAccessor[d]};
c.prototype._isPropertyPending=function(d){return!!(this.__dataPending&&d in this.__dataPending)};
return c});var ZC3={"dom-if":!0,"dom-repeat":!0},MUH=!1,rET=!1,CIH=function(){var c=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(f){return f}});
return function(f,d,q){d=d.getAttribute(q);c&&q.startsWith("on-")?f.setAttribute(q,c.createScript(d,q)):f.setAttribute(q,d)}}(),gC3=cd(function(c){var f=function(){return c.apply(this,arguments)||this};
_.K(f,c);f._parseTemplate=function(d,q){if(!d._templateInfo){var Z=d._templateInfo={};Z.nodeInfoList=[];Z.nestedTemplate=!!q;Z.stripWhiteSpace=q&&q.stripWhiteSpace||d.hasAttribute&&d.hasAttribute("strip-whitespace");this._parseTemplateContent(d,Z,{parent:null})}return d._templateInfo};
f._parseTemplateContent=function(d,q,Z){return this._parseTemplateNode(d.content,q,Z)};
f._parseTemplateNode=function(d,q,Z){var M=!1;d.localName!="template"||d.hasAttribute("preserve-content")?d.localName==="slot"&&(q.hasInsertionPoint=!0):M=this._parseTemplateNestedTemplate(d,q,Z)||M;if(!MUH){MUH=!0;var g=document.createElement("textarea");g.placeholder="a";rET=g.placeholder===g.textContent}rET&&d.localName==="textarea"&&d.placeholder&&d.placeholder===d.textContent&&(d.textContent=null);d.firstChild&&this._parseTemplateChildNodes(d,q,Z);d.hasAttributes&&d.hasAttributes()&&(M=this._parseTemplateNodeAttributes(d,
q,Z)||M);return M||Z.noted};
f._parseTemplateChildNodes=function(d,q,Z){if(d.localName!=="script"&&d.localName!=="style")for(var M=d.firstChild,g=0,O;M;M=O){if(M.localName=="template"){var l=M.getAttribute("is");if(l&&ZC3[l])for(O=M,O.removeAttribute("is"),M=O.ownerDocument.createElement(l),O.parentNode.replaceChild(M,O),M.appendChild(O);O.attributes.length;)l=O.attributes[0].name,CIH(M,O,l),O.removeAttribute(l)}O=M.nextSibling;if(M.nodeType===Node.TEXT_NODE){for(l=O;l&&l.nodeType===Node.TEXT_NODE;)M.textContent+=l.textContent,
O=l.nextSibling,d.removeChild(l),l=O;if(q.stripWhiteSpace&&!M.textContent.trim()){d.removeChild(M);continue}}l={parentIndex:g,parentInfo:Z};this._parseTemplateNode(M,q,l)&&(l.infoIndex=q.nodeInfoList.push(l)-1);M.parentNode&&g++}};
f._parseTemplateNestedTemplate=function(d,q,Z){q=this._parseTemplate(d,q);(q.content=d.content.ownerDocument.createDocumentFragment()).appendChild(d.content);Z.templateInfo=q;return!0};
f._parseTemplateNodeAttributes=function(d,q,Z){for(var M=!1,g=Array.from(d.attributes),O=g.length-1,l;l=g[O];O--)M=this._parseTemplateNodeAttribute(d,q,Z,l.name,l.value)||M;return M};
f._parseTemplateNodeAttribute=function(d,q,Z,M,g){return M.slice(0,3)==="on-"?(d.removeAttribute(M),Z.events=Z.events||[],Z.events.push({name:M.slice(3),value:g}),!0):M==="id"?(Z.id=g,!0):!1};
f._contentForTemplate=function(d){var q=d._templateInfo;return q&&q.content||d.content};
f.prototype._stampTemplate=function(d,q){d&&!d.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(d);q=q||this.constructor._parseTemplate(d);var Z=q.nodeInfoList;d=document.importNode(q.content||d.content,!0);d.__noInsertionPoint=!q.hasInsertionPoint;var M=d.nodeList=Array(Z.length);d.$={};for(var g=0,O=Z.length,l=void 0;g<O&&(l=Z[g]);g++){var m=M[g]=XZe(d,l);l.id&&(d.$[l.id]=m);var H=m,A=l,Y=q;A.templateInfo&&(H._templateInfo=A.templateInfo,H._parentTemplateInfo=
Y);if(l.events&&l.events.length)for(H=0,A=l.events,Y=void 0;H<A.length&&(Y=A[H]);H++)this._addMethodEventListenerToNode(m,Y.name,Y.value,this)}return d};
f.prototype._addMethodEventListenerToNode=function(d,q,Z,M){Z=udN(M||d,Z);this._addEventListenerToNode(d,q,Z);return Z};
f.prototype._addEventListenerToNode=function(d,q,Z){d.addEventListener(q,Z)};
f.prototype._removeEventListenerFromNode=function(d,q,Z){d.removeEventListener(q,Z)};
return f});var HW=0,t8=[],khT={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},OC_=/[A-Z]/,l8j=function(c,f,d,q,Z){var M=Z?su(c):c;if(f=f[M])for(M=0;M<f.length;M++){var g=f[M];if(g.info.lastRun!==HW&&(!Z||DCk(c,g.trigger))){g.info.lastRun=HW;g=g.info;for(var O=d,l=q,m=0,H=O.length-1,A=-1;m<=H;){var Y=m+H>>1,t=l.get(O[Y].methodInfo)-l.get(g.methodInfo);if(t<0)m=Y+1;else if(t>0)H=Y-1;else{A=Y;break}}A<
0&&(A=H+1);O.splice(A,0,g)}}},q_l=[],snK=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"),dh=cd(function(c){var f=gC3(qxy(c));
c=function(){var d=f.call(this)||this;d.__isPropertyEffectsClient=!0;return d};
_.K(c,f);c.prototype._initializeProperties=function(){f.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};
c.prototype._registerHost=function(){if(f8.length){var d=f8[f8.length-1];d._enqueueClient(this);this.__dataHost=d}};
c.prototype._initializeProtoProperties=function(d){this.__data=Object.create(d);this.__dataPending=Object.create(d);this.__dataOld={}};
c.prototype._initializeInstanceProperties=function(d){var q=this.__readOnly,Z;for(Z in d)q&&q[Z]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Z]=this.__dataPending[Z]=d[Z])};
c.prototype._addPropertyEffect=function(d,q,Z){this._createPropertyAccessor(d,q=="__readOnly");var M=Wok(this,q,!0)[d];M||(M=this[q][d]=[]);M.push(Z)};
c.prototype._removePropertyEffect=function(d,q,Z){d=Wok(this,q,!0)[d];Z=d.indexOf(Z);Z>=0&&d.splice(Z,1)};
c.prototype._hasPropertyEffect=function(d,q){q=this[q];return!(!q||!q[d])};
c.prototype._hasReadOnlyEffect=function(d){return this._hasPropertyEffect(d,"__readOnly")};
c.prototype._hasNotifyEffect=function(d){return this._hasPropertyEffect(d,"__notifyEffects")};
c.prototype._hasReflectEffect=function(d){return this._hasPropertyEffect(d,"__reflectEffects")};
c.prototype._hasComputedEffect=function(d){return this._hasPropertyEffect(d,"__computeEffects")};
c.prototype._setPendingPropertyOrPath=function(d,q,Z,M){if(M||su(Array.isArray(d)?d[0]:d)!==d){if(!M&&(M=m4(this,d),d=y9r(this,d,q),!d||!f.prototype._shouldPropertyChange.call(this,d,q,M)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(d,q,Z)){if(Z=this.__dataLinkedPaths)for(var g in Z)M=Z[g],BW(g,d)?(M=iW(g,M,d),this._setPendingPropertyOrPath(M,q,!0,!0)):BW(M,d)&&(M=iW(M,g,d),this._setPendingPropertyOrPath(M,q,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[d])return this._setPendingProperty(d,
q,Z);this[d]=q}return!1};
c.prototype._setUnmanagedPropertyToNode=function(d,q,Z){if(Z!==d[q]||typeof Z=="object")q==="className"&&(d=(0,_.YD)(d)),d[q]=Z};
c.prototype._setPendingProperty=function(d,q,Z){var M=this.__dataHasPaths&&lW(d);if(this._shouldPropertyChange(d,q,(M?this.__dataTemp:this.__data)[d])){this.__dataPending||(this.__dataPending={},this.__dataOld={});d in this.__dataOld||(this.__dataOld[d]=this.__data[d]);M?this.__dataTemp[d]=q:this.__data[d]=q;this.__dataPending[d]=q;if(M||this.__notifyEffects&&this.__notifyEffects[d])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[d]=Z;return!0}return!1};
c.prototype._setProperty=function(d,q){this._setPendingProperty(d,q,!0)&&this._invalidateProperties()};
c.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
c.prototype._enqueueClient=function(d){this.__dataPendingClients=this.__dataPendingClients||[];d!==this&&this.__dataPendingClients.push(d)};
c.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
c.prototype.__enableOrFlushClients=function(){var d=this.__dataPendingClients;if(d){this.__dataPendingClients=null;for(var q=0;q<d.length;q++){var Z=d[q];Z.__dataEnabled?Z.__dataPending&&Z._flushProperties():Z._enableProperties()}}};
c.prototype._readyClients=function(){this.__enableOrFlushClients()};
c.prototype.setProperties=function(d,q){for(var Z in d)!q&&this.__readOnly&&this.__readOnly[Z]||this._setPendingPropertyOrPath(Z,d[Z],!0);this._invalidateProperties()};
c.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
c.prototype._propertiesChanged=function(d,q,Z){d=this.__dataHasPaths;this.__dataHasPaths=!1;var M;if(M=this.__computeEffects)if(yQO){HW++;var g=UCr(this),O=[],l;for(l in q)l8j(l,M,O,g,d);for(;l=O.shift();)xCe(this,"",q,Z,l)&&l8j(l.methodInfo,M,O,g,d);Object.assign(Z,this.__dataOld);Object.assign(q,this.__dataPending);this.__dataPending=null}else for(g=q;A8(this,M,g,Z,d);)Object.assign(Z,this.__dataOld),Object.assign(q,this.__dataPending),g=this.__dataPending,this.__dataPending=null;M=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(q,Z,d);this._flushClients();A8(this,this.__reflectEffects,q,Z,d);A8(this,this.__observeEffects,q,Z,d);if(M){g=this.__notifyEffects;O=HW++;for(var m in M)if(M[m]){if(l=g){var H=g;l=O;var A=m,Y=q,t=Z,E=d,J=!1,X=E?su(A):A;if(H=H[X]){X=0;for(var u=H.length,W=void 0;X<u&&(W=H[X]);X++)W.info&&W.info.lastRun===l||E&&!DCk(A,W.trigger)||(W.info&&(W.info.lastRun=l),W.fn(this,A,Y,t,W.info,E,void 0),J=!0)}l=J}if(l)var p=!0;else{if(l=d)l=m,A=q,Y=su(l),Y!==
l?(Y=Ou(Y)+"-changed",NBk(this,Y,A[l],l),l=!0):l=!1;l&&(p=!0)}}var N;p&&(N=this.__dataHost)&&N._invalidateProperties&&N._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
c.prototype._propagatePropertyChanges=function(d,q,Z){this.__propagateEffects&&A8(this,this.__propagateEffects,d,q,Z);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,d,q,Z)};
c.prototype._runEffectsForTemplate=function(d,q,Z,M){var g=this,O=function(l,m){A8(g,d.propertyEffects,l,Z,m,d.nodeList);for(var H=d.firstChild;H;H=H.nextSibling)g._runEffectsForTemplate(H,l,Z,m)};
d.runEffects?d.runEffects(O,q,M):O(q,M)};
c.prototype.linkPaths=function(d,q){d=TA(d);q=TA(q);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[d]=q};
c.prototype.unlinkPaths=function(d){d=TA(d);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[d]};
c.prototype.notifySplices=function(d,q){var Z={path:""};d=m4(this,d,Z);Cke(this,d,Z.path,q)};
c.prototype.get=function(d,q){return m4(q||this,d)};
c.prototype.set=function(d,q,Z){Z?y9r(Z,d,q):this.__readOnly&&this.__readOnly[d]||this._setPendingPropertyOrPath(d,q,!0)&&this._invalidateProperties()};
c.prototype.push=function(d){var q=_.hv.apply(1,arguments),Z={path:""},M=m4(this,d,Z),g=M.length,O=M.push.apply(M,_.LT(q));q.length&&nh(this,M,Z.path,g,q.length,[]);return O};
c.prototype.pop=function(d){var q={path:""};d=m4(this,d,q);var Z=!!d.length,M=d.pop();Z&&nh(this,d,q.path,d.length,0,[M]);return M};
c.prototype.splice=function(d,q,Z){var M=_.hv.apply(3,arguments),g={path:""},O=m4(this,d,g);q<0?q=O.length-Math.floor(-q):q&&(q=Math.floor(q));var l=arguments.length===2?O.splice(q):O.splice.apply(O,[q,Z].concat(_.LT(M)));(M.length||l.length)&&nh(this,O,g.path,q,M.length,l);return l};
c.prototype.shift=function(d){var q={path:""};d=m4(this,d,q);var Z=!!d.length,M=d.shift();Z&&nh(this,d,q.path,0,0,[M]);return M};
c.prototype.unshift=function(d){var q=_.hv.apply(1,arguments),Z={path:""},M=m4(this,d,Z),g=M.unshift.apply(M,_.LT(q));q.length&&nh(this,M,Z.path,0,q.length,[]);return g};
c.prototype.notifyPath=function(d,q){if(arguments.length==1){var Z={path:""};q=m4(this,d,Z);Z=Z.path}else Z=Array.isArray(d)?TA(d):d;this._setPendingPropertyOrPath(Z,q,!0,!0)&&this._invalidateProperties()};
c.prototype._createReadOnlyProperty=function(d,q){this._addPropertyEffect(d,"__readOnly");q&&(this["_set"+(d[0].toUpperCase()+d.substring(1))]=function(Z){this._setProperty(d,Z)})};
c.prototype._createPropertyObserver=function(d,q,Z){var M={property:d,method:q,dynamicFn:!!Z};this._addPropertyEffect(d,"__observeEffects",{fn:eaM,info:M,trigger:{name:d}});Z&&this._addPropertyEffect(q,"__observeEffects",{fn:eaM,info:M,trigger:{name:q}})};
c.prototype._createMethodObserver=function(d,q){var Z=MJN(d);if(!Z)throw Error("yd`"+d);doY(this,Z,"__observeEffects",pZC,null,q)};
c.prototype._createNotifyingProperty=function(d){this._addPropertyEffect(d,"__notifyEffects",{fn:ILN,info:{eventName:Ou(d)+"-changed",property:d}})};
c.prototype._createReflectedProperty=function(d){var q=this.constructor.attributeNameForProperty(d);q[0]==="-"?console.warn("Property "+d+" cannot be reflected to attribute "+q+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(d,"__reflectEffects",{fn:Phn,info:{attrName:q}})};
c.prototype._createComputedProperty=function(d,q,Z){var M=MJN(q);if(!M)throw Error("zd`"+q);q=doY(this,M,"__computeEffects",xCe,d,Z);Wok(this,"__computeInfo")[d]=q};
c.prototype._marshalArgs=function(d,q,Z){for(var M=this.__data,g=[],O=0,l=d.length;O<l;O++){var m=d[O],H=m.name,A=m.structured,Y=m.wildcard,t=m.value;m.literal||(Y?(m=BW(H,q),A=rKz(M,Z,m?q:H),t={path:m?q:H,value:A,base:m?m4(M,H):A}):t=A?rKz(M,Z,H):M[H]);if(bW&&!this._overrideLegacyUndefined&&t===void 0&&d.length>1)return t8;g[O]=t}return g};
c.addPropertyEffect=function(d,q,Z){this.prototype._addPropertyEffect(d,q,Z)};
c.createPropertyObserver=function(d,q,Z){this.prototype._createPropertyObserver(d,q,Z)};
c.createMethodObserver=function(d,q){this.prototype._createMethodObserver(d,q)};
c.createNotifyingProperty=function(d){this.prototype._createNotifyingProperty(d)};
c.createReadOnlyProperty=function(d,q){this.prototype._createReadOnlyProperty(d,q)};
c.createReflectedProperty=function(d){this.prototype._createReflectedProperty(d)};
c.createComputedProperty=function(d,q,Z){this.prototype._createComputedProperty(d,q,Z)};
c.bindTemplate=function(d){return this.prototype._bindTemplate(d)};
c.prototype._bindTemplate=function(d,q){var Z=this.constructor._parseTemplate(d),M=this.__preBoundTemplateInfo==Z;if(!M)for(var g in Z.propertyEffects)this._createPropertyAccessor(g);q?(Z=Object.create(Z),Z.wasPreBound=M,this.__templateInfo?(d=d._parentTemplateInfo||this.__templateInfo,q=d.lastChild,Z.parent=d,d.lastChild=Z,(Z.previousSibling=q)?q.nextSibling=Z:d.firstChild=Z):this.__templateInfo=Z):this.__preBoundTemplateInfo=Z;return Z};
c._addTemplatePropertyEffect=function(d,q,Z){(d.hostProps=d.hostProps||{})[q]=!0;d=d.propertyEffects=d.propertyEffects||{};(d[q]=d[q]||[]).push(Z)};
c.prototype._stampTemplate=function(d,q){q=q||this._bindTemplate(d,!0);f8.push(this);d=f.prototype._stampTemplate.call(this,d,q);f8.pop();q.nodeList=d.nodeList;if(!q.wasPreBound)for(var Z=q.childNodes=[],M=d.firstChild;M;M=M.nextSibling)Z.push(M);d.templateInfo=q;Z=q.nodeList;M=q.nodeInfoList;if(M.length)for(var g=0;g<M.length;g++){var O=Z[g],l=M[g].bindings;if(l)for(var m=0;m<l.length;m++){var H=l[m],A=O,Y=H;if(Y.isCompound){for(var t=A.__dataCompoundStorage||(A.__dataCompoundStorage={}),E=Y.parts,
J=Array(E.length),X=0;X<E.length;X++)J[X]=E[X].literal;E=Y.target;t[E]=J;Y.literal&&Y.kind=="property"&&(E==="className"&&(A=(0,_.YD)(A)),A[E]=Y.literal)}fhN(O,this,H)}O.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(q,this.__data,null,!1),this._flushClients());return d};
c.prototype._removeBoundDom=function(d){d=d.templateInfo;var q=d.previousSibling,Z=d.nextSibling,M=d.parent;q?q.nextSibling=Z:M&&(M.firstChild=Z);Z?Z.previousSibling=q:M&&(M.lastChild=q);d.nextSibling=d.previousSibling=null;d=d.childNodes;for(q=0;q<d.length;q++)Z=d[q],(0,_.YD)((0,_.YD)(Z).parentNode).removeChild(Z)};
c._parseTemplateNode=function(d,q,Z){var M=f._parseTemplateNode.call(this,d,q,Z);if(d.nodeType===Node.TEXT_NODE){var g=this._parseBindings(d.textContent,q);g&&(d.textContent=jvG(g)||" ",cKG(this,q,Z,"text","textContent",g),M=!0)}return M};
c._parseTemplateNodeAttribute=function(d,q,Z,M,g){var O=this._parseBindings(g,q);if(O){g=M;var l="property";OC_.test(M)?l="attribute":M[M.length-1]=="$"&&(M=M.slice(0,-1),l="attribute");var m=jvG(O);m&&l=="attribute"&&(M=="class"&&d.hasAttribute("class")&&(m+=" "+d.getAttribute(M)),d.setAttribute(M,m));l=="attribute"&&g=="disable-upgrade$"&&d.setAttribute(M,"");d.localName==="input"&&g==="value"&&d.setAttribute(g,"");d.removeAttribute(g);l==="property"&&(M=kD(M));cKG(this,q,Z,l,M,O,m);return!0}return f._parseTemplateNodeAttribute.call(this,
d,q,Z,M,g)};
c._parseTemplateNestedTemplate=function(d,q,Z){var M=f._parseTemplateNestedTemplate.call(this,d,q,Z),g=d.parentNode,O=Z.templateInfo,l=g.localName==="dom-if",m=g.localName==="dom-repeat";U4&&(l||m)&&(g.removeChild(d),Z=Z.parentInfo,Z.templateInfo=O,Z.noted=!0,M=!1);d=O.hostProps;if(pi&&l)d&&(q.hostProps=Object.assign(q.hostProps||{},d),U4||(Z.parentInfo.noted=!0));else for(var H in d)cKG(this,q,Z,"property","_host_"+H,[{mode:"{",source:H,dependencies:[H],hostProp:!0}]);return M};
c._parseBindings=function(d,q){for(var Z=[],M=0,g;(g=snK.exec(d))!==null;){g.index>M&&Z.push({literal:d.slice(M,g.index)});M=g[1][0];var O=!!g[2];g=g[3].trim();var l=!1,m="",H=-1;M=="{"&&(H=g.indexOf("::"))>0&&(m=g.substring(H+2),g=g.substring(0,H),l=!0);H=MJN(g);var A=[];if(H){var Y=H,t=Y.args;Y=Y.methodName;for(var E=0;E<t.length;E++){var J=t[E];J.literal||A.push(J)}if((t=q.dynamicFns)&&t[Y]||H.static)A.push(Y),H.dynamicFn=!0}else A.push(g);Z.push({source:g,mode:M,negate:O,customEvent:l,signature:H,
dependencies:A,event:m});M=snK.lastIndex}M&&M<d.length&&(d=d.substring(M))&&Z.push({literal:d});return Z.length?Z:null};
c._evaluateBinding=function(d,q,Z,M,g,O){d=q.signature?pZC(d,Z,M,g,q.signature):Z!=q.source?m4(d,q.source):O&&lW(Z)?m4(d,Z):d.__data[Z];q.negate&&(d=!d);return d};
_.ci.Object.defineProperties(c.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return khT}}});
return c}),f8=[];var BWF=window.ShadyCSS&&window.ShadyCSS.cssBuild,jl=cd(function(c){function f(q,Z,M,g){if(!BWF){for(var O=Z.content.querySelectorAll("style"),l=lhz(Z),m=svl(M),H=Z.content.firstElementChild,A=0;A<m.length;A++){var Y=m[A];Y.textContent=q._processStyleText(Y.textContent,g);Z.content.insertBefore(Y,H)}for(H=m=0;H<l.length;H++)A=l[H],Y=O[m],Y!==A?(A=A.cloneNode(!0),Y.parentNode.insertBefore(A,Y)):m++,A.textContent=q._processStyleText(A.textContent,g)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Z,
M);if(D93&&BWF&&ut_&&(Z=Z.content.querySelectorAll("style"))){var t="";Array.from(Z).forEach(function(E){t+=E.textContent;E.parentNode.removeChild(E)});
q._styleSheet=new CSSStyleSheet;q._styleSheet.replaceSync(t)}}
var d=otj(dh(c));c=function(){return d.call(this)||this};
_.K(c,d);c._finalizeClass=function(){d._finalizeClass.call(this);var q;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(q=this.__ownObservers)&&this.createObservers(q,this._properties);this._prepareTemplate()};
c._prepareTemplate=function(){var q=this.template;q&&(typeof q==="string"?(console.error("template getter must return HTMLTemplateElement"),q=null):wu||(q=q.cloneNode(!0)));this.prototype._template=q};
c.createProperties=function(q){for(var Z in q){var M=this.prototype,g=Z,O=q[Z],l=q;O.computed&&(O.readOnly=!0);O.computed&&(M._hasReadOnlyEffect(g)?console.warn("Cannot redefine computed property '"+g+"'."):M._createComputedProperty(g,O.computed,l));O.readOnly&&!M._hasReadOnlyEffect(g)?M._createReadOnlyProperty(g,!O.computed):O.readOnly===!1&&M._hasReadOnlyEffect(g)&&console.warn("Cannot make readOnly property '"+g+"' non-readOnly.");O.reflectToAttribute&&!M._hasReflectEffect(g)?M._createReflectedProperty(g):
O.reflectToAttribute===!1&&M._hasReflectEffect(g)&&console.warn("Cannot make reflected property '"+g+"' non-reflected.");O.notify&&!M._hasNotifyEffect(g)?M._createNotifyingProperty(g):O.notify===!1&&M._hasNotifyEffect(g)&&console.warn("Cannot make notify property '"+g+"' non-notify.");O.observer&&M._createPropertyObserver(g,O.observer,l[O.observer]);M._addPropertyToAttributeMap(g)}};
c.createObservers=function(q,Z){for(var M=this.prototype,g=0;g<q.length;g++)M._createMethodObserver(q[g],Z)};
c.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);d.prototype._initializeProperties.call(this);this.rootPath=vtK;this.importPath=this.constructor.importPath;var q=this.constructor;if(!q.hasOwnProperty("__propertyDefaults")){q.__propertyDefaults=null;var Z=q._properties,M;for(M in Z){var g=Z[M];"value"in g&&(q.__propertyDefaults=q.__propertyDefaults||{},q.__propertyDefaults[M]=g)}}if(q=q.__propertyDefaults)for(var O in q)Z=q[O],
this._canApplyPropertyDefault(O)&&(Z=typeof Z.value=="function"?Z.value.call(this):Z.value,this._hasAccessor(O)?this._setPendingProperty(O,Z,!0):this[O]=Z)};
c.prototype._canApplyPropertyDefault=function(q){return!this.hasOwnProperty(q)};
c._processStyleText=function(q,Z){return EsN(q,Z)};
c._finalizeTemplate=function(q){var Z=this.prototype._template;if(Z&&!Z.__polymerFinalized){Z.__polymerFinalized=!0;var M=this.importPath;M=M?_.Ch(M):"";f(this,Z,q,M);this.prototype._bindTemplate(Z)}};
c.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);d.prototype.connectedCallback.call(this)};
c.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);d.prototype.ready.call(this)};
c.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));d.prototype._readyClients.call(this)};
c.prototype._attachDom=function(q){var Z=(0,_.YD)(this);if(Z.attachShadow)return q?(Z.shadowRoot||(Z.attachShadow({mode:"open",shadyUpgradeFragment:q}),Z.shadowRoot.appendChild(q),this.constructor._styleSheet&&(Z.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),wOH&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Z.shadowRoot),Z.shadowRoot):null;throw Error("Bd");};
c.prototype.updateStyles=function(q){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,q)};
c.prototype.resolveUrl=function(q,Z){!Z&&this.importPath&&(Z=_.Ch(this.importPath));return _.Ch(q,Z)};
c._parseTemplateContent=function(q,Z,M){Z.dynamicFns=Z.dynamicFns||this._properties;return d._parseTemplateContent.call(this,q,Z,M)};
c._addTemplatePropertyEffect=function(q,Z,M){!eR||Z in this._properties||M.info.part.signature&&M.info.part.signature.static||M.info.part.hostProp||q.nestedTemplate||console.warn("Property '"+Z+"' used in template but not declared in 'properties'; attribute will not be observed.");return d._addTemplatePropertyEffect.call(this,q,Z,M)};
_.ci.Object.defineProperties(c,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var q=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof q==="function"&&(q=q());if(q===void 0){if(q=this.hasOwnProperty("is")){q=this.is;var Z=null;if(q&&(!Nd||h5F)&&(Z=$D.import(q,"template"),Nd&&!Z))throw Error("Ad`"+q);q=Z}q=q||Object.getPrototypeOf(this.prototype).constructor.template}this._template=q}return this._template},
set:function(q){this._template=q}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var q=this.importMeta;q?this._importPath=nsY(q.url):this._importPath=(q=$D.import(this.is))&&q.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return c});var iCo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(c){return c}}),Y_z=function(c,f){TW_(c,f);
this.value=f.reduce(function(d,q,Z){return d+FaG(q)+c[Z+1]},c[0]).toString()},TW_;
Y_z.prototype.toString=function(){return this.value};
_.m$T=function(c){var f=_.hv.apply(1,arguments);TW_(c,f);var d=document.createElement("template");f=f.reduce(function(q,Z,M){if(Z instanceof HTMLTemplateElement)Z=Z.innerHTML;else if(Z instanceof Y_z)Z=FaG(Z);else throw Error("Dd`"+Z);return q+Z+c[M+1]},c[0]);
iCo&&(f=iCo.createHTML(f));d.innerHTML=f;return d};
TW_=function(c,f){if(!Array.isArray(c)||!Array.isArray(c.raw)||f.length!==c.length-1)throw new TypeError("Ed");};var qM=jl(HTMLElement);var HC_=cd(function(c){var f=jl(c);c=function(){var d=f.call(this)||this;d.__lastItems=null;d.__lastMulti=null;d.__selectedMap=null;return d};
_.K(c,f);c.prototype.__updateSelection=function(d,q){var Z=q.path;Z=="items"?(q=q.base||[],Z=this.__lastItems,d!==this.__lastMulti&&this.clearSelection(),Z&&(Z=AKz(q,Z),this.__applySplices(Z)),this.__lastItems=q,this.__lastMulti=d):q.path=="items.splices"?this.__applySplices(q.value.indexSplices):(d=Z.slice(6),q=parseInt(d,10),d.indexOf(".")<0&&d==q&&this.__deselectChangedIdx(q))};
c.prototype.__applySplices=function(d){for(var q=this,Z=this.__selectedMap,M={},g=0;g<d.length;M={s$jscomp$108:void 0},g++){M.s$jscomp$108=d[g];Z.forEach(function(H){return function(A,Y){A<H.s$jscomp$108.index||(A>=H.s$jscomp$108.index+H.s$jscomp$108.removed.length?Z.set(Y,A+H.s$jscomp$108.addedCount-H.s$jscomp$108.removed.length):Z.set(Y,-1))}}(M));
for(var O=0;O<M.s$jscomp$108.addedCount;O++){var l=M.s$jscomp$108.index+O;Z.has(this.items[l])&&Z.set(this.items[l],l)}}this.__updateLinks();var m=0;Z.forEach(function(H,A){H<0?(q.multi?q.splice("selected",m,1):q.selected=q.selectedItem=null,Z.delete(A)):m++})};
c.prototype.__updateLinks=function(){var d=this;this.__dataLinkedPaths={};if(this.multi){var q=0;this.__selectedMap.forEach(function(Z){Z>=0&&d.linkPaths("items."+Z,"selected."+q++)})}else this.__selectedMap.forEach(function(Z){d.linkPaths("selected","items."+Z);
d.linkPaths("selectedItem","items."+Z)})};
c.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
c.prototype.isSelected=function(d){return this.__selectedMap.has(d)};
c.prototype.isIndexSelected=function(d){return this.isSelected(this.items[d])};
c.prototype.__deselectChangedIdx=function(d){var q=this,Z=this.__selectedIndexForItemIndex(d);if(Z>=0){var M=0;this.__selectedMap.forEach(function(g,O){Z==M++&&q.deselect(O)})}};
c.prototype.__selectedIndexForItemIndex=function(d){if(d=this.__dataLinkedPaths["items."+d])return parseInt(d.slice(9),10)};
c.prototype.deselect=function(d){var q=this.__selectedMap.get(d);if(q>=0){this.__selectedMap.delete(d);var Z;this.multi&&(Z=this.__selectedIndexForItemIndex(q));this.__updateLinks();this.multi?this.splice("selected",Z,1):this.selected=this.selectedItem=null}};
c.prototype.deselectIndex=function(d){this.deselect(this.items[d])};
c.prototype.select=function(d){this.selectIndex(this.items.indexOf(d))};
c.prototype.selectIndex=function(d){var q=this.items[d];this.isSelected(q)?this.toggle&&this.deselectIndex(d):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(q,d),this.__updateLinks(),this.multi?this.push("selected",q):this.selected=this.selectedItem=q)};
_.ci.Object.defineProperties(c,{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 c}),AEH=HC_(qM),Zu=function(){return AEH.apply(this,arguments)||this};
_.K(Zu,AEH);_.ci.Object.defineProperties(Zu,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Zu.is,Zu);var Yxo=window.Polymer;window.Polymer=function(c){return window.Polymer._polymerFn(c)};
Yxo&&Object.assign(Polymer,Yxo);Polymer._polymerFn=function(){throw Error("Fd");};/*

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:EsN,resolveUrl:_.Ch,pathFromUrl:nsY};Polymer.DomModule=$D;Polymer.Async={timeOut:_.GN,animationFrame:_.zu,idlePeriod:R5F,microTask:vW};Polymer.dedupingMixin=cd;Polymer.wrap=_.YD;Polymer.PropertiesChanged=pOH;Polymer.telemetry={instanceCount:x9F,incrementInstanceCount:function(){x9F++},
registrations:Loh,register:zaP,dumpRegistrations:function(){Loh.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=otj;Polymer.CaseMap={dashToCamelCase:kD,camelToDashCase:Ou};Polymer.PropertyAccessors=qxy;Polymer.TemplateStamp=gC3;Polymer.Path={isPath:lW,root:su,isAncestor:vsn,isDescendant:BW,translate:iW,matches:haC,normalize:TA,split:wZk,get:m4,set:y9r,isDeep:lW};Polymer.Settings={useShadow:yg,useNativeCSSProperties:z5_,useNativeCustomElements:JQO,get rootPath(){return vtK},setRootPath:function(c){vtK=c},
get sanitizeDOMValue(){return Fs},setSanitizeDOMValue:function(c){Fs=c},
get passiveTouchGestures(){return VJN},setPassiveTouchGestures:function(c){VJN=c},
get strictTemplatePolicy(){return Nd},setStrictTemplatePolicy:function(c){Nd=c},
get allowTemplateFromDomModule(){return h5F},setAllowTemplateFromDomModule:function(c){h5F=c},
get legacyOptimizations(){return wu},setLegacyOptimizations:function(c){wu=c},
get syncInitialRender(){return wOH},setSyncInitialRender:function(c){wOH=c},
get legacyUndefined(){return bW},setLegacyUndefined:function(c){bW=c},
get legacyWarnings(){return eR},setLegacyWarnings:function(c){eR=c},
get orderedComputed(){return yQO},setOrderedComputed:function(c){yQO=c},
get fastDomIf(){return pi},setFastDomIf:function(c){pi=c},
get removeNestedTemplates(){return U4},setRemoveNestedTemplates:function(c){U4=c},
get suppressTemplateNotifications(){return x3},setSuppressTemplateNotifications:x3};Polymer.rootPath!==void 0&&(vtK=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Fs=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(VJN=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Nd=Polymer.strictTemplatePolicy);h5F=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(wu=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(wOH=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(bW=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(eR=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(yQO=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(pi=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(U4=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(x3=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Fs},
set:function(c){Fs=c}});Polymer.PropertyEffects=dh;Polymer.StyleGather={stylesFromModules:OpN,stylesFromModule:kdM,stylesFromTemplate:lhz,stylesFromModuleImports:svl,cssFromModules:ipz,cssFromModule:BOz,cssFromTemplate:TOC,cssFromModuleImports:function(c){return(c=$D.import(c))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c):""}};Polymer.ElementMixin=jl;Polymer.updateStyles=function(c){window.ShadyCSS&&window.ShadyCSS.styleDocument(c)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:AKz};Polymer.html=_.m$T;Polymer.htmlLiteral=function(c){return new Y_z(c,_.hv.apply(1,arguments))};Polymer.Element=qM;Polymer.ArraySelectorMixin=HC_;Polymer.ArraySelector=Zu;var FdH=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,tUy=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,fDC=/@media\s(.*)/;var ERh=null,Kal=window.HTMLImports&&window.HTMLImports.whenReady||null,nRr;var bCH=null,MM=null,rh=function(){this.customStyles=[];this.enqueued=!1;$or(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Kd_=function(c){!c.enqueued&&MM&&(c.enqueued=!0,$or(MM))};
rh.prototype.addCustomStyle=function(c){c.__seenByShadyCSS||(c.__seenByShadyCSS=!0,this.customStyles.push(c),Kd_(this))};
rh.prototype.getStyleForCustomStyle=function(c){if(c.__shadyCSSCachedStyle)return c.__shadyCSSCachedStyle;var f;c.getStyle?f=c.getStyle():f=c;return f};
rh.prototype.processStyles=function(){for(var c=this.customStyles,f=0;f<c.length;f++){var d=c[f];if(!d.__shadyCSSCachedStyle){var q=this.getStyleForCustomStyle(d);q&&(q=q.__appliedElement||q,bCH&&bCH(q),d.__shadyCSSCachedStyle=q)}}return c};
rh.prototype.addCustomStyle=rh.prototype.addCustomStyle;rh.prototype.getStyleForCustomStyle=rh.prototype.getStyleForCustomStyle;rh.prototype.processStyles=rh.prototype.processStyles;Object.defineProperties(rh.prototype,{transformCallback:{get:function(){return bCH},
set:function(c){bCH=c}},
validateCallback:{get:function(){return MM},
set:function(c){var f=!1;MM||(f=!0);MM=c;f&&Kd_(this)}}});var S_N=!(window.ShadyDOM&&window.ShadyDOM.inUse),QvP,GA;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(GA=window.ShadyCSS.cssBuild);var ECr=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?QvP=window.ShadyCSS.nativeCss:window.ShadyCSS?(Lae(window.ShadyCSS),window.ShadyCSS=void 0):Lae(window.WebComponents&&window.WebComponents.flags);var o9n=QvP;var nC3=new rh;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(c,f){nC3.processStyles();tJh(c,f)},
styleElement:function(){nC3.processStyles()},
styleDocument:function(c){nC3.processStyles();tJh(document.body,c)},
getComputedStyleValue:function(c,f){return bpG(c,f)},
flushCustomStyles:function(){},
nativeCss:o9n,nativeShadow:S_N,cssBuild:GA,disableRuntime:ECr});window.ShadyCSS.CustomStyleInterface=nC3;var $$_=window.ShadyCSS.CustomStyleInterface,C8=function(){var c=HTMLElement.call(this)||this;c._style=null;$$_.addCustomStyle(c);return c};
_.K(C8,HTMLElement);C8.prototype.getStyle=function(){if(this._style)return this._style;var c=this.querySelector("style");if(!c)return null;this._style=c;var f=c.getAttribute("include");f&&(c.removeAttribute("include"),c.textContent=ipz(f)+c.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
C8.prototype.getStyle=C8.prototype.getStyle;window.customElements.define("custom-style",C8);Polymer.CustomStyle=C8;var gh=function(){this._timer=this._callback=this._asyncModule=null},kX,SxH;
gh.prototype.setConfig=function(c,f){var d=this;this._asyncModule=c;this._callback=f;this._timer=this._asyncModule.run(function(){d._timer=null;kX.delete(d);d._callback()})};
gh.prototype.cancel=function(){this.isActive()&&(Qny(this),kX.delete(this))};
var Qny=function(c){c.isActive()&&(c._asyncModule.cancel(c._timer),c._timer=null)};
gh.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
gh.prototype.isActive=function(){return this._timer!=null};
_.OP=function(c,f,d){c instanceof gh?Qny(c):c=new gh;c.setConfig(f,d);return c};
kX=new Set;_.l0=function(c){kX.add(c)};
SxH=function(){var c=!!kX.size;kX.forEach(function(f){try{f.flush()}catch(d){setTimeout(function(){throw d;})}});
return c};var JKn=typeof document.head.style.touchAction==="string",zJY=["mousedown","mousemove","mouseup","click"],WaC=[0,1,4,2],Ldr;try{Ldr=(new MouseEvent("test",{buttons:1})).buttons===1}catch(c){Ldr=!1}var yKk=Ldr,ahl=!1;(function(){try{var c=Object.defineProperty({},"passive",{get:function(){ahl=!0}});
window.addEventListener("test",null,c);window.removeEventListener("test",null,c)}catch(f){}})();
var ubP=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),vRC=[],z43={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},crk={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},hJr=function(c){var f=c.sourceCapabilities;if(!f||f.firesTouchEvents)if(c.__polymerGesturesHandled={skip:!0},c.type==="click"){f=!1;for(var d=Ihh(c),q=0;q<d.length;q++){if(d[q].nodeType===Node.ELEMENT_NODE)if(d[q].localName==="label")vRC.push(d[q]);
else if(z43[d[q].localName]){var Z=d[q];var M=Array.prototype.slice.call(Z.labels||[]);if(!M.length){M=[];try{var g=Z.getRootNode();if(Z.id){var O=g.querySelectorAll("label[for = '"+Z.id+"']");for(Z=0;Z<O.length;Z++)M.push(O[Z])}}catch(l){}}for(Z=0;Z<M.length;Z++)f=f||vRC.indexOf(M[Z])>-1}if(d[q]===JEv)return}f||(c.preventDefault(),c.stopPropagation())}},JEv=null,sP=null,RJk=0,UoN=0,Pkk=-1,p5C=!1;
document.addEventListener("touchend",function(c){sP||w5h(!0);JEv=Ihh(c)[0];sP=_.OP(sP,_.GN.after(2500),function(){w5h();sP=JEv=null})},ahl?{passive:!0}:!1);
var Ihh=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(c){return c.composedPath&&c.composedPath()||[]},al={},zA=[];
xoh({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Lh(this.info)},
mousedown:function(c){if(SR(c)){var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c),d=this;eJk(this.info,function(q){SR(q)||(h8("up",f,q),Lh(d.info))},function(q){SR(q)&&h8("up",f,q);
Lh(d.info)});
h8("down",f,c)}},
touchstart:function(c){h8("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c),c.changedTouches[0],c)},
touchend:function(c){h8("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c),c.changedTouches[0],c)}});
xoh({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(c){this.moves.length>2&&this.moves.shift();this.moves.push(c)},
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;Lh(this.info)},
mousedown:function(c){if(SR(c)){var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c),d=this,q=function(Z){var M=Z.clientX,g=Z.clientY;oRr(d.info,M,g)&&(d.info.state=d.info.started?Z.type==="mouseup"?"end":"track":"start",d.info.state==="start"&&J8("tap"),d.info.addMove({x:M,y:g}),SR(Z)||(d.info.state="end",Lh(d.info)),f&&GdN(d.info,f,Z),d.info.started=!0)};
eJk(this.info,q,function(Z){d.info.started&&q(Z);Lh(d.info)});
this.info.x=c.clientX;this.info.y=c.clientY}},
touchstart:function(c){c=c.changedTouches[0];this.info.x=c.clientX;this.info.y=c.clientY},
touchmove:function(c){var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c);c=c.changedTouches[0];var d=c.clientX,q=c.clientY;oRr(this.info,d,q)&&(this.info.state==="start"&&J8("tap"),this.info.addMove({x:d,y:q}),GdN(this.info,f,c),this.info.state="track",this.info.started=!0)},
touchend:function(c){var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c);c=c.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:c.clientX,y:c.clientY}),GdN(this.info,f,c))}});
xoh({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(c){SR(c)&&(this.info.x=c.clientX,this.info.y=c.clientY)},
click:function(c){SR(c)&&f2n(this.info,c)},
touchstart:function(c){c=c.changedTouches[0];this.info.x=c.clientX;this.info.y=c.clientY},
touchend:function(c){f2n(this.info,c.changedTouches[0],c)}});var a8_=cd(function(c){var f=function(){return c.apply(this,arguments)||this};
_.K(f,c);f.prototype._addEventListenerToNode=function(d,q,Z){Vg(d,q,Z)||c.prototype._addEventListenerToNode.call(this,d,q,Z)};
f.prototype._removeEventListenerFromNode=function(d,q,Z){Xs(d,q,Z)||c.prototype._removeEventListenerFromNode.call(this,d,q,Z)};
return f});var Bd=cd(function(c){var f=function(){return c.apply(this,arguments)||this};
_.K(f,c);f.prototype._shouldPropertyChange=function(d,q,Z){return d6z(this,d,q,Z,!0)};
return f}),VUT=cd(function(c){var f=function(){return c.apply(this,arguments)||this};
_.K(f,c);f.prototype._shouldPropertyChange=function(d,q,Z){return d6z(this,d,q,Z,this.mutableData)};
_.ci.Object.defineProperties(f,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return f});
Bd._mutablePropertyChange=d6z;var jWh=!1;var Xby=a8_(VUT(dh(HTMLElement))),i0=function(){var c=Xby.call(this)||this;if(Nd)throw Error("Gd");c.root=null;c.$=null;c.__children=null;return c};
_.K(i0,Xby);_.r=i0.prototype;_.r.attributeChangedCallback=function(){this.mutableData=!0};
_.r.connectedCallback=function(){qJl()||(this.style.display="none");this.render()};
_.r.disconnectedCallback=function(){this.__removeChildren()};
_.r.__insertChildren=function(){(0,_.YD)((0,_.YD)(this).parentNode).insertBefore(this.root,this)};
_.r.__removeChildren=function(){if(this.__children)for(var c=0;c<this.__children.length;c++)this.root.appendChild(this.__children[c])};
_.r.render=function(){var c=this;if(!this.__children){var f=f||this.querySelector("template");if(!f){var d=new MutationObserver(function(){if(f=c.querySelector("template"))d.disconnect(),c.render();else throw Error("Hd");});
d.observe(this,{childList:!0});return}this.root=this._stampTemplate(f);this.$=this.root.$;this.__children=[];for(var q=this.root.firstChild;q;q=q.nextSibling)this.__children[this.__children.length]=q;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.ci.Object.defineProperties(i0,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",i0);Polymer.Debouncer=gh;Polymer.Gestures={gestures:al,recognizers:zA,deepTargetFind:NOl,addListener:Vg,removeListener:Xs,register:xoh,setTouchAction:_.uW,prevent:J8,resetMouseCanceller:function(){sP&&sP.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Vg,remove:Xs};Polymer.GestureEventListeners=a8_;Polymer.MutableData=Bd;Polymer.OptionalMutableData=VUT;Polymer.DomBind=i0;_.Ty=function(){do{var c=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var f=SxH()}while(c||f)};var ZSY=null;M7r.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:M7r,writable:!0}});var Bnl=dh(M7r),sWY=Bd(Bnl),u5j=dh(function(){}),WW=function(c){var f=u5j.call(this)||this;
f._configureProperties(c);f.root=f._stampTemplate(f.__dataHost);var d=[];f.children=d;for(var q=f.root.firstChild;q;q=q.nextSibling)d.push(q),q.__templatizeInstance=f;f.__templatizeOwner&&f.__templatizeOwner.__hideTemplateChildren__&&f._showHideChildren(!0);d=f.__templatizeOptions;(c&&d.instanceProps||!d.instanceProps)&&f._enableProperties();return f};
_.K(WW,u5j);_.r=WW.prototype;_.r._configureProperties=function(c){if(this.__templatizeOptions.forwardHostProp)for(var f in this.__hostProps)this._setPendingProperty(f,this.__dataHost["_host_"+f]);for(var d in c)this._setPendingProperty(d,c[d])};
_.r.forwardHostProp=function(c,f){this._setPendingPropertyOrPath(c,f,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.r._addEventListenerToNode=function(c,f,d){var q=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(c,f,function(M){M.model=q;d(M)});
else{var Z=this.__dataHost.__dataHost;Z&&Z._addEventListenerToNode(c,f,d)}};
_.r._showHideChildren=function(c){Cf4(c,this.children)};
_.r._setUnmanagedPropertyToNode=function(c,f,d){c.__hideTemplateChildren__&&c.nodeType==Node.TEXT_NODE&&f=="textContent"?c.__polymerTextContent__=d:u5j.prototype._setUnmanagedPropertyToNode.call(this,c,f,d)};
_.r.dispatchEvent=function(){return!0};
_.ci.Object.defineProperties(WW.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var c=this.__parentModel;if(!c){var f;c=this;do c=c.__dataHost.__dataHost;while((f=c.__templatizeOptions)&&!f.parentModel);this.__parentModel=c}return c}}});
var kKe=Bd(WW);var mP=function(){var c=qM.call(this)||this;c.__renderDebouncer=null;c._lastIf=!1;c.__hideTemplateChildren__=!1;return c};
_.K(mP,qM);_.r=mP.prototype;_.r.__debounceRender=function(){var c=this;this.__renderDebouncer=_.OP(this.__renderDebouncer,vW,function(){return c.__render()});
_.l0(this.__renderDebouncer)};
_.r.disconnectedCallback=function(){qM.prototype.disconnectedCallback.call(this);var c=(0,_.YD)(this).parentNode;c&&(c.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.YD)(c).host)||this.__teardownInstance()};
_.r.connectedCallback=function(){qM.prototype.connectedCallback.call(this);qJl()||(this.style.display="none");this.if&&this.__debounceRender()};
_.r.__ensureTemplate=function(){var c=this;if(!this.__template){var f=this._templateInfo?this:(0,_.YD)(this).querySelector("template");if(!f){var d=new MutationObserver(function(){if((0,_.YD)(c).querySelector("template"))d.disconnect(),c.__render();else throw Error("Kd");});
d.observe(this,{childList:!0});return!1}this.__template=f}return!0};
_.r.__ensureInstance=function(){var c=(0,_.YD)(this).parentNode;if(this.__hasInstance()){var f=this.__getInstanceNodes();if(f&&f.length&&(0,_.YD)(this).previousSibling!==f[f.length-1])for(var d=0,q=void 0;d<f.length&&(q=f[d]);d++)(0,_.YD)(c).insertBefore(q,this)}else{if(!c||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(c)}return!0};
_.r.render=function(){_.Ty()};
_.r.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();x3&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.r.__hasInstance=function(){};
_.r.__getInstanceNodes=function(){};
_.r.__createAndInsertInstance=function(){};
_.r.__teardownInstance=function(){};
_.r._showHideChildren=function(){};
_.ci.Object.defineProperties(mP,{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:mP.prototype.__debounceRender},restamp:{type:Boolean,observer:mP.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var vCT=function(){var c=mP.call(this)||this;c.__instance=null;c.__syncInfo=null;return c};
_.K(vCT,mP);_.r=vCT.prototype;_.r.__hasInstance=function(){return!!this.__instance};
_.r.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.r.__createAndInsertInstance=function(c){var f=this,d=this.__dataHost||this;if(Nd&&!this.__dataHost)throw Error("Id");var q=d._bindTemplate(this.__template,!0);q.runEffects=function(Z,M,g){var O=f.__syncInfo;if(f.if)O&&(f.__syncInfo=null,f._showHideChildren(),M=Object.assign(O.changedProps,M)),Z(M,g);else if(f.__instance)if(O||(O=f.__syncInfo={runEffects:Z,changedProps:{}}),g)for(var l in M)Z=su(l),O.changedProps[Z]=f.__dataHost[Z];else Object.assign(O.changedProps,M)};
this.__instance=d._stampTemplate(this.__template,q);(0,_.YD)(c).insertBefore(this.__instance,this)};
_.r.__syncHostProperties=function(){var c=this.__syncInfo;c&&(this.__syncInfo=null,c.runEffects(c.changedProps,!1))};
_.r.__teardownInstance=function(){var c=this.__dataHost||this;this.__instance&&(c._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.r._showHideChildren=function(){var c=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==c&&(this.__instance.__hidden=c,Cf4(c,this.__instance.templateInfo.childNodes));c||this.__syncHostProperties()};
var h4F=function(){var c=mP.call(this)||this;c.__ctor=null;c.__instance=null;c.__invalidProps=null;return c};
_.K(h4F,mP);_.r=h4F.prototype;_.r.__hasInstance=function(){return!!this.__instance};
_.r.__getInstanceNodes=function(){return this.__instance.children};
_.r.__createAndInsertInstance=function(c){this.__ctor||(this.__ctor=DB(this.__template,this,{mutableData:!0,forwardHostProp:function(f,d){this.__instance&&(this.if?this.__instance.forwardHostProp(f,d):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[su(f)]=!0))}}));
this.__instance=new this.__ctor;(0,_.YD)(c).insertBefore(this.__instance.root,this)};
_.r.__teardownInstance=function(){if(this.__instance){var c=this.__instance.children;if(c&&c.length){var f=(0,_.YD)(c[0]).parentNode;if(f){f=(0,_.YD)(f);for(var d=0,q=void 0;d<c.length&&(q=c[d]);d++)f.removeChild(q)}}this.__instance=this.__invalidProps=null}};
_.r.__syncHostProperties=function(){var c=this.__invalidProps;if(c){this.__invalidProps=null;for(var f in c)this.__instance._setPendingProperty(f,this.__dataHost[f]);this.__instance._flushProperties()}};
_.r._showHideChildren=function(){var c=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==c&&(this.__instance.__hidden=c,this.__instance._showHideChildren(c));c||this.__syncHostProperties()};
_.Vr=pi?vCT:h4F;customElements.define(_.Vr.is,_.Vr);Polymer.enqueueDebouncer=_.l0;Polymer.flush=_.Ty;Polymer.Templatize={templatize:DB,modelForElement:YJY};Polymer.TemplateInstanceBase=WW;Polymer.DomIf=_.Vr;var wbT=VUT(qM),aa=function(){var c=wbT.call(this)||this;c.__instances=[];c.__renderDebouncer=null;c.__itemsIdxToInstIdx={};c.__chunkCount=null;c.__renderStartTime=null;c.__itemsArrayChanged=!1;c.__shouldMeasureChunk=!1;c.__shouldContinueChunking=!1;c.__chunkingId=0;c.__sortFn=null;c.__filterFn=null;c.__observePaths=null;c.__ctor=null;c.__isDetached=!0;c.template=null;return c};
_.K(aa,wbT);_.r=aa.prototype;_.r.disconnectedCallback=function(){wbT.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var c=0;c<this.__instances.length;c++)this.__detachInstance(c);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.r.connectedCallback=function(){wbT.prototype.connectedCallback.call(this);qJl()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var c=(0,_.YD)((0,_.YD)(this).parentNode),f=0;f<this.__instances.length;f++)this.__attachInstance(f,c);this.__chunkingId&&this.__render()}};
_.r.__ensureTemplatized=function(){var c=this;if(!this.__ctor){var f=this.template=this._templateInfo?this:this.querySelector("template");if(!f){var d=new MutationObserver(function(){if(c.querySelector("template"))d.disconnect(),c.__render();else throw Error("Ld");});
d.observe(this,{childList:!0});return!1}var q={};q[this.as]=!0;q[this.indexAs]=!0;q[this.itemsIndexAs]=!0;this.__ctor=DB(f,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:q,forwardHostProp:function(Z,M){for(var g=this.__instances,O=0,l=void 0;O<g.length&&(l=g[O]);O++)l.forwardHostProp(Z,M)},
notifyInstanceProp:function(Z,M,g){haC(this.as,M)&&(Z=Z[this.itemsIndexAs],M==this.as&&(this.items[Z]=g),M=iW(this.as,"items."+Z,M),this.notifyPath(M,g))}})}return!0};
_.r.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.r.__functionFromPropertyValue=function(c){if(typeof c==="string"){var f=this.__getMethodHost();return function(){return f[c].apply(f,arguments)}}return c};
_.r.__sortChanged=function(c){this.__sortFn=this.__functionFromPropertyValue(c);this.items&&this.__debounceRender(this.__render)};
_.r.__filterChanged=function(c){this.__filterFn=this.__functionFromPropertyValue(c);this.items&&this.__debounceRender(this.__render)};
_.r.__computeFrameTime=function(c){return Math.ceil(1E3/c)};
_.r.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.r.__handleObservedPaths=function(c){if(this.__sortFn||this.__filterFn)if(!c)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var f=this.__observePaths,d=0;d<f.length;d++)c.indexOf(f[d])===0&&this.__debounceRender(this.__render,this.delay)};
_.r.__itemsChanged=function(c){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(c.path,c.value)||(c.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.r.__debounceRender=function(c,f){f=f===void 0?0:f;this.__renderDebouncer=_.OP(this.__renderDebouncer,f>0?_.GN.after(f):vW,c.bind(this));_.l0(this.__renderDebouncer)};
_.r.render=function(){this.__debounceRender(this.__render);_.Ty()};
_.r.__render=function(){var c=this;if(this.__ensureTemplatized()){var f=this.items||[],d=this.__sortAndFilterItems(f),q=this.__calculateLimit(d.length);this.__updateInstances(f,q,d);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){c.__chunkingId=null;c.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);x3&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.r.__sortAndFilterItems=function(c){for(var f=this,d=Array(c.length),q=0;q<c.length;q++)d[q]=q;this.__filterFn&&(d=d.filter(function(Z,M,g){return f.__filterFn(c[Z],M,g)}));
this.__sortFn&&d.sort(function(Z,M){return f.__sortFn(c[Z],c[M])});
return d};
_.r.__calculateLimit=function(c){var f=c,d=this.__instances.length;if(this.initialCount){var q;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(f=Math.min(c,this.initialCount),this.__chunkCount=(q=Math.max(f-d,0))||1):(q=Math.min(Math.max(c-d,0),this.__chunkCount),f=Math.min(d+q,c));this.__shouldMeasureChunk=q===this.__chunkCount;this.__shouldContinueChunking=f<c;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return f};
_.r.__continueChunking=function(){if(this.__shouldMeasureChunk){var c=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/c*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.r.__updateInstances=function(c,f,d){var q=this.__itemsIdxToInstIdx={},Z;for(Z=0;Z<f;Z++){var M=this.__instances[Z],g=d[Z],O=c[g];q[g]=Z;M?(M._setPendingProperty(this.as,O),M._setPendingProperty(this.indexAs,Z),M._setPendingProperty(this.itemsIndexAs,g),M._flushProperties()):this.__insertInstance(O,Z,g)}for(c=this.__instances.length-1;c>=Z;c--)this.__detachAndRemoveInstance(c)};
_.r.__detachInstance=function(c){c=this.__instances[c];for(var f=(0,_.YD)(c.root),d=0;d<c.children.length;d++)f.appendChild(c.children[d]);return c};
_.r.__attachInstance=function(c,f){f.insertBefore(this.__instances[c].root,this)};
_.r.__detachAndRemoveInstance=function(c){this.__detachInstance(c);this.__instances.splice(c,1)};
_.r.__stampInstance=function(c,f,d){var q={};q[this.as]=c;q[this.indexAs]=f;q[this.itemsIndexAs]=d;return new this.__ctor(q)};
_.r.__insertInstance=function(c,f,d){c=this.__stampInstance(c,f,d);d=(d=this.__instances[f+1])?d.children[0]:this;(0,_.YD)((0,_.YD)(this).parentNode).insertBefore(c.root,d);return this.__instances[f]=c};
_.r._showHideChildren=function(c){for(var f=0;f<this.__instances.length;f++)this.__instances[f]._showHideChildren(c)};
_.r.__handleItemPath=function(c,f){var d=c.slice(6),q=d.indexOf(".");c=q<0?d:d.substring(0,q);if(c==parseInt(c,10)){d=q<0?"":d.substring(q+1);this.__handleObservedPaths(d);if(c=this.__instances[this.__itemsIdxToInstIdx[c]])c._setPendingPropertyOrPath(this.as+(d?"."+d:""),f,!1,!0),c._flushProperties();return!0}};
_.r.itemForElement=function(c){return(c=this.modelForElement(c))&&c[this.as]};
_.r.indexForElement=function(c){return(c=this.modelForElement(c))&&c[this.indexAs]};
_.r.modelForElement=function(c){return YJY(this.template,c)};
_.ci.Object.defineProperties(aa,{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:aa.prototype.__sortChanged},filter:{type:Function,observer:aa.prototype.__filterChanged},observe:{type:String,observer:aa.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!x3,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.*)"]}}});
aa.prototype._setRenderedItemCount=function(){};
customElements.define(aa.is,aa);Polymer.DomRepeat=aa;var yE_=function(c,f){var d=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=c;this.callback=f;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){d._schedule()};
this.connect();this._schedule()},Wd3=function(c){var f=(0,_.YD)(c);
if(Il(c))return f.assignedNodes({flatten:!0});c=[];for(var d=0;d<f.childNodes.length;d++){var q=f.childNodes[d];Il(q)?c.push.apply(c,_.LT((0,_.YD)(q).assignedNodes({flatten:!0}))):c.push(q)}return c};
_.r=yE_.prototype;_.r.connect=function(){var c=this;Il(this._target)?this._listenSlots([this._target]):(0,_.YD)(this._target).children&&(this._listenSlots((0,_.YD)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(f){c._processMutations(f)}):(this._nativeChildrenObserver=new MutationObserver(function(f){c._processMutations(f)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.r.disconnect=function(){Il(this._target)?this._unlistenSlots([this._target]):(0,_.YD)(this._target).children&&(this._unlistenSlots((0,_.YD)(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};
_.r._schedule=function(){var c=this;this._scheduled||(this._scheduled=!0,vW.run(function(){return c.flush()}))};
_.r._processMutations=function(c){this._processSlotMutations(c);this.flush()};
_.r._processSlotMutations=function(c){if(c)for(var f=0;f<c.length;f++){var d=c[f];d.addedNodes&&this._listenSlots(d.addedNodes);d.removedNodes&&this._unlistenSlots(d.removedNodes)}};
_.r.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 c={target:this._target,addedNodes:[],removedNodes:[]},f=Wd3(this._target),d=AKz(f,this._effectiveNodes),q=0,Z=void 0;q<d.length&&(Z=d[q]);q++)for(var M=0,g=void 0;M<Z.removed.length&&(g=Z.removed[M]);M++)c.removedNodes.push(g);
q=0;for(Z=void 0;q<d.length&&(Z=d[q]);q++)for(M=Z.index;M<Z.index+Z.addedCount;M++)c.addedNodes.push(f[M]);this._effectiveNodes=f;f=!1;if(c.addedNodes.length||c.removedNodes.length)f=!0,this.callback.call(this._target,c);return f};
_.r._listenSlots=function(c){for(var f=0;f<c.length;f++){var d=c[f];Il(d)&&d.addEventListener("slotchange",this._boundSchedule)}};
_.r._unlistenSlots=function(c){for(var f=0;f<c.length;f++){var d=c[f];Il(d)&&d.removeEventListener("slotchange",this._boundSchedule)}};var Hd=Element.prototype,D$o=Hd.matches||Hd.matchesSelector||Hd.mozMatchesSelector||Hd.msMatchesSelector||Hd.oMatchesSelector||Hd.webkitMatchesSelector,e43=function(c,f){return D$o.call(c,f)},PW=function(c){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(c);
this.node=c},R4H;
_.r=PW.prototype;_.r.observeNodes=function(c){return new yE_(this.node,c)};
_.r.unobserveNodes=function(c){c.disconnect()};
_.r.notifyObserver=function(){};
_.r.deepContains=function(c){if((0,_.YD)(this.node).contains(c))return!0;var f=c;for(c=c.ownerDocument;f&&f!==c&&f!==this.node;)f=(0,_.YD)(f).parentNode||(0,_.YD)(f).host;return f===this.node};
_.r.getOwnerRoot=function(){return(0,_.YD)(this.node).getRootNode()};
_.r.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.YD)(this.node).assignedNodes({flatten:!0}):[]};
_.r.getDestinationInsertionPoints=function(){for(var c=[],f=(0,_.YD)(this.node).assignedSlot;f;)c.push(f),f=(0,_.YD)(f).assignedSlot;return c};
_.r.importNode=function(c,f){return(0,_.YD)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(c,f)};
_.r.getEffectiveChildNodes=function(){return Wd3(this.node)};
_.r.queryDistributedElements=function(c){for(var f=this.getEffectiveChildNodes(),d=[],q=0,Z=f.length,M=void 0;q<Z&&(M=f[q]);q++)M.nodeType===Node.ELEMENT_NODE&&e43(M,c)&&d.push(M);return d};
_.ci.Object.defineProperties(PW.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var c=this.node;return c._activeElement!==void 0?c._activeElement:c.activeElement}}});
var AR=function(c){this.event=c};
_.ci.Object.defineProperties(AR.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 NWy=PW;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var I8F=window.ShadyDOM.Wrapper,PIK=function(){return I8F.apply(this,arguments)||this};
_.K(PIK,I8F);Object.getOwnPropertyNames(PW.prototype).forEach(function(c){c!="activeElement"&&c!="constructor"&&(PIK.prototype[c]=PW.prototype[c])});
t7h(PIK.prototype,["classList"]);NWy=PIK;Object.defineProperties(AR.prototype,{localTarget:{get:function(){var c=this.event.currentTarget;c=c&&_.$n(c).getOwnerRoot();for(var f=this.path,d=0;d<f.length;d++){var q=f[d];if(_.$n(q).getOwnerRoot()===c)return q}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else F8M(),t7h(PW.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),bSh();R4H=NWy;_.$n=function(c){c=c||document;if(c instanceof NWy)return c;if(c instanceof AR)return c;var f=c.__domApi;f||(c instanceof Event?f=new AR(c):f=new NWy(c),c.__domApi=f);return f};var U$u=/:host\(:dir\((ltr|rtl)\)\)/g,pb_=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,x$H=/:dir\((?:ltr|rtl)\)/,oC_=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Uu=[],YX=null,Rl="",GhH=cd(function(c){oC_||YX||(Rl=document.documentElement.getAttribute("dir"),YX=new MutationObserver(K8C),YX.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var f=qxy(c);c=function(){var d=f.call(this)||this;d.__autoDirOptOut=!1;return d};
_.K(c,f);c._processStyleText=function(d,q){d=f._processStyleText.call(this,d,q);!oC_&&x$H.test(d)&&(d=this._replaceDirInCssText(d),this.__activateDir=!0);return d};
c._replaceDirInCssText=function(d){d=d.replace(U$u,':host([dir="$1"])');return d=d.replace(pb_,':host([dir="$2"]) $1')};
c.prototype.ready=function(){f.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
c.prototype.connectedCallback=function(){f.prototype.connectedCallback&&f.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(YX&&YX.takeRecords().length&&K8C(),Uu.push(this),this.__autoDirOptOut||this.setAttribute("dir",Rl))};
c.prototype.disconnectedCallback=function(){f.prototype.disconnectedCallback&&f.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var d=Uu.indexOf(this);d>-1&&Uu.splice(d,1)}};
c.__activateDir=!1;return c});var ch3=function(c){for(;c;){var f=Object.getOwnPropertyDescriptor(c,"observedAttributes");if(f)return f.get;c=Object.getPrototypeOf(c.prototype).constructor}return function(){return[]}};
cd(function(c){var f=jl(c),d=ch3(f);c=function(){return f.call(this)||this};
_.K(c,f);c.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:f.prototype._initializeProperties.call(this)};
c.prototype._enableProperties=function(){this.__isUpgradeDisabled||f.prototype._enableProperties.call(this)};
c.prototype._canApplyPropertyDefault=function(q){return f.prototype._canApplyPropertyDefault.call(this,q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(q))};
c.prototype.attributeChangedCallback=function(q,Z,M,g){q=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(f.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.YD)(this).isConnected&&f.prototype.connectedCallback.call(this)):f.prototype.attributeChangedCallback.call(this,q,Z,M,g)};
c.prototype.connectedCallback=function(){this.__isUpgradeDisabled||f.prototype.connectedCallback.call(this)};
c.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||f.prototype.disconnectedCallback.call(this)};
_.ci.Object.defineProperties(c,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return d.call(this).concat("disable-upgrade")}}});
return c});var ph=!1,n9C=[],xD=[];var L8l=window.ShadyDOM,zHP=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",a2l):document.readyState==="interactive"||document.readyState==="complete"?a2l():window.addEventListener("DOMContentLoaded",a2l);var uvG=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=""},V7h=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Xgk=/@import[^;]*;/gim,D6e=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,eHk=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,NnP=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,I2N=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,yrk=/^@[^\s]*keyframes/,
wgG=/\s+/g;var Pfl={};var pgk=Promise.resolve();var fmr=new Set;var dL3=/;\s*/m,jVO=/^\s*(initial)|(inherit)\s*$/,qOH=/\s*!important/,ZXy=function(){this._map={}};
ZXy.prototype.set=function(c,f){c=c.trim();this._map[c]={properties:f,dependants:{}}};
ZXy.prototype.get=function(c){c=c.trim();return this._map[c]||null};
var MvT=null,FI=function(){this._measureElement=this._currentElement=null;this._map=new ZXy};
_.r=FI.prototype;_.r.detectMixin=function(c){c=tUy.test(c)||FdH.test(c);tUy.lastIndex=0;FdH.lastIndex=0;return c};
_.r.transformTemplate=function(c,f){if(c._gatheredStyle===void 0){var d=[];for(var q=c.content.querySelectorAll("style"),Z=0;Z<q.length;Z++){var M=q[Z];if(M.hasAttribute("shady-unscoped")){if(!S_N){var g=M.textContent;if(!fmr.has(g)){fmr.add(g);var O=document.createElement("style");O.setAttribute("shady-unscoped","");O.textContent=g;document.head.appendChild(O)}M.parentNode.removeChild(M)}}else d.push(M.textContent),M.parentNode.removeChild(M)}(d=d.join("").trim())?(q=document.createElement("style"),
q.textContent=d,c.content.insertBefore(q,c.content.firstChild),d=q):d=null;c._gatheredStyle=d}return(c=c._gatheredStyle)?this.JSC$11154_transformStyle(c,f):null};
_.r.JSC$11154_transformStyle=function(c,f){f=f===void 0?"":f;var d=cqe(c);this.transformRules(d,f);c.textContent=GKr(d);return d};
_.r.transformCustomStyle=function(c){var f=this,d=cqe(c);d0Y(d,function(q){q.selector===":root"&&(q.selector="html");f.transformRule(q)});
c.textContent=GKr(d);return d};
_.r.transformRules=function(c,f){var d=this;this._currentElement=f;d0Y(c,function(q){d.transformRule(q)});
this._currentElement=null};
_.r.transformRule=function(c){c.cssText=rh_(this,c.parsedCssText,c);c.selector===":root"&&(c.selector=":host > *")};
var rh_=function(c,f,d){f=f.replace(FdH,function(q,Z,M,g){return c._produceCssProperties(q,Z,M,g,d)});
return c._consumeCssProperties(f,d)};
_.r=FI.prototype;_.r._getInitialValueForProperty=function(c){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(c)};
_.r._fallbacksFromPreviousRules=function(c){for(var f=this,d=c;d.parent;)d=d.parent;var q={},Z=!1;d0Y(d,function(M){(Z=Z||M===c)||M.selector===c.selector&&Object.assign(q,f._cssTextToMap(M.parsedCssText))});
return q};
_.r._consumeCssProperties=function(c,f){for(var d;d=tUy.exec(c);){var q=d[0],Z=d[1];d=d.index;var M=d+q.indexOf("@apply"),g=d+q.length;q=c.slice(0,M);c=c.slice(g);M=f?this._fallbacksFromPreviousRules(f):{};Object.assign(M,this._cssTextToMap(q));Z=this._atApplyToCssProperties(Z,M);c=q+Z+c;tUy.lastIndex=d+Z.length}return c};
_.r._atApplyToCssProperties=function(c,f){c=c.replace(dL3,"");var d=[],q=this._map.get(c);q||(this._map.set(c,{}),q=this._map.get(c));if(q){this._currentElement&&(q.dependants[this._currentElement]=!0);var Z,M=q.properties;for(Z in M){var g=f&&f[Z];q=[Z,": var(",c,"_-_",Z];g&&q.push(",",g.replace(qOH,""));q.push(")");qOH.test(M[Z])&&q.push(" !important");d.push(q.join(""))}}return d.join("; ")};
_.r._replaceInitialOrInherit=function(c,f){var d=jVO.exec(f);d&&(f=d[1]?this._getInitialValueForProperty(c):"apply-shim-inherit");return f};
_.r._cssTextToMap=function(c,f){f=f===void 0?!1:f;c=c.split(";");for(var d,q,Z={},M=0;M<c.length;M++)if(d=c[M])q=d.split(":"),q.length>1&&(d=q[0].trim(),q=q.slice(1).join(":"),f&&(q=this._replaceInitialOrInherit(d,q)),Z[d]=q);return Z};
_.r._invalidateMixinEntry=function(c){if(MvT)for(var f in c.dependants)f!==this._currentElement&&MvT(f)};
_.r._produceCssProperties=function(c,f,d,q,Z){var M=this;d&&j_M(d,function(E,J){J&&M._map.get(J)&&(q="@apply "+J+";")});
if(!q)return c;var g=this._consumeCssProperties(""+q,Z);Z=c.slice(0,c.indexOf("--"));var O=g=this._cssTextToMap(g,!0),l=this._map.get(f),m=l&&l.properties;m?O=Object.assign(Object.create(m),g):this._map.set(f,O);var H=[],A,Y=!1;for(A in O){var t=g[A];t===void 0&&(t="initial");!m||A in m||(Y=!0);H.push(f+"_-_"+A+": "+t)}Y&&this._invalidateMixinEntry(l);l&&(l.properties=O);d&&(Z=c+";"+Z);return Z+H.join("; ")+";"};
FI.prototype.detectMixin=FI.prototype.detectMixin;FI.prototype.transformStyle=FI.prototype.JSC$11154_transformStyle;FI.prototype.transformCustomStyle=FI.prototype.transformCustomStyle;FI.prototype.transformRules=FI.prototype.transformRules;FI.prototype.transformRule=FI.prototype.transformRule;FI.prototype.transformTemplate=FI.prototype.transformTemplate;FI.prototype._separator="_-_";Object.defineProperty(FI.prototype,"invalidCallback",{get:function(){return MvT},
set:function(c){MvT=c}});var tR=new FI,Co3=function(){this.customStyleInterface=null;tR.invalidCallback=RHP},b0=function(c){!c.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(c.customStyleInterface=window.ShadyCSS.CustomStyleInterface,c.customStyleInterface.transformCallback=function(f){tR.transformCustomStyle(f)},c.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){c.customStyleInterface.enqueued&&c.flushCustomStyles()})})};
_.r=Co3.prototype;_.r.prepareTemplate=function(c,f){b0(this);q54(c)===""&&(Pfl[f]=c,f=tR.transformTemplate(c,f),c._styleAst=f)};
_.r.flushCustomStyles=function(){b0(this);if(this.customStyleInterface){var c=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var f=0;f<c.length;f++){var d=this.customStyleInterface.getStyleForCustomStyle(c[f]);d&&tR.transformCustomStyle(d)}this.customStyleInterface.enqueued=!1}}};
_.r.styleSubtree=function(c,f){b0(this);f&&tJh(c,f);if(c.shadowRoot)for(this.styleElement(c),c=c.shadowRoot.children||c.shadowRoot.childNodes,f=0;f<c.length;f++)this.styleSubtree(c[f]);else for(c=c.children||c.childNodes,f=0;f<c.length;f++)this.styleSubtree(c[f])};
_.r.styleElement=function(c){b0(this);var f=c.localName,d;f?f.indexOf("-")>-1?d=f:d=c.getAttribute&&c.getAttribute("is")||"":d=c.is;f=Pfl[d];if(!(f&&q54(f)!==""||!f||U6k(f))){if(U6k(f)||f._applyShimValidatingVersion!==f._applyShimNextVersion)this.prepareTemplate(f,d),x6C(f);if(c=c.shadowRoot)if(c=c.querySelector("style"))c.__cssRules=f._styleAst,c.textContent=GKr(f._styleAst)}};
_.r.styleDocument=function(c){b0(this);this.styleSubtree(document.body,c)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var K8=new Co3,g0y=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(c,f){K8.flushCustomStyles();K8.prepareTemplate(c,f)},
prepareTemplateStyles:function(c,f,d){window.ShadyCSS.prepareTemplate(c,f,d)},
prepareTemplateDom:function(){},
styleSubtree:function(c,f){K8.flushCustomStyles();K8.styleSubtree(c,f)},
styleElement:function(c){K8.flushCustomStyles();K8.styleElement(c)},
styleDocument:function(c){K8.flushCustomStyles();K8.styleDocument(c)},
getComputedStyleValue:function(c,f){return bpG(c,f)},
flushCustomStyles:function(){K8.flushCustomStyles()},
nativeCss:o9n,nativeShadow:S_N,cssBuild:GA,disableRuntime:ECr};g0y&&(window.ShadyCSS.CustomStyleInterface=g0y)}window.ShadyCSS.ApplyShim=tR;var kXH;kXH=window.ShadyCSS;_.EP=cd(function(c){c=a8_(jl(c));var f=BWF?c:GhH(c),d=ch3(f),q={x:"pan-x",y:"pan-y",none:"none",all:"auto"};c=function(){return f.call(this)||this};
_.K(c,f);c.prototype.created=function(){};
c.prototype.__attributeReaction=function(Z,M,g){(this.__dataAttributes&&this.__dataAttributes[Z]||Z==="disable-upgrade")&&this.attributeChangedCallback(Z,M,g,null)};
c.prototype.setAttribute=function(Z,M){if(Wn3&&!this._legacyForceObservedAttributes){var g=this.getAttribute(Z);f.prototype.setAttribute.call(this,Z,M);this.__attributeReaction(Z,g,String(M))}else f.prototype.setAttribute.call(this,Z,M)};
c.prototype.removeAttribute=function(Z){if(Wn3&&!this._legacyForceObservedAttributes){var M=this.getAttribute(Z);f.prototype.removeAttribute.call(this,Z);this.__attributeReaction(Z,M,null)}else f.prototype.removeAttribute.call(this,Z)};
c.prototype._enableProperties=function(){this.__isUpgradeDisabled||f.prototype._enableProperties.call(this)};
c.prototype._canApplyPropertyDefault=function(Z){return f.prototype._canApplyPropertyDefault.call(this,Z)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Z))};
c.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(f.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
c.prototype.attached=function(){};
c.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(f.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
c.prototype.detached=function(){};
c.prototype.attributeChangedCallback=function(Z,M,g,O){M!==g&&(Z=="disable-upgrade"?this.__isUpgradeDisabled&&g==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.YD)(this).isConnected&&this.connectedCallback()):(f.prototype.attributeChangedCallback.call(this,Z,M,g,O),this.attributeChanged(Z,M,g)))};
c.prototype.attributeChanged=function(){};
c.prototype._initializeProperties=function(){if(wu&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Z=Object.getPrototypeOf(this);Z.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Z.__hasRegisterFinished=!0);f.prototype._initializeProperties.call(this);this.root=this;this.created();Wn3&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
c.prototype._takeAttributes=function(){for(var Z=this.attributes,M=0,g=Z.length;M<g;M++){var O=Z[M];this.__attributeReaction(O.name,null,O.value)}};
c.prototype._registered=function(){};
c.prototype.ready=function(){this._ensureAttributes();f.prototype.ready.call(this)};
c.prototype._ensureAttributes=function(){};
c.prototype._applyListeners=function(){};
c.prototype.serialize=function(Z){return this._serializeValue(Z)};
c.prototype.deserialize=function(Z,M){return this._deserializeValue(Z,M)};
c.prototype.reflectPropertyToAttribute=function(Z,M,g){this._propertyToAttribute(Z,M,g)};
c.prototype.serializeValueToAttribute=function(Z,M,g){this._valueToNodeAttribute(g||this,Z,M)};
c.prototype.extend=function(Z,M){if(!Z||!M)return Z||M;for(var g=Object.getOwnPropertyNames(M),O=0,l=void 0;O<g.length&&(l=g[O]);O++){var m=Object.getOwnPropertyDescriptor(M,l);m&&Object.defineProperty(Z,l,m)}return Z};
c.prototype.mixin=function(Z,M){for(var g in M)Z[g]=M[g];return Z};
c.prototype.chainObject=function(Z,M){Z&&M&&Z!==M&&(Z.__proto__=M);return Z};
c.prototype.instanceTemplate=function(Z){Z=this.constructor._contentForTemplate(Z);return document.importNode(Z,!0)};
c.prototype.fire=function(Z,M,g){g=g||{};M=M===null||M===void 0?{}:M;Z=new Event(Z,{bubbles:g.bubbles===void 0?!0:g.bubbles,cancelable:!!g.cancelable,composed:g.composed===void 0?!0:g.composed});Z.detail=M;(0,_.YD)(g.node||this).dispatchEvent(Z);return Z};
c.prototype.listen=function(Z,M,g){Z=Z||this;var O=this.__boundListeners||(this.__boundListeners=new WeakMap),l=O.get(Z);l||(l={},O.set(Z,l));O=M+g;l[O]||(l[O]=this._addMethodEventListenerToNode(Z,M,g,this))};
c.prototype.unlisten=function(Z,M,g){Z=Z||this;var O=this.__boundListeners&&this.__boundListeners.get(Z);g=M+g;var l=O&&O[g];l&&(this._removeEventListenerFromNode(Z,M,l),O[g]=null)};
c.prototype.setScrollDirection=function(Z,M){_.uW(M||this,q[Z]||"auto")};
c.prototype.$$=function(Z){return this.root.querySelector(Z)};
c.prototype.distributeContent=function(){var Z=_.$n(this);window.ShadyDOM&&Z.shadowRoot&&ShadyDOM.flush()};
c.prototype.getEffectiveChildNodes=function(){return _.$n(this).getEffectiveChildNodes()};
c.prototype.queryDistributedElements=function(Z){return _.$n(this).queryDistributedElements(Z)};
c.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Z){return Z.nodeType===Node.ELEMENT_NODE})};
c.prototype.getEffectiveTextContent=function(){for(var Z=this.getEffectiveChildNodes(),M=[],g=0,O;O=Z[g];g++)O.nodeType!==Node.COMMENT_NODE&&M.push(O.textContent);return M.join("")};
c.prototype.queryEffectiveChildren=function(Z){return(Z=this.queryDistributedElements(Z))&&Z[0]};
c.prototype.queryAllEffectiveChildren=function(Z){return this.queryDistributedElements(Z)};
c.prototype.getContentChildNodes=function(Z){return(Z=this.root.querySelector(Z||"slot"))?_.$n(Z).getDistributedNodes():[]};
c.prototype.getContentChildren=function(Z){return this.getContentChildNodes(Z).filter(function(M){return M.nodeType===Node.ELEMENT_NODE})};
c.prototype.isLightDescendant=function(Z){return this!==Z&&(0,_.YD)(this).contains(Z)&&(0,_.YD)(this).getRootNode()===(0,_.YD)(Z).getRootNode()};
c.prototype.isLocalDescendant=function(Z){return this.root===(0,_.YD)(Z).getRootNode()};
c.prototype.scopeSubtree=function(Z,M){return JrC(Z,M===void 0?!1:M)};
c.prototype.getComputedStyleValue=function(Z){return kXH.getComputedStyleValue(this,Z)};
c.prototype.debounce=function(Z,M,g){this._debouncers=this._debouncers||{};return this._debouncers[Z]=_.OP(this._debouncers[Z],g>0?_.GN.after(g):vW,M.bind(this))};
c.prototype.isDebouncerActive=function(Z){this._debouncers=this._debouncers||{};Z=this._debouncers[Z];return!(!Z||!Z.isActive())};
c.prototype.flushDebouncer=function(Z){this._debouncers=this._debouncers||{};(Z=this._debouncers[Z])&&Z.flush()};
c.prototype.cancelDebouncer=function(Z){this._debouncers=this._debouncers||{};(Z=this._debouncers[Z])&&Z.cancel()};
c.prototype.async=function(Z,M){return M>0?_.GN.run(Z.bind(this),M):~vW.run(Z.bind(this))};
c.prototype.cancelAsync=function(Z){Z<0?vW.cancel(~Z):_.GN.cancel(Z)};
c.prototype.create=function(Z,M){Z=document.createElement(Z);if(M)if(Z.setProperties)Z.setProperties(M);else for(var g in M)Z[g]=M[g];return Z};
c.prototype.elementMatches=function(Z,M){return e43(M||this,Z)};
c.prototype.toggleAttribute=function(Z,M){var g=this;arguments.length===3&&(g=arguments[2]);arguments.length==1&&(M=!g.hasAttribute(Z));if(M)return(0,_.YD)(g).setAttribute(Z,""),!0;(0,_.YD)(g).removeAttribute(Z);return!1};
c.prototype.toggleClass=function(Z,M,g){g=g||this;arguments.length==1&&(M=!g.classList.contains(Z));M?g.classList.add(Z):g.classList.remove(Z)};
c.prototype.transform=function(Z,M){M=M||this;M.style.webkitTransform=Z;M.style.transform=Z};
c.prototype.translate3d=function(Z,M,g,O){this.transform("translate3d("+Z+","+M+","+g+")",O||this)};
c.prototype.arrayDelete=function(Z,M){if(Array.isArray(Z)){if(M=Z.indexOf(M),M>=0)return Z.splice(M,1)}else if(M=m4(this,Z).indexOf(M),M>=0)return this.splice(Z,M,1);return null};
c.prototype._logger=function(Z,M){Array.isArray(M)&&M.length===1&&Array.isArray(M[0])&&(M=M[0]);switch(Z){case "log":case "warn":case "error":console[Z].apply(console,_.LT(M))}};
c.prototype._log=function(){this._logger("log",_.hv.apply(0,arguments))};
c.prototype._warn=function(){this._logger("warn",_.hv.apply(0,arguments))};
c.prototype._error=function(){this._logger("error",_.hv.apply(0,arguments))};
c.prototype._logf=function(Z){return["[%s::%s]",this.is,Z].concat(_.LT(_.hv.apply(1,arguments)))};
_.ci.Object.defineProperties(c.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Z=(0,_.YD)(this).getRootNode();return Z instanceof DocumentFragment?Z.host:Z}}});
_.ci.Object.defineProperties(c,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Wn3&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],zaP(this.prototype)),this.__observedAttributes):d.call(this).concat("disable-upgrade")}}});
c.prototype.is="";return c});Polymer.FlattenedNodesObserver=yE_;Polymer.DomApi=R4H;Polymer.EventApi=AR;Polymer.dom=_.$n;Polymer.dom.matchesSelector=e43;Polymer.dom.flush=_.Ty;Polymer.dom.addDebouncer=_.l0;Polymer.DirMixin=GhH;Polymer.RenderStatus={beforeNextRender:_.SJN,afterNextRender:_.ol,flush:function(){for(;n9C.length||xD.length;)E9Y(n9C),E9Y(xD);ph=!1}};Polymer.LegacyElementMixin=_.EP;var OX_;OX_=Bd._mutablePropertyChange;var lmu={properties:{mutableData:Boolean},_shouldPropertyChange:function(c,f,d){return OX_(this,c,f,d,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(c,f,d){return OX_(this,c,f,d,!0)}};
Polymer.OptionalMutableDataBehavior=lmu;var Zok={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},kUP={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},gxr=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},kUP),sVH=(0,_.EP)(HTMLElement),fvP=function(c,f){c||console.warn("Polymer.Class requires `info` argument");f=f?f(sVH):sVH;f=Ook(c,f,c.behaviors);f.is=f.prototype.is=
c.is;return f};Polymer.Class=fvP;Polymer.mixinBehaviors=function(c,f){return Ook({},(0,_.EP)(f),c)};
Polymer.GenerateClassFromInfo=Ook;_.JY=function(c){var f=typeof c==="function"?c:_.JY.Class(c);c._legacyForceObservedAttributes&&(f.prototype._legacyForceObservedAttributes=c._legacyForceObservedAttributes);customElements.define(f.is,f);return f};
_.JY.Class=fvP;Polymer._polymerFn=_.JY;var BDF=window.onLegacyPolymerFunctionDefinedCallback;BDF&&BDF();var jAh={templatize:function(c,f){this._templatizerTemplate=c;this.ctor=DB(c,this,{mutableData:!!f,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(c){return new this.ctor(c)},
modelForElement:function(c){return YJY(this._templatizerTemplate,c)}};Polymer.Templatizer=jAh;_.n8=(0,_.EP)(HTMLElement).prototype;Polymer.Base=_.n8;var s_l=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.fe=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.K(_.fe,PolymerFakeBaseClass);var d2=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.K(d2,PolymerFakeBaseClass);var B4M=Symbol("Md"),tjM=[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 iXT=iXT||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},TDO;(function(c){function f(N,I,R){var qN=p.get(N);if(!qN){if(!R)return;qN=new u;p.set(N,qN)}N=qN.get(I);if(!N){if(!R)return;N=new u;qN.set(I,N)}return N}
function d(N,I,R){if(q(N,I,R))return!0;I=Y(I);return I!==null?d(N,I,R):!1}
function q(N,I,R){I=f(I,R,!1);return I===void 0?!1:!!I.has(N)}
function Z(N,I,R){if(q(N,I,R))return M(N,I,R);I=Y(I);if(I!==null)return Z(N,I,R)}
function M(N,I,R){I=f(I,R,!1);if(I!==void 0)return I.get(N)}
function g(N,I){var R=O(N,I);N=Y(N);if(N===null)return R;var qN=g(N,I);if(qN.length<=0)return R;if(R.length<=0)return qN;I=new W;N=[];R=_.C(R);for(var kl=R.next();!kl.done;kl=R.next())kl=kl.value,I.has(kl)||(I.add(kl),N.push(kl));R=_.C(qN);for(qN=R.next();!qN.done;qN=R.next())qN=qN.value,I.has(qN)||(I.add(qN),N.push(qN));return N}
function O(N,I){N=f(N,I,!1);var R=[];N&&N.forEach(function(qN,kl){return R.push(kl)});
return R}
function l(N){return N===void 0}
function m(N){return typeof N==="object"?N!==null:typeof N==="function"}
function H(N){return typeof N==="function"}
function A(N){return typeof N==="symbol"?N:String(N)}
function Y(N){var I=Object.getPrototypeOf(N);if(typeof N!=="function"||N===X||I!==X)return I;var R=Object.getPrototypeOf(N.prototype);if(R==null||R===Object.prototype)return I;R=R.constructor;return typeof R!=="function"||R===N?I:R}
function t(){function N(){this._keys=[];this._values=[];this._cache=I}
var I={};N.prototype={get size(){return this._keys.length},has:function(R){return R===this._cache?!0:this._find(R)>=0?(this._cache=R,!0):!1},
get:function(R){var qN=this._find(R);if(qN>=0)return this._cache=R,this._values[qN]},
set:function(R,qN){this.delete(R);this._keys.push(R);this._values.push(qN);this._cache=R;return this},
delete:function(R){R=this._find(R);return R>=0?(this._keys.splice(R,1),this._values.splice(R,1),this._cache=I,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=I},
forEach:function(R){for(var qN=this.size,kl=0;kl<qN;++kl){var BN=this._keys[kl],tP=this._values[kl];this._cache=BN;R.call(this,tP,BN,this)}},
_find:function(R){for(var qN=this._keys,kl=qN.length,BN=0;BN<kl;++BN)if(qN[BN]===R)return BN;return-1}};
return N}
function E(){function N(){this._map=new u}
N.prototype={get size(){return this._map.length},has:function(I){return this._map.has(I)},
add:function(I){this._map.set(I,I);return this},
delete:function(I){return this._map.delete(I)},
clear:function(){this._map.clear()},
forEach:function(I,R){this._map.forEach(I,R)}};
return N}
function J(){function N(){this._key=R()}
function I(AP,eM){for(var ue=0;ue<eM;++ue)AP[ue]=Math.random()*255|0}
function R(){do{if(kl)var AP=kl.randomBytes(16);else typeof Uint8Array==="function"?(AP=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(AP):I(AP,16)):(AP=Array(16),I(AP,16));AP[6]=AP[6]&79|64;AP[8]=AP[8]&191|128;for(var eM="",ue=0;ue<16;++ue){var BH=AP[ue];if(ue===4||ue===6||ue===8)eM+="-";BH<16&&(eM+="0");eM+=BH.toString(16).toLowerCase()}AP="@@WeakMap@@"+eM}while(BN.call(tP,AP));tP[AP]=!0;return AP}
function qN(AP,eM){if(!BN.call(AP,EC)){if(!eM)return;Object.defineProperty(AP,EC,{value:Object.create(null)})}return AP[EC]}
var kl=typeof global!=="undefined"&&typeof iXT==="object"&&typeof require==="function"&&require("crypto"),BN=Object.prototype.hasOwnProperty,tP={},EC=R();N.prototype={has:function(AP){return(AP=qN(AP,!1))?this._key in AP:!1},
get:function(AP){if(AP=qN(AP,!1))return AP[this._key]},
set:function(AP,eM){qN(AP,!0)[this._key]=eM;return this},
delete:function(AP){return(AP=qN(AP,!1))&&this._key in AP?delete AP[this._key]:!1},
clear:function(){this._key=R()}};
return N}
var X=Object.getPrototypeOf(Function),u=typeof Map==="function"?Map:t(),W=typeof Set==="function"?Set:E(),p=new (typeof WeakMap==="function"?WeakMap:J());c.decorate=function(N,I,R,qN){if(l(qN)){if(l(R)){if(!Array.isArray(N))throw new TypeError;if(!H(I))throw new TypeError;for(R=N.length-1;R>=0;--R)if(qN=(0,N[R])(I),!l(qN)){if(!H(qN))throw new TypeError;I=qN}return I}if(!Array.isArray(N))throw new TypeError;if(!m(I))throw new TypeError;R=A(R);for(qN=N.length-1;qN>=0;--qN)(0,N[qN])(I,R)}else{if(Array.isArray(N))if(m(I)){if(l(R))throw new TypeError;
if(!m(qN))throw new TypeError;}else throw new TypeError;else throw new TypeError;R=A(R);for(var kl=N.length-1;kl>=0;--kl){var BN=(0,N[kl])(I,R,qN);if(!l(BN)){if(!m(BN))throw new TypeError;qN=BN}}return qN}};
c.metadata=function(N,I){return function(R,qN){if(l(qN)){if(!H(R))throw new TypeError;f(R,void 0,!0).set(N,I)}else{if(!m(R))throw new TypeError;qN=A(qN);f(R,qN,!0).set(N,I)}}};
c.defineMetadata=function(N,I){var R;if(m(I))l(R)||(R=A(R));else throw new TypeError;f(I,R,!0).set("parameters",N)};
c.hasMetadata=function(N,I,R){if(m(I))l(R)||(R=A(R));else throw new TypeError;return d(N,I,R)};
c.hasOwnMetadata=function(N,I,R){if(m(I))l(R)||(R=A(R));else throw new TypeError;return q(N,I,R)};
c.getMetadata=function(N,I,R){if(m(I))l(R)||(R=A(R));else throw new TypeError;return Z(N,I,R)};
c.getOwnMetadata=function(N,I,R){if(m(I))l(R)||(R=A(R));else throw new TypeError;return M(N,I,R)};
c.getMetadataKeys=function(N,I){if(m(N))l(I)||(I=A(I));else throw new TypeError;return g(N,I)};
c.getOwnMetadataKeys=function(N,I){if(m(N))l(I)||(I=A(I));else throw new TypeError;return O(N,I)};
c.deleteMetadata=function(N,I,R){if(m(I))l(R)||(R=A(R));else throw new TypeError;var qN=f(I,R,!1);if(!l(qN)){if(!qN.delete(N))return!1;if(qN.size>0)return!0;N=p.get(I);N.delete(R);if(N.size>0)return!0;p.delete(I);return!0}};
(function(N){if(typeof N.Reflect!=="undefined"){if(N.Reflect!==c)for(var I in c)N.Reflect[I]=c[I]}else N.Reflect=c})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(TDO||(TDO={}));var mL_=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
mL_.prototype.addEventListener=function(c,f,d){this.target.addEventListener(c,f,d)};
mL_.prototype.removeEventListener=function(c,f,d){this.target.removeEventListener(c,f,d)};
mL_.prototype.dispatchEvent=function(c){if(this.onabort&&c.type==="abort")this.onabort(c);return this.target.dispatchEvent(c)};var HX_=function(){this.signal=new mL_};
HX_.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var c=document.createEvent("Event");c.initEvent("abort",!1,!1);this.signal.dispatchEvent(c)}};var wP4=self;var AhF=[0,_.UJ,_.x9,_.UJ];var YOr=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(YOr,_.d8);var Fq_=_.kh(YOr,[0,_.j4N,_.oW,AhF,_.x9,_.c1]);_.rn(_.js,_.ES);_.r=_.js.prototype;_.r.start=function(){this.stop();this.usingListeners_=!1;var c=tv3(this),f=bXj(this);c&&!f&&this.JSC$11203_win_.mozRequestAnimationFrame?(this.JSC$11203_id_=_.Lx(this.JSC$11203_win_,"MozBeforePaint",this.callback_),this.JSC$11203_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11203_id_=c&&f?c.call(this.JSC$11203_win_,this.callback_):this.JSC$11203_win_.setTimeout(Boj(this.callback_),20)};
_.r.stop=function(){if(this.isActive()){var c=tv3(this),f=bXj(this);c&&!f&&this.JSC$11203_win_.mozRequestAnimationFrame?$p(this.JSC$11203_id_):c&&f?f.call(this.JSC$11203_win_,this.JSC$11203_id_):this.JSC$11203_win_.clearTimeout(this.JSC$11203_id_)}this.JSC$11203_id_=null};
_.r.fire=function(){this.stop();this.JSC$11205_doAction_()};
_.r.isActive=function(){return this.JSC$11203_id_!=null};
_.r.JSC$11205_doAction_=function(){this.usingListeners_&&this.JSC$11203_id_&&$p(this.JSC$11203_id_);this.JSC$11203_id_=null;this.JSC$11203_listener_.call(this.handler_,_.M6())};
_.r.disposeInternal=function(){this.stop();_.js.superClass_.disposeInternal.call(this)};
var tv3=function(c){c=c.JSC$11203_win_;return c.requestAnimationFrame||c.webkitRequestAnimationFrame||c.mozRequestAnimationFrame||c.oRequestAnimationFrame||c.msRequestAnimationFrame||null},bXj=function(c){c=c.JSC$11203_win_;
return c.cancelAnimationFrame||c.cancelRequestAnimationFrame||c.webkitCancelRequestAnimationFrame||c.mozCancelRequestAnimationFrame||c.oCancelRequestAnimationFrame||c.msCancelRequestAnimationFrame||null};_.Gx=function(c,f,d){_.ES.call(this);this.JSC$11206_listener_=d!=null?c.bind(d):c;this.JSC$11206_interval_=f;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11206_timer_=null};
_.K(_.Gx,_.ES);_.r=_.Gx.prototype;_.r.fire=function(c){this.args_=arguments;this.JSC$11206_timer_||this.pauseCount_?this.shouldFire_=!0:Kqo(this)};
_.r.stop=function(){this.JSC$11206_timer_&&(_.dz.clearTimeout(this.JSC$11206_timer_),this.JSC$11206_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.r.pause=function(){this.pauseCount_++};
_.r.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11206_timer_||(this.shouldFire_=!1,Kqo(this))};
_.r.disposeInternal=function(){_.ES.prototype.disposeInternal.call(this);this.stop()};
var Kqo=function(c){c.JSC$11206_timer_=SW(function(){c.JSC$11206_timer_=null;c.shouldFire_&&!c.pauseCount_&&(c.shouldFire_=!1,Kqo(c))},c.JSC$11206_interval_);
var f=c.args_;c.args_=null;c.JSC$11206_listener_.apply(null,f)};var E0y=function(c,f){this.childIterator_=c[_.dz.Symbol.iterator]();this.mapFn_=f};
E0y.prototype[Symbol.iterator]=function(){return this};
E0y.prototype.next=function(){var c=this.childIterator_.next();return{value:c.done?void 0:this.mapFn_.call(void 0,c.value),done:c.done}};
var n0r=function(c,f){return new E0y(c,f)};var $LK={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 HAr=function(c){var f=QVy(c);if(!f)throw Error("Qd`"+c);return f},QVy=function(c){var f={};
c=String(c);var d=c.charAt(0)=="#"?c:"#"+c;if(SO_.test(d))return f.hex=lFn(d),f.type="hex",f;d=t$Y(c);return d.length?(f.hex=jgk(d[0],d[1],d[2]),f.type="rgb",f):$LK&&(c=$LK[c.toLowerCase()])?(f.hex=c,f.type="named",f):null},LqK=/#(.)(.)(.)/,lFn=function(c){if(!SO_.test(c))throw Error("Sd`"+c);
c.length==4&&(c=c.replace(LqK,"#$1$1$2$2$3$3"));return c.toLowerCase()},AXe=function(c){c=lFn(c);
c=parseInt(c.slice(1),16);return[c>>16,c>>8&255,c&255]},jgk=function(c,f,d){c=Number(c);
f=Number(f);d=Number(d);if(c!=(c&255)||f!=(f&255)||d!=(d&255))throw Error("Td`"+c+"`"+f+"`"+d);f=c<<16|f<<8|d;return c<16?"#"+(16777216|f).toString(16).slice(1):"#"+f.toString(16)},SO_=/^#(?:[0-9a-f]{3}){1,2}$/i,zNv=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,t$Y=function(c){var f=c.match(zNv);
if(f){c=Number(f[1]);var d=Number(f[2]);f=Number(f[3]);if(c>=0&&c<=255&&d>=0&&d<=255&&f>=0&&f<=255)return[c,d,f]}return[]};var Jho={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},bh=Jho;bh=Jho;var Hcr,amo,Vvj;Hcr=function(c,f){switch(f){case 1:return c%4!=0||c%100==0&&c%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
amo=function(c,f,d,q,Z){c=new Date(c,f,d);Z=Z||0;return c.valueOf()+(((q!==void 0?q:3)-Z+7)%7-((c.getDay()+6)%7-Z+7)%7)*864E5};
_.$X=function(c,f,d){typeof c==="number"?(this.date=Vvj(c,f||0,d||1),XSy(this,d||1)):_.Ik(c)?(this.date=Vvj(c.getFullYear(),c.getMonth(),c.getDate()),XSy(this,c.getDate())):(this.date=new Date(_.M6()),c=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),XSy(this,c))};
Vvj=function(c,f,d){f=new Date(c,f,d);c>=0&&c<100&&f.setFullYear(f.getFullYear()-1900);return f};
_.r=_.$X.prototype;_.r.firstDayOfWeek_=bh.FIRSTDAYOFWEEK;_.r.firstWeekCutOffDay_=bh.FIRSTWEEKCUTOFFDAY;_.r.clone=function(){var c=new _.$X(this.date);c.firstDayOfWeek_=this.firstDayOfWeek_;c.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return c};
_.r.getFullYear=function(){return this.date.getFullYear()};
_.r.getYear=function(){return this.getFullYear()};
_.r.getMonth=function(){return this.date.getMonth()};
_.r.getDate=function(){return this.date.getDate()};
_.r.getTime=function(){return this.date.getTime()};
_.r.getDay=function(){return this.date.getDay()};
_.r.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.r.getUTCMonth=function(){return this.date.getUTCMonth()};
_.r.getUTCDate=function(){return this.date.getUTCDate()};
_.r.getUTCDay=function(){return this.date.getDay()};
_.r.getUTCHours=function(){return this.date.getUTCHours()};
_.r.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.r.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.r.set=function(c){this.date=new Date(c.getFullYear(),c.getMonth(),c.getDate())};
_.r.setFullYear=function(c){this.date.setFullYear(c)};
_.r.setYear=function(c){this.setFullYear(c)};
_.r.setMonth=function(c){this.date.setMonth(c)};
_.r.setDate=function(c){this.date.setDate(c)};
_.r.setTime=function(c){this.date.setTime(c)};
_.r.setUTCFullYear=function(c){this.date.setUTCFullYear(c)};
_.r.setUTCMonth=function(c){this.date.setUTCMonth(c)};
_.r.setUTCDate=function(c){this.date.setUTCDate(c)};
_.r.add=function(c){if(c.years||c.months){var f=this.getMonth()+c.months+c.years*12,d=this.getYear()+Math.floor(f/12);f%=12;f<0&&(f+=12);var q=Math.min(Hcr(d,f),this.getDate());this.setDate(1);this.setFullYear(d);this.setMonth(f);this.setDate(q)}c.days&&(d=this.getYear(),f=d>=0&&d<=99?-1900:0,c=new Date((new Date(d,this.getMonth(),this.getDate(),12)).getTime()+c.days*864E5),this.setDate(1),this.setFullYear(c.getFullYear()+f),this.setMonth(c.getMonth()),this.setDate(c.getDate()),XSy(this,c.getDate()))};
_.r.JSC$11219_toIsoString=function(c){var f=this.getFullYear(),d=f<0?"-":f>=1E4?"+":"";return[d+_.M0(Math.abs(f),d?6:4),_.M0(this.getMonth()+1,2),_.M0(this.getDate(),2)].join(c?"-":"")};
_.r.equals=function(c){return!(!c||this.getYear()!=c.getYear()||this.getMonth()!=c.getMonth()||this.getDate()!=c.getDate())};
_.r.toString=function(){return this.JSC$11219_toIsoString()};
var XSy=function(c,f){c.getDate()!=f&&c.date.setUTCHours(c.date.getUTCHours()+(c.getDate()<f?1:-1))};
_.$X.prototype.valueOf=function(){return this.date.valueOf()};var Sl=function(c,f,d,q,Z){this.reversed=!!f;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!d;c&&QI(this,c,q);this.depth=Z!=void 0?Z:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.rn(Sl,gE);var QI=function(c,f,d,q){if(c.node=f)c.tagType=typeof d==="number"?d:c.node.nodeType!=1?0:c.reversed?-1:1;typeof q==="number"&&(c.depth=q)};
_.r=Sl.prototype;_.r.JSC$11234_copyFrom=function(c){this.node=c.node;this.tagType=c.tagType;this.depth=c.depth;this.reversed=c.reversed;this.constrained=c.constrained};
_.r.clone=function(){return new Sl(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.r.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return k3;var c=this.node;var f=this.reversed?-1:1;if(this.tagType==f){var d=this.reversed?c.lastChild:c.firstChild;d?QI(this,d):QI(this,c,f*-1)}else(d=this.reversed?c.previousSibling:c.nextSibling)?QI(this,d):QI(this,c.parentNode,f*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(c=this.node)?O4(c):k3};
_.r.equals=function(c){return c.node==this.node&&(!this.node||c.tagType==this.tagType)};
_.r.splice=function(c){var f=this.node,d=this.reversed?1:-1;this.tagType==d&&(this.tagType=d*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Sl.prototype.next.call(this);this.reversed=!this.reversed;d=_.WN(arguments[0])?arguments[0]:arguments;for(var q=d.length-1;q>=0;q--)_.XB(d[q],f);_.Y6(f)};var uw_=function(){},L8=function(c){for(var f=[],d=c.getTextRangeCount(),q=0;q<d;q++)f.push(c.getTextRange(q));
return f};
uw_.prototype.isReversed=function(){return!1};
uw_.prototype.getWindow=function(){return VT(_.X1(this.JSC$11236_getStartNode()))};
var v0O=function(c,f){Sl.call(this,c,f,!0)};
_.rn(v0O,Sl);var zy=function(c,f,d,q,Z){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Z;if(c){this.startNode_=c;this.startOffset_=f;this.endNode_=d;this.endOffset_=q;if(c.nodeType==1&&c.tagName!="BR")if(c=c.childNodes,f=c[f])this.startNode_=f,this.startOffset_=0;else{c.length&&(this.startNode_=_.zY(c));var M=!0}d.nodeType==1&&((this.endNode_=d.childNodes[q])?this.endOffset_=0:this.endNode_=d)}Sl.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);M&&this.next()};
_.rn(zy,v0O);_.r=zy.prototype;_.r.JSC$11242_getStartNode=function(){return this.startNode_};
_.r.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)};
_.r.next=function(){return this.isLast()?k3:zy.superClass_.next.call(this)};
_.r.JSC$11234_copyFrom=function(c){this.startNode_=c.startNode_;this.endNode_=c.endNode_;this.startOffset_=c.startOffset_;this.endOffset_=c.endOffset_;this.isReversed_=c.isReversed_;zy.superClass_.JSC$11234_copyFrom.call(this,c)};
_.r.clone=function(){var c=new zy(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);c.JSC$11234_copyFrom(this);return c};var hNj=function(){};
hNj.prototype.__iterator__=function(){return new zy(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var JR=function(c){this.range_=c};
_.rn(JR,hNj);var wSu=function(c){var f=_.X1(c).createRange();if(c.nodeType==3)f.setStart(c,0),f.setEnd(c,c.length);else if(Jq(c)||c.nodeType==3){for(var d,q=c;(d=q.firstChild)&&(Jq(d)||d.nodeType==3);)q=d;f.setStart(q,0);for(q=c;(d=q.lastChild)&&(Jq(d)||d.nodeType==3);)q=d;f.setEnd(q,q.nodeType==1?q.childNodes.length:q.length)}else d=c.parentNode,c=Array.prototype.indexOf.call(d.childNodes,c),f.setStart(d,c),f.setEnd(d,c+1);return f},yh3=function(c,f,d,q){var Z=_.X1(c).createRange();
Z.setStart(c,f);Z.setEnd(d,q);return Z};
_.r=JR.prototype;_.r.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.r.getContainer=function(){return this.range_.commonAncestorContainer};
_.r.compareBrowserRangeEndpoints=function(c,f,d){return this.range_.compareBoundaryPoints(d==1?f==1?_.dz.Range.START_TO_START:_.dz.Range.START_TO_END:f==1?_.dz.Range.END_TO_START:_.dz.Range.END_TO_END,c)};
_.r.isCollapsed=function(){return this.range_.collapsed};
_.r.select=function(c){this.selectInternal(VT(_.X1(this.range_.startContainer)).getSelection(),c)};
_.r.selectInternal=function(c){c.removeAllRanges();c.addRange(this.range_)};
_.r.insertNode=function(c,f){var d=this.range_.cloneRange();d.collapse(f);d.insertNode(c);d.detach();return c};
_.r.collapse=function(c){this.range_.collapse(c)};_.rn(qT,JR);qT.prototype.selectInternal=function(c,f){!f||this.isCollapsed()?qT.superClass_.selectInternal.call(this,c,f):(c.collapse(this.range_.endContainer,this.range_.endOffset),c.extend(this.range_.startContainer,this.range_.startOffset))};_.rn(Zz,JR);Zz.prototype.compareBrowserRangeEndpoints=function(c,f,d){return Zz.superClass_.compareBrowserRangeEndpoints.call(this,c,f,d)};
Zz.prototype.selectInternal=function(c,f){f?c.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):c.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Wqr=function(c){return _.sJ?new Zz(c):_.lf?new qT(c):new JR(c)};var aY=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},DLv;
_.rn(aY,uw_);DLv=function(c,f){var d=new aY;d.browserRangeWrapper_=c;d.isReversed_=!!f;return d};
_.eNj=function(c){c=_.sJ?new Zz(wSu(c)):_.lf?new qT(wSu(c)):new JR(wSu(c));return DLv(c)};
_.VI=function(c,f,d,q){var Z=new aY;Z.isReversed_=NDT(c,f,d,q);if(_.Gr(c)&&!Jq(c)){var M=c.parentNode;f=Array.prototype.indexOf.call(M.childNodes,c);c=M}_.Gr(d)&&!Jq(d)&&(M=d.parentNode,q=Array.prototype.indexOf.call(M.childNodes,d),d=M);Z.isReversed_?(Z.startNode_=d,Z.startOffset_=q,Z.endNode_=c,Z.endOffset_=f):(Z.startNode_=c,Z.startOffset_=f,Z.endNode_=d,Z.endOffset_=q);return Z};
_.r=aY.prototype;_.r.clone=function(){var c=new aY;c.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();c.startNode_=this.startNode_;c.startOffset_=this.startOffset_;c.endNode_=this.endNode_;c.endOffset_=this.endOffset_;c.isReversed_=this.isReversed_;return c};
_.r.JSC$11236_getType=function(){return"text"};
_.r.getBrowserRangeObject=function(){return XI(this).range_};
_.r.getTextRangeCount=function(){return 1};
_.r.getTextRange=function(){return this};
var XI=function(c){var f;if(!(f=c.browserRangeWrapper_)){f=c.JSC$11236_getStartNode();var d=c.JSC$11236_getStartOffset(),q=c.JSC$11236_getEndNode(),Z=c.JSC$11236_getEndOffset();f=_.sJ?new Zz(yh3(f,d,q,Z)):_.lf?new qT(yh3(f,d,q,Z)):new JR(yh3(f,d,q,Z));f=c.browserRangeWrapper_=f}return f};
_.r=aY.prototype;_.r.getContainer=function(){return XI(this).getContainer()};
_.r.JSC$11236_getStartNode=function(){return this.startNode_||(this.startNode_=XI(this).range_.startContainer)};
_.r.JSC$11236_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=XI(this).range_.startOffset};
_.r.JSC$11236_getEndNode=function(){return this.endNode_||(this.endNode_=XI(this).range_.endContainer)};
_.r.JSC$11236_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=XI(this).range_.endOffset};
_.r.isReversed=function(){return this.isReversed_};
_.r.JSC$11236_containsRange=function(c,f){if(c.JSC$11236_getType()=="text"){var d=XI(this);c=XI(c);f=f&&!c.isCollapsed();c=c.range_;d=f?d.compareBrowserRangeEndpoints(c,0,1)>=0&&d.compareBrowserRangeEndpoints(c,1,0)<=0:d.compareBrowserRangeEndpoints(c,0,0)>=0&&d.compareBrowserRangeEndpoints(c,1,1)<=0}else d=!1;return d};
_.r.isCollapsed=function(){return XI(this).isCollapsed()};
_.r.JSC$11236_getText=function(){return XI(this).range_.toString()};
_.r.__iterator__=function(){return new zy(this.JSC$11236_getStartNode(),this.JSC$11236_getStartOffset(),this.JSC$11236_getEndNode(),this.JSC$11236_getEndOffset())};
_.r.select=function(){XI(this).select(this.isReversed_)};
_.r.JSC$11236_removeContents=function(){var c=XI(this).range_;c.extractContents();if(c.startContainer.hasChildNodes()&&(c=c.startContainer.childNodes[c.startOffset])){var f=c.previousSibling;lp_(c)==""&&_.Y6(c);f&&lp_(f)==""&&_.Y6(f)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.r.insertNode=function(c,f){c=XI(this).insertNode(c,f);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return c};
_.r.collapse=function(c){c=this.isReversed()?!c:c;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(c);c?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var ImH=function(){};
_.rn(ImH,uw_);ImH.prototype.JSC$11236_containsRange=function(c,f){var d=L8(this);c=L8(c);return(f?R7:_.qwr)(c,function(q){return R7(d,function(Z){return Z.JSC$11236_containsRange(q,f)})})};
ImH.prototype.insertNode=function(c,f){f?_.Vv(c,this.JSC$11236_getStartNode()):_.XB(c,this.JSC$11236_getEndNode());return c};var Poy,RNv=tT().JSC$9268_document_.documentElement;Poy=RNv.requestFullscreen?"fullscreenchange":RNv.webkitRequestFullscreen?"webkitfullscreenchange":RNv.mozRequestFullScreen?"mozfullscreenchange":RNv.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var UL_=function(){var c=tT().JSC$9268_document_;return!!(c.webkitIsFullScreen||c.mozFullScreen||c.msFullscreenElement||c.fullscreenElement)};var u0=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.rn(u0,ImH);_.r=u0.prototype;_.r.clone=function(){var c=new u0;c.browserRanges_=_.yn(this.browserRanges_);return c};
_.r.JSC$11236_getType=function(){return"mutli"};
_.r.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.r.getTextRangeCount=function(){return this.browserRanges_.length};
_.r.getTextRange=function(c){this.ranges_[c]||(this.ranges_[c]=DLv(Wqr(this.browserRanges_[c])));return this.ranges_[c]};
_.r.getContainer=function(){if(!this.container_){for(var c=[],f=this.getTextRangeCount(),d=0;d<f;d++)c.push(this.getTextRange(d).getContainer());this.container_=Z33.apply(null,c)}return this.container_};
var vd=function(c){c.sortedRanges_||(c.sortedRanges_=L8(c),c.sortedRanges_.sort(function(f,d){var q=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();var Z=d.JSC$11236_getStartNode();d=d.JSC$11236_getStartOffset();return q==Z&&f==d?0:NDT(q,f,Z,d)?1:-1}));
return c.sortedRanges_};
_.r=u0.prototype;_.r.JSC$11236_getStartNode=function(){return vd(this)[0].JSC$11236_getStartNode()};
_.r.JSC$11236_getStartOffset=function(){return vd(this)[0].JSC$11236_getStartOffset()};
_.r.JSC$11236_getEndNode=function(){return _.zY(vd(this)).JSC$11236_getEndNode()};
_.r.JSC$11236_getEndOffset=function(){return _.zY(vd(this)).JSC$11236_getEndOffset()};
_.r.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.r.JSC$11236_getText=function(){return L8(this).map(function(c){return c.JSC$11236_getText()}).join("")};
_.r.__iterator__=function(){return new hR(this)};
_.r.select=function(){var c=this.getWindow().getSelection();c.removeAllRanges();for(var f=this.getTextRangeCount(),d=0;d<f;d++)c.addRange(this.getTextRange(d).getBrowserRangeObject())};
_.r.JSC$11236_removeContents=function(){L8(this).forEach(function(c){c.JSC$11236_removeContents()})};
_.r.collapse=function(c){if(!this.isCollapsed()){var f=c?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;f.collapse(c);this.ranges_=[f];this.sortedRanges_=[f];this.browserRanges_=[f.getBrowserRangeObject()]}};
var hR=function(c){this.iterators_=null;this.currentIdx_=0;c&&(this.iterators_=vd(c).map(function(f){return _.lBo(f)}));
Sl.call(this,c?this.JSC$11242_getStartNode():null,!1,!0)};
_.rn(hR,v0O);_.r=hR.prototype;_.r.JSC$11242_getStartNode=function(){return this.iterators_[0].JSC$11242_getStartNode()};
_.r.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.r.next=function(){for(;this.currentIdx_<this.iterators_.length;){var c=this.iterators_[this.currentIdx_],f=c.next();if(f.done)this.currentIdx_++;else return QI(this,c.node,c.tagType,c.depth),f}return k3};
_.r.JSC$11234_copyFrom=function(c){this.iterators_=_.yn(c.iterators_);hR.superClass_.JSC$11234_copyFrom.call(this,c)};
_.r.clone=function(){var c=new hR(null);c.JSC$11234_copyFrom(this);return c};var pST,NDT;_.HZ=function(){var c=window.getSelection();return c&&pST(c)};
pST=function(c){var f=!1;if(c.createRange)try{var d=c.createRange()}catch(Z){return null}else if(c.rangeCount){if(c.rangeCount>1){d=new u0;f=c.rangeCount;for(var q=0;q<f;q++)d.browserRanges_.push(c.getRangeAt(q));return d}d=c.getRangeAt(0);f=NDT(c.anchorNode,c.anchorOffset,c.focusNode,c.focusOffset)}else return null;return DLv(Wqr(d),f)};
_.wh=function(c,f){return _.VI(c,f,c,f)};
_.yI=function(c,f,d,q){return _.VI(c,f,d,q)};
NDT=function(c,f,d,q){if(c==d)return q<f;var Z;if(c.nodeType==1&&f)if(Z=c.childNodes[f])c=Z,f=0;else if(_.wb(c,d))return!0;if(d.nodeType==1&&q)if(Z=d.childNodes[q])d=Z,q=0;else if(_.wb(d,c))return!1;return(qr3(c,d)||f-q)>0};var Wd=function(){_.KF.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.n1)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.n1)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.n1)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.n1)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.n1)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.n1)(this.dispatchProgressEvent_,this)};
_.rn(Wd,_.KF);Wd.prototype.abort=function(){try{this.reader_.abort()}catch(c){throw new sbo(c,"aborting read");}};
Wd.prototype.getError=function(){return this.reader_.error&&new sbo(this.reader_.error,"reading file")};
Wd.prototype.dispatchProgressEvent_=function(c){this.dispatchEvent(new BKK(c,this))};
Wd.prototype.disposeInternal=function(){Wd.superClass_.disposeInternal.call(this);delete this.reader_};
var o03=function(c){var f=new Wd,d=xLj(f);f.reader_.readAsArrayBuffer(c);return d},GXu=function(c){var f=new Wd,d=xLj(f);
f.reader_.readAsDataURL(c);return d},xLj=function(c){var f=new Rp;
c.listen("loadend",_.Yt(function(d,q){var Z=q.reader_.result,M=q.getError();Z==null||M?d.errback(M):d.callback(Z);q.dispose()},f,c));
return f};var Du=function(){_.KF.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11276_eventHandler_=new _.r2(this);this.JSC$11276_isInitialized_=!1};
_.rn(Du,_.KF);var cYH=new _.H2("d"),f_r=new _.H2("beforedragstart"),dhH=new _.H2("dragstart"),jaO=new _.H2("beforedragmove"),qko=new _.H2("dragmove"),Z$3=new _.H2("beforedragend"),MB3=new _.H2("dragend"),rYo=new _.H2("e");Du.prototype.isDragging=function(){return!!this.JSC$11276_dragger_};
var Cau=function(c,f){f.dlgGrowthDirection_=0;f.dlgDragHoverClass_=void 0;f.dlgDragPermission=0;c.dragLists_.push(f)},gE3=function(c,f){c.getHandleForDragItem_=f};
Du.prototype.init=function(){if(!this.JSC$11276_isInitialized_){for(var c=this.dragLists_.length,f=0;f<c;f++)for(var d=_.u4(this.dragLists_[f]),q=d.length,Z=0;Z<q;++Z){var M=d[Z],g=this.getHandleForDragItem_(M),O=_.Rk(g);this.dragItemForHandle_[O]=M;this.dragItemHoverClasses_&&(this.JSC$11276_eventHandler_.listen(M,"mouseover",this.handleDragItemMouseover_),this.JSC$11276_eventHandler_.listen(M,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11276_eventHandler_.listen(g,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11276_eventHandler_.listen(g,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(M);this.JSC$11276_eventHandler_.listen(g,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11276_isInitialized_=!0}};
Du.prototype.disposeInternal=function(){this.JSC$11276_eventHandler_.dispose();for(var c=this.dragLists_.length,f=0;f<c;f++){var d=this.dragLists_[f];d.dlgGrowthDirection_=void 0;d.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;ka3(this);Du.superClass_.disposeInternal.call(this)};
var O$H=function(c,f){for(var d=c.dragLists_.length,q=0;q<d;q++){var Z=c.dragLists_[q];Z.dlgBounds_=Q_4(Z)}d=c.dragItems_.length;for(q=0;q<d;q++)Z=c.dragItems_[q],Z!=f&&(Z.dlgBounds_=Q_4(Z))};
_.r=Du.prototype;
_.r.handlePotentialDragStart_=function(c){var f=_.Rk(c.currentTarget);f=this.dragItemForHandle_[f];if(f.parentElement.dlgDragPermission!=2){this.currDragItem_=f;a:{f=this.currDragItem_;for(var d=f.cloneNode(!0),q=FE("TEXTAREA",f),Z=FE("TEXTAREA",d),M=0;M<q.length;M++)Z[M].value=q[M].value;switch(f.tagName){case "TR":f=_.Lo("TABLE",null,_.Lo("TBODY",null,d));break a;case "TD":case "TH":f=_.Lo("TABLE",null,_.Lo("TBODY",null,_.Lo("TR",null,d)));break a;case "TEXTAREA":d.value=f.value;default:f=d;break a}f=
void 0}this.draggerEl_=f;this.draggerElClasses_&&Ip(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.X1(this.currDragItem_).body.appendChild(this.draggerEl_);d=_.u5(this.currDragItem_);f=this.draggerEl_;q=_.u5(f);if(d instanceof _.a8){var g=d.y;d=d.x}W1(f,f.offsetLeft+(d-q.x),f.offsetTop+(Number(g)-q.y));this.JSC$11276_dragger_=new _.w3(this.draggerEl_);_.leT(this.JSC$11276_dragger_,this.hysteresisDistance_);
_.Lx(this.JSC$11276_dragger_,"start",this.handleDragStart_,!1,this);_.Lx(this.JSC$11276_dragger_,"end",this.handleDragEnd_,!1,this);_.Lx(this.JSC$11276_dragger_,"earlycancel",this.JSC$11278_cleanup_,!1,this);this.dispatchEvent(new el(cYH,this,c,this.currDragItem_,this.draggerEl_,this.JSC$11276_dragger_));this.JSC$11276_dragger_.startDrag(c)}};
_.r.handleDragStart_=function(c){if(this.dispatchEvent(new el(f_r,this,c.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.fp3(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Ip(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var f=H3K(this.draggerEl_);this.draggerEl_.halfWidth=f.width/2;this.draggerEl_.halfHeight=f.height/2;f=this.draggerEl_.getBoundingClientRect();
var d=c.clientY,q=s7o(this.JSC$11276_dragger_,c.clientX);if(q>f.right){var Z=this.currDragItem_.getBoundingClientRect();this.JSC$11276_dragger_.deltaX=q-(q-Z.left)/Z.width*f.width}d=BRH(this.JSC$11276_dragger_,d);d>f.bottom&&(this.JSC$11276_dragger_.deltaY+=d-f.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";O$H(this,this.currDragItem_);this.currDragItem_.style.display="";_.Lx(this.JSC$11276_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new el(dhH,
this,c.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11276_dragger_))}else c.preventDefault(),this.JSC$11278_cleanup_()};
_.r.handleDragMove_=function(c){var f=_.u5(this.draggerEl_);f=new _.a8(f.x+this.draggerEl_.halfWidth,f.y+this.draggerEl_.halfHeight);a:{var d=null;if(this.currDragItem_.style.display!="none"){d=this.currDragItem_.parentNode;var q=Q_4(d);if(l_H(f,q))break a}q=this.dragLists_.length;for(var Z=0;Z<q;Z++){var M=this.dragLists_[Z];if(M!=d&&l_H(f,M.dlgBounds_)){d=M;break a}}d=null}if(d){if(d==null)throw Error("Ud");q=0;Z=!1;M=void 0;switch(d.dlgGrowthDirection_){case 0:q=f.y;var g=sa3;var O=B1_;break;case 4:Z=
!0;case 2:q=f.x;g=i$T;O=B1_;break;case 5:Z=!0;case 3:q=f.x,g=T1H,O=mh3}for(var l=null,m,H=_.u4(d),A=H.length,Y=0;Y<A;Y++){var t=H[Y];if(t!=this.currDragItem_){var E=g(t.dlgBounds_);if(Z){var J=H$y(t,f);M===void 0&&(M=J);O(q,E)&&(m==void 0||J<M||J==M&&(O(E,m)||E==m))&&(l=t,m=E);J<M&&(M=J)}else O(q,E)&&(m==void 0||O(E,m))&&(l=t,m=E)}}g=l!==null&&H$y(l,f)>M?null:l}else g=null;if(!this.dispatchEvent(new el(jaO,this,c,this.currDragItem_,this.draggerEl_,this.JSC$11276_dragger_,f,d,g)))return!1;if(d&&d.dlgDragPermission!=
1)this.currDragItem_.parentNode==d&&_.fp3(this.currDragItem_)==g||d.insertBefore(this.currDragItem_,g),this.currDragItem_.style.display="",d.dlgDragHoverClass_&&_.q5(d,d.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",O=this.dragLists_.length,m=0;m<O;m++)q=this.dragLists_[m],q.dlgDragHoverClass_&&_.d_(q,q.dlgDragHoverClass_);d!=this.currHoverList_&&(this.currHoverList_=d,O$H(this,this.currDragItem_));this.dispatchEvent(new el(qko,this,c,this.currDragItem_,this.draggerEl_,this.JSC$11276_dragger_,
f,d,g));return!1};
_.r.JSC$11278_cleanup_=function(){ka3(this);this.JSC$11276_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var c=this.dragLists_.length,f=0;f<c;f++)this.dragLists_[f].dlgBounds_=null;c=this.dragItems_.length;for(f=0;f<c;f++)this.dragItems_[f].dlgBounds_=null};
_.r.handleDragEnd_=function(c){if(!this.dispatchEvent(new el(Z$3,this,c,this.currDragItem_,this.draggerEl_,this.JSC$11276_dragger_)))return!1;ka3(this);this.dispatchEvent(new el(MB3,this,c,this.currDragItem_,this.draggerEl_,this.JSC$11276_dragger_));this.JSC$11278_cleanup_();return!0};
var ka3=function(c){_.GV(c.JSC$11276_dragger_);var f=c.draggerEl_&&c.draggerEl_.parentElement;c.draggerEl_&&_.Y6(c.draggerEl_);c.currDragItem_&&c.currDragItem_.style.display=="none"&&(c.origList_.insertBefore(c.currDragItem_,c.origNextItem_),c.currDragItem_.style.display="");c.currDragItemClasses_&&c.currDragItem_?kZF(c.currDragItem_,c.currDragItemClasses_||[]):c.currDragItem_&&(c.currDragItem_.style.visibility="");for(var d=c.dragLists_.length,q=0;q<d;q++){var Z=c.dragLists_[q];Z.dlgDragHoverClass_&&
_.d_(Z,Z.dlgDragHoverClass_)}f&&c.dispatchEvent(new el(rYo,c,null,c.currDragItem_,c.draggerEl_,c.JSC$11276_dragger_))};
_.r=Du.prototype;_.r.getHandleForDragItem_=function(c){return c};
_.r.handleDragItemMouseover_=function(c){Ip(c.currentTarget,this.dragItemHoverClasses_||[])};
_.r.handleDragItemMouseout_=function(c){kZF(c.currentTarget,this.dragItemHoverClasses_||[])};
_.r.handleDragItemHandleMouseover_=function(c){Ip(c.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.r.handleDragItemHandleMouseout_=function(c){kZF(c.currentTarget,this.dragItemHandleHoverClasses_||[])};
var l_H=function(c,f){return c.x>f.left&&c.x<f.left+f.width&&c.y>f.top&&c.y<f.top+f.height},H$y=function(c,f){c=c.dlgBounds_;
return Math.abs(f.y-(c.top+(c.height-1)/2))},sa3=function(c){return c.top+c.height-1},i$T=function(c){return c.left+c.width-1},T1H=function(c){return c.left||0},B1_=function(c,f){return c<f},mh3=function(c,f){return c>f},el=function(c,f,d,q,Z,M){_.AC.call(this,c);
this.event=d;this.currDragItem=q;this.draggerEl=Z;this.JSC$11280_dragger=M};
_.rn(el,_.AC);_.rn(Ce,_.ES);var AYr=new _.a8(0,0);Ce.prototype.JSC$11284_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Ce.prototype.JSC$11284_onMouseMove=function(c){var f=this.containerIsActuallyContent_?AYr:F1(tT(this.containerNode_)),d=this.horizontalScrolling_?this.calculateScrollDelta(c.clientX+f.x,this.scrollBounds_.left,this.scrollBounds_.width):0,q=this.calculateScrollDelta(c.clientY+f.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=d;this.scrollDelta_.y=q;!(d=!d&&!q)&&(d=this.constrainScroll_)&&(d=c.clientX+f.x,c=c.clientY+f.y,f=this.containerBounds_,d=!(f.left<=d&&f.left+f.width>=
d&&f.top<=c&&f.top+f.height>=c));d?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Ce.prototype.calculateScrollDelta=function(c,f,d){var q=0;c<f?q=-8:c>f+d&&(q=8);return q};
Ce.prototype.disposeInternal=function(){Ce.superClass_.disposeInternal.call(this);this.JSC$11282_eventHandler_.dispose();this.scrollTimer_.dispose()};var YkT={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"}}},NM=YkT;NM=YkT;var IY={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 F53=function(){},Pb=function(c){if(typeof c=="number"){var f=new F53;
f.standardOffset_=c;var d=c;if(d==0)d="Etc/GMT";else{var q=["Etc/GMT",d<0?"-":"+"];d=Math.abs(d);q.push(Math.floor(d/60)%100);d%=60;d!=0&&q.push(":",_.M0(d,2));d=q.join("")}f.timeZoneId_=d;d=c;d==0?d="UTC":(q=["UTC",d<0?"+":"-"],d=Math.abs(d),q.push(Math.floor(d/60)%100),d%=60,d!=0&&q.push(":",d),d=q.join(""));c=tBo(c);f.tzNames_=[d,d];f.tzNamesExt_={STD_LONG_NAME_GMT:c,STD_GENERIC_LOCATION:c};f.transitions_=[];return f}f=new F53;f.timeZoneId_=c.id;f.standardOffset_=-c.std_offset;f.tzNames_=c.names;
f.tzNamesExt_=c.names_ext;f.transitions_=c.transitions;return f},tBo=function(c){var f=["GMT"];
f.push(c<=0?"+":"-");c=Math.abs(c);f.push(_.M0(Math.floor(c/60)%100,2),":",_.M0(c%60,2));return f.join("")},b$K=function(c,f){f=Date.UTC(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes())/36E5;
for(var d=0;d<c.transitions_.length&&f>=c.transitions_[d];)d+=2;return d==0?0:c.transitions_[d-1]},K5u=function(c,f){c=c.standardOffset_-b$K(c,f);
return c===-1440?0:c};var Rn=function(c,f){this.patternParts_=[];this.JSC$11295_dateTimeSymbols_=f||bh;typeof c=="number"?EEH(this,c):nE3(this,c)},$hy=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Pd=function(c){return c.getHours?c.getHours():0},nE3=function(c,f){for($2P&&(f=f.replace(/\u200f/g,""));f;){for(var d=f,q=0;q<$hy.length;++q){var Z=f.match($hy[q]);
if(Z){var M=Z[0];f=f.substring(M.length);q==0&&(M=="''"?M="'":(M=M.substring(1,Z[1]=="'"?M.length-1:M.length),M=M.replace(/''/g,"'")));c.patternParts_.push({text:M,type:q});break}}if(d===f)throw Error("Vd`"+f);}};
Rn.prototype.format=function(c,f){if(!c)throw Error("Wd");var d=f?(c.getTimezoneOffset()-K5u(f,c))*6E4:0,q=d?new Date(c.getTime()+d):c,Z=q;f&&q.getTimezoneOffset()!=c.getTimezoneOffset()&&(q=new Date(q.getTime()+(q.getTimezoneOffset()-c.getTimezoneOffset())*6E4),Z=new Date(c.getTime()+(d+(d>0?-864E5:864E5))));d=[];for(var M=0;M<this.patternParts_.length;++M){var g=this.patternParts_[M].text;1==this.patternParts_[M].type?d.push(Qar(this,g,c,q,Z,f)):d.push(g)}return d.join("")};
var EEH=function(c,f){if(f<4)var d=c.JSC$11295_dateTimeSymbols_.DATEFORMATS[f];else if(f<8)d=c.JSC$11295_dateTimeSymbols_.TIMEFORMATS[f-4];else if(f<12)d=c.JSC$11295_dateTimeSymbols_.DATETIMEFORMATS[f-8],d=d.replace("{1}",c.JSC$11295_dateTimeSymbols_.DATEFORMATS[f-8]),d=d.replace("{0}",c.JSC$11295_dateTimeSymbols_.TIMEFORMATS[f-8]);else if(f===12)d=c.JSC$11295_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(f===13)d=c.JSC$11295_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{EEH(c,10);return}nE3(c,d)},RY=function(c,f){f=String(f);
c=c.JSC$11295_dateTimeSymbols_||bh;if(c.ZERODIGIT!==void 0&&!nHe){for(var d=[],q=0;q<f.length;q++){var Z=f.charCodeAt(q);d.push(48<=Z&&Z<=57?String.fromCharCode(c.ZERODIGIT+Z-48):f.charAt(q))}f=d.join("")}return f},nHe=!1,$2P=!1,L5T=function(c,f,d,q){d=d.getFullYear();
d<=0&&q&&(d=1-d);return RY(c,Skj(d,f))},Skj=function(c,f){f==2&&(c%=100);
c<0&&f++;return _.M0(c,f)},UP=function(c){if(!(c.getHours&&c.getSeconds&&c.getMinutes))throw Error("Xd");
},zBj=function(c,f){UP(f);
f=Pd(f);return c.JSC$11295_dateTimeSymbols_.AMPMS[f>=12&&f<24?1:0]},Qar=function(c,f,d,q,Z,M){var g=f.length;
switch(f.charAt(0)){case "G":return d=q.getFullYear()>0?1:0,g>=4?c.JSC$11295_dateTimeSymbols_.ERANAMES[d]:c.JSC$11295_dateTimeSymbols_.ERAS[d];case "y":return L5T(c,g,q,!0);case "Y":return d=(new Date(amo(q.getFullYear(),q.getMonth(),q.getDate(),c.JSC$11295_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,c.JSC$11295_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),g==2&&(d%=100),RY(c,Skj(d,g));case "u":return L5T(c,g,q,!1);case "M":a:switch(d=q.getMonth(),g){case 5:g=c.JSC$11295_dateTimeSymbols_.NARROWMONTHS[d];
break a;case 4:g=c.JSC$11295_dateTimeSymbols_.MONTHS[d];break a;case 3:g=c.JSC$11295_dateTimeSymbols_.SHORTMONTHS[d];break a;default:g=RY(c,_.M0(d+1,g))}return g;case "k":return UP(Z),RY(c,_.M0(Pd(Z)||24,g));case "S":return RY(c,(Z.getMilliseconds()/1E3).toFixed(Math.min(3,g)).slice(2)+(g>3?_.M0(0,g-3):""));case "E":return d=q.getDay(),g>=4?c.JSC$11295_dateTimeSymbols_.WEEKDAYS[d]:c.JSC$11295_dateTimeSymbols_.SHORTWEEKDAYS[d];case "a":return zBj(c,Z);case "b":return zBj(c,Z);case "B":return zBj(c,
Z);case "h":return UP(Z),RY(c,_.M0(Pd(Z)%12||12,g));case "K":return UP(Z),RY(c,_.M0(Pd(Z)%12,g));case "H":return UP(Z),RY(c,_.M0(Pd(Z),g));case "c":a:switch(d=q.getDay(),g){case 5:g=c.JSC$11295_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[d];break a;case 4:g=c.JSC$11295_dateTimeSymbols_.STANDALONEWEEKDAYS[d];break a;case 3:g=c.JSC$11295_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[d];break a;default:g=RY(c,_.M0(d,1))}return g;case "L":a:switch(d=q.getMonth(),g){case 5:g=c.JSC$11295_dateTimeSymbols_.STANDALONENARROWMONTHS[d];
break a;case 4:g=c.JSC$11295_dateTimeSymbols_.STANDALONEMONTHS[d];break a;case 3:g=c.JSC$11295_dateTimeSymbols_.STANDALONESHORTMONTHS[d];break a;default:g=RY(c,_.M0(d+1,g))}return g;case "Q":return d=Math.floor(q.getMonth()/3),g<4?c.JSC$11295_dateTimeSymbols_.SHORTQUARTERS[d]:c.JSC$11295_dateTimeSymbols_.QUARTERS[d];case "d":return RY(c,_.M0(q.getDate(),g));case "m":return UP(Z),RY(c,_.M0(Z.getMinutes?Z.getMinutes():0,g));case "s":return UP(Z),RY(c,_.M0(Z.getSeconds(),g));case "v":return(M||Pb(d.getTimezoneOffset())).timeZoneId_;
case "V":return c=M||Pb(d.getTimezoneOffset()),g<=2?c.timeZoneId_:b$K(c,d)>0?c.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?c.tzNamesExt_.DST_GENERIC_LOCATION:c.tzNamesExt_.DST_GENERIC_LOCATION:c.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?c.tzNamesExt_.STD_GENERIC_LOCATION:c.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return d=amo(Z.getFullYear(),Z.getMonth(),Z.getDate(),c.JSC$11295_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,c.JSC$11295_dateTimeSymbols_.FIRSTDAYOFWEEK),RY(c,_.M0(Math.floor(Math.round((d-(new Date((new Date(d)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,g));case "z":return c=M||Pb(d.getTimezoneOffset()),g<4?c.tzNames_[b$K(c,d)>0?2:0]:c.tzNames_[b$K(c,d)>0?3:1];case "Z":return f=M||Pb(d.getTimezoneOffset()),g<4?(g=-K5u(f,d),c=[g<0?"-":"+"],g=Math.abs(g),c.push(_.M0(Math.floor(g/60)%100,2),_.M0(g%60,2)),g=c.join("")):g=RY(c,tBo(K5u(f,d))),g;default:return""}};var JYv=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,a_F=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,ePN=function(c){this.patternParts_=[];this.JSC$11304_dateTimeSymbols_=bh;if(typeof c=="number"){c>11&&(c=10);if(c<4)var f=this.JSC$11304_dateTimeSymbols_.DATEFORMATS[c];else c<8?f=this.JSC$11304_dateTimeSymbols_.TIMEFORMATS[c-4]:(f=this.JSC$11304_dateTimeSymbols_.DATETIMEFORMATS[c-8],f=f.replace("{1}",this.JSC$11304_dateTimeSymbols_.DATEFORMATS[c-8]),f=f.replace("{0}",this.JSC$11304_dateTimeSymbols_.TIMEFORMATS[c-
8]));VBF(this,f)}else VBF(this,c)},VBF=function(c,f){for(var d=!1,q="",Z=0;Z<f.length;Z++){var M=f.charAt(Z);
if(JYv.test(M))for(q.length>0&&(c.patternParts_.push({text:q,count:0,abutStart:!1,numeric:!1}),q=""),c.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Z<f.length-1&&f.charAt(Z+1)==" ";)Z++;else if(d)M=="'"?Z+1<f.length&&f.charAt(Z+1)=="'"?(q+="'",Z++):d=!1:q+=M;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(M)>=0){q.length>0&&(c.patternParts_.push({text:q,count:0,abutStart:!1,numeric:!1}),q="");for(var g=f.charAt(Z),O=Z+1;O<f.length&&f.charAt(O)==g;)O++;g=O-Z;g<=0?O=!1:(O="MydhHmsSDkK".indexOf(M),
O=O>0||O==0&&g<3);c.patternParts_.push({text:M,count:g,abutStart:!1,numeric:O});Z+=g-1}else M=="'"?Z+1<f.length&&f.charAt(Z+1)=="'"?(q+="'",Z++):d=!0:q+=M}q.length>0&&c.patternParts_.push({text:q,count:0,abutStart:!1,numeric:!1});f=!1;for(d=0;d<c.patternParts_.length;d++)c.patternParts_[d].numeric?!f&&d+1<c.patternParts_.length&&c.patternParts_[d+1].numeric&&(f=!0,c.patternParts_[d].abutStart=!0):f=!1};
ePN.prototype.parse=function(c,f,d){var q=!1,Z=!1;d&&(q=d.predictive||!1,Z=d.validate||!1);if(q)for(d=0;d<this.patternParts_.length;d++){var M=this.patternParts_[d];if(M.count>0&&("abBhHkKm".indexOf(M.text.charAt(0))<0||M.count>2||M.abutStart))throw Error("Yd`"+M.text.charAt(0));}M=new Xjr;d=[0];M.dayPeriodIndex=-1;for(var g=0;g<this.patternParts_.length&&!(q&&d[0]>=c.length);g++){if(this.patternParts_[g].count==0){a:{var O=c;var l=d,m=this.patternParts_[g],H=q;if(m.text.match(JYv)!=null){if(m=l[0],
ujr(O,l),l[0]>m){O=!0;break a}}else{if(O.indexOf(m.text,l[0])==l[0]){l[0]+=m.text.length;O=!0;break a}if(H&&m.text.indexOf(O.substring(l[0]))==0){l[0]+=O.length-l[0];O=!0;break a}}O=!1}if(O)continue;return 0}if(this.patternParts_[g].abutStart){a:{l=c;m=d;H=g;var A=m[0],Y=0;for(O=H;O<this.patternParts_.length;O++){var t=this.patternParts_[O],E=t.count;if(E===0)break;if(O==H&&(E-=Y,Y++,E==0)){O=0;break a}var J=O>H&&t.numeric,X=m[0];if(!vEy(this,l,m,t,E,M,!1)||J&&m[0]-X<E)O=H-1,m[0]=A}O-=H}if(O<=0)return 0;
g+=O-1}else if(!vEy(this,c,d,this.patternParts_[g],0,M,q))return 0}a:{c=Z;if(f==null)throw Error("Zd");M.era!=void 0&&M.year!=void 0&&M.era==0&&M.year>0&&(M.year=-(M.year-1));M.year!=void 0&&f.setFullYear(M.year);q=f.getDate();f.setDate(1);M.month!=void 0&&f.setMonth(M.month);M.day!=void 0?f.setDate(M.day):(Z=Hcr(f.getFullYear(),f.getMonth()),f.setDate(q>Z?Z:q));typeof f.setHours==="function"&&(M.hours==void 0&&(M.hours=f.getHours()),M.hours<12&&(M.ampm!=void 0&&M.ampm>0?M.hours+=12:M.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(M.dayPeriodName)||["night1","night2"].includes(M.dayPeriodName)&&M.hours>=6)&&(M.hours+=12)),f.setHours(M.hours));typeof f.setMinutes==="function"&&M.minutes!=void 0&&f.setMinutes(M.minutes);typeof f.setSeconds==="function"&&M.seconds!=void 0&&f.setSeconds(M.seconds);typeof f.setMilliseconds==="function"&&M.milliseconds!=void 0&&f.setMilliseconds(M.milliseconds);if(c&&(M.year&&M.year!=f.getFullYear()||M.month&&M.month!=
f.getMonth()||M.day&&M.day!=f.getDate()||M.hours&&M.hours>=24||M.minutes&&M.minutes>=60||M.seconds&&M.seconds>=60||M.milliseconds&&M.milliseconds>=1E3))f=!1;else{M.tzOffset!=void 0&&f.setTime(f.getTime()+(M.tzOffset-f.getTimezoneOffset())*60*1E3);M.ambiguousYear&&(c=new Date,c.setFullYear(c.getFullYear()-80),f.getTime()<c.getTime()&&f.setFullYear(c.getFullYear()+100));if(M.dayOfWeek!=void 0)if(M.day==void 0)M=(7+M.dayOfWeek-f.getDay())%7,M>3&&(M-=7),c=f.getMonth(),f.setDate(f.getDate()+M),f.getMonth()!=
c&&f.setDate(f.getDate()+(M>0?-7:7));else if(M.dayOfWeek!=f.getDay()){f=!1;break a}f=!0}}return f?d[0]:0};
var vEy=function(c,f,d,q,Z,M,g){ujr(f,d);if(q.numeric&&Z>0&&d[0]+Z>f.length)return!1;switch(q.text.charAt(0)){case "G":return p8(f,d,[c.JSC$11304_dateTimeSymbols_.ERAS],function(O){return M.era=O}),!0;
case "M":case "L":return hBT(c,f,d,Z,q,M);case "E":return p8(f,d,[c.JSC$11304_dateTimeSymbols_.WEEKDAYS,c.JSC$11304_dateTimeSymbols_.SHORTWEEKDAYS],function(O){return M.dayOfWeek=O});
case "B":case "b":return Z=[],c=[[].concat(c.JSC$11304_dateTimeSymbols_.AMPMS)],Z.push("isAm"),Z.push("isPm"),f=p8(f,d,c,function(O){return M.dayPeriodIndex=O},g),M.dayPeriodName=Z[M.dayPeriodIndex],g?f:!0;
case "a":return f=p8(f,d,[c.JSC$11304_dateTimeSymbols_.AMPMS],function(O){return M.ampm=O},g),g?f:!0;
case "y":return wj_(c,f,d,q,Z,M);case "Q":return p8(f,d,[c.JSC$11304_dateTimeSymbols_.QUARTERS,c.JSC$11304_dateTimeSymbols_.SHORTQUARTERS],function(O){M.month=O*3;M.day=1});
case "d":return xX(c,f,d,q,Z,function(O){M.day=O}),!0;
case "S":return yYO(c,f,d,Z,M);case "h":case "K":case "H":case "k":return f=xX(c,f,d,q,Z,function(O){M.hours=q.text.charAt(0)==="h"&&O===12?0:O},g),g?f:!0;
case "m":return f=xX(c,f,d,q,Z,function(O){M.minutes=O},g),g?f:!0;
case "s":return xX(c,f,d,q,Z,function(O){M.seconds=O}),!0;
case "z":case "Z":case "v":return W5O(c,f,d,M);default:return!1}},wj_=function(c,f,d,q,Z,M){var g=d[0];
Z=oY(c,f,d,Z);Z===null&&(Z=oY(c,f,d,0,!0));if(Z===null)return!1;Z>=0&&d[0]-g==2&&q.count==2?(c=Z,f=(new Date).getFullYear()-80,d=f%100,M.ambiguousYear=c==d,c+=Math.floor(f/100)*100+(c<d?100:0),M.year=c):M.year=Z;return!0},hBT=function(c,f,d,q,Z,M){return Z.numeric&&xX(c,f,d,Z,q,function(g){M.month=g-1})?!0:p8(f,d,[c.JSC$11304_dateTimeSymbols_.MONTHS,
c.JSC$11304_dateTimeSymbols_.STANDALONEMONTHS,c.JSC$11304_dateTimeSymbols_.SHORTMONTHS,c.JSC$11304_dateTimeSymbols_.STANDALONESHORTMONTHS],function(g){M.month=g})},yYO=function(c,f,d,q,Z){var M=d[0];
c=oY(c,f,d,q);if(c===null)return!1;d=d[0]-M;Z.milliseconds=d<3?c*Math.pow(10,3-d):Math.round(c/Math.pow(10,d-3));return!0},W5O=function(c,f,d,q){f.indexOf("GMT",d[0])==d[0]&&(d[0]+=3);
if(d[0]>=f.length)return q.tzOffset=0,!0;var Z=d[0],M=oY(c,f,d,0,!0);if(M===null)return!1;if(d[0]<f.length&&f.charAt(d[0])==":"){var g=M*60;d[0]++;M=oY(c,f,d,0);if(M===null)return!1;g+=M}else g=M,g=g<24&&d[0]-Z<=3?g*60:g%100+g/100*60;q.tzOffset=-g;return!0},xX=function(c,f,d,q,Z,M,g){g=g||!1;
var O=d[0];c=oY(c,f,d,Z);if(c===null)return!1;if(g&&d[0]-O<q.count){if(d[0]<f.length)return!1;c*=Math.pow(10,q.count-(d[0]-O))}M(c);return!0},p8=function(c,f,d,q,Z){Z=Z||!1;
for(var M,g=0;g<d.length;g++){M=f;for(var O=d[g],l=Z,m=0,H=null,A=c.substring(M[0]).toLowerCase(),Y=0;Y<O.length;Y++){var t=O[Y].toLowerCase();if(l&&t.indexOf(A)==0){m=A.length;H=Y;break}O[Y].length>m&&A.indexOf(t)==0&&(m=O[Y].length,H=Y)}H!==null&&(M[0]+=m);M=H;if(M!==null)return q(M),!0}return!1},ujr=function(c,f){(c=c.substring(f[0]).match(a_F))&&(f[0]+=c[0].length)},oY=function(c,f,d,q,Z){f=q>0?f.substring(0,d[0]+q):f;
Z=Z||!1;if(c.JSC$11304_dateTimeSymbols_.ZERODIGIT){q=[];for(var M=d[0];M<f.length;M++){var g=f.charCodeAt(M)-c.JSC$11304_dateTimeSymbols_.ZERODIGIT;q.push(0<=g&&g<=9?String.fromCharCode(g+48):f.charAt(M))}f=q.join("")}else f=f.substring(d[0]);c=f.match(new RegExp("^"+(Z?"[+-]?":"")+"\\d+"));if(!c)return null;d[0]+=c[0].length;return parseInt(c[0],10)},Xjr=function(){};
Xjr.prototype.ambiguousYear=!1;_.Dhr={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 eBj={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"},N1v=eBj,I_3=eBj;I_3=N1v=eBj;var RBv,Gy,fn,BLN,cK,Par;
_.eU=function(c,f,d,q){var Z;if(Z=f){a:if(f&&f.length===3){for(Z=0;Z<3;Z++){var M=f[Z];if(M<"A"||M>"Z"&&M<"a"||M>"z"){Z=!1;break a}}Z=!0}else Z=!1;Z=!Z}if(Z)throw new TypeError("$d");this.intlCurrencyCode_=f?f.toUpperCase():null;this.currencyStyle_=d||0;this.overrideNumberFormatSymbols_=q||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_=Gy(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof c==="number")switch(c){case 1:cK(this,Gy(this).DECIMAL_PATTERN);break;case 2:cK(this,Gy(this).SCIENTIFIC_PATTERN);break;case 3:cK(this,Gy(this).PERCENT_PATTERN);break;case 4:c=Gy(this).CURRENCY_PATTERN;f=["0"];if(d=
IY[fn(this)]){d=d[0]&7;if(d>0)for(f.push("."),q=0;q<d;q++)f.push("0");c=c.replace(/0.00/g,f.join(""))}cK(this,c);break;case 5:Par(this,1);break;case 6:Par(this,2);break;default:throw Error("ce");}else cK(this,c)};
RBv=!1;Gy=function(c){return c.overrideNumberFormatSymbols_||(RBv?I_3:N1v)};
fn=function(c){return c.intlCurrencyCode_||Gy(c).DEF_CURRENCY_CODE};
BLN=function(c,f){if(f>308)throw Error("be`"+f);c.maximumFractionDigits_=f;return c};
cK=function(c,f){var d=[0];c.positivePrefix_=UhF(c,f,d);for(var q=d[0],Z=-1,M=0,g=0,O=0,l=-1,m=f.length,H=!0;d[0]<m&&H;d[0]++)switch(f.charAt(d[0])){case "#":g>0?O++:M++;l>=0&&Z<0&&l++;break;case "0":if(O>0)throw Error("ie`"+f);g++;l>=0&&Z<0&&l++;break;case ",":l>0&&c.groupingArray_.push(l);l=0;break;case ".":if(Z>=0)throw Error("je`"+f);Z=M+g+O;break;case "E":if(c.useExponentialNotation_)throw Error("ke`"+f);c.useExponentialNotation_=!0;c.minExponentDigits_=0;d[0]+1<m&&f.charAt(d[0]+1)=="+"&&(d[0]++,
c.useSignForPositiveExponent_=!0);for(;d[0]+1<m&&f.charAt(d[0]+1)=="0";)d[0]++,c.minExponentDigits_++;if(M+g<1||c.minExponentDigits_<1)throw Error("le`"+f);H=!1;break;default:d[0]--,H=!1}g==0&&M>0&&Z>=0&&(g=Z,g==0&&g++,O=M-g,M=g-1,g=1);if(Z<0&&O>0||Z>=0&&(Z<M||Z>M+g)||l==0)throw Error("me`"+f);O=M+g+O;c.maximumFractionDigits_=Z>=0?O-Z:0;Z>=0&&(c.minimumFractionDigits_=M+g-Z,c.minimumFractionDigits_<0&&(c.minimumFractionDigits_=0));c.minimumIntegerDigits_=(Z>=0?Z:O)-M;c.useExponentialNotation_&&(c.maximumIntegerDigits_=
M+c.minimumIntegerDigits_,c.maximumFractionDigits_==0&&c.minimumIntegerDigits_==0&&(c.minimumIntegerDigits_=1));c.groupingArray_.push(Math.max(0,l));c.decimalSeparatorAlwaysShown_=Z==0||Z==O;q=d[0]-q;c.positiveSuffix_=UhF(c,f,d);d[0]<f.length&&f.charAt(d[0])==";"?(d[0]++,c.multiplier_!=1&&(c.negativePercentSignExpected_=!0),c.negativePrefix_=UhF(c,f,d),d[0]+=q,c.negativeSuffix_=UhF(c,f,d)):(c.negativePrefix_+=c.positivePrefix_,c.negativeSuffix_+=c.positiveSuffix_)};
Par=function(c,f){c.compactStyle_=f;cK(c,Gy(c).DECIMAL_PATTERN);c.minimumFractionDigits_=0;BLN(c,2);if(c.minimumFractionDigits_>0)throw Error("ae");c.significantDigits_=2};
_.eU.prototype.parse=function(c,f){f=f||[0];if(this.compactStyle_!==0)throw Error("de");c=c.replace(/ |\u202f/g,"\u00a0");var d=c.indexOf(this.positivePrefix_,f[0])==f[0],q=c.indexOf(this.negativePrefix_,f[0])==f[0];d&&q&&(this.positivePrefix_.length>this.negativePrefix_.length?q=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(d=!1));d?f[0]+=this.positivePrefix_.length:q&&(f[0]+=this.negativePrefix_.length);if(c.indexOf(Gy(this).INFINITY,f[0])==f[0]){f[0]+=Gy(this).INFINITY.length;var Z=
Infinity}else{Z=c;var M=!1,g=!1,O=!1,l=-1,m=1,H=Gy(this).DECIMAL_SEP,A=Gy(this).GROUP_SEP,Y=Gy(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ee");A=A.replace(/\u202f/g,"\u00a0");for(var t="";f[0]<Z.length;f[0]++){var E=Z.charAt(f[0]),J=pjH(this,E);if(J>=0&&J<=9)t+=J,O=!0;else if(E==H.charAt(0)){if(M||g)break;t+=".";M=!0}else if(E==A.charAt(0)&&("\u00a0"!=A.charAt(0)||f[0]+1<Z.length&&pjH(this,Z.charAt(f[0]+1))>=0)){if(M||g)break}else if(E==Y.charAt(0)){if(g)break;t+="E";g=!0;l=f[0]}else if(E==
"+"||E=="-"){if(O&&l!=f[0]-1)break;t+=E}else if(this.multiplier_==1&&E==Gy(this).PERCENT.charAt(0)){if(m!=1)break;m=100;if(O){f[0]++;break}}else if(this.multiplier_==1&&E==Gy(this).PERMILL.charAt(0)){if(m!=1)break;m=1E3;if(O){f[0]++;break}}else break}this.multiplier_!=1&&(m=this.multiplier_);Z=parseFloat(t)/m}if(d){if(c.indexOf(this.positiveSuffix_,f[0])!=f[0])return NaN;f[0]+=this.positiveSuffix_.length}else if(q){if(c.indexOf(this.negativeSuffix_,f[0])!=f[0])return NaN;f[0]+=this.negativeSuffix_.length}return q?
-Z:Z};
_.eU.prototype.format=function(c){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("fe");if(isNaN(c))return Gy(this).NAN;var f=[];var d=c;if(this.compactStyle_==0)d=dq;else{d=Math.abs(d);var q=xhv(this,d<=1?0:oE3(d)).divisorBase;d=xhv(this,q+oE3(Gau(this,jg(d,-q)).intValue))}c=jg(c,-d.divisorBase);(q=c<0||c==0&&1/c<0)?d.negative_prefix?f.push(d.negative_prefix):(f.push(d.prefix),f.push(this.negativePrefix_)):(f.push(d.prefix),f.push(this.positivePrefix_));if(isFinite(c))if(c*=
q?-1:1,c*=this.multiplier_,this.useExponentialNotation_){var Z=c;if(Z==0)cev(this,Z,this.minimumIntegerDigits_,f),f93(this,0,f);else{var M=Math.floor(Math.log(Z)/Math.log(10)+2E-15);Z=jg(Z,-M);var g=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(g=M%this.maximumIntegerDigits_,g<0&&(g=this.maximumIntegerDigits_+g),Z=jg(Z,g),M-=g,g=1):this.minimumIntegerDigits_<1?(M++,Z=jg(Z,-1)):(M-=this.minimumIntegerDigits_-1,Z=jg(Z,this.minimumIntegerDigits_-
1));cev(this,Z,g,f);f93(this,M,f)}}else cev(this,c,this.minimumIntegerDigits_,f);else f.push(Gy(this).INFINITY);q?d.negative_suffix?f.push(d.negative_suffix):(isFinite(c)&&f.push(d.suffix),f.push(this.negativeSuffix_)):(isFinite(c)&&f.push(d.suffix),f.push(this.positiveSuffix_));return f.join("")};
var Gau=function(c,f){var d=jg(f,c.maximumFractionDigits_);c.significantDigits_>0&&(d=dVT(d,c.significantDigits_,c.maximumFractionDigits_));d=Math.round(d);if(isFinite(d)){var q=Math.floor(jg(d,-c.maximumFractionDigits_));d=Math.floor(d-jg(q,c.maximumFractionDigits_));if(d<0||d>=jg(1,c.maximumFractionDigits_))q=Math.round(f),d=0}else q=f,d=0;return{intValue:q,fracValue:d}},cev=function(c,f,d,q){if(c.minimumFractionDigits_>c.maximumFractionDigits_)throw Error("fe");
q||(q=[]);f=Gau(c,f);var Z=f.intValue,M=f.fracValue,g=c.minimumFractionDigits_>0||M>0||!1;f=c.minimumFractionDigits_;g&&(f=c.minimumFractionDigits_);for(var O="",l=Z;l>1E20;)O="0"+O,l=Math.round(jg(l,-1));O=l+O;var m=Gy(c).DECIMAL_SEP;l=Gy(c).ZERO_DIGIT.codePointAt(0);var H=O.length,A=0;if(Z>0||d>0){for(Z=H;Z<d;Z++)q.push(String.fromCodePoint(l));if(c.groupingArray_.length>=2)for(d=1;d<c.groupingArray_.length;d++)A+=c.groupingArray_[d];d=H-A;if(d>0){Z=c.groupingArray_;A=H=0;for(var Y,t=Gy(c).GROUP_SEP,
E=O.length,J=0;J<E;J++)if(q.push(String.fromCodePoint(l+Number(O.charAt(J)))),E-J>1)if(Y=Z[A],J<d){var X=d-J;(Y===1||Y>0&&X%Y===1)&&q.push(t)}else A<Z.length&&(J===d?A+=1:Y===J-d-H+1&&(q.push(t),H+=Y,A+=1))}else{d=O;O=c.groupingArray_;Z=Gy(c).GROUP_SEP;Y=d.length;t=[];for(H=O.length-1;H>=0&&Y>0;H--){A=O[H];for(E=0;E<A&&Y-E-1>=0;E++)t.push(String.fromCodePoint(l+Number(d.charAt(Y-E-1))));Y-=A;Y>0&&t.push(Z)}q.push.apply(q,t.reverse())}}else g||q.push(String.fromCodePoint(l));(c.decimalSeparatorAlwaysShown_||
g)&&q.push(m);M=String(M);g=M.split("e+");g.length==2&&(M=String(dVT(parseFloat(g[0]),c.significantDigits_,1)),M=M.replace(".",""),M+=(0,_.vlo)("0",parseInt(g[1],10)-M.length+1));c.maximumFractionDigits_+1>M.length&&(M="1"+(0,_.vlo)("0",c.maximumFractionDigits_-M.length)+M);for(c=M.length;M.charAt(c-1)=="0"&&c>f+1;)c--;for(f=1;f<c;f++)q.push(String.fromCodePoint(l+Number(M.charAt(f))))},f93=function(c,f,d){d.push(Gy(c).EXP_SYMBOL);
f<0?(f=-f,d.push(Gy(c).MINUS_SIGN)):c.useSignForPositiveExponent_&&d.push(Gy(c).PLUS_SIGN);f=""+f;for(var q=Gy(c).ZERO_DIGIT,Z=f.length;Z<c.minExponentDigits_;Z++)d.push(q);c=q.codePointAt(0)-jf3;for(q=0;q<f.length;q++)d.push(String.fromCodePoint(c+f.codePointAt(q)))},pjH=function(c,f){f=f.codePointAt(0);
if(48<=f&&f<58)return f-48;c=Gy(c).ZERO_DIGIT.codePointAt(0);return c<=f&&f<c+10?f-c:-1},jf3="0".codePointAt(0),UhF=function(c,f,d){for(var q="",Z=!1,M=f.length;d[0]<M;d[0]++){var g=f.charAt(d[0]);
if(g=="'")d[0]+1<M&&f.charAt(d[0]+1)=="'"?(d[0]++,q+="'"):Z=!Z;else if(Z)q+=g;else switch(g){case "#":case "0":case ",":case ".":case ";":return q;case "\u00a4":if(d[0]+1<M&&f.charAt(d[0]+1)=="\u00a4")d[0]++,q+=fn(c);else switch(c.currencyStyle_){case 0:g=fn(c);q+=g in IY?IY[g][1]:g;break;case 2:g=fn(c);var O=IY[g];q+=O?g==O[1]?g:g+" "+O[1]:g;break;case 1:g=fn(c),q+=g in IY?IY[g][2]:g}break;case "%":if(!c.negativePercentSignExpected_&&c.multiplier_!=1)throw Error("ge");if(c.negativePercentSignExpected_&&
c.multiplier_!=100)throw Error("he");c.multiplier_=100;c.negativePercentSignExpected_=!1;q+=Gy(c).PERCENT;break;case "\u2030":if(!c.negativePercentSignExpected_&&c.multiplier_!=1)throw Error("ge");if(c.negativePercentSignExpected_&&c.multiplier_!=1E3)throw Error("he");c.multiplier_=1E3;c.negativePercentSignExpected_=!1;q+=Gy(c).PERMILL;break;default:q+=g}}return q},dq={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},xhv=function(c,f){c=c.compactStyle_==1?NM.COMPACT_DECIMAL_SHORT_PATTERN:NM.COMPACT_DECIMAL_LONG_PATTERN;c==null&&(c=NM.COMPACT_DECIMAL_SHORT_PATTERN);if(f<3)return dq;f=Math.min(14,f);var d=c[jg(1,f)];for(--f;!d&&f>=3;)d=c[jg(1,f)],f--;if(!d)return dq;d=d.other;var q=c="",Z=d.indexOf(";");Z>=0&&(d=d.substring(0,Z),Z=d.substring(Z+1))&&(q=/([^0]*)(0+)(.*)/.exec(Z),c=q[1],q=q[3]);return d&&d!="0"?(d=/([^0]*)(0+)(.*)/.exec(d))?{divisorBase:f+
1-(d[2].length-1),negative_prefix:c,negative_suffix:q,prefix:d[1],suffix:d[3]}:dq:dq},oE3=function(c){if(!isFinite(c))return c>0?c:0;
for(var f=0;(c/=10)>=1;)f++;return f},jg=function(c,f){if(!c||!isFinite(c)||f==0)return c;
c=String(c).split("e");return parseFloat(c[0]+"e"+(parseInt(c[1]||0,10)+f))},qDT=function(c,f){return c&&isFinite(c)?jg(Math.round(jg(c,f)),-f):c},dVT=function(c,f,d){if(!c)return c;
f=f-oE3(c)-1;return f<-d?qDT(c,-d):qDT(c,f)};var ZxF=function(c){return c%10==1&&c%100!=11?"one":c%10==2&&c%100!=12?"two":c%10==3&&c%100!=13?"few":"other"},Mq_=ZxF;
Mq_=ZxF;var reT;reT=function(c,f){var d=c|0;if(void 0===f){f=Math;var q=f.min,Z=c+"",M=Z.indexOf(".");f=q.call(f,M===-1?0:Z.length-M-1,3)}q=Math.pow(10,f);c={v:f,f:(c*q|0)%q};return d==1&&c.v==0?"one":"other"};
_.Ux=reT;_.Ux=reT;var CP3,gp3,kur,l9H,sf_;_.Oxv=function(c){this.JSC$11347_pattern_=c;this.parsedPattern_=this.literals_=this.initialLiterals_=null;c=N1v;var f=NM;if(CP3!==c||gp3!==f)CP3=c,gp3=f,kur=new _.eU(1);this.numberFormatter_=kur};
CP3=null;gp3=null;kur=null;l9H=RegExp("'([{}#].*?)'","g");sf_=RegExp("''","g");
_.Oxv.prototype.format=function(c){if(this.JSC$11347_pattern_){this.initialLiterals_=[];var f=BNv(this,this.JSC$11347_pattern_);this.parsedPattern_=ixo(this,f);this.JSC$11347_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.yn(this.initialLiterals_),f=[],TNK(this,this.parsedPattern_,c,!1,f),c=f.join("");this.literals_.length>0;)c=c.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else c="";return c};
var TNK=function(c,f,d,q,Z){for(var M=0;M<f.length;M++)switch(f[M].type){case 4:Z.push(f[M].value);break;case 3:var g=f[M].value;var O=c,l=Z,m=d[g];m===void 0?l.push("Undefined parameter - "+g):(O.literals_.push(m),l.push(O.buildPlaceholder_(O.literals_)));break;case 2:g=f[M].value;O=c;l=d;m=q;var H=Z,A=g.argumentIndex;l[A]===void 0?H.push("Undefined parameter - "+A):(A=g[l[A]],A===void 0&&(A=g.other),TNK(O,A,l,m,H));break;case 0:g=f[M].value;mVT(c,g,d,_.Ux,q,Z);break;case 1:g=f[M].value,mVT(c,g,
d,Mq_,q,Z)}},mVT=function(c,f,d,q,Z,M){var g=f.argumentIndex,O=f.argumentOffset,l=+d[g];
isNaN(l)?M.push("Undefined or invalid parameter - "+g):(O=l-O,g=f[d[g]],g===void 0&&(q=q(Math.abs(O)),g=f[q],g===void 0&&(g=f.other)),f=[],TNK(c,g,d,Z,f),d=f.join(""),Z?M.push(d):(c=c.numberFormatter_.format(O),M.push(d.replace(/#/g,c))))},BNv=function(c,f){var d=c.initialLiterals_,q=c.buildPlaceholder_.bind(c);
f=f.replace(sf_,function(){d.push("'");return q(d)});
return f=f.replace(l9H,function(Z,M){d.push(M);return q(d)})},Hxo=function(c){var f=0,d=[],q=[],Z=/[{}]/g;
Z.lastIndex=0;for(var M;M=Z.exec(c);){var g=M.index;M[0]=="}"?(d.pop(),d.length==0&&(M={type:1},M.value=c.substring(f,g),q.push(M),f=g+1)):(d.length==0&&(f=c.substring(f,g),f!=""&&q.push({type:0,value:f}),f=g+1),d.push("{"))}c=c.substring(f);c!=""&&q.push({type:0,value:c});return q},Aej=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,YDH=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Fty=/^\s*(\w+)\s*,\s*select\s*,/,ixo=function(c,f){var d=[];
f=Hxo(f);for(var q=0;q<f.length;q++){var Z={};if(0==f[q].type)Z.type=4,Z.value=f[q].value;else if(1==f[q].type){var M=f[q].value;switch(Aej.test(M)?0:YDH.test(M)?1:Fty.test(M)?2:/^\s*\w+\s*/.test(M)?3:5){case 2:Z.type=2;Z.value=tqj(c,f[q].value);break;case 0:Z.type=0;Z.value=bxT(c,f[q].value);break;case 1:Z.type=1;Z.value=Ktr(c,f[q].value);break;case 3:Z.type=3,Z.value=f[q].value}}d.push(Z)}return d},tqj=function(c,f){var d="";
f=f.replace(Fty,function(O,l){d=l;return""});
var q={};q.argumentIndex=d;f=Hxo(f);for(var Z=0;Z<f.length;){var M=f[Z].value;Z++;var g=void 0;1==f[Z].type&&(g=ixo(c,f[Z].value));q[M.replace(/\s/g,"")]=g;Z++}return q},bxT=function(c,f){var d="",q=0;
f=f.replace(Aej,function(l,m,H){d=m;H&&(q=parseInt(H,10));return""});
var Z={};Z.argumentIndex=d;Z.argumentOffset=q;f=Hxo(f);for(var M=0;M<f.length;){var g=f[M].value;M++;var O=void 0;1==f[M].type&&(O=ixo(c,f[M].value));Z[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=O;M++}return Z},Ktr=function(c,f){var d="";
f=f.replace(YDH,function(O,l){d=l;return""});
var q={};q.argumentIndex=d;q.argumentOffset=0;f=Hxo(f);for(var Z=0;Z<f.length;){var M=f[Z].value;Z++;var g=void 0;1==f[Z].type&&(g=ixo(c,f[Z].value));q[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=g;Z++}return q};
_.Oxv.prototype.buildPlaceholder_=function(c){return"\ufddf_"+(c.length-1).toString(10)+"_"};var Ep_;
Ep_={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 L1Y=function(){this.rdtfSymbols_=np_||Ep_;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
L1Y.prototype.format=function(c,f){a:{f=$V_(this,f);switch(this.style_){case 2:if(f.NARROW!=void 0){f=f.NARROW;break a}case 1:if(f.SHORT!=void 0){f=f.SHORT;break a}default:f=f.LONG;break a}f=void 0}if(!this.alwaysNumeric_&&f&&f.R&&f.R[""+c])c=f.R[""+c];else if(f){var d=Math.abs(c);c=(new _.Oxv("{N,plural,"+(c>0||c==0&&1/c==Infinity?f.F:f.P)+"}")).format({N:d})}else c="";return c};
var $V_=function(c,f){switch(f){default:case 0:return c.rdtfSymbols_.YEAR;case 1:return c.rdtfSymbols_.QUARTER;case 2:return c.rdtfSymbols_.MONTH;case 3:return c.rdtfSymbols_.WEEK;case 4:return c.rdtfSymbols_.DAY;case 5:return c.rdtfSymbols_.HOUR;case 6:return c.rdtfSymbols_.MINUTE;case 7:return c.rdtfSymbols_.SECOND}};var QfO=function(c,f,d,q,Z,M,g,O){this.x0=c;this.y0=f;this.x1=d;this.y1=q;this.x2=Z;this.y2=M;this.x3=g;this.y3=O};
QfO.prototype.clone=function(){return new QfO(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
QfO.prototype.equals=function(c){return this.x0==c.x0&&this.y0==c.y0&&this.x1==c.x1&&this.y1==c.y1&&this.x2==c.x2&&this.y2==c.y2&&this.x3==c.x3&&this.y3==c.y3};
var SDT=function(c,f){if(f==0)return c.x0;if(f==1)return c.x3;var d=no(c.x0,c.x1,f),q=no(c.x1,c.x2,f);c=no(c.x2,c.x3,f);d=no(d,q,f);q=no(q,c,f);return no(d,q,f)},Lt3=function(c,f){var d=(f-c.x0)/(c.x3-c.x0);
if(d<=0)return 0;if(d>=1)return 1;for(var q=0,Z=1,M=0,g=0;g<8;g++){M=SDT(c,d);var O=(SDT(c,d+1E-6)-M)/1E-6;if(Math.abs(M-f)<1E-6)return d;if(Math.abs(O)<1E-6)break;else M<f?q=d:Z=d,d-=(M-f)/O}for(g=0;Math.abs(M-f)>1E-6&&g<8;g++)M<f?(q=d,d=(d+Z)/2):(Z=d,d=(d+q)/2),M=SDT(c,d);return d};var qA=function(){_.KF.call(this);this.JSC$11368_name_="closure_frame"+zDH++;this.iframesForDisposal_=[];JeO[this.JSC$11368_name_]=this},ZG;
_.rn(qA,_.KF);var JeO={},zDH=0,a9o=function(c,f){var d=tT(c);N$3(f,function(q,Z){Array.isArray(q)||(q=[q]);_.Iw(q,function(M){M=d.JSC$9270_createDom("INPUT",{type:"hidden",name:Z,value:M});c.appendChild(M)})})};
_.r=qA.prototype;_.r.JSC$11370_form_=null;_.r.JSC$11370_iframe_=null;_.r.iframeName_=null;_.r.nextIframeId_=0;_.r.JSC$11370_active_=!1;_.r.complete_=!1;_.r.success_=!1;_.r.lastContent_=null;_.r.JSC$11370_lastErrorCode_=0;_.r.iframeDisposalTimer_=null;
_.r.send=function(c,f,d,q){if(this.JSC$11370_active_)throw Error("ne");c=new _.xn(c);f=f?f.toUpperCase():"GET";d&&_.kG(c);ZG||(ZG=_.Lo("FORM"),ZG.acceptCharset="utf-8",d=ZG.style,d.position="absolute",d.visibility="hidden",d.top=d.left="-10px",d.width=d.height="10px",d.overflow="hidden",document.body.appendChild(ZG));this.JSC$11370_form_=ZG;f=="GET"&&a9o(this.JSC$11370_form_,c.JSC$9976_queryData_);q&&a9o(this.JSC$11370_form_,q);d=c.toString();d=PFk(d);q=this.JSC$11370_form_;d=_.w8($h(d));d!==void 0&&
(q.action=d);this.JSC$11370_form_.method=f;Vq_(this);XhT(this)};
_.r.abort=function(c){if(this.JSC$11370_active_){var f=MA(this);if(f)if(F9(f))f.removeAllListeners(void 0);else if(f=tC(f)){var d=0,q;for(q in f.listeners)for(var Z=f.listeners[q].concat(),M=0;M<Z.length;++M)$p(Z[M])&&++d}this.success_=this.JSC$11370_active_=this.complete_=!1;this.JSC$11370_lastErrorCode_=c||7;this.dispatchEvent("abort");uNv(this)}};
_.r.disposeInternal=function(){this.JSC$11370_active_&&this.abort();qA.superClass_.disposeInternal.call(this);this.JSC$11370_iframe_&&vpF(this);XhT(this);this.JSC$11370_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11370_form_=null;this.JSC$11370_lastErrorCode_=0;delete JeO[this.JSC$11368_name_]};
_.r.isComplete=function(){return this.complete_};
_.r.isSuccess=function(){return this.success_};
_.r.isActive=function(){return this.JSC$11370_active_};
_.r.getResponseText=function(){return this.lastContent_};
_.r.getLastError=function(){return _.t5H(this.JSC$11370_lastErrorCode_)};
var Vq_=function(c){c.JSC$11370_active_=!0;c.complete_=!1;c.JSC$11370_lastErrorCode_=0;c.iframeName_=c.JSC$11368_name_+"_"+(c.nextIframeId_++).toString(36);c.JSC$11370_iframe_=tT(c.JSC$11370_form_).JSC$9270_createDom("IFRAME",{name:c.iframeName_,id:c.iframeName_});var f=c.JSC$11370_iframe_.style;f.visibility="hidden";f.width=f.height="10px";f.display="none";_.sJ?f.marginTop=f.marginLeft="-10px":(f.position="absolute",f.top=f.left="-10px");tT(c.JSC$11370_form_).JSC$9268_document_.body.appendChild(c.JSC$11370_iframe_);
f=c.iframeName_+"_inner";var d=MFr(c.JSC$11370_iframe_);if(document.baseURI){var q=Tx(f);q='<head><base href="'+Tx(document.baseURI)+'"></head><body><iframe id="'+q+'" name="'+q+'"></iframe>';q=DJ(q)}else q=Tx(f),q=DJ('<body><iframe id="'+q+'" name="'+q+'"></iframe>');d.write(eP(q));_.Lx(d.getElementById(f),"load",c.onIframeLoaded_,!1,c);q=FE("TEXTAREA",c.JSC$11370_form_);for(var Z=0,M=q.length;Z<M;Z++){var g=q[Z].value;lp_(q[Z])!=g&&(_.v1(q[Z],g),q[Z].value=g)}q=d.importNode(c.JSC$11370_form_,!0);
q.target=f;q.action=c.JSC$11370_form_.action;d.body.appendChild(q);Z=FE("SELECT",c.JSC$11370_form_);M=FE("SELECT",q);g=0;for(var O=Z.length;g<O;g++)for(var l=FE("OPTION",Z[g]),m=FE("OPTION",M[g]),H=0,A=l.length;H<A;H++)m[H].selected=l[H].selected;Z=FE("INPUT",c.JSC$11370_form_);M=FE("INPUT",q);g=0;for(O=Z.length;g<O;g++)if(Z[g].type=="file"&&Z[g].value!=M[g].value){c.JSC$11370_form_.target=f;q=c.JSC$11370_form_;break}try{c.errorHandled_=!1,q.submit(),d.close(),_.lf&&setTimeout(c.testForFirefoxSilentError_.bind(c),
250)}catch(Y){_.bp(d.getElementById(f),"load",c.onIframeLoaded_,!1,c),d.close(),rq(c,2)}};
qA.prototype.onIframeLoaded_=function(){_.bp(MA(this),"load",this.onIframeLoaded_,!1,this);try{var c=this.JSC$11370_iframe_?MFr(MA(this)):null;this.complete_=!0;this.JSC$11370_active_=!1;try{var f=c.body;this.lastContent_=f.textContent||f.innerText}catch(Z){var d=1}var q;d||typeof this.errorChecker_!="function"||(q=this.errorChecker_(c))&&(d=4);d?rq(this,d):(this.success_=!0,this.JSC$11370_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),uNv(this))}catch(Z){rq(this,1)}};
var rq=function(c,f){c.errorHandled_||(c.success_=!1,c.JSC$11370_active_=!1,c.complete_=!0,c.JSC$11370_lastErrorCode_=f,c.dispatchEvent("complete"),c.dispatchEvent("error"),uNv(c),c.errorHandled_=!0)},uNv=function(c){vpF(c);
XhT(c);c.JSC$11370_form_=null;c.dispatchEvent("ready")},vpF=function(c){var f=c.JSC$11370_iframe_;
f&&(f.onreadystatechange=null,f.onload=null,f.onerror=null,c.iframesForDisposal_.push(f));c.iframeDisposalTimer_&&(clearTimeout(c.iframeDisposalTimer_),c.iframeDisposalTimer_=null);_.lf?c.iframeDisposalTimer_=setTimeout(c.disposeIframes_.bind(c),2E3):c.disposeIframes_();c.JSC$11370_iframe_=null;c.iframeName_=null};
qA.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var c=this.iframesForDisposal_.pop();_.Y6(c)}};
var XhT=function(c){c.JSC$11370_form_&&c.JSC$11370_form_==ZG&&_.a_(c.JSC$11370_form_)},MA=function(c){return c.JSC$11370_iframe_?MFr(c.JSC$11370_iframe_).getElementById(c.iframeName_+"_inner"):null};
qA.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11370_active_){var c=this.JSC$11370_iframe_?MFr(MA(this)):null;c&&!bGk(c,"documentUri")?(_.bp(MA(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?rq(this,3):rq(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Cn=function(c){return c=="\r"||c=="\n"||c==" "||c=="\t"};var hDO;_.gq=function(c){this.errorMessage_=null;this.result_=[];this.JSC$11372_buffer_="";this.stack_=[];this.JSC$11372_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!c||!c.deliverMessageAsRawString)};
hDO={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};_.gq.prototype.isInputValid=function(){return this.streamState_!=3};
_.gq.prototype.done=function(){return this.streamState_===2};
var k$=function(c,f,d){c.streamState_=3;c.errorMessage_="The stream is broken @"+c.JSC$11372_pos_+"/"+d+". With input:\n"+f;throw Error(c.errorMessage_);};
_.gq.prototype.acceptsBinaryInput=function(){return!1};
_.gq.prototype.parse=function(c){function f(){for(;Y<c.length;)if(_.Cn(c[Y]))Y++,M.JSC$11372_pos_++;else break;return Y<m}
function d(){for(var E;;){E=c[Y++];if(!E)break;M.JSC$11372_pos_++;switch(M.state_){case l.INIT:E==="{"?M.state_=l.OBJECT_OPEN:E==="["?M.state_=l.ARRAY_OPEN:_.Cn(E)||k$(M,c,Y);continue;case l.KEY_START:case l.OBJECT_OPEN:if(_.Cn(E))continue;if(M.state_===l.KEY_START)g.push(l.KEY_END);else if(E==="}"){Z("{}");M.state_=q();continue}else g.push(l.OBJECT_END);E==='"'?M.state_=l.STRING:k$(M,c,Y);continue;case l.KEY_END:case l.OBJECT_END:if(_.Cn(E))continue;E===":"?(M.state_===l.OBJECT_END&&(g.push(l.OBJECT_END),
M.depth_++),M.state_=l.VALUE):E==="}"?(M.depth_--,Z(),M.state_=q()):E===","?(M.state_===l.OBJECT_END&&g.push(l.OBJECT_END),M.state_=l.KEY_START):k$(M,c,Y);continue;case l.ARRAY_OPEN:case l.VALUE:if(_.Cn(E))continue;if(M.state_===l.ARRAY_OPEN)if(M.depth_++,M.state_=l.VALUE,E==="]"){M.depth_--;if(M.depth_===0){M.state_=l.ARRAY_END;return}Z("[]");M.state_=q();continue}else g.push(l.ARRAY_END);E==='"'?M.state_=l.STRING:E==="{"?M.state_=l.OBJECT_OPEN:E==="["?M.state_=l.ARRAY_OPEN:E==="t"?M.state_=l.TRUE1:
E==="f"?M.state_=l.FALSE1:E==="n"?M.state_=l.NULL1:E!=="-"&&("0123456789".indexOf(E)!==-1?M.state_=l.NUM_DIGIT:k$(M,c,Y));continue;case l.ARRAY_END:if(E===",")g.push(l.ARRAY_END),M.state_=l.VALUE,M.depth_===1&&(A=Y);else if(E==="]"){M.depth_--;if(M.depth_===0)return;Z();M.state_=q()}else if(_.Cn(E))continue;else k$(M,c,Y);continue;case l.STRING:var J=Y;a:for(;;){for(;M.unicodeCount_>0;)if(E=c[Y++],M.unicodeCount_===4?M.unicodeCount_=0:M.unicodeCount_++,!E)break a;if(E==='"'&&!M.slashed_){M.state_=
q();break}if(E==="\\"&&!M.slashed_&&(M.slashed_=!0,E=c[Y++],!E))break;if(M.slashed_)if(M.slashed_=!1,E==="u"&&(M.unicodeCount_=1),E=c[Y++])continue;else break;O.lastIndex=Y;E=O.exec(c);if(!E){Y=c.length+1;break}Y=E.index+1;E=c[E.index];if(!E)break}M.JSC$11372_pos_+=Y-J;continue;case l.TRUE1:if(!E)continue;E==="r"?M.state_=l.TRUE2:k$(M,c,Y);continue;case l.TRUE2:if(!E)continue;E==="u"?M.state_=l.TRUE3:k$(M,c,Y);continue;case l.TRUE3:if(!E)continue;E==="e"?M.state_=q():k$(M,c,Y);continue;case l.FALSE1:if(!E)continue;
E==="a"?M.state_=l.FALSE2:k$(M,c,Y);continue;case l.FALSE2:if(!E)continue;E==="l"?M.state_=l.FALSE3:k$(M,c,Y);continue;case l.FALSE3:if(!E)continue;E==="s"?M.state_=l.FALSE4:k$(M,c,Y);continue;case l.FALSE4:if(!E)continue;E==="e"?M.state_=q():k$(M,c,Y);continue;case l.NULL1:if(!E)continue;E==="u"?M.state_=l.NULL2:k$(M,c,Y);continue;case l.NULL2:if(!E)continue;E==="l"?M.state_=l.NULL3:k$(M,c,Y);continue;case l.NULL3:if(!E)continue;E==="l"?M.state_=q():k$(M,c,Y);continue;case l.NUM_DECIMAL_POINT:E===
"."?M.state_=l.NUM_DIGIT:k$(M,c,Y);continue;case l.NUM_DIGIT:if("0123456789.eE+-".indexOf(E)!==-1)continue;else Y--,M.JSC$11372_pos_--,M.state_=q();continue;default:k$(M,c,Y)}}}
function q(){var E=g.pop();return E!=null?E:l.VALUE}
function Z(E){M.depth_>1||(E||(E=A===-1?M.JSC$11372_buffer_+c.substring(H,Y):c.substring(A,Y)),M.deliverMessageAsRawString_?M.result_.push(E):M.result_.push(JSON.parse(E)),A=Y)}
for(var M=this,g=M.stack_,O=M.stringInputPattern_,l=hDO,m=c.length,H=0,A=-1,Y=0;Y<m;)switch(M.streamState_){case 3:return k$(M,c,Y),null;case 2:return f()&&k$(M,c,Y),null;case 0:if(f()){var t=c[Y++];M.JSC$11372_pos_++;if(t==="["){M.streamState_=1;H=Y;M.state_=l.ARRAY_OPEN;continue}else k$(M,c,Y)}return null;case 1:return d(),M.depth_===0&&M.state_==l.ARRAY_END?(M.streamState_=2,M.JSC$11372_buffer_=c.substring(Y)):M.JSC$11372_buffer_=A===-1?M.JSC$11372_buffer_+c.substring(H):c.substring(A),M.result_.length>
0?(t=M.result_,M.result_=[],t):null}return null};_.rn(_.g2,nD);kn.prototype.getValue=function(){return this.JSC$11380_value_};
kn.prototype.clone=function(){return new kn(this.JSC$11380_key_,this.JSC$11380_value_)};var OU=function(c){this.nodes_=[];if(c)a:{if(c instanceof OU){var f=c.getKeys();c=c.getValues();if(this.getCount()<=0){for(var d=this.nodes_,q=0;q<f.length;q++)d.push(new kn(f[q],c[q]));break a}}else f=_.zV.getKeys(c),c=_.zV.getValues(c);for(d=0;d<f.length;d++)this.insert(f[d],c[d])}};
_.r=OU.prototype;_.r.insert=function(c,f){var d=this.nodes_;d.push(new kn(c,f));c=d.length-1;f=this.nodes_;for(d=f[c];c>0;){var q=c-1>>1;if(f[q].JSC$11380_key_>d.JSC$11380_key_)f[c]=f[q],c=q;else break}f[c]=d};
_.r.remove=function(){var c=this.nodes_,f=c.length,d=c[0];if(!(f<=0)){if(f==1)c.length=0;else{c[0]=c.pop();c=0;f=this.nodes_;for(var q=f.length,Z=f[c];c<q>>1;){var M=c*2+1,g=c*2+2;M=g<q&&f[g].JSC$11380_key_<f[M].JSC$11380_key_?g:M;if(f[M].JSC$11380_key_>Z.JSC$11380_key_)break;f[c]=f[M];c=M}f[c]=Z}return d.getValue()}};
_.r.peek=function(){var c=this.nodes_;if(c.length!=0)return c[0].getValue()};
_.r.getValues=function(){for(var c=this.nodes_,f=[],d=c.length,q=0;q<d;q++)f.push(c[q].getValue());return f};
_.r.getKeys=function(){for(var c=this.nodes_,f=[],d=c.length,q=0;q<d;q++)f.push(c[q].JSC$11380_key_);return f};
_.r.containsValue=function(c){return this.nodes_.some(function(f){return f.getValue()==c})};
_.r.containsKey=function(c){return this.nodes_.some(function(f){return f.JSC$11380_key_==c})};
_.r.clone=function(){return new OU(this)};
_.r.getCount=function(){return this.nodes_.length};
_.r.isEmpty=function(){return this.nodes_.length===0};
_.r.clear=function(){this.nodes_.length=0};_.ls=function(c,f){this.JSC$11386_map_={};this.JSC$11386_keys_=[];this.version_=this.size=0;var d=arguments.length;if(d>1){if(d%2)throw Error("ka");for(var q=0;q<d;q+=2)this.set(arguments[q],arguments[q+1])}else c&&this.addAll(c)};
_.r=_.ls.prototype;_.r.getCount=function(){return this.size};
_.r.getValues=function(){sU(this);for(var c=[],f=0;f<this.JSC$11386_keys_.length;f++)c.push(this.JSC$11386_map_[this.JSC$11386_keys_[f]]);return c};
_.r.getKeys=function(){sU(this);return this.JSC$11386_keys_.concat()};
_.r.containsKey=function(c){return this.has(c)};
_.r.has=function(c){return BK(this.JSC$11386_map_,c)};
_.r.containsValue=function(c){for(var f=0;f<this.JSC$11386_keys_.length;f++){var d=this.JSC$11386_keys_[f];if(BK(this.JSC$11386_map_,d)&&this.JSC$11386_map_[d]==c)return!0}return!1};
_.r.equals=function(c,f){if(this===c)return!0;if(this.size!=c.getCount())return!1;f=f||whu;sU(this);for(var d,q=0;d=this.JSC$11386_keys_[q];q++)if(!f(this.get(d),c.get(d)))return!1;return!0};
var whu=function(c,f){return c===f};
_.ls.prototype.isEmpty=function(){return this.size==0};
_.ls.prototype.clear=function(){this.JSC$11386_map_={};this.version_=this.size=this.JSC$11386_keys_.length=0};
_.ls.prototype.remove=function(c){return this.delete(c)};
_.ls.prototype.delete=function(c){return BK(this.JSC$11386_map_,c)?(delete this.JSC$11386_map_[c],--this.size,this.version_++,this.JSC$11386_keys_.length>2*this.size&&sU(this),!0):!1};
var sU=function(c){if(c.size!=c.JSC$11386_keys_.length){for(var f=0,d=0;f<c.JSC$11386_keys_.length;){var q=c.JSC$11386_keys_[f];BK(c.JSC$11386_map_,q)&&(c.JSC$11386_keys_[d++]=q);f++}c.JSC$11386_keys_.length=d}if(c.size!=c.JSC$11386_keys_.length){f={};for(q=d=0;d<c.JSC$11386_keys_.length;){var Z=c.JSC$11386_keys_[d];BK(f,Z)||(c.JSC$11386_keys_[q++]=Z,f[Z]=1);d++}c.JSC$11386_keys_.length=q}};
_.r=_.ls.prototype;_.r.get=function(c,f){return BK(this.JSC$11386_map_,c)?this.JSC$11386_map_[c]:f};
_.r.set=function(c,f){BK(this.JSC$11386_map_,c)||(this.size+=1,this.JSC$11386_keys_.push(c),this.version_++);this.JSC$11386_map_[c]=f};
_.r.addAll=function(c){if(c instanceof _.ls)for(var f=c.getKeys(),d=0;d<f.length;d++)this.set(f[d],c.get(f[d]));else for(f in c)this.set(f,c[f])};
_.r.forEach=function(c,f){for(var d=this.getKeys(),q=0;q<d.length;q++){var Z=d[q],M=this.get(Z);c.call(f,M,Z,this)}};
_.r.clone=function(){return new _.ls(this)};
_.r.transpose=function(){for(var c=new _.ls,f=0;f<this.JSC$11386_keys_.length;f++){var d=this.JSC$11386_keys_[f];c.set(this.JSC$11386_map_[d],d)}return c};
_.r.keys=function(){return sl_(this.__iterator__(!0)).toEs6()};
_.r.values=function(){return sl_(this.__iterator__(!1)).toEs6()};
_.r.entries=function(){var c=this;return n0r(this.keys(),function(f){return[f,c.get(f)]})};
_.r.__iterator__=function(c){sU(this);var f=0,d=this.version_,q=this,Z=new gE;Z.next=function(){if(d!=q.version_)throw Error("oe");if(f>=q.JSC$11386_keys_.length)return k3;var M=q.JSC$11386_keys_[f++];return O4(c?M:q.JSC$11386_map_[M])};
return Z};
var BK=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)};var Wto=function(){this.JSC$11389_map_=new _.ls;this.JSC$11389_head_=new ye3("");this.JSC$11389_head_.next=this.JSC$11389_head_.prev=this.JSC$11389_head_},DVH=function(c,f){if(f=c.JSC$11389_map_.get(f))f.remove(),c.insert_(f);
return f};
_.r=Wto.prototype;_.r.get=function(c,f){return(c=DVH(this,c))?c.value:f};
_.r.set=function(c,f){var d=DVH(this,c);d?d.value=f:(d=new ye3(c,f),this.JSC$11389_map_.set(c,d),this.insert_(d))};
_.r.peek=function(){return this.JSC$11389_head_.next.value};
_.r.shift=function(){return eDv(this,this.JSC$11389_head_.next)};
_.r.pop=function(){return eDv(this,this.JSC$11389_head_.prev)};
_.r.remove=function(c){return(c=this.JSC$11389_map_.get(c))?(this.removeNode(c),!0):!1};
_.r.removeNode=function(c){c.remove();this.JSC$11389_map_.remove(c.key)};
_.r.getCount=function(){return this.JSC$11389_map_.getCount()};
_.r.isEmpty=function(){return this.JSC$11389_map_.isEmpty()};
_.r.getKeys=function(){return this.map(function(c,f){return f})};
_.r.getValues=function(){return this.map(function(c){return c})};
_.r.contains=function(c){return this.some(function(f){return f==c})};
_.r.containsKey=function(c){return this.JSC$11389_map_.containsKey(c)};
_.r.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11389_head_.prev)};
_.r.forEach=function(c,f){for(var d=this.JSC$11389_head_.next;d!=this.JSC$11389_head_;d=d.next)c.call(f,d.value,d.key,this)};
_.r.map=function(c,f){for(var d=[],q=this.JSC$11389_head_.next;q!=this.JSC$11389_head_;q=q.next)d.push(c.call(f,q.value,q.key,this));return d};
_.r.some=function(c,f){for(var d=this.JSC$11389_head_.next;d!=this.JSC$11389_head_;d=d.next)if(c.call(f,d.value,d.key,this))return!0;return!1};
_.r.every=function(c,f){for(var d=this.JSC$11389_head_.next;d!=this.JSC$11389_head_;d=d.next)if(!c.call(f,d.value,d.key,this))return!1;return!0};
_.r.insert_=function(c){c.next=this.JSC$11389_head_.next;c.prev=this.JSC$11389_head_;this.JSC$11389_head_.next=c;for(c.next.prev=c;this.getCount()>100;)this.removeNode(this.JSC$11389_head_.prev)};
var eDv=function(c,f){c.JSC$11389_head_!=f&&c.removeNode(f);return f.value},ye3=function(c,f){this.key=c;
this.value=f};
ye3.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var NN3=function(){OU.apply(this,arguments)};
_.K(NN3,OU);NN3.prototype.enqueue=function(c,f){this.insert(c,f)};var I9_=function(){var c=Error();c.name="SecurityError";throw c;},JOC=function(){return{get opener(){return null},
get closed(){return!0},get location(){I9_()},get document(){I9_()},postMessage:function(){},
close:function(){},
focus:function(){}}};var S5l={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 aDM={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 PPO={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(aDM).join("|");var RDF=function(){function c(O){O.substr(-1)!==";"&&(O+=";");return g(O)}
for(var f=Object.keys(PPO).sort(JqN),d=Object.keys(aDM).sort(JqN),q=0,Z=0;q<d.length;q++)f[Z]===d[q]?(d[q]+=";?",Z++):d[q]+=";";var M=new RegExp("&(?:"+d.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=Vjr();return function(O){return String(O).replace(M,c)}}();/*

 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 UVK={};var phj=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"),xV3=/[\\&]/,opu=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),GuH=RegExp('[&<>"]',"g"),cpj=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),f7r=function(c){return c.charCodeAt(0)===92?c.charAt(1):RDF(c)},d53=function(c){return xV3.test(c)?c.replace(opu,f7r):c},jTT=function(c){try{var f,d="";
if(typeof Z!=="string"){var q=Z;var Z=";/?:@&=+$,-_.!~*'()#"}typeof q==="undefined"&&(q=!0);var M,g=UVK[Z];if(g)var O=g;else{g=UVK[Z]=[];for(M=0;M<128;M++){var l=String.fromCharCode(M);/^[0-9a-z]$/i.test(l)?g.push(l):g.push("%"+("0"+M.toString(16).toUpperCase()).slice(-2))}for(M=0;M<Z.length;M++)g[Z.charCodeAt(M)]=Z[M];O=g}var m=0;for(f=c.length;m<f;m++){var H=c.charCodeAt(m);if(q&&H===37&&m+2<f&&/^[0-9a-f]{2}$/i.test(c.slice(m+1,m+3)))d+=c.slice(m,m+3),m+=2;else if(H<128)d+=O[H];else if(H>=55296&&
H<=57343){if(H>=55296&&H<=56319&&m+1<f){var A=c.charCodeAt(m+1);if(A>=56320&&A<=57343){d+=encodeURIComponent(c[m]+c[m+1]);m++;continue}}d+="%EF%BF%BD"}else d+=encodeURIComponent(c[m])}return d}catch(Y){return c}},qVH=function(c){switch(c){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return c}},is=function(c,f){return GuH.test(c)?f?c.replace(cpj,qVH):c.replace(GuH,qVH):c};/*

 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 T0;if(String.fromCodePoint)T0=function(c){try{return String.fromCodePoint(c)}catch(f){if(f instanceof RangeError)return String.fromCharCode(65533);throw f;}};
else{var Zso=String.fromCharCode,MCv=Math.floor;T0=function(){var c=[],f=-1,d=arguments.length;if(!d)return"";for(var q="";++f<d;){var Z=Number(arguments[f]);if(!isFinite(Z)||Z<0||Z>1114111||MCv(Z)!==Z)return String.fromCharCode(65533);if(Z<=65535)c.push(Z);else{Z-=65536;var M=(Z>>10)+55296;Z=Z%1024+56320;c.push(M,Z)}if(f+1===d||c.length>16384)q+=Zso.apply(null,c),c.length=0}return q}};var rpj=function(c){this.root=this.current=c;this.entering=!0};
rpj.prototype.next=function(){var c=this.current,f=this.entering;if(c===null)return null;a:switch(c._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 d=!0;break a;default:d=!1}f&&d?c._firstChild?(this.current=c._firstChild,this.entering=!0):this.entering=!1:c===this.root?this.current=null:c._next===null?(this.current=
c._parent,this.entering=!1):(this.current=c._next,this.entering=!0);return{entering:f,node:c}};
var Bi=function(c,f){this._type=c;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=f;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};
Bi.prototype.appendChild=function(c){c.unlink();c._parent=this;this._lastChild?(this._lastChild._next=c,c._prev=this._lastChild):this._firstChild=c;this._lastChild=c};
Bi.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 CSF=function(c,f){f.unlink();f._next=c._next;f._next&&(f._next._prev=f);f._prev=c;c._next=f;f._parent=c._parent;f._next||(f._parent._lastChild=f)};
Bi.prototype.insertBefore=function(c){c.unlink();c._prev=this._prev;c._prev&&(c._prev._next=c);c._next=this;this._prev=c;c._parent=this._parent;c._prev||(c._parent._firstChild=c)};
_.ci.Object.defineProperties(Bi.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(c){this._literal=c}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(c){this._destination=c}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(c){this._title=c}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(c){this._info=c}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(c){this._level=c}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(c){this._listData.type=c}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(c){this._listData.tight=c}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(c){this._listData.start=c}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(c){this._onEnter=c}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(c){this._onExit=c}}});var X1N=/[ \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,
uBP={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 gZo=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]/),
k3o=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Os3=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),l7o=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),sTv=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),B_K=/`+/,isH=/^`+/,T_K=/\.\.\./g,m5F=/--+/g,Hsy=/^<([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])?)*)>/,
ApF=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,YVT=/^ *(?:\n *)?/,F$r=/^[ \t\n\x0b\x0c\x0d]/,tCy=/[ \t\n\x0b\x0c\x0d]+/g,bsj=/^\s/,K$F=/ *$/,EZF=/^ */,nZy=/^ *(?:\n|$)/,$5o=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),QTy=/^[^\n`\[\]\\!<&*_'"]+/m,m3=function(c){var f=new Bi("text");f._literal=c;return f},HK=function(c){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=c||{}};
HK.prototype.match=function(c){c=c.exec(this.subject.slice(this.pos));if(c===null)return null;this.pos+=c.index+c[0].length;return c[0]};
HK.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var As=function(c){c.match(YVT);return!0},SVO=function(c,f,d){var q=0;
var Z=c.pos;if(f===39||f===34)q++,c.pos++;else for(;c.peek()===f;)q++,c.pos++;if(q===0)q=null;else{var M=Z===0?"\n":c.subject.charAt(Z-1);var g=c.peek();g=g===-1?"\n":T0(g);var O=bsj.test(g);g=gZo.test(g);var l=bsj.test(M);var m=gZo.test(M);M=!O&&!(g&&!l&&!m);O=!l&&!(m&&!O&&!g);f===95?(l=M&&(!O||m),g=O&&(!M||g)):(l=f===39||f===34?M&&!O:M,g=O);c.pos=Z;q={numdelims:q,can_open:l,can_close:g}}if(!q)return!1;Z=q.numdelims;g=c.pos;c.pos+=Z;g=f===39?"\u2019":f===34?"\u201c":c.subject.slice(g,c.pos);g=m3(g);
d.appendChild(g);c.delimiters={cc:f,numdelims:Z,origdelims:Z,node:g,previous:c.delimiters,next:null,can_open:q.can_open,can_close:q.can_close};c.delimiters.previous!==null&&(c.delimiters.previous.next=c.delimiters);return!0},L$_=function(c,f){f.previous!==null&&(f.previous.next=f.next);
f.next===null?c.delimiters=f.previous:f.next.previous=f.previous},zY3=function(c,f){var d,q,Z=[],M=!1;
Z[95]=f;Z[42]=f;Z[39]=f;Z[34]=f;for(d=c.delimiters;d!==null&&d.previous!==f;)d=d.previous;for(;d!==null;){var g=d.cc;if(d.can_close){var O=d.previous;for(q=!1;O!==null&&O!==f&&O!==Z[g];){M=(d.can_open||O.can_close)&&(O.origdelims+d.origdelims)%3===0;if(O.cc===d.cc&&O.can_open&&!M){q=!0;break}O=O.previous}var l=d;if(g===42||g===95)if(q){var m=d.numdelims>=2&&O.numdelims>=2?2:1;var H=O.node;var A=d.node;O.numdelims-=m;d.numdelims-=m;H._literal=H._literal.slice(0,H._literal.length-m);A._literal=A._literal.slice(0,
A._literal.length-m);var Y=new Bi(m===1?"emph":"strong");for(m=H._next;m&&m!==A;){var t=m._next;m.unlink();Y.appendChild(m);m=t}CSF(H,Y);m=O;t=d;m.next!==t&&(m.next=t,t.previous=m);O.numdelims===0&&(H.unlink(),L$_(c,O));d.numdelims===0&&(A.unlink(),O=d.next,L$_(c,d),d=O)}else d=d.next;else g===39?(d.node._literal="\u2019",q&&(O.node._literal="\u2018"),d=d.next):g===34&&(d.node._literal="\u201d",q&&(O.node.literal="\u201c"),d=d.next);q||M||(Z[g]=l.previous,l.can_open||L$_(c,l))}else d=d.next}for(;c.delimiters!==
null&&c.delimiters!==f;)L$_(c,c.delimiters)},Jpu=function(c){c=c.match(k3o);
return c===null?null:d53(c.substr(1,c.length-2))},a7j=function(c){var f=c.match(Os3);
if(f===null){f=c.pos;for(var d=0,q;(q=c.peek())!==-1;)if(q===92)c.pos+=1,c.peek()!==-1&&(c.pos+=1);else if(q===40)c.pos+=1,d+=1;else if(q===41)if(d<1)break;else c.pos+=1,--d;else if(F$r.exec(T0(q))!==null)break;else c.pos+=1;f=c.subject.substr(f,c.pos-f);return jTT(d53(f))}return jTT(d53(f.substr(1,f.length-2)))},VC_=function(c){c=c.match($5o);
return c===null||c.length>1001?0:c.length},XrK=function(c,f,d,q){c.brackets!==null&&(c.brackets.bracketAfter=!0);
c.brackets={node:f,previous:c.brackets,previousDelimiter:c.delimiters,index:d,image:q,active:!0}},uYr=function(c,f){var d;
return(d=c.match(QTy))?(c.options.smart?f.appendChild(m3(d.replace(T_K,"\u2026").replace(m5F,function(q){var Z=0,M=0;q.length%3===0?M=q.length/3:q.length%2===0?Z=q.length/2:q.length%3===2?(Z=1,M=(q.length-2)/3):(Z=2,M=(q.length-4)/3);q="";var g;for(g=0;g<M;g++)q+="\u2014";for(g=0;g<Z;g++)q+="\u2013";return q}))):f.appendChild(m3(d)),!0):!1},vZ_=function(c,f,d){c.subject=f;
c.pos=0;f=c.pos;var q=VC_(c);if(q===0)return 0;var Z=c.subject.substr(0,q);if(c.peek()===58)c.pos++;else return c.pos=f,0;As(c);q=a7j(c);if(q===null||q.length===0)return c.pos=f,0;var M=c.pos;As(c);var g=Jpu(c);g===null&&(g="",c.pos=M);var O=!0;c.match(nZy)===null&&(g===""?O=!1:(g="",c.pos=M,O=c.match(nZy)!==null));if(!O)return c.pos=f,0;Z=vxe(Z);if(Z==="")return c.pos=f,0;d[Z]||(d[Z]={destination:q,title:g});return c.pos-f},hYH=function(c,f){var d,q=c.peek();
if(q===-1)return!1;switch(q){case 10:c.pos+=1;if((d=f._lastChild)&&d.type==="text"&&d._literal[d._literal.length-1]===" "){var Z=d._literal[d._literal.length-2]===" ";d._literal=d._literal.replace(K$F,"");f.appendChild(new Bi(Z?"linebreak":"softbreak"))}else f.appendChild(new Bi("softbreak"));c.match(EZF);d=!0;break;case 92:d=c.subject;c.pos+=1;c.peek()===10?(c.pos+=1,d=new Bi("linebreak"),f.appendChild(d)):l7o.test(d.charAt(c.pos))?(f.appendChild(m3(d.charAt(c.pos))),c.pos+=1):f.appendChild(m3("\\"));
d=!0;break;case 96:a:if(d=c.match(isH),d===null)d=!1;else{Z=c.pos;for(var M;(M=c.match(B_K))!==null;)if(M===d){M=new Bi("code");M._literal=c.subject.slice(Z,c.pos-d.length).trim().replace(tCy," ");f.appendChild(M);d=!0;break a}c.pos=Z;f.appendChild(m3(d));d=!0}break;case 42:case 95:d=SVO(c,q,f);break;case 39:case 34:d=c.options.smart&&SVO(c,q,f);break;case 91:d=c.pos;c.pos+=1;Z=m3("[");f.appendChild(Z);XrK(c,Z,d,!1);d=!0;break;case 33:d=c.pos;c.pos+=1;c.peek()===91?(c.pos+=1,Z=m3("!["),f.appendChild(Z),
XrK(c,Z,d+1,!0)):f.appendChild(m3("!"));d=!0;break;case 93:var g,O=!1,l;c.pos+=1;var m=c.pos;Z=c.brackets;if(Z===null)f.appendChild(m3("]"));else if(Z.active){d=Z.image;var H=c.pos;c.peek()===40&&(c.pos++,As(c)&&(M=a7j(c))!==null&&As(c)&&(F$r.test(c.subject.charAt(c.pos-1))&&(g=Jpu(c)),1)&&As(c)&&c.peek()===41?(c.pos+=1,O=!0):c.pos=H);if(!O){var A=c.pos,Y=VC_(c);Y>2?l=c.subject.slice(A,A+Y):Z.bracketAfter||(l=c.subject.slice(Z.index,m));Y===0&&(c.pos=H);l&&(l=c.refmap[vxe(l)])&&(M=l.destination,g=
l.title,O=!0)}if(O){m=new Bi(d?"image":"link");m._destination=M;m._title=g||"";for(M=Z.node._next;M;)g=M._next,M.unlink(),m.appendChild(M),M=g;f.appendChild(m);zY3(c,Z.previousDelimiter);c.brackets=c.brackets.previous;Z.node.unlink();if(!d)for(Z=c.brackets;Z!==null;)Z.image||(Z.active=!1),Z=Z.previous}else c.brackets=c.brackets.previous,c.pos=m,f.appendChild(m3("]"))}else f.appendChild(m3("]")),c.brackets=c.brackets.previous;d=!0;break;case 60:(d=c.match(Hsy))?(d=d.slice(1,d.length-1),Z=new Bi("link"),
Z._destination=jTT("mailto:"+d),Z._title="",Z.appendChild(m3(d)),f.appendChild(Z),d=!0):(d=c.match(ApF))?(d=d.slice(1,d.length-1),Z=new Bi("link"),Z._destination=jTT(d),Z._title="",Z.appendChild(m3(d)),f.appendChild(Z),d=!0):d=!1;d||(d=c.match(phj),d===null?d=!1:(Z=new Bi("html_inline"),Z._literal=d,f.appendChild(Z),d=!0));break;case 38:(d=c.match(sTv))?(f.appendChild(m3(RDF(d))),d=!0):d=!1;break;default:d=uYr(c,f)}d||(c.pos+=1,f.appendChild(m3(T0(q))));return!0};
HK.prototype.parseInlines=function(c){this.subject=c._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;hYH(this,c););c._string_content=null;zY3(this,null)};
HK.prototype.parse=HK.prototype.parseInlines;var wrT=[/./,/^<(?: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")],ypv=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],W$F=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,D5u=/^[#`~*+_=<>0-9-\|]|\|/,eYH=/[^ \t\f\v\r\n]/,N_y=/^[*+-]/,I7_=/^(\d{1,9})([.)])/,PS_=/^#{1,6}(?:[ \t]+|$)/,RY3=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,U5H=/^(?:`{3,}|~{3,})(?= *$)/,pru=/^(?:=+|-+)[ \t]*$/,x5o=/\r\n|\n|\r/,w1h=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,yq4=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,oZy={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(c){return c!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(c,f){for(c=f._firstChild;c;){if(h8G(c)&&c._next){f._listData.tight=!1;break}for(var d=c._firstChild;d;){if(h8G(d)&&(c._next||d._next)){f._listData.tight=!1;break}d=d._next}c=c._next}},
canContain:function(c){return c==="item"},
acceptsLines:!1},block_quote:{continue:function(c){var f=c.currentLine;if(c.indented||lV(f,c.nextNonspace)!==62)return 1;Y$(c);F$(c,1,!1);Oc(lV(f,c.offset))&&F$(c,1,!0);return 0},
finalize:function(){},
canContain:function(c){return c!=="item"},
acceptsLines:!1},item:{continue:function(c,f){if(c.blank){if(f._firstChild==null)return 1;Y$(c)}else if(c.indent>=f._listData.markerOffset+f._listData.padding)F$(c,f._listData.markerOffset+f._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(c){return c!=="item"&&!WbG(c)},
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(c,f){var d=c.currentLine,q=c.indent;if(f._isFenced){if((q=q<=3&&d.charAt(c.nextNonspace)===f._fenceChar&&d.slice(c.nextNonspace).match(U5H))&&q[0].length>=f._fenceLength)return c.finalize(f,c.lineNumber),2;for(f=f._fenceOffset;f>0&&Oc(lV(d,c.offset));)F$(c,1,!0),f--}else if(q>=4)F$(c,4,!0);else if(c.blank)Y$(c);else return 1;return 0},
finalize:function(c,f){if(f._isFenced){var d=f._string_content,q=d.indexOf("\n");c=d.slice(0,q);d=d.slice(q+1);f.info=d53(c.trim());f._literal=d}else f._literal=f._string_content.replace(/(\n *)+$/,"\n");f._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(c,f){return!c.blank||f._htmlBlockType!==6&&f._htmlBlockType!==7?0:1},
finalize:function(c,f){f._literal=f._string_content.replace(/(\n *)+$/,"");f._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(c){return c.blank?1:0},
finalize:function(c,f){for(var d,q=!1;lV(f._string_content,0)===91&&(d=vZ_(c.inlineParser,f._string_content,c.refmap));)f._string_content=f._string_content.slice(d),q=!0;q&&!eYH.test(f._string_content)&&f.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(c){return sc(c.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(c){return c=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(c,f){if(!f._rowIsDelimiter){c=f._isHeader?"th":"td";for(var d=f._parent._tableColumns,q=f._string_content,Z=0,M="",g,O=f._sourcepos[0][0];Z<q.length;){switch(q[Z]){case "|":g&&(g._string_content=M.trim(),M="",g=null,d--,d<=0&&(Z=q.length));break;default:if(!g){g=new Bi(c,[[O,Z],[O,Z]]);var l=f._parent._columnAlignment,m=f._parent._tableColumns-d;l&&m<=l.length&&m>=0&&(g._alignment=l[m]);f.appendChild(g)}M+=q[Z];g._sourcepos[1][1]=Z}Z++}g&&(g._string_content=M.trim());f._string_content=
""}},
canContain:function(c){return c!=="row"},
acceptsLines:!1}},G3K=[function(c){if(c.indented||lV(c.currentLine,c.nextNonspace)!==62)return 0;Y$(c);F$(c,1,!1);Oc(lV(c.currentLine,c.offset))&&F$(c,1,!0);ts(c);c.addChild("block_quote",c.nextNonspace);return 1},
function(c){var f;if(!c.indented&&(f=c.currentLine.slice(c.nextNonspace).match(PS_))){Y$(c);F$(c,f[0].length,!1);ts(c);var d=c.addChild("heading",c.nextNonspace);d.level=f[0].trim().length;d._string_content=c.currentLine.slice(c.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");F$(c,c.currentLine.length-c.offset);return 2}return 0},
function(c){var f;if(!c.indented&&(f=c.currentLine.slice(c.nextNonspace).match(RY3))){var d=f[0].length;ts(c);var q=c.addChild("code_block",c.nextNonspace);q._isFenced=!0;q._fenceLength=d;q._fenceChar=f[0][0];q._fenceOffset=c.indent;Y$(c);F$(c,d,!1);return 2}return 0},
function(c,f){if(!c.indented&&lV(c.currentLine,c.nextNonspace)===60){var d=c.currentLine.slice(c.nextNonspace),q;for(q=1;q<=7;q++)if(wrT[q].test(d)&&(q<7||f.type!=="paragraph"))return ts(c),c.addChild("html_block",c.offset)._htmlBlockType=q,2}return 0},
function(c,f){var d;if(!c.indented&&f.type==="paragraph"&&(d=c.currentLine.slice(c.nextNonspace).match(pru))){ts(c);var q=new Bi("heading",f.sourcepos);q.level=d[0][0]==="="?1:2;q._string_content=f._string_content;CSF(f,q);f.unlink();c.tip=q;F$(c,c.currentLine.length-c.offset,!1);return 2}return 0},
function(c){return!c.indented&&W$F.test(c.currentLine.slice(c.nextNonspace))?(ts(c),c.addChild("thematic_break",c.nextNonspace),F$(c,c.currentLine.length-c.offset,!1),2):0},
function(c,f){var d,q;if(!(q=c.indented&&f.type!=="list")){a:{var Z=f,M=c.currentLine.slice(c.nextNonspace);q={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:c.indent};if(d=M.match(N_y))q.type="bullet",q.bulletChar=d[0][0];else{if(!(d=M.match(I7_))||Z.type==="paragraph"&&d[1]!=="1"){d=null;break a}q.type="ordered";q.start=parseInt(d[1],10);q.delimiter=d[2]}var g=lV(c.currentLine,c.nextNonspace+d[0].length);if(g!==-1&&g!==9&&g!==32||Z.type==="paragraph"&&!c.currentLine.slice(c.nextNonspace+
d[0].length).match(eYH))d=null;else{Y$(c);F$(c,d[0].length,!0);Z=c.column;M=c.offset;do F$(c,1,!0),g=lV(c.currentLine,c.offset);while(c.column-Z<5&&Oc(g));g=lV(c.currentLine,c.offset)===-1;var O=c.column-Z;O>=5||O<1||g?(q.padding=d[0].length+1,c.column=Z,c.offset=M,Oc(lV(c.currentLine,c.offset))&&F$(c,1,!0)):q.padding=d[0].length+O;d=q}}q=!d}if(q)return 0;ts(c);(q=c.tip.type!=="list")||(f=f._listData,q=!(f.type===d.type&&f.delimiter===d.delimiter&&f.bulletChar===d.bulletChar));q&&(f=c.addChild("list",
c.nextNonspace),f._listData=d);f=c.addChild("item",c.nextNonspace);f._listData=d;return 1},
function(c){var f;return((f=c.options.shouldParseIndentAsCodeBlock)!=null?f:1)&&c.indented&&c.tip.type!=="paragraph"&&!c.blank?(F$(c,4,!0),ts(c),c.addChild("code_block",c.offset),2):0},
function(c,f){var d=sc(c.currentLine),q=sc(c.lookahead);if(d!==0&&q<0&&Math.abs(d)==Math.abs(q)&&!WbG(f.type)){ts(c);f=c.addChild("table",c.nextNonspace);f._tableRows=1;f._tableColumns=Math.abs(d);d=c.lookahead;if(yq4.test(d)){q=[];for(var Z=0,M=!1,g=0,O=void 0;Z<d.length;){var l=g>=3;switch(d[Z]){case "-":g++;break;case "|":M&&(q.push(O),O=void 0,g=0);M=!0;break;case ":":O||l||(O="left"),!O&&l&&(O="right"),O==="left"&&l&&(O="center")}Z++}d=q}else d=void 0;f._columnAlignment=d;f=c.addChild("row",
c.nextNonspace);f._isHeader=!0;F$(c,c.currentLine.length-c.offset,!1);f._string_content=c.currentLine;return 1}return 0},
function(c,f){if(f.type=="table"&&sc(c.currentLine)!==0){ts(c);var d=f;f=c.addChild("row",c.nextNonspace);sc(c.currentLine)<0?f._rowIsDelimiter=!0:d._tableRows+=1;F$(c,c.currentLine.length-c.offset,!1);f._string_content=c.currentLine;return 2}return 0}],LS4=function(){var c={shouldParseIndentAsCodeBlock:!1};
c=c===void 0?{}:c;this.lastMatchedContainer=this.doc=D0z();this.refmap={};this.lastLineLength=0;this.inlineParser=new HK(c);this.options=c;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=oZy;this.blockStarts=G3K},ccH=function(c){c.partiallyConsumedTab&&(c.offset+=1,c.tip._string_content+=" ".repeat(4-c.column%
4));
c.tip._string_content+=c.currentLine.slice(c.offset)+"\n"};
LS4.prototype.addChild=function(c,f){for(;!this.blocks[this.tip.type].canContain(c);)this.finalize(this.tip,this.lineNumber-1);c=new Bi(c,[[this.lineNumber,f+1],[0,0]]);c._string_content="";this.tip.appendChild(c);return this.tip=c};
var ts=function(c){if(!c.allClosed){for(;c.oldtip!==c.lastMatchedContainer;){var f=c.oldtip._parent;c.finalize(c.oldtip,c.lineNumber-1);c.oldtip=f}c.allClosed=!0}},F$=function(c,f,d){for(var q=c.currentLine,Z,M;f>0&&(M=q[c.offset]);)M==="\t"?(Z=4-c.column%4,d?(c.partiallyConsumedTab=Z>f,Z=Z>f?f:Z,c.column+=Z,c.offset+=c.partiallyConsumedTab?0:1,f-=Z):(c.partiallyConsumedTab=!1,c.column+=Z,c.offset+=1,--f)):(c.partiallyConsumedTab=!1,c.offset+=1,c.column+=1,--f)},Y$=function(c){c.offset=c.nextNonspace;
c.column=c.nextNonspaceColumn;c.partiallyConsumedTab=!1},fW_=function(c){for(var f=c.currentLine,d=c.offset,q=c.column,Z;(Z=f.charAt(d))!=="";)if(Z===" ")d++,q++;
else if(Z==="\t")d++,q+=4-q%4;else break;c.blank=Z==="\n"||Z==="\r"||Z==="";c.nextNonspace=d;c.nextNonspaceColumn=q;c.indent=c.nextNonspaceColumn-c.column;c.indented=c.indent>=4};
LS4.prototype.finalize=function(c,f){var d=c._parent;c._open=!1;c.sourcepos[1]=[f,this.lastLineLength];this.blocks[c.type].finalize(this,c);this.tip=d};
LS4.prototype.parse=function(c){this.tip=this.doc=D0z();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!c)return this.doc;this.options.time&&console.time("preparing input");var f=c.split(x5o),d=f.length;c.charCodeAt(c.length-1)===10&&--d;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(c=0;c<d;c++)a:{var q=void 0,Z=f[c],M=f[c+1],g=!0,O=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Z.indexOf("\x00")!==-1&&(Z=Z.replace(/\0/g,"\ufffd"));this.currentLine=Z;for(this.lookahead=M;(q=O._lastChild)&&q._open;){O=q;fW_(this);switch(this.blocks[O.type].continue(this,O)){case 0:break;case 1:g=!1;break;case 2:this.lastLineLength=Z.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!g){O=O._parent;break}}this.allClosed=O===this.oldtip;this.lastMatchedContainer=
O;q=O.type!=="paragraph"&&oZy[O.type].acceptsLines;M=this.blockStarts;for(g=M.length;!q;){fW_(this);if(!this.indented&&!D5u.test(Z.slice(this.nextNonspace))){Y$(this);break}for(var l=0;l<g;){var m=M[l](this,O);if(m===1){O=this.tip;break}else if(m===2){O=this.tip;q=!0;break}else l++}if(l===g){Y$(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){ts(this);this.blank&&O.lastChild&&(O.lastChild._lastLineBlank=!0);q=O.type;M=this.blank&&!(q==="block_quote"||q==="code_block"&&O._isFenced||
q==="item"&&!O._firstChild&&O.sourcepos[0][0]===this.lineNumber);for(g=O;g;)g._lastLineBlank=M,g=g._parent;this.blocks[q].acceptsLines?(ccH(this),q==="html_block"&&O._htmlBlockType>=1&&O._htmlBlockType<=5&&ypv[O._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(O,this.lineNumber)):this.offset<Z.length&&!this.blank&&(this.addChild("paragraph",this.offset),Y$(this),ccH(this))}else ccH(this);this.lastLineLength=Z.length}for(;this.tip;)this.finalize(this.tip,d);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Z=new rpj(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;d=Z.next();)f=d.node,c=f.type,d.entering||c!=="paragraph"&&c!=="heading"&&c!=="th"&&c!="td"||this.inlineParser.parse(f);this.options.time&&console.timeEnd("inline parsing");return this.doc};e8C.prototype.render=function(c){c=new rpj(c);var f;this.buffer="";for(this.lastOut="\n";f=c.next();){var d=f.node.type;if(this[d])this[d](f.node,f.entering)}return this.buffer};
e8C.prototype.out=function(c){bs(this,c)};
var bs=function(c,f){c.buffer+=f;c.lastOut=f};
e8C.prototype.cr=function(){this.lastOut!=="\n"&&bs(this,"\n")};var dY_=/^javascript:|vbscript:|file:|data:/i,jer=/^data:image\/(?:png|gif|jpeg|webp)/i,qRo=function(c){return dY_.test(c)&&!jer.test(c)};
iV.prototype=Object.create(e8C.prototype);_.r=iV.prototype;_.r.text=function(c){this.out(c.literal)};
_.r.html_inline=function(c){this.options.safe?bs(this,"\x3c!-- raw HTML omitted --\x3e"):bs(this,c.literal)};
_.r.html_block=function(c){this.cr();this.options.safe?bs(this,"\x3c!-- raw HTML omitted --\x3e"):bs(this,c.literal);this.cr()};
_.r.softbreak=function(){bs(this,this.options.softbreak)};
_.r.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.r.link=function(c,f){var d=this.attrs(c);f?(this.options.safe&&qRo(c.destination)||d.push(["href",is(c.destination,!0)]),c.title&&d.push(["title",is(c.title,!0)]),this.tag("a",d)):this.tag("/a")};
_.r.image=function(c,f){f?(this.disableTags===0&&(this.options.safe&&qRo(c.destination)?bs(this,'<img src="" alt="'):bs(this,'<img src="'+is(c.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(c.title&&bs(this,'" title="'+is(c.title,!0)),bs(this,'" />')))};
_.r.emph=function(c,f){this.tag(f?"em":"/em")};
_.r.strong=function(c,f){this.tag(f?"strong":"/strong")};
_.r.paragraph=function(c,f){var d=c.parent.parent;c=this.attrs(c);d!==null&&d.type==="list"&&d.listTight||(f?(this.cr(),this.tag("p",c)):(this.tag("/p"),this.cr()))};
_.r.heading=function(c,f){var d="h"+c.level;c=this.attrs(c);f?(this.cr(),this.tag(d,c)):(this.tag("/"+d),this.cr())};
_.r.code=function(c){this.tag("code");this.out(c.literal);this.tag("/code")};
_.r.code_block=function(c){var f=c.info?c.info.split(/\s+/):[],d=this.attrs(c);f.length>0&&f[0].length>0&&d.push(["class","language-"+is(f[0],!0)]);this.cr();this.tag("pre");this.tag("code",d);this.out(c.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.r.thematic_break=function(c){c=this.attrs(c);this.cr();this.tag("hr",c,!0);this.cr()};
_.r.block_quote=function(c,f){c=this.attrs(c);f?(this.cr(),this.tag("blockquote",c)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.r.list=function(c,f){var d=c.listType==="bullet"?"ul":"ol",q=this.attrs(c);f?(c=c.listStart,c!==null&&c!==1&&q.push(["start",c.toString()]),this.cr(),this.tag(d,q)):(this.cr(),this.tag("/"+d));this.cr()};
_.r.item=function(c,f){c=this.attrs(c);f?this.tag("li",c):(this.tag("/li"),this.cr())};
_.r.custom_inline=function(c,f){f&&c.onEnter?bs(this,c.onEnter):!f&&c.onExit&&bs(this,c.onExit)};
_.r.custom_block=function(c,f){this.cr();f&&c.onEnter?bs(this,c.onEnter):!f&&c.onExit&&bs(this,c.onExit);this.cr()};
_.r.table=function(c,f){c=this.attrs(c);f?(this.cr(),this.tag("table",c)):(this.tag("/table"),this.cr())};
_.r.row=function(c,f){c._rowIsDelimiter||(c=this.attrs(c),f?this.tag("tr",c):this.tag("/tr"))};
_.r.td=function(c,f){var d=this.attrs(c);c._alignment&&d.push(["align",c._alignment]);f?this.tag("td",d):this.tag("/td")};
_.r.th=function(c,f){var d=this.attrs(c);c._alignment&&d.push(["align",c._alignment]);f?this.tag("th",d):this.tag("/th")};
_.r.out=function(c){bs(this,is(c,!1))};
_.r.tag=function(c,f,d){if(!(this.disableTags>0)){this.buffer+="<"+c;if(f&&f.length>0){c=0;for(var q;(q=f[c])!==void 0;)this.buffer+=" "+q[0]+'="'+q[1]+'"',c++}d&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.r.attrs=function(c){var f=[];this.options.sourcepos&&(c=c.sourcepos)&&f.push(["data-sourcepos",String(c[0][0])+":"+String(c[0][1])+"-"+String(c[1][0])+":"+String(c[1][1])]);return f};
iV.prototype.text=iV.prototype.text;iV.prototype.html_inline=iV.prototype.html_inline;iV.prototype.html_block=iV.prototype.html_block;iV.prototype.softbreak=iV.prototype.softbreak;iV.prototype.linebreak=iV.prototype.linebreak;iV.prototype.link=iV.prototype.link;iV.prototype.image=iV.prototype.image;iV.prototype.emph=iV.prototype.emph;iV.prototype.strong=iV.prototype.strong;iV.prototype.paragraph=iV.prototype.paragraph;iV.prototype.heading=iV.prototype.heading;iV.prototype.code=iV.prototype.code;
iV.prototype.code_block=iV.prototype.code_block;iV.prototype.thematic_break=iV.prototype.thematic_break;iV.prototype.block_quote=iV.prototype.block_quote;iV.prototype.list=iV.prototype.list;iV.prototype.item=iV.prototype.item;iV.prototype.custom_inline=iV.prototype.custom_inline;iV.prototype.custom_block=iV.prototype.custom_block;iV.prototype.table=iV.prototype.table;iV.prototype.row=iV.prototype.row;iV.prototype.td=iV.prototype.td;iV.prototype.th=iV.prototype.th;iV.prototype.out=iV.prototype.out;
iV.prototype.tag=iV.prototype.tag;iV.prototype.attrs=iV.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 Zao,McK,FQY;(function(){function c(V,a){return V<a?-1:V>a?1:V>=a?0:NaN}
function f(V){return function(a,w){return c(V(a),w)}}
function d(){for(var V=0,a=arguments.length,w={},G;V<a;++V){if(!(G=arguments[V]+"")||G in w)throw Error("qe`"+G);w[G]=[]}return new q(w)}
function q(V){this._=V}
function Z(V,a){return V.trim().split(/^|\s+/).map(function(w){var G="",Cr=w.indexOf(".");Cr>=0&&(G=w.slice(Cr+1),w=w.slice(0,Cr));if(w&&!a.hasOwnProperty(w))throw Error("re`"+w);return{type:w,name:G}})}
function M(V,a,w){for(var G=0,Cr=V.length;G<Cr;++G)if(V[G].name===a){V[G]=LPD;V=V.slice(0,G).concat(V.slice(G+1));break}w!=null&&V.push({name:a,value:w});return V}
function g(V){var a=V,w=a.indexOf(":");w>=0&&(a=V.slice(0,w))!=="xmlns"&&(V=V.slice(w+1));return Fb.hasOwnProperty(a)?{space:Fb[a],local:V}:V}
function O(V){return function(){var a=this.ownerDocument,w=this.namespaceURI;return w==="http://www.w3.org/1999/xhtml"&&a.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?a.createElement(V):a.createElementNS(w,V)}}
function l(V){return function(){return this.ownerDocument.createElementNS(V.space,V.local)}}
function m(V){V=g(V);return(V.local?l:O)(V)}
function H(){}
function A(V){return V==null?H:function(){return this.querySelector(V)}}
function Y(V){return Array(V.length)}
function t(V,a){this.ownerDocument=V.ownerDocument;this.namespaceURI=V.namespaceURI;this._next=null;this._parent=V;this.__data__=a}
function E(V){return function(){return V}}
function J(V,a,w,G,Cr,mh){for(var be=0,JP,fj=a.length,ok=mh.length;be<ok;++be)(JP=a[be])?(JP.__data__=mh[be],G[be]=JP):w[be]=new t(V,mh[be]);for(;be<fj;++be)if(JP=a[be])Cr[be]=JP}
function X(V,a,w,G,Cr,mh,be){var JP,fj,ok={},ZO=a.length,mT=mh.length,x_=Array(ZO),K3;for(JP=0;JP<ZO;++JP)if(fj=a[JP])x_[JP]=K3="$"+be.call(fj,fj.__data__,JP,a),K3 in ok?Cr[JP]=fj:ok[K3]=fj;for(JP=0;JP<mT;++JP)K3="$"+be.call(V,mh[JP],JP,mh),(fj=ok[K3])?(G[JP]=fj,fj.__data__=mh[JP],ok[K3]=null):w[JP]=new t(V,mh[JP]);for(JP=0;JP<ZO;++JP)(fj=a[JP])&&ok[x_[JP]]===fj&&(Cr[JP]=fj)}
function u(V,a){return V<a?-1:V>a?1:V>=a?0:NaN}
function W(V){return function(){this.removeAttribute(V)}}
function p(V){return function(){this.removeAttributeNS(V.space,V.local)}}
function N(V,a){return function(){this.setAttribute(V,a)}}
function I(V,a){return function(){this.setAttributeNS(V.space,V.local,a)}}
function R(V,a){return function(){var w=a.apply(this,arguments);w==null?this.removeAttribute(V):this.setAttribute(V,w)}}
function qN(V,a){return function(){var w=a.apply(this,arguments);w==null?this.removeAttributeNS(V.space,V.local):this.setAttributeNS(V.space,V.local,w)}}
function kl(V){return function(){this.style.removeProperty(V)}}
function BN(V,a,w){return function(){this.style.setProperty(V,a,w)}}
function tP(V,a,w){return function(){var G=a.apply(this,arguments);G==null?this.style.removeProperty(V):this.style.setProperty(V,G,w)}}
function EC(V,a){return V.style.getPropertyValue(a)||(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView).getComputedStyle(V,null).getPropertyValue(a)}
function AP(V){return function(){delete this[V]}}
function eM(V,a){return function(){this[V]=a}}
function ue(V,a){return function(){var w=a.apply(this,arguments);w==null?delete this[V]:this[V]=w}}
function BH(){this.textContent=""}
function J3(V){return function(){this.textContent=V}}
function lr(V){return function(){var a=V.apply(this,arguments);this.textContent=a==null?"":a}}
function xl(){this.innerHTML=""}
function Tv(V){return function(){this.innerHTML=V}}
function ir(V){return function(){var a=V.apply(this,arguments);this.innerHTML=a==null?"":a}}
function $_(){return null}
function AH(){var V=this.parentNode;V&&V.removeChild(this)}
function U3(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function MN(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function qH(V,a,w){V=br(V,a,w);return function(G){var Cr=G.relatedTarget;Cr&&(Cr===this||Cr.compareDocumentPosition(this)&8)||V.call(this,G)}}
function br(V,a,w){return function(){V.call(this,this.__data__,a,w)}}
function YS(V){return V.trim().split(/^|\s+/).map(function(a){var w="",G=a.indexOf(".");G>=0&&(w=a.slice(G+1),a=a.slice(0,G));return{type:a,name:w}})}
function Y_(V){return function(){var a=this.__on;if(a){for(var w=0,G=-1,Cr=a.length,mh;w<Cr;++w)(mh=a[w],V.type&&mh.type!==V.type||mh.name!==V.name)?a[++G]=mh:this.removeEventListener(mh.type,mh.listener,mh.capture);++G?a.length=G:delete this.__on}}}
function eu(V,a,w){var G=LZv.hasOwnProperty(V.type)?qH:br;return function(Cr,mh,be){Cr=this.__on;var JP;mh=G(a,mh,be);if(Cr){be=0;for(var fj=Cr.length;be<fj;++be)if((JP=Cr[be]).type===V.type&&JP.name===V.name){this.removeEventListener(JP.type,JP.listener,JP.capture);this.addEventListener(JP.type,JP.listener=mh,JP.capture=w);JP.value=a;return}}this.addEventListener(V.type,mh,w);JP={type:V.type,name:V.name,value:a,listener:mh,capture:w};Cr?Cr.push(JP):this.__on=[JP]}}
function fT(V,a,w){var G=V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView,Cr=G.CustomEvent;typeof Cr==="function"?Cr=new Cr(a,w):(Cr=G.document.createEvent("Event"),w?(Cr.initEvent(a,w.bubbles,w.cancelable),Cr.detail=w.detail):Cr.initEvent(a,!1,!1));V.dispatchEvent(Cr)}
function Gv(V,a){return function(){return fT(this,V,a)}}
function Cj(V,a){return function(){return fT(this,V,a.apply(this,arguments))}}
function dJ(V,a){this._groups=V;this._parents=a}
function BD(){return new dJ([[document.documentElement]],z9i)}
function E3(){this._="@"+(++JRp).toString(36)}
function Lj(V,a,w){V.prototype=a.prototype=w;w.constructor=V}
function tH(V,a){V=Object.create(V.prototype);for(var w in a)V[w]=a[w];return V}
function Ol(){}
function sr(V){var a;V=(V+"").trim().toLowerCase();return(a=auF.exec(V))?(a=parseInt(a[1],16),new eF(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1)):(a=VlF.exec(V))?KG(parseInt(a[1],16)):(a=XdS.exec(V))?new eF(a[1],a[2],a[3],1):(a=uIi.exec(V))?new eF(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=vXq.exec(V))?pZ(a[1],a[2],a[3],a[4]):(a=h9S.exec(V))?pZ(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=wdp.exec(V))?jZ(a[1],a[2]/100,a[3]/100,1):(a=yRp.exec(V))?jZ(a[1],a[2]/100,a[3]/100,a[4]):zer.hasOwnProperty(V)?
KG(zer[V]):V==="transparent"?new eF(NaN,NaN,NaN,0):null}
function KG(V){return new eF(V>>16&255,V>>8&255,V&255,1)}
function pZ(V,a,w,G){G<=0&&(V=a=w=NaN);return new eF(V,a,w,G)}
function NH(V){V instanceof Ol||(V=sr(V));if(!V)return new eF;V=V.rgb();return new eF(V.r,V.g,V.b,V.opacity)}
function aG(V,a,w,G){return arguments.length===1?NH(V):new eF(V,a,w,G==null?1:G)}
function eF(V,a,w,G){this.r=+V;this.g=+a;this.b=+w;this.opacity=+G}
function T8(V){V=Math.max(0,Math.min(255,Math.round(V)||0));return(V<16?"0":"")+V.toString(16)}
function jZ(V,a,w,G){G<=0?V=a=w=NaN:w<=0||w>=1?V=a=NaN:a<=0&&(V=NaN);return new LD(V,a,w,G)}
function Zg(V){if(V instanceof LD)return new LD(V.h,V.s,V.l,V.opacity);V instanceof Ol||(V=sr(V));if(!V)return new LD;if(V instanceof LD)return V;V=V.rgb();var a=V.r/255,w=V.g/255,G=V.b/255,Cr=Math.min(a,w,G),mh=Math.max(a,w,G),be=NaN,JP=mh-Cr,fj=(mh+Cr)/2;JP?(be=a===mh?(w-G)/JP+(w<G)*6:w===mh?(G-a)/JP+2:(a-w)/JP+4,JP/=fj<.5?mh+Cr:2-mh-Cr,be*=60):JP=fj>0&&fj<1?0:be;return new LD(be,JP,fj,V.opacity)}
function tw(V,a,w,G){return arguments.length===1?Zg(V):new LD(V,a,w,G==null?1:G)}
function LD(V,a,w,G){this.h=+V;this.s=+a;this.l=+w;this.opacity=+G}
function Mz(V,a,w){return(V<60?a+(w-a)*V/60:V<180?w:V<240?a+(w-a)*(240-V)/60:a)*255}
function zP(V){if(V instanceof nr)return new nr(V.l,V.a,V.b,V.opacity);if(V instanceof Kj){if(isNaN(V.h))return new nr(V.l,0,0,V.opacity);var a=V.h*Jur;return new nr(V.l,Math.cos(a)*V.c,Math.sin(a)*V.c,V.opacity)}V instanceof eF||(V=NH(V));var w=Or(V.r),G=Or(V.g),Cr=Or(V.b);a=vN(.2225045*w+.7168786*G+.0606169*Cr);if(w===G&&G===Cr)var mh=w=a;else mh=vN((.4360747*w+.3850649*G+.1430804*Cr)/.96422),w=vN((.0139322*w+.0971045*G+.7141733*Cr)/.82521);return new nr(116*a-16,500*(mh-a),200*(a-w),V.opacity)}
function nr(V,a,w,G){this.l=+V;this.a=+a;this.b=+w;this.opacity=+G}
function vN(V){return V>WPG?Math.pow(V,1/3):V/aKu+VYr}
function NN(V){return V>Id?V*V*V:aKu*(V-VYr)}
function Fy(V){return 255*(V<=.0031308?12.92*V:1.055*Math.pow(V,1/2.4)-.055)}
function Or(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}
function z8(V){if(V instanceof Kj)return new Kj(V.h,V.c,V.l,V.opacity);V instanceof nr||(V=zP(V));if(V.a===0&&V.b===0)return new Kj(NaN,0,V.l,V.opacity);var a=Math.atan2(V.b,V.a)*X_T;return new Kj(a<0?a+360:a,Math.sqrt(V.a*V.a+V.b*V.b),V.l,V.opacity)}
function bC(V,a,w,G){return arguments.length===1?z8(V):new Kj(V,a,w,G==null?1:G)}
function Kj(V,a,w,G){this.h=+V;this.c=+a;this.l=+w;this.opacity=+G}
function A3(V,a,w,G){if(arguments.length===1){var Cr=V;if(Cr instanceof Vq)Cr=new Vq(Cr.h,Cr.s,Cr.l,Cr.opacity);else{Cr instanceof eF||(Cr=NH(Cr));var mh=Cr.g/255,be=Cr.b/255,JP=(u7j*be+Cr.r/255*-1.7884503806-3.5172982438*mh)/(u7j+-1.7884503806-3.5172982438);be-=JP;var fj=(1.97294*(mh-JP)- -.29227*be)/-.90649;be=(mh=Math.sqrt(fj*fj+be*be)/(1.97294*JP*(1-JP)))?Math.atan2(fj,be)*X_T-120:NaN;Cr=new Vq(be<0?be+360:be,mh,JP,Cr.opacity)}}else Cr=new Vq(V,a,w,G==null?1:G);return Cr}
function Vq(V,a,w,G){this.h=+V;this.s=+a;this.l=+w;this.opacity=+G}
function QM(V,a,w,G,Cr){var mh=V*V,be=mh*V;return((1-3*V+3*mh-be)*a+(4-6*mh+3*be)*w+(1+3*V+3*mh-3*be)*G+be*Cr)/6}
function HH(V){return function(){return V}}
function I8(V,a){return function(w){return V+w*a}}
function zf(V,a,w){return V=Math.pow(V,w),a=Math.pow(a,w)-V,w=1/w,function(G){return Math.pow(V+G*a,w)}}
function uX(V,a){var w=a-V;return w?I8(V,w>180||w<-180?w-360*Math.round(w/360):w):HH(isNaN(V)?a:V)}
function EM(V){return(V=+V)===1?pu:function(a,w){return w-a?zf(a,w,V):HH(isNaN(a)?w:a)}}
function pu(V,a){var w=a-V;return w?I8(V,w):HH(isNaN(V)?a:V)}
function uP(V){return function(a){var w=a.length,G=Array(w),Cr=Array(w),mh=Array(w),be;for(be=0;be<w;++be){var JP=aG(a[be]);G[be]=JP.r||0;Cr[be]=JP.g||0;mh[be]=JP.b||0}G=V(G);Cr=V(Cr);mh=V(mh);JP.opacity=1;return function(fj){JP.r=G(fj);JP.g=Cr(fj);JP.b=mh(fj);return JP+""}}}
function PN(V,a){return V=+V,a-=V,function(w){return V+a*w}}
function iC(V){return function(){return V}}
function PD(V){return function(a){return V(a)+""}}
function Ur(V,a){var w=U2N.lastIndex=pLn.lastIndex=0,G,Cr,mh,be=-1,JP=[],fj=[];V+="";for(a+="";(G=U2N.exec(V))&&(Cr=pLn.exec(a));)(mh=Cr.index)>w&&(mh=a.slice(w,mh),JP[be]?JP[be]+=mh:JP[++be]=mh),(G=G[0])===(Cr=Cr[0])?JP[be]?JP[be]+=Cr:JP[++be]=Cr:(JP[++be]=null,fj.push({i:be,x:PN(G,Cr)})),w=pLn.lastIndex;w<a.length&&(mh=a.slice(w),JP[be]?JP[be]+=mh:JP[++be]=mh);return JP.length<2?fj[0]?PD(fj[0].x):iC(a):(a=fj.length,function(ok){for(var ZO=0,mT;ZO<a;++ZO)JP[(mT=fj[ZO]).i]=mT.x(ok);return JP.join("")})}
function l5(V,a,w,G,Cr,mh){var be,JP,fj;if(be=Math.sqrt(V*V+a*a))V/=be,a/=be;if(fj=V*w+a*G)w-=V*fj,G-=a*fj;if(JP=Math.sqrt(w*w+G*G))w/=JP,G/=JP,fj/=JP;V*G<a*w&&(V=-V,a=-a,fj=-fj,be=-be);return{translateX:Cr,translateY:mh,rotate:Math.atan2(a,V)*v2K,skewX:Math.atan(fj)*v2K,scaleX:be,scaleY:JP}}
function rk(V,a,w,G){function Cr(ok){return ok.length?ok.pop()+" ":""}
function mh(ok,ZO,mT,x_,K3,Yh){ok!==mT||ZO!==x_?(K3=K3.push("translate(",null,a,null,w),Yh.push({i:K3-4,x:PN(ok,mT)},{i:K3-2,x:PN(ZO,x_)})):(mT||x_)&&K3.push("translate("+mT+a+x_+w)}
function be(ok,ZO,mT,x_){ok!==ZO?(ok-ZO>180?ZO+=360:ZO-ok>180&&(ok+=360),x_.push({i:mT.push(Cr(mT)+"rotate(",null,G)-2,x:PN(ok,ZO)})):ZO&&mT.push(Cr(mT)+"rotate("+ZO+G)}
function JP(ok,ZO,mT,x_){ok!==ZO?x_.push({i:mT.push(Cr(mT)+"skewX(",null,G)-2,x:PN(ok,ZO)}):ZO&&mT.push(Cr(mT)+"skewX("+ZO+G)}
function fj(ok,ZO,mT,x_,K3,Yh){ok!==mT||ZO!==x_?(K3=K3.push(Cr(K3)+"scale(",null,",",null,")"),Yh.push({i:K3-4,x:PN(ok,mT)},{i:K3-2,x:PN(ZO,x_)})):mT===1&&x_===1||K3.push(Cr(K3)+"scale("+mT+","+x_+")")}
return function(ok,ZO){var mT=[],x_=[];ok=V(ok);ZO=V(ZO);mh(ok.translateX,ok.translateY,ZO.translateX,ZO.translateY,mT,x_);be(ok.rotate,ZO.rotate,mT,x_);JP(ok.skewX,ZO.skewX,mT,x_);fj(ok.scaleX,ok.scaleY,ZO.scaleX,ZO.scaleY,mT,x_);ok=ZO=null;return function(K3){for(var Yh=-1,wd=x_.length,bY;++Yh<wd;)mT[(bY=x_[Yh]).i]=bY.x(K3);return mT.join("")}}}
function Av(V){return function(a,w){var G=V((a=tw(a)).h,(w=tw(w)).h),Cr=pu(a.s,w.s),mh=pu(a.l,w.l),be=pu(a.opacity,w.opacity);return function(JP){a.h=G(JP);a.s=Cr(JP);a.l=mh(JP);a.opacity=be(JP);return a+""}}}
function Bj(V){return function(a,w){var G=V((a=bC(a)).h,(w=bC(w)).h),Cr=pu(a.c,w.c),mh=pu(a.l,w.l),be=pu(a.opacity,w.opacity);return function(JP){a.h=G(JP);a.c=Cr(JP);a.l=mh(JP);a.opacity=be(JP);return a+""}}}
function Pg(V){return function G(w){function Cr(mh,be){var JP=V((mh=A3(mh)).h,(be=A3(be)).h),fj=pu(mh.s,be.s),ok=pu(mh.l,be.l),ZO=pu(mh.opacity,be.opacity);return function(mT){mh.h=JP(mT);mh.s=fj(mT);mh.l=ok(Math.pow(mT,w));mh.opacity=ZO(mT);return mh+""}}
w=+w;Cr.gamma=G;return Cr}(1)}
function ZT(){return $u||(heK(USk),$u=My.now()+mlN)}
function USk(){$u=0}
function Mg(){this._call=this._time=this._next=null}
function dI(V,a,w){var G=new Mg;G.restart(V,a,w);return G}
function jm(){$u=(HDk=My.now())+mlN;Pp=r0=0;try{ZT();++Pp;for(var V=A4e,a;V;)(a=$u-V._time)>=0&&V._call.call(null,a),V=V._next;--Pp}finally{Pp=0;V=A4e;for(var w=Infinity;V;)if(V._call){w>V._time&&(w=V._time);var G=V;V=V._next}else a=V._next,V._next=null,V=G?G._next=a:A4e=a;CE=G;qq(w);$u=0}}
function z8l(){var V=My.now(),a=V-HDk;a>1E3&&(mlN-=a,HDk=V)}
function qq(V){Pp||(r0&&(r0=clearTimeout(r0)),V-$u>24?(V<Infinity&&(r0=setTimeout(jm,V-My.now()-mlN)),g0&&(g0=clearInterval(g0))):(g0||(HDk=My.now(),g0=setInterval(z8l,1E3)),Pp=1,heK(jm)))}
function w__(V,a,w){var G=new Mg;a=a==null?0:+a;G.restart(function(Cr){G.stop();V(Cr+a)},a,w);
return G}
function x2C(V,a,w,G,Cr,mh){var be=V.__transition;if(!be)V.__transition={};else if(w in be)return;DMJ(V,w,{name:a,index:G,group:Cr,on:e93,tween:Nhp,time:mh.time,delay:mh.delay,duration:mh.duration,ease:mh.ease,timer:null,state:0})}
function oHN(V,a){V=Bf(V,a);if(V.state>0)throw Error("se");return V}
function QX(V,a){V=Bf(V,a);if(V.state>2)throw Error("te");return V}
function Bf(V,a){V=V.__transition;if(!V||!(V=V[a]))throw Error("ue");return V}
function DMJ(V,a,w){function G(fj){var ok,ZO;if(w.state!==1)return mh();for(x_ in be){var mT=be[x_];if(mT.name===w.name){if(mT.state===3)return w__(G);mT.state===4?(mT.state=6,mT.timer.stop(),mT.on.call("interrupt",V,V.__data__,mT.index,mT.group),delete be[x_]):+x_<a&&(mT.state=6,mT.timer.stop(),delete be[x_])}}w__(function(){w.state===3&&(w.state=4,w.timer.restart(Cr,w.delay,w.time),Cr(fj))});
w.state=2;w.on.call("start",V,V.__data__,w.index,w.group);if(w.state===2){w.state=3;JP=Array(ZO=w.tween.length);var x_=0;for(ok=-1;x_<ZO;++x_)if(mT=w.tween[x_].value.call(V,V.__data__,w.index,w.group))JP[++ok]=mT;JP.length=ok+1}}
function Cr(fj){fj=fj<w.duration?w.ease.call(null,fj/w.duration):(w.timer.restart(mh),w.state=5,1);for(var ok=-1,ZO=JP.length;++ok<ZO;)JP[ok].call(null,fj);w.state===5&&(w.on.call("end",V,V.__data__,w.index,w.group),mh())}
function mh(){w.state=6;w.timer.stop();delete be[a];for(var fj in be)return;delete V.__transition}
var be=V.__transition,JP;be[a]=w;w.timer=dI(function(fj){w.state=1;w.timer.restart(G,w.delay,w.time);w.delay<=fj&&G(fj-w.delay)},0,w.time)}
function IuG(V,a){var w,G;return function(){var Cr=QX(this,V),mh=Cr.tween;if(mh!==w){G=w=mh;mh=0;for(var be=G.length;mh<be;++mh)if(G[mh].name===a){G=G.slice();G.splice(mh,1);break}}Cr.tween=G}}
function P03(V,a,w){var G,Cr;if(typeof w!=="function")throw Error();return function(){var mh=QX(this,V),be=mh.tween;if(be!==G){Cr=(G=be).slice();be={name:a,value:w};for(var JP=0,fj=Cr.length;JP<fj;++JP)if(Cr[JP].name===a){Cr[JP]=be;break}JP===fj&&Cr.push(be)}mh.tween=Cr}}
function G7M(V,a,w){var G=V._id;V.each(function(){var Cr=QX(this,G);(Cr.value||(Cr.value={}))[a]=w.apply(this,arguments)});
return function(Cr){return Bf(Cr,G).value[a]}}
function yu3(V,a){var w;return(typeof a==="number"?PN:a instanceof sr?WZ_:(w=sr(a))?(a=w,WZ_):Ur)(V,a)}
function R93(V){return function(){this.removeAttribute(V)}}
function UMr(V){return function(){this.removeAttributeNS(V.space,V.local)}}
function pdr(V,a,w){var G,Cr;return function(){var mh=this.getAttribute(V);return mh===w?null:mh===G?Cr:Cr=a(G=mh,w)}}
function xMF(V,a,w){var G,Cr;return function(){var mh=this.getAttributeNS(V.space,V.local);return mh===w?null:mh===G?Cr:Cr=a(G=mh,w)}}
function oXi(V,a,w){var G,Cr,mh;return function(){var be=w(this);if(be==null)return void this.removeAttribute(V);var JP=this.getAttribute(V);return JP===be?null:JP===G&&be===Cr?mh:mh=a(G=JP,Cr=be)}}
function Gy3(V,a,w){var G,Cr,mh;return function(){var be=w(this);if(be==null)return void this.removeAttributeNS(V.space,V.local);var JP=this.getAttributeNS(V.space,V.local);return JP===be?null:JP===G&&be===Cr?mh:mh=a(G=JP,Cr=be)}}
function csJ(V,a){function w(){var G=this,Cr=a.apply(G,arguments);return Cr&&function(mh){G.setAttributeNS(V.space,V.local,Cr(mh))}}
w._value=a;return w}
function fGc(V,a){function w(){var G=this,Cr=a.apply(G,arguments);return Cr&&function(mh){G.setAttribute(V,Cr(mh))}}
w._value=a;return w}
function dAi(V,a){return function(){oHN(this,V).delay=+a.apply(this,arguments)}}
function jJD(V,a){return a=+a,function(){oHN(this,V).delay=a}}
function qUC(V,a){return function(){QX(this,V).duration=+a.apply(this,arguments)}}
function ZnQ(V,a){return a=+a,function(){QX(this,V).duration=a}}
function Mg3(V,a){if(typeof a!=="function")throw Error();return function(){QX(this,V).ease=a}}
function rsr(V){return(V+"").trim().split(/^|\s+/).every(function(a){var w=a.indexOf(".");w>=0&&(a=a.slice(0,w));return!a||a==="start"})}
function CsG(V,a,w){var G,Cr,mh=rsr(a)?oHN:QX;return function(){var be=mh(this,V),JP=be.on;if(JP!==G)(Cr=(G=JP).copy()).on(a,w);be.on=Cr}}
function g$c(V){return function(){var a=this.parentNode,w;for(w in this.__transition)if(+w!==V)return;a&&a.removeChild(this)}}
function k0q(V,a){var w,G,Cr;return function(){var mh=EC(this,V),be=(this.style.removeProperty(V),EC(this,V));return mh===be?null:mh===w&&be===G?Cr:Cr=a(w=mh,G=be)}}
function On3(V){return function(){this.style.removeProperty(V)}}
function lGr(V,a,w){var G,Cr;return function(){var mh=EC(this,V);return mh===w?null:mh===G?Cr:Cr=a(G=mh,w)}}
function sJi(V,a,w){var G,Cr,mh;return function(){var be=EC(this,V),JP=w(this);JP==null&&(JP=(this.style.removeProperty(V),EC(this,V)));return be===JP?null:be===G&&JP===Cr?mh:mh=a(G=be,Cr=JP)}}
function BqJ(V,a,w){function G(){var Cr=this,mh=a.apply(Cr,arguments);return mh&&function(be){Cr.style.setProperty(V,mh(be),w)}}
G._value=a;return G}
function inr(V){return function(){this.textContent=V}}
function TqD(V){return function(){var a=V(this);this.textContent=a==null?"":a}}
function $d(V,a,w,G){this._groups=V;this._parents=a;this._name=w;this._id=G}
function cLN(V){return{type:V}}
function f$z(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function YzN(){}
function DIO(V,a){var w=new YzN;if(V instanceof YzN)V.each(function(be,JP){w.set(JP,be)});
else if(Array.isArray(V)){var G=-1,Cr=V.length,mh;if(a==null)for(;++G<Cr;)w.set(G,V[G]);else for(;++G<Cr;)w.set(a(mh=V[G],G,V),mh)}else if(V)for(G in V)w.set(G,V[G]);return w}
function FuG(){}
function eeK(V){return function(a){for(var w={},G=0;G<V.length;G++)w[V[G]]=a[G]||"";return w}}
function mAc(V,a){var w=eeK(V);return function(G,Cr){return a(w(G),Cr,V)}}
function HnJ(V){var a=Object.create(null),w=[];V.forEach(function(G){for(var Cr in G)Cr in a||w.push(a[Cr]=Cr)});
return w}
function Nly(V){function a(be,JP){function fj(){if(Yh)return djz;if(wd)return wd=!1,IK_;var vw,um=mT,M$;if(be.charCodeAt(um)===34){for(;mT++<ZO&&be.charCodeAt(mT)!==34||be.charCodeAt(++mT)===34;);(vw=mT)>=ZO?Yh=!0:(M$=be.charCodeAt(mT++))===10?wd=!0:M$===13&&(wd=!0,be.charCodeAt(mT)===10&&++mT);return be.slice(um+1,vw-1).replace(/""/g,'"')}for(;mT<ZO;){if((M$=be.charCodeAt(vw=mT++))===10)wd=!0;else if(M$===13)wd=!0,be.charCodeAt(mT)===10&&++mT;else if(M$!==mh)continue;return be.slice(um,vw)}return Yh=
!0,be.slice(um,ZO)}
var ok=[],ZO=be.length,mT=0,x_=0,K3,Yh=ZO<=0,wd=!1;be.charCodeAt(ZO-1)===10&&--ZO;for(be.charCodeAt(ZO-1)===13&&--ZO;(K3=fj())!==djz;){for(var bY=[];K3!==IK_&&K3!==djz;)bY.push(K3),K3=fj();JP&&(bY=JP(bY,x_++))==null||ok.push(bY)}return ok}
function w(be){return be.map(G).join(V)}
function G(be){return be==null?"":Cr.test(be)?'"'+be.replace(/"/g,'""')+'"':be}
var Cr=new RegExp('["'+V+"\n\r]"),mh=V.charCodeAt(0);return{parse:function(be,JP){var fj,ok;be=a(be,function(ZO,mT){if(fj)return fj(ZO,mT-1);ok=ZO;fj=JP?mAc(ZO,JP):eeK(ZO)});
be.columns=ok||[];return be},
parseRows:a,format:function(be,JP){JP==null&&(JP=HnJ(be));return[JP.map(G).join(V)].concat(be.map(function(fj){return JP.map(function(ok){return G(fj[ok])}).join(V)})).join("\n")},
formatRows:function(be){return be.map(w).join("\n")}}}
function AsF(V){if(!V.ok)throw Error("ve`"+V.status+"`"+V.statusText);return V.text()}
function Pju(V){return function(a,w,G){arguments.length===2&&typeof w==="function"&&(G=w,w=void 0);return fetch(a,w).then(AsF).then(function(Cr){return V(Cr,G)})}}
function Rey(V,a,w,G){if(isNaN(a)||isNaN(w))return V;var Cr,mh=V._root;G={data:G};var be=V._x0,JP=V._y0,fj=V._x1,ok=V._y1,ZO,mT,x_,K3,Yh;if(!mh)return V._root=G,V;for(;mh.length;)if((x_=a>=(ZO=(be+fj)/2))?be=ZO:fj=ZO,(K3=w>=(mT=(JP+ok)/2))?JP=mT:ok=mT,Cr=mh,!(mh=mh[Yh=K3<<1|x_]))return Cr[Yh]=G,V;var wd=+V._x.call(null,mh.data);var bY=+V._y.call(null,mh.data);if(a===wd&&w===bY)return G.next=mh,Cr?Cr[Yh]=G:V._root=G,V;do Cr=Cr?Cr[Yh]=Array(4):V._root=Array(4),(x_=a>=(ZO=(be+fj)/2))?be=ZO:fj=ZO,(K3=
w>=(mT=(JP+ok)/2))?JP=mT:ok=mT;while((Yh=K3<<1|x_)===(x_=(bY>=mT)<<1|wd>=ZO));return Cr[x_]=mh,Cr[Yh]=G,V}
function SB(V,a,w,G,Cr){this.node=V;this.x0=a;this.y0=w;this.x1=G;this.y1=Cr}
function YUq(V){return V[0]}
function F3C(V){return V[1]}
function jNn(V,a,w,G,Cr,mh){this._x=V;this._y=a;this._x0=w;this._y0=G;this._x1=Cr;this._y1=mh;this._root=void 0}
function UIH(V){for(var a={data:V.data},w=a;V=V.next;)w=w.next={data:V.data};return a}
function tAk(V,a){if((a=(V=a?V.toExponential(a-1):V.toExponential()).indexOf("e"))<0)return null;var w=V.slice(0,a);return[w.length>1?w[0]+w.slice(2):w,+V.slice(a+1)]}
function tgi(V){return V=tAk(Math.abs(V)),V?V[1]:NaN}
function bnS(V,a){return function(w,G){for(var Cr=w.length,mh=[],be=0,JP=V[0],fj=0;Cr>0&&JP>0;){fj+JP+1>G&&(JP=Math.max(1,G-fj));mh.push(w.substring(Cr-=JP,Cr+JP));if((fj+=JP+1)>G)break;JP=V[be=(be+1)%V.length]}return mh.reverse().join(a)}}
function K3F(V){return function(a){return a.replace(/[0-9]/g,function(w){return V[+w]})}}
function qaM(V){return new Zyh(V)}
function Zyh(V){if(!(a=E$3.exec(V)))throw Error("we`"+V);var a;this.fill=a[1]||" ";this.align=a[2]||">";this.sign=a[3]||"-";this.symbol=a[4]||"";this.zero=!!a[5];this.width=a[6]&&+a[6];this.comma=!!a[7];this.precision=a[8]&&+a[8].slice(1);this.trim=!!a[9];this.type=a[10]||""}
function p_o(V,a){a=tAk(V,a);if(!a)return V+"";V=a[0];a=a[1];return a<0?"0."+Array(-a).join("0")+V:V.length>a+1?V.slice(0,a+1)+"."+V.slice(a+1):V+Array(a-V.length+2).join("0")}
function xIH(V){return V}
function n$3(V){function a(JP){function fj(Ih){var o7=M$,vD=v9,mE,MS;if(um==="c")vD=vV(Ih)+vD,Ih="";else{Ih=+Ih;var Qq=Ih<0;Ih=vV(Math.abs(Ih),bY);if(vw){var ud=Ih.length,Kh=1,hN=-1;a:for(;Kh<ud;++Kh)switch(Ih[Kh]){case ".":hN=mE=Kh;break;case "0":hN===0&&(hN=Kh);mE=Kh;break;default:if(!+Ih[Kh])break a;hN>0&&(hN=0)}Ih=hN>0?Ih.slice(0,hN)+Ih.slice(mE+1):Ih}Qq&&+Ih===0&&(Qq=!1);o7=(Qq?mT==="("?mT:"-":mT==="-"||mT==="("?"":mT)+o7;vD=(um==="s"?o2F[8+GGr/3]:"")+vD+(Qq&&mT==="("?")":"");if(mA)for(Qq=-1,
mE=Ih.length;++Qq<mE;)if(MS=Ih.charCodeAt(Qq),48>MS||MS>57){vD=(MS===46?Cr+Ih.slice(Qq+1):Ih.slice(Qq))+vD;Ih=Ih.slice(0,Qq);break}}wd&&!K3&&(Ih=w(Ih,Infinity));MS=o7.length+Ih.length+vD.length;Qq=MS<Yh?Array(Yh-MS+1).join(ok):"";wd&&K3&&(Ih=w(Qq+Ih,Qq.length?Yh-vD.length:Infinity),Qq="");switch(ZO){case "<":Ih=o7+Ih+vD+Qq;break;case "=":Ih=o7+Qq+Ih+vD;break;case "^":Ih=Qq.slice(0,MS=Qq.length>>1)+o7+Ih+vD+Qq.slice(MS);break;default:Ih=Qq+o7+Ih+vD}return mh(Ih)}
JP=qaM(JP);var ok=JP.fill,ZO=JP.align,mT=JP.sign,x_=JP.symbol,K3=JP.zero,Yh=JP.width,wd=JP.comma,bY=JP.precision,vw=JP.trim,um=JP.type;um==="n"?(wd=!0,um="g"):c$j[um]||(bY==null&&(bY=12),vw=!0,um="g");if(K3||ok==="0"&&ZO==="=")K3=!0,ok="0",ZO="=";var M$=x_==="$"?G[0]:x_==="#"&&/[boxX]/.test(um)?"0"+um.toLowerCase():"",v9=x_==="$"?G[1]:/[%p]/.test(um)?be:"",vV=c$j[um],mA=/[defgprs%]/.test(um);bY=bY==null?6:/[gprs]/.test(um)?Math.max(1,Math.min(21,bY)):Math.max(0,Math.min(20,bY));fj.toString=function(){return JP+
""};
return fj}
var w=V.grouping&&V.thousands?bnS(V.grouping,V.thousands):xIH,G=V.currency,Cr=V.decimal,mh=V.numerals?K3F(V.numerals):xIH,be=V.percent||"%";return{format:a,formatPrefix:function(JP,fj){var ok=a((JP=qaM(JP),JP.type="f",JP));JP=Math.max(-8,Math.min(8,Math.floor(tgi(fj)/3)))*3;var ZO=Math.pow(10,-JP),mT=o2F[8+JP/3];return function(x_){return ok(ZO*x_)+mT}}}}
function l4(){this.reset()}
function fV_(V,a,w){var G=V.s=a+w,Cr=G-a;V.t=a-(G-Cr)+(w-Cr)}
function bDk(V){return V>1?tK:V<-1?-tK:Math.asin(V)}
function $A3(){}
function d2y(V){var a=V[0];V=V[1];var w=bk(V);return[w*bk(a),w*sO(a),sO(V)]}
function jMy(V,a){return[V[1]*a[2]-V[2]*a[1],V[2]*a[0]-V[0]*a[2],V[0]*a[1]-V[1]*a[0]]}
function q2K(V){var a=Kun(V[0]*V[0]+V[1]*V[1]+V[2]*V[2]);V[0]/=a;V[1]/=a;V[2]/=a}
function QJr(){var V=[],a;return{point:function(w,G){a.push([w,G])},
lineStart:function(){V.push(a=[])},
lineEnd:$A3,rejoin:function(){V.length>1&&V.push(V.pop().concat(V.shift()))},
result:function(){var w=V;V=[];a=null;return w}}}
function EKk(V,a,w,G){this.x=V;this.z=a;this.o=w;this.e=G;this.v=!1;this.n=this.p=null}
function SUG(V,a,w,G,Cr){var mh=[],be=[];V.forEach(function(mT){if(!((x_=mT.length-1)<=0)){var x_,K3=mT[0],Yh=mT[x_],wd=K3;if(Qs(wd[0]-Yh[0])<1E-6&&Qs(wd[1]-Yh[1])<1E-6){Cr.lineStart();for(JP=0;JP<x_;++JP)Cr.point((K3=mT[JP])[0],K3[1]);Cr.lineEnd()}else mh.push(x_=new EKk(K3,mT,null,!0)),be.push(x_.o=new EKk(K3,null,x_,!1)),mh.push(x_=new EKk(Yh,mT,null,!1)),be.push(x_.o=new EKk(Yh,null,x_,!0))}});
if(mh.length){be.sort(a);ZtH(mh);ZtH(be);var JP=0;for(V=be.length;JP<V;++JP)be[JP].e=w=!w;w=mh[0];for(var fj;;){for(var ok=w,ZO=!0;ok.v;)if((ok=ok.n)===w)return;a=ok.z;Cr.lineStart();do{ok.v=ok.o.v=!0;if(ok.e){if(ZO)for(JP=0,V=a.length;JP<V;++JP)Cr.point((fj=a[JP])[0],fj[1]);else G(ok.x,ok.n.x,1,Cr);ok=ok.n}else{if(ZO)for(a=ok.p.z,JP=a.length-1;JP>=0;--JP)Cr.point((fj=a[JP])[0],fj[1]);else G(ok.x,ok.p.x,-1,Cr);ok=ok.p}ok=ok.o;a=ok.z;ZO=!ZO}while(!ok.v);Cr.lineEnd()}}}
function ZtH(V){if(a=V.length){for(var a,w=0,G=V[0],Cr;++w<a;)G.n=Cr=V[w],Cr.p=G,G=Cr;G.n=Cr=V[0];Cr.p=G}}
function L3C(V){return V.length>1}
function ziG(V,a){return((V=V.x)[0]<0?V[1]-tK-1E-6:tK-V[1])-((a=a.x)[0]<0?a[1]-tK-1E-6:tK-a[1])}
function MIe(){}
function M3r(V){return function(a,w){var G=bk(a),Cr=bk(w);G=V(G*Cr);return[G*Cr*sO(a),G*sO(w)]}}
function kL(V){return function(a,w){var G=Kun(a*a+w*w),Cr=V(G),mh=sO(Cr);Cr=bk(Cr);return[r$r(a*mh,G*Cr),bDk(G&&w*mh/G)]}}
function Jsq(V){var a=0,w=V.children,G=w&&w.length;if(G)for(;--G>=0;)a+=w[G].value;else a=1;V.value=a}
function CKu(V,a){var w=new Od(V);V=+V.value&&(w.value=V.value);var G,Cr=[w],mh,be,JP,fj;for(a==null&&(a=aGp);G=Cr.pop();)if(V&&(G.value=+G.data.value),(be=a(G.data))&&(fj=be.length))for(G.children=Array(fj),JP=fj-1;JP>=0;--JP)Cr.push(mh=G.children[JP]=new Od(be[JP])),mh.parent=G,mh.depth=G.depth+1;return w.eachBefore(VgQ)}
function aGp(V){return V.children}
function XKS(V){V.data=V.data.data}
function VgQ(V){var a=0;do V.height=a;while((V=V.parent)&&V.height<++a)}
function Od(V){this.data=V;this.depth=this.height=0;this.parent=null}
function dS(V,a,w,G){function Cr(mh){return V(mh=new Date(+mh)),mh}
Cr.floor=Cr;Cr.ceil=function(mh){return V(mh=new Date(mh-1)),a(mh,1),V(mh),mh};
Cr.round=function(mh){var be=Cr(mh),JP=Cr.ceil(mh);return mh-be<JP-mh?be:JP};
Cr.offset=function(mh,be){return a(mh=new Date(+mh),be==null?1:Math.floor(be)),mh};
Cr.range=function(mh,be,JP){var fj=[],ok;mh=Cr.ceil(mh);JP=JP==null?1:Math.floor(JP);if(!(mh<be&&JP>0))return fj;do fj.push(ok=new Date(+mh)),a(mh,JP),V(mh);while(ok<mh&&mh<be);return fj};
Cr.filter=function(mh){return dS(function(be){if(be>=be)for(;V(be),!mh(be);)be.setTime(be-1)},function(be,JP){if(be>=be)if(JP<0)for(;++JP<=0;)for(;a(be,-1),!mh(be););
else for(;--JP>=0;)for(;a(be,1),!mh(be););})};
w&&(Cr.count=function(mh,be){rLC.setTime(+mh);CwM.setTime(+be);V(rLC);V(CwM);return Math.floor(w(rLC,CwM))},Cr.every=function(mh){mh=Math.floor(mh);
return isFinite(mh)&&mh>0?mh>1?Cr.filter(G?function(be){return G(be)%mh===0}:function(be){return Cr.count(0,be)%mh===0}):Cr:null});
return Cr}
function Sy(V){return dS(function(a){a.setDate(a.getDate()-(a.getDay()+7-V)%7);a.setHours(0,0,0,0)},function(a,w){a.setDate(a.getDate()+w*7)},function(a,w){return(w-a-(w.getTimezoneOffset()-a.getTimezoneOffset())*6E4)/6048E5})}
function Ll(V){return dS(function(a){a.setUTCDate(a.getUTCDate()-(a.getUTCDay()+7-V)%7);a.setUTCHours(0,0,0,0)},function(a,w){a.setUTCDate(a.getUTCDate()+w*7)},function(a,w){return(w-a)/6048E5})}
function u$J(V){if(0<=V.y&&V.y<100){var a=new Date(-1,V.m,V.d,V.H,V.M,V.S,V.L);a.setFullYear(V.y);return a}return new Date(V.y,V.m,V.d,V.H,V.M,V.S,V.L)}
function nKN(V){if(0<=V.y&&V.y<100){var a=new Date(Date.UTC(-1,V.m,V.d,V.H,V.M,V.S,V.L));a.setUTCFullYear(V.y);return a}return new Date(Date.UTC(V.y,V.m,V.d,V.H,V.M,V.S,V.L))}
function lG(V){return{y:V,m:0,d:1,H:0,M:0,S:0,L:0}}
function v$i(V){function a(vD,mE){return function(MS){var Qq=[],ud=-1,Kh=0,hN=vD.length,jA,pn;for(MS instanceof Date||(MS=new Date(+MS));++ud<hN;)if(vD.charCodeAt(ud)===37){Qq.push(vD.slice(Kh,ud));(Kh=gHj[jA=vD.charAt(++ud)])!=null?jA=vD.charAt(++ud):Kh=jA==="e"?" ":"0";if(pn=mE[jA])jA=pn(MS,Kh);Qq.push(jA);Kh=ud+1}Qq.push(vD.slice(Kh,ud));return Qq.join("")}}
function w(vD,mE){return function(MS){var Qq=lG(1900);if(G(Qq,vD,MS,0)!=MS.length)return null;if("Q"in Qq)return new Date(Qq.Q);"p"in Qq&&(Qq.H=Qq.H%12+Qq.p*12);if("V"in Qq){if(Qq.V<1||Qq.V>53)return null;"w"in Qq||(Qq.w=1);if("Z"in Qq){MS=nKN(lG(Qq.y));var ud=MS.getUTCDay();MS=ud>4||ud===0?gdr.ceil(MS):gdr(MS);MS=k7o.offset(MS,(Qq.V-1)*7);Qq.y=MS.getUTCFullYear();Qq.m=MS.getUTCMonth();Qq.d=MS.getUTCDate()+(Qq.w+6)%7}else MS=mE(lG(Qq.y)),ud=MS.getDay(),MS=ud>4||ud===0?k1P.ceil(MS):k1P(MS),MS=OtH.offset(MS,
(Qq.V-1)*7),Qq.y=MS.getFullYear(),Qq.m=MS.getMonth(),Qq.d=MS.getDate()+(Qq.w+6)%7}else if("W"in Qq||"U"in Qq)"w"in Qq||(Qq.w="u"in Qq?Qq.u%7:"W"in Qq?1:0),ud="Z"in Qq?nKN(lG(Qq.y)).getUTCDay():mE(lG(Qq.y)).getDay(),Qq.m=0,Qq.d="W"in Qq?(Qq.w+6)%7+Qq.W*7-(ud+5)%7:Qq.w+Qq.U*7-(ud+6)%7;return"Z"in Qq?(Qq.H+=Qq.Z/100|0,Qq.M+=Qq.Z%100,nKN(Qq)):mE(Qq)}}
function G(vD,mE,MS,Qq){for(var ud=0,Kh=mE.length,hN=MS.length,jA;ud<Kh;){if(Qq>=hN)return-1;jA=mE.charCodeAt(ud++);if(jA===37){if(jA=mE.charAt(ud++),jA=o7[jA in gHj?mE.charAt(ud++):jA],!jA||(Qq=jA(vD,MS,Qq))<0)return-1}else if(jA!=MS.charCodeAt(Qq++))return-1}return Qq}
var Cr=V.dateTime,mh=V.date,be=V.time,JP=V.periods,fj=V.days,ok=V.shortDays,ZO=V.months,mT=V.shortMonths,x_=sd(JP),K3=BJ(JP),Yh=sd(fj),wd=BJ(fj),bY=sd(ok),vw=BJ(ok),um=sd(ZO),M$=BJ(ZO),v9=sd(mT),vV=BJ(mT),mA={a:function(vD){return ok[vD.getDay()]},
A:function(vD){return fj[vD.getDay()]},
b:function(vD){return mT[vD.getMonth()]},
B:function(vD){return ZO[vD.getMonth()]},
c:null,d:lV3,e:lV3,f:hiJ,H:wKq,I:ysC,j:W3D,L:sM_,m:DAp,M:ei3,p:function(vD){return JP[+(vD.getHours()>=12)]},
Q:BUo,s:itr,S:NqG,u:IGr,U:Ps3,V:RiF,w:UAi,W:pKJ,x:null,X:null,y:xAH,Y:o$F,Z:G0q,"%":TUu},Ih={a:function(vD){return ok[vD.getUTCDay()]},
A:function(vD){return fj[vD.getUTCDay()]},
b:function(vD){return mT[vD.getUTCMonth()]},
B:function(vD){return ZO[vD.getUTCMonth()]},
c:null,d:m2H,e:m2H,f:cBQ,H:fji,I:dBi,j:jE3,L:Htu,m:qBH,M:ZzQ,p:function(vD){return JP[+(vD.getUTCHours()>=12)]},
Q:BUo,s:itr,S:Mwi,u:rBJ,U:Cqi,V:gfD,w:k2r,W:OzH,x:null,X:null,y:lji,Y:sED,Z:BF3,"%":TUu},o7={a:function(vD,mE,MS){return(mE=bY.exec(mE.slice(MS)))?(vD.w=vw[mE[0].toLowerCase()],MS+mE[0].length):-1},
A:function(vD,mE,MS){return(mE=Yh.exec(mE.slice(MS)))?(vD.w=wd[mE[0].toLowerCase()],MS+mE[0].length):-1},
b:function(vD,mE,MS){return(mE=v9.exec(mE.slice(MS)))?(vD.m=vV[mE[0].toLowerCase()],MS+mE[0].length):-1},
B:function(vD,mE,MS){return(mE=um.exec(mE.slice(MS)))?(vD.m=M$[mE[0].toLowerCase()],MS+mE[0].length):-1},
c:function(vD,mE,MS){return G(vD,Cr,mE,MS)},
d:A$H,e:A$H,f:izc,H:Y2T,I:Y2T,j:TFJ,L:mBC,m:HzH,M:ABC,p:function(vD,mE,MS){return(mE=x_.exec(mE.slice(MS)))?(vD.p=K3[mE[0].toLowerCase()],MS+mE[0].length):-1},
Q:YBQ,s:FvC,S:tw3,u:bz3,U:KvC,V:Efr,w:nfC,W:$BH,x:function(vD,mE,MS){return G(vD,mh,mE,MS)},
X:function(vD,mE,MS){return G(vD,be,mE,MS)},
y:QEr,Y:SBS,Z:Lv3,"%":z13};mA.x=a(mh,mA);mA.X=a(be,mA);mA.c=a(Cr,mA);Ih.x=a(mh,Ih);Ih.X=a(be,Ih);Ih.c=a(Cr,Ih);return{format:function(vD){var mE=a(vD,mA);mE.toString=function(){return vD};
return mE},
parse:function(vD){var mE=w(vD,u$J);mE.toString=function(){return vD};
return mE},
utcFormat:function(vD){var mE=a(vD,Ih);mE.toString=function(){return vD};
return mE},
utcParse:function(vD){var mE=w(vD,nKN);mE.toString=function(){return vD};
return mE}}}
function C9(V,a,w){var G=V<0?"-":"";V=(G?-V:V)+"";var Cr=V.length;return G+(Cr<w?Array(w-Cr+1).join(a)+V:V)}
function JB3(V){return V.replace(aj3,"\\$&")}
function sd(V){return new RegExp("^(?:"+V.map(JB3).join("|")+")","i")}
function BJ(V){for(var a={},w=-1,G=V.length;++w<G;)a[V[w].toLowerCase()]=w;return a}
function nfC(V,a,w){return(a=rW.exec(a.slice(w,w+1)))?(V.w=+a[0],w+a[0].length):-1}
function bz3(V,a,w){return(a=rW.exec(a.slice(w,w+1)))?(V.u=+a[0],w+a[0].length):-1}
function KvC(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.U=+a[0],w+a[0].length):-1}
function Efr(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.V=+a[0],w+a[0].length):-1}
function $BH(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.W=+a[0],w+a[0].length):-1}
function SBS(V,a,w){return(a=rW.exec(a.slice(w,w+4)))?(V.y=+a[0],w+a[0].length):-1}
function QEr(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.y=+a[0]+(+a[0]>68?1900:2E3),w+a[0].length):-1}
function Lv3(V,a,w){return(a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(a.slice(w,w+6)))?(V.Z=a[1]?0:-(a[2]+(a[3]||"00")),w+a[0].length):-1}
function HzH(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.m=a[0]-1,w+a[0].length):-1}
function A$H(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.d=+a[0],w+a[0].length):-1}
function TFJ(V,a,w){return(a=rW.exec(a.slice(w,w+3)))?(V.m=0,V.d=+a[0],w+a[0].length):-1}
function Y2T(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.H=+a[0],w+a[0].length):-1}
function ABC(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.M=+a[0],w+a[0].length):-1}
function tw3(V,a,w){return(a=rW.exec(a.slice(w,w+2)))?(V.S=+a[0],w+a[0].length):-1}
function mBC(V,a,w){return(a=rW.exec(a.slice(w,w+3)))?(V.L=+a[0],w+a[0].length):-1}
function izc(V,a,w){return(a=rW.exec(a.slice(w,w+6)))?(V.L=Math.floor(a[0]/1E3),w+a[0].length):-1}
function z13(V,a,w){return(V=Vw3.exec(a.slice(w,w+1)))?w+V[0].length:-1}
function YBQ(V,a,w){return(a=rW.exec(a.slice(w)))?(V.Q=+a[0],w+a[0].length):-1}
function FvC(V,a,w){return(a=rW.exec(a.slice(w)))?(V.Q=+a[0]*1E3,w+a[0].length):-1}
function lV3(V,a){return C9(V.getDate(),a,2)}
function wKq(V,a){return C9(V.getHours(),a,2)}
function ysC(V,a){return C9(V.getHours()%12||12,a,2)}
function W3D(V,a){return C9(1+OtH.count(Rd(V),V),a,3)}
function sM_(V,a){return C9(V.getMilliseconds(),a,3)}
function hiJ(V,a){return sM_(V,a)+"000"}
function DAp(V,a){return C9(V.getMonth()+1,a,2)}
function ei3(V,a){return C9(V.getMinutes(),a,2)}
function NqG(V,a){return C9(V.getSeconds(),a,2)}
function IGr(V){V=V.getDay();return V===0?7:V}
function Ps3(V,a){return C9(XQC.count(Rd(V),V),a,2)}
function RiF(V,a){var w=V.getDay();V=w>=4||w===0?OyN(V):OyN.ceil(V);return C9(OyN.count(Rd(V),V)+(Rd(V).getDay()===4),a,2)}
function UAi(V){return V.getDay()}
function pKJ(V,a){return C9(k1P.count(Rd(V),V),a,2)}
function xAH(V,a){return C9(V.getFullYear()%100,a,2)}
function o$F(V,a){return C9(V.getFullYear()%1E4,a,4)}
function G0q(V){V=V.getTimezoneOffset();return(V>0?"-":(V*=-1,"+"))+C9(V/60|0,"0",2)+C9(V%60,"0",2)}
function m2H(V,a){return C9(V.getUTCDate(),a,2)}
function fji(V,a){return C9(V.getUTCHours(),a,2)}
function dBi(V,a){return C9(V.getUTCHours()%12||12,a,2)}
function jE3(V,a){return C9(1+k7o.count(U9(V),V),a,3)}
function Htu(V,a){return C9(V.getUTCMilliseconds(),a,3)}
function cBQ(V,a){return Htu(V,a)+"000"}
function qBH(V,a){return C9(V.getUTCMonth()+1,a,2)}
function ZzQ(V,a){return C9(V.getUTCMinutes(),a,2)}
function Mwi(V,a){return C9(V.getUTCSeconds(),a,2)}
function rBJ(V){V=V.getUTCDay();return V===0?7:V}
function Cqi(V,a){return C9(uLS.count(U9(V),V),a,2)}
function gfD(V,a){var w=V.getUTCDay();V=w>=4||w===0?l$M(V):l$M.ceil(V);return C9(l$M.count(U9(V),V)+(U9(V).getUTCDay()===4),a,2)}
function k2r(V){return V.getUTCDay()}
function OzH(V,a){return C9(gdr.count(U9(V),V),a,2)}
function lji(V,a){return C9(V.getUTCFullYear()%100,a,2)}
function sED(V,a){return C9(V.getUTCFullYear()%1E4,a,4)}
function BF3(){return"+0000"}
function TUu(){return"%"}
function BUo(V){return+V}
function itr(V){return Math.floor(+V/1E3)}
function Bv(V){for(var a=V.length/6|0,w=Array(a),G=0;G<a;)w[G]="#"+V.slice(G*6,++G*6);return w}
function vC(V){return vf3(V[V.length-1])}
function $ln(V){var a=V.length;return function(w){return V[Math.max(0,Math.min(a-1,Math.floor(w*a)))]}}
function F13(V){this._context=V}
function t3K(V){this._curve=V}
function btT(V,a,w){var G=V._x1-V._x0;a-=V._x1;var Cr=(V._y1-V._y0)/(G||a<0&&-0);V=(w-V._y1)/(a||G<0&&-0);return((Cr<0?-1:1)+(V<0?-1:1))*Math.min(Math.abs(Cr),Math.abs(V),.5*Math.abs((Cr*a+V*G)/(G+a)))||0}
function K1u(V,a){var w=V._x1-V._x0;return w?(3*(V._y1-V._y0)/w-a)/2:a}
function sNN(V,a,w){var G=V._x0,Cr=V._x1,mh=V._y1,be=(Cr-G)/3;V._context.bezierCurveTo(G+be,V._y0+be*a,Cr-be,mh-be*w,Cr,mh)}
function BTr(V){this._context=V}
function EHy(V){this._context=V}
function iG(V,a,w){this.k=V;this.x=a;this.y=w}
(function(V){V.length===1&&(V=f(V));return{left:function(a,w,G,Cr){G==null&&(G=0);Cr==null&&(Cr=a.length);for(;G<Cr;){var mh=G+Cr>>>1;V(a[mh],w)<0?G=mh+1:Cr=mh}return G},
right:function(a,w,G,Cr){G==null&&(G=0);Cr==null&&(Cr=a.length);for(;G<Cr;){var mh=G+Cr>>>1;V(a[mh],w)>0?Cr=mh:G=mh+1}return G}}})(c);
var LPD={value:function(){}};
q.prototype=d.prototype={constructor:q,on:function(V,a){var w=this._,G=Z(V+"",w),Cr,mh=-1,be=G.length;if(arguments.length<2)for(;++mh<be;){var JP;if(JP=Cr=(V=G[mh]).type){a:{JP=w[Cr];for(var fj=0,ok=JP.length;fj<ok;++fj)if((Cr=JP[fj]).name===V.name){Cr=Cr.value;break a}Cr=void 0}JP=Cr}if(JP)return Cr}else{if(a!=null&&typeof a!=="function")throw Error("xe`"+a);for(;++mh<be;)if(Cr=(V=G[mh]).type)w[Cr]=M(w[Cr],V.name,a);else if(a==null)for(Cr in w)w[Cr]=M(w[Cr],V.name,null);return this}},
copy:function(){var V={},a=this._,w;for(w in a)V[w]=a[w].slice();return new q(V)},
call:function(V,a){if((Cr=arguments.length-2)>0)for(var w=Array(Cr),G=0,Cr,mh;G<Cr;++G)w[G]=arguments[G+2];if(!this._.hasOwnProperty(V))throw Error("re`"+V);mh=this._[V];G=0;for(Cr=mh.length;G<Cr;++G)mh[G].value.apply(a,w)},
apply:function(V,a,w){if(!this._.hasOwnProperty(V))throw Error("re`"+V);V=this._[V];for(var G=0,Cr=V.length;G<Cr;++G)V[G].value.apply(a,w)}};
var Fb={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/"},nHr=function(V){return function(){return this.matches(V)}};
if(typeof document!=="undefined"){var TW=document.documentElement;if(!TW.matches){var h1C=TW.webkitMatchesSelector||TW.msMatchesSelector||TW.mozMatchesSelector||TW.oMatchesSelector;nHr=function(V){return function(){return h1C.call(this,V)}}}}var $23=nHr;
t.prototype={constructor:t,appendChild:function(V){return this._parent.insertBefore(V,this._next)},
insertBefore:function(V,a){return this._parent.insertBefore(V,a)},
querySelector:function(V){return this._parent.querySelector(V)},
querySelectorAll:function(V){return this._parent.querySelectorAll(V)}};
var LZv={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(LZv={mouseenter:"mouseover",mouseleave:"mouseout"}));var z9i=[null];dJ.prototype=BD.prototype={constructor:dJ,select:function(V){typeof V!=="function"&&(V=A(V));for(var a=this._groups,w=a.length,G=Array(w),Cr=0;Cr<w;++Cr)for(var mh=a[Cr],be=mh.length,JP=G[Cr]=Array(be),fj,ok,ZO=0;ZO<be;++ZO)(fj=mh[ZO])&&(ok=V.call(fj,fj.__data__,ZO,mh))&&("__data__"in fj&&(ok.__data__=fj.__data__),JP[ZO]=ok);return new dJ(G,this._parents)},
filter:function(V){typeof V!=="function"&&(V=$23(V));for(var a=this._groups,w=a.length,G=Array(w),Cr=0;Cr<w;++Cr)for(var mh=a[Cr],be=mh.length,JP=G[Cr]=[],fj,ok=0;ok<be;++ok)(fj=mh[ok])&&V.call(fj,fj.__data__,ok,mh)&&JP.push(fj);return new dJ(G,this._parents)},
data:function(V,a){if(!V)return K3=Array(this.size()),ok=-1,this.each(function(um){K3[++ok]=um}),K3;
var w=a?X:J,G=this._parents,Cr=this._groups;typeof V!=="function"&&(V=E(V));for(var mh=Cr.length,be=Array(mh),JP=Array(mh),fj=Array(mh),ok=0;ok<mh;++ok){var ZO=G[ok],mT=Cr[ok],x_=mT.length,K3=V.call(ZO,ZO&&ZO.__data__,ok,G),Yh=K3.length,wd=JP[ok]=Array(Yh),bY=be[ok]=Array(Yh);x_=fj[ok]=Array(x_);w(ZO,mT,wd,bY,x_,K3,a);mT=ZO=0;for(var vw;ZO<Yh;++ZO)if(x_=wd[ZO]){for(ZO>=mT&&(mT=ZO+1);!(vw=bY[mT])&&++mT<Yh;);x_._next=vw||null}}be=new dJ(be,G);be._enter=JP;be._exit=fj;return be},
enter:function(){return new dJ(this._enter||this._groups.map(Y),this._parents)},
exit:function(){return new dJ(this._exit||this._groups.map(Y),this._parents)},
merge:function(V){var a=this._groups;V=V._groups;for(var w=a.length,G=Math.min(w,V.length),Cr=Array(w),mh=0;mh<G;++mh)for(var be=a[mh],JP=V[mh],fj=be.length,ok=Cr[mh]=Array(fj),ZO,mT=0;mT<fj;++mT)if(ZO=be[mT]||JP[mT])ok[mT]=ZO;for(;mh<w;++mh)Cr[mh]=a[mh];return new dJ(Cr,this._parents)},
order:function(){for(var V=this._groups,a=-1,w=V.length;++a<w;)for(var G=V[a],Cr=G.length-1,mh=G[Cr],be;--Cr>=0;)if(be=G[Cr])mh&&mh!==be.nextSibling&&mh.parentNode.insertBefore(be,mh),mh=be;return this},
sort:function(V){function a(mT,x_){return mT&&x_?V(mT.__data__,x_.__data__):!mT-!x_}
V||(V=u);for(var w=this._groups,G=w.length,Cr=Array(G),mh=0;mh<G;++mh){for(var be=w[mh],JP=be.length,fj=Cr[mh]=Array(JP),ok,ZO=0;ZO<JP;++ZO)if(ok=be[ZO])fj[ZO]=ok;fj.sort(a)}return(new dJ(Cr,this._parents)).order()},
call:function(){var V=arguments[0];arguments[0]=this;V.apply(null,arguments);return this},
nodes:function(){var V=Array(this.size()),a=-1;this.each(function(){V[++a]=this});
return V},
node:function(){for(var V=this._groups,a=0,w=V.length;a<w;++a)for(var G=V[a],Cr=0,mh=G.length;Cr<mh;++Cr){var be=G[Cr];if(be)return be}return null},
size:function(){var V=0;this.each(function(){++V});
return V},
empty:function(){return!this.node()},
each:function(V){for(var a=this._groups,w=0,G=a.length;w<G;++w)for(var Cr=a[w],mh=0,be=Cr.length,JP;mh<be;++mh)(JP=Cr[mh])&&V.call(JP,JP.__data__,mh,Cr);return this},
attr:function(V,a){var w=g(V);if(arguments.length<2){var G=this.node();return w.local?G.getAttributeNS(w.space,w.local):G.getAttribute(w)}return this.each((a==null?w.local?p:W:typeof a==="function"?w.local?qN:R:w.local?I:N)(w,a))},
style:function(V,a,w){return arguments.length>1?this.each((a==null?kl:typeof a==="function"?tP:BN)(V,a,w==null?"":w)):EC(this.node(),V)},
property:function(V,a){return arguments.length>1?this.each((a==null?AP:typeof a==="function"?ue:eM)(V,a)):this.node()[V]},
text:function(V){return arguments.length?this.each(V==null?BH:(typeof V==="function"?lr:J3)(V)):this.node().textContent},
html:function(V){return arguments.length?this.each(V==null?xl:(typeof V==="function"?ir:Tv)(V)):this.node().innerHTML},
append:function(V){var a=typeof V==="function"?V:m(V);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},
insert:function(V,a){var w=typeof V==="function"?V:m(V),G=a==null?$_:typeof a==="function"?a:A(a);return this.select(function(){return this.insertBefore(w.apply(this,arguments),G.apply(this,arguments)||null)})},
remove:function(){return this.each(AH)},
clone:function(V){return this.select(V?MN:U3)},
datum:function(V){return arguments.length?this.property("__data__",V):this.node().__data__},
on:function(V,a,w){var G=YS(V+""),Cr=G.length,mh;if(arguments.length<2){var be=this.node().__on;if(be)for(var JP=0,fj=be.length,ok;JP<fj;++JP){var ZO=0;for(ok=be[JP];ZO<Cr;++ZO)if((mh=G[ZO]).type===ok.type&&mh.name===ok.name)return ok.value}}else{be=a?eu:Y_;w==null&&(w=!1);for(ZO=0;ZO<Cr;++ZO)this.each(be(G[ZO],a,w));return this}},
dispatch:function(V,a){return this.each((typeof a==="function"?Cj:Gv)(V,a))}};
var JRp=0;E3.prototype=function(){return new E3}.prototype={constructor:E3,
get:function(V){for(var a=this._;!(a in V);)if(!(V=V.parentNode))return;return V[a]},
set:function(V,a){return V[this._]=a},
remove:function(V){return this._ in V&&delete V[this._]},
toString:function(){return this._}};
var pP=1/.7,auF=/^#([0-9a-f]{3})$/,VlF=/^#([0-9a-f]{6})$/,XdS=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),uIi=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),vXq=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),h9S=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*\\)$"),
wdp=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),yRp=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*\\)$"),zer={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};
Lj(Ol,sr,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Lj(eF,aG,tH(Ol,{brighter:function(V){V=V==null?pP:Math.pow(pP,V);return new eF(this.r*V,this.g*V,this.b*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new eF(this.r*V,this.g*V,this.b*V,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"#"+T8(this.r)+T8(this.g)+T8(this.b)},
toString:function(){var V=this.opacity;V=isNaN(V)?1:Math.max(0,Math.min(1,V));return(V===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))+(V===1?")":", "+V+")")}}));
Lj(LD,tw,tH(Ol,{brighter:function(V){V=V==null?pP:Math.pow(pP,V);return new LD(this.h,this.s,this.l*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new LD(this.h,this.s,this.l*V,this.opacity)},
rgb:function(){var V=this.h%360+(this.h<0)*360,a=this.l,w=a+(a<.5?a:1-a)*(isNaN(V)||isNaN(this.s)?0:this.s);a=2*a-w;return new eF(Mz(V>=240?V-240:V+120,a,w),Mz(V,a,w),Mz(V<120?V+240:V-120,a,w),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 Jur=Math.PI/180,X_T=180/Math.PI,VYr=4/29,Id=6/29,aKu=3*Id*Id,WPG=Id*Id*Id;Lj(nr,function(V,a,w,G){return arguments.length===1?zP(V):new nr(V,a,w,G==null?1:G)},tH(Ol,{brighter:function(V){return new nr(this.l+18*(V==null?1:V),this.a,this.b,this.opacity)},
darker:function(V){return new nr(this.l-18*(V==null?1:V),this.a,this.b,this.opacity)},
rgb:function(){var V=(this.l+16)/116,a=isNaN(this.a)?V:V+this.a/500,w=isNaN(this.b)?V:V-this.b/200;a=.96422*NN(a);V=1*NN(V);w=.82521*NN(w);return new eF(Fy(3.1338561*a-1.6168667*V-.4906146*w),Fy(-.9787684*a+1.9161415*V+.033454*w),Fy(.0719453*a-.2289914*V+1.4052427*w),this.opacity)}}));
Lj(Kj,bC,tH(Ol,{brighter:function(V){return new Kj(this.h,this.c,this.l+18*(V==null?1:V),this.opacity)},
darker:function(V){return new Kj(this.h,this.c,this.l-18*(V==null?1:V),this.opacity)},
rgb:function(){return zP(this).rgb()}}));
var u7j=1.78277*-.29227-.1347134789;Lj(Vq,A3,tH(Ol,{brighter:function(V){V=V==null?pP:Math.pow(pP,V);return new Vq(this.h,this.s,this.l*V,this.opacity)},
darker:function(V){V=V==null?.7:Math.pow(.7,V);return new Vq(this.h,this.s,this.l*V,this.opacity)},
rgb:function(){var V=isNaN(this.h)?0:(this.h+120)*Jur,a=+this.l,w=isNaN(this.s)?0:this.s*a*(1-a),G=Math.cos(V);V=Math.sin(V);return new eF(255*(a+w*(-.14861*G+1.78277*V)),255*(a+w*(-.29227*G+-.90649*V)),255*(a+1.97294*G*w),this.opacity)}}));
var WZ_=function w(a){function G(mh,be){var JP=Cr((mh=aG(mh)).r,(be=aG(be)).r),fj=Cr(mh.g,be.g),ok=Cr(mh.b,be.b),ZO=pu(mh.opacity,be.opacity);return function(mT){mh.r=JP(mT);mh.g=fj(mT);mh.b=ok(mT);mh.opacity=ZO(mT);return mh+""}}
var Cr=EM(a);G.gamma=w;return G}(1),vf3=uP(function(a){var w=a.length-1;
return function(G){var Cr=G<=0?G=0:G>=1?(G=1,w-1):Math.floor(G*w),mh=a[Cr],be=a[Cr+1];return QM((G-Cr/w)*w,Cr>0?a[Cr-1]:2*mh-be,mh,be,Cr<w-1?a[Cr+2]:2*be-mh)}});
uP(function(a){var w=a.length;return function(G){var Cr=Math.floor(((G%=1)<0?++G:G)*w);return QM((G-Cr/w)*w,a[(Cr+w-1)%w],a[Cr%w],a[(Cr+1)%w],a[(Cr+2)%w])}});
var U2N=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pLn=new RegExp(U2N.source,"g"),v2K=180/Math.PI,iyN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},mI,TTz,QMu,QoG,wQJ=rk(function(a){if(a==="none")return iyN;mI||(mI=document.createElement("DIV"),TTz=document.documentElement,QMu=document.defaultView);mI.style.transform=a;a=QMu.getComputedStyle(TTz.appendChild(mI),null).getPropertyValue("transform");TTz.removeChild(mI);a=a.slice(7,-1).split(",");return l5(+a[0],+a[1],+a[2],+a[3],
+a[4],+a[5])},"px, ","px)","deg)"),yBq=rk(function(a){if(a==null)return iyN;
QoG||(QoG=document.createElementNS("http://www.w3.org/2000/svg","g"));QoG.setAttribute("transform",a);if(!(a=QoG.transform.baseVal.consolidate()))return iyN;a=a.matrix;return l5(a.a,a.b,a.c,a.d,a.e,a.f)},", ",")",")");
Av(uX);Av(pu);Bj(uX);Bj(pu);Pg(uX);var mjr=Pg(pu),Pp=0,r0=0,g0=0,A4e,CE,HDk=0,$u=0,mlN=0,My=typeof performance==="object"&&performance.now?performance:Date,heK=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(a){setTimeout(a,17)};
Mg.prototype=dI.prototype={constructor:Mg,restart:function(a,w,G){if(typeof a!=="function")throw new TypeError("ye");G=(G==null?ZT():+G)+(w==null?0:+w);this._next||CE===this||(CE?CE._next=this:A4e=this,CE=this);this._call=a;this._time=G;qq()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,qq())}};
var e93=d("start","end","interrupt"),Nhp=[],WvJ=BD.prototype.constructor,S2v=0,xW=BD.prototype;$d.prototype=function(a){return BD().transition(a)}.prototype={constructor:$d,
select:function(a){var w=this._name,G=this._id;typeof a!=="function"&&(a=A(a));for(var Cr=this._groups,mh=Cr.length,be=Array(mh),JP=0;JP<mh;++JP)for(var fj=Cr[JP],ok=fj.length,ZO=be[JP]=Array(ok),mT,x_,K3=0;K3<ok;++K3)(mT=fj[K3])&&(x_=a.call(mT,mT.__data__,K3,fj))&&("__data__"in mT&&(x_.__data__=mT.__data__),ZO[K3]=x_,x2C(ZO[K3],w,G,K3,ZO,Bf(mT,G)));return new $d(be,this._parents,w,G)},
filter:function(a){typeof a!=="function"&&(a=$23(a));for(var w=this._groups,G=w.length,Cr=Array(G),mh=0;mh<G;++mh)for(var be=w[mh],JP=be.length,fj=Cr[mh]=[],ok,ZO=0;ZO<JP;++ZO)(ok=be[ZO])&&a.call(ok,ok.__data__,ZO,be)&&fj.push(ok);return new $d(Cr,this._parents,this._name,this._id)},
merge:function(a){if(a._id!==this._id)throw Error();var w=this._groups;a=a._groups;for(var G=w.length,Cr=Math.min(G,a.length),mh=Array(G),be=0;be<Cr;++be)for(var JP=w[be],fj=a[be],ok=JP.length,ZO=mh[be]=Array(ok),mT,x_=0;x_<ok;++x_)if(mT=JP[x_]||fj[x_])ZO[x_]=mT;for(;be<G;++be)mh[be]=w[be];return new $d(mh,this._parents,this._name,this._id)},
selection:function(){return new WvJ(this._groups,this._parents)},
transition:function(){for(var a=this._name,w=this._id,G=++S2v,Cr=this._groups,mh=Cr.length,be=0;be<mh;++be)for(var JP=Cr[be],fj=JP.length,ok,ZO=0;ZO<fj;++ZO)if(ok=JP[ZO]){var mT=Bf(ok,w);x2C(ok,a,G,ZO,JP,{time:mT.time+mT.delay+mT.duration,delay:0,duration:mT.duration,ease:mT.ease})}return new $d(Cr,this._parents,a,G)},
call:xW.call,nodes:xW.nodes,node:xW.node,size:xW.size,empty:xW.empty,each:xW.each,on:function(a,w){var G=this._id;return arguments.length<2?Bf(this.node(),G).on.on(a):this.each(CsG(G,a,w))},
attr:function(a,w){var G=g(a),Cr=G==="transform"?yBq:yu3;return this.attrTween(a,typeof w==="function"?(G.local?Gy3:oXi)(G,Cr,G7M(this,"attr."+a,w)):w==null?(G.local?UMr:R93)(G):(G.local?xMF:pdr)(G,Cr,w+""))},
attrTween:function(a,w){var G="attr."+a;if(arguments.length<2)return(G=this.tween(G))&&G._value;if(w==null)return this.tween(G,null);if(typeof w!=="function")throw Error();var Cr=g(a);return this.tween(G,(Cr.local?csJ:fGc)(Cr,w))},
style:function(a,w,G){var Cr=a==="transform"?wQJ:yu3;return w==null?this.styleTween(a,k0q(a,Cr)).on("end.style."+a,On3(a)):this.styleTween(a,typeof w==="function"?sJi(a,Cr,G7M(this,"style."+a,w)):lGr(a,Cr,w+""),G)},
styleTween:function(a,w,G){var Cr="style."+a;if(arguments.length<2)return(Cr=this.tween(Cr))&&Cr._value;if(w==null)return this.tween(Cr,null);if(typeof w!=="function")throw Error();return this.tween(Cr,BqJ(a,w,G==null?"":G))},
text:function(a){return this.tween("text",typeof a==="function"?TqD(G7M(this,"text",a)):inr(a==null?"":a+""))},
remove:function(){return this.on("end.remove",g$c(this._id))},
tween:function(a,w){var G=this._id;if(arguments.length<2){G=Bf(this.node(),G).tween;for(var Cr=0,mh=G.length,be;Cr<mh;++Cr)if((be=G[Cr]).name===a)return be.value;return null}return this.each((w==null?IuG:P03)(G,a,w))},
delay:function(a){var w=this._id;return arguments.length?this.each((typeof a==="function"?dAi:jJD)(w,a)):Bf(this.node(),w).delay},
duration:function(a){var w=this._id;return arguments.length?this.each((typeof a==="function"?qUC:ZnQ)(w,a)):Bf(this.node(),w).duration},
ease:function(a){var w=this._id;return arguments.length?this.each(Mg3(w,a)):Bf(this.node(),w).ease}};
var HyM={time:null,delay:0,duration:250,ease:function(a){return((a*=2)<=1?a*a*a:(a-=2)*a*a+2)/2}};
BD.prototype.transition=function(a){var w;if(a instanceof $d){var G=a._id;a=a._name}else G=++S2v,(w=HyM).time=ZT(),a=a==null?null:a+"";for(var Cr=this._groups,mh=Cr.length,be=0;be<mh;++be)for(var JP=Cr[be],fj=JP.length,ok,ZO=0;ZO<fj;++ZO)if(ok=JP[ZO]){var mT=ok,x_=a,K3=G,Yh=ZO,wd=JP,bY;if(!(bY=w))a:{bY=void 0;for(var vw=G;!(bY=ok.__transition)||!(bY=bY[vw]);)if(!(ok=ok.parentNode)){bY=(HyM.time=ZT(),HyM);break a}}x2C(mT,x_,K3,Yh,wd,bY)}return new $d(Cr,this._parents,a,G)};
["e","w"].map(cLN);["n","s"].map(cLN);"n e s w nw ne se sw".split(" ").map(cLN);f$z.prototype=function(){return new f$z}.prototype={constructor:f$z,
moveTo:function(a,w){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+w)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(a,w){this._+="L"+(this._x1=+a)+","+(this._y1=+w)},
bezierCurveTo:function(a,w,G,Cr,mh,be){this._+="C"+ +a+","+ +w+","+ +G+","+ +Cr+","+(this._x1=+mh)+","+(this._y1=+be)},
rect:function(a,w,G,Cr){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+w)+"h"+ +G+"v"+ +Cr+"h"+-G+"Z"},
toString:function(){return this._}};
YzN.prototype=DIO.prototype={constructor:YzN,has:function(a){return" "+a in this},
get:function(a){return this[" "+a]},
set:function(a,w){this[" "+a]=w;return this},
remove:function(a){a=" "+a;return a in this&&delete this[a]},
clear:function(){for(var a in this)a[0]===" "&&delete this[a]},
keys:function(){var a=[],w;for(w in this)w[0]===" "&&a.push(w.slice(1));return a},
values:function(){var a=[],w;for(w in this)w[0]===" "&&a.push(this[w]);return a},
entries:function(){var a=[],w;for(w in this)w[0]===" "&&a.push({key:w.slice(1),value:this[w]});return a},
size:function(){var a=0,w;for(w in this)w[0]===" "&&++a;return a},
empty:function(){for(var a in this)if(a[0]===" ")return!1;return!0},
each:function(a){for(var w in this)w[0]===" "&&a(this[w],w.slice(1),this)}};
var zR=DIO.prototype;FuG.prototype=function(a,w){var G=new FuG;if(a instanceof FuG)a.each(function(be){G.add(be)});
else if(a){var Cr=-1,mh=a.length;if(w==null)for(;++Cr<mh;)G.add(a[Cr]);else for(;++Cr<mh;)G.add(w(a[Cr],Cr,a))}return G}.prototype={constructor:FuG,
has:zR.has,add:function(a){this[" "+a]=a;return this},
remove:zR.remove,clear:zR.clear,values:zR.keys,size:zR.size,empty:zR.empty,each:zR.each};var IK_={},djz={},DBQ=Nly(",").parse,e1G=Nly("\t").parse;Pju(DBQ);Pju(e1G);var L$=function(a,w,G){w=new jNn(w==null?YUq:w,G==null?F3C:G,NaN,NaN,NaN,NaN);return a==null?w:w.addAll(a)}.prototype=jNn.prototype;
L$.copy=function(){var a=new jNn(this._x,this._y,this._x0,this._y0,this._x1,this._y1),w=this._root,G,Cr;if(!w)return a;if(!w.length)return a._root=UIH(w),a;for(G=[{source:w,target:a._root=Array(4)}];w=G.pop();)for(var mh=0;mh<4;++mh)if(Cr=w.source[mh])Cr.length?G.push({source:Cr,target:w.target[mh]=Array(4)}):w.target[mh]=UIH(Cr);return a};
L$.add=function(a){var w=+this._x.call(null,a),G=+this._y.call(null,a);return Rey(this.cover(w,G),w,G,a)};
L$.addAll=function(a){var w,G,Cr=a.length,mh,be,JP=Array(Cr),fj=Array(Cr),ok=Infinity,ZO=Infinity,mT=-Infinity,x_=-Infinity;for(G=0;G<Cr;++G)isNaN(mh=+this._x.call(null,w=a[G]))||isNaN(be=+this._y.call(null,w))||(JP[G]=mh,fj[G]=be,mh<ok&&(ok=mh),mh>mT&&(mT=mh),be<ZO&&(ZO=be),be>x_&&(x_=be));mT<ok&&(ok=this._x0,mT=this._x1);x_<ZO&&(ZO=this._y0,x_=this._y1);this.cover(ok,ZO).cover(mT,x_);for(G=0;G<Cr;++G)Rey(this,JP[G],fj[G],a[G]);return this};
L$.cover=function(a,w){if(isNaN(a=+a)||isNaN(w=+w))return this;var G=this._x0,Cr=this._y0,mh=this._x1,be=this._y1;if(isNaN(G))mh=(G=Math.floor(a))+1,be=(Cr=Math.floor(w))+1;else if(G>a||a>mh||Cr>w||w>be){var JP=mh-G,fj=this._root,ok;switch(ok=(w<(Cr+be)/2)<<1|a<(G+mh)/2){case 0:do{var ZO=Array(4);ZO[ok]=fj;fj=ZO}while(JP*=2,mh=G+JP,be=Cr+JP,a>mh||w>be);break;case 1:do ZO=Array(4),ZO[ok]=fj,fj=ZO;while(JP*=2,G=mh-JP,be=Cr+JP,G>a||w>be);break;case 2:do ZO=Array(4),ZO[ok]=fj,fj=ZO;while(JP*=2,mh=G+JP,
Cr=be-JP,a>mh||Cr>w);break;case 3:do ZO=Array(4),ZO[ok]=fj,fj=ZO;while(JP*=2,G=mh-JP,Cr=be-JP,G>a||Cr>w)}this._root&&this._root.length&&(this._root=fj)}else return this;this._x0=G;this._y0=Cr;this._x1=mh;this._y1=be;return this};
L$.data=function(){var a=[];this.visit(function(w){if(!w.length){do a.push(w.data);while(w=w.next)}});
return a};
L$.extent=function(a){return arguments.length?this.cover(+a[0][0],+a[0][1]).cover(+a[1][0],+a[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
L$.find=function(a,w,G){var Cr=this._x0,mh=this._y0,be,JP,fj,ok,ZO=this._x1,mT=this._y1,x_=[],K3=this._root,Yh;K3&&x_.push(new SB(K3,Cr,mh,ZO,mT));G==null?G=Infinity:(Cr=a-G,mh=w-G,ZO=a+G,mT=w+G,G*=G);for(;Yh=x_.pop();)if(!(!(K3=Yh.node)||(be=Yh.x0)>ZO||(JP=Yh.y0)>mT||(fj=Yh.x1)<Cr||(ok=Yh.y1)<mh))if(K3.length){Yh=(be+fj)/2;var wd=(JP+ok)/2;x_.push(new SB(K3[3],Yh,wd,fj,ok),new SB(K3[2],be,wd,Yh,ok),new SB(K3[1],Yh,JP,fj,wd),new SB(K3[0],be,JP,Yh,wd));if(K3=(w>=wd)<<1|a>=Yh)Yh=x_[x_.length-1],x_[x_.length-
1]=x_[x_.length-1-K3],x_[x_.length-1-K3]=Yh}else if(Yh=a-+this._x.call(null,K3.data),wd=w-+this._y.call(null,K3.data),Yh=Yh*Yh+wd*wd,Yh<G){var bY=Math.sqrt(G=Yh);Cr=a-bY;mh=w-bY;ZO=a+bY;mT=w+bY;bY=K3.data}return bY};
L$.remove=function(a){if(isNaN(ok=+this._x.call(null,a))||isNaN(ZO=+this._y.call(null,a)))return this;var w,G=this._root,Cr,mh=this._x0,be=this._y0,JP=this._x1,fj=this._y1,ok,ZO,mT,x_,K3,Yh,wd;if(!G)return this;if(G.length)for(;;){(K3=ok>=(mT=(mh+JP)/2))?mh=mT:JP=mT;(Yh=ZO>=(x_=(be+fj)/2))?be=x_:fj=x_;if(!(w=G,G=G[wd=Yh<<1|K3]))return this;if(!G.length)break;if(w[wd+1&3]||w[wd+2&3]||w[wd+3&3]){var bY=w;var vw=wd}}for(;G.data!==a;)if(!(Cr=G,G=G.next))return this;(a=G.next)&&delete G.next;if(Cr)return a?
Cr.next=a:delete Cr.next,this;if(!w)return this._root=a,this;a?w[wd]=a:delete w[wd];(G=w[0]||w[1]||w[2]||w[3])&&G===(w[3]||w[2]||w[1]||w[0])&&!G.length&&(bY?bY[vw]=G:this._root=G);return this};
L$.removeAll=function(a){for(var w=0,G=a.length;w<G;++w)this.remove(a[w]);return this};
L$.root=function(){return this._root};
L$.size=function(){var a=0;this.visit(function(w){if(!w.length){do++a;while(w=w.next)}});
return a};
L$.visit=function(a){var w=[],G,Cr=this._root,mh,be,JP,fj,ok;for(Cr&&w.push(new SB(Cr,this._x0,this._y0,this._x1,this._y1));G=w.pop();)if(!a(Cr=G.node,be=G.x0,JP=G.y0,fj=G.x1,ok=G.y1)&&Cr.length){G=(be+fj)/2;var ZO=(JP+ok)/2;(mh=Cr[3])&&w.push(new SB(mh,G,ZO,fj,ok));(mh=Cr[2])&&w.push(new SB(mh,be,ZO,G,ok));(mh=Cr[1])&&w.push(new SB(mh,G,JP,fj,ZO));(mh=Cr[0])&&w.push(new SB(mh,be,JP,G,ZO))}};
L$.visitAfter=function(a){var w=[],G=[],Cr;for(this._root&&w.push(new SB(this._root,this._x0,this._y0,this._x1,this._y1));Cr=w.pop();){var mh=Cr.node;if(mh.length){var be,JP=Cr.x0,fj=Cr.y0,ok=Cr.x1,ZO=Cr.y1,mT=(JP+ok)/2,x_=(fj+ZO)/2;(be=mh[0])&&w.push(new SB(be,JP,fj,mT,x_));(be=mh[1])&&w.push(new SB(be,mT,fj,ok,x_));(be=mh[2])&&w.push(new SB(be,JP,x_,mT,ZO));(be=mh[3])&&w.push(new SB(be,mT,x_,ok,ZO))}G.push(Cr)}for(;Cr=G.pop();)a(Cr.node,Cr.x0,Cr.y0,Cr.x1,Cr.y1);return this};
L$.x=function(a){return arguments.length?(this._x=a,this):this._x};
L$.y=function(a){return arguments.length?(this._y=a,this):this._y};
var E$3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;qaM.prototype=Zyh.prototype;Zyh.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 GGr,c$j={"%":function(a,w){return(a*100).toFixed(w)},
b:function(a){return Math.round(a).toString(2)},
c:function(a){return a+""},
d:function(a){return Math.round(a).toString(10)},
e:function(a,w){return a.toExponential(w)},
f:function(a,w){return a.toFixed(w)},
g:function(a,w){return a.toPrecision(w)},
o:function(a){return Math.round(a).toString(8)},
p:function(a,w){return p_o(a*100,w)},
r:p_o,s:function(a,w){var G=tAk(a,w);if(!G)return a+"";var Cr=G[0];G=G[1];G=G-(GGr=Math.max(-8,Math.min(8,Math.floor(G/3)))*3)+1;var mh=Cr.length;return G===mh?Cr:G>mh?Cr+Array(G-mh+1).join("0"):G>0?Cr.slice(0,G)+"."+Cr.slice(G):"0."+Array(1-G).join("0")+tAk(a,Math.max(0,w+G-1))[0]},
X:function(a){return Math.round(a).toString(16).toUpperCase()},
x:function(a){return Math.round(a).toString(16)}},o2F="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),NFF;
(function(a){return NFF=n$3(a)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});l4.prototype={constructor:l4,reset:function(){this.s=this.t=0},
add:function(a){fV_(SzG,a,this.t);fV_(this,SzG.s,this.s);this.s?this.t+=SzG.t:this.s=SzG.t},
valueOf:function(){return this.s}};
var SzG=new l4,Eu=Math.PI,tK=Eu/2,L1v=Eu/4,IjH=Eu*2,ALk=Eu/180,Qs=Math.abs,YaM=Math.atan,r$r=Math.atan2,bk=Math.cos,sO=Math.sin,Kun=Math.sqrt;new l4;new l4;new l4;var FNe=new l4;(function(a,w,G,Cr){return function(mh){function be(vV,mA){a(vV,mA)&&mh.point(vV,mA)}
function JP(vV,mA){K3.point(vV,mA)}
function fj(){v9.point=JP;K3.lineStart()}
function ok(){v9.point=be;K3.lineEnd()}
function ZO(vV,mA){M$.push([vV,mA]);wd.point(vV,mA)}
function mT(){wd.lineStart();M$=[]}
function x_(){ZO(M$[0][0],M$[0][1]);wd.lineEnd();var vV=wd.clean(),mA=Yh.result(),Ih=mA.length,o7;M$.pop();vw.push(M$);M$=null;if(Ih)if(vV&1){if(Ih=mA[0],(mA=Ih.length-1)>0){bY||(mh.polygonStart(),bY=!0);mh.lineStart();for(vV=0;vV<mA;++vV)mh.point((o7=Ih[vV])[0],o7[1]);mh.lineEnd()}}else Ih>1&&vV&2&&mA.push(mA.pop().concat(mA.shift())),um.push(mA.filter(L3C))}
var K3=w(mh),Yh=QJr(),wd=w(Yh),bY=!1,vw,um,M$,v9={point:be,lineStart:fj,lineEnd:ok,polygonStart:function(){v9.point=ZO;v9.lineStart=mT;v9.lineEnd=x_;um=[];vw=[]},
polygonEnd:function(){v9.point=be;v9.lineStart=fj;v9.lineEnd=ok;var vV=um,mA=vV.length;var Ih=-1;for(var o7=0,vD,mE;++Ih<mA;)o7+=vV[Ih].length;for(vD=Array(o7);--mA>=0;)for(mE=vV[mA],Ih=mE.length;--Ih>=0;)vD[--o7]=mE[Ih];um=vD;vV=vw;mA=Cr[0];o7=Cr[1];var MS=sO(o7);Ih=[sO(mA),-bk(mA),0];mE=vD=0;FNe.reset();MS===1?o7=tK+1E-6:MS===-1&&(o7=-tK-1E-6);MS=0;for(var Qq=vV.length;MS<Qq;++MS)if(Kh=(ud=vV[MS]).length){var ud,Kh,hN=ud[Kh-1],jA=hN[0],pn=hN[1]/2+L1v,Lu4=sO(pn),zz3=bk(pn);for(pn=0;pn<Kh;++pn,jA=
tIr,Lu4=J$u,zz3=HJ,hN=zvl){var zvl=ud[pn],tIr=zvl[0];HJ=zvl[1]/2+L1v;var J$u=sO(HJ),HJ=bk(HJ),od=tIr-jA,byN=od>=0?1:-1,KNr=byN*od,J4z=KNr>Eu;Lu4*=J$u;FNe.add(r$r(Lu4*byN*sO(KNr),zz3*HJ+Lu4*bk(KNr)));vD+=J4z?od+byN*IjH:od;J4z^jA>=mA^tIr>=mA&&(hN=jMy(d2y(hN),d2y(zvl)),q2K(hN),jA=jMy(Ih,hN),q2K(jA),jA=(J4z^od>=0?-1:1)*bDk(jA[2]),o7>jA||o7===jA&&(hN[0]||hN[1]))&&(mE+=J4z^od>=0?1:-1)}}vV=(vD<-1E-6||vD<1E-6&&FNe<-1E-6)^mE&1;um.length?(bY||(mh.polygonStart(),bY=!0),SUG(um,ziG,vV,G,mh)):vV&&(bY||(mh.polygonStart(),
bY=!0),mh.lineStart(),G(null,null,1,mh),mh.lineEnd());bY&&(mh.polygonEnd(),bY=!1);um=vw=null},
sphere:function(){mh.polygonStart();mh.lineStart();G(null,null,1,mh);mh.lineEnd();mh.polygonEnd()}};
return v9}})(function(){return!0},function(a){var w=NaN,G=NaN,Cr=NaN,mh;
return{lineStart:function(){a.lineStart();mh=1},
point:function(be,JP){var fj=be>0?Eu:-Eu,ok=Qs(be-w);if(Qs(ok-Eu)<1E-6)a.point(w,G=(G+JP)/2>0?tK:-tK),a.point(Cr,G),a.lineEnd(),a.lineStart(),a.point(fj,G),a.point(be,G),mh=0;else if(Cr!==fj&&ok>=Eu){Qs(w-Cr)<1E-6&&(w-=Cr*1E-6);Qs(be-fj)<1E-6&&(be-=fj*1E-6);ok=w;var ZO=G,mT=be,x_,K3,Yh=sO(ok-mT);G=Qs(Yh)>1E-6?YaM((sO(ZO)*(K3=bk(JP))*sO(mT)-sO(JP)*(x_=bk(ZO))*sO(ok))/(x_*K3*Yh)):(ZO+JP)/2;a.point(Cr,G);a.lineEnd();a.lineStart();a.point(fj,G);mh=0}a.point(w=be,G=JP);Cr=fj},
lineEnd:function(){a.lineEnd();w=G=NaN},
clean:function(){return 2-mh}}},function(a,w,G,Cr){a==null?(G*=tK,Cr.point(-Eu,G),Cr.point(0,G),Cr.point(Eu,G),Cr.point(Eu,0),Cr.point(Eu,-G),Cr.point(0,-G),Cr.point(-Eu,-G),Cr.point(-Eu,0),Cr.point(-Eu,G)):Qs(a[0]-w[0])>1E-6?(a=a[0]<w[0]?Eu:-Eu,G=G*a/2,Cr.point(-a,G),Cr.point(0,G),Cr.point(a,G)):Cr.point(w[0],w[1])},[-Eu,
-tK]);new l4;new l4;new l4;new l4;MIe.prototype={constructor:MIe,point:function(a,w){this.stream.point(a,w)},
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()}};
bk(30*ALk);(function(a){return function(w){var G=new MIe,Cr;for(Cr in a)G[Cr]=a[Cr];G.stream=w;return G}})({point:function(a,w){this.stream.point(a*ALk,w*ALk)}});
M3r(function(a){return Kun(2/(1+a))}).invert=kL(function(a){return 2*bDk(a/2)});
M3r(function(a){return(a=a>1?0:a<-1?Eu:Math.acos(a))&&a/sO(a)}).invert=kL(function(a){return a});
Kun(3);kL(YaM);kL(bDk);kL(function(a){return 2*YaM(a)});
Od.prototype=CKu.prototype={constructor:Od,count:function(){return this.eachAfter(Jsq)},
each:function(a){var w,G=[this],Cr;do{var mh=G.reverse();for(G=[];w=mh.pop();)if(a(w),w=w.children){var be=0;for(Cr=w.length;be<Cr;++be)G.push(w[be])}}while(G.length);return this},
eachAfter:function(a){for(var w,G=[this],Cr=[],mh,be;w=G.pop();)if(Cr.push(w),w=w.children)for(mh=0,be=w.length;mh<be;++mh)G.push(w[mh]);for(;w=Cr.pop();)a(w);return this},
eachBefore:function(a){for(var w,G=[this],Cr;w=G.pop();)if(a(w),w=w.children)for(Cr=w.length-1;Cr>=0;--Cr)G.push(w[Cr]);return this},
sum:function(a){return this.eachAfter(function(w){for(var G=+a(w.data)||0,Cr=w.children,mh=Cr&&Cr.length;--mh>=0;)G+=Cr[mh].value;w.value=G})},
sort:function(a){return this.eachBefore(function(w){w.children&&w.children.sort(a)})},
path:function(a){var w=this;var G=w;var Cr=a;if(G!==Cr){var mh=G.ancestors(),be=Cr.ancestors(),JP=null;G=mh.pop();for(Cr=be.pop();G===Cr;)JP=G,G=mh.pop(),Cr=be.pop();G=JP}for(Cr=[w];w!==G;)w=w.parent,Cr.push(w);for(w=Cr.length;a!==G;)Cr.splice(w,0,a),a=a.parent;return Cr},
ancestors:function(){for(var a=this,w=[a];a=a.parent;)w.push(a);return w},
links:function(){var a=this,w=[];a.each(function(G){G!==a&&w.push({source:G.parent,target:G})});
return w},
copy:function(){return CKu(this).eachBefore(XKS)}};
(function(a,w){this._=a;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=w}).prototype=Object.create(Od.prototype);
var rLC=new Date,CwM=new Date,aV_=dS(function(){},function(a,w){a.setTime(+a+w)},function(a,w){return w-a});
aV_.every=function(a){a=Math.floor(a);return isFinite(a)&&a>0?a>1?dS(function(w){w.setTime(Math.floor(w/a)*a)},function(w,G){w.setTime(+w+G*a)},function(w,G){return(G-w)/a}):aV_:null};
dS(function(a){a.setTime(Math.floor(a/1E3)*1E3)},function(a,w){a.setTime(+a+w*1E3)},function(a,w){return(w-a)/1E3},function(a){return a.getUTCSeconds()});
dS(function(a){a.setTime(Math.floor(a/6E4)*6E4)},function(a,w){a.setTime(+a+w*6E4)},function(a,w){return(w-a)/6E4},function(a){return a.getMinutes()});
dS(function(a){var w=a.getTimezoneOffset()*6E4%36E5;w<0&&(w+=36E5);a.setTime(Math.floor((+a-w)/36E5)*36E5+w)},function(a,w){a.setTime(+a+w*36E5)},function(a,w){return(w-a)/36E5},function(a){return a.getHours()});
var OtH=dS(function(a){a.setHours(0,0,0,0)},function(a,w){a.setDate(a.getDate()+w)},function(a,w){return(w-a-(w.getTimezoneOffset()-a.getTimezoneOffset())*6E4)/864E5},function(a){return a.getDate()-1}),XQC=Sy(0),k1P=Sy(1);
Sy(2);Sy(3);var OyN=Sy(4);Sy(5);Sy(6);dS(function(a){a.setDate(1);a.setHours(0,0,0,0)},function(a,w){a.setMonth(a.getMonth()+w)},function(a,w){return w.getMonth()-a.getMonth()+(w.getFullYear()-a.getFullYear())*12},function(a){return a.getMonth()});
var Rd=dS(function(a){a.setMonth(0,1);a.setHours(0,0,0,0)},function(a,w){a.setFullYear(a.getFullYear()+w)},function(a,w){return w.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});
Rd.every=function(a){return isFinite(a=Math.floor(a))&&a>0?dS(function(w){w.setFullYear(Math.floor(w.getFullYear()/a)*a);w.setMonth(0,1);w.setHours(0,0,0,0)},function(w,G){w.setFullYear(w.getFullYear()+G*a)}):null};
dS(function(a){a.setUTCSeconds(0,0)},function(a,w){a.setTime(+a+w*6E4)},function(a,w){return(w-a)/6E4},function(a){return a.getUTCMinutes()});
dS(function(a){a.setUTCMinutes(0,0,0)},function(a,w){a.setTime(+a+w*36E5)},function(a,w){return(w-a)/36E5},function(a){return a.getUTCHours()});
var k7o=dS(function(a){a.setUTCHours(0,0,0,0)},function(a,w){a.setUTCDate(a.getUTCDate()+w)},function(a,w){return(w-a)/864E5},function(a){return a.getUTCDate()-1}),uLS=Ll(0),gdr=Ll(1);
Ll(2);Ll(3);var l$M=Ll(4);Ll(5);Ll(6);dS(function(a){a.setUTCDate(1);a.setUTCHours(0,0,0,0)},function(a,w){a.setUTCMonth(a.getUTCMonth()+w)},function(a,w){return w.getUTCMonth()-a.getUTCMonth()+(w.getUTCFullYear()-a.getUTCFullYear())*12},function(a){return a.getUTCMonth()});
var U9=dS(function(a){a.setUTCMonth(0,1);a.setUTCHours(0,0,0,0)},function(a,w){a.setUTCFullYear(a.getUTCFullYear()+w)},function(a,w){return w.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});
U9.every=function(a){return isFinite(a=Math.floor(a))&&a>0?dS(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/a)*a);w.setUTCMonth(0,1);w.setUTCHours(0,0,0,0)},function(w,G){w.setUTCFullYear(w.getUTCFullYear()+G*a)}):null};
var gHj={"-":"",_:" ",0:"0"},rW=/^\s*\d+/,Vw3=/^%/,aj3=/[\\^$*+?|[\]().{}]/g,aMM;(function(a){aMM=v$i(a);Zao=aMM.utcFormat;McK=aMM.utcParse;return aMM})({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||Zao("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||McK("%Y-%m-%dT%H:%M:%S.%LZ");Bv("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Bv("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Bv("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Bv("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Bv("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Bv("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Bv("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Bv("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Bv("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Bv("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Bv("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Bv("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Pqi=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Bv);vC(Pqi);var R1D=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Bv);vC(R1D);var UBC=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Bv);vC(UBC);var pQq=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Bv);
vC(pQq);var xBi=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Bv);vC(xBi);var ofc=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Bv);vC(ofc);var G2p=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Bv);vC(G2p);var cuC=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Bv);vC(cuC);var fKQ=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Bv);vC(fKQ);var dIC=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Bv);vC(dIC);var jXG=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Bv);vC(jXG);var q8G=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Bv);vC(q8G);var Z5G=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Bv);vC(Z5G);var MY3=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Bv);vC(MY3);var ruQ=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Bv);vC(ruQ);var CjS=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Bv);vC(CjS);var g2q=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Bv);vC(g2q);var kGi=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Bv);vC(kGi);var O53=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Bv);vC(O53);var lKJ=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Bv);vC(lKJ);var sXr=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Bv);vC(sXr);var Blp=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Bv);vC(Blp);var i5i=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Bv);vC(i5i);var TlH=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Bv);vC(TlH);var mIC=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Bv);vC(mIC);var H5C=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Bv);vC(H5C);var Auc=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Bv);vC(Auc);mjr(A3(300,.5,0),A3(-240,.5,1));mjr(A3(-100,.75,.35),A3(80,1.5,.8));mjr(A3(260,.75,.35),A3(80,1.5,.8));A3();aG();$ln(Bv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
$ln(Bv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
$ln(Bv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
$ln(Bv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
F13.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(a,w){a=+a;w=+w;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(a,w):this._context.moveTo(a,w);break;case 1:this._point=2;default:this._context.lineTo(a,w)}}};
(function(a){function w(G){return new t3K(a(G))}
w._curve=a;return w})(function(a){return new F13(a)});
t3K.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(a,w){this._curve.point(w*Math.sin(a),w*-Math.cos(a))}};
BTr.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:sNN(this,this._t0,K1u(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(a,w){var G=NaN;a=+a;w=+w;if(a!==this._x1||w!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(a,w):this._context.moveTo(a,w);break;case 1:this._point=2;break;case 2:this._point=3;sNN(this,K1u(this,G=btT(this,a,w)),G);break;default:sNN(this,this._t0,G=btT(this,a,w))}this._x0=this._x1;this._x1=a;this._y0=this._y1;this._y1=w;this._t0=G}}};
(function(a){this._context=new EHy(a)}.prototype=Object.create(BTr.prototype)).point=function(a,w){BTr.prototype.point.call(this,w,a)};
EHy.prototype={moveTo:function(a,w){this._context.moveTo(w,a)},
closePath:function(){this._context.closePath()},
lineTo:function(a,w){this._context.lineTo(w,a)},
bezierCurveTo:function(a,w,G,Cr,mh,be){this._context.bezierCurveTo(w,a,Cr,G,be,mh)}};
iG.prototype={constructor:iG,scale:function(a){return a===1?this:new iG(this.k*a,this.x,this.y)},
translate:function(a,w){return a===0&w===0?this:new iG(this.k,this.x+this.k*a,this.y+this.k*w)},
apply:function(a){return[a[0]*this.k+this.x,a[1]*this.k+this.y]},
invert:function(a){return[(a[0]-this.x)/this.k,(a[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new iG(1,0,0);FQY=sr;Fb.svg=Fb.svg;Fb.xhtml=Fb.xhtml;Fb.xlink=Fb.xlink;Fb.xml=Fb.xml;Fb.xmlns=Fb.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 rc_="hammer_"+(Math.random()*1E6|0),C7_=function(){var c=document||document;if(!c[rc_]){var f=function(){(function(d,q,Z,M){function g(nr,vN,NN){return setTimeout(Y(nr,NN),vN)}
function O(nr,vN,NN){return Array.isArray(nr)?(l(nr,NN[vN],NN),!0):!1}
function l(nr,vN,NN){var Fy;if(nr)if(nr.forEach)nr.forEach(vN,NN);else if(nr.length!==M){var Or=0;for(Fy=nr.length;Or<Fy;Or++)vN.call(NN,nr[Or],Or,nr)}else for(Or in nr)nr.hasOwnProperty(Or)&&vN.call(NN,nr[Or],Or,nr)}
function m(nr,vN,NN){for(var Fy=Object.keys(vN),Or=0,z8=Fy.length;Or<z8;Or++)if(!NN||NN&&nr[Fy[Or]]===M)nr[Fy[Or]]=vN[Fy[Or]];return nr}
function H(nr,vN){return m(nr,vN,!0)}
function A(nr,vN,NN){vN=vN.prototype;var Fy=nr.prototype=Object.create(vN);Fy.constructor=nr;Fy._super=vN;NN&&m(Fy,NN)}
function Y(nr,vN){return function(){return nr.apply(vN,arguments)}}
function t(nr,vN){return typeof nr=="function"?nr.apply(vN?vN[0]||M:M,vN):nr}
function E(nr,vN,NN){l(X(vN),function(Fy){nr.addEventListener(Fy,NN,!1)})}
function J(nr,vN,NN){l(X(vN),function(Fy){nr.removeEventListener(Fy,NN,!1)})}
function X(nr){return nr.trim().split(/\s+/g)}
function u(nr,vN,NN){if(nr.indexOf&&!NN)return nr.indexOf(vN);for(var Fy=0,Or=nr.length;Fy<Or;Fy++)if(NN&&nr[Fy][NN]==vN||!NN&&nr[Fy]===vN)return Fy;return-1}
function W(nr,vN,NN){for(var Fy=[],Or=[],z8=0,bC=nr.length;z8<bC;z8++){var Kj=vN?nr[z8][vN]:nr[z8];u(Or,Kj)<0&&Fy.push(nr[z8]);Or[z8]=Kj}NN&&(Fy=vN?Fy.sort(function(A3,Vq){return A3[vN]>Vq[vN]}):Fy.sort());
return Fy}
function p(nr,vN){for(var NN,Fy=vN[0].toUpperCase()+vN.slice(1),Or=0,z8=Cj.length;Or<z8;Or++)if(NN=(NN=Cj[Or])?NN+Fy:vN,NN in nr)return NN;return M}
function N(nr,vN){var NN=this;this.manager=nr;this.callback=vN;this.element=nr.element;this.target=nr.options.inputTarget;this.domHandler=function(Fy){t(nr.options.enable,[nr])&&NN.handler(Fy)};
this.evEl&&E(this.element,this.evEl,this.domHandler);this.evTarget&&E(this.target,this.evTarget,this.domHandler);this.evWin&&E(d,this.evWin,this.domHandler)}
function I(nr){var vN;KG?vN=eM:pZ?vN=ue:sr?vN=BH:vN=AP;return new vN(nr,R)}
function R(nr,vN,NN){var Fy=NN.pointers.length,Or=NN.changedPointers.length,z8=vN&1&&Fy-Or===0;NN.isFirst=!!z8;NN.isFinal=!!(vN&12&&Fy-Or===0);z8&&(nr.session={});NN.eventType=vN;vN=nr.session;Fy=NN.pointers;Or=Fy.length;vN.firstInput||(vN.firstInput=qN(NN));Or>1&&!vN.firstMultiple?vN.firstMultiple=qN(NN):Or===1&&(vN.firstMultiple=!1);z8=vN.firstInput;var bC=(Or=vN.firstMultiple)?Or.center:z8.center,Kj=NN.center=kl(Fy);NN.timeStamp=Lj();NN.deltaTime=NN.timeStamp-z8.timeStamp;NN.angle=EC(bC,Kj);NN.distance=
tP(bC,Kj);z8=NN.center;bC=vN.offsetDelta||{};Kj=vN.prevDelta||{};var A3=vN.prevInput||{};if(NN.eventType===1||A3.eventType===4)Kj=vN.prevDelta={x:A3.deltaX||0,y:A3.deltaY||0},bC=vN.offsetDelta={x:z8.x,y:z8.y};NN.deltaX=Kj.x+(z8.x-bC.x);NN.deltaY=Kj.y+(z8.y-bC.y);NN.offsetDirection=BN(NN.deltaX,NN.deltaY);Or?(z8=Or.pointers,z8=tP(Fy[0],Fy[1],aG)/tP(z8[0],z8[1],aG)):z8=1;NN.scale=z8;Or?(Or=Or.pointers,Fy=EC(Fy[1],Fy[0],aG)-EC(Or[1],Or[0],aG)):Fy=0;NN.rotation=Fy;bC=vN.lastInterval||NN;Fy=NN.timeStamp-
bC.timeStamp;NN.eventType!=8&&(Fy>25||bC.velocity===M)?(z8=bC.deltaX-NN.deltaX,bC=bC.deltaY-NN.deltaY,Kj=z8/Fy||0,A3=bC/Fy||0,Fy=Kj,Or=A3,Kj=E3(Kj)>E3(A3)?Kj:A3,z8=BN(z8,bC),vN.lastInterval=NN):(Kj=bC.velocity,Fy=bC.velocityX,Or=bC.velocityY,z8=bC.direction);NN.velocity=Kj;NN.velocityX=Fy;NN.velocityY=Or;NN.direction=z8;vN=nr.element;a:{for(Fy=NN.srcEvent.target;Fy;){if(Fy==vN){Fy=!0;break a}Fy=Fy.parentNode}Fy=!1}Fy&&(vN=NN.srcEvent.target);NN.target=vN;nr.emit("hammer.input",NN);nr.recognize(NN);
nr.session.prevInput=NN}
function qN(nr){for(var vN=[],NN=0;NN<nr.pointers.length;NN++)vN[NN]={clientX:BD(nr.pointers[NN].clientX),clientY:BD(nr.pointers[NN].clientY)};return{timeStamp:Lj(),pointers:vN,center:kl(vN),deltaX:nr.deltaX,deltaY:nr.deltaY}}
function kl(nr){var vN=nr.length;if(vN===1)return{x:BD(nr[0].clientX),y:BD(nr[0].clientY)};for(var NN=0,Fy=0,Or=0;Or<vN;Or++)NN+=nr[Or].clientX,Fy+=nr[Or].clientY;return{x:BD(NN/vN),y:BD(Fy/vN)}}
function BN(nr,vN){return nr===vN?1:E3(nr)>=E3(vN)?nr>0?2:4:vN>0?8:16}
function tP(nr,vN,NN){NN||(NN=NH);var Fy=vN[NN[0]]-nr[NN[0]];nr=vN[NN[1]]-nr[NN[1]];return Math.sqrt(Fy*Fy+nr*nr)}
function EC(nr,vN,NN){NN||(NN=NH);return Math.atan2(vN[NN[1]]-nr[NN[1]],vN[NN[0]]-nr[NN[0]])*180/Math.PI}
function AP(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;N.apply(this,arguments)}
function eM(){this.evEl=Zg;this.evWin=tw;N.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function ue(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};N.apply(this,arguments)}
function BH(){N.apply(this,arguments);var nr=Y(this.handler,this);this.touch=new ue(this.manager,nr);this.mouse=new AP(this.manager,nr)}
function J3(nr,vN){this.manager=nr;this.set(vN)}
function lr(nr){if(nr.indexOf("none")>-1)return"none";var vN=nr.indexOf("pan-x")>-1,NN=nr.indexOf("pan-y")>-1;return vN&&NN?"pan-x pan-y":vN||NN?vN?"pan-x":"pan-y":nr.indexOf("manipulation")>-1?"manipulation":"auto"}
function xl(nr){this.id=tH++;this.manager=null;this.options=H(nr||{},this.defaults);nr=this.options.enable;this.options.enable=nr===M?!0:nr;this.state=1;this.simultaneous={};this.requireFail=[]}
function Tv(nr){return nr==16?"down":nr==8?"up":nr==2?"left":nr==4?"right":""}
function ir(nr,vN){return(vN=vN.manager)?vN.get(nr):nr}
function $_(){xl.apply(this,arguments)}
function AH(){$_.apply(this,arguments);this.pY=this.pX=null}
function U3(){$_.apply(this,arguments)}
function MN(){xl.apply(this,arguments);this._input=this._timer=null}
function qH(){$_.apply(this,arguments)}
function br(){$_.apply(this,arguments)}
function YS(){xl.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Y_(nr,vN){vN=vN||{};var NN=vN.recognizers;vN.recognizers=NN===M?Y_.defaults.preset:NN;return new eu(nr,vN)}
function eu(nr,vN){vN=vN||{};this.options=H(vN,Y_.defaults);this.options.inputTarget=this.options.inputTarget||nr;this.handlers={};this.session={};this.recognizers=[];this.element=nr;this.input=I(this);this.touchAction=new J3(this,this.options.touchAction);fT(this,!0);l(vN.recognizers,function(NN){var Fy=this.add(new NN[0](NN[1]));NN[2]&&Fy.recognizeWith(NN[2]);NN[3]&&Fy.requireFailure(NN[2])},this)}
function fT(nr,vN){var NN=nr.element;l(nr.options.cssProps,function(Fy,Or){NN.style[p(NN.style,Or)]=vN?Fy:""})}
function Gv(nr,vN){var NN=q.createEvent("Event");NN.initEvent(nr,!0,!0);NN.gesture=vN;vN.target.dispatchEvent(NN)}
var Cj=" webkit moz MS ms o".split(" "),dJ=q.createElement("div"),BD=Math.round,E3=Math.abs,Lj=Date.now,tH=1,Ol=/mobile|tablet|ip(ad|hone|od)|android/i,sr="ontouchstart"in d,KG=p(d,"PointerEvent")!==M,pZ=sr&&Ol.test(navigator.userAgent),NH=["x","y"],aG=["clientX","clientY"];N.prototype={handler:function(){},
destroy:function(){this.evEl&&J(this.element,this.evEl,this.domHandler);this.evTarget&&J(this.target,this.evTarget,this.domHandler);this.evWin&&J(d,this.evWin,this.domHandler)}};
var eF={mousedown:1,mousemove:2,mouseup:4};A(AP,N,{handler:function(nr){var vN=eF[nr.type];vN&1&&nr.button===0&&(this.pressed=!0);vN&2&&nr.which!==1&&(vN=4);this.pressed&&this.allow&&(vN&4&&(this.pressed=!1),this.callback(this.manager,vN,{pointers:[nr],changedPointers:[nr],pointerType:"mouse",srcEvent:nr}))}});
var T8={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},jZ={2:"touch",3:"pen",4:"mouse",5:"kinect"},Zg="pointerdown",tw="pointermove pointerup pointercancel";d.MSPointerEvent&&(Zg="MSPointerDown",tw="MSPointerMove MSPointerUp MSPointerCancel");A(eM,N,{handler:function(nr){var vN=this.store,NN=!1,Fy=nr.type.toLowerCase().replace("ms","");Fy=T8[Fy];var Or=jZ[nr.pointerType]||nr.pointerType;Fy&1&&(nr.button===0||Or=="touch")?vN.push(nr):Fy&12&&(NN=!0);var z8=u(vN,nr.pointerId,"pointerId");
z8<0||(vN[z8]=nr,this.callback(this.manager,Fy,{pointers:vN,changedPointers:[nr],pointerType:Or,srcEvent:nr}),NN&&vN.splice(z8,1))}});
var LD={touchstart:1,touchmove:2,touchend:4,touchcancel:8};A(ue,N,{handler:function(nr){var vN=LD[nr.type];var NN=Array.prototype.slice.call(nr.touches,0);var Fy=this.targetIds;if(vN&3&&NN.length===1)Fy[NN[0].identifier]=!0,Fy=[NN,NN];else{var Or,z8=Array.prototype.slice.call(nr.targetTouches,0),bC=Array.prototype.slice.call(nr.changedTouches,0),Kj=[];if(vN===1)for(NN=0,Or=z8.length;NN<Or;NN++)Fy[z8[NN].identifier]=!0;NN=0;for(Or=bC.length;NN<Or;NN++)Fy[bC[NN].identifier]&&Kj.push(bC[NN]),vN&12&&
delete Fy[bC[NN].identifier];Fy=Kj.length?[W(z8.concat(Kj),"identifier",!0),Kj]:void 0}Fy&&this.callback(this.manager,vN,{pointers:Fy[0],changedPointers:Fy[1],pointerType:"touch",srcEvent:nr})}});
A(BH,N,{handler:function(nr,vN,NN){var Fy=NN.pointerType=="mouse";if(NN.pointerType=="touch")this.mouse.allow=!1;else if(Fy&&!this.mouse.allow)return;vN&12&&(this.mouse.allow=!0);this.callback(nr,vN,NN)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Mz=p(dJ.style,"touchAction"),zP=Mz!==M;J3.prototype={set:function(nr){nr=="compute"&&(nr=this.compute());zP&&(this.manager.element.style[Mz]=nr);this.actions=nr.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var nr=[];l(this.manager.recognizers,function(vN){t(vN.options.enable,[vN])&&(nr=nr.concat(vN.getTouchAction()))});
return lr(nr.join(" "))},
preventDefaults:function(nr){if(!zP){var vN=nr.srcEvent;nr=nr.offsetDirection;if(this.manager.session.prevented)vN.preventDefault();else{var NN=this.actions,Fy=NN.indexOf("none")>-1,Or=NN.indexOf("pan-y")>-1;NN=NN.indexOf("pan-x")>-1;if(Fy||Or&&NN||Or&&nr&6||NN&&nr&24)return this.preventSrc(vN)}}},
preventSrc:function(nr){this.manager.session.prevented=!0;nr.preventDefault()}};
xl.prototype={defaults:{},set:function(nr){m(this.options,nr);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(nr){if(O(nr,"recognizeWith",this))return this;var vN=this.simultaneous;nr=ir(nr,this);vN[nr.id]||(vN[nr.id]=nr,nr.recognizeWith(this));return this},
dropRecognizeWith:function(nr){if(O(nr,"dropRecognizeWith",this))return this;nr=ir(nr,this);delete this.simultaneous[nr.id];return this},
requireFailure:function(nr){if(O(nr,"requireFailure",this))return this;var vN=this.requireFail;nr=ir(nr,this);u(vN,nr)===-1&&(vN.push(nr),nr.requireFailure(this));return this},
dropRequireFailure:function(nr){if(O(nr,"dropRequireFailure",this))return this;nr=ir(nr,this);nr=u(this.requireFail,nr);nr>-1&&this.requireFail.splice(nr,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(nr){return!!this.simultaneous[nr.id]},
emit:function(nr){function vN(Or){NN.manager.emit(NN.options.event+(Or?Fy&16?"cancel":Fy&8?"end":Fy&4?"move":Fy&2?"start":"":""),nr)}
var NN=this,Fy=this.state;Fy<8&&vN(!0);vN();Fy>=8&&vN(!0)},
tryEmit:function(nr){if(this.canEmit())return this.emit(nr);this.state=32},
canEmit:function(){for(var nr=0;nr<this.requireFail.length;nr++)if(!(this.requireFail[nr].state&33))return!1;return!0},
recognize:function(nr){nr=m({},nr);t(this.options.enable,[this,nr])?(this.state&56&&(this.state=1),this.state=this.process(nr),this.state&30&&this.tryEmit(nr)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
A($_,xl,{defaults:{pointers:1},attrTest:function(nr){var vN=this.options.pointers;return vN===0||nr.pointers.length===vN},
process:function(nr){var vN=this.state,NN=nr.eventType,Fy=vN&6;nr=this.attrTest(nr);return Fy&&(NN&8||!nr)?vN|16:Fy||nr?NN&4?vN|8:vN&2?vN|4:2:32}});
A(AH,$_,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var nr=this.options.direction;if(nr===30)return["none"];var vN=[];nr&6&&vN.push("pan-y");nr&24&&vN.push("pan-x");return vN},
directionTest:function(nr){var vN=this.options,NN=!0,Fy=nr.distance,Or=nr.direction,z8=nr.deltaX,bC=nr.deltaY;Or&vN.direction||(vN.direction&6?(Or=z8===0?1:z8<0?2:4,NN=z8!=this.pX,Fy=Math.abs(nr.deltaX)):(Or=bC===0?1:bC<0?8:16,NN=bC!=this.pY,Fy=Math.abs(nr.deltaY)));nr.direction=Or;return NN&&Fy>vN.threshold&&Or&vN.direction},
attrTest:function(nr){return $_.prototype.attrTest.call(this,nr)&&(this.state&2||!(this.state&2)&&this.directionTest(nr))},
emit:function(nr){this.pX=nr.deltaX;this.pY=nr.deltaY;var vN=Tv(nr.direction);vN&&this.manager.emit(this.options.event+vN,nr);this._super.emit.call(this,nr)}});
A(U3,$_,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(nr){return this._super.attrTest.call(this,nr)&&(Math.abs(nr.scale-1)>this.options.threshold||this.state&2)},
emit:function(nr){this._super.emit.call(this,nr);nr.scale!==1&&this.manager.emit(this.options.event+(nr.scale<1?"in":"out"),nr)}});
A(MN,xl,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(nr){var vN=this.options,NN=nr.pointers.length===vN.pointers,Fy=nr.distance<vN.threshold,Or=nr.deltaTime>vN.time;this._input=nr;if(!Fy||!NN||nr.eventType&12&&!Or)this.reset();else if(nr.eventType&1)this.reset(),this._timer=g(function(){this.state=8;this.tryEmit()},vN.time,this);
else if(nr.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(nr){this.state===8&&(nr&&nr.eventType&4?this.manager.emit(this.options.event+"up",nr):(this._input.timeStamp=Lj(),this.manager.emit(this.options.event,this._input)))}});
A(qH,$_,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(nr){return this._super.attrTest.call(this,nr)&&(Math.abs(nr.rotation)>this.options.threshold||this.state&2)}});
A(br,$_,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return AH.prototype.getTouchAction.call(this)},
attrTest:function(nr){var vN=this.options.direction;if(vN&30)var NN=nr.velocity;else vN&6?NN=nr.velocityX:vN&24&&(NN=nr.velocityY);return this._super.attrTest.call(this,nr)&&vN&nr.direction&&E3(NN)>this.options.velocity&&nr.eventType&4},
emit:function(nr){var vN=Tv(nr.direction);vN&&this.manager.emit(this.options.event+vN,nr);this.manager.emit(this.options.event,nr)}});
A(YS,xl,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(nr){var vN=this.options,NN=nr.pointers.length===vN.pointers,Fy=nr.distance<vN.threshold,Or=nr.deltaTime<vN.time;this.reset();if(nr.eventType&1&&this.count===0)return this.failTimeout();if(Fy&&Or&&NN){if(nr.eventType!=4)return this.failTimeout();NN=this.pTime?nr.timeStamp-this.pTime<vN.interval:!0;Fy=!this.pCenter||tP(this.pCenter,nr.center)<vN.posThreshold;this.pTime=nr.timeStamp;this.pCenter=nr.center;Fy&&NN?this.count+=1:this.count=1;this._input=nr;if(this.count%vN.taps===0)return this.hasRequireFailures()?
(this._timer=g(function(){this.state=8;this.tryEmit()},vN.interval,this),2):8}return 32},
failTimeout:function(){this._timer=g(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))}});
Y_.VERSION="2.0.2";Y_.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[qH,{enable:!1}],[U3,{enable:!1},["rotate"]],[br,{direction:6}],[AH,{direction:6},["swipe"]],[YS],[YS,{event:"doubletap",taps:2},["tap"]],[MN]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};eu.prototype={set:function(nr){m(this.options,nr);return this},
stop:function(nr){this.session.stopped=nr?2:1},
recognize:function(nr){var vN=this.session;if(!vN.stopped){this.touchAction.preventDefaults(nr);var NN=this.recognizers,Fy=vN.curRecognizer;if(!Fy||Fy&&Fy.state&8)Fy=vN.curRecognizer=null;for(var Or=0,z8=NN.length;Or<z8;Or++){var bC=NN[Or];vN.stopped===2||Fy&&bC!=Fy&&!bC.canRecognizeWith(Fy)?bC.reset():bC.recognize(nr);!Fy&&bC.state&14&&(Fy=vN.curRecognizer=bC)}}},
get:function(nr){if(nr instanceof xl)return nr;for(var vN=this.recognizers,NN=0;NN<vN.length;NN++)if(vN[NN].options.event==nr)return vN[NN];return null},
add:function(nr){if(O(nr,"add",this))return this;var vN=this.get(nr.options.event);vN&&this.remove(vN);this.recognizers.push(nr);nr.manager=this;this.touchAction.update();return nr},
remove:function(nr){if(O(nr,"remove",this))return this;var vN=this.recognizers;nr=this.get(nr);vN.splice(u(vN,nr),1);this.touchAction.update();return this},
on:function(nr,vN){var NN=this.handlers;l(X(nr),function(Fy){NN[Fy]=NN[Fy]||[];NN[Fy].push(vN)});
return this},
off:function(nr,vN){var NN=this.handlers;l(X(nr),function(Fy){vN?NN[Fy].splice(u(NN[Fy],vN),1):delete NN[Fy]});
return this},
emit:function(nr,vN){this.options.domEvents&&Gv(nr,vN);var NN=this.handlers[nr]&&this.handlers[nr].slice();if(NN&&NN.length){vN.type=nr;vN.preventDefault=function(){vN.srcEvent.preventDefault()};
nr=0;for(var Fy=NN.length;nr<Fy;nr++)NN[nr](vN)}},
destroy:function(){this.element&&fT(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
m(Y_,{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:eu,Input:N,TouchAction:J3,Recognizer:xl,AttrRecognizer:$_,Tap:YS,Pan:AH,Swipe:br,Pinch:U3,Rotate:qH,Press:MN,on:E,off:J,each:l,merge:H,extend:m,inherit:A,bindFn:Y,prefixed:p});
d[Z]=Y_})(window,document,"Hammer");
return window.Hammer}.call({});
f.DOCUMENT=c;c[rc_]=f}return c[rc_]};/*

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

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 Jcv;_.zc_="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");Jcv=function(){var c=[],f;var d=d||_.zc_.length;for(f=0;f<8;f++)c[f]=_.zc_[0|Math.random()*d];return c.join("")};var rCh=function(){return Math.random().toString(36).substring(7).split("").join(".")},MWC="@@redux/INIT"+rCh(),koz="@@redux/REPLACE"+rCh();var OFk=typeof Symbol==="function"&&Symbol.observable||"@@observable";var aWo=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var VcO="top right bottom left width height size weight".split(" "),X9u=typeof MutationObserver!=="undefined",u8v=aWo&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,vv3=function(){this.mutationEventsAdded_=this.JSC$11645_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=lHk(this.refresh.bind(this))},hcv=function(c,
f){var d=c.observers_;
f=d.indexOf(f);~f&&d.splice(f,1);!d.length&&c.JSC$11645_connected_&&aWo&&c.JSC$11645_connected_&&(document.removeEventListener("transitionend",c.onTransitionEnd_),window.removeEventListener("resize",c.refresh),c.mutationsObserver_&&(c.mutationsObserver_.disconnect(),u8v&&(HTMLElement.prototype.attachShadow=u8v)),c.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",c.refresh),c.mutationsObserver_=null,c.mutationEventsAdded_=!1,c.JSC$11645_connected_=!1)};
vv3.prototype.refresh=function(){w9F(this)&&this.refresh()};
var w9F=function(c){c=c.observers_.filter(function(f){return yc_(f),f.activeObservations_.length>0});
c.forEach(function(f){return W_K(f)});
return c.length>0},DYo=function(c){if(aWo&&!c.JSC$11645_connected_){document.addEventListener("transitionend",c.onTransitionEnd_);
window.addEventListener("resize",c.refresh);if(X9u){c.mutationsObserver_=new MutationObserver(c.refresh);var f={attributes:!0,childList:!0,characterData:!0,subtree:!0};c.mutationsObserver_.observe(document,f);u8v&&(function Z(q){var M=q.shadowRoot;M&&(c.mutationsObserver_.observe(M,f),Z(M));for(q=q.firstElementChild;q;)Z(q),q=q.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var q=u8v.apply(this,_.hv.apply(0,arguments));
c.mutationsObserver_.observe(q,f);return q})}else document.addEventListener("DOMSubtreeModified",c.refresh),c.mutationEventsAdded_=!0;
c.JSC$11645_connected_=!0}};
vv3.prototype.onTransitionEnd_=function(c){var f=c.propertyName===void 0?"":c.propertyName;VcO.some(function(d){return!!~f.indexOf(d)})&&this.refresh()};
var ecF=null;var NyO=function(c,f){for(var d=_.C(Object.keys(f)),q=d.next();!q.done;q=d.next())q=q.value,Object.defineProperty(c,q,{value:f[q],enumerable:!1,writable:!1,configurable:!0})};var us=function(c){var f;return(c==null?void 0:(f=c.ownerDocument)==null?void 0:f.defaultView)||globalThis};var IWO={x:0,y:0,width:0,height:0},P73=typeof SVGGraphicsElement!=="undefined"?function(c){return c instanceof us(c).SVGGraphicsElement}:function(c){return c instanceof us(c).SVGElement&&typeof c.getBBox==="function"};var Rc3=function(c){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=c};
Rc3.prototype.isActive=function(){var c=this.target;if(aWo)if(P73(c)){var f=c.getBBox();f={x:0,y:0,width:f.width,height:f.height}}else{var d=c.clientWidth,q=c.clientHeight;if(d||q){var Z=us(c).getComputedStyle(c);f=Hi(Z["padding-top"]);var M=Hi(Z["padding-left"]),g=M+Hi(Z["padding-right"]),O=f+Hi(Z["padding-bottom"]),l=Hi(Z.width),m=Hi(Z.height);Z.boxSizing==="border-box"&&(Math.round(l+g)!==d&&(l-=spM(Z,"left","right")+g),Math.round(m+O)!==q&&(m-=spM(Z,"top","bottom")+O));c!==us(c).document.documentElement&&
(c=Math.round(l+g)-d,q=Math.round(m+O)-q,Math.abs(c)!==1&&(l-=c),Math.abs(q)!==1&&(m-=q));f={x:M,y:f,width:l,height:m}}else f=IWO}else f=IWO;this.contentRect_=f;return f.width!==this.broadcastWidth||f.height!==this.broadcastHeight};var UYy=function(c,f){var d=f.x;var q=f.y;var Z=f.width;f=f.height;var M=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);NyO(M,{x:d,y:q,width:Z,height:f,top:q,right:d+Z,bottom:f+q,left:d});NyO(this,{target:c,contentRect:M})};var p9r=function(c,f){var d=ecF;this.activeObservations_=[];this.observations_=new Map;if(typeof c!=="function")throw new TypeError("Pe");this.callback_=c;this.controller_=d;this.callbackCtx_=f};
p9r.prototype.observe=function(c){if(c===void 0)throw new TypeError("Qe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(c instanceof us(c).Element))throw new TypeError("Re");var f=this.observations_;f.has(c)||(f.set(c,new Rc3(c)),c=this.controller_,~c.observers_.indexOf(this)||c.observers_.push(this),c.JSC$11645_connected_||DYo(c),this.controller_.refresh())}};
p9r.prototype.unobserve=function(c){if(c===void 0)throw new TypeError("Qe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(c instanceof us(c).Element))throw new TypeError("Re");var f=this.observations_;f.has(c)&&(f.delete(c),f.size||hcv(this.controller_,this))}};
p9r.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();hcv(this.controller_,this)};
var yc_=function(c){c.activeObservations_.splice(0);c.observations_.forEach(function(f){f.isActive()&&c.activeObservations_.push(f)})},W_K=function(c){if(c.activeObservations_.length>0){var f=c.callbackCtx_,d=c.activeObservations_.map(function(q){var Z=q.target,M=q.contentRect_;
q.broadcastWidth=M.width;q.broadcastHeight=M.height;return new UYy(Z,M)});
c.callback_.call(f,d,f);c.activeObservations_.splice(0)}};var vK=function(c){if(!(this instanceof vK))throw new TypeError("Se");if(!arguments.length)throw new TypeError("Qe");ecF||(ecF=new vv3);this.observer_=new p9r(c,this)};
vK.prototype.observe=function(c){this.observer_.observe(c)};
vK.prototype.unobserve=function(c){this.observer_.unobserve(c)};
vK.prototype.disconnect=function(){this.observer_.disconnect()};var eLk=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:vK;var FJC="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(" "),YA4={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},ACM=null,B7Y=null;var tWC={},bFn=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 LJG={text:1},noz={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var xYv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ovj={CONSTANT:{isUnwrappable:function(c){return c instanceof yO},
unwrap:WTy},JAVASCRIPT:{isUnwrappable:function(c){return c instanceof _.UW},
unwrap:M8C},HTML:{isUnwrappable:function(c){return c instanceof WU},
unwrap:function(c){return eP(c)}},
RESOURCE_URL:{isUnwrappable:function(c){return c instanceof tv},
unwrap:_.Kq},STRING:{isUnwrappable:function(c){return c instanceof Object},
unwrap:function(c){return String(c)}},
STYLE:{isUnwrappable:function(c){return typeof c==="string"},
unwrap:function(c){return c}},
URL:{isUnwrappable:function(c){return SP(c)},
unwrap:_.Lq}},Gxj={CONSTANT:zqC,JAVASCRIPT:zqC,HTML:function(c){c=c instanceof WU?c:DJ(String(c).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return eP(c)},
RESOURCE_URL:zqC,STRING:String,STYLE:zqC,URL:function(c,f){c=xYv.test(c)?c:void 0;return c===void 0?f:c}};var DUP=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,JCk=/[\t\n\f\r ]+/,VWe=/[\t\n\f\r ,]+/g,u9M=function(c,f,d){return d},ti={},c9_=function(){var c=function(){var q={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",q):q}(),f=c.createHTML(""),d=c.createScript("");
c=c.createScriptURL("");return{INNOCUOUS_STRING:f,INNOCUOUS_SCRIPT:d,INNOCUOUS_URL:c}}(),F2=c9_.INNOCUOUS_STRING,WJh=c9_.INNOCUOUS_SCRIPT,yCk=c9_.INNOCUOUS_URL;var fL_=function(c){var f=eq4(c);return function(d,q,Z,M){return M?f(M,q,Z,d):F2}}({reportHandler:function(c,f){if(c)try{throw Error(f);
}catch(d){_.VO(d)}},
safeTypesBridge:function(c,f,d){var q=ovj[f];return q.isUnwrappable(c)&&(q=q.unwrap(c,d),q!==d)?q:(0,Gxj[f])(String(c),d)},
allowedIdentifierPrefixes:[""]});if(Fs!==void 0)throw Error("Te");Fs=fL_;if(Fs!==fL_)throw Error("Ue");bV("Injectable",[]);var T3k=bV("Inject",[["token",void 0]]),H0P=bV("Optional",[]);bV("Injectable",[]);var AMe=bV("Self",[]),YKn=bV("SkipSelf",[]);bV("Host",[]);var dCK={},j9K=function(){};
j9K.prototype.resolve=function(){throw Error("We");};
j9K.prototype.addProvider=function(){throw Error("We");};var B3e=Function;var qo_=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,ZOO=function(){this._reflect=window.Reflect};
_.r=ZOO.prototype;_.r.factory=function(c){return function(){return new (Function.prototype.bind.apply(c,[null].concat(_.LT(_.hv.apply(0,arguments)))))}};
_.r._zipTypesAndAnnotations=function(c,f){var d=typeof c==="undefined"?Array(f.length):Array(c.length);for(var q=0;q<d.length;q++)d[q]=typeof c==="undefined"?[]:c[q]!=Object?[c[q]]:[],f&&IHP(f[q])&&(d[q]=d[q].concat(f[q]));return d};
_.r._ownParameters=function(c,f){if(qo_.exec(c.toString()))return null;if(c.parameters&&c.parameters!==f.parameters)return c.parameters;var d=c.ctorParameters;return d&&d!==f.ctorParameters?(f=typeof d==="function"?d():d,c=f.map(function(q){return q&&q.type}),f=f.map(function(q){return q&&Rql(q.decorators)}),this._zipTypesAndAnnotations(c,f)):IHP(this._reflect)&&IHP(this._reflect.getOwnMetadata)&&(f=this._reflect.getOwnMetadata("parameters",c),(d=this._reflect.getOwnMetadata("design:paramtypes",c))||
f)?this._zipTypesAndAnnotations(d,f):Array(c.length).fill(void 0)};
_.r.parameters=function(c){if(!c.prototype)return[];var f=Object.getPrototypeOf(c.prototype).constructor;(c=this._ownParameters(c,f))||f===Object||(c=this.parameters(f));return c||[]};
_.r._ownAnnotations=function(c,f){if(c.annotations&&c.annotations!==f.annotations)return c=c.annotations,typeof c==="function"&&c.annotations&&(c=c.annotations),c;if(c.decorators&&c.decorators!==f.decorators)return Rql(c.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",c)};
_.r.annotations=function(c){var f=Object.getPrototypeOf(c.prototype).constructor;c=this._ownAnnotations(c,f)||[];return(f!==Object?this.annotations(f):[]).concat(c)};
_.r._ownPropMetadata=function(c,f){if(c.propMetadata&&c.propMetadata!==f.propMetadata)return c=c.propMetadata,typeof c==="function"&&c.propMetadata&&(c=c.propMetadata),c;if(c.propDecorators&&c.propDecorators!==f.propDecorators){var d=c.propDecorators,q={};Object.keys(d).forEach(function(Z){q[Z]=Rql(d[Z])});
return q}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",c)};
_.r.propMetadata=function(c){var f=Object.getPrototypeOf(c.prototype).constructor,d={};if(f!==Object){var q=this.propMetadata(f);Object.keys(q).forEach(function(M){d[M]=q[M]})}var Z=this._ownPropMetadata(c,f);
Z&&Object.keys(Z).forEach(function(M){var g=[];d.hasOwnProperty(M)&&g.push.apply(g,_.LT(d[M]));g.push.apply(g,_.LT(Z[M]));d[M]=g});
return d};
_.r.getter=function(c){return function(f){return f[c]}};
_.r.setter=function(c){return function(f,d){return f[c]=d}};
_.r.method=function(c){return function(f,d){if(!f[c])throw Error("Xe`"+c);return f[c].apply(f,d)}};var M4T=function(){};var r9T=function(c){this.reflectionCapabilities=c};
_.K(r9T,M4T);_.r=r9T.prototype;_.r.factory=function(c){return this.reflectionCapabilities.factory(c)};
_.r.parameters=function(c){return this.reflectionCapabilities.parameters(c)};
_.r.annotations=function(c){return this.reflectionCapabilities.annotations(c)};
_.r.propMetadata=function(c){return this.reflectionCapabilities.propMetadata(c)};
_.r.getter=function(c){return this.reflectionCapabilities.getter(c)};
_.r.setter=function(c){return this.reflectionCapabilities.setter(c)};
_.r.method=function(c){return this.reflectionCapabilities.method(c)};var j5N=new r9T(new ZOO);var hs=function(c,f){this.token=c;this.id=f;if(c===void 0||c===null)throw Error("bf");};
_.ci.Object.defineProperties(hs.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return Ke(this.token)}}});
_.ci.Object.defineProperties(hs,{JSC$11687_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return ne.JSC$11691_numberOfKeys}}});
var ChO=function(){this._allKeys=new Map};
ChO.prototype.get=function(c){if(c instanceof hs)return c;if(this._allKeys.has(c))return this._allKeys.get(c);var f=new hs(c,hs.JSC$11687_numberOfKeys);this._allKeys.set(c,f);return f};
_.ci.Object.defineProperties(ChO.prototype,{JSC$11691_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var ne=new ChO;var F6k=function(c,f,d){this.key=c;this.optional=f;this.visibility=d},Z0C=function(c){return new F6k(c,!1,null)},rM4=[],kee=function(c,f,d){this.key=c;
this.resolvedFactories=f;this.multiProvider=d},CJP=function(c,f,d,q){this.factory=c;
this.dependencies=f;this.providerClass=d;this.providerValue=q};var wq={},yE=function(c,f){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=f===void 0?null:f;c=_.C(c);for(f=c.next();!f.done;f=c.next())this.addProvider(f.value)};
_.r=yE.prototype;_.r.addProvider=function(c){this.keyIdToIndex.set(c.key.id,this.keyIds.length);this.providers.push(c);this.keyIds.push(c.key.id);this.objs.push(wq)};
_.r.resolve=function(c,f){f=f===void 0?dCK:f;return this._getByKey(ne.get(Ec(c)),null,f)};
_.r._new=function(c){if(this.constructedKeyIds[c.key.id])throw cM4(this,c.key);this.constructedKeyIds[c.key.id]=!0;return this._instantiateProvider(c)};
_.r._instantiateProvider=function(c){if(c.multiProvider){for(var f=Array(c.resolvedFactories.length),d=0;d<c.resolvedFactories.length;++d)f[d]=this._instantiate(c,c.resolvedFactories[d]);return f}return this._instantiate(c,c.resolvedFactories[0])};
_.r._instantiate=function(c,f){var d=this,q=f.factory;try{var Z=f.dependencies.map(function(g){return d._getByReflectiveDependency(g)})}catch(g){throw g.addKey&&g.addKey(this,c.key),g;
}try{var M=q.apply(null,_.LT(Z))}catch(g){throw fkC(this,g,c.key);}return M};
_.r._getByReflectiveDependency=function(c){return this._getByKey(c.key,c.visibility,c.optional?null:dCK)};
_.r._getByKey=function(c,f,d){return c===gsT?this:f instanceof AMe?this._getByKeySelf(c,d):this._getByKeyDefault(c,d,f)};
_.r._getObjByKeyId=function(c){for(var f=0;f<this.keyIds.length;f++)if(this.keyIds[f]===c)return this.objs[f]===wq&&(this.objs[f]=this._new(this.providers[f])),this.objs[f];return wq};
_.r._throwOrNull=function(c,f){if(f!==dCK)return f;throw GoG(this,c);};
_.r._getByKeySelf=function(c,f){var d=this._getObjByKeyId(c.id);return d!==wq?d:this._throwOrNull(c,f)};
_.r._getByKeyDefault=function(c,f,d){for(var q=d=d instanceof YKn?this.parent:this;d instanceof yE;){var Z=d._getObjByKeyId(c.id);if(Z!==wq)return Z;d=d.parent}Z=void 0;if(d!==null)try{var M=d.resolve(c.token,f);if(M!==wq)return M}catch(g){Z=g}if(!(q instanceof yE&&b0e(c.token))){if(Z)throw Z;return this._throwOrNull(c,f)}for(M=q;M.parent instanceof yE;)M=M.parent;M.addProvider(O0P({provide:c.token,useClass:c.token}));return M.resolve(c.token,f)};
_.r.toString=function(){return this.displayName};
_.ci.Object.defineProperties(yE.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+tnz(this,function(c){return' "'+c.key.displayName+'" '}).join(", ")+"])"}}});
var gsT=ne.get(Ec(j9K));(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 k63=window.XRegExp;var OOj=-1,lLy=function(c){addEventListener("pageshow",function(f){f.persisted&&(OOj=f.timeStamp,c(f))},!0)};var BBj=function(c,f,d){var q=s9K,Z,M;return function(g){if(f.value>=0&&(g||d)){var O;if((M=f.value-((O=Z)!=null?O:0))||Z===void 0)Z=f.value,f.delta=M,g=f.value,f.rating=g>q[1]?"poor":g>q[0]?"needs-improvement":"good",c(f)}}};var iOO=function(c){requestAnimationFrame(function(){return requestAnimationFrame(function(){return c()})})};var TBr=function(){var c=performance.getEntriesByType("navigation")[0];if(c&&c.responseStart>0&&c.responseStart<performance.now())return c};var mCH=function(){var c,f;return(f=(c=TBr())==null?void 0:c.activationStart)!=null?f:0};var HOo=function(){var c=c===void 0?-1:c;var f=TBr(),d="navigate";OOj>=0?d="back-forward-cache":f&&(document.prerendering||mCH()>0?d="prerender":document.wasDiscarded?d="restore":f.type&&(d=f.type.replace(/_/g,"-")));return{name:"LCP",value:c,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:d}};var EGk=new WeakMap;var A9T=function(c){var f=f===void 0?{}:f;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var d=new PerformanceObserver(function(q){Promise.resolve().then(function(){c(q.getEntries())})});
d.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},f));return d}}catch(q){}};var YoK=function(c){var f=!1;return function(){f||(c(),f=!0)}};var WK=-1,For=function(c){document.visibilityState==="hidden"&&WK>-1&&(WK=c.type==="visibilitychange"?c.timeStamp:0,removeEventListener("visibilitychange",For,!0),removeEventListener("prerenderingchange",For,!0))},t4_=function(){addEventListener("visibilitychange",For,!0);
addEventListener("prerenderingchange",For,!0)},bOK=function(){if(WK<0){var c=mCH(),f,d;
WK=(d=document.prerendering?void 0:(f=globalThis.performance.getEntriesByType("visibility-state").filter(function(q){return q.name==="hidden"&&q.startTime>c})[0])==null?void 0:f.startTime)!=null?d:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
t4_();lLy(function(){setTimeout(function(){WK=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;t4_()})})}return{get firstHiddenTime(){return WK}}};var Kou=function(c){document.prerendering?addEventListener("prerenderingchange",function(){return c()},!0):c()};var EsH=function(c){var f=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?c():(c=YoK(c),document.addEventListener("visibilitychange",c,{once:!0}),f(function(){c();document.removeEventListener("visibilitychange",c)}))};var K6k=function(){};
K6k.prototype._processEntry=function(c){var f;(f=this._onBeforeProcessingEntry)==null||f.call(this,c)};var s9K=[2500,4E3],GEl=function(c){var f=f===void 0?{}:f;Kou(function(){var d=bOK(),q=HOo(),Z=nGh(f),M=function(A){f.reportAllChanges||(A=A.slice(-1));A=_.C(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,Z._processEntry(Y),Y.startTime<d.firstHiddenTime&&(q.value=Math.max(Y.startTime-mCH(),0),q.entries=[Y],O())},g=A9T(M);
if(g){var O=BBj(c,q,f.reportAllChanges);for(var l=YoK(function(){M(g.takeRecords());g.disconnect();O(!0)}),m=_.C(["keydown",
"click","visibilitychange"]),H=m.next();!H.done;H=m.next())addEventListener(H.value,function(){return EsH(l)},{capture:!0,
once:!0});lLy(function(A){q=HOo();O=BBj(c,q,f.reportAllChanges);iOO(function(){q.value=performance.now()-A.timeStamp;O(!0)})})}})};var nsv;var $C3;_.e=function(){return $C3!==void 0?$C3:$C3=document.createElement("template")};
document.head.appendChild(_.e().content);var Q9v;_.JY({_template:function(){if(Q9v!==void 0)return Q9v;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
var f=c.content,d=f.insertBefore;nsv===void 0&&(nsv=document.createElement("template"));var q=nsv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return Q9v=c},
is:"tp-yt-app-toolbar"});var SoT;var LoT;_.DG=function(){};
_.DG=_.JY({_template:function(){if(LoT!==void 0)return LoT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;SoT===void 0&&(SoT=document.createElement("template"));var q=SoT;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return LoT=c},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.DG.instance||(_.DG.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(c){this._text===c&&(c+="\u00a0");this._text="";this.async(function(){this._text=c},this.timeout)},
_onIronAnnounce:function(c){c.detail&&c.detail.text&&this.announce(c.detail.text)}});
_.DG.instance=null;_.DG.requestAvailability=function(){_.DG.instance||(_.DG.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.DG.instance):document.addEventListener("load",function(){document.body.appendChild(_.DG.instance)})};var za3;var J9v;/*

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

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 eg,wZK,y9j;eg=Element.prototype;wZK=eg.matches||eg.matchesSelector||eg.mozMatchesSelector||eg.msMatchesSelector||eg.oMatchesSelector||eg.webkitMatchesSelector;y9j=function(){};
_.DCy=function(c){var f=Woy,d=[];return f._collectTabbableNodes(c,d)?f._sortByTabIndex(d):d};
_.r=y9j.prototype;_.r._normalizedTabIndex=function(c){return(wZK.call(c,"input, select, textarea, button, object")?wZK.call(c,":not([disabled])"):wZK.call(c,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(c=c.getAttribute("tabindex")||0,Number(c)):-1};
_.r._collectTabbableNodes=function(c,f){if(c.nodeType!==Node.ELEMENT_NODE||!this._isVisible(c))return!1;var d=this._normalizedTabIndex(c),q=d>0;d>=0&&f.push(c);if(c.localName==="content"||c.localName==="slot")d=_.$n(c).getDistributedNodes();else{var Z;d=((Z=_.$n(c).shadowRoot)!=null?Z:_.$n(c.root||c)).children}for(c=0;c<d.length;c++)q=this._collectTabbableNodes(d[c],f)||q;return q};
_.r._isVisible=function(c){var f=c.style;return f.visibility!=="hidden"&&f.display!=="none"?(f=window.getComputedStyle(c),f.visibility!=="hidden"&&f.display!=="none"):!1};
_.r._sortByTabIndex=function(c){var f=c.length;if(f<2)return c;var d=Math.ceil(f/2);f=this._sortByTabIndex(c.slice(0,d));c=this._sortByTabIndex(c.slice(d));return this._mergeSortByTabIndex(f,c)};
_.r._mergeSortByTabIndex=function(c,f){for(var d=[];c.length>0&&f.length>0;)this._hasLowerTabOrder(c[0],f[0])?d.push(f.shift()):d.push(c.shift());return d.concat(c,f)};
_.r._hasLowerTabOrder=function(c,f){c=Math.max(c.tabIndex,0);f=Math.max(f.tabIndex,0);return c===0||f===0?f>c:c>f};
var Woy=new y9j;var eau;var NBy;_.JY({_template:function(){if(NBy!==void 0)return NBy;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;eau===void 0&&(eau=document.createElement("template"));var q=eau;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return NBy=c},
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&&_.$n(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.$n(this.parentNode).removeChild(this)},
_onTransitionend:function(c){c&&c.target===this&&this.complete()},
_openedChanged:function(c){c?this.prepare():(c=window.getComputedStyle(this),c.transitionDuration!=="0s"&&c.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 NA=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Vg(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)};
NA.prototype._bringOverlayAtIndexToFront=function(c){var f=this._overlays[c];if(f){var d=this._overlays.length-1,q=this._overlays[d];q&&this._shouldBeBehindOverlay(f,q)&&d--;if(!(c>=d)){q=Math.max(this._getZ(_.ILH(this)),this._minimumZ);for(this._getZ(f)<=q&&this._applyOverlayZ(f,q);c<d;)this._overlays[c]=this._overlays[c+1],c++;this._overlays[d]=f}}};
NA.prototype.addOverlay=function(c){var f=this._overlays.indexOf(c);if(f>=0)this._bringOverlayAtIndexToFront(f);else{f=this._overlays.length;var d=this._overlays[f-1],q=Math.max(this._getZ(d),this._minimumZ),Z=this._getZ(c);d&&this._shouldBeBehindOverlay(c,d)&&(this._applyOverlayZ(d,q),f--,q=Math.max(this._getZ(this._overlays[f-1]),this._minimumZ));Z<=q&&this._applyOverlayZ(c,q);this._overlays.splice(f,0,c)}this.trackBackdrop()};
NA.prototype.removeOverlay=function(c){c=this._overlays.indexOf(c);c!==-1&&(this._overlays.splice(c,1),this.trackBackdrop())};
_.ILH=function(c){return c._overlays[c._overlays.length-1]};
_.r=NA.prototype;_.r.trackBackdrop=function(){var c=this._overlayWithBackdrop();if(c||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(c)-1,this.backdropElement.opened=!!c,this.backdropElement.prepare()};
_.r._overlayWithBackdrop=function(){for(var c=this._overlays.length-1;c>=0;c--)if(this._overlays[c].withBackdrop)return this._overlays[c]};
_.r._getZ=function(c){var f=this._minimumZ;if(c){var d,q,Z=Number(((d=c.hostElement)!=null?d:c).style.zIndex||window.getComputedStyle((q=c.hostElement)!=null?q:c).zIndex);Z===Z&&(f=Z)}return f};
_.r._setZ=function(c,f){var d;((d=c.hostElement)!=null?d:c).style.zIndex=f};
_.r._applyOverlayZ=function(c,f){this._setZ(c,f+2)};
_.r._overlayInPath=function(c){c=c||[];for(var f=0;f<c.length;f++){var d=void 0;if(((d=c[f].polymerController)!=null?d:c[f])._manager===this)return c[f]}};
_.r._onCaptureClick=function(c){var f=this._overlays.length-1;if(f!==-1)for(var d=_.$n(c).path,q,Z;(q=this._overlays[f])&&this._overlayInPath(d)!==((Z=q.hostElement)!=null?Z:q);)if(q._onCaptureClick(c),q.allowClickThrough)f--;else break};
_.r._onCaptureFocus=function(c){var f=_.ILH(this);f&&f._onCaptureFocus(c)};
_.r._onCaptureKeyDown=function(c){var f=_.ILH(this);f&&(_.Kn.keyboardEventMatchesKeys(c,"esc")?f._onCaptureEsc(c):_.Kn.keyboardEventMatchesKeys(c,"tab")&&f._onCaptureTab(c))};
_.r._shouldBeBehindOverlay=function(c,f){return!c.alwaysOnTop&&f.alwaysOnTop&&!f.contains(c)};
_.ci.Object.defineProperties(NA.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 c=document.activeElement;c&&c instanceof Element!==!1||(c=document.body);for(;c.root&&_.$n(c.root).activeElement;)c=_.$n(c.root).activeElement;return c}}});
_.IJ=new NA;var $Kl=0,Q5z=0,SKk=null,L6G=[],Q5=["wheel","mousewheel","DOMMouseScroll"],zIN;_.F("web_no_lock_on_touchstart_killswitch")&&(Q5.push("touchstart"),Q5.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;_.PK={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:_.IJ},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var c;return this._focusedChild||_.$n((c=this.hostElement)!=null?c:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var c;return _.DCy((c=this.hostElement)!=null?c: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 c;this._observer=_.$n((c=this.hostElement)!=null?c:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var c;_.$n((c=this.hostElement)!=null?c:this).unobserveNodes(this._observer)}this._observer=null;for(var f in this.__rafs)this.__rafs[f]!==null&&cancelAnimationFrame(this.__rafs[f]);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(c){this.fire("iron-overlay-canceled",c,{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 c;((c=this.hostElement)!=null?c:this).style.outline="none";var f;((f=this.hostElement)!=null?f:this).style.display="none"}},
_openedChanged:function(c){if(c){var f;((f=this.hostElement)!=null?f:this).removeAttribute("aria-hidden")}else{var d;((d=this.hostElement)!=null?d: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 c;if(this.withBackdrop&&!((c=this.hostElement)!=null?c:this).hasAttribute("tabindex")){var f;((f=this.hostElement)!=null?f:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var d;((d=this.hostElement)!=null?d: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 c;((c=this.hostElement)!=null?c:this).style.display="none";var f;((f=this.hostElement)!=null?f:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var c,f;((c=this.hostElement)!=null?c:this).style.transition=((f=this.hostElement)!=null?f:this).style.webkitTransition="none";var d,q;((d=this.hostElement)!=null?d:this).style.transform=((q=this.hostElement)!=null?q:this).style.webkitTransform="none";var Z;((Z=this.hostElement)!=null?Z:this).style.display=""},
_finishPositioning:function(){var c;((c=this.hostElement)!=null?c:this).style.display="none";this.scrollTop=this.scrollTop;var f,d;((f=this.hostElement)!=null?f:this).style.transition=((d=this.hostElement)!=null?d:this).style.webkitTransition="";var q,Z;((q=this.hostElement)!=null?q:this).style.transform=((Z=this.hostElement)!=null?Z:this).style.webkitTransform="";var M;((M=this.hostElement)!=null?M:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var c=this._manager.deepActiveElement,f;if(!(f=c===document.body))a:{for(;c;c=c.assignedSlot||c.parentNode||c.host)if(c===this){f=!0;break a}f=!1}f&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(c){this.noCancelOnOutsideClick||this.cancel(c)},
_onCaptureFocus:function(c){if(this.withBackdrop){var f=_.$n(c).path;f.indexOf(this)===-1?(c.stopPropagation(),this._applyFocus()):this._focusedChild=f[0]}},
_onCaptureEsc:function(c){this.noCancelOnEscKey||this.cancel(c)},
_onCaptureTab:function(c){if(this.withBackdrop){this.__ensureFirstLastFocusables();var f=c.shiftKey,d=f?this.__firstFocusableNode:this.__lastFocusableNode;f=f?this.__lastFocusableNode:this.__firstFocusableNode;if(d===f)d=!0;else{var q=this._manager.deepActiveElement;d=q===d||q===this}d&&(c.preventDefault(),this._focusedChild=f,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 c=this._focusableNodes;this.__firstFocusableNode=c[0];this.__lastFocusableNode=c[c.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(c,f){var d=this.__rafs;d[c]!==null&&cancelAnimationFrame(d[c]);d[c]=requestAnimationFrame(function(){d[c]=null;f.call(this)}.bind(this))},
__updateScrollObservers:function(c,f,d){c&&f&&this.__isValidScrollAction(d)?(d==="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),zIN=_._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()):(c=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),c!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(c,1),zIN=_._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(yg)for(var c=this;c;)c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&c.host&&this.__rootNodes.push(c),c=c.host||c.assignedSlot||c.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(f){f.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(c){c.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(c){return c==="lock"||c==="refit"||c==="cancel"},
__onCaptureScroll:function(c){if(!(this.__isAnimating||_.$n(c).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(c)}},
__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)}};
_.RJ=[ha3,_.aJ,_.PK];_.JY({_template:function(){if(udH!==void 0)return udH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;XZr===void 0&&(XZr=document.createElement("template"));var q=XZr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return udH=c},
is:"tp-yt-iron-dropdown",behaviors:[_.EU,_.Kn,_.RJ,nv_],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 c=_.$n(this.$.content).getDistributedNodes(),f=0,d=c.length;f<d;f++)if(c[f].nodeType===Node.ELEMENT_NODE)return c[f]},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(),_.PK._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.PK._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.PK._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var c=this.containedElement,f=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),d=0;d<f.length;d++)f[d].node=c;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(c){this._readied&&(c?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var c=this.focusTarget||this.containedElement;c&&this.opened&&!this.noAutoFocus?c.focus():_.PK._applyFocus.apply(this,arguments)}});var PhF;var RaT;/*

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 UCj=new _.Sg({type:"iconset"});
_.JY({_template:function(){if(RaT!==void 0)return RaT;var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;PhF===void 0&&(PhF=document.createElement("template"));
var q=PhF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return RaT=c},
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(c){c=(c||"").split(":");this._iconName=c.pop();this._iconsetName=c.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&&_.$n(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=UCj.byKey(this._iconsetName)){var c=this._iconset.applyIcon(this,this._iconName,this.theme);c&&c.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,_.$n(this.root).appendChild(this._img)}});var pZ3;var xCr;_.JY({_template:function(){if(xCr!==void 0)return xCr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
var f=c.content,d=f.insertBefore;pZ3===void 0&&(pZ3=document.createElement("template"));var q=pZ3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return xCr=c},
is:"tp-yt-iron-input",behaviors:[_.z0],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(){_.DG.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.$n(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.$n(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 c=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":c=/[0-9.,e-]/}return c},_bindValueChanged:function(c,f){f&&(c===void 0?f.value=null:c!==f.value&&(this.inputElement.value=c),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:c}))},
_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(c){var f=c.keyCode==19||c.keyCode==20||c.keyCode==45||c.keyCode==46||c.keyCode==144||c.keyCode==145||c.keyCode>32&&c.keyCode<41||c.keyCode>111&&c.keyCode<124;return!(c.keyCode==8||c.keyCode==9||c.keyCode==13||c.keyCode==27)&&!(c.charCode==0&&f)},
_onKeypress:function(c){if(this.allowedPattern||this.inputElement.type==="number"){var f=this._patternRegExp;if(f&&!(c.metaKey||c.ctrlKey||c.altKey)){this._patternAlreadyChecked=!0;var d=String.fromCharCode(c.charCode);this._isPrintable(c)&&!f.test(d)&&(c.preventDefault(),this._announceInvalidCharacter("Invalid character "+d+" not entered."))}}},
_checkPatternValidity:function(){var c=this._patternRegExp;if(!c)return!0;for(var f=0;f<this.inputElement.value.length;f++)if(!c.test(this.inputElement.value[f]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var c=this.inputElement.checkValidity();c&&(this.required&&this.bindValue===""?c=!1:this.hasValidator()&&(c=_.z0.validate.call(this,this.bindValue)));this.invalid=!c;this.fire("iron-input-validate");return c},
_announceInvalidCharacter:function(c){this.fire("iron-announce",{text:c})},
_computeValue:function(c){return c}});var os3;var G6_;var cK_=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),fhH=cK_&&cK_[1]>=8;
_.JY({_template:function(){if(G6_!==void 0)return G6_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;os3===void 0&&(os3=document.createElement("template"));var q=os3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return G6_=c},
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:[jAh,_.aJ,_.EvK,lmu],_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 _.$n(_.$n(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var c=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,c-this._physicalCount)},set _virtualStart(c){c=this._clamp(c,0,this._maxVirtualStart);this.grid&&(c-=c%this._itemsPerRow);this._virtualStartVal=c},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(c){c%=this._physicalCount;c<0&&(c=this._physicalCount+c);this.grid&&(c-=c%this._itemsPerRow);this._physicalStartVal=c},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(c){this._physicalCountVal=c},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 c=this._firstVisibleIndexVal;if(c==null){var f=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
c=this._iterateItems(function(d,q){f+=this._getPhysicalSizeIncrement(d);if(f>this._scrollPosition)return this.grid?q-q%this._itemsPerRow:q;if(this.grid&&this._virtualCount-1===q)return q-q%this._itemsPerRow})||0}return c},
get lastVisibleIndex(){var c=this._lastVisibleIndexVal;if(c==null){if(this.grid)c=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var f=this._physicalTop+this._scrollOffset;this._iterateItems(function(d,q){f<this._scrollBottom&&(c=q);f+=this._getPhysicalSizeIncrement(d)})}this._lastVisibleIndexVal=c}return c},
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,_.zu);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(c){this.style.webkitOverflowScrolling=c===this?"touch":"";this.style.overflowY=c===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.zu)},
updateViewportBoundaries:function(){var c=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(c["padding-top"],10);this._isRTL=c.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var c=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),f=c-this._scrollPosition,d=f>=0;this._scrollPosition=c;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(f)>this._physicalSize&&this._physicalSize>0?(f-=this._scrollOffset,d=Math.round(f/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=d,this._physicalStart+=d,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(c=this._getReusables(d),d?(this._physicalTop=c.physicalTop,this._virtualStart+=c.indexes.length,this._physicalStart+=c.indexes.length):(this._virtualStart=this._virtualStart-c.indexes.length,this._physicalStart=this._physicalStart-c.indexes.length),this._update(c.indexes,d?null:c.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),vW))},
_getReusables:function(c){var f=[],d=this._hiddenContentSize*this._ratio,q=this._virtualStart,Z=this._virtualEnd,M=this._physicalCount,g=this._physicalTop+this._scrollOffset;var O=this._physicalBottom+this._scrollOffset;var l=this._scrollPosition,m=this._scrollBottom;if(c){var H=this._physicalStart;O=l-g}else H=this._physicalEnd,O-=m;for(;;){var A=this._getPhysicalSizeIncrement(H);O-=A;if(f.length>=M||O<=d)break;if(c){if(Z+f.length+1>=this._virtualCount)break;if(g+A>=l-this._scrollOffset)break;f.push(H);
g+=A;H=(H+1)%M}else{if(q-f.length<=0)break;if(g+this._physicalSize-A<=m)break;f.push(H);g-=A;H=H===0?M-1:H-1}}return{indexes:f,physicalTop:g-this._scrollOffset}},
_update:function(c,f){if(!(c&&c.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(c);this._updateMetrics(c);if(f)for(;f.length;)c=f.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(c);this._positionItems();this._updateScrollerSize()}},
_createPool:function(c){this._ensureTemplatized();var f,d=Array(c);for(f=0;f<c;f++){var q=this.stamp(null);d[f]=q.root.querySelector("*");this._itemsParent.appendChild(q.root)}return d},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(c){c=this._clamp(this._physicalCount+c,3,this._virtualCount-this._virtualStart);c=this._convertIndexToCompleteRow(c);if(this.grid){var f=c%this._itemsPerRow;f&&c-f<=this._physicalCount&&(c+=this._itemsPerRow);c-=f}c-=this._physicalCount;f=Math.round(this._physicalCount*.5);if(!(c<0)){if(c>0){f=window.performance.now();[].push.apply(this._physicalItems,this._createPool(c));for(var d=0;d<c;d++)this._physicalSizes.push(0);this._physicalCount+=c;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=c);this._update();this._templateCost=(window.performance.now()-f)/c;f=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||f===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,f)),R5F):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,f),vW))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var c=this._getReusables(!0);this._physicalTop=c.physicalTop;this._virtualStart+=c.indexes.length;this._physicalStart+=c.indexes.length;this._update(c.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 c={__key__:!0};c[this.as]=!0;c[this.indexAs]=!0;c[this.selectedAs]=!0;c.tabIndex=!0;this._instanceProps=c;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(c,f){typeof f!=="undefined"&&(this.notifyResize(),_.Ty(),c&&this._updateGridMetrics())},
_itemsChanged:function(c){if(c.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,
_.zu);else if(c.path==="items.splices"){this._adjustVirtualIndex(c.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(c.value.indexSplices.some(function(d){return d.addedCount>0||d.removed.length>0})){var f=this._getActiveElement();
this.contains(f)&&f.blur()}c=c.value.indexSplices.some(function(d){return d.index+d.addedCount>=this._virtualStart&&d.index<=this._virtualEnd},this);
this._isClientFull()&&!c||this._debounce("_render",this._render,_.zu)}else c.path!=="items.length"&&this._forwardItemPath(c.path,c.value)},
_forwardItemPath:function(c,f){c=c.slice(6);var d=c.indexOf(".");d===-1&&(d=c.length);var q,Z=this.modelForElement(this._offscreenFocusedItem),M=parseInt(c.substring(0,d),10);if(q=this._isIndexRendered(M)){var g=this._getPhysicalIndex(M);var O=this.modelForElement(this._physicalItems[g])}else Z&&(O=Z);O&&O[this.indexAs]===M&&(c=c.substring(d+1),c=this.as+(c?"."+c:""),O._setPendingPropertyOrPath(c,f,!1,!0),O._flushProperties&&O._flushProperties(),q&&(this._updateMetrics([g]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(c){c.forEach(function(f){f.removed.forEach(this._removeItem,this);f.index<this._virtualStart&&(f=Math.max(f.addedCount-f.removed.length,f.index-this._virtualStart),this._virtualStart+=f,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=f))},this)},
_removeItem:function(c){this.$.selector.deselect(c);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===c&&this._removeFocusedItem()},
_iterateItems:function(c,f){var d,q;if(arguments.length===2&&f)for(q=0;q<f.length;q++){var Z=f[q];var M=this._computeVidx(Z);if((d=c.call(this,Z,M))!=null)return d}else{Z=this._physicalStart;for(M=this._virtualStart;Z<this._physicalCount;Z++,M++)if((d=c.call(this,Z,M))!=null)return d;for(Z=0;Z<this._physicalStart;Z++,M++)if((d=c.call(this,Z,M))!=null)return d}},
_computeVidx:function(c){return c>=this._physicalStart?this._virtualStart+(c-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+c},
_assignModels:function(c){this._iterateItems(function(f,d){var q=this._physicalItems[f],Z=this.items&&this.items[d];if(Z!=null){var M=this.modelForElement(q);M.__key__=null;this._forwardProperty(M,this.as,Z);this._forwardProperty(M,this.selectedAs,this.$.selector.isSelected(Z));this._forwardProperty(M,this.indexAs,d);this._forwardProperty(M,"tabIndex",this._focusedVirtualIndex===d?0:-1);this._physicalIndexForKey[M.__key__]=f;M._flushProperties&&M._flushProperties(!0);q.removeAttribute("hidden")}else q.setAttribute("hidden",
"")},c)},
_updateMetrics:function(c){_.Ty();var f=0,d=0,q=this._physicalAverageCount,Z=this._physicalAverage;this._iterateItems(function(M){d+=this._physicalSizes[M];this._physicalSizes[M]=this._physicalItems[M].offsetHeight;f+=this._physicalSizes[M];this._physicalAverageCount+=this._physicalSizes[M]?1:0},c);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(d=this._itemsPerRow===1?d:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+f-d,this._itemsPerRow=1);this._physicalAverageCount!==q&&(this._physicalAverage=Math.round((Z*q+f)/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 c=this._physicalTop;if(this.grid){var f=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(d,q){var Z=Math.floor(q%this._itemsPerRow*this._itemWidth+f);this._isRTL&&(Z*=-1);this.translate3d(Z+"px",c+"px",0,this._physicalItems[d]);this._shouldRenderNextRow(q)&&(c+=this._rowHeight)})}else this._iterateItems(function(d){this.translate3d(0,c+"px",0,this._physicalItems[d]);
c+=this._physicalSizes[d]})},
_getPhysicalSizeIncrement:function(c){return this.grid?this._computeVidx(c)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[c]},
_shouldRenderNextRow:function(c){return c%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var c=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(c!==0){this._physicalTop=this._physicalTop-c;var f=this._scrollPosition;!fhH&&f>0&&this._resetScrollPosition(f-c)}},
_resetScrollPosition:function(c){this.scrollTarget&&c>=0&&(this._scrollPosition=this._scrollTop=c)},
_updateScrollerSize:function(c){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((c=(c=(c=c||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(c){return this.scrollToIndex(this.items.indexOf(c))},
scrollToIndex:function(c){if(!(typeof c!=="number"||c<0||c>this.items.length-1)&&(_.Ty(),this._physicalCount!==0)){c=this._clamp(c,0,this._virtualCount-1);if(!this._isIndexRendered(c)||c>=this._maxVirtualStart)this._virtualStart=this.grid?c-this._itemsPerRow*2:c-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var f=this._physicalStart,d=this._virtualStart,q=0,Z=this._hiddenContentSize;d<c&&
q<=Z;)q+=this._getPhysicalSizeIncrement(f),f=(f+1)%this._physicalCount,d++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+q);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)},_.zu)},
selectItem:function(c){return this.selectIndex(this.items.indexOf(c))},
selectIndex:function(c){if(!(c<0||c>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(c)){var f=this.modelForElement(this._physicalItems[this._getPhysicalIndex(c)]);f&&(f[this.selectedAs]=!0);this.updateSizeForIndex(c)}this.$.selector.selectIndex(c)}},
deselectItem:function(c){return this.deselectIndex(this.items.indexOf(c))},
deselectIndex:function(c){c<0||c>=this._virtualCount||(this._isIndexRendered(c)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(c)])[this.selectedAs]=!1,this.updateSizeForIndex(c)),this.$.selector.deselectIndex(c))},
toggleSelectionForItem:function(c){return this.toggleSelectionForIndex(this.items.indexOf(c))},
toggleSelectionForIndex:function(c){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(c):this.$.selector.isSelected(this.items[c]))?this.deselectIndex(c):this.selectIndex(c)},
clearSelection:function(){this._iterateItems(function(c){this.modelForElement(this._physicalItems[c])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(c){(c?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(c){var f=this.modelForElement(c.target);if(f){var d=_.$n(c).path[0];c=this._getActiveElement();var q=this._physicalItems[this._getPhysicalIndex(f[this.indexAs])];if(d.localName!=="input"&&d.localName!=="button"&&d.localName!=="select"){d=f.tabIndex;f.tabIndex=-100;var Z=c?c.tabIndex:-1;f.tabIndex=d;c&&q!==c&&q.contains(c)&&Z!==-100||this.toggleSelectionForItem(f[this.as])}}},
_multiSelectionChanged:function(c){this.clearSelection();this.$.selector.multi=c},
updateSizeForItem:function(c){return this.updateSizeForIndex(this.items.indexOf(c))},
updateSizeForIndex:function(c){if(!this._isIndexRendered(c))return null;this._updateMetrics([this._getPhysicalIndex(c)]);this._positionItems();return null},
_manageFocus:function(){var c=this._focusedVirtualIndex;c>=0&&c<this._virtualCount?this._isIndexRendered(c)?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(c){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(c/this._itemsPerRow)*this._itemsPerRow:c},
_isIndexRendered:function(c){return c>=this._virtualStart&&c<=this._virtualEnd},
_isIndexVisible:function(c){return c>=this.firstVisibleIndex&&c<=this.lastVisibleIndex},
_getPhysicalIndex:function(c){return(this._physicalStart+(c-this._virtualStart))%this._physicalCount},
focusItem:function(c){this._focusPhysicalItem(c)},
_focusPhysicalItem:function(c){if(!(c<0||c>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(c)||this.scrollToIndex(c);var f=this._physicalItems[this._getPhysicalIndex(c)],d=this.modelForElement(f),q;d.tabIndex=-100;f.tabIndex===-100&&(q=f);q||(q=_.$n(f).querySelector('[tabindex="-100"]'));d.tabIndex=0;this._focusedVirtualIndex=c;q&&q.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 c=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var f=this.stamp(null);this._focusBackfillItem=f.root.querySelector("*");this._itemsParent.appendChild(f.root)}this._offscreenFocusedItem=this._physicalItems[c];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[c]=this._focusBackfillItem;this._focusedPhysicalIndex=c;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var c=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),f=this._physicalItems[c];if(f){var d=this.modelForElement(f),q=this.modelForElement(this._offscreenFocusedItem);d[this.as]===q[this.as]?(this._focusBackfillItem=f,d.tabIndex=-1,this._physicalItems[c]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(c){c=this.modelForElement(c.target);var f=this.modelForElement(this._focusedItem),d=this._offscreenFocusedItem!==null,q=this._focusedVirtualIndex;c&&(f===c?this._isIndexVisible(q)||this.scrollToIndex(q):(this._restoreFocusedItem(),f&&(f.tabIndex=-1),c.tabIndex=0,this._focusedVirtualIndex=q=c[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(q),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],d&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(c){switch(c.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&c.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&&c.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(c)}},
_clamp:function(c,f,d){return Math.min(d,Math.max(f,c))},
_debounce:function(c,f,d){this._debouncers=this._debouncers||{};this._debouncers[c]=_.OP(this._debouncers[c],d,f.bind(this));_.l0(this._debouncers[c])},
_forwardProperty:function(c,f,d){c._setPendingProperty(f,d)},
_forwardHostPropV2:function(c,f){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(d){d&&this.modelForElement(d).forwardHostProp(c,f)},this)},
_notifyInstancePropV2:function(c,f,d){haC(this.as,f)&&(c=c[this.indexAs],f==this.as&&(this.items[c]=d),this.notifyPath(iW(this.as,"items."+c,f),d))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(c,f,d){f.indexOf(this.as+".")===0&&this.notifyPath("items."+c.__key__+"."+f.slice(this.as.length+1),d)},
_forwardParentPath:function(c,f){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(d){d&&this.modelForElement(d).notifyPath(c,f)},this)},
_forwardParentProp:function(c,f){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(d){d&&(this.modelForElement(d)[c]=f)},this)},
_getActiveElement:function(){var c=this._itemsParent.node.domHost;return _.$n(c?c.root:document).activeElement},
_scrollTargetChanged:function(c,f){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(f)if(c==="document")this.scrollTarget=this._doc;else if(typeof c==="string"){var d,q;this.scrollTarget=(f=(q=(d=this.domHost)==null?void 0:d.polymerController)!=null?q:this.domHost)&&f.$?f.$[c]:_.$n(this.ownerDocument).querySelector("#"+c)}else this._isValidScrollTarget()&&(this._oldScrollTarget=c,this._toggleScrollListener(this._shouldHaveListener,c))}});var dov;var jv_;var q__=function(c,f,d,q){c-=d;f-=q;return Math.sqrt(c*c+f*f)},Zpj=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
JMl.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var akz=function(c){c.maxRadius=0;c.mouseDownStart=0;c.mouseUpStart=0;c.xStart=0;c.yStart=0;c.xEnd=0;c.yEnd=0;c.containerMetrics=new JMl(c.element)};
VnN.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var c=Zpj()-this.mouseDownStart;this.mouseUpStart&&(c-=this.mouseUpElapsed);return c},get mouseUpElapsed(){return this.mouseUpStart?Zpj()-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 c=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(c*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-c/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<.01&&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 c=this.radius/(this.containerMetrics.size/2);var f=this.xNow-this.containerMetrics.width/2;var d=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+f+"px, "+d+"px)";this.waveContainer.style.transform="translate3d("+f+"px, "+d+"px, 0)";this.wave.style.webkitTransform="scale("+c+","+c+")";this.wave.style.transform="scale3d("+c+","+c+",1)"},
downAction:function(c){var f=this.containerMetrics.width/2,d=this.containerMetrics.height/2;akz(this);this.mouseDownStart=Zpj();this.center?(this.xStart=f,this.yStart=d):(this.xStart=c?c.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=c?c.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=f,this.yEnd=d);c=this.containerMetrics;f=this.xStart;d=this.yStart;this.maxRadius=Math.max(q__(f,d,0,0),q__(f,d,
c.width,0),q__(f,d,0,c.height),q__(f,d,c.width,c.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=Zpj())},
remove:function(){_.$n(_.$n(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.JY({_template:function(){if(jv_!==void 0)return jv_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;dov===void 0&&(dov=document.createElement("template"));var q=dov;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return jv_=c},
is:"tp-yt-paper-ripple",behaviors:[_.Kn],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(){_.$n(this).parentNode.nodeType==11?this.keyEventTarget=_.$n(this).getOwnerRoot().host:this.keyEventTarget=_.$n(this).parentNode;var c=this.keyEventTarget;this.listen(c,"up","uiUpAction");this.listen(c,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(c){c.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var c=0;c<this.ripples.length;++c)if(!this.ripples[c].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(c){this.noink||this.downAction(c)},
downAction:function(c){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(c),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(c){this.noink||this.upAction(c)},
upAction:function(c){this.holdDown||(this.ripples.forEach(function(f){f.upAction(c)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var c=0;c<this.ripples.length;++c){var f=this.ripples[c];f.isOpacityFullyDecayed&&!f.isRestingAtMaxRadius&&this.removeRipple(f)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var c=new VnN(this);_.$n(this.$.waves).appendChild(c.waveContainer);this.$.background.style.backgroundColor=c.color;this.ripples.push(c);this._setAnimating(!0);return c},
removeRipple:function(c){var f=this.ripples.indexOf(c);f<0||(this.ripples.splice(f,1),c.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var c;for(c=0;c<this.ripples.length;++c){var f=this.ripples[c];f.draw();this.$.background.style.opacity=f.outerOpacity;f.isOpacityFullyDecayed&&!f.isRestingAtMaxRadius&&this.removeRipple(f)}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(c,f){f!==void 0&&(c?this.downAction():this.upAction())}});var UU={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(c){nn._downHandler.call(this,c);this.pressed&&this.ensureRipple(c)},
ensureRipple:function(c){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var f=this._rippleContainer||this.root;f&&_.$n(f).appendChild(this._ripple);if(c){f=_.$n(this._rippleContainer||this);var d=_.$n(c).rootTarget;f.deepContains(d)&&this._ripple.uiDownAction(c)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(c){this.hasRipple()&&(this._ripple.noink=c)}};var MJH={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 c=1;this.disabled?c=0:this.active||this.pressed?c=4:this.receivedFocusFromKeyboard&&(c=3);this._setElevation(c)},
_computeKeyboardClass:function(c){this.toggleClass("keyboard-focus",c)},
_spaceKeyDownHandler:function(c){nn._spaceKeyDownHandler.call(this,c);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(c){nn._spaceKeyUpHandler.call(this,c);this.hasRipple()&&this._ripple.uiUpAction()}},rKo=[By3,
_.EU,UU,MJH];_.Ckr={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(c){c&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=c)},
_createRipple:function(){var c=UU._createRipple();c.id="ink";c.setAttribute("center","");c.classList.add("circle");return c}};
_.gRv=[By3,_.EU,UU,_.Ckr];_.kdu=[_.gRv,mY3,{_checkedChanged:function(){Ty3._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){UU._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var OpH;var lho;var sv_=function(){};
_.r=sv_.prototype;_.r.registered=function(){};
_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._tapHandler=function(){};
_.r._focusChanged=function(){};
_.r._detectKeyboardFocus=function(){};
_.r._userActivate=function(){};
_.r._upHandler=function(){};
_.r._asyncClick=function(){};
_.r._pressedChanged=function(){};
_.r._ariaActiveAttributeChanged=function(){};
_.r._activeChanged=function(){};
_.r._controlStateChanged=function(){};
_.r._changedButtonState=function(){};
_.r._focusBlurHandler=function(){};
_.r._disabledChanged=function(){};
_.r._changedControlState=function(){};
_.r._buttonStateChanged=function(){};
_.r._downHandler=function(){};
_.r.ensureRipple=function(){};
_.r.getRipple=function(){};
_.r.hasRipple=function(){};
_.r._createRipple=function(){};
_.r._noinkChanged=function(){};
_.r._computeKeyboardClass=function(){};
_.r._spaceKeyDownHandler=function(){};
_.r._spaceKeyUpHandler=function(){};
_.r._setPressed=function(){};
_.r._setPointerDown=function(){};
_.r._setReceivedFocusFromKeyboard=function(){};
_.r._setFocused=function(){};
_.r._setElevation=function(){};
sv_=_.JY({_template:function(){if(lho!==void 0)return lho;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
var f=c.content,d=f.insertBefore;OpH===void 0&&(OpH=document.createElement("template"));var q=OpH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return lho=c},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[rKo],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?MJH._calculateElevation.apply(this):this._setElevation(0)}});var BOo;var ipo;var TO3={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(c){_.F("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(c)},
_onDialogClickWrapped:function(c){_.F("dialog_behavior_no_tap_killswitch")||this._onDialogClick(c)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(c,f){f&&(c?(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(c){if(c){var f;((f=this.hostElement)!=null?f:this).setAttribute("aria-modal","true")}else{var d;((d=this.hostElement)!=null?d:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(c){this.closingReason=this.closingReason||{};this.closingReason.confirmed=c},
_onDialogClick:function(c){for(var f=_.$n(c).path,d=0,q,Z=f.indexOf((q=this.hostElement)!=null?q:this);d<Z;d++)if(q=f[d],q.hasAttribute&&(q.hasAttribute("dialog-dismiss")||q.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(q.hasAttribute("dialog-confirm"));this.close();c.stopPropagation();break}}},moK=[_.RJ,
TO3];var Hp3=document.createElement("template");_.n(Hp3,'<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(Hp3.content);var AKo=document.createElement("template");_.n(AKo,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(AKo.content);_.JY({_template:function(){if(ipo!==void 0)return ipo;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
var f=c.content,d=f.insertBefore;BOo===void 0&&(BOo=document.createElement("template"));var q=BOo;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return ipo=c},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[moK,nv_],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 Y_o;var Fa_;_.JY({_template:function(){if(Fa_!==void 0)return Fa_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Y_o===void 0&&(Y_o=document.createElement("template"));var q=Y_o;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return Fa_=c},
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 c,f,d;if(((c=window.ShadyDOM)==null?void 0:c.noPatch)!==!0&&((f=window.ShadyDOM)==null?void 0:f.noPatch)!=="on-demand"||((d=this.__shady_parentNode)==null?void 0:d.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(TO3)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var tJT=_.pp(['<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>']),bp_=_.m$T(tJT);bp_.setAttribute("style","display: none;");document.head.appendChild(bp_.content);var Ka_;var ERT;var nRj;var $oj;_.JY({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[VE],configure:function(c){var f=c.node,d=f.getBoundingClientRect().height;return this._effect=new KeyframeEffect(f,[{height:d/2+"px"},{height:d+"px"}],this.timingFromConfig(c))}});
_.JY({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[VE],configure:function(c){var f=c.node,d=f.getBoundingClientRect().width;return this._effect=new KeyframeEffect(f,[{width:d/2+"px"},{width:d+"px"}],this.timingFromConfig(c))}});
_.JY({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[VE],configure:function(c){var f=c.node,d=f.getBoundingClientRect().width;return this._effect=new KeyframeEffect(f,[{width:d+"px"},{width:d-d/20+"px"}],this.timingFromConfig(c))}});
_.JY({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[VE],configure:function(c){var f=c.node,d=f.getBoundingClientRect().height;this.setPrefixedProperty(f,"transformOrigin","0 0");return this._effect=new KeyframeEffect(f,[{height:d+"px",transform:"translateY(0)"},{height:d/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(c))}});var x$={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Qv3=function(){};
_.r=Qv3.prototype;_.r.registered=function(){};
_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._focusBlurHandler=function(){};
_.r._changedControlState=function(){};
_.r._setFocused=function(){};
Qv3=_.JY({_template:function(){if($oj!==void 0)return $oj;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;nRj===void 0&&(nRj=document.createElement("template"));var q=nRj;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return $oj=c},
is:"tp-yt-paper-menu-button",behaviors:[_.Kn,_.EU],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:x$.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:x$.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:x$.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 c=_.$n(this.$.content).getDistributedNodes(),f=0,d=c.length;f<d;f++)if(c[f].nodeType===Node.ELEMENT_NODE)return c[f]},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(c,f){c?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):f!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(c){_.EU._disabledChanged.apply(this,arguments);c&&this.opened&&this.close()},
__onIronOverlayCanceled:function(c){var f=this.$.trigger;_.$n(c.detail).path.indexOf(f)>-1&&c.preventDefault()}});
Object.keys(x$).forEach(function(c){Qv3[c]=x$[c]});var S_H=_.$$.IronButtonState,Lar=(0,_.EP)(HTMLElement);
_.JY({_template:function(){if(ERT!==void 0)return ERT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Ka_===void 0&&(Ka_=document.createElement("template"));var q=Ka_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return ERT=c},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[S_H,_.EU,UU,_.QE,_.z0],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(c){var f=(0,_.YD)(this);f.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:c});f.shadowRoot.appendChild(c);return Lar.prototype._attachDom.call(this,c)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var c=this.contentElement;c&&c.selectedItem&&this._setSelectedItem(c.selectedItem)},
get contentElement(){for(var c=_.$n(this.$.content).getDistributedNodes(),f=0,d=c.length;f<d;f++)if(c[f].nodeType===Node.ELEMENT_NODE)return c[f]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(c){this._setSelectedItem(c.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(c){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c)===this&&this.open()},
_selectedItemChanged:function(c){var f="";c?f=c.label||c.getAttribute("label")||c.textContent.trim():f="";this.value=f;this._setSelectedItemLabel(f)},
_computeMenuVerticalOffset:function(c,f){return f?f:c?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var c=this.opened?"true":"false",f=this.contentElement;f&&f.setAttribute("aria-expanded",c)},
_computeLabelClass:function(c,f,d){var q="label";if(c)d&&(q+=" label-is-hidden");else if(d||f)q+=" label-is-floating";return q},
_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 zJv;var JKF;_.JY({is:"tp-yt-paper-icon-button",_template:function(){if(JKF!==void 0)return JKF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;zJv===void 0&&(zJv=document.createElement("template"));var q=zJv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return JKF=c},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.gRv],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(c,f){var d=this.getAttribute("aria-label");d&&f!=d||this.setAttribute("aria-label",c)}});var ah_;var VJH;_.oJ=[By3,_.EU,{hostAttributes:{role:"option",tabindex:"0"}}];_.JY({_template:function(){if(VJH!==void 0)return VJH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;ah_===void 0&&(ah_=document.createElement("template"));var q=ah_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return VJH=c},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.oJ]});var X5y;var ub3;var vR3={attached:function(){this.fire("addon-attached")},
update:function(){}};var hJj=1,w5T=1,yKK=1,Wa3=[_.EU,_.Kn,{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();!qM&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(c,f){c?c=c+" "+f:c=f;return c},
_onAddonAttached:function(c){c=_.$n(c).rootTarget;if(c.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,c.id);else{var f="paper-input-add-on-"+w5T++;c.id=f;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,f)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(c){_.EU._focusBlurHandler.call(this,c);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var c=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",c);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(c){try{var f=this.inputElement.selectionStart;this.value=c;this.inputElement.selectionStart=f;this.inputElement.selectionEnd=f}catch(d){this.value=c}},
_computeAlwaysFloatLabel:function(c,f){return f||c},
_updateAriaLabelledBy:function(){var c=_.$n(this.root).querySelector("label");if(c){if(c.id)var f=c.id;else f="paper-input-label-"+hJj++,c.id=f;this._ariaLabelledBy=f}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+yKK++)},
_onChange:function(c){this.shadowRoot&&this.fire(c.type,{sourceEvent:c},{node:this,bubbles:c.bubbles,cancelable:c.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var c=document.activeElement;c instanceof HTMLElement&&c!==document.body&&c!==document.documentElement||this._focusableElement.focus()}}}];var Do_;var eJy;_.JY({_template:function(){if(eJy!==void 0)return eJy;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Do_===void 0&&(Do_=document.createElement("template"));var q=Do_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return eJy=c},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[vR3],properties:{_charCounterStr:{type:String,value:"0"}},update:function(c){if(c.inputElement){c.value=c.value||"";var f=c.value.toString().length.toString();c.inputElement.hasAttribute("maxlength")&&(f+="/"+c.inputElement.getAttribute("maxlength"));this._charCounterStr=f}}});var NO_;var IhT;_.JY({_template:function(){if(IhT!==void 0)return IhT;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;NO_===void 0&&(NO_=document.createElement("template"));var q=NO_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return IhT=c},
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 kD(this.attrForValue)},get _inputElement(){return _.$n(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(c){this._addons||(this._addons=[]);c=c.target;this._addons.indexOf(c)===-1&&(this._addons.push(c),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(c){this._handleValueAndAutoValidate(c.target)},
_onValueChanged:function(c){var f=c.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,f.value===void 0||f.value===""))return;this._handleValueAndAutoValidate(c.target)},
_handleValue:function(c){var f=this._inputElementValue;f||f===0||c.type==="number"&&!c.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:c,value:f,invalid:this.invalid})},
_handleValueAndAutoValidate:function(c){this.autoValidate&&c&&(this.invalid=!(c.validate?c.validate(this._inputElementValue):c.checkValidity()));this._handleValue(c)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(c){if(this._addons)for(var f,d=0;f=this._addons[d];d++)f.update(c)},
_computeInputContentClass:function(c,f,d,q,Z){var M="input-content";c?(Z&&(M+=" label-is-hidden"),q&&!this.noUnfloatedLabelError&&(M+=" is-invalid")):(c=this.querySelector("label"),f||Z?(M+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",q?M+=" is-invalid":d&&(M+=" label-is-highlighted")):(c&&(this.$.labelAndInputContainer.style.position="relative"),q&&!this.noUnfloatedLabelError&&(M+=" is-invalid")));d&&(M+=" focused");return M},
_computeUnderlineClass:function(c,f){var d="underline";f?d+=" is-invalid":c&&(d+=" is-highlighted");return d},
_computeAddOnContentClass:function(c,f){var d="add-on-content";f?d+=" is-invalid":c&&(d+=" is-highlighted");return d}});var PkK;var RJK;_.JY({_template:function(){if(RJK!==void 0)return RJK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;PkK===void 0&&(PkK=document.createElement("template"));var q=PkK;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return RJK=c},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[vR3],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(c){this._setInvalid(c.invalid)}});_.JY({is:"tp-yt-paper-input",_template:function(){if(ub3!==void 0)return ub3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;X5y===void 0&&(X5y=document.createElement("template"));var q=X5y;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return ub3=c},
behaviors:[Wa3,_.QE],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 UoH;var p53;_.JY({_template:function(){if(p53!==void 0)return p53;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=
c.content,d=f.insertBefore;UoH===void 0&&(UoH=document.createElement("template"));var q=UoH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return p53=c},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.oJ]});var xoT;var oRj;_.JY({_template:function(){if(oRj!==void 0)return oRj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
var f=c.content,d=f.insertBefore;xoT===void 0&&(xoT=document.createElement("template"));var q=xoT;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return oRj=c},
is:"tp-yt-paper-item-body"});var GdH;var cry;var f2F=function(){};
_.r=f2F.prototype;_.r.indexOf=function(){};
_.r.selectPrevious=function(){};
_.r.selectNext=function(){};
_.r.selectIndex=function(){};
_.r.forceSynchronousItemUpdate=function(){};
_.r._checkFallback=function(){};
_.r._addListener=function(){};
_.r._removeListener=function(){};
_.r._activateEventChanged=function(){};
_.r._updateItems=function(){};
_.r._selectSelected=function(){};
_.r._filterItem=function(){};
_.r._valueToItem=function(){};
_.r._valueToIndex=function(){};
_.r._indexToValue=function(){};
_.r._valueForItem=function(){};
_.r._observeItems=function(){};
_.r._itemActivate=function(){};
_.r.multiChanged=function(){};
_.r._updateAttrForSelected=function(){};
_.r._updateSelected=function(){};
_.r._selectMulti=function(){};
_.r._selectionChange=function(){};
_.r._toggleSelected=function(){};
_.r._valuesToItems=function(){};
_.r.registered=function(){};
_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r.select=function(){};
_.r._resetTabindices=function(){};
_.r._updateMultiselectable=function(){};
_.r._focusWithKeyboardEvent=function(){};
_.r._clearSearchText=function(){};
_.r._focusPrevious=function(){};
_.r._focusNext=function(){};
_.r._applySelection=function(){};
_.r._focusedItemChanged=function(){};
_.r._onIronItemsChanged=function(){};
_.r._onShiftTabDown=function(){};
_.r._onFocus=function(){};
_.r._onUpKey=function(){};
_.r._onDownKey=function(){};
_.r._onEscKey=function(){};
_.r._onKeydown=function(){};
_.r._activateHandler=function(){};
_.r._disabledChanged=function(){};
_.r._setSelectedItem=function(){};
_.r._setItems=function(){};
_.r._setSelectedItems=function(){};
_.r._setFocusedItem=function(){};
f2F=_.JY({_template:function(){if(cry!==void 0)return cry;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
var f=c.content,d=f.insertBefore;GdH===void 0&&(GdH=document.createElement("template"));var q=GdH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return cry=c},
is:"tp-yt-paper-listbox",behaviors:[F_u],hostAttributes:{role:"listbox"}});var d6o;var jWT;var qJ_={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(c,f){return[c||f?"active":"",f?"cooldown":""].join(" ")},
__activeChanged:function(c,f){this.__setAriaHidden(!c);this.__coolingDown=!c&&f},
__altChanged:function(c){this.setAttribute("aria-label",c||"loading")},
__setAriaHidden:function(c){c?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.JY({_template:function(){if(jWT!==void 0)return jWT;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;d6o===void 0&&(d6o=document.createElement("template"));var q=d6o;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return jWT=c},
is:"tp-yt-paper-spinner",behaviors:[qJ_]});var ZSv;var M7j;_.JY({_template:function(){if(M7j!==void 0)return M7j;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;ZSv===void 0&&(ZSv=document.createElement("template"));var q=ZSv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return M7j=c},
is:"tp-yt-paper-spinner-lite",behaviors:[qJ_]});var rrH;var CfO;_.JY({_template:function(){if(CfO!==void 0)return CfO;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;rrH===void 0&&(rrH=document.createElement("template"));var q=rrH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return CfO=c},
is:"tp-yt-paper-tab",behaviors:[_.EU,_.$$.IronButtonState,UU],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 c=_.$n(this).parentNode;return!!c&&!!c.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(c){if(this.link){var f=this.queryEffectiveChildren("a");f&&c.target!==f&&f.click()}}});var g93;var kKr;var OS3=_.pp(['<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>']),l2F=_.m$T(OS3);document.head.appendChild(l2F.content);_.JY({_template:function(){if(kKr!==void 0)return kKr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;g93===void 0&&(g93=document.createElement("template"));var q=g93;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return kKr=c},
is:"tp-yt-paper-tabs",behaviors:[_.aJ,_.baT],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(c){_.$n(this).querySelectorAll("tp-yt-paper-tab").forEach(c?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(c){c.setAttribute("noink","")},
_removeNoinkAttribute:function(c){c.removeAttribute("noink")},
_computeScrollButtonClass:function(c,f,d,q){return!f||d?"hidden":c?q?"hidden":"not-visible":""},
_computeTabsContentClass:function(c,f){var d="tabs-content";c&&(d+=" scrollable");if(!c||f)d+=" fit-container";return d},
_computeSelectionBarClass:function(c,f){var d="selection-bar";c?d+=" hidden":f&&(d+=" align-bottom");return d},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(c){return""+c},
_onIronSelect:function(c){this._tabChanged(c.detail.item,this._previousTab);this._previousTab=c.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();_.Js._activateHandler.apply(this,arguments)},
_scheduleActivation:function(c,f){this._pendingActivationItem=c;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,f)},
_delayedActivationHandler:function(){var c=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;c.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(c){c.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(c,f){this.scrollable&&this._affectScroll(f&&-f.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(c){this.$.tabsContainer.scrollLeft+=c;c=this.$.tabsContainer.scrollLeft;this._leftHidden=c===0||this.hideScrollButtons;this._rightHidden=c===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(c,f){if(c){var d=this.$.tabsContent.getBoundingClientRect(),q=d.width,Z=c.getBoundingClientRect();d=Z.left-d.left;this._pos={width:this._calcPercent(Z.width,q),left:this._calcPercent(d,q)};if(this.noSlide||f==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var M=f.getBoundingClientRect();f=this.items.indexOf(f);c=this.items.indexOf(c);this.$.selectionBar.classList.add("expand");
c=f<c;this._isRTL&&(c=!c);c?this._positionBar(this._calcPercent(Z.left+Z.width-M.left,q)-5,this._left):this._positionBar(this._calcPercent(M.left+M.width-Z.left,q)-5,this._calcPercent(d,q)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Z.width,d)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(c,f){f-=this.$.tabsContainer.scrollLeft;f<0?this.$.tabsContainer.scrollLeft+=f:(f+=c-this.$.tabsContainer.offsetWidth,f>0&&(this.$.tabsContainer.scrollLeft+=f))},
_calcPercent:function(c,f){return 100*c/f},
_positionBar:function(c,f){c=c||0;f=f||0;this._width=c;this._left=f;this.transform("translateX("+f+"%) scaleX("+c/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var c=this.$.selectionBar.classList;c.contains("expand")?(c.remove("expand"),c.add("contract"),this._positionBar(this._pos.width,this._pos.left)):c.contains("contract")&&c.remove("contract")}});var sWv;var Bn_;_.JY({_template:function(){if(Bn_!==void 0)return Bn_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;sWv===void 0&&(sWv=document.createElement("template"));var q=sWv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return Bn_=c},
is:"tp-yt-paper-textarea",behaviors:[Wa3,_.QE],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(c){this.$.input.textarea.selectionStart=c},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(c){this.$.input.textarea.selectionEnd=c},_ariaLabelledByChanged:function(c){this._focusableElement.setAttribute("aria-labelledby",c)},
_ariaDescribedByChanged:function(c){this._focusableElement.setAttribute("aria-describedby",c)},
get _focusableElement(){return this.inputElement.textarea}});var iS3;var TnH;/*

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 m63=function(){};
_.r=m63.prototype;_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._tapHandler=function(){};
_.r._focusChanged=function(){};
_.r._detectKeyboardFocus=function(){};
_.r._userActivate=function(){};
_.r._upHandler=function(){};
_.r._spaceKeyDownHandler=function(){};
_.r._spaceKeyUpHandler=function(){};
_.r._asyncClick=function(){};
_.r._pressedChanged=function(){};
_.r._ariaActiveAttributeChanged=function(){};
_.r._activeChanged=function(){};
_.r._controlStateChanged=function(){};
_.r._changedButtonState=function(){};
_.r._focusBlurHandler=function(){};
_.r._disabledChanged=function(){};
_.r._changedControlState=function(){};
_.r._downHandler=function(){};
_.r.ensureRipple=function(){};
_.r.getRipple=function(){};
_.r.hasRipple=function(){};
_.r._noinkChanged=function(){};
_.r._focusedChanged=function(){};
_.r.registered=function(){};
_.r._invalidChanged=function(){};
_.r.hasValidator=function(){};
_.r.validate=function(){};
_.r._getValidity=function(){};
_.r._requiredChanged=function(){};
_.r._valueChanged=function(){};
_.r._checkedChanged=function(){};
_.r._buttonStateChanged=function(){};
_.r._setPressed=function(){};
_.r._setPointerDown=function(){};
_.r._setReceivedFocusFromKeyboard=function(){};
_.r._setFocused=function(){};
m63=_.JY({is:"tp-yt-paper-toggle-button",_template:function(){if(TnH!==void 0)return TnH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;iS3===void 0&&(iS3=document.createElement("template"));var q=iS3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return TnH=c},
behaviors:[_.kdu],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");_.ol(this,function(){_.uW(this,"pan-y")})},
_ontrack:function(c){c=c.detail;c.state==="start"?this._trackStart(c):c.state==="track"?this._trackMove(c):c.state==="end"&&this._trackEnd(c)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(c){c=c.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+c:c)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+c:c));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 c=UU._createRipple();c.id="ink";c.setAttribute("recenters","");c.classList.add("circle","toggle-ink");return c}});var HSK;var Arv;_.JY({_template:function(){if(Arv!==void 0)return Arv;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;HSK===void 0&&(HSK=document.createElement("template"));var q=HSK;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return Arv=c},
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 c=_.$n(this).parentNode,f=_.$n(this).getOwnerRoot(),d;this.for?d=_.$n(f).querySelector("#"+this.for):d=c.nodeType==Node.DOCUMENT_FRAGMENT_NODE?f.host:c;return d},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(c){c==="entry"?this.show():c==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.$n(this).textContent.trim()===""){for(var c=!0,f=_.$n(this).getEffectiveChildNodes(),d=0;d<f.length;d++)if(f[d].textContent.trim()!==""){c=!1;break}if(c)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 c=this.offset;this.marginTop!=14&&this.offset==14&&(c=this.marginTop);var f=this.offsetParent.getBoundingClientRect(),d=this._target.getBoundingClientRect(),q=this.getBoundingClientRect(),Z=(d.width-q.width)/2,M=(d.height-q.height)/2,g=d.left-f.left,O=d.top-f.top;switch(this.position){case "top":var l=g+Z;var m=O-q.height-c;break;case "bottom":l=g+Z;m=O+d.height+c;break;case "left":l=g-q.width-c;m=O+M;break;case "right":l=g+d.width+
c,m=O+M}this.fitToVisibleBounds?(f.left+l+q.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,l)+"px",this.style.right="auto"),f.top+m+q.height>window.innerHeight?(this.style.bottom=f.height+"px",this.style.top="auto"):(this.style.top=Math.max(-f.top,m)+"px",this.style.bottom="auto")):(this.style.left=l+"px",this.style.top=m+"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(c){c!==500&&this.updateStyles({"--paper-tooltip-delay-in":c+"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(c){if(c==="entry"&&this.animationEntry!=="")return this.animationEntry;if(c==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[c]&&typeof this.animationConfig[c][0].name==="string"){if(this.animationConfig[c][0].timing&&this.animationConfig[c][0].timing.delay&&this.animationConfig[c][0].timing.delay!==0){var f=this.animationConfig[c][0].timing.delay;c==="entry"?this.updateStyles({"--paper-tooltip-delay-in":f+"ms"}):c==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":f+
"ms"})}return this.animationConfig[c][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 YJv=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(YJv,_.d8);var F8u=_.kh(YJv,[0,_.c1]);var G0=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(G0,_.d8);var t7T=[3,4],bST=[5,6];var K83=[0,t7T,bST,_.Oqr,-1,_.GK,_.lJ_,-1,qhh,Zvk];var E9v=_.kh(G0,K83),n93=_.OW(K83);var $6y=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K($6y,_.d8);var QW_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(QW_,_.d8);var SJH=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(SJH,_.d8);var L8_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(L8_,_.d8);var zH3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(zH3,_.d8);var cQ=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(cQ,_.d8);cQ.prototype.getSource=function(){return _.VQ(this,1)};
cQ.prototype.getMessage=function(){return _.aW(this,4)};
cQ.prototype.getData=function(){return _.TD(this,zH3,8)};var Jr3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Jr3,_.d8);var fz=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(fz,_.d8);var dF=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(dF,_.d8);var jw=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(jw,_.d8);jw.prototype.getUrl=function(){return _.aW(this,1)};
jw.prototype.setUrl=function(c){return _.b5(this,1,c)};
jw.prototype.hasUrl=function(){return _.TC(_.Fv(this,1))!=null};var a2_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(a2_,_.d8);var V7T=[3];var Xgy=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Xgy,_.d8);var qB=function(c){var f=new Xgy;return _.rR(f,2,c)};
Xgy.prototype.getLanguage=function(){return uf(this,4,Zj)};
var uv_=function(c){var f=qB(1);return _.iX(f,6,Zj,c)},Zj=[3,
4,5,6];var v9_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(v9_,_.d8);var MB=function(c){var f=new v9_;return _.rR(f,1,c)},rF=function(c,f){return _.iX(c,2,hHT,f)},hHT=[2,
3,4,5];var wg_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(wg_,_.d8);var Cz=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Cz,_.d8);var yry=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(yry,_.d8);var W8o=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(W8o,_.d8);var D6r=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(D6r,_.d8);var eHy=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(eHy,_.d8);var Nn3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Nn3,_.d8);var gF=function(c){return _.TD(c,dF,5)};var I2H=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(I2H,_.d8);I2H.prototype.getValue=function(){return zK(this,1)};var Pf_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Pf_,_.d8);var kf=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(kf,_.d8);kf.prototype.getMetadata=function(){return _.vg(this,D6r,7,OB)};
kf.prototype.hasMetadata=function(){return _.bf(this,D6r,7,OB)};
var RH3=_.vhY(kf),OB=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var lq=function(c){this.JSC$11911_name_=c;this.files_=[];this.directories_=[];this.directoryMap_={}};
lq.prototype.getName=function(){return this.JSC$11911_name_};var BQ=function(c,f){this.callback_=f;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new lq("");U6K(this,c,this.rootDirectory_);sB(this)},U6K=function(c,f,d){for(var q=0;q<f.length;q++){var Z=f[q];
Z.isFile?(c.fileOps_++,Z.file((0,_.n1)(c.handleFileSuccess_,c,d),(0,_.n1)(c.handleFileError_,c))):c.unscannedDirectories_.push(new pgK(Z,d))}},sB=function(c){if(c.unscannedDirectories_.length>0&&c.directoryOps_<5&&!c.hasError_){c.directoryOps_++;
var f=c.unscannedDirectories_.shift(),d=f.entry,q=new lq(d.name);f=f.parent;f.directoryMap_[q.getName()]=q;f.directories_.push(q);d=d.createReader();d.readEntries((0,_.n1)(c.handleDirectorySuccess_,c,d,q),(0,_.n1)(c.handleDirectoryError_,c))}c.directoryOps_!=0||c.fileOps_!=0||c.unscannedDirectories_.length!=0&&!c.hasError_||c.callback_(c.rootDirectory_.files_,c.rootDirectory_.directories_,c.hasError_)};
BQ.prototype.handleDirectorySuccess_=function(c,f,d){U6K(this,d,f);d.length==0?(this.directoryOps_--,sB(this)):c.readEntries((0,_.n1)(this.handleDirectorySuccess_,this,c,f),(0,_.n1)(this.handleDirectoryError_,this))};
BQ.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;sB(this)};
BQ.prototype.handleFileSuccess_=function(c,f){c.files_.push(f);this.fileOps_--;sB(this)};
BQ.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;sB(this)};
var pgK=function(c,f){this.entry=c;this.parent=f};var iq=function(c){_.KF.call(this);_.Lx(c,"drop",this.onObjectsDropped_,!1,this);_.Lx(c,"dragenter",this.onFilesDragged_,!1,this);_.Lx(c,"dragover",this.onFilesDragged_,!1,this);_.Lx(c,"dragleave",this.onDragLeave_,!1,this);_.Lx(c,"dragend",this.onDragLeave_,!1,this)};
_.rn(iq,_.KF);var x63=function(c,f){_.AC.call(this,"f");this.files=c;this.directories=f};
_.rn(x63,_.AC);var o9F=function(){_.AC.call(this,"h")};
_.rn(o9F,_.AC);var GKj=function(){_.AC.call(this,"i")};
_.rn(GKj,_.AC);var cqr=function(){_.AC.call(this,"g")};
_.rn(cqr,_.AC);iq.prototype.onObjectsDropped_=function(c){var f=this;c.preventDefault();var d=c.event_.dataTransfer;if((c=d&&d.items)&&c.length>0&&c[0].webkitGetAsEntry){d=[];for(var q=[],Z=0;Z<c.length;Z++){var M=c[Z].webkitGetAsEntry();M?d.push(M):q.push(c[Z])}new BQ(d,function(g,O,l){l?f.dispatchEvent(new cqr("Error occurred while reading from the file system.")):f.dispatchEvent(new x63(g,O,q))})}else(c=d&&d.files)&&this.dispatchEvent(new x63(Array.from(c),[]))};
iq.prototype.onFilesDragged_=function(c){c.type==="dragenter"&&this.dispatchEvent(new o9F);c.preventDefault()};
iq.prototype.onDragLeave_=function(){this.dispatchEvent(new GKj)};var fD3=function(c,f){this.JSC$11934_name_=c;this.inputElement_=f};
fD3.prototype.getName=function(){return this.JSC$11934_name_};
fD3.prototype.getInputElement=function(){return this.inputElement_};var T2=function(c,f,d){f=f===void 0?"single_file":f;d=d===void 0?[]:d;_.KF.call(this);this.overlayTarget_=c;this.parentOverlay_=c!=null?c.parentNode:_.A5("scotty-overlay-parent");this.selectorType_=f;this.acceptTypes_=d;this.overlay_=d0v(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.K(T2,_.KF);
var d0v=function(c,f,d,q){var Z=document.createElement("input");Z.setAttribute("type","file");Z.setAttribute("name","Filedata");_.Lx(Z,"change",c.onFilesSelected_,!1,c);d==="multiple_file"&&(Z.multiple="true");d==="single_directory"&&(Z.webkitdirectory="true");q.length>0&&Z.setAttribute("accept",q.join(","));Z.style.position="absolute";Z.style.overflow="hidden";Z.style.height="0px";Z.style.width="0px";Z.style.opacity="0";Z.setAttribute("aria-hidden","true");Z.setAttribute("tabIndex",-1);if(c.overlayTarget_!=
null)return Z.style.height=f.offsetHeight+"px",Z.style.width=f.offsetWidth+"px",c.parentOverlay_&&(c.parentOverlay_.style.position="relative"),_.XB(Z,f),W1(Z,new _.a8(f.offsetLeft,f.offsetTop)),Z;c.parentOverlay_.appendChild(Z);return Z};
T2.prototype.click=function(){this.overlay_.click()};
T2.prototype.onFilesSelected_=function(c){a:{try{var f=(new XMLHttpRequest).upload!==void 0;break a}catch(m){}f=!1}if(f){var d;c=Array.from((d=c.target.files)!=null?d:[]);d=[];if(this.selectorType_==="single_directory"&&(_.sJ||Gf||_.lf)){d=new lq("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(f=0;f<c.length;f++)for(var q=c[f],Z=q.webkitRelativePath.split("/"),M=d,g=0;g<Z.length;g++){var O=Z[g];if(g==Z.length-1){O!="."&&M.files_.push(q);break}var l=M.directoryMap_[O];l==void 0&&(O=
l=new lq(O),M.directoryMap_[O.getName()]=O,M.directories_.push(O));M=l}d=d.directories_}this.dispatchEvent(new j_u(c,d,null))}else c=c.target.value,c.match(/^c:\\fakepath\\/i)&&(c=c.substring(12)),this.dispatchEvent(new j_u([],[],new fD3(c,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=d0v(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var j_u=function(c,f){_.AC.call(this,"j");this.files=c;this.directories=f};
_.K(j_u,_.AC);var q5O=function(c){this.uploadUrl_=c};var Zoy=function(){_.KF.call(this)};
_.rn(Zoy,_.KF);var mv=function(c){_.AC.call(this,c)};
_.rn(mv,_.AC);var HQ=function(c){_.AC.call(this,c)};
_.rn(HQ,_.AC);var MjH=function(c,f,d,q,Z){_.KF.call(this);d=document.createElement("form");d.setAttribute("method",f);d.setAttribute("enctype","multipart/form-data");d.setAttribute("encoding","multipart/form-data");f=document.createElement("input");f.setAttribute("type","hidden");f.setAttribute("name","metadata");f.setAttribute("value",Z);d.appendChild(f);d.appendChild(q);this.JSC$11951_form_=d;c=new _.xn(c);_.Nx(c,"upload_protocol","multipart");this.JSC$11951_url_=c.toString();this.JSC$11951_request_=new qA;this.state_=
"Ready";this.JSC$11951_errorDescription_=null;this.JSC$11951_eventHandler_=new _.r2(this);_.ln(this,this.JSC$11951_eventHandler_);this.JSC$11951_eventHandler_.listen(this.JSC$11951_request_,"success",this.onTransferSuccess_);this.JSC$11951_eventHandler_.listen(this.JSC$11951_request_,"error",this.onTransferError_)};
_.K(MjH,Zoy);_.r=MjH.prototype;_.r.run=function(){this.state_="Transferring";var c=this.JSC$11951_request_,f=this.JSC$11951_form_;if(c.JSC$11370_active_)throw Error("ne");var d=new _.xn(this.JSC$11951_url_||f.action);c.JSC$11370_form_=f;f=c.JSC$11370_form_;d=_.w8(d.toString());d!==void 0&&(f.action=d);Vq_(c)};
_.r.getResponseCode=function(){return null};
_.r.getResponseText=function(){return this.JSC$11951_request_&&this.JSC$11951_request_.getResponseText()||null};
_.r.JSC$29243_getErrorDescription=function(){return this.JSC$11951_errorDescription_};
_.r.cancel=function(){this.JSC$11951_request_&&this.JSC$11951_request_.abort();this.state_="Cancelled";this.dispatchEvent(new mv("o"))};
_.r.pause=function(){};
_.r.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new mv("l"))};
_.r.onTransferError_=function(){this.JSC$11951_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new mv("n"))};var AB=function(){_.JC.call(this)};
_.K(AB,_.JC);AB.prototype.createXhr=function(){var c=_.JC.prototype.createXhr.call(this);c.upload&&(c.upload.onprogress=(0,_.n1)(this.onProgress_,this));return c};
AB.prototype.onProgress_=function(c){this.dispatchEvent(c)};var rqH=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},gxj=function(c,f){var d=c.attempt_+1;
if(c.maxAttempts_>0&&d>c.maxAttempts_)return!1;d==0?f():c.delayCallId_=SW(function(){c.delayCallId_=null;f()},C43(c),c);
c.attempt_=d;return!0};
rqH.prototype.reset=function(){this.delayCallId_&&_.dz.clearTimeout(this.delayCallId_);this.attempt_=-1};
var C43=function(c){var f=250*Math.pow(2,c.attempt_);c.maxDelayMs_>=0&&(f=Math.min(f,c.maxDelayMs_));return f};var ulk=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Yf=function(){_.KF.call(this);this.JSC$11961_request_=this.state_=null;this.JSC$11961_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11961_bytesTransferred_=0;this.retryIterator_=new rqH;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11961_errorDescription_=null;this.JSC$11961_eventHandler_=new _.r2(this);_.ln(this,this.JSC$11961_eventHandler_);this.JSC$11961_url_=this.blob_=null;this.JSC$11961_method_=void 0;this.chunkSize_=this.JSC$11961_metadata_=
this.JSC$11961_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11961_responseText_=this.JSC$11961_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.rn(Yf,Zoy);_.r=Yf.prototype;_.r.run=function(){FL(this)};
_.r.getResponseCode=function(){return this.JSC$11961_responseCode_};
_.r.getResponseText=function(){return this.JSC$11961_responseText_};
_.r.JSC$29243_getErrorDescription=function(){return this.JSC$11961_errorDescription_};
_.r.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11961_eventHandler_.removeAll();this.JSC$11961_request_&&this.JSC$11961_request_.abort();this.retryIterator_.reset();var c=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(c==="Upload"||c==="Query")c=new AB,c.JSC$9739_withCredentials_=this.JSC$11961_withCredentials_,c.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11961_bytesTransferred_=
0;this.dispatchEvent(new mv("o"))}};
_.r.pause=function(){this.pauseRequested_=!0};
var FL=function(c){var f=c.state_;c.pauseRequested_?(c.pauseRequested_=!1,c.stateAfterUnpausing_=f,c.state_="Paused"):gxj(c.retryIterator_,function(){switch(c.state_){case "Start":c.JSC$11961_request_=new AB;var d=_.zV.clone(c.JSC$11961_headers_);c.blob_.size!=null&&(d["Content-Length"]=c.blob_.size);d=vGM(d);d["X-Goog-Upload-Protocol"]="resumable";d["X-Goog-Upload-Command"]="start";c.JSC$11961_eventHandler_.removeAll();c.JSC$11961_eventHandler_.listen(c.JSC$11961_request_,"complete",c.onStartComplete_);
c.JSC$11961_request_.JSC$9739_withCredentials_=c.JSC$11961_withCredentials_;c.JSC$11961_request_.send(c.JSC$11961_url_,c.JSC$11961_method_,c.JSC$11961_metadata_,d);c.lastCommandResponseCode_=null;c.dispatchEvent(new HQ("q"));break;case "Upload":d=c.transferHandle_.uploadUrl_;var q=c.blob_.size;if(TK3()){var Z=c.chunkSize_;var M=c.offset_+Z>=q;q=iWT(c.blob_,c.offset_,M?q:c.offset_+Z)}else c.offset_=0,q=c.blob_,M=!0;c.JSC$11961_request_=new AB;c.JSC$11961_request_.JSC$9739_withCredentials_=c.JSC$11961_withCredentials_;
c.JSC$11961_eventHandler_.removeAll();c.JSC$11961_eventHandler_.listen(c.JSC$11961_request_,"progress",c.onUploadProgress_);Z=(0,_.n1)(c.JSC$11963_onUploadComplete_,c,c.offset_+q.size,M);c.JSC$11961_eventHandler_.listen(c.JSC$11961_request_,"complete",Z);c.lastCommandResponseCode_=null;c.dispatchEvent(new HQ("q"));M=Object.assign({},c.JSC$11961_headers_||{},{"X-Goog-Upload-Command":"upload"+(M?", finalize":""),"X-Goog-Upload-Offset":c.offset_});c.JSC$11961_request_.send(d,"POST",q,M);break;case "Query":c.JSC$11961_request_=
new AB;c.JSC$11961_eventHandler_.removeAll();c.JSC$11961_eventHandler_.listen(c.JSC$11961_request_,"complete",c.onQueryComplete_);d=Object.assign({},c.JSC$11961_headers_||{},{"X-Goog-Upload-Command":"query"});c.JSC$11961_request_.send(c.transferHandle_.uploadUrl_,"POST","",d);c.lastCommandResponseCode_=null;c.dispatchEvent(new HQ("q"));break;default:throw Error("cf");}})||tB(c,"Transfer encountered too many consecutive failures.")},tB=function(c,f){c.state_="Error";
c.JSC$11961_errorDescription_=f;c.dispatchEvent(new mv("n"))};
Yf.prototype.onStartComplete_=function(c){var f=c.target;this.lastCommandResponseCode_=f.getStatus();this.dispatchEvent(new HQ("r"));if(kU3(f))OoK(this,f);else if(lDr(f)){c=US(c.target.getAllResponseHeaders());for(var d in c)_.Z4(d.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new mv("m"));d=Ss(c,"X-Goog-Upload-URL");c=(c=Ss(c,"X-Goog-Upload-Chunk-Granularity"))?parseInt(c,10):1;d===void 0||isNaN(c)||c<=0?tB(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
c)*c,this.transferHandle_=new q5O(d),this.dispatchEvent(new mv("p")),this.state_="Upload",this.retryIterator_.reset(),FL(this))}else FL(this)};
Yf.prototype.onUploadProgress_=function(c){this.JSC$11961_bytesTransferred_=this.offset_+c.loaded;this.dispatchEvent(new mv("k"))};
Yf.prototype.JSC$11963_onUploadComplete_=function(c,f,d){var q=this,Z,M;return _.k(function(g){switch(g.nextAddress){case 1:Z=d.target;q.lastCommandResponseCode_=Z.getStatus();q.dispatchEvent(new HQ("r"));if(s__(Z)||Z.getStatus()==404)return q.JSC$11961_bytesTransferred_=c,OoK(q,Z),g.return();if(lDr(Z)){g.jumpTo(2);break}if(!(M=q.detectCorruptedBlobEnabled_)){g.jumpTo(3);break}return g.yield(B4u(q),4);case 4:M=g.yieldResult;case 3:if(M)return tB(q,"Blob has been modified or corrupted."),g.return();
q.requireUploadRequestModification_=Z.getStatus()==400;q.state_="Query";FL(q);return g.return();case 2:if(f)return tB(q,"Got a non-final success response after issuing a finalize command."),g.return();q.JSC$11961_bytesTransferred_=c;q.offset_=c;q.retryIterator_.reset();FL(q);return g.return()}})};
Yf.prototype.onQueryComplete_=function(c){var f=c.target;this.lastCommandResponseCode_=f.getStatus();this.dispatchEvent(new HQ("r"));kU3(f)?(f.getStatus()===200&&(this.JSC$11961_bytesTransferred_=this.blob_.size),OoK(this,f)):lDr(f)?(c=US(c.target.getAllResponseHeaders()),c=parseInt(Ss(c,"X-Goog-Upload-Size-Received"),10),isNaN(c)?tB(this,"Server did not respond with current offset."):c<this.offset_?tB(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
c+"."):this.requireUploadRequestModification_&&this.offset_===c?tB(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<c&&this.retryIterator_.reset(),this.offset_=this.JSC$11961_bytesTransferred_=c,this.state_="Upload",FL(this))):FL(this)};
var OoK=function(c,f){c.JSC$11961_responseCode_=f.getStatus();var d=US(f.getAllResponseHeaders());hIe(d);c.JSC$11961_responseText_=f.getResponseText();c.state_="Response received";c.dispatchEvent(new mv("l"))},lDr=function(c){var f=c.getStatus();
c=US(c.getAllResponseHeaders());c=Ss(c,"X-Goog-Upload-Status");return f===200&&c==="active"},s__=function(c){c=US(c.getAllResponseHeaders());
return Ss(c,"X-Goog-Upload-Status")==="final"},kU3=function(c){if(s__(c))return!0;
c=c.getStatus();return c>=400&&c<500},B4u=function(c){var f;
return _.k(function(d){if(d.nextAddress==1){if(!c.blob_||c.originalBlobSize_<=0)return d.return(!1);if(c.blob_.size!==c.originalBlobSize_)return d.return(!0);_.iY(d,2);if(f=iWT(c.blob_,0,1)){var q=d.yield,Z=new Wd,M=xLj(Z);Z.reader_.readAsBinaryString(f);d=q.call(d,M,4)}else d=d.return(!0);return d}if(d.nextAddress!=2)return d.return(c.blob_.size!==c.originalBlobSize_);_.Yw(d);return d.return(!0)})};var io_=function(c,f,d,q,Z,M){_.KF.call(this);this.payload_=q;this.JSC$11964_url_=c;this.JSC$11964_method_=f;this.JSC$11964_headers_=d;this.JSC$11964_metadata_=Z;this.encoding_=M||"binary";c=new _.$X;this.boundary_="uploader-"+Wu()+"-"+c.JSC$11219_toIsoString();this.JSC$11964_responseText_=this.JSC$11964_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11964_errorDescription_=null;this.JSC$11964_eventHandler_=new _.r2(this);_.ln(this,this.JSC$11964_eventHandler_)};
_.K(io_,Zoy);_.r=io_.prototype;
_.r.run=function(){var c=_.zV.clone(this.JSC$11964_headers_);this.payload_.length!=null&&(c["Content-Length"]=this.payload_.length);c=vGM(c);c["X-Goog-Upload-Protocol"]="multipart";c["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new AB;this.JSC$11964_eventHandler_.removeAll();this.JSC$11964_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11964_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11964_url_,this.JSC$11964_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11964_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",c)};
_.r.getResponseCode=function(){return this.JSC$11964_responseCode_};
_.r.getResponseText=function(){return this.JSC$11964_responseText_};
_.r.JSC$29243_getErrorDescription=function(){return this.JSC$11964_errorDescription_};
_.r.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11964_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new mv("o")))};
_.r.pause=function(){};
_.r.onTransferProgress_=function(){this.dispatchEvent(new mv("k"))};
_.r.onTransferComplete_=function(c){var f=c.target.getStatus();f===void 0||f===-1?(this.JSC$11964_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new mv("n"))):(this.JSC$11964_responseCode_=f,c=c.target,f=US(c.getAllResponseHeaders()),hIe(f),this.JSC$11964_responseText_=c.getResponseText(),this.state_="Complete",this.dispatchEvent(new mv("l")))};_.T4_=function(c,f,d,q){q=q===void 0?!1:q;if(d instanceof fD3)return new MjH(c,"POST",f,d.getInputElement(),"");if(typeof d==="string"||d instanceof String)return new io_(c,"POST",f,d,"");var Z=new Yf(void 0);Z.JSC$11961_url_=c;Z.JSC$11961_method_="POST";Z.JSC$11961_headers_=f;Z.blob_=d;Z.originalBlobSize_=d.size;Z.JSC$11961_metadata_="";q&&(Z.JSC$11961_withCredentials_=q);Z.state_="Start";return Z};var bq=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(bq,_.d8);_.r=bq.prototype;_.r.getEnableSsEngine=function(){return _.LS(this,2)};
_.r.getEnableAwr=function(){return _.LS(this,3)};
_.r.getAlohaAutoGaRollout=function(){return _.LS(this,5)};
_.r.getEnableConfigurator=function(){return _.LS(this,6)};
_.r.getEnableMweb=function(){return _.LS(this,7)};
var HoT=function(){var c=m0_();return _.zc(c,7,!0)};
bq.prototype.getEnableCtlConsentCheckbox=function(){return _.LS(this,8)};
bq.prototype.getEnableIframe=function(){return _.LS(this,9)};
var m0_=function(){var c=new bq;c=_.zc(c,5,!0);c=_.zc(c,2,!0);c=_.zc(c,4,!1);c=_.zc(c,8,!0);return _.zc(c,9,!0)};
bq.prototype.getEnableScreenshotNudge=function(){return _.LS(this,10)};
var AqO=function(){var c=HoT();return _.zc(c,10,!0)};
bq.prototype.getEnableWebStartupConfigEndpoint=function(){return _.LS(this,11)};
bq.prototype.getEnableJunkNudge=function(){return _.LS(this,12)};
var q4z=function(){var c=AqO();return _.zc(c,12,!0)};
_.r=bq.prototype;_.r.getEnableConfiguratorLocale=function(){return _.LS(this,13)};
_.r.getEnableTinyNoPointer=function(){return _.LS(this,14)};
_.r.getEnableSupportSessionLogging=function(){return _.LS(this,15)};
_.r.getEnableFileUploadForScreenshot=function(){return _.LS(this,16)};
_.r.getEnableDirectDeflectionForSingleCategory=function(){return _.LS(this,17)};
_.r.getEnableImageSanitization=function(){return _.LS(this,18)};
_.r.getEnableAlohaBinarySplit=function(){return _.LS(this,19)};
_.r.getEnableDbFeedbackIntents=function(){return _.LS(this,20)};
_.r.getEnableMarkMandatoryFieldsWithRequired=function(){return _.LS(this,21)};
_.r.getEnableFeedbackCategoryCustomUi=function(){return _.LS(this,22)};
_.r.getEnableRealtimeCtl=function(){return _.LS(this,23)};var j$e=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(j$e,_.d8);var wfl=[/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 W6r="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 DKn=_.pp(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),eIr=_.pp(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Ikl,UKe,PJG,pfk;var Y5H,Fbv;
Y5H=function(c,f,d){c.timeOfStartCall=(new Date).getTime();var q=d||_.dz,Z=q.document,M=c.nonce||_.Rh(q.document);M&&!c.nonce&&(c.nonce=M);if(c.flow=="help"){var g=_.D5("document.location.href",q);!c.helpCenterContext&&g&&(c.helpCenterContext=g.substring(0,1200));g=!0;if(f&&JSON&&JSON.stringify){var O=JSON.stringify(f);(g=O.length<=1200)&&(c.psdJson=O)}g||(f={invalidPsd:!0})}f=[c,f,d];q.GOOGLE_FEEDBACK_START_ARGUMENTS=f;d=c.feedbackServerUri||"//www.google.com/tools/feedback";if(g=q.GOOGLE_FEEDBACK_START)g.apply(q,f);
else{q=d+"/load.js?";for(var l in c)f=c[l],f==null||_.Ik(f)||(q+=encodeURIComponent(l)+"="+encodeURIComponent(f)+"&");c=tT(Z).createElement("SCRIPT");M&&c.setAttribute("nonce",M);_.oh(c,_.bX(q));Z.body.appendChild(c)}};
Fbv=function(c,f,d,q){var Z,M;_.k(function(g){Z=d||_.dz;var O=c.serverEnvironment==="DEV",l=d||_.dz;l=c.nonce||_.Rh(l.document);O={integrationKeys:{productId:c.productId,feedbackBucket:c.bucket,triggerId:c.triggerId},callbacks:{onClose:c.callback,onLoad:c.onLoadCallback},formContent:{locale:c.locale,disableScreenshot:c.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:c.abuseLink,additionalDataConsent:c.additionalDataConsent},initializationData:{isLocalServer:O,nonce:l,useNightlyRelease:O,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:c.feedbackServerUri,colorScheme:c.colorScheme},extraData:{productVersion:c.productVersion,authUser:c.authuser,configuratorId:c.configuratorId,customZIndex:c.customZIndex,tinyNoPointer:c.tinyNoPointer,
allowNonLoggedInFeedback:c.allowNonLoggedInFeedback,enableAnonymousFeedback:c.enableAnonymousFeedback}};f&&(l=new Map(Object.entries(f)),O.extraData.productSpecificData=l);M=O;return g.yield(cWn(M,q,Z),0)})};
_.tju=function(c,f,d){try{if(c.flow==="help"){var q=c.helpCenterPath.replace(/^\//,"");_.PU(d||window,"https://support.google.com/"+q)}else c.flow==="submit"?Y5H(c,f,d):Zie(c.productId,c.feedbackServerUri).then(function(Z){Z=_.TD(Z,bq,1);var M=!Eme||(Z==null?void 0:Z.getEnableMweb()),g=!c.tinyNoPointer||(Z==null?void 0:Z.getEnableTinyNoPointer());!Z||Z.getAlohaAutoGaRollout()&&M&&g?Fbv(c,f,d,Z):Y5H(c,f,d)},function(Z){Z&&Z.name!=="DuplicateFormError"&&Y5H(c,f,d)})}catch(Z){Fbv(c,f,d,null)}};
_.fu("userfeedback.api.startFeedback",_.tju);var MkG=/https?:\/\/\S+\.\S+/,rWh=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],CBh=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var NLr=function(c){var f=c.split(""),d=[-263237435,15,f,function(q,Z,M){var g=Z.length;M.forEach(function(O,l,m){this.push(m[l]=Z[(Z.indexOf(O)-Z.indexOf(this[l])+l+g--)%Z.length])},q.split(""))},
function(q,Z){q=(q%Z.length+Z.length)%Z.length;Z.splice(-q).reverse().forEach(function(M){Z.unshift(M)})},
"response",function(){for(var q=64,Z=[];++q-Z.length-32;){switch(q){case 58:q-=14;case 91:case 92:case 93:continue;case 123:q=47;case 94:case 95:case 96:continue;case 46:q=95}Z.push(String.fromCharCode(q))}return Z},
null,12,1540023973,65941107,null,f,function(q,Z){for(q=(q%Z.length+Z.length)%Z.length;q--;)Z.unshift(Z.pop())},
695603893,function(q){for(var Z=q.length;Z;)q.push(q.splice(--Z,1)[0])},
"'[;'[(",function(q,Z){q.push(Z)},
null,function(q,Z,M,g,O){return Z(M,g,O)},
"continuation",f,function(q,Z){if(q.length!=0){Z=(Z%q.length+q.length)%q.length;var M=q[0];q[0]=q[Z];q[Z]=M}},
function(){for(var q=64,Z=[];++q-Z.length-32;){switch(q){case 91:q=44;continue;case 123:q=65;break;case 65:q-=18;continue;case 58:q=96;continue;case 46:q=95}Z.push(String.fromCharCode(q))}return Z},
'"),/]];'];d[7]=d;d[11]=d;d[18]=d;try{(((0,d[15])(d[21]),d[22])(d[11],d[9]),d[22])(d[new Date("1970-01-01T04:30:12.000+04:30")/1E3],d[1]),((0,d[22])(d[11],d[23]),d[4])(d[10],d[18]),(0,d[20])(d[21],d[14])<<(0,d[17])(d[18],d[1]),(0,d[4])(d[8],d[21]),(0,d[19])((0,d[19])((0,d[17])(d[7],d[9]),d[3],d[20],(0,d[6])(),d[2]),d[3],d[5],(0,d[15])(),d[2])}catch(q){return"aTlOUOubTO4AP____8P_"+c}return f.join("")};_.boy=new _.fi("runAttestationCommand");var Kb3=new _.fi("verifyCommand");_.Kz=new _.fi("accessibilityContext");var Ex3=new _.fi("accessibilityData");var nxH=new _.fi("profileCardCommand");var u6h=new _.fi("signInEndpoint");var XEY=new _.fi("signOutEndpoint");var Q_O;_.$0v=new _.fi("accountItemSectionRenderer");Q_O=new _.fi("accountItemRenderer");_.S5_=new _.fi("saveCommandToSessionStorageAction");var Lb3=new _.fi("crossAccountChannelTransferEndpoint");var zbz=new _.fi("getAccountMenuEndpoint");_.JyN=new _.fi("getAccountSwitcherEndpoint");var LOM=new _.fi("getAccountsListEndpoint");var z8_=new _.fi("getAccountsListInnertubeEndpoint");_.EB=new _.fi("addToToastAction");var JqH=new _.fi("hideEnclosingAction");_.nz=new _.fi("replaceEnclosingAction");var aDu=new _.fi("buttonRefreshAction");var Vjj=new _.fi("adsControlFlowOpportunityReceivedCommand");var X1H=new _.fi("openAdAllowlistInstructionCommand");var uB3=new _.fi("videoMastheadAdPrimaryVideoRenderer");var vxr=new _.fi("displayAdRenderer");var oq4=new _.fi("instreamVideoAdRenderer");_.h8_=new _.fi("inFeedAdLayoutRenderer");var w1T=new _.fi("sequenceItemInPlayerAdLayoutRenderer");_.yqO=new _.fi("adSlotRenderer");var Wb_=new _.fi("adAvatarViewModel");var D0o=new _.fi("adBadgeViewModel");var e83=new _.fi("adImageViewModel");var kLk=new _.fi("reelsAdCardButtonedViewModel");var N4y=new _.fi("reelsPlayerOverlayLayoutViewModel");var IDy=new _.fi("showSchedulingPanelCommand");var P4_=new _.fi("backstageCommentsRenderer");var R8K=new _.fi("backstageImageRenderer");var U0H=new _.fi("backstagePostRenderer");var p1H=new _.fi("backstageZeroStateRenderer");var x0K=new _.fi("postRenderer");var oxy=new _.fi("sharedPostRenderer");var GUO=new _.fi("createBackstagePostEndpoint");var cCT=new _.fi("getPostVideoPreviewEndpoint");var fHv=new _.fi("updateBackstagePostEndpoint");var dUo=new _.fi("filterChipTransformCommand");var jp3=new _.fi("insertRichSectionCommand");var jIn=new _.fi("talkToRecsDeselectCommand");var qAj=new _.fi("talkToRecsNextCommand");var drG=new _.fi("talkToRecsSelectCommand");var ZFj=new _.fi("talkToRecsUpdateTextCommand");_.Fw=new _.fi("browseEndpoint");_.MW3=new _.fi("confirmDialogEndpoint");var rCT=new _.fi("expandOnHoverCardRenderer");var Cp_=new _.fi("lumiereShelfDetailsRenderer");var goy=new _.fi("revealBusinessEmailCommand");var koo=new _.fi("validateChannelHandleCommand");var OFK=new _.fi("channelCreationFormEndpoint");var lHy=new _.fi("aboutChannelViewModel");var spu=new _.fi("channelThumbnailWithLinkRenderer");var B7v=new _.fi("channelCreationServiceEndpoint");var iFu=new _.fi("updateChannelPageSettingsEndpoint");var $f=function(c){this.delegate=c},Qb=function(){$f.apply(this,arguments)};
_.K(Qb,$f);_.ci.Object.defineProperties(Qb.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(c){this.delegate.entityMetadata=c}}});var T7v=function(){Qb.apply(this,arguments)};
_.K(T7v,Qb);T7v.prototype.getAssociations=function(){return[]};
T7v.prototype.getTypeName=function(){return"channelHandle"};var aoM=new _.fi("webThumbnailDetailsExtensionData");var Mpk=new _.fi("commandContext");var mU3=new _.fi("addVideoLinkAction");var HFH=new _.fi("banAuthorAction");var ACu=new _.fi("createCommentAction");var YAO=new _.fi("createCommentReplyAction");var FJ3=new _.fi("createPollAction");var tW3=new _.fi("hideIdentityChipAction");var bFF=new _.fi("openUpdateCommentDialogAction");var KJr=new _.fi("pinCommentAction");var EoH=new _.fi("removeCommentAction");var noo=new _.fi("unpinCommentAction");var Sw=new _.fi("updateBackstagePollAction");var $U_=new _.fi("updateCommentVoteAction");var Qpu=new _.fi("commentThreadRenderer");var SAO=function(){Qb.apply(this,arguments)};
_.K(SAO,Qb);SAO.prototype.getAssociations=function(){return[]};
SAO.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var LJ_=function(){Qb.apply(this,arguments)};
_.K(LJ_,Qb);LJ_.prototype.getAssociations=function(){return[]};
LJ_.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.zq3=new _.fi("commentDialogRenderer");var JCy=new _.fi("reloadCommentsCommand");var aHu=new _.fi("updateCommentsSettingsEndpoint");var VWr=new _.fi("commentViewModel");var X2o=new _.fi("triStateButtonViewModel");var u9u=new _.fi("voiceReplyContainerViewModel");_.BO=new _.fi("commandExecutorCommand");var wN=new _.fi("emoji");var voF=new _.fi("updateCreatorChannelInnertubeCommand");_.hqy=new _.fi("appendContinuationItemsAction");_.w2_=new _.fi("changeEngagementPanelVisibilityAction");_.Pr=new _.fi("continuationCommand");var yCy=new _.fi("hideReportedCommentAction");var WJT=new _.fi("listMutationCommand");_.Lz=new _.fi("openPopupAction");var DU3=new _.fi("persistSubscriptionsDisplayPreferencesCommand");var xUF;_.eqO=new _.fi("playlistRemoveVideosAction");_.N7T=new _.fi("updatePlaylistAction");_.IH3=new _.fi("addToPlaylistCommand");_.PpO=new _.fi("endPlaylistCommand");_.Rq_=new _.fi("recoverPlaylistCommand");_.UUv=new _.fi("refreshPlaylistCommand");_.p2F=new _.fi("refreshFormCommand");xUF=new _.fi("openOnePickAddVideoModalCommand");_.hbn=new _.fi("reloadContinuationItemsCommand");_.oor=new _.fi("scrollToEngagementPanelCommand");var Go_=new _.fi("selectCountryCommand");var cMO=new _.fi("showReloadUiCommand");var fk3=new _.fi("undoFeedbackAction");var dKv=new _.fi("updateButtonAction");var j5H=new _.fi("updateSubscribeButtonAction");var qK3=new _.fi("updateToggleAction");var Z03=new _.fi("webNativeShareCommand");_.jO=new _.fi("webCommandMetadata");_.z2=new _.fi("webHandleServiceEndpointExtension");var SF4=new _.fi("webNavigationEndpointData");var Mny=new _.fi("backgroundAudioPlaybackCommand");var rMO=new _.fi("copyLinkCommand");var CJ3=new _.fi("playlistVotingRefreshPopupCommand");var gGo=new _.fi("selectChipCommand");var ker=new _.fi("setCookieCommand");var O03=new _.fi("setLocalStorageCommand");var lk_=new _.fi("setPrefStorageEntryCommand");var T3y;_.s5u=new _.fi("settingsUpdateCheckboxCommand");_.B3r=new _.fi("settingsUpdateTextCommand");_.i0v=new _.fi("settingsUpdateOptionsCommand");T3y=new _.fi("settingsUpdateSwitchCommand");_.mK_=new _.fi("settingsUpdateConnectedAppRendererCommand");var H03=new _.fi("updateTextInputFormFieldRendererCommand");var AMr=new _.fi("updateToggleButtonStateCommand");var YKF=new _.fi("updateUrlParamCommand");var F6y=new _.fi("webSubmitFormCommand");var tno=new _.fi("channelSwitcherPageRenderer"),b0r=new _.fi("updateChannelSwitcherPageAction");_.jJ=new _.fi("continuationItemRenderer");_.JB=new _.fi("richItemRenderer");var K6y=new _.fi("richSectionRenderer");_.EGK=new _.fi("richShelfRenderer");_.nGT=new _.fi("metadataBadgeRenderer");_.$K_=new _.fi("multiPageMenuNotificationSectionRenderer");_.Q5o=new _.fi("playlistLoopButtonStateRenderer");var SKK=new _.fi("claimLegacyYoutubeChannelEndpoint");var L6_=new _.fi("getNotificationMenuEndpoint");var zIH=new _.fi("getSearchInVideoCommand");_.JM_=new _.fi("getTranscriptEndpoint");_.Ti=new _.fi("signalServiceEndpoint");var ako=new _.fi("verifyAgeEndpoint");var RMY=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(RMY,_.d8);RMY.prototype.getPath=function(){return _.aW(this,1)};
RMY.prototype.getValue=function(){return _.aW(this,2)};var VnH=[0,_.x9,-1];var XfT=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(XfT,_.d8);var POr=_.kh(XfT,[0,_.oW,VnH]);var ulK=new _.fi("dismissalEndpoint");var vGu=new _.fi("elementsCommand");_.Wh=new _.fi("innertubeCommand");var hIr=new _.fi("multipleInlinePlaybackCommand");var sDP=new _.fi("loggingDirectives");var wf_=new _.fi("acknowledgeChannelTouStrikeCommand");var yMT=function(){Qb.apply(this,arguments)};
_.K(yMT,Qb);yMT.prototype.getAssociations=function(){return[]};
yMT.prototype.getTypeName=function(){return"booleanEntity"};var W6j=function(){Qb.apply(this,arguments)};
_.K(W6j,Qb);W6j.prototype.getAssociations=function(){return[]};
W6j.prototype.getTypeName=function(){return"stringEntity"};var dy=new _.fi("entityBatchUpdate");_.DKF=new _.fi("entityUpdateCommand");var eIj=function(){Qb.apply(this,arguments)};
_.K(eIj,Qb);eIj.prototype.getAssociations=function(){var c=[];this.delegate.alternateChannel&&c.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&c.push.apply(c,_.LT(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&c.push(this.delegate.oneofChannelEntity);return[].concat(_.LT(new Set(c)))};
eIj.prototype.getTypeName=function(){return"fakeChannel"};var N3K=function(){Qb.apply(this,arguments)};
_.K(N3K,Qb);N3K.prototype.getAssociations=function(){var c=[];this.delegate.entryCollection&&c.push(this.delegate.entryCollection);return[].concat(_.LT(new Set(c)))};
N3K.prototype.getTypeName=function(){return"fakePlaylist"};
var Ik_=function(){Qb.apply(this,arguments)};
_.K(Ik_,Qb);Ik_.prototype.getAssociations=function(){var c=[];this.delegate.parentPlaylist&&c.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var f=_.C(this.delegate.entries),d=f.next();!d.done;d=f.next())c.push.apply(c,_.LT((new PJ_(d.value)).getAssociations()));return[].concat(_.LT(new Set(c)))};
Ik_.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var PJ_=function(){$f.apply(this,arguments)};
_.K(PJ_,$f);PJ_.prototype.getAssociations=function(){var c=[];this.delegate.video&&c.push(this.delegate.video);return[].concat(_.LT(new Set(c)))};var RI_=function(){Qb.apply(this,arguments)};
_.K(RI_,Qb);RI_.prototype.getAssociations=function(){var c=[];this.delegate.descriptionEntity&&c.push(this.delegate.descriptionEntity);this.delegate.creators&&c.push.apply(c,_.LT(this.delegate.creators));this.delegate.theBiggestFan&&c.push(this.delegate.theBiggestFan);return[].concat(_.LT(new Set(c)))};
RI_.prototype.getTypeName=function(){return"fakeVideo"};
var UKr=function(){Qb.apply(this,arguments)};
_.K(UKr,Qb);UKr.prototype.getAssociations=function(){return[]};
UKr.prototype.getTypeName=function(){return"fakeVideoDescription"};var pfK=new _.fi("fantasyRosterViewModel");var xKO=new _.fi("addFollowUpSurveyCommand");var oG3=new _.fi("getSurveyCommand");var Ge_=new _.fi("ratingSurveyOptionRenderer");_.Xb=new _.fi("feedbackEndpoint");var cWF=new _.fi("reportHistoryTableCellRenderer"),fnF=new _.fi("reportHistoryTableTextCellRenderer"),d__=new _.fi("reportHistoryTableReasonCellRenderer");_.j$r=new _.fi("flagEndpoint");var q4o=new _.fi("getFlowCommand");var Zir=new _.fi("submitFormWithValidationFlowCommand");var Mk_=function(){Qb.apply(this,arguments)};
_.K(Mk_,Qb);Mk_.prototype.getAssociations=function(){return[]};
Mk_.prototype.getTypeName=function(){return"flowStateEntity"};var rWT=new _.fi("flowFormState");var CBT=new _.fi("gameCardRenderer");var g3u=new _.fi("accountLinkingStateChangedCommand");var kNF=function(){Qb.apply(this,arguments)};
_.K(kNF,Qb);kNF.prototype.getAssociations=function(){return[]};
kNF.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Oir=new _.fi("changeMiniAppPlayStateCommand");var lnj=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(lnj,_.d8);var aE=[1,2,3];var s$_=[0,aE,GJN,_.cIn,Iqn];var BEv=_.kh(lnj,s$_),iir=_.OW(s$_);var TE_=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(TE_,_.d8);var m_3=[0,_.RW,_.x9];var Hi3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Hi3,_.d8);var AWy=[0,_.x9,_.RW,-1];var Vb=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Vb,_.d8);var Y4K=_.OW([0,1,m_3,_.c1,AWy]);var Fpy=new _.fi("miniAppScoreChallengeViewModel");var tkO=new _.fi("miniGameCardViewModel");var biu=new _.fi("teaserCardViewModel");var Kp3=function(){Qb.apply(this,arguments)};
_.K(Kp3,Qb);Kp3.prototype.getAssociations=function(){return[]};
Kp3.prototype.getTypeName=function(){return"logoEntity"};_.E3j=new _.fi("feedbackItemRenderer");var n3_=function(){Qb.apply(this,arguments)};
_.K(n3_,Qb);n3_.prototype.getAssociations=function(){return[]};
n3_.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.$__=new _.fi("playerInterstitialRenderer");var Q$_=new _.fi("getKidsBlocklistPickerCommand");_.S4K=new _.fi("updateKidsBlacklistEndpoint");var LpF=new _.fi("learningJourneyCanvasCommand");_.e4=new _.fi("likeEndpoint");var zO3,JWH,anH;zO3=new _.fi("addChatItemAction");JWH=new _.fi("removeChatItemAction");anH=new _.fi("markChatItemAsDeletedAction");_.Vk3=new _.fi("setLiveChatCollapsedStateAction");var XaT=function(){Qb.apply(this,arguments)};
_.K(XaT,Qb);XaT.prototype.getAssociations=function(){return[]};
XaT.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var ueK=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ueK,_.d8);var v33=_.kh(ueK,[0,1,_.RW]);var hOj=new _.fi("liveChatEndpoint");var waT=new _.fi("liveChatItemContextMenuEndpoint");var yW_=new _.fi("liveChatReplayEndpoint");_.Wpr=new _.fi("emojiPickerRenderer");var D_3=new _.fi("liveChatAuthorBadgeViewModel");var eOo=new _.fi("deleteLiveChatMessageCommand");var NEo=new _.fi("liveChatActionEndpoint");var InK=new _.fi("createLiveChatPollEndpoint");var PBT=new _.fi("manageLiveChatUserEndpoint");var ROO=new _.fi("moderateLiveChatEndpoint");_.U_r=new _.fi("sendLiveChatMessageEndpoint");var pa_=new _.fi("sendLiveChatVoteEndpoint");var x_K=new _.fi("clearLocationCommand");var o3v=new _.fi("resolveLocationCommand");var GNy=new _.fi("interactionLoggingCommandMetadata");var cRv=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(cRv,_.d8);var fu_=function(c,f){return _.C1(c,1,f)};var dMj=[0,_.pS];var jYO=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(jYO,_.d8);var qPH=function(c,f){return AN(c,1,cRv,f)};jYO.prototype.JSC$12058_serializeBinary=uDe([0,_.oW,dMj]);var Lpn={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 Z8O={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"},
Mly={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 RGM={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"};_.cZh=new _.fi("logFlowLoggingEventCommand");_.Kx=new _.fi("loggingContext");var rR3=new _.fi("captionLanguageSelectActionCommand");var C0r=new _.fi("showCaptionLanguageSelectActionCommand");var gXu=new _.fi("dismissDialogEndpoint");var kyu=new _.fi("dismissPlayerOverlayCommand");var O8_=new _.fi("hideItemSectionVideosByIdCommand");var luO=new _.fi("showMiniplayerCommand");var sYu=function(){Qb.apply(this,arguments)};
_.K(sYu,Qb);sYu.prototype.getAssociations=function(){return[]};
sYu.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var Bhy=function(){Qb.apply(this,arguments)};
_.K(Bhy,Qb);Bhy.prototype.getAssociations=function(){return[]};
Bhy.prototype.getTypeName=function(){return"downloadStatusEntity"};var i8u=function(){Qb.apply(this,arguments)};
_.K(i8u,Qb);i8u.prototype.getAssociations=function(){return[]};
i8u.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var Th3=function(){Qb.apply(this,arguments)};
_.K(Th3,Qb);Th3.prototype.getAssociations=function(){var c=[];this.delegate.downloadsList&&c.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&c.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&c.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&c.push(this.delegate.refresh);return[].concat(_.LT(new Set(c)))};
Th3.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var mM3=function(){Qb.apply(this,arguments)};
_.K(mM3,Qb);mM3.prototype.getAssociations=function(){var c=[];this.delegate.refresh&&c.push(this.delegate.refresh);if(this.delegate.downloads)for(var f=_.C(this.delegate.downloads),d=f.next();!d.done;d=f.next())c.push.apply(c,_.LT((new H8o(d.value)).getAssociations()));return[].concat(_.LT(new Set(c)))};
mM3.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var H8o=function(){$f.apply(this,arguments)};
_.K(H8o,$f);H8o.prototype.getAssociations=function(){var c=[];this.delegate.video&&c.push(this.delegate.video);this.delegate.playlist&&c.push(this.delegate.playlist);this.delegate.videoItem&&c.push(this.delegate.videoItem);this.delegate.playlistItem&&c.push(this.delegate.playlistItem);return[].concat(_.LT(new Set(c)))};var AR_=function(){Qb.apply(this,arguments)};
_.K(AR_,Qb);AR_.prototype.getAssociations=function(){var c=[];this.delegate.localImageEntities&&c.push.apply(c,_.LT(this.delegate.localImageEntities));return[].concat(_.LT(new Set(c)))};
AR_.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var YP_=function(){Qb.apply(this,arguments)};
_.K(YP_,Qb);YP_.prototype.getAssociations=function(){var c=[];this.delegate.playbackData&&c.push(this.delegate.playbackData);this.delegate.localImageEntities&&c.push.apply(c,_.LT(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&c.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LT(new Set(c)))};
YP_.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var FPH=function(){Qb.apply(this,arguments)};
_.K(FPH,Qb);FPH.prototype.getAssociations=function(){return[]};
FPH.prototype.getTypeName=function(){return"offlineabilityEntity"};var tlO=function(){Qb.apply(this,arguments)};
_.K(tlO,Qb);tlO.prototype.getAssociations=function(){var c=[];this.delegate.fakeChildren&&c.push.apply(c,_.LT(this.delegate.fakeChildren));return[].concat(_.LT(new Set(c)))};
tlO.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var b8v=function(){Qb.apply(this,arguments)};
_.K(b8v,Qb);b8v.prototype.getAssociations=function(){var c=[];this.delegate.video&&c.push(this.delegate.video);this.delegate.playbackData&&c.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&c.push(this.delegate.offlineVideoPolicy);return[].concat(_.LT(new Set(c)))};
b8v.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var KP3=function(){Qb.apply(this,arguments)};
_.K(KP3,Qb);KP3.prototype.getAssociations=function(){return[]};
KP3.prototype.getTypeName=function(){return"continuationTokenEntity"};var EXy=function(){Qb.apply(this,arguments)};
_.K(EXy,Qb);EXy.prototype.getAssociations=function(){var c=[];this.delegate.channelOwner&&c.push(this.delegate.channelOwner);this.delegate.videos&&c.push.apply(c,_.LT(this.delegate.videos));this.delegate.collaboratorChannels&&c.push.apply(c,_.LT(this.delegate.collaboratorChannels));this.delegate.downloadState&&c.push(this.delegate.downloadState);this.delegate.refresh&&c.push(this.delegate.refresh);return[].concat(_.LT(new Set(c)))};
EXy.prototype.getTypeName=function(){return"mainPlaylistEntity"};var nXK=function(){Qb.apply(this,arguments)};
_.K(nXK,Qb);nXK.prototype.getAssociations=function(){var c=[];this.delegate.video&&c.push(this.delegate.video);this.delegate.channelContributor&&c.push(this.delegate.channelContributor);return[].concat(_.LT(new Set(c)))};
nXK.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var $Mv=function(){$f.apply(this,arguments)};
_.K($Mv,$f);$Mv.prototype.getAssociations=function(){var c=[];this.delegate.recommendedVideoMetadata&&c.push.apply(c,_.LT((new QY_(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.LT(new Set(c)))};
var QY_=function(){$f.apply(this,arguments)};
_.K(QY_,$f);QY_.prototype.getAssociations=function(){var c=[];this.delegate.localImageEntities&&c.push.apply(c,_.LT(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&c.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LT(new Set(c)))};var SP_=function(){$f.apply(this,arguments)};
_.K(SP_,$f);SP_.prototype.getAssociations=function(){var c=[];this.delegate.playbackPosition&&c.push(this.delegate.playbackPosition);return[].concat(_.LT(new Set(c)))};var LPH=function(){Qb.apply(this,arguments)};
_.K(LPH,Qb);LPH.prototype.getAssociations=function(){var c=[];this.delegate.owner&&c.push(this.delegate.owner);this.delegate.downloadState&&c.push(this.delegate.downloadState);this.delegate.userState&&c.push.apply(c,_.LT((new SP_(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&c.push.apply(c,_.LT((new $Mv(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.LT(new Set(c)))};
LPH.prototype.getTypeName=function(){return"mainVideoEntity"};var z9y=function(){Qb.apply(this,arguments)};
_.K(z9y,Qb);z9y.prototype.getAssociations=function(){var c=[];this.delegate.userChannelDetails&&c.push(this.delegate.userChannelDetails);return[].concat(_.LT(new Set(c)))};
z9y.prototype.getTypeName=function(){return"ytMainChannelEntity"};var JRO=function(){Qb.apply(this,arguments)};
_.K(JRO,Qb);JRO.prototype.getAssociations=function(){var c=[];this.delegate.channelOwner&&c.push(this.delegate.channelOwner);this.delegate.playbackPosition&&c.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&c.push.apply(c,_.LT(this.delegate.localImageEntities));this.delegate.downloadStatus&&c.push(this.delegate.downloadStatus);return[].concat(_.LT(new Set(c)))};
JRO.prototype.getTypeName=function(){return"ytMainVideoEntity"};var QXh=new _.fi("downloadsPageSmartDownloadsOptInBannerParams");var Jue=new _.fi("downloadsPageUpsellBannerParams");var auu=function(){Qb.apply(this,arguments)};
_.K(auu,Qb);auu.prototype.getAssociations=function(){return[]};
auu.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var Vlu=function(){Qb.apply(this,arguments)};
_.K(Vlu,Qb);Vlu.prototype.getAssociations=function(){return[]};
Vlu.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Xd_=function(){Qb.apply(this,arguments)};
_.K(Xd_,Qb);Xd_.prototype.getAssociations=function(){return[]};
Xd_.prototype.getTypeName=function(){return"macroMarkerEntity"};var uIy=function(){Qb.apply(this,arguments)};
_.K(uIy,Qb);uIy.prototype.getAssociations=function(){return[]};
uIy.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var vXF=function(){Qb.apply(this,arguments)};
_.K(vXF,Qb);vXF.prototype.getAssociations=function(){return[]};
vXF.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var h9_=function(){Qb.apply(this,arguments)};
_.K(h9_,Qb);h9_.prototype.getAssociations=function(){return[]};
h9_.prototype.getTypeName=function(){return"playerStateEntity"};var wdO=function(){Qb.apply(this,arguments)};
_.K(wdO,Qb);wdO.prototype.getAssociations=function(){return[]};
wdO.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var yRO=function(){Qb.apply(this,arguments)};
_.K(yRO,Qb);yRO.prototype.getAssociations=function(){return[]};
yRO.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var WPK=function(){Qb.apply(this,arguments)};
_.K(WPK,Qb);WPK.prototype.getAssociations=function(){return[]};
WPK.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.XL=new _.fi("dislikeButtonViewModel");_.uq=new _.fi("likeButtonViewModel");var DMo=new _.fi("videoSummaryContentViewModel");var e9j=new _.fi("videoSummaryParagraphViewModel");var NhO=new _.fi("changeTimelyActionVisibilityCommand");var IuK=new _.fi("hideEngagementPanelEndpoint");var P0j=new _.fi("refreshPanelEndpoint");var R9j=new _.fi("scrollToSectionEndpoint");var UM3=new _.fi("seekToVideoTimestampCommand");_.VN=new _.fi("showEngagementPanelEndpoint");var pd3=new _.fi("showTransientPlayerScrimOverlayCommand");var xMu=new _.fi("toggleEngagementPanelCommand");_.oXy=new _.fi("createBroadcastCommand");var Gyj=new _.fi("metadataUpdateCommand");var cso=function(){Qb.apply(this,arguments)};
_.K(cso,Qb);cso.prototype.getAssociations=function(){return[]};
cso.prototype.getTypeName=function(){return"featuredProductsEntity"};var fGT=function(){Qb.apply(this,arguments)};
_.K(fGT,Qb);fGT.prototype.getAssociations=function(){return[]};
fGT.prototype.getTypeName=function(){return"pinnedProductEntity"};var dAy=function(){Qb.apply(this,arguments)};
_.K(dAy,Qb);dAy.prototype.getAssociations=function(){return[]};
dAy.prototype.getTypeName=function(){return"trendingOfferEntity"};_.jJH=new _.fi("merchandiseShelfRenderer");var qUr=new _.fi("gridMovieRenderer");_.ZnH=new _.fi("movieRenderer");var Mg_=function(){Qb.apply(this,arguments)};
_.K(Mg_,Qb);Mg_.prototype.getAssociations=function(){var c=[];this.delegate.trackDownloadMetadatas&&c.push.apply(c,_.LT(this.delegate.trackDownloadMetadatas));return[].concat(_.LT(new Set(c)))};
Mg_.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var rs3=function(){Qb.apply(this,arguments)};
_.K(rs3,Qb);
rs3.prototype.getAssociations=function(){var c=[];this.delegate.downloadedTracks&&c.push.apply(c,_.LT(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&c.push.apply(c,_.LT(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&c.push.apply(c,_.LT(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&c.push.apply(c,_.LT(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&c.push.apply(c,_.LT(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
c.push.apply(c,_.LT(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&c.push.apply(c,_.LT(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&c.push.apply(c,_.LT(this.delegate.metadataOnlyTracks));return[].concat(_.LT(new Set(c)))};
rs3.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var CsK=function(){Qb.apply(this,arguments)};
_.K(CsK,Qb);CsK.prototype.getAssociations=function(){var c=[];this.delegate.trackDownloadMetadatas&&c.push.apply(c,_.LT(this.delegate.trackDownloadMetadatas));return[].concat(_.LT(new Set(c)))};
CsK.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var g$T=function(){Qb.apply(this,arguments)};
_.K(g$T,Qb);g$T.prototype.getAssociations=function(){var c=[];this.delegate.playbackData&&c.push(this.delegate.playbackData);this.delegate.localImageEntities&&c.push.apply(c,_.LT(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&c.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LT(new Set(c)))};
g$T.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var k0F=function(){Qb.apply(this,arguments)};
_.K(k0F,Qb);
k0F.prototype.getAssociations=function(){var c=[];this.delegate.musicLibraryStatusEntity&&c.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&c.push.apply(c,_.LT(this.delegate.primaryArtists));this.delegate.details&&c.push(this.delegate.details);this.delegate.userDetails&&c.push(this.delegate.userDetails);this.delegate.tracks&&c.push.apply(c,_.LT(this.delegate.tracks));this.delegate.share&&c.push(this.delegate.share);this.delegate.downloadMetadata&&c.push(this.delegate.downloadMetadata);this.delegate.refresh&&
c.push(this.delegate.refresh);return[].concat(_.LT(new Set(c)))};
k0F.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Onj=function(){Qb.apply(this,arguments)};
_.K(Onj,Qb);Onj.prototype.getAssociations=function(){var c=[];this.delegate.albumRelease&&c.push(this.delegate.albumRelease);this.delegate.tracks&&c.push.apply(c,_.LT(this.delegate.tracks));return[].concat(_.LT(new Set(c)))};
Onj.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var lG3=function(){Qb.apply(this,arguments)};
_.K(lG3,Qb);lG3.prototype.getAssociations=function(){var c=[];this.delegate.albumRelease&&c.push(this.delegate.albumRelease);return[].concat(_.LT(new Set(c)))};
lG3.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var sJy=function(){Qb.apply(this,arguments)};
_.K(sJy,Qb);sJy.prototype.getAssociations=function(){var c=[];this.delegate.details&&c.push(this.delegate.details);this.delegate.userDetails&&c.push(this.delegate.userDetails);return[].concat(_.LT(new Set(c)))};
sJy.prototype.getTypeName=function(){return"musicArtist"};
var Bqo=function(){Qb.apply(this,arguments)};
_.K(Bqo,Qb);Bqo.prototype.getAssociations=function(){var c=[];this.delegate.parentArtist&&c.push(this.delegate.parentArtist);return[].concat(_.LT(new Set(c)))};
Bqo.prototype.getTypeName=function(){return"musicArtistDetail"};
var in3=function(){Qb.apply(this,arguments)};
_.K(in3,Qb);in3.prototype.getAssociations=function(){var c=[];this.delegate.parentArtist&&c.push(this.delegate.parentArtist);return[].concat(_.LT(new Set(c)))};
in3.prototype.getTypeName=function(){return"musicArtistUserDetail"};var TqH=function(){Qb.apply(this,arguments)};
_.K(TqH,Qb);TqH.prototype.getAssociations=function(){return[]};
TqH.prototype.getTypeName=function(){return"musicLibraryEdit"};var mAT=function(){Qb.apply(this,arguments)};
_.K(mAT,Qb);mAT.prototype.getAssociations=function(){return[]};
mAT.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var Hno=function(){Qb.apply(this,arguments)};
_.K(Hno,Qb);
Hno.prototype.getAssociations=function(){var c=[];this.delegate.tracks&&c.push.apply(c,_.LT(this.delegate.tracks));this.delegate.refresh&&c.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&c.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&c.push(this.delegate.details);this.delegate.downloadMetadata&&c.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&c.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&c.push(this.delegate.userDetails);this.delegate.entryCollection&&
c.push(this.delegate.entryCollection);this.delegate.share&&c.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&c.push.apply(c,_.LT((new Asu(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.LT(new Set(c)))};
Hno.prototype.getTypeName=function(){return"musicPlaylist"};
var Asu=function(){$f.apply(this,arguments)};
_.K(Asu,$f);Asu.prototype.getAssociations=function(){var c=[];this.delegate.creatorEntity&&c.push(this.delegate.creatorEntity);return[].concat(_.LT(new Set(c)))};var YUF=function(){Qb.apply(this,arguments)};
_.K(YUF,Qb);YUF.prototype.getAssociations=function(){return[]};
YUF.prototype.getTypeName=function(){return"musicShare"};var F3v=function(){Qb.apply(this,arguments)};
_.K(F3v,Qb);
F3v.prototype.getAssociations=function(){var c=[];this.delegate.musicLibraryStatusEntity&&c.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&c.push.apply(c,_.LT(this.delegate.artists));this.delegate.audioModeVersion&&c.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&c.push(this.delegate.videoModeVersion);this.delegate.userDetails&&c.push(this.delegate.userDetails);this.delegate.details&&c.push(this.delegate.details);this.delegate.albumRelease&&c.push(this.delegate.albumRelease);this.delegate.share&&
c.push(this.delegate.share);this.delegate.libraryEdit&&c.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&c.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&c.push(this.delegate.playbackPosition);this.delegate.lyrics&&c.push(this.delegate.lyrics);return[].concat(_.LT(new Set(c)))};
F3v.prototype.getTypeName=function(){return"musicTrack"};
var tgy=function(){Qb.apply(this,arguments)};
_.K(tgy,Qb);tgy.prototype.getAssociations=function(){var c=[];this.delegate.parentTrack&&c.push(this.delegate.parentTrack);return[].concat(_.LT(new Set(c)))};
tgy.prototype.getTypeName=function(){return"musicTrackDetail"};
var bn_=function(){Qb.apply(this,arguments)};
_.K(bn_,Qb);bn_.prototype.getAssociations=function(){var c=[];this.delegate.parentTrack&&c.push(this.delegate.parentTrack);return[].concat(_.LT(new Set(c)))};
bn_.prototype.getTypeName=function(){return"musicTrackUserDetail"};var c5=new _.fi("musicResponsiveListItemRenderer");var Dmk=new _.fi("addToPlaylistEndpoint");var K3u=new _.fi("captionPickerEndpoint");var E$_=new _.fi("suggestStats");var n$_=new _.fi("backstageImageUploadEndpoint");var $Aj=new _.fi("createBackstagePostDialogEndpoint");_.QJ3=new _.fi("createCommentReplyDialogEndpoint");_.SUK=new _.fi("updateCommentDialogEndpoint");_.L3r=new _.fi("updateCommentReplyDialogEndpoint");var ziK=new _.fi("menuEndpoint");var nan=new _.fi("modalEndpoint");var JsF=new _.fi("playlistEditorEndpoint");var aGO=new _.fi("copyTextEndpoint");var VgH,XK_;VgH=new _.fi("shareEndpoint");XK_=new _.fi("shareEntityEndpoint");_.u$o=new _.fi("shareEntityServiceEndpoint");_.xJY=new _.fi("userFeedbackEndpoint");_.pe=new _.fi("watchEndpoint");var gQC=new _.fi("watchPlaylistEndpoint");var v$y=new _.fi("addUpcomingEventReminderEndpoint");_.vQ=new _.fi("getCommentsFromInboxCommand");var hio=new _.fi("notificationOptOutEndpoint");var wKF=new _.fi("recordNotificationInteractionsEndpoint");var ysr=new _.fi("removeUpcomingEventReminderEndpoint");var yye=new _.fi("getDownloadActionCommand");_.W3H=new _.fi("offlineOrchestrationActionCommand");var DAO=function(){Qb.apply(this,arguments)};
_.K(DAO,Qb);DAO.prototype.getAssociations=function(){return[]};
DAO.prototype.getTypeName=function(){return"captionTrack"};var eij=function(){Qb.apply(this,arguments)};
_.K(eij,Qb);eij.prototype.getAssociations=function(){return[]};
eij.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var NqK=function(){Qb.apply(this,arguments)};
_.K(NqK,Qb);NqK.prototype.getAssociations=function(){return[]};
NqK.prototype.getTypeName=function(){return"offlineVideoPolicy"};var IG3=function(){Qb.apply(this,arguments)};
_.K(IG3,Qb);IG3.prototype.getAssociations=function(){return[]};
IG3.prototype.getTypeName=function(){return"offlineVideoStreams"};var Ps_=function(){Qb.apply(this,arguments)};
_.K(Ps_,Qb);Ps_.prototype.getAssociations=function(){var c=[];this.delegate.transfer&&c.push(this.delegate.transfer);this.delegate.adsPlaybackData&&c.push.apply(c,_.LT(this.delegate.adsPlaybackData));this.delegate.drmLicense&&c.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&c.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&c.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LT(new Set(c)))};
Ps_.prototype.getTypeName=function(){return"playbackData"};var Riu=function(){Qb.apply(this,arguments)};
_.K(Riu,Qb);Riu.prototype.getAssociations=function(){return[]};
Riu.prototype.getTypeName=function(){return"refresh"};var UAy=function(){Qb.apply(this,arguments)};
_.K(UAy,Qb);UAy.prototype.getAssociations=function(){var c=[];this.delegate.offlineVideoStreams&&c.push.apply(c,_.LT(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&c.push.apply(c,_.LT(this.delegate.captionTrack));return[].concat(_.LT(new Set(c)))};
UAy.prototype.getTypeName=function(){return"transfer"};var pKo=function(){Qb.apply(this,arguments)};
_.K(pKo,Qb);pKo.prototype.getAssociations=function(){return[]};
pKo.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var xA3=new _.fi("showMoreDrawerCommand");var o$u=new _.fi("updateEngagementPanelContentCommand");var G0F=new _.fi("getPdgBuyFlowCommand");var cBH=new _.fi("liveChatPurchaseMessageEndpoint");var fjy=new _.fi("openSuperStickerBuyFlowCommand");var dBy=new _.fi("updatePdgFeatureEnablementCommand");var jEj=function(){Qb.apply(this,arguments)};
_.K(jEj,Qb);jEj.prototype.getAssociations=function(){return[]};
jEj.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var qB3=function(){Qb.apply(this,arguments)};
_.K(qB3,Qb);qB3.prototype.getAssociations=function(){return[]};
qB3.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.ZzH=new _.fi("pdgCommentChipRenderer");_.Mwy=new _.fi("permissionRoleBottomBarRenderer");_.rBo=new _.fi("updatePermissionRoleCommand");var Cqy=new _.fi("prefetchWatchCommand");var gfH=new _.fi("updatePlayerErrorMessageCommand");var atr=new _.fi("toggleCaptionsVisibilityCommand");_.k23=new _.fi("quickActionsViewModel");var Oz3=new _.fi("playerResponse");var ljy=new _.fi("playlistRenderer");_.sEH=new _.fi("playlistVideoListRenderer");_.hB=new _.fi("playlistEditEndpoint");var BFj=new _.fi("createImagePollCommand");var izT=new _.fi("createQuizCommand");var TFo=new _.fi("quizRenderer");var mBv=new _.fi("uploadedVideoRenderer");var Hz3=new _.fi("decorateMessageEndpoint");var ABv=new _.fi("lpOfferCardOptionViewModel");var YBH=new _.fi("sfvAudioItemPlaybackCommand");var Fvr=function(){Qb.apply(this,arguments)};
_.K(Fvr,Qb);Fvr.prototype.getAssociations=function(){return[]};
Fvr.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.wF=new _.fi("reelNonVideoContentEndpoint");_.EO=new _.fi("reelWatchEndpoint");_.yb=new _.fi("reelItemRenderer");_.tw_=new _.fi("reelMetapanelViewModel");_.bzj=new _.fi("reelNonVideoContentRenderer");_.Kvr=new _.fi("reelPlayerOverlayRenderer");var Ef3=new _.fi("shortsLockupViewModel");var nfr=new _.fi("sponsorButtonViewModel");var $B3=new _.fi("reelItemWatchResponse");var QE3=new _.fi("textBadgeRenderer");_.WQ=new _.fi("buttonRenderer");_.Dj=new _.fi("toggleButtonRenderer");var jtN=new _.fi("switchButtonViewModel");_.SB_=new _.fi("confirmDialogRenderer");var Lv_;Lv_=new _.fi("menuRenderer");_.z1j=new _.fi("menuFlexibleItemRenderer");var JBj=new _.fi("pollRenderer");_.aj_=new _.fi("backgroundPromoRenderer");var XQr;_.Vw_=new _.fi("chipCloudRenderer");XQr=new _.fi("chipCloudChipRenderer");var uL_=new _.fi("dropdownRenderer");var vfj=new _.fi("gridVideoRenderer");_.h1r=new _.fi("itemSectionRenderer");_.wQo=new _.fi("messageRenderer");var yBF=new _.fi("sortFilterHeaderRenderer");_.ew=new _.fi("videoRenderer");var Wvo=new _.fi("resolveUrlCommandMetadata");var DBH=function(){Qb.apply(this,arguments)};
_.K(DBH,Qb);DBH.prototype.getAssociations=function(){return[]};
DBH.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.e1K=new _.fi("getAnswerCommand");_.th=new _.fi("searchEndpoint");var NFu=new _.fi("genAiRichTextViewModel");var wFN=new _.fi("overviewAnswerViewModel");var Ij3=new _.fi("addToPlaylistServiceEndpoint");var Pqy=new _.fi("clearSearchHistoryEndpoint");var R1H=new _.fi("clearWatchHistoryEndpoint");var UBv=new _.fi("webSerializedServiceEndpointExtension");_.pQF=new _.fi("createCommentEndpoint");var xBy=new _.fi("createCommentReplyEndpoint");var ofT=new _.fi("performCommentActionEndpoint");var G2O=new _.fi("updateCommentEndpoint");var cur=new _.fi("updateCommentReplyEndpoint");_.NB=new _.fi("createPlaylistServiceEndpoint");var fKH=new _.fi("deletePlaylistEndpoint");var dIr=new _.fi("deleteVideoEndpoint");var WOG=new _.fi("getReportFormEndpoint");var jXK=new _.fi("modifyChannelNotificationPreferenceEndpoint");var qbk;_.b7=new _.fi("offlinePlaylistEndpoint");qbk={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 ZYk;_.tc=new _.fi("offlineVideoEndpoint");ZYk={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 q8K=new _.fi("pingingEndpoint");_.Z5K=new _.fi("selectActiveIdentityEndpoint");var MY_=new _.fi("setSettingEndpoint");var q$l=new _.fi("undoFeedbackEndpoint");var ruH=new _.fi("unsubscribeEndpoint");_.Cj_=new _.fi("updatedMetadataEndpoint");var g2F=function(){Qb.apply(this,arguments)};
_.K(g2F,Qb);g2F.prototype.getAssociations=function(){return[]};
g2F.prototype.getTypeName=function(){return"settingEntity"};_.kGy=new _.fi("updateLocalAppSettingCommand");var O5j=new _.fi("saveImageToDeviceEndpoint");var lKo=new _.fi("shareImageCommand");var sX3=new _.fi("sharingProviderDataCommand");var BlO=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(BlO,_.d8);var i5y=[0,_.x9,-1];BlO.prototype.JSC$12259_serializeBinary=uDe(i5y);var Tl3=_.OW(i5y);var mIv=new _.fi("userMentionSuggestionRenderer");var H5r=new _.fi("liveChatTunnelCommand");var AuT=new _.fi("showSponsorshipsGiftOfferDialogCommand");var Y8_=new _.fi("sponsorshipsScrollableShelfViewModel");var FZO=new _.fi("updateUpcomingEventReminderButtonStateCommand");var tY3=new _.fi("upcomingEventReminderButtonStateRenderer");var b5j=new _.fi("subscribeEndpoint");var KZ3=new _.fi("registerTasksCommand");var E2u=new _.fi("hideSnackbarCommand");var n23=new _.fi("showDialogCommand");_.na=new _.fi("showSheetCommand");var $I_=new _.fi("showSnackbarCommand");var QXT=function(){Qb.apply(this,arguments)};
_.K(QXT,Qb);QXT.prototype.getAssociations=function(){return[]};
QXT.prototype.getTypeName=function(){return"chipEntity"};var S8H=function(){Qb.apply(this,arguments)};
_.K(S8H,Qb);S8H.prototype.getAssociations=function(){return[]};
S8H.prototype.getTypeName=function(){return"dismissState"};_.Ie=new _.fi("avatarViewModel");var V3F=new _.fi("badgeViewModel");_.zx=new _.fi("buttonViewModel");_.IE=new _.fi("chipViewModel");var BIn=new _.fi("collectionThumbnailViewModel");var XLT=new _.fi("contentPreviewImageViewModel");var uQy=new _.fi("decoratedAvatarViewModel");var g7e=new _.fi("downloadButtonViewModel");_.gUz=new _.fi("engagementBarViewModel");_.vHv=new _.fi("imageBannerViewModel");var hzF=new _.fi("lockupContentMetadataRowExtension");_.wLu=new _.fi("lockupMetadataViewModel");_.y$F=new _.fi("lockupViewModel");var W13=new _.fi("avatarStackViewModel");_.D2H=new _.fi("contentMetadataViewModel");var ez3=function(){Qb.apply(this,arguments)};
_.K(ez3,Qb);ez3.prototype.getAssociations=function(){return[]};
ez3.prototype.getTypeName=function(){return"pageHeaderEntity"};_.NUu=new _.fi("pageHeaderViewModel");var IV3=new _.fi("snackbarViewModel");var PK_=new _.fi("thumbnailHoverOverlayToggleActionsViewModel");_.Jc=new _.fi("toggleButtonViewModel");var Rz3=function(){Qb.apply(this,arguments)};
_.K(Rz3,Qb);Rz3.prototype.getAssociations=function(){return[]};
Rz3.prototype.getTypeName=function(){return"votingEntity"};_.kQC=new _.fi("votingViewModel");var U2H=new _.fi("sectionHeaderViewModel");var pLF=new _.fi("notifyDropdownOptionSelectedCommand");var UfN=new _.fi("listViewModel");_.$v=new _.fi("listItemViewModel");var ste=new _.fi("toggleableListItemViewModel");var x23=new _.fi("dialogHeaderViewModel");var oHH=function(){Qb.apply(this,arguments)};
_.K(oHH,Qb);oHH.prototype.getAssociations=function(){return[]};
oHH.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var G7u=function(){Qb.apply(this,arguments)};
_.K(G7u,Qb);G7u.prototype.getAssociations=function(){return[]};
G7u.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var cLH=function(){Qb.apply(this,arguments)};
_.K(cLH,Qb);cLH.prototype.getAssociations=function(){return[]};
cLH.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.f$o=new _.fi("transcriptSubmitCaptionCorrectionCommand");var djo=function(){Qb.apply(this,arguments)};
_.K(djo,Qb);djo.prototype.getAssociations=function(){return[]};
djo.prototype.getTypeName=function(){return"buttonEntity"};var BHk=new _.fi("unpluggedStringRunImage");var jNF=new _.fi("tabViewModel");var qau=new _.fi("tabbedViewModel");var ZyT=function(){Qb.apply(this,arguments)};
_.K(ZyT,Qb);ZyT.prototype.getAssociations=function(){return[]};
ZyT.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.MIr=new _.fi("updateDescriptionAction");var rL3=new _.fi("updateToggleButtonTextAction");_.Cwu=new _.fi("autoplaySwitchButtonRenderer");var v5;_.gdj=new _.fi("multiMarkersPlayerBarRenderer");v5=new _.fi("chapterRenderer");var k13=new _.fi("heatMarkerRenderer");var Tsr=new _.fi("heatmapRenderer");var OyH=new _.fi("smartSkipPlayerScrimOverlayRenderer");var l$u=new _.fi("timedMarkerDecorationRenderer");var R6e=new _.fi("postWebToNativeMessageCommand");var h9=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(h9,_.d8);h9.prototype.getMethodName=function(){return _.aW(this,1)};var sNH=[0,_.x9,-2];h9.prototype.JSC$12279_serializeBinary=uDe(sNH);var BTj=_.kh(h9,sNH);var iyH=new _.fi("whitelistEditEndpoint");var TTo=new _.fi("clearUrlParamCommand");var mjj=new _.fi("commerceActionCommand");_.Hyu=new _.fi("getPaymentInstrumentsParamsCommand");var ALK=new _.fi("getPaymentsClientTokenCommand");var Yau=new _.fi("googlePaymentBillingCommand");var FNr=new _.fi("googlePaymentPurchaseManagerCommand");_.tIj=new _.fi("logGtmCommand");var byH=new _.fi("updateCardItemOnClickCommand");_.KNj=new _.fi("ypcPauseSubscriptionCommand");_.Ed3=new _.fi("ypcResumeSubscriptionCommand");var nd_=function(){Qb.apply(this,arguments)};
_.K(nd_,Qb);nd_.prototype.getAssociations=function(){return[]};
nd_.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var $jH=function(){Qb.apply(this,arguments)};
_.K($jH,Qb);$jH.prototype.getAssociations=function(){return[]};
$jH.prototype.getTypeName=function(){return"commerceCartListEntity"};var QNK=function(){Qb.apply(this,arguments)};
_.K(QNK,Qb);QNK.prototype.getAssociations=function(){return[]};
QNK.prototype.getTypeName=function(){return"iconBadgeEntity"};var Sa_=function(){Qb.apply(this,arguments)};
_.K(Sa_,Qb);Sa_.prototype.getAssociations=function(){return[]};
Sa_.prototype.getTypeName=function(){return"pdpStateEntity"};var LNK=function(){Qb.apply(this,arguments)};
_.K(LNK,Qb);LNK.prototype.getAssociations=function(){return[]};
LNK.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var vNr=new _.fi("ypcOffersEndpoint");var zxT=new _.fi("cardItemRenderer"),JL3=new _.fi("cardItemTextRenderer");var a$H=new _.fi("commerceCartItemQuantityPickerRenderer");var VIF=new _.fi("linkCardRenderer");var WSk=new _.fi("quantityIncrementerButtonViewModel");var Xxj=new _.fi("quantityIncrementerViewModel");var u4v=new _.fi("themedImageViewModel");_.vdv=new _.fi("ypcCancelRecurrenceEndpoint");var hx3=new _.fi("ypcCompleteTransactionEndpoint");_.wxH=new _.fi("ypcGetCartEndpoint");_.qC=new _.fi("ypcGetOffersEndpoint");_.PQ=new _.fi("ypcHandleTransactionEndpoint");var yLO=new _.fi("ypcLogWalletAnalyticDataEndpoint");_.WNu=new _.fi("ypcRedeemCodeEndpoint");var Dj_=new _.fi("ypcUpdateFopEndpoint");rF(MB(1),qB(4));aAC((new MessageChannel).port2);var exr=function(){this.register=new Map},JWN=function(c,f,d){c=c+"_"+f;
RE.register.has(c)?d=RE.register.get(c):(d=d(),RE.register.set(c,d));return d},NTj=function(c){c=_.C(c.register.values());
for(var f=c.next();!f.done;f=c.next())_.B5(f.value,"ABORTED")};
exr.prototype.clear=function(){NTj(this);this.register.clear()};
var RE=new exr;var lnr=Date.now().toString();var iie=BEY();var biM={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 I$3,aS;I$3=1;aS=function(c){this.veData=c};
_.Q1=function(c){return new aS({trackingParams:c})};
_.m_=function(c,f,d,q,Z,M){var g=I$3++;return new aS({veType:c,veCounter:g,elementIndex:d,dataElement:f,youtubeData:q,jspbYoutubeData:Z,loggingDirectives:M})};
_.r=aS.prototype;
_.r.getAsJson=function(){var c={};this.veData.trackingParams!==void 0?c.trackingParams=this.veData.trackingParams:(c.veType=this.veData.veType,this.veData.veCounter!==void 0&&(c.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(c.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(c.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(c.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(c.isCounterfactual=!0);
return c};
_.r.getAsJspb=function(){var c=new jlj;this.veData.trackingParams!==void 0?c.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.hr(c,2,this.veData.veType),this.veData.veCounter!==void 0&&_.hr(c,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.hr(c,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.C1(c,5,!0));if(this.veData.dataElement!==void 0){var f=this.veData.dataElement.getAsJspb();_.BU(c,7,f)}this.veData.youtubeData!==void 0&&_.BU(c,8,this.veData.jspbYoutubeData);
return c};
_.r.toString=function(){return JSON.stringify(this.getAsJson())};
_.r.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.r.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.fu("yt_logging_screen.getRootVeType",Y4k);_.fu("yt_logging_screen.getCurrentCsn",_.X2);_.fu("yt_logging_screen.getCttAuthInfo",uV);_.fu("yt_logging_screen.setCurrentScreen",_.vi);var Pwr=function(){this.events=new Map},RxF=function(c){var f=[];
c=_.C(c.events.values());for(var d=c.next();!d.done;d=c.next())f.push(d.value);return f};
Pwr.prototype.clear=function(){this.events.clear()};var pxH=function(){this.logTransport=new Uj3;this.loggedEventRegister=new Pwr;this.unloggedEventRegister=new Pwr;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12316_flushTimer=new _.MT(this.flushInterval);this.JSC$12316_flushTimer.listen("tick",this.flush,!1,this)};
pxH.prototype.flush=function(){if(this.eventsCount){var c={loggedEvents:RxF(this.loggedEventRegister),unloggedEvents:RxF(this.unloggedEventRegister)};if(_.F("export_player_version_to_ytconfig")){var f;(f=_.hk("PLAYER_CLIENT_VERSION"))?(f=f.split("-")[0].replace(/\./g,""),f=isNaN(Number(f))?"0":f):f="";var d=_.hk("PLAYER_CLIENT_VERSION");if(d){d=d.split("-");var q="";d.length>1&&(q=d[d.length-1]);d=Oie(q.startsWith("canary_experiment")?"canary":q.startsWith("canary_control")?"control":"none")}else d=
"CLIENT_CANARY_STATE_UNKNOWN";c.dimensions={playerClientVersion:f,playerCanaryState:d}}this.logTransport.flush(c);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12316_flushTimer.enabled&&this.JSC$12316_flushTimer.stop()}};
var xjF=function(c){UB==null&&(UB=new pxH);var f=UB;var d=f.loggedEventRegister;c.dimensions=c.dimensions||{};c.dimensions.csn=_.X2()||"";var q=n3l(c.dimensions).join(";");if(c.records!=null)if(d.events.has(q)){var Z;(Z=d.events.get(q).records)==null||Z.push.apply(Z,_.LT(c.records))}else d.events.set(q,c);f.JSC$12316_flushTimer.enabled||f.JSC$12316_flushTimer.start();f.eventsCount++;f.eventsCount>=100&&f.flush()};var Uj3=function(){};
Uj3.prototype.flush=function(c,f){_.F("enable_client_sli_logging")&&_.JN("sliEventBatch",c,{sendIsolatedPayload:!!f})};var UB;var G1T;G1T=function(c){var f=odH;c=c===void 0?{}:c;f=f.name;var d=zOC("SUCCESS");xjF({dimensions:c,records:[{name:f,state:"SLI_STATE_END",status:d}]})};
_.anN=function(c,f,d,q){this.name=c;this.sliId=f;this.timeoutMs=d;this.statusOnTimeout=q;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.anN.prototype.getId=function(){return this.sliId};
_.s_=function(c,f){f=f===void 0?{}:f;c.ongoing||(c.ongoing=!0,c.dimensions=f,c.logSliId=Jcv(),xjF({dimensions:c.dimensions,records:[{name:c.name,state:"SLI_STATE_START",sliId:c.logSliId}]}),c.timeoutMs>0&&(c.timeoutHandle=setTimeout(function(){_.B5(c,c.statusOnTimeout)},c.timeoutMs)))};
_.B5=function(c,f){c.ongoing&&(c.timeoutMs>0&&clearTimeout(c.timeoutHandle),c.ongoing=!1,f={dimensions:c.dimensions,records:[{name:c.name,status:zOC(f),state:"SLI_STATE_END",sliId:c.logSliId}]},RE.register.delete(c.name+"_"+c.sliId),xjF(f))};var odH=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var cx_=function(){Qb.apply(this,arguments)};
_.K(cx_,Qb);cx_.prototype.getAssociations=function(){return[]};
cx_.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var xXk=new _.fi("highlightTextDecoratorColorMapExtension");var UXN=new _.fi("styleRunColorMapExtension");var yWG=_.pp(["data-"]),eOz={};var PBh={};var pz=function(c){this.wrappedPromise_=c===void 0?null:c;this.state_=0;this.JSC$12348_value_=null};
pz.prototype.then=function(c,f,d){return this.wrappedPromise_?this.wrappedPromise_.then(c,f,d):this.state_===1&&c?(c=c.call(d,this.JSC$12348_value_))&&typeof c.then==="function"?c:_.xf(c):this.state_===2&&f?(c=f.call(d,this.JSC$12348_value_))&&typeof c.then==="function"?c:_.fs3(c):this};
pz.prototype.getValue=function(){return this.JSC$12348_value_};
pz.prototype.isRejected=function(){return this.state_==2};
xO3(pz);_.fs3=function(c){var f=new pz;c=c===void 0?null:c;f.state_=2;f.JSC$12348_value_=c===void 0?null:c;return f};
_.xf=function(c){var f=new pz;c=c===void 0?null:c;f.state_=1;f.JSC$12348_value_=c===void 0?null:c;return f};var C0e="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var dsF=["load","abort","error"],oE=function(c,f,d){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12368_maxAspectRatio_=c;this.disableAnimation_=f===void 0?!1:f;this.disableExifRotation_=d===void 0?!1:d;this.JSC$12368_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12368_reject_=this.resolve_=null};
oE.prototype.transform=function(c){var f=this;this.mime_=c.type;pF(GXu(c),this.dataUrlRead_,this.readError_,this);pF(o03(c.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(d,q){f.resolve_=d;f.JSC$12368_reject_=q})};
oE.prototype.dataUrlRead_=function(c){this.dataUrl_=c;this.angle_!=null&&j0r(this)};
oE.prototype.exifRead_=function(c){if(this.disableExifRotation_)this.angle_=0;else{a:if(c=new DataView(c),c.byteLength<2||c.getUint16(0)!==65496)c=-2;else{for(var f=2,d=c.byteLength;f<d;){var q=c.getUint16(f),Z=c.getUint16(f+2);if(q===65505){f+=4;q=c.getUint32(f);Z=c.getUint16(f+4);if(q!==1165519206||Z!==0)break;f+=6;q=c.getUint16(f)===18761;f+=c.getUint32(f+4,q);Z=c.getUint16(f,q);f+=2;for(var M=0;M<Z;M++){if(c.getUint16(f,q)===274){f+=8;c=c.getUint16(f,q);break a}f+=12}}else if(q>>8!==255)break;
else f+=Z+2}c=-1}switch(c){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&&j0r(this)};
oE.prototype.readError_=function(){this.JSC$12368_reject_()};
var j0r=function(c){nx(c.JSC$12368_image_,dsF,c.completeTransform_,!1,c);c.JSC$12368_image_.src=_.XD(c.dataUrl_).toString();c.JSC$12368_image_.src!=VM.toString()&&c.JSC$12368_image_.src.substr(0,11)==="data:image/"||c.JSC$12368_reject_()};
oE.prototype.completeTransform_=function(){if(this.JSC$12368_image_.src!=VM.toString()){var c=_.XD(this.dataUrl_),f=this.JSC$12368_image_.naturalHeight?this.JSC$12368_image_.naturalWidth/this.JSC$12368_image_.naturalHeight:null;this.invalidAspectRatio=f>this.JSC$12368_maxAspectRatio_||f<1/this.JSC$12368_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var d=this.JSC$12368_image_.naturalWidth,q=this.JSC$12368_image_.naturalHeight,Z=f=0,M=this.JSC$12368_image_.naturalHeight?this.JSC$12368_image_.naturalWidth/
this.JSC$12368_image_.naturalHeight:null;M>this.JSC$12368_maxAspectRatio_?(d=this.JSC$12368_maxAspectRatio_*q,f=(d-this.JSC$12368_image_.naturalWidth)/2,this.cropped=!0):M<1/this.JSC$12368_maxAspectRatio_?(q=this.JSC$12368_maxAspectRatio_*d,Z=(q-this.JSC$12368_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)M=d,d=q,q=M,M=f,f=Z,Z=M;switch(this.angle_){case 90:Z-=d;break;case 180:f-=d;Z-=q;break;case 270:f-=
q}this.cropped||this.angle_%360!==0?(c=document.createElement("canvas"),c.width=d||1,c.height=q||1,this.JSC$12368_image_.naturalWidth&&this.JSC$12368_image_.naturalHeight&&(d=c.getContext("2d"),d.rotate(Math.PI/180*this.angle_),d.drawImage(this.JSC$12368_image_,f,Z,this.JSC$12368_image_.naturalWidth,this.JSC$12368_image_.naturalHeight)),this.transformedData=_.XD(c.toDataURL(this.mime_))):this.transformedData=c}else this.transformedData=c;this.resolve_(this)}};var G2=function(c,f){_.AC.call(this,c);this.value=f};
_.K(G2,_.AC);
var c_=function(c,f,d,q,Z,M,g){g=g===void 0?!1:g;_.KF.call(this);var O=this;this.JSC$12373_url_=c;this.channelId_=f;this.maxFileSizeMb_=d;this.JSC$12373_maxAspectRatio_=q;this.dropZoneEl_=Z;this.rejectInvalidAspectRatio_=g;this.selectButtonEl_=M;this.JSC$12373_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new iq(this.dropZoneEl_);this.selectOverlay_=new T2(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12373_image_=this.transfer_=null;this.handler_=new _.r2(this);_.ln(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(M,"click",function(){O.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.K(c_,_.KF);c_.prototype.disposeInternal=function(){for(var c=this.selectButtonEl_.nextSibling;c&&c.parentNode&&c.tagName=="INPUT";)c.parentNode.removeChild(c),c=this.selectButtonEl_.nextSibling;this.cancel();_.KF.prototype.disposeInternal.call(this)};
c_.prototype.uploadPromise=function(){if(this.JSC$12373_image_==null)return null;this.uploadPromise_||qir(this);return this.uploadPromise_};
c_.prototype.cancel=function(){Zg_(this);this.JSC$12373_image_=null};
var Zg_=function(c){c.transfer_&&c.transfer_.cancel();c.transfer_=null;c.uploadPromise_=null;c.resolve_=null;c.JSC$12373_reject_=null},qir=function(c){Zg_(c);
c.transfer_=_.T4_(c.JSC$12373_url_,{"X-YouTube-ChannelId":c.channelId_},c.JSC$12373_image_);c.handler_.listenOnce(c.transfer_,"l",c.JSC$12375_onUploadComplete_);c.handler_.listenOnce(c.transfer_,"n",c.onUploadError_);c.transfer_.run();c.uploadPromise_=new Promise(function(f,d){c.resolve_=f;c.JSC$12373_reject_=d})};
_.r=c_.prototype;_.r.onChange_=function(c){c.files.length&&(this.JSC$12373_image_=c.files[0],this.JSC$12373_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12373_image_=null,this.dispatchEvent(new G2("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(qir(this),(new oE(this.JSC$12373_maxAspectRatio_)).transform(this.JSC$12373_image_).then((0,_.n1)(this.onPreview_,this),(0,_.n1)(this.onPreviewError_,this))))};
_.r.onPreview_=function(c){if(c.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12373_image_=null),this.dispatchEvent(new G2("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;c.cropped&&this.dispatchEvent(new G2("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new G2("yt.comments.ImageUploadOverlay.CHANGE_EVENT",c.transformedData))};
_.r.onPreviewError_=function(){this.JSC$12373_image_=null;this.dispatchEvent(new G2("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.r.onHover_=function(c){c.stopPropagation();c.preventDefault();if(c.type==="dragover")c=!0;else if(c.type==="dragleave")c=!1;else return;this.dispatchEvent(new G2("yt.comments.ImageUploadOverlay.HOVER_EVENT",c))};
_.r.JSC$12375_onUploadComplete_=function(){var c=(0,_.FCH)(this.transfer_.getResponseText());this.resolve_(c.encryptedBlobId)};
_.r.onUploadError_=function(){this.JSC$12373_reject_();Zg_(this)};var MtO=function(c){c=c||{};var f={},d={};this.url=c.url||"";this.args=c.args||_.zV.clone(f);this.assets=c.assets||{};this.attrs=c.attrs||_.zV.clone(d);this.fallback=c.fallback||null;this.fallbackMessage=c.fallbackMessage||null;this.html5=!!c.html5;this.disable=c.disable||{};this.loaded=!!c.loaded;this.messages=c.messages||{}};
MtO.prototype.clone=function(){var c=new MtO,f;for(f in this)if(this.hasOwnProperty(f)){var d=this[f];_.IK(d)=="object"?c[f]=_.zV.clone(d):c[f]=d}return c};var rx_,C2O,gqH,G6,Og_,lsj,s0o,BtH,igj,Tt3,msH,HgH,Axu,YiF,FRH,tt3,bgH,KRK,Eqy,nq_,$sK,Q0T,Siy,LR_,ztr,Jxv,asH,VtH,XA_,Zbk,uWo,vqj,ht3,wAH,yxy,WRr,DsF,et_,Nt_,Iso,qEe,P2j,Rty,UsT,pAj,xsy,oqO,GtH,c2u,fb3,der,jQv,qjy,Zmy,MDF,r2r,f5,C9r,gQ3,k93,Om_,lbT,sQ_,B9v,imo,T93,meu,HmT,A2o,YjH,FDv,tD_,bmy,KDO,EQ_,d1l,nQ3,$eu,QQ3,Sju,LDH,zmo,J23,abT,VD_,XP3,uT3,vQK,hmT,wPO,y2v,WDK,Dev,emT,N9K,Ibj,P9u,RmF,UeF,pPF,xeo;rx_=["account/accounts_list"];C2O=["acknowledge_channel_tou_strike"];gqH=["notification/add_upcoming_event_reminder"];
_.ktu=["att/get"];G6=["browse","music/browse","unplugged/browse"];Og_=["channel/claim_legacy_youtube_channel"];lsj=["history/clear_search_history"];s0o=["history/clear_watch_history"];BtH=["comment/perform_comment_action"];igj=["comment/get_comment_replies"];Tt3=["ypc/commerce_action"];msH=["backstage/create_post"];HgH=["live/create_broadcast"];Axu=["channel/create_channel"];YiF=["comment/create_comment_reply"];FRH=["comment/create_comment"];tt3=["live_chat/create_poll"];bgH=["playlist/create"];
KRK=["decorate_message"];Eqy=["live_chat/delete_message"];nq_=["playlist/delete"];$sK=["video/delete"];Q0T=["like/dislike"];Siy=["dismissal/dismiss"];LR_=["flag/flag"];ztr=["flow"];Jxv=["account/account_menu"];asH=["playlist/get_add_to_playlist"];VtH=["get_answer"];XA_=["channel/get_channel_creation_form"];Zbk=["offline/get_download_action"];uWo=["kids/get_kids_blocklist_picker"];vqj=["live_chat/get_item_context_menu"];ht3=["live_chat/get_live_chat_message_buy_flow"];wAH=["live_chat/get_live_chat_replay"];
yxy=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];WRr=["live_chat/get_live_chat_super_sticker_buy_flow"];DsF=["notification/get_notification_menu"];et_=["playlist/get_settings_editor"];Nt_=["backstage/get_post_video_preview"];Iso=["account/get_profile_card"];qEe=["share/get_share_panel"];P2j=["share/get_sharing_provider_data"];Rty=["get_survey"];UsT=["notification/get_unseen_count"];pAj=["get_user_mention_suggestions"];xsy=["get_watch"];oqO=["guide"];
GtH=["feedback"];c2u=["kids/update_blacklist"];fb3=["like/like"];der=["live_chat/live_chat_action"];jQv=["live_chat/manage_user"];qjy=["video_manager/metadata_update"];Zmy=["live_chat/moderate"];MDF=["notification/modify_channel_preference"];r2r=["notification/opt_out"];f5=["get_panel","get_posts_by_host_panel"];C9r=["player"];gQ3=["browse/edit_playlist"];k93=["notification/record_interactions"];Om_=["reel/reel_item_watch"];lbT=["reel/reel_watch_sequence"];sQ_=["like/removelike"];B9v=["notification/remove_upcoming_event_reminder"];
imo=["flag/get_form"];T93=["miniapp/report_value"];meu=["navigation/resolve_url"];HmT=["channel/reveal_business_email"];A2o=["in_video/search"];YjH=["search","sfv/search","unplugged/search"];FDv=["live_chat/send_message"];tD_=["live_chat/send_live_chat_vote"];bmy=["account/set_setting"];KDO=["submit_caption_correction"];EQ_=["subscription/subscribe"];d1l=["get_transcript"];nQ3=["resolve_location","unplugged/resolve_location"];$eu=["subscription/unsubscribe"];QQ3=["backstage/update_post"];Sju=["channel_edit/update_channel_page_settings"];
LDH=["comment/update_comment_reply"];zmo=["comment/update_comment"];J23=["comment/update_comments_settings"];abT=["creator/update_creator_channel"];VD_=["pdg/update_enablement"];XP3=["updated_metadata"];uT3=["channel_edit/validate_channel_handle"];vQK=["verify_age"];hmT=["next","unplugged/watch_next"];wPO=["whitelist/edit"];y2v=["ypc/cancel_recurrence"];WDK=["ypc/complete_transaction"];Dev=["ypc/get_cart"];emT=["ypc/get_fix_instrument_params"];N9K=["ypc/get_offers"];Ibj=["ypc/get_payment_instruments_params"];
P9u=["ypc/handle_transaction"];RmF=["ypc/log_payment_server_analytics"];UeF=["ypc/pause_subscription"];pPF=["ypc/redeem_code"];xeo=["ypc/resume_subscription"];var oQ_=[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 mn=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.fu("yt.msgs_",mn);var dl=new _.jk("ACTION_ROUTER_TOKEN");_.jY=function(){this.autonavState_=_.F("kevlar_is_pupi_enabled")?2:FPN()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.jY.prototype.getState=function(){return this.autonavState_};
_.jY.prototype.pause=function(c){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=c):this.autonavState_==1&&(this.disabledAutonavPauseReason_=c)};
_.jY.prototype.setState=function(c,f,d){f&&(this.autoplayChangedByUser=!0);f=this.autonavState_===3||c===3;this.autonavState_!=c&&(this.autonavState_=c,c!=3&&_.tl4(c==2),c=_.F("kevlar_is_pupi_enabled")?d||f:!0,_.Pw.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,c,d))};
_.jY.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Z2(_.jY);var qI=function(){this.hasRun=!1};var ZK={},auM=(ZK.auto_search="LATENCY_ACTION_AUTO_SEARCH",ZK.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ZK.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ZK.app_startup="LATENCY_ACTION_APP_STARTUP",ZK.browse="LATENCY_ACTION_BROWSE",ZK.cast_splash="LATENCY_ACTION_CAST_SPLASH",ZK.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ZK.channels="LATENCY_ACTION_CHANNELS",ZK.chips="LATENCY_ACTION_CHIPS",ZK.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ZK.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
ZK.editor="LATENCY_ACTION_EDITOR",ZK.embed="LATENCY_ACTION_EMBED",ZK.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ZK.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ZK.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ZK.explore="LATENCY_ACTION_EXPLORE",ZK.favorites="LATENCY_ACTION_FAVORITES",ZK.home="LATENCY_ACTION_HOME",ZK.inboarding="LATENCY_ACTION_INBOARDING",ZK.landing="LATENCY_ACTION_LANDING",ZK.learning="LATENCY_ACTION_LEARNING",
ZK.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",ZK.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",ZK.library="LATENCY_ACTION_LIBRARY",ZK.live="LATENCY_ACTION_LIVE",ZK.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ZK.management="LATENCY_ACTION_MANAGEMENT",ZK.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ZK.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ZK.onboarding="LATENCY_ACTION_ONBOARDING",ZK.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
ZK.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ZK.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ZK.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",ZK.prebuffer="LATENCY_ACTION_PREBUFFER",ZK.prefetch="LATENCY_ACTION_PREFETCH",ZK.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ZK.profile_switcher="LATENCY_ACTION_LOGIN",ZK.projects="LATENCY_ACTION_PROJECTS",ZK.reel_watch="LATENCY_ACTION_REEL_WATCH",ZK.results="LATENCY_ACTION_RESULTS",ZK.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
ZK.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ZK.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ZK.review="LATENCY_ACTION_REVIEW",ZK.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ZK.search_ui="LATENCY_ACTION_SEARCH_UI",ZK.search_suggest="LATENCY_ACTION_SUGGEST",ZK.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ZK.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ZK.seek="LATENCY_ACTION_PLAYER_SEEK",ZK.settings="LATENCY_ACTION_SETTINGS",ZK.store="LATENCY_ACTION_STORE",
ZK.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ZK.tenx="LATENCY_ACTION_TENX",ZK.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ZK.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",ZK.watch="LATENCY_ACTION_WATCH",ZK.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ZK["watch,watch7"]="LATENCY_ACTION_WATCH",ZK["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ZK["watch,watch7ad"]="LATENCY_ACTION_WATCH",ZK["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ZK.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
ZK.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ZK.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ZK.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ZK.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ZK.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ZK.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ZK.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ZK),UMC=0;var fGh=function(c,f){QK.call(this,1,arguments);this.timer=f};
_.K(fGh,QK);var csz=new kaP("aft-recorded",fGh);var vXn=_.dz.ytLoggingGelSequenceIdObj_||{};_.fu("ytLoggingGelSequenceIdObj_",vXn);var MI=_.dz.ytLoggingLatencyUsageStats_||{};_.fu("ytLoggingLatencyUsageStats_",MI);var rl=function(){this.cleanupJob=0},yR4=function(){rl.instance||(rl.instance=new rl);
return rl.instance};
_.r=rl.prototype;_.r.baseline=function(c,f,d){C5(this,"baseline_"+c)||_.JN("latencyActionBaselined",{clientActionNonce:c},{timestamp:f,cttAuthInfo:d})};
_.r.tick=function(c,f,d,q){C5(this,"tick_"+c+"_"+f)||_.JN("latencyActionTicked",{tickName:c,clientActionNonce:f},{timestamp:d,cttAuthInfo:q})};
_.r.info=function(c,f,d){var q=Object.keys(c).join("");C5(this,"info_"+q+"_"+f)||(c=Object.assign({},c),c.clientActionNonce=f,_.JN("latencyActionInfo",c,{cttAuthInfo:d}))};
_.r.jspbInfo=function(c,f,d){for(var q="",Z=0;Z<L3(c).length;Z++)L3(c)[Z]!==void 0&&(q=Z===0?q.concat(""+Z):q.concat("_"+Z));C5(this,"info_"+q+"_"+f)||(_.b5(c,2,f),f={cttAuthInfo:d},d=_.F("jspb_sparse_encoded_pivot")?new KW([{}]):new KW,_.iX(d,7,Heu,c),h9l("latencyActionInfo",d,f))};
_.r.span=function(c,f,d){var q=Object.keys(c).join("");C5(this,"span_"+q+"_"+f)||(c.clientActionNonce=f,_.JN("latencyActionSpan",c,{cttAuthInfo:d}))};
var C5=function(c,f){MI[f]=MI[f]||{count:0};var d=MI[f];d.count++;d.time=(0,_.qR)();c.cleanupJob||(c.cleanupJob=_.Em(_.a7,function(){var q=(0,_.qR)(),Z;for(Z in MI)MI[Z]&&q-MI[Z].time>6E4&&delete MI[Z];c&&(c.cleanupJob=0)},5E3));
return d.count>5?(d.count===6&&Math.random()*1E5<1&&(d=new _.KD("CSI data exceeded logging limit with key",f.split("_")),f.indexOf("plev")>=0||_.u6(d)),!0):!1};var G93,c6H;G93=window;c6H=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.nZ=G93.performance||G93.mozPerformance||G93.msPerformance||G93.webkitPerformance||new c6H;var Gyr=!1,DMz=!1,dAk=(0,_.n1)(_.nZ.clearResourceTimings||_.nZ.webkitClearResourceTimings||_.nZ.mozClearResourceTimings||_.nZ.msClearResourceTimings||_.nZ.oClearResourceTimings||_.tq,_.nZ);var f33=window;f33.ytcsi&&(f33.ytcsi.infoGel=_.JQ,f33.ytcsi.tick=_.V_);var Bqz=function(c){QK.call(this,1,arguments);this.csn=c};
_.K(Bqz,QK);var i$h=new kaP("screen-created",Bqz),L3e=[],sJk=SUk,zik=0,wS=new Map,inC=new Map,TqN=new Map;var axn=Symbol("uf"),oc=new WeakMap;var gl=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},ED=function(){gl.instance||(gl.instance=new gl);
return gl.instance};
_.r=gl.prototype;_.r.setClient=function(c){this.client=c};
_.r.JSC$12454_newScreen=function(){this.clear();this.csn=_.X2()};
_.r.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.r.reportShown=function(c,f,d){var q=this.JSC$12454_getTrackingParams(c),Z=c.visualElement?c.visualElement:q;f=this.shownElements.has(Z);var M=this.visibleState.get(Z);this.shownElements.add(Z);this.visibleState.set(Z,!0);c.impressionLog&&!f&&c.impressionLog();if(q||c.visualElement)if(d=dPr(this,c,d))if(Z=jgy(this,c),k2(this,c)||Z){q=c.visualElement?c.visualElement:_.Q1(q);var g=c.interactionLoggingClientData;Z||f?k2(this,c)&4?M||K3M(this.client,d,q,g):k2(this,c)&1&&!f&&F3Y(this.client,d,q,g):F3Y(this.client,
d,q,g)}};
_.r.reportHidden=function(c,f,d){var q=this.JSC$12454_getTrackingParams(c),Z=c.visualElement?c.visualElement:q;f=this.hiddenElements.has(Z);var M=this.visibleState.get(Z);this.hiddenElements.add(Z);this.visibleState.set(Z,!1);if(M===!1)return!0;if(!q&&!c.visualElement)return!1;d=dPr(this,c,d);if(!d||!k2(this,c)&&jgy(this,c))return!1;q=c.visualElement?c.visualElement:_.Q1(q);k2(this,c)&8?E$G(this.client,d,q):k2(this,c)&2&&!f&&(c=this.client,f=hQ({cttAuthInfo:uV(d)||void 0},d),q={csn:d,ve:q.getAsJson(),
eventType:2},d==="UNDEFINED_CSN"?WO("visualElementHidden",f,q):c?S_("visualElementHidden",q,c,f):_.JN("visualElementHidden",q,f));return!0};
_.r.JSC$12454_getTrackingParams=function(c){var f=this.getData(c),d,q;if(_.F("il_use_view_model_logging_context")&&(f==null?0:(d=f.context)==null?0:(q=d.loggingContext)==null?0:q.loggingDirectives))return f.context.loggingContext.loggingDirectives.trackingParams||"";var Z,M;if(f==null?0:(Z=f.rendererContext)==null?0:(M=Z.loggingContext)==null?0:M.loggingDirectives)return f.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(f==null?0:f.loggingDirectives)return f.loggingDirectives.trackingParams||
"";var g;return((g=c.veContainer)==null?0:g.trackingParams)?c.veContainer.trackingParams:(f==null?void 0:f.trackingParams)||""};
_.r.JSC$12454_elementShouldLogGesture=function(c,f){c=this.getData(c);return!!((Math.floor(Number(c&&c.loggingDirectives&&c.loggingDirectives.gestures&&c.loggingDirectives.gestures.types||""))||0)&f)};
_.r.JSC$12454_getNearestParentVe=function(c){var f=this.JSC$12454_getTrackingParams(c);return c.visualElement?c.visualElement:f?_.Q1(f):c.parentElement?this.JSC$12454_getNearestParentVe(c.parentElement):null};
var dPr=function(c,f,d){var q=_.X2(d);return c.csn===null||q===c.csn||d?q:(c=new _.KD("VisibilityLogger called before newScreen",{caller:f.tagName,previous_csn:c.csn,current_csn:q}),_.u6(c),null)};
gl.prototype.getData=function(c){var f,d=c.data||((f=c.props)==null?void 0:f.data);if(!d||c.isWebComponentWrapper){var q;d=(q=oc.get(c))==null?void 0:q[axn]}return d};
var jgy=function(c,f){var d;return!((d=c.getData(f))==null||!d.loggingDirectives)},k2=function(c,f){c=c.getData(f);
return Math.floor(Number(c&&c.loggingDirectives&&c.loggingDirectives.visibility&&c.loggingDirectives.visibility.types||""))||1};var O8;O8=function(){};
_.FN=function(){O8.instance||(O8.instance=new O8);return O8.instance};
O8.prototype.setClient=function(c){_.WC(ED().setClient).bind(ED())(c)};
_.qwj=function(){_.FN();_.WC(ED().JSC$12454_newScreen).bind(ED())()};
O8.prototype.clear=function(){_.WC(ED().clear).bind(ED())()};
O8.prototype.reportShown=function(c,f,d){_.WC(ED().reportShown).bind(ED())(c,f,d)};
O8.prototype.reportHidden=function(c,f,d){return _.WC(ED().reportHidden).bind(ED())(c,f,d)};
var pne=function(c,f){return _.WC(ED().JSC$12454_getTrackingParams).bind(ED())(f)},VVk=function(c,f){return _.WC(ED().JSC$12454_getNearestParentVe).bind(ED())(f)};var lj,Zdo;lj=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};
_.bP=function(){lj.instance||(lj.instance=new lj);return lj.instance};
lj.prototype.setClient=function(c){this.client=c};
Zdo=function(c,f,d){d=d===void 0?{}:d;_.WC(function(){var q,Z,M,g=((q=_.b(f==null?void 0:f.commandMetadata,_.jO))==null?void 0:q.rootVe)||((Z=_.b(f==null?void 0:f.commandMetadata,GNy))==null?void 0:(M=Z.screenVisualElement)==null?void 0:M.uiType);if(g){q=_.b(f==null?void 0:f.commandMetadata,Wvo);if(q==null?0:q.parentTrackingParams){var O=_.Q1(q.parentTrackingParams);if(q.parentCsn)var l=q.parentCsn}else d.clickedVisualElement?O=d.clickedVisualElement:f.clickTrackingParams&&(O=_.Q1(f.clickTrackingParams));
a:{q=_.b(f,_.pe);Z=_.b(f,gQC);if(q){if(Z=b8Y(q,"VIDEO")){q={token:Z,videoId:q.videoId};break a}}else if(Z&&(q=b8Y(Z,"PLAYLIST"))){q={token:q,playlistId:Z.playlistId};break a}q=void 0}d=Object.assign({},{cttAuthInfo:q,parentCsn:l},d);if(_.F("expectation_logging")){var m;d.loggingExpectations=((m=_.b(f==null?void 0:f.commandMetadata,GNy))==null?void 0:m.loggingExpectations)||void 0}_.s8(c,g,O,d)}else _.u6(new _.KD("Error: Trying to create a new screen without a rootVeType",f))})()};
_.s8=function(c,f,d,q){q=q===void 0?{}:q;_.WC(function(){oQ_.includes(f)||(_.u6(new _.KD("createClientScreen() called with a non-page VE",f)),f=83769);q.isHistoryNavigation||(c.forwardHistoryStack=[],c.backHistoryStack.push({rootVe:f,key:q.key||""}));c.graftQueue=[];c.stateChangedQueue=[];q.dataPromises?MXT(c,f,d,q):r63(c,f,d,q)})()};
_.Ccy=function(c,f,d){d=d===void 0?0:d;_.WC(function(){f.then(function(q){c.pendingScreenCreation.has(d)&&c.pendingScreenFn&&c.pendingScreenFn();var Z=_.X2(d),M=_.V5(d);if(Z&&M){var g={automatedLogEventSource:3},O;(q==null?0:(O=q.response)==null?0:O.trackingParams)&&y_(c.client,Z,M,_.Q1(q.response.trackingParams),!1,g);var l;(q==null?0:(l=q.playerResponse)==null?0:l.trackingParams)&&y_(c.client,Z,M,_.Q1(q.playerResponse.trackingParams),!1,g)}})})()};
lj.prototype.graftServerVe=function(c,f,d){var q=this;return _.WC(function(){var Z=_.Q1(c);_.B_(q,Z,f,d);return Z})()};
_.XIN=function(c,f,d,q){return _.F("enable_client_ve_spec")&&f.clientVeSpec?(f=_.m_(f.clientVeSpec.uiType,void 0,f.clientVeSpec.elementIndex,f.clientVeSpec.clientYoutubeData,void 0,f),_.B_(c,f,d,q)?f:null):f.trackingParams?c.graftServerVe(f.trackingParams,d,q):null};
_.te=function(c,f,d,q){return _.WC(function(){if(!f.veType)return _.XX(new _.KD("Error: Trying to graft a client VE without a veType.")),null;if(f.visibilityTypes){var Z=f.visibilityTypes.reduce(function(M,g){return M|g});
Z={visibility:{types:String(Z)}}}Z=_.m_(f.veType,f.visualElement,f.elementIndex,f.clientYouTubeData,void 0,Z);return _.B_(c,Z,d,q)?Z:null})()};
_.B_=function(c,f,d,q){q=q===void 0?0:q;return _.WC(function(){if(c.pendingScreenCreation.has(q))return c.graftQueue.push([f,d]),!0;var Z=_.X2(q),M=d||_.V5(q);if(Z&&M){if(_.F("combine_ve_grafts")){var g=c.cachedVisualElements.get(M.toString());g?g.push(f):(c.cachedRootVisualElements.set(M.toString(),M),c.cachedVisualElements.set(M.toString(),[f]));c.attachTimeout||(c.attachTimeout=_.Em(_.a7,function(){gey(c,Z)},1200))}else y_(c.client,Z,M,f);
return!0}return!1})()};
_.ij=function(c,f,d){d=d===void 0?0:d;var q=c.recurringGrafts.get(d)||new Map;if(_.F("smarter_ve_dedupping"))for(var Z=Array.from(q.keys()),M=0;M<Z.length;M++){var g=void 0,O=void 0;var l=f;var m=Z[M];m.isClientVe()&&l.isClientVe()?(g=l.getAsJson(),O=m.getAsJson(),l=g.veType!==O.veType||g.elementIndex!==O.elementIndex||g.dataElement!==O.dataElement||l.getLoggingDirectives()!==m.getLoggingDirectives()?!1:!0):l=m.veData.trackingParams!==void 0&&l.veData.trackingParams!==void 0?((O=l.veData)==null?void 0:
O.trackingParams)===((g=m.veData)==null?void 0:g.trackingParams):!1;if(l)return}else if(q.has(f))return;q.set(f,void 0);c.recurringGrafts.set(d,q);_.X2(d)==="UNDEFINED_CSN"||c.pendingScreenCreation.has(d)||_.B_(c,f,void 0,d)};
_.TG=function(c,f,d,q){q=_.X2(q===void 0?0:q);if(!q)return!1;$Ar(c.client,q,f,d);return!0};
_.mZ=function(c,f,d,q){if(!f)return!1;q=_.X2(q===void 0?0:q);if(!q)return!1;$Ar(c.client,q,_.Q1(f),d);return!0};
_.ps=function(c,f){var d=f.getScreenLayer&&f.getScreenLayer();if(f.visualElement)return _.TG(c,f.visualElement,void 0,d);f=pne(_.FN(),f);return _.mZ(c,f,void 0,d)};
lj.prototype.clickCommand=function(c,f,d){return _.mZ(this,c.clickTrackingParams,f,d===void 0?0:d)};
lj.prototype.stateChanged=function(c,f,d){this.visualElementStateChanged(_.Q1(c),f,d===void 0?0:d)};
lj.prototype.visualElementStateChanged=function(c,f,d){d=d===void 0?0:d;d===0&&this.pendingScreenCreation.has(d)?this.stateChangedQueue.push([c,f]):this.logStateChanged(c,f,d)};
lj.prototype.logStateChanged=function(c,f,d){d=d===void 0?0:d;var q=_.X2(d);c=c||_.V5(d);return q&&c?(QJC(this.client,q,c,f),!0):!1};
var MXT=function(c,f,d,q){q=q===void 0?{}:q;c.pendingScreenCreation.add(q.layer||0);c.pendingScreenFn=function(){r63(c,f,d,q);var g=_.V5(q.layer);if(g){for(var O=_.C(c.graftQueue),l=O.next();!l.done;l=O.next())l=l.value,_.B_(c,l[0],l[1]||g,q.layer);g=_.C(c.stateChangedQueue);for(O=g.next();!O.done;O=g.next())O=O.value,c.logStateChanged(O[0],O[1])}};
d||_.X2(q.layer)||c.pendingScreenFn();if(q.dataPromises)for(var Z=_.C(q.dataPromises),M=Z.next();!M.done;M=Z.next())_.Ccy(c,M.value,q.layer);else _.VO(Error("vf"))},r63=function(c,f,d,q){q=q===void 0?{}:q;
var Z=void 0;q.layer||(q.layer=0);Z=q.parentLayer!==void 0?q.parentLayer:q.layer;var M=_.X2(Z);Z=_.V5(Z);var g=d||Z,O;g&&(q.parentCsn!==void 0?O={clientScreenNonce:q.parentCsn,visualElement:g}:M&&M!=="UNDEFINED_CSN"&&(O={clientScreenNonce:M,visualElement:g}));var l,m=_.hk("EVENT_ID");M==="UNDEFINED_CSN"&&m&&(l={servletData:{serializedServletEventId:m}});_.F("combine_ve_grafts")&&M&&gey(c,M);_.F("no_client_ve_attach_unless_shown")&&g&&M&&YUn(g,M);try{var H=_.mAh(c.client,f,O,q.csnToClone,q.cttAuthInfo,
l,q.implicitGestureType,void 0,q.loggingExpectations)}catch(t){_.wK(t,{rootVeType:f,rootVe:Z,parentVisualElement:d,currentCsn:M,parentEl:O,csnToClone:q.csnToClone});_.VO(t);return}_.vi(H,f,q.layer,q.cttAuthInfo);M&&M!=="UNDEFINED_CSN"&&Z&&!KpP(M)&&E$G(c.client,M,Z,!0);c.backHistoryStack[c.backHistoryStack.length-1]&&!c.backHistoryStack[c.backHistoryStack.length-1].csn&&(c.backHistoryStack[c.backHistoryStack.length-1].csn=H||"");_.JQ({clientScreenNonce:H});_.qwj();var A=_.V5(q.layer);M&&M!=="UNDEFINED_CSN"&&
A&&(_.F("web_mark_root_visible")||_.F("music_web_mark_root_visible"))&&_.N9(H,A);c.pendingScreenCreation.delete(q.layer||0);c.pendingScreenFn=void 0;var Y;(Y=c.recurringGrafts.get(q.layer))==null||Y.forEach(function(t,E){t?_.B_(c,E,t,q.layer):A&&_.B_(c,E,A,q.layer)});
kno(c)},kno=function(c){for(var f=0;f<c.afterNewScreenOneOffJobs.length;f++){var d=c.afterNewScreenOneOffJobs[f];
try{d()}catch(q){_.VO(q)}}for(f=c.afterNewScreenOneOffJobs.length=0;f<c.afterNewScreenRecurringJobs.length;f++){d=c.afterNewScreenRecurringJobs[f];try{d()}catch(q){_.VO(q)}}},gey=function(c,f){if(f===void 0)for(var d=tk4(),q=0;q<d.length;q++)d[q]!==void 0&&gey(c,d[q]);
else c.cachedVisualElements.forEach(function(Z,M){(M=c.cachedRootVisualElements.get(M))&&Hnz(c.client,f,M,Z)}),c.cachedVisualElements.clear(),c.cachedRootVisualElements.clear(),c.attachTimeout=void 0};var H_=function(c){c=c===void 0?{layer:0}:c;this.hasRun=!1;this.createScreenConfig=c;c={};this.zYY=(c.response=!1,c.playerResponse=!1,c)};
_.K(H_,qI);H_.prototype.validate=function(c){return!(!c.data||!c.data.response&&!c.data.playerResponse)};
H_.prototype.handle=function(c){var f=_.bP(),d=this.createScreenConfig.layer;c.data.response&&c.data.response.trackingParams&&!this.zYY.response&&(f.graftServerVe(c.data.response.trackingParams,void 0,d),this.zYY.response=!0);c.data.playerResponse&&c.data.playerResponse.trackingParams&&!this.zYY.playerResponse&&(f.graftServerVe(c.data.playerResponse.trackingParams,void 0,d),this.zYY.playerResponse=!0)};var Au=function(){this.ob=_.c9();this.vB=[];this.zZP=0};
Au.prototype.processChunk=function(c){if(c){for(var f=_.C(this.vB),d=f.next();!d.done;d=f.next())d=d.value,d.validate(c)&&(d.handle(c),d.hasRun=!0);_.V_("np"+this.zZP);this.zZP++}};var Gi;var ZwY,OdO,BYH;_.Hh=function(c,f,d,q,Z,M,g){g=g===void 0?[]:g;this.buildCommandPayload=c;this.navigate=f;this.handleServiceRequest=d;this.sendAction=q;this.JSC$12497_screenManager=Z;this.commandResolverMap=M;this.autoLogResolverAllowlist=g;this.pendingCommands=new Set;this.isTracingEnabled=!1;OdO(this)};
ZwY=function(c,f,d){var q=NZP,Z=Ixl,M=_.bP(),g=l3_;d=d===void 0?[]:d;_.Hh.instance=new _.Hh(c,f,q,Z,M,g,d)};
OdO=function(c){if(!c.isTracingEnabled&&VgN("command")){var f=c.resolveCommand;c.resolveCommand=function(d,q){a:{for(Z in d)if(Object.prototype.hasOwnProperty.call(d,Z)){var Z={commandType:Z};break a}Z={}}return hiz("command",Z,f.bind(this,d,q))};
c.isTracingEnabled=!0}};
BYH=function(c,f,d){if(!c.commandResolverMap)return!1;var q=DA4(f,c.commandResolverMap);return q?((c.autoLogResolverAllowlist.some(function(Z){return!!_.b(f,Z)})||(d==null?0:d.forceClickLogging))&&sg3(c,f,d),q instanceof Promise?q.then(function(Z){Z.resolve(f,d)}):q.resolve(f,d),!0):!1};
_.Hh.prototype.resolveCommand=function(c,f){var d=this,q=idj(c);if(BYH(this,c,f))return!0;if(q)return TY3(this,c,f);if(!this.buildCommandPayload)return wKn(c,"Unhandled command by buildCommandPayload"),!1;var Z=this.buildCommandPayload(c,f);if(f==null?0:f.commandController)Z.commandController=f.commandController;if(Z.type===0){if(!this.navigate)return yse(c,"navigate"),!1;if(!mP_(Z.command))return wKn(c,"Page requests need to specify a url"),!1;_.F("logging_avoid_blocking_during_navigation")&&_.oZk().transition("application_navigating");
c=this.navigate(Z)||[];qM_(c).then(function(){d.pendingCommands.delete(Z.command)});
return!0}if(Z.type===1){if(!this.handleServiceRequest)return yse(c,"handleServiceRequest"),!1;(f==null?0:f.forceClickLogging)&&sg3(this,Z.command,f);c=this.handleServiceRequest(Z);qM_(c).then(function(){d.pendingCommands.delete(Z.command)});
return!0}if(Z.type===2){if(!this.sendAction)return yse(c,"sendAction"),!1;sg3(this,Z.command,f);this.sendAction(Z);return!0}return!1};
var sg3=function(c,f,d){if((d==null||!d.disableClickTracking)&&c.JSC$12497_screenManager)if(f.clickTrackingParams&&_.F("log_click_with_layer_from_element_in_command_handler")){var q;d=d==null?void 0:(q=d.form)==null?void 0:q.element;c.JSC$12497_screenManager.clickCommand(f,null,d&&d.getScreenLayer&&d.getScreenLayer())}else f.clickTrackingParams?c.JSC$12497_screenManager.clickCommand(f):!_.F("disable_clicked_visual_element_in_command_handler")&&(d==null?0:d.clickedVisualElement)&&_.TG(c.JSC$12497_screenManager,
d.clickedVisualElement)},idj=function(c){var f=!!_.b(c,_.BO),d;
c=((d=_.b(c,_.Ti))==null?void 0:d.signal)==="CLIENT_SIGNAL";return f||c},TY3=function(c,f,d){var q=_.b(f,_.BO);
if(q)var Z=(q==null?void 0:q.commands)||[];else{var M;if(((M=_.b(f,_.Ti))==null?void 0:M.signal)==="CLIENT_SIGNAL"){var g;Z=((g=_.b(f,_.Ti))==null?void 0:g.actions)||[]}}if(Z){f=_.C(Z);for(Z=f.next();!Z.done;Z=f.next()){Z=Z.value;try{c.resolveCommand(Z,d)}catch(O){O instanceof Error&&_.VO(O)}}return!0}wKn(f,"Could not handle the meta command");return!1},mP_=function(c){var f;
return!((f=_.b(c==null?void 0:c.commandMetadata,_.jO))==null||!f.url)};var Y2=function(){qI.apply(this,arguments)};
_.K(Y2,qI);Y2.prototype.validate=function(c){var f,d;return!this.hasRun&&!!((f=c.data.response)==null?0:(d=f.onResponseReceivedEndpoints)==null?0:d.length)};
Y2.prototype.handle=function(c){var f=_.Hh.instance;c=_.C(c.data.response.onResponseReceivedEndpoints);for(var d=c.next();!d.done;d=c.next())f.resolveCommand(d.value)};var Hdr,A6F,YwH;
Hdr=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=_.sX();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.F7=function(){A6F||(A6F=new Hdr);return A6F};
YwH=function(){var c=_.F7();c.miniplayerButtonActivation=!1;c.userActivation=!1;c.playlistWatchPageActivation=!1;c.productDetailsPageActivation=!1;c.miniAppPageActivation=!1;c.playablesDestPageActivation=!1;c.lockupActivation=!1;c.showMiniplayerCommandActivation=!1;c.playlistSuggestionsShelfActivation=!1;c.mediaSessionPipActivation=!1;c.watchPipActivation=!1;c.watchWhileActivation=!1;c.shortsPipActivation=!1};
_.FUF=function(){var c=_.F7(),f=c.mediaSessionPipActivation,d=c.watchPipActivation,q=c.watchWhileActivation,Z=c.playlistWatchPageActivation,M=c.lockupActivation,g=c.showMiniplayerCommandActivation,O=c.navigatingAwayFromWatchDeletedVideo,l=c.shortsPipActivation,m=c.playlistSuggestionsShelfActivation,H=c.productDetailsPageActivation,A=c.miniAppPageActivation,Y=c.playablesDestPageActivation;return!c.miniplayerButtonActivation&&!Z&&!m&&!H&&!A&&!Y&&!M&&!g&&!f&&!d&&!q&&!l||O};var ZIN;_.tu=fC("FEwhat_to_watch","/",3854);_.MSG=fC("FEdownloads","/feed/downloads",42352);ZIN=fC("FEmusic_offline","browse/FEmusic_offline",42352);var on=function(c,f){f=f===void 0?[]:f;var d=d===void 0?[]:d;f=qAr.apply(null,[ZFr.apply(null,_.LT(f))].concat(_.LT(d)));this.store=gok(c,void 0,f)};
on.prototype.getState=function(){return this.store.getState()};
on.prototype.dispatch=function(c){return this.store.dispatch(c)};
on.prototype.subscribe=function(c){return this.store.subscribe(c)};
on.prototype.replaceReducer=function(c){return this.store.replaceReducer(c)};
on.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.bj=function(c,f,d){var q=f(c.getState());return c.subscribe(function(){var Z=f(c.getState());if(Z!==q){var M=q;q=Z;d(Z,M)}})};var ajG;_.ER=function(c,f,d){return _.CC({type:"REPLACE_ENTITY",payload:{entityPayload:d,entityType:c,key:f}})};
ajG=function(c){return _.CC({type:"REPLACE_ENTITIES",payload:c})};
_.uh=function(c,f,d,q){return _.CC({type:"UPDATE_ENTITY",payload:{entityPayload:d,entityType:c,key:f,mergeOption:q}})};var dBk=function(c){var f=this;c=c===void 0?[]:c;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;c.forEach(function(d){f.append(d)})};
_.r=dBk.prototype;_.r.getLength=function(){return this.totalLength};
_.r.append=function(c){var f=this.arrays.length===0?!1:(f=this.arrays[this.arrays.length-1])&&f.buffer===c.buffer&&f.byteOffset+f.length===c.byteOffset;f?(f=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(f.buffer,f.byteOffset,f.length+c.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(c);this.totalLength+=c.length};
_.r.split=function(c){for(var f=new dBk,d=new dBk,q=_.C(this.arrays),Z=q.next();!Z.done;Z=q.next())Z=Z.value,c>=Z.length?(f.append(Z),c-=Z.length):c?(f.append(new Uint8Array(Z.buffer,Z.byteOffset,c)),d.append(new Uint8Array(Z.buffer,Z.byteOffset+c,Z.length-c)),c=0):d.append(Z);return{headView:f,tailView:d}};
_.r.extract=function(c,f){return this.split(c).tailView.split(f).headView};
_.r.isFocused=function(c){return c>=this.arrayPos&&c<this.arrayPos+this.arrays[this.arrayIdx].length};
_.r.focus=function(c){if(!this.isFocused(c))for(c<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=c&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var tXu=function(c,f){c.focus(f);return c.arrays[c.arrayIdx][f-c.arrayPos]};(function(){var c=function(q){return new Uint8Array(q)},f=function(q){for(var Z=new Uint8Array(q.length),M=0;M<q.length;M++)Z[M]=q[M];
return Z},d=new Uint8Array([1]);
return d.length===1&&d[0]===1?c:f})();
var pKz=Array(1024),UAk=window.TextDecoder?new TextDecoder:void 0,o$M=window.TextEncoder?new TextEncoder:void 0;var fjk=function(c){this.arrayView=c;this.pos=0;this.pendingTagAndType=-1},gW=function(c){var f=tXu(c.arrayView,c.pos);
++c.pos;if(f<128)return f;for(var d=f&127,q=1;f>=128;)f=tXu(c.arrayView,c.pos),++c.pos,q*=128,d+=(f&127)*q;return d},jEr=function(c,f){var d=c.pendingTagAndType;
for(c.pendingTagAndType=-1;c.pos+1<=c.arrayView.totalLength;){d<0&&(d=gW(c));var q=d>>3,Z=d&7;if(q===f)return!0;if(q>f){c.pendingTagAndType=d;break}d=-1;switch(Z){case 0:gW(c);break;case 1:c.pos+=8;break;case 2:q=gW(c);c.pos+=q;break;case 5:c.pos+=4}}return!1};var ZzN=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=cBN(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},lI=function(c,f){f=c.pos+f;
if(!(c.buf.length>=f)){for(var d=c.buf.length*2;d<f;)d*=2;c.buf=cBN(d,c.wasm,c.buf.subarray(0,c.pos));c.view=new DataView(c.buf.buffer,c.buf.byteOffset,c.buf.byteLength)}},Ox=function(c,f){if(f>268435455){lI(c,4);
for(var d=f&1073741823,q=0;q<4;q++)c.view.setUint8(c.pos,d&127|128),d>>=7,c.pos+=1;f=Math.floor(f/268435456)}for(lI(c,4);f>127;)c.view.setUint8(c.pos,f&127|128),f>>=7,c.pos+=1;c.view.setUint8(c.pos,f);c.pos+=1};for(var Mwk={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},qBP={},bdF=_.C(Object.entries(Mwk)),KUK=bdF.next();!KUK.done;KUK=bdF.next()){var Ee3=_.C(KUK.value),neT=Ee3.next().value,$Po=Ee3.next().value,QgH=neT,Swy=$Po;Swy&&(qBP[Swy]=QgH)};var Cqk=function(c,f){c=c===void 0?{}:c;switch(f.type){case "ENTITY_LOADED":return f.payload.reduce(function(q,Z){var M,g=(M=Z.options)==null?void 0:M.persistenceOption;if(g&&g!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&g!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return q;if(!Z.entityKey)return _.VO(Error("zf")),q;if(Z.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Z.payload)return Z=new _.KD("REPLACE entity mutation is missing a payload",{entityKey:Z.entityKey}),_.VO(Z),q;var O=(0,_.zV.getAnyKey)(Z.payload);
return k2C(q,O,Z.entityKey,Z.payload[O])}if(Z.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Z=Z.entityKey;try{var l=_.kC(Z).entityType;O=k2C(q,l,Z);break a}catch(A){if(A instanceof Error){Z=new _.KD("Failed to deserialize entity key",{entityKey:Z,originalMessage:A.message});_.VO(Z);O=q;break a}throw A;}O=void 0}return O}if(Z.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Z.payload)return Z=new _.KD("UPDATE entity mutation is missing a payload",{entityKey:Z.entityKey}),_.VO(Z),q;O=(0,_.zV.getAnyKey)(Z.payload);
var m,H;return OzP(q,O,Z.entityKey,Z.payload[O],(m=Z.fieldMask)==null?void 0:(H=m.mergeOptions)==null?void 0:H.repeatedFieldsMergeOption)}return q},c);
case "REPLACE_ENTITY":var d=f.payload;return k2C(c,d.entityType,d.key,d.entityPayload);case "REPLACE_ENTITIES":return Object.keys(f.payload).reduce(function(q,Z){var M=f.payload[Z];return Object.keys(M).reduce(function(g,O){return k2C(g,Z,O,M[O])},q)},c);
case "UPDATE_ENTITY":return d=f.payload,OzP(c,d.entityType,d.key,d.entityPayload,d.mergeOption);default:return c}};var ljk;var LUo=!1,K5,E8,n5,$2,Q9,zur=function(c){_.ES.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!LUo){var f,d=new Uint8Array(256),q=new Uint8Array(256);var Z=1;for(f=0;f<256;f++)d[Z]=f,q[f]=Z,Z^=Z<<1^(Z>>7&&283);K5=new Uint8Array(256);E8=iI(256);n5=iI(256);$2=iI(256);Q9=iI(256);for(var M=0;M<256;M++){Z=M?q[255^d[M]]:0;Z^=Z<<1^Z<<2^Z<<3^Z<<4;Z=Z&255^Z>>>8^99;K5[M]=Z;f=Z<<1^(Z>>7&&283);var g=f^Z;E8[M]=f<<24|Z<<16|Z<<8|g;n5[M]=g<<24|E8[M]>>>8;$2[M]=Z<<24|n5[M]>>>
8;Q9[M]=Z<<24|$2[M]>>>8}LUo=!0}Z=iI(44);for(d=0;d<4;d++)Z[d]=c[4*d]<<24|c[4*d+1]<<16|c[4*d+2]<<8|c[4*d+3];for(q=1;d<44;d++)c=Z[d-1],d%4||(c=(K5[c>>16&255]^q)<<24|K5[c>>8&255]<<16|K5[c&255]<<8|K5[c>>>24],q=q<<1^(q>>7&&283)),Z[d]=Z[d-4]^c;this.key=Z};
_.K(zur,_.ES);
zur.prototype.encrypt=function(c){var f=c.length;c=new Uint8Array(c.buffer.slice(c.byteOffset,c.byteOffset+f));for(var d=this.cipherBlock,q=0;q<f&&this.blockOffset<16;)c[q++]^=d[this.blockOffset++];for(var Z=f-(f-q)%16;q<Z;)J6o(this),c[q++]^=d[0],c[q++]^=d[1],c[q++]^=d[2],c[q++]^=d[3],c[q++]^=d[4],c[q++]^=d[5],c[q++]^=d[6],c[q++]^=d[7],c[q++]^=d[8],c[q++]^=d[9],c[q++]^=d[10],c[q++]^=d[11],c[q++]^=d[12],c[q++]^=d[13],c[q++]^=d[14],c[q++]^=d[15];if(q<f)for(J6o(this),this.blockOffset=0;q<f;)c[q++]^=
d[this.blockOffset++];return c};
var J6o=function(c){for(var f=c.key,d=c.counter[0]^f[0],q=c.counter[1]^f[1],Z=c.counter[2]^f[2],M=c.counter[3]^f[3],g=3;g>=0&&!(c.counter[g]=-~c.counter[g]);g--);for(var O,l,m=4;m<40;)g=E8[d>>>24]^n5[q>>16&255]^$2[Z>>8&255]^Q9[M&255]^f[m++],O=E8[q>>>24]^n5[Z>>16&255]^$2[M>>8&255]^Q9[d&255]^f[m++],l=E8[Z>>>24]^n5[M>>16&255]^$2[d>>8&255]^Q9[q&255]^f[m++],M=E8[M>>>24]^n5[d>>16&255]^$2[q>>8&255]^Q9[Z&255]^f[m++],d=g,q=O,Z=l;c=c.cipherBlock;g=f[40];c[0]=K5[d>>>24]^g>>>24;c[1]=K5[q>>16&255]^g>>16&255;c[2]=
K5[Z>>8&255]^g>>8&255;c[3]=K5[M&255]^g&255;g=f[41];c[4]=K5[q>>>24]^g>>>24;c[5]=K5[Z>>16&255]^g>>16&255;c[6]=K5[M>>8&255]^g>>8&255;c[7]=K5[d&255]^g&255;g=f[42];c[8]=K5[Z>>>24]^g>>>24;c[9]=K5[M>>16&255]^g>>16&255;c[10]=K5[d>>8&255]^g>>8&255;c[11]=K5[q&255]^g&255;g=f[43];c[12]=K5[M>>>24]^g>>>24;c[13]=K5[d>>16&255]^g>>16&255;c[14]=K5[q>>8&255]^g>>8&255;c[15]=K5[Z&255]^g&255};var a33=!1;(function(){var c=function(q){return new Uint8Array(q)},f=function(q){for(var Z=new Uint8Array(q.length),M=0;M<q.length;M++)Z[M]=q[M];
return Z},d=new Uint8Array([1]);
return d.length===1&&d[0]===1?c:f})();
var SY;var uSj=function(c){a:{if(!a33&&!Gf){if(SY){var f=SY;break a}SY=(f=window.crypto)==null?void 0:f.subtle;var d,q,Z;if(((d=SY)==null?0:d.importKey)&&((q=SY)==null?0:q.sign)&&((Z=SY)==null?0:Z.encrypt)){f=SY;break a}SY=void 0}f=void 0}f&&(this.nativeEncryptor=new VX_(c,f));this.encryptorPolyfill=new XRT(c)};
uSj.prototype.encrypt=function(c,f){var d=this,q;return _.k(function(Z){switch(Z.nextAddress){case 1:if(!d.nativeEncryptor){Z.jumpTo(2);break}_.iY(Z,3);return Z.yield(d.nativeEncryptor.encrypt(c,f),5);case 5:return Z.return(Z.yieldResult);case 3:q=_.Yw(Z),_.u6(q),a33=!0,d.nativeEncryptor=void 0;case 2:return Z.return(d.encryptorPolyfill.encrypt(c,f))}})};
uSj.prototype.decrypt=function(c,f){return this.encrypt(c,f)};
var VX_=function(c,f){this.JSC$12570_aesKey=c;this.subtleCrypto=f};
VX_.prototype.encrypt=function(c,f){var d=this,q;return _.k(function(Z){if(Z.nextAddress==1)return _.iY(Z,2),Z.yield(veH(d,c,f),4);if(Z.nextAddress!=2)return Z.return(Z.yieldResult);q=_.Yw(Z);_.u6(q);a33=!0;throw q;})};
var veH=function(c,f,d){var q,Z;return _.k(function(M){switch(M.nextAddress){case 1:if(c.cryptoKey){M.jumpTo(2);break}return M.yield(c.subtleCrypto.importKey("raw",c.JSC$12570_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:c.cryptoKey=M.yieldResult;case 2:return q={name:"AES-CTR",counter:d,length:128},M.yield(c.subtleCrypto.encrypt(q,c.cryptoKey,f),4);case 4:return Z=M.yieldResult,M.return(new Uint8Array(Z))}})},XRT=function(c){this.JSC$12573_aesKey=c};
XRT.prototype.encrypt=function(c,f){this.encryptor||(this.encryptor=new zur(this.JSC$12573_aesKey));for(var d=this.encryptor,q=0;q<4;q++)d.counter[q]=f[q*4]<<24|f[q*4+1]<<16|f[q*4+2]<<8|f[q*4+3];d.blockOffset=16;return this.encryptor.encrypt(c)};
XRT.prototype.decrypt=function(c,f){return this.encrypt(c,f)};var hu3={},izh=j6("yt-idb-pref-storage",{objectStores:(hu3.prefs={addedAtVersion:1},hu3),shared:!1,upgrade:function(c,f){f(1)&&Ws(ym(c,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.L5=function(c){this.token=c};
_.L5.getInstance=function(){return _.k(function(c){return c.return(new Promise(function(f){_.dR().then(function(d){d?(_.L5.instance||(_.L5.instance=new _.L5(d)),f(_.L5.instance)):f(void 0)})}))})};
_.L5.prototype.get=function(c){var f=this,d,q,Z;return _.k(function(M){if(M.nextAddress==1)return M.yield(TFz(f.token),2);if(M.nextAddress!=3)return d=M.yieldResult,M.yield(d.get("prefs",c),3);q=M.yieldResult;if(!q)return M.return();Z=(0,_.qR)();return q.expirationTimestampMs<=Z?M.return():M.return(q.value)})};
_.L5.prototype.set=function(c,f,d){d=d===void 0?31536E3:d;var q=this,Z,M,g;return _.k(function(O){if(O.nextAddress==1)return Z=(0,_.qR)(),M={key:c,value:f,expirationTimestampMs:Z+d*1E3},O.yield(TFz(q.token),2);g=O.yieldResult;return O.yield(g.put("prefs",M),0)})};
_.L5.prototype.remove=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(TFz(f.token),2);d=q.yieldResult;return q.yield(d.delete("prefs",c),0)})};var zG={},wR_=(zG.INVALID_ENCODER_VERSION="Invalid encoder version",zG.KEY_CREATION_FAILED="Failed to create encoder key",zG.UNKNOWN_DECODE_ERROR="Failed to decode PES data",zG.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",zG.WRONG_DATA_TYPE="Encoder cannot process the data type",zG),Th=function(c,f){f=f===void 0?{}:f;_.KD.call(this,wR_[c],Object.assign({},{name:"PESEncoderError",type:c},f));this.type=c;this.level="WARNING";Object.setPrototypeOf(this,Th.prototype)};
_.K(Th,_.KD);var Ju=function(){};
Ju.prototype.encode=function(c,f){try{return this.encodeImpl(c,f)}catch(d){YBN(d,HzP)}};
Ju.prototype.decode=function(c,f){try{return this.decodeImpl(c,f)}catch(d){YBN(d,ABY)}};
var y6H=function(c,f,d){var q;return _.k(function(Z){if(Z.nextAddress==1)return _.iY(Z,2),Z.yield(c.decodeAsyncImpl(f,d),4);if(Z.nextAddress!=2)return Z.return(Z.yieldResult);q=_.Yw(Z);YBN(q,ABY);_.Fm(Z)})};
Ju.prototype.decodeAsyncImpl=function(c,f){return Promise.resolve(this.decodeImpl(c,f))};var aX=function(c,f){this.aesEncryptor=c;this.aesEncryptorAsync=f};
_.K(aX,Ju);aX.prototype.encodeImpl=function(c,f){f=Fve(f);c=(new TextEncoder).encode(JSON.stringify(c));return this.aesEncryptor.encrypt(c,f)};
aX.prototype.decodeImpl=function(c,f){if(!(c instanceof Uint8Array))throw mBY(1);var d=new TextDecoder;f=Fve(f);c=this.aesEncryptor.decrypt(c,f);return JSON.parse(d.decode(c))};
aX.prototype.decodeAsyncImpl=function(c,f){var d=this,q,Z,M;return _.k(function(g){if(g.nextAddress==1){if(!(c instanceof Uint8Array))throw mBY(1);q=new TextDecoder;Z=Fve(f);return g.yield(d.aesEncryptorAsync.decrypt(c,Z),2)}M=g.yieldResult;return g.return(JSON.parse(q.decode(M)))})};var twG={accountLinkStatusEntity:kNF,booleanEntity:yMT,buttonEntity:djo,captionTrack:DAO,channelHandle:T7v,chipEntity:QXT,commerceAcquisitionClientPayloadEntity:nd_,commerceCartListEntity:$jH,contextNoteFeedEntityPayload:SAO,contextNoteUserRatingEntityPayload:LJ_,continuationTokenEntity:KP3,downloadQualityPickerEntity:sYu,downloadsPageRefreshTokenEntity:i8u,downloadsPageViewConfigurationEntity:auu,downloadStatusEntity:Bhy,dismissState:S8H,sfvAudioItemCurrentlyPlayingEntity:Fvr,emojiFountainDataEntity:G7u,
emojiCustomizationSetEntity:oHH,fakeChannel:eIj,fakePlaylist:N3K,fakePlaylistEntryCollection:Ik_,fakeVideo:RI_,fakeVideoDescription:UKr,featuredProductsEntity:cso,flowStateEntity:Mk_,iconBadgeEntity:QNK,interstitialInteractionStateEntity:n3_,likeButtonAnimationEntity:Vlu,liveChatPollStateEntity:XaT,liveViewerLeaderboardChatEntryPointStateEntity:jEj,liveViewerLeaderboardPointsEntity:qB3,liveReactionsDataEntity:cLH,logoEntity:Kp3,macroMarkerEntity:Xd_,mainDownloadsLibraryEntity:Th3,mainDownloadsListEntity:mM3,
mainPlaylistDownloadStateEntity:AR_,mainPlaylistEntity:EXy,mainPlaylistVideoEntity:nXK,mainVideoDownloadStateEntity:YP_,mainVideoEntity:LPH,markersEngagementPanelSyncEntity:uIy,markersVisibilityOverrideEntity:vXF,musicAlbumReleaseDetail:Onj,musicAlbumReleaseDownloadMetadataEntity:Mg_,musicAlbumRelease:k0F,musicAlbumReleaseUserDetail:lG3,musicArtistDetail:Bqo,musicArtist:sJy,musicArtistUserDetail:in3,musicDownloadsLibraryEntity:rs3,musicLibraryEdit:TqH,musicLibraryStatusEntity:mAT,musicPlaylist:Hno,
musicPlaylistDownloadMetadataEntity:CsK,musicShare:YUF,musicTrackDetail:tgy,musicTrackDownloadMetadataEntity:g$T,musicTrack:F3v,musicTrackUserDetail:bn_,offlineOrchestrationActionWrapperEntity:eij,offlineVideoPolicy:NqK,offlineVideoStreams:IG3,offlineabilityEntity:FPH,orchestrationWebSamplingEntity:tlO,pageHeaderEntity:ez3,pdpStateEntity:Sa_,pinnedProductEntity:fGT,playbackData:Ps_,playerStateEntity:h9_,quantityIncrementerEntity:LNK,refresh:Riu,saveToPlaylistListEntity:DBH,selectedChipIndexEntityPayload:wdO,
settingEntity:g2F,stringEntity:W6j,suggestedFeedbackChipStateEntity:yRO,transfer:UAy,trendingOfferEntity:dAy,videoDownloadContextEntity:pKo,videoOverviewAsyncDataEntity:cx_,videoPlaybackPositionEntity:ZyT,votingEntity:Rz3,ytMainChannelEntity:z9y,youchatPendingResponseEntity:WPK,ytMainDownloadedVideoEntity:b8v,ytMainVideoEntity:JRO};var WUH,eu_,F5,LvG,z1r,Pco,UPH,Ruj,I3o;WUH=function(c,f){this.JSC$12592_wrapped=c;this.JSC$12592_encoderRegistry=f;this.changedKeys={}};
eu_=function(c,f){return DPO(c.JSC$12592_encoderRegistry,f.version).decode(f.data,f.key)};
_.NY_=function(c,f,d){return c.JSC$12592_wrapped.objectStore("EntityStore").get(f).then(function(q){if(q){if(d&&q.entityType!==d)throw Error("Af");return eu_(c,q)}})};
F5=function(c,f,d){return d?(d=d.map(function(q){return _.NY_(c,q,f)}),Wq.all(d)):c.JSC$12592_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(f)).then(function(q){return q.map(function(Z){return eu_(c,Z)})})};
_.SBl=function(c,f,d){var q=rBz(f),Z=DPO(c.JSC$12592_encoderRegistry,1),M=Object.assign({},f);return c.JSC$12592_wrapped.objectStore("EntityStore").get(q).then(function(g){if(g){if(g.entityType!==d)throw Error("Af");M.entityMetadata||(g=eu_(c,g),M.entityMetadata=g.entityMetadata)}}).then(function(){var g={key:q,
entityType:d,data:Z.encode(M,q),version:1};return Wq.all([c.JSC$12592_wrapped.objectStore("EntityStore").put(g),I3o(c,M,d)])}).then(function(){Pco(c,q,d);
return q})};
LvG=function(c,f){var d=_.kC(f).entityType;return Wq.all([c.JSC$12592_wrapped.objectStore("EntityStore").delete(f),Ruj(c,f)]).then(function(){Pco(c,f,d)})};
z1r=function(c,f,d,q){var Z=DPO(c.JSC$12592_encoderRegistry,1);return _.NY_(c,f,q).then(function(M){if(M){M=RiM(M,d);var g={key:f,entityType:q,data:Z.encode(M,f),version:1};return Wq.all([c.JSC$12592_wrapped.objectStore("EntityStore").put(g),I3o(c,M,q)])}}).then(function(){Pco(c,f,q);
return f})};
Pco=function(c,f,d){var q=c.changedKeys[d];q||(q=new Set,c.changedKeys[d]=q);q.add(f)};
UPH=function(c,f,d){var q=rBz(f);d=bzr(d);if(!d)return Wq.resolve([]);d=new d(f);c=c.JSC$12592_wrapped.objectStore("EntityAssociationStore");f=[];d=_.C(d.getAssociations());for(var Z=d.next();!Z.done;Z=d.next())f.push(c.put({parentEntityKey:q,childEntityKey:Z.value}));return Wq.all(f).then(function(M){return M.map(function(g){return g[1]})})};
Ruj=function(c,f){return c.JSC$12592_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(f))};
I3o=function(c,f,d){var q=rBz(f);return Ruj(c,q).then(function(){return UPH(c,f,d)})};var pRj=function(){};
_.K(pRj,Ju);pRj.prototype.encodeImpl=function(c){return c};
pRj.prototype.decodeImpl=function(c){if(c instanceof Uint8Array)throw mBY(0);return c};var nfe=function(){this.cacheMap={};this.cacheMap[0]=new pRj;if(!_.F("aes_pes_encoder_killswitch")){var c=this.cacheMap;try{var f=_.t4();var d=Fve(f);var q=new aX(new XRT(d),new uSj(d))}catch(Z){throw c=Z instanceof Error?new Th("KEY_CREATION_FAILED",{originalMessage:Z.message}):new Th("KEY_CREATION_FAILED"),_.VO(c),c;}c[1]=q}},DPO=function(c,f){f=f===void 0?0:f;
c=c.cacheMap[f];if(!c)throw f=new Th("INVALID_ENCODER_VERSION",{encoderVersion:f}),_.VO(f),f;return c};var Hb=function(c,f){_.ES.call(this);this.token=c;this.JSC$12606_encoderRegistry=f;this.observers=[];c=new _.dz.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.t4());c.onmessage=this.handleMessage.bind(this);this.channel=c};
_.K(Hb,_.ES);_.YC=function(c,f,d){var q,Z,M,g;return _.k(function(O){if(O.nextAddress==1)return O.yield(BFr(c.token),2);if(O.nextAddress!=3)return q=O.yieldResult,O.yield(_.pD(q,["EntityStore","EntityAssociationStore"],f,function(l){Z=new WUH(l,c.JSC$12606_encoderRegistry);return d(Z)}),3);
M=O.yieldResult;Z&&(g=Z.changedKeys,Object.keys(g).length>0&&(c.channel.postMessage(g),xP_(c,g)));return O.return(M)})};
Hb.prototype.observe=function(c){var f=this;this.observers.push(c);return function(){var d=f.observers.indexOf(c);d>=0&&f.observers.splice(d,1)}};
var HEn=function(c){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(_.YC(c,{mode:"readonly",enableRetries:!0},function(q){return q.JSC$12592_wrapped.objectStore("EntityStore").getAll()}),2);
f=d.yieldResult;return d.return(Promise.all(f.filter(function(q){return!!q}).map(function(q){var Z,M;
return _.k(function(g){if(g.nextAddress==1){Z=q.key;M=q.entityType;var O=g.yield;var l=y6H(DPO(c.JSC$12606_encoderRegistry,q.version),q.data,q.key);return O.call(g,l,2)}return g.return({key:Z,entityType:M,data:g.yieldResult})})})))})};
Hb.prototype.handleMessage=function(c){xP_(this,c.data)};
var xP_=function(c,f){c=_.C(c.observers);for(var d=c.next();!d.done;d=c.next())d=d.value,d(f)};
Hb.prototype.disposeInternal=function(){this.channel.close()};
var Kve;var V9,Gn3,xBk;V9={};_.oej=(V9.mainVideoEntity="mainVideoEntityActionMetadata",V9.mainPlaylistEntity="mainPlaylistEntityActionMetadata",V9.musicTrack="musicTrackEntityActionMetadata",V9.musicPlaylist="musicPlaylistEntityActionMetadata",V9);Gn3=new _.jk("DOWNLOADS_ENTITY_TYPE_MAP");_.SU=_.sx("","downloadsPageViewConfigurationEntity");xBk=_.sx("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.LZY=_.sx("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.sx("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.sx("SMART_DOWNLOADS_ENABLED","settingEntity");_.sx("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var uLl=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var e1k=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var H5e={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var X7,HtM,np_,iRN;X7=window;_.D8=X7.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.S2Y=X7.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Ux;HtM=X7.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||bh;np_=X7.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Ep_;_.cdr=X7.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Dhr;iRN=X7.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||I_3;Pb({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 J$M=A$N(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(c){return c}}}),w7z=A$N(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(c){return c}}}),bth=new Map;var V3n=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],QMM;var fTj=function(c){return _.CC({type:"SET_EPHEMERAL_ACTION",payload:c})};var dg3={ephemeralAction:null};var jF_={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var a$N={sharedUi:function(c,f){c=c===void 0?jF_:c;switch(f.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},c,{animatedThumbnailEnabled:f.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},c,{inlinePreviewEnabled:f.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},c,{currentPageType:f.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},c,{currentPageSubType:f.payload});default:return c}},
a11y:mF({ephemeralAction:function(c,f){c=c===void 0?dg3.ephemeralAction:c;switch(f.type){case "SET_EPHEMERAL_ACTION":return f.payload;default:return c}}})};var y$n={playlistId:"",inviteLinkURL:""};var q7v={};var EdP=mF({continuationCommand:function(c,f){c=c===void 0?q7v:c;switch(f.type){case "SET_CONTINUATION_COMMAND":return f.payload.continuationCommand;default:return c}}});var D2N={currentFormId:"",commandsMap:{}};var ndG=mF({isLeaderTab:function(c,f){c=c===void 0?!0:c;switch(f.type){case "SET_IS_LEADER_TAB":var d,q;return(q=f==null?void 0:(d=f.payload)==null?void 0:d.isLeaderTab)!=null?q:c;default:return c}}});var Mz3;_.ZQj=function(c){return _.CC({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:c}})};
Mz3=function(c){return _.CC({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:c}})};var JLC=mF({isDesktopSmallWidth:function(c,f){switch(f.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return f.payload.isDesktopSmallWidth;default:return c===void 0?!1:c}},
isShortsActive:function(c,f){switch(f.type){case "SET_IS_SHORTS_ACTIVE":return f.payload.isShortsActive;default:return c===void 0?!1:c}},
isWatchWhileMode:function(c,f){switch(f.type){case "SET_IS_WATCH_WHILE_MODE":return f.payload.isWatchWhileMode;default:return c===void 0?!1:c}},
playerState:function(c,f){switch(f.type){case "SET_PLAYER_STATE":return f.payload.playerState;default:return c===void 0?-1:c}},
isFullscreen:function(c,f){switch(f.type){case "SET_IS_FULLSCREEN":return f.payload.isFullscreen;default:return c===void 0?!1:c}},
isSmallScreenSqueezeback:function(c,f){switch(f.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return f.payload.isSmallScreenSqueezeback;default:return c===void 0?!1:c}},
isShortsPipActive:function(c,f){switch(f.type){case "SET_IS_SHORTS_PIP_ACTIVE":return f.payload.isShortsPipActive;default:return c===void 0?!1:c}},
isPlaybackStarted:function(c,f){switch(f.type){case "SET_IS_PLAYBACK_STARTED":return f.payload.isPlaybackStarted;default:return c===void 0?!1:c}}});var Xxr=function(){return function(c){return function(f){var d=c(f);_.gS(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[f],!0);return d}}};var rdo,pEk;rdo=new _.BS;_.sR=new _.jk("WATCH_PLAYER_PROMISE_TOKEN");_.Cgj=new _.BS;_.g4F=new _.jk("SHORTS_PLAYER_PROMISE_TOKEN");pEk=new _.jk("");var u4Y=function(){return function(c){return function(f){f.type==="ENTITY_LOADED"&&_.ql().resolve(_.sR).then(function(d){var q;(q=d.dispatchReduxAction)==null||q.call(d,f)});
return c(f)}}};var kHo={};var $jN=mF({additionalContext:function(c,f){switch(f.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var d;return(d=f.payload)!=null?d:"";default:return c===void 0?"":c}},
impersonatedChannelUrl:function(c,f){switch(f.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var d;return(d=f.payload)!=null?d:"";default:return c===void 0?"":c}},
selectedVideoIds:function(c,f){c=c===void 0?kHo:c;switch(f.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var d={};return Object.assign({},c,(d[f.payload]=!0,d));case "VIDEO_UNSELECTED":return f=f.payload,c=Object.assign({},c),delete c[f],c;default:return c}}});var QNk=mF({parentClickTrackingParams:function(c,f){switch(f.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return f.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return c===void 0?"":c}}});var OQK=function(c){return _.CC({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:c})};var lTF={};var SaG=mF({stepStates:function(c,f){c=c===void 0?lTF:c;switch(f.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var d=c,q=f.payload,Z,M,g;c={};f={selectionStates:Object.assign({},(g=(Z=d[q.stepId])==null?void 0:Z.selectionStates)!=null?g:{},(c[q.token]={isSelected:q.isSelected},c)),userQuery:(M=d[q.stepId])==null?void 0:M.userQuery};Z={};return Object.assign({},d,(Z[q.stepId]=f,Z));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Z=c,M=f.payload,g={selectionStates:Object.assign({},
(q=(d=Z[M.stepId])==null?void 0:d.selectionStates)!=null?q:{}),userQuery:{userQuery:M.userQuery,token:M.userQueryToken}},d={},Object.assign({},Z,(d[M.stepId]=g,d));default:return c}}});var sF_,BAu,TAO;sF_=function(c){return _.CC({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:c})};
BAu=function(c){return _.CC({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:c})};
_.JK=function(c){return _.CC({type:"SET_CURRENT_PAGE_TYPE",payload:c})};
_.iQ_=function(c){return _.CC({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:c})};
TAO=function(c){return _.CC({type:"SET_CHIP_BAR_IS_STICKY",payload:c})};var NUM={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"};_.mgy=function(c){return _.CC({type:"SET_PLAYER_STATE",payload:{playerState:c}})};var HQ3=[],Adu={width:0,height:0};var LNk=mF({isTheaterMode:function(c,f){c=c===void 0?_.F("kevlar_disable_theater_mode_persistence")?!1:_.wi("START_IN_THEATER_MODE"):c;switch(f.type){case "SET_IS_THEATER_MODE":return f.payload.isTheaterMode;default:return c}},
isWatchActive:function(c,f){switch(f.type){case "SET_IS_WATCH_ACTIVE":return f.payload.isWatchActive;default:return c===void 0?!1:c}},
isLearningJourneyActive:function(c,f){switch(f.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return f.payload.isLearningJourneyActive;default:return c===void 0?!1:c}},
isWatchFullscreen:function(c,f){switch(f.type){case "SET_IS_WATCH_FULLSCREEN":return f.payload.isWatchFullscreen;default:return c===void 0?!1:c}},
isWatchNarrowWidth:function(c,f){switch(f.type){case "SET_IS_WATCH_NARROW_WIDTH":return f.payload.isWatchNarrowWidth;default:return c===void 0?!1:c}},
isWatchRetroMode:function(c,f){switch(f.type){case "SET_IS_WATCH_RETRO_MODE":return f.payload.isWatchRetroMode;default:return c===void 0?!1:c}},
isLiveChatCollapsed:function(c,f){switch(f.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return f.payload.isLiveChatCollapsed;default:return c===void 0?!1:c}},
openEngagementPanels:function(c,f){c=c===void 0?HQ3:c;var d=[].concat(_.LT(c));switch(f.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return d.push(f.payload.panelToAdd),d;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return d.splice(d.indexOf(f.payload.panelToRemove),1),d;default:return c}},
playerState:function(c,f){switch(f.type){case "SET_PLAYER_STATE":return f.payload.playerState;default:return c===void 0?-1:c}},
watchScrollTop:function(c,f){switch(f.type){case "SET_WATCH_SCROLL_TOP":return f.payload.watchScrollTop;default:return c===void 0?0:c}},
watchWindowSize:function(c,f){c=c===void 0?Adu:c;switch(f.type){case "SET_WATCH_WINDOW_SIZE":return f.payload.watchWindowSize;default:return c}}});var Y7H={feedbackTokens:[]};var zxh=mF({surveyFeedbackData:function(c,f){c=c===void 0?Y7H:c;switch(f.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return f.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},c,f.payload);default:return c}}});var PKl={};var hxC=void 0;_.F("web_enable_redux_store_on_demand")||(hxC=vdY());var FH3=function(c,f,d){var q=this;this.listId=c;this.JSC$12740_updateCallback=f;this.isOfflineVideoCallback=d;_.Gh().subscribe(function(){q.handleUpdate()})};
FH3.prototype.getPlaylistData=function(){var c=_.Gh().getState().entities;if(this.listId&&this.listId!=="PPSV"){var f=ruN(c,this.listId,!0),d=_.sx(this.listId,"mainPlaylistEntity"),q,Z;c=c==null?void 0:(q=c.mainPlaylistEntity)==null?void 0:(Z=q[d])==null?void 0:Z.title;return wxN(f,c,this.listId)}f=_.NFM(u7r(c));c=_.NFM(_.LC(c));c=f.concat(c);return wxN(c)};
FH3.prototype.getPlaylistId=function(){return this.listId};
FH3.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12740_updateCallback(this.listId,this.getPlaylistData(),{})};var uj=function(c,f,d,q){q=q===void 0?[]:q;this.JSC$12743_playlistNetworkManager=c;this.listId=f;this.JSC$12743_updateCallback=d;this.videoIds=q;this.pendingUpdates=[];this.currentIndex=0};
uj.prototype.JSC$12743_setCurrentIndex=function(c){this.currentIndex=c};
uj.prototype.setListId=function(c){this.listId=c};
var tzj=function(c,f){c.currentCreateRequest&&c.currentCreateRequest.cancel(f);c.currentUpdateRequest&&c.currentUpdateRequest.cancel(f);c.currentRefreshRequest&&c.currentRefreshRequest.cancel(f)};
uj.prototype.delete=function(){tzj(this,"PROXY DELETED")};
uj.prototype.addVideos=function(c,f,d){var q=this;d!==void 0?this.videoIds.splice.apply(this.videoIds,[d,0].concat(_.LT(c))):this.videoIds.push.apply(this.videoIds,_.LT(c));this.listId||this.currentCreateRequest?(c.forEach(function(Z,M){Z={addedVideoId:Z,action:"ACTION_ADD_VIDEO"};d&&(Z.addedVideoPosition=d+M);q.pendingUpdates.push(Z)}),v_(this)):bQH(this,f.onCreateListCommand)};
var KHT=function(c,f,d,q,Z){Lhr(c.videoIds,f,d);f>c.currentIndex&&d<=c.currentIndex?c.JSC$12743_setCurrentIndex(c.currentIndex+1):f===c.currentIndex?c.JSC$12743_setCurrentIndex(d):f<c.currentIndex&&d>=c.currentIndex&&c.JSC$12743_setCurrentIndex(c.currentIndex-1);c.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:q,movedSetVideoIdPredecessor:Z});v_(c)},bQH=function(c,f){tzj(c,"OBSOLETE");
c.currentCreateRequest=E4v(c.JSC$12743_playlistNetworkManager,f,c.videoIds);_.QS(c.currentCreateRequest,function(){c.currentCreateRequest=void 0}).then(function(d){c.setListId(d.playlistId);
c.pendingUpdates.length>0?v_(c):n4j(c)})},v_=function(c){if(c.pendingUpdates.length!==0&&(c.currentRefreshRequest&&c.currentRefreshRequest.cancel("OBSOLETE"),!c.currentUpdateRequest&&!c.currentCreateRequest)){var f=c.pendingUpdates.splice(0,c.pendingUpdates.length);
c.currentUpdateRequest=c.JSC$12743_playlistNetworkManager.updatePlaylist(c.listId,f);_.QS(c.currentUpdateRequest,function(){c.currentUpdateRequest=void 0}).then(function(){c.pendingUpdates.length>0?v_(c):n4j(c)}).thenCatch(function(){c.pendingUpdates.unshift.apply(c.pendingUpdates,_.LT(f))})}},n4j=function(c){c.currentRefreshRequest=_.$gK(c.JSC$12743_playlistNetworkManager,c.listId,c.currentIndex,c.videoIds[c.currentIndex]);
_.QS(c.currentRefreshRequest,function(){c.currentRefreshRequest=void 0}).then(function(f){c.JSC$12743_updateCallback(f.playlistId,f.playlistPanelRenderer,f.autoplayRenderer)})};
uj.prototype.size=function(){return this.videoIds.length};var QF3=function(c,f,d,q){q=q===void 0?[]:q;uj.call(this,c,f,d,q);this.JSC$12743_playlistNetworkManager=c;this.listId=f;this.JSC$12743_updateCallback=d;this.videoIds=q};
_.K(QF3,uj);_.hu=function(c,f,d,q,Z,M,g){Z=Z===void 0?[]:Z;g=g===void 0?CF:g;uj.call(this,c,f,d,Z);this.JSC$12743_playlistNetworkManager=c;this.listId=f;this.JSC$12743_updateCallback=d;this.onAuthChange=q;this.videoIds=Z;this.storage=M;this.cookieReader=g;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Br(_.a7,this.checkLoggedInStatusChange.bind(this),1E3)};
_.K(_.hu,uj);_.r=_.hu.prototype;_.r.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Br(_.a7,this.checkLoggedInStatusChange.bind(this),1E3)};
_.r.JSC$12743_setCurrentIndex=function(c){uj.prototype.JSC$12743_setCurrentIndex.call(this,c);this.store()};
_.r.delete=function(){_.a7.cancelJob(this.queueSapisIdJob);uj.prototype.delete.call(this)};
_.r.setListId=function(c){uj.prototype.setListId.call(this,c);this.store()};
_.r.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var S7F=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],LHo=["playerResponse","videoDetails"],z0H=["response","currentVideoEndpoint","watchEndpoint","videoId"],Jdv=["response","currentVideoEndpoint","watchEndpoint","playlistId"],aT_=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],VzT=["response","contents","twoColumnWatchNextResults","playlist","playlist"],XXy=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
uH_=["response","contents","twoColumnWatchNextResults"];var wl={},NTr=(wl.WEB_UNPLUGGED="^unplugged/",wl.WEB_UNPLUGGED_ONBOARDING="^unplugged/",wl.WEB_UNPLUGGED_OPS="^unplugged/",wl.WEB_UNPLUGGED_PUBLIC="^unplugged/",wl.WEB_CREATOR="^creator/",wl.WEB_KIDS="^kids/",wl.WEB_EXPERIMENTS="^experiments/",wl.WEB_MUSIC="^music/",wl.WEB_REMIX="^music/",wl.WEB_MUSIC_EMBEDDED_PLAYER="^music/",wl.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",wl);var $eM,E4v;$eM=function(c,f){this.networkManager=c;this.innertubeTransportService=f};
E4v=function(c,f,d){if(!_.b(f,_.NB))return _.Je(Error("Ef"));_.b(f,_.NB).videoIds=d;d={create_playlist_title:_.HO("QUEUE",void 0,"Queue")};return Djl(_.G3(c.innertubeTransportService,f,d),yL4)};
_.$gK=function(c,f,d,q){f={videoId:q,playlistId:f,playlistIndex:d};d=_.cS(hmT);return Djl(_.y9(c.innertubeTransportService,f,d),exe)};
$eM.prototype.updatePlaylist=function(c,f){return Djl(_.G3(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:c,actions:f}}),WNM)};var v4r=function(c){this.storage=c},h0H;
v4r.prototype.store=function(c,f){f=f===void 0?0:f;if(this.storage&&c.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",c),this.storage.set("TLPQindex",String(f)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(d){}};
v4r.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
v4r.prototype.getPlaylistId=function(){if(!this.storage)return null;var c=null;try{c=this.storage.get("TLPQplaylist")}catch(f){}return c};var UjC=["navigationEndpoint","watchEndpoint","videoId"],Rxn=["nextButtonVideo","watchEndpoint","videoId"];_.Xw=new _.jk("NETWORK_TOKEN");_.MY=new _.jk("PAGE_TOKEN");_.W_=new _.jk("PLAYLIST_TOKEN");var wX_;wX_=new _.jk("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.uo=new _.jk("INNERTUBE_TRANSPORT_TOKEN");var ydv,DK,DgK,e0K,ITj,Pgr;ydv=new Set(["ci","cr","carml"]);DK=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12790_parkedJobs=new Map;this.parkedProcessors=new Map};
_.eY=function(){DK.instance||(DK.instance=new DK);return DK.instance};
DK.prototype.onAny=function(c){return _.WHT(this,c,2)};
DK.prototype.parkOrScheduleJob=function(c,f,d,q,Z){_.NI(this,d)?_.zd().addJob(c,f,q):(Z&&(c=DgK(c),e0K(this,c,f,d,Z)),Z=this.JSC$12790_parkedJobs.get(d),Z||(this.JSC$12790_parkedJobs.set(d,[]),Z=this.JSC$12790_parkedJobs.get(d)),Z.push({job:c,priority:f,delay:q}))};
DK.prototype.addListener=function(c,f,d){d&&(f=DgK(f),e0K(this,f,0,c,d));d=this.parkedProcessors.get(c);d||(this.parkedProcessors.set(c,[]),d=this.parkedProcessors.get(c));d.push(f)};
DK.prototype.processSignal=function(c){if(!_.NI(this,c)){this.inProgressSignals.add(c);var f=this.JSC$12790_parkedJobs.get(c);if(f){f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=d.value,_.zd().addJob(d.job,d.priority,d.delay);this.JSC$12790_parkedJobs.delete(c)}if(f=this.parkedProcessors.get(c)){f=_.C(f);for(d=f.next();!d.done;d=f.next())d=d.value,d();this.parkedProcessors.delete(c)}this.signals.push(c);this.inProgressSignals.delete(c)}};
_.NI=function(c,f){return ydv.has(f)||_.wi("IS_HOMEPAGE_COLD")||_.wi("IS_RESULTS_PAGE_COLD")||_.wi("IS_WATCH_PAGE_COLD")?c.signals.indexOf(f)>=0:!0};
DgK=function(c){var f=!1;return function(){f||(f=!0,c())}};
e0K=function(c,f,d,q,Z){if(NA_.has(q))_.zd().addJob(f,d,Z);else{var M=c.compoundSignals.get(q);M&&_.zd().addJob(function(){_.NI(c,q)||(M.isTimeoutConditionSatisfied?_.zd().addJob(f,d):M.timeoutConditionObservers.push(function(){_.zd().addJob(f,d)}))},d,Z)}};
_.WHT=function(c,f,d){if(f.length>1){var q=[],Z=Object.create(null);f=_.C(f);for(var M=f.next();!M.done;M=f.next())M=M.value,Z[M]||(q.push(M),Z[M]=!0);f=q}if(f.length===1)return f[0];M=f;q="";Z=d===2?"|":"&";M.sort();M=_.C(M);for(var g=M.next();!g.done;g=M.next())q+=g.value+Z;if(!c.compoundSignals.get(q)){Z=0;M=[];g=_.C(f);for(var O=g.next();!O.done;O=g.next())O=O.value,Z++,_.NI(c,O)||M.push(O);(d=d===2)&&Z>M.length||!d&&!M.length?c.signals.push(q):ITj(c,q,d,f,M)}return q};
ITj=function(c,f,d,q,Z){var M=Z.length,g=function(){d||--M===0?c.processSignal(f):Pgr(c,f)};
Z=_.C(Z);for(var O=Z.next();!O.done;O=Z.next())c.addListener(O.value,g);c.compoundSignals.set(f,{signals:q,isOnAny:d,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Pgr(c,f)};
Pgr=function(c,f){if(!_.NI(c,f)){var d=c.compoundSignals.get(f);if(d&&!d.isTimeoutConditionSatisfied){for(var q=!1,Z=0,M=0,g=_.C(d.signals),O=g.next();!O.done;O=g.next()){var l=O.value;O=!_.NI(c,l);NA_.has(l)?q=!0:(l=c.compoundSignals.get(l))?O&&!l.isTimeoutConditionSatisfied&&(M++,d.isInitialized||l.timeoutConditionObservers.push(function(){Pgr(c,f)})):O&&Z++}d.isInitialized=!0;
d.isOnAny?q&&(d.isTimeoutConditionSatisfied=!0):Z===0&&M===0&&(d.isTimeoutConditionSatisfied=!0);if(d.isTimeoutConditionSatisfied)for(d=_.C(d.timeoutConditionObservers),q=d.next();!q.done;q=d.next())q=q.value,q()}}};
DK.prototype.processSignal=DK.prototype.processSignal;DK.prototype.parkOrScheduleJob=DK.prototype.parkOrScheduleJob;DK.prototype.onAny=DK.prototype.onAny;_.fu("ytsignals.getInstance",_.eY);DK.prototype.onAny=DK.prototype.onAny;DK.prototype.parkOrScheduleJob=DK.prototype.parkOrScheduleJob;DK.prototype.processSignal=DK.prototype.processSignal;var NA_=new Set(["eop","eocs","dl","pcl"]);_.yN=new _.jk("MINIPLAYER_SERVICE");var IX,R0H,Ug_;IX=function(c,f,d){var q=_.Pw.getInstance();if(!h0H){var Z=new iCz;var M=void 0,g=_.hk("ID_TOKEN");g&&Z.isAvailable()&&(M=new QW(Z,"yt-queue"+g));h0H=new v4r(M)}Z=h0H;M=_.eY();this.JSC$12797_actionRouter=q;this.pageManager=c;this.playlistManager=f;this.JSC$12797_playlistNetworkManager=d;this.storage=Z;this.signals=M;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.P_=function(){if(!R0H){var c=_.ql(),f=c.resolve(_.dx(_.MY)),d=c.resolve(_.dx(_.Xw)),q=c.resolve(_.dx(_.W_));c=c.resolve(_.uo);R0H=new IX(f,q,new $eM(d,c))}return R0H};
Ug_=function(c,f,d){if(d){var q;if(((q=c.responsePlaylistData)==null?void 0:q.playlistId)!==d)return}c.responsePlaylistData&&(d=fsC(f,c.responsePlaylistData),c.responsePlaylistData=(0,_.zV.unsafeClone)(c.responsePlaylistData),j0e(c.responsePlaylistData,d));d=c.temporaryItems.findIndex(function(Z){return Z.videoId===f});
d>-1&&c.temporaryItems.splice(d,1);_.RX(c,_.U8(c,c.response?c.response.autoplayRenderer:void 0))};
_.pXo=function(c,f){if(c.responsePlaylistData){var d=dsn(f,c.responsePlaylistData);j0e(c.responsePlaylistData,d);if(c.queueProxy){var q=c.queueProxy;d<0||(q.videoIds.splice(d,1),d<q.currentIndex&&q.JSC$12743_setCurrentIndex(q.currentIndex-1),q.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:f}),v_(q))}}_.RX(c,_.U8(c,c.response?c.response.autoplayRenderer:void 0))};
IX.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.RX(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
IX.prototype.setPlaylistData=function(c,f,d){this.temporaryItems=[];this.listId=c;this.responsePlaylistData=f;_.RX(this,_.U8(this,d))};
var xgH=function(c){return(c==null?0:c.playlistId)?c.playlistId:"PPSV"},o4T=function(c){return c&&c.playlistId?c.playlistId==="PPSV"?!0:Z5k(_.Gh().getState().entities,c.playlistId):!1};
IX.prototype.isPlayingOfflineVideo=function(){return this.response?o4T(this.response):!1};
IX.prototype.closeMiniplayer=function(c){var f=this.queueProxy&&this.queueProxy.size()<=1,d=_.ql().resolve(_.yN);if(!this.queueProxy||f)this.queueProxy&&this.clearQueue(),d.close(!0);else{d.pipController.getWindow()&&window.focus();f=this.responsePlaylistData;var q=this.temporaryItems.length+(f&&f.contents?f.contents.length:0);f=_.HO("QUEUE_CLEARED_UNPLURALIZED")||_.AQ("QUEUE_CLEARED",q);f=_.dD(f);d=_.HO("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");q=_.HO("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.AQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",q);var Z=_.HO("MINIPLAYER_CLOSE",void 0,"Close"),M=_.HO("CANCEL",void 0,"Cancel");_.hW(this.JSC$12797_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.pC(d),dialogMessages:[_.pC(q)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pC(Z),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
f]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.pC(M)}}}}}}],c)}};
_.U8=function(c,f){var d={},q=c.response;d.autoplayRenderer=f;if(!c.responsePlaylistData&&!c.temporaryItems.length)return!q||!q.hasRelatedVideoData&&_.F("kevlar_prefetch_data_augments_network_data")||(d.playerData={rvs:q.relatedVideoArgs,endScreenRenderer:q.endScreenRenderer}),d;d.playerData={};if(c.index===void 0)return _.VO(Error("Gf")),d;d.panel=c.responsePlaylistData?(0,_.zV.unsafeClone)(c.responsePlaylistData):{titleText:_.pC(_.HO("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
f=d.panel;if(f.contents)for(var Z=_.C(c.temporaryItems),M=Z.next();!M.done;M=Z.next())f.contents.push({playlistPanelVideoRenderer:M.value});c.queueProxy&&q&&q.playingVideo&&q.playingVideoId&&!cxG(q.playingVideoId,d.panel)&&(f=q.playingVideo,Z=d.panel,M=c.index,Z.contents&&Z.contents.splice(M===void 0?0:M,0,{playlistPanelVideoRenderer:f}));q&&q.playingVideoId&&(f=c.index,Z=d.panel,f=!Z.contents||f>=Z.contents.length?void 0:Z.contents[f].playlistPanelVideoRenderer,f&&f.videoId===q.playingVideoId||(f=
fsC(q.playingVideoId,d.panel),c.index=f!==-1?f:c.index?c.index-1:0));f=G1h(c.index+1,d.panel);Z=void 0;c.index>0&&(Z=G1h(c.index-1,d.panel));if(Z||f)d.autoplayRenderer=pxN(f,Z,d.autoplayRenderer);!f&&(q==null?0:q.relatedVideoArgs)&&(d.playerData.rvs=q.relatedVideoArgs);q=q?q.playlistIndexOffset:0;c.queueProxy?Mt4(d.panel,c.index,q,odN,!0,!0,!0):Mt4(d.panel,c.index,q);d.playerData.playlistPanelRenderer=d.panel;return d};
IX.prototype.openToast=function(c){_.ql().resolve(_.yN).openToast(c,_.HO("ADDED_TO_QUEUE",void 0,"Added to queue"))};
IX.prototype.isMiniplayerActive=function(){return _.ql().resolve(_.yN).isMiniplayerActive()};
_.RX=function(c,f){c.playlistManager.setAutoplayRenderer(f.autoplayRenderer||null);c.playlistManager.setPlaylistData(f.panel||null);f.playerData&&c.playlistManager.setPlayerPlaybackControlData(f.playerData)};var C24="#";var GHj={},cbH={},fv3={},dvH={},jAT={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:(GHj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",GHj),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:(cbH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",cbH),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:(fv3.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",fv3),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:(dvH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",dvH),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 etl=[{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:jAT},{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:jAT}}];var asN;_.lo=[[["dTRxcGJodjNraW5kI3J1cm8=","ejRqcWxldmFsdWUjZzQwcGwx"],"eXBtM3hkQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjYjFtOW1u"]];
asN=[[["bTdwcmltYXJ5I2RrMms4d283MzA=",null,null],[null,["b2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjcDBtbXd5NzEyNnVreXRkLXR3by1j","c2NvcGUjbWd4MHd1cTI0eHQ4c3R5bGUt"],null],["aGVhZC1hZCNwc3B1dWFmcDZnbm1hc3Q=",["aWM4ODhpdXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjN2hrcWs="],null],[null,["YTVxN2g1ZHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjdmdmMGo=","ZS1zY29wZSNndjdsMW5jc2JibXN0eWw="],null],[null,["NWJ2Nnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjNWVjcXpvZ2Y=","c2NvcGUjZWVoNW4yc2xuNWp4c3R5bGUt"],null],[null,["eDFsMmJicWtseXRkLWFkLXNsb3QtcmVuZGVyZXIjbGFt"],
null]],[["ZXItYWRzI3IxZzk1cjY5b3VvaXBsYXk=",null,null]]];_.OO=["cyNiZXA0a2p2cHNydXBnbG9iYWxDYWxsYmFjaw==","cjc3ZTJsZG5vbkFibm9ybWFsaXR5RGV0ZWN0ZWQjYWt3ag==","b25BZFNraXAja2s5NjM4bDU5enE3","Zzh3M3ppM3UwbnJhd19wbGF5ZXJfcmVzcG9uc2UjeTY=","ZHBhZFNsb3RzI3AzbG96cGQ3czk="];_.p5="cyNiZXA0a2p2cHNydXBnbG9iYWxDYWxsYmFjaw== cjc3ZTJsZG5vbkFibm9ybWFsaXR5RGV0ZWN0ZWQjYWt3ag== b25BZFNraXAja2s5NjM4bDU5enE3 Zzh3M3ppM3UwbnJhd19wbGF5ZXJfcmVzcG9uc2UjeTY= eWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjcnF4ZTdzbzRpaTd5d2ViX3BsYQ== YWJfc2FfZWYjN3Y0MnAwb2hycGMz ZHBhZFNsb3RzI3AzbG96cGQ3czk=".split(" ");var x2;x2=function(c,f,d){this.sOG=c;this.isAsync=f;this.sTT=d};
_.dee=[new x2("b.f_",!1,0),new x2("j.s_",!1,2),new x2("r.s_",!1,4),new x2("e.h_",!1,6),new x2("i.s_",!0,8),new x2("s.t_",!1,10),new x2("p.h_",!1,12),new x2("s.i_",!1,14),new x2("f.i_",!1,16),new x2("a.b_",!1,18),new x2("a.o_",!1),new x2("g.o_",!1,22),new x2("p.i_",!1,24),new x2("p.m_",!1),new x2("n.k_",!0,20),new x2("i.f_",!1),new x2("a.s_",!0),new x2("m.c_",!1),new x2("n.h_",!1,26),new x2("o.p_",!1),new x2("m.p_",!0,28),new x2("o.a_",!1),new x2("d.p_",!1),new x2("e.i_",!1)].reduce(function(c,f){c[f.sOG]=
f;return c},{});var qQF=function(){};
qQF.prototype.flush=function(c,f){c=c===void 0?[]:c;f=f===void 0?!1:f;if(_.F("enable_client_streamz_web")){c=_.C(c);for(var d=c.next();!d.done;d=c.next())d=Rh_(d.value),this.rootSpec&&_.BU(d,2,this.rootSpec),d={serializedIncrementBatch:_.$S(d.JSC$9550_serializeBinary())},_.JN("streamzIncremented",d,{sendIsolatedPayload:f})}};
var lsr=function(){};
_.K(lsr,qQF);var Zl3=function(c){var f=new yvT;var d=new vhv;d=_.b5(d,1,"botguard");c=_.b5(d,2,c);this.rootSpec=_.iX(f,1,WEH,c)};
_.K(Zl3,qQF);var CX,Myr=new Map;var vqr,BtN,bgN,msN,Yin,zte,wAN,Sik;vqr=2;BtN=2;bgN=2;msN=2;Yin=2;zte=2;wAN=2;Sik=new WAv;var CMr,guK,kRT;CMr=function(){this.ongoingFlowNonces=new Map};
_.mq=function(){guK||(guK=new CMr);return guK};
_.io=function(c,f,d){return{eventType:{flowEventNamespace:c,flowEventType:f},metadata:d,statusCode:void 0,csn:void 0,can:void 0}};
_.qjk=function(c,f){var d=_.mq(),q=kRT(d,f,!0);_.TX(d,c,f,q)};
_.TX=function(c,f,d,q){c={flowNonce:q||kRT(c,d),flowType:d,flowEventType:f.eventType};f.metadata&&(c.flowMetadata=f.metadata);f.statusCode!==void 0&&(c.flowEventStatus=f.statusCode);f.csn&&(c.csn=f.csn);f.can&&(c.can=f.can);_.JN("flowEvent",c,void 0)};
kRT=function(c,f,d){d=d===void 0?!1:d;var q=c.ongoingFlowNonces.get(f);if(!q||d)q=Ji(16),c.ongoingFlowNonces.set(f,q);return q};_.Ol_=new y5j;var C9e={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 oX=function(c,f,d,q,Z,M,g){d=d===void 0?!1:d;q=q===void 0?!1:q;M=M===void 0?_.P_():M;this.hasRun=!1;this.t5M=c;this.q8G=f;this.qbm=d;this.fromHistory=q;this.previousVideoId=Z;this.b6i=M;this.tempData=g;this.al5=new _.DxT};
_.K(oX,qI);oX.prototype.validate=function(c){return!(!c.data.playerResponse||c.data.page!=="watch"&&c.data.page!=="learning_journey_watch"&&c.data.page!=="shorts"||this.hasRun)};
oX.prototype.handle=function(c){var f=this,d=_.b(c.endpoint,_.pe),q=_.b(c.endpoint,_.EO);if(_.F("kevlar_continue_playback_without_player_response")&&(d==null?0:d.videoId)&&this.previousVideoId&&(d==null?void 0:d.videoId)===this.previousVideoId&&(d==null?0:d.continuePlayback)&&!this.fromHistory)this.t5M.resolve();else{var Z={};d?Z.watch_endpoint=d:q&&(Z.watch_endpoint=q,q.endTimeSeconds&&(Z.end=q.endTimeSeconds));c.data.page==="watch"?(c.data.filler||this.qbm||(_.Xt("cfg"),_.Pw.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Z,lv3(this,c.endpoint)),_.F("enable_masthead_quartile_ping_fix")&&Object.assign(Z,sAO(this)),Object.assign(Z,void 0),c.data.forceExternalPlaylist&&(Z.external_list=!0)):c.data.page==="shorts"?_.Pw.getInstance().triggerAction("yt-start-loading-shorts"):c.data.page==="learning_journey_watch"&&_.Pw.getInstance().triggerAction("yt-start-loading-learning-journey");if(d=this.q8G()){try{d.loadVideoWithPlayerResponse(c.data.playerResponse,Z),d.getPlayerPromise().then(this.t5M.resolve)}catch(M){_.VO(M),
this.t5M.resolve()}this.hasRun=!0;d.getPlayerPromise().then(function(M){M.addEventListener("onAbnormalityDetected",function(){var g=c.data.playerResponse,O=M.getVideoData().cpn;wAN=0;_.rbH=O;if(O=fbC(g))f.al5.increment("IN_PLAYER"),_.HS(5),_.F("ab_st_vid_ks")?M.pauseVideo(!0):M.stopVideo(),g.playabilityStatus=Object.assign({},g.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:O}}),g.videoDetails=void 0,_.Pw.getInstance().triggerOptionalAction("yt-updated-playability-status",
g.playabilityStatus)})})}else _.u6(Error("Jf"))}};
var lv3=function(c,f){var d=_.b(f,_.pe);if(f&&d&&d.playlistId&&d.videoId&&(c=c.b6i,c.queueProxy?(c=c.queueProxy,d=c.listId===d.playlistId?c.attributionData.get(d.videoId):void 0):d=void 0,d))return{queue_info:d}},sAO=function(c){var f;
if((f=c.tempData)==null?0:f.adpings)return{adpings:c.tempData.adpings}};var GG=function(c,f,d){this.hasRun=!1;this.dj4=c;this.o12=f;this.jsi=d};
_.K(GG,qI);GG.prototype.validate=function(c){return!!_.zV.getValueByKeys.apply(null,[c.data].concat(_.LT(uH_)))};
GG.prototype.handle=function(c){var f=this;this.dj4.promise.then(function(){var d=c.data;var q=_.zV.getValueByKeys.apply(null,[d].concat(_.LT(S7F))),Z=_.zV.getValueByKeys.apply(null,[d].concat(_.LT(VzT))),M=_.zV.getValueByKeys.apply(null,[d].concat(_.LT(z0H)));var g=(g=_.zV.getValueByKeys.apply(null,[d].concat(_.LT(LHo))))?{videoId:g.videoId,thumbnail:g.thumbnail,title:g.title?_.pC(g.title):void 0,shortBylineText:g.author?_.pC(g.author):void 0}:void 0;var O=void 0;_.F("web_get_playlist_id_from_current_endpoint_ks")||
(O=_.zV.getValueByKeys.apply(null,[d].concat(_.LT(Jdv))));var l=_.zV.getValueByKeys.apply(null,[d].concat(_.LT(XXy))),m=_.zV.getValueByKeys.apply(null,[d].concat(_.LT(aT_))),H=!!l||!!m&&!!m.results&&m.results.length>0,A=0;Z&&Z.currentIndex&&Z.localCurrentIndex&&(A=Z.currentIndex-Z.localCurrentIndex);Z&&Z.playlistId&&(O=Z.playlistId);d={rawResponse:d,autoplayRenderer:q,hasRelatedVideoData:H,playingVideo:g,playingVideoId:M,playlistPanelRenderer:Z,playlistId:O,playlistIndex:Z&&Z.currentIndex,relatedVideoArgs:l,
endScreenRenderer:m,playlistIndexOffset:A};a:{q=f.jsi;Z=f.o12;q.response=d;if(o4T(d))q.downloadPlaylistProxy&&q.downloadPlaylistProxy.getPlaylistId()===xgH(d)||(q.downloadPlaylistProxy=new FH3(xgH(d),q.setPlaylistData.bind(q),q.isPlayingOfflineVideo.bind(q))),q.responsePlaylistData=q.downloadPlaylistProxy.getPlaylistData(),q.listId=xgH(d),q.index=0;else if(d.playlistPanelRenderer&&d.playlistId&&d.autoplayRenderer)d.playlistId.startsWith("TLPQ")?q.queueProxy?q.listId===d.playlistId?(q.index=d.playlistIndex,
q.responsePlaylistData=d.playlistPanelRenderer,q.queueProxy.JSC$12743_setCurrentIndex(q.index)):d.playingVideoId&&q.index!==void 0&&Z.clientParams.autoSaveToQueue&&(q.index+=1,q.queueProxy.JSC$12743_setCurrentIndex(q.index),q.queueProxy.addVideos([d.playingVideoId],{},q.index)):(q.queueProxy=new _.hu(q.JSC$12797_playlistNetworkManager,d.playlistId,q.setPlaylistData.bind(q),q.clearQueue.bind(q),_.qie(d.playlistPanelRenderer),q.storage),q.responsePlaylistData=d.playlistPanelRenderer,q.listId=d.playlistId,
q.index=d.playlistIndex):(q.index=d.playlistIndex,q.listId!==d.playlistId&&q.clearQueue(),q.responsePlaylistData=d.playlistPanelRenderer,q.listId=d.playlistId,q.playlistProxy=new QF3(q.JSC$12797_playlistNetworkManager,d.playlistId,q.setPlaylistData.bind(q),_.qie(d.playlistPanelRenderer)));else if(!q.queueProxy)q.responsePlaylistData=void 0;else if(d.playingVideoId&&Z.clientParams.autoSaveToQueue){if(q.index===void 0){_.VO(Error("Ff"));q.clearQueue();break a}q.queueProxy.videoIds.includes(d.playingVideoId)||
(q.index+=1,q.queueProxy.JSC$12743_setCurrentIndex(q.index),q.queueProxy.addVideos([d.playingVideoId],{},q.index))}_.RX(q,_.U8(q,q.response.autoplayRenderer))}})};var BG_=function(c,f){f=f===void 0?_.P_():f;Au.call(this);this.vB.push(new GG(this.ob,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},f));this.vB.push(new oX(this.ob,c,!1,!1));_.F("web_response_commands_chunk_processor")&&this.vB.push(new Y2)};
_.K(BG_,Au);BG_.prototype.processChunk=function(c){c&&c.data.player===void 0&&this.ob.resolve();Au.prototype.processChunk.call(this,c)};var cL=function(c,f){c=c===void 0?{layer:0}:c;this.hasRun=!1;this.createScreenConfig=c;this.cfm=f};
_.K(cL,qI);cL.prototype.validate=function(c){return!(this.hasRun||!c.endpoint)};
cL.prototype.handle=function(c){var f=_.bP(),d,q,Z=(q=_.b((d=c.endpoint)==null?void 0:d.commandMetadata,_.jO))==null?void 0:q.rootVe;this.cfm&&Z?_.s8(f,Z,this.cfm,this.createScreenConfig):Zdo(f,c.endpoint,this.createScreenConfig);this.hasRun=!0};var ft=function(c,f){this.hasRun=!1;this.yw4=c;this.previousVideoId=f};
_.K(ft,qI);ft.prototype.validate=function(c){return _.F("kevlar_continue_playback_without_player_response")&&(c=_.b(c.endpoint,_.pe),(c==null?0:c.videoId)&&this.previousVideoId&&(c==null?void 0:c.videoId)===this.previousVideoId&&(c==null?0:c.continuePlayback))?!1:this.yw4.zZP===0};
ft.prototype.handle=function(c){_.Pw.getInstance().triggerAction("yt-stop-old-player",c.data,!0)};var il3=function(c){c=c===void 0?{layer:0}:c;Au.call(this);this.vB.push(new ft(this));this.vB.push(new cL(c));this.vB.push(new H_(c))};
_.K(il3,Au);var TGy=function(){this.hasRun=this.hasRun=!1};
_.K(TGy,qI);TGy.prototype.validate=function(c){return!this.hasRun&&!(!c.data.csn||!c.data.rootVe)};
TGy.prototype.handle=function(c){this.hasRun=!0;_.vi(c.data.csn,c.data.rootVe,3)};var mvF=function(){qI.apply(this,arguments)};
_.K(mvF,qI);mvF.prototype.validate=function(c){return!!c.data.preconnect};
mvF.prototype.handle=function(c){_.V_("bc");c=_.C(c.data.preconnect);for(var f=c.next();!f.done;f=c.next())f=f.value,(new Image).src=f};var HlK=function(c,f,d){d=d===void 0?{layer:0}:d;Au.call(this);this.vB.push(new oX(this.ob,c));this.vB.push(new cL(d));this.vB.push(new H_(d))};
_.K(HlK,Au);var AbT=function(c,f,d,q,Z){d=d===void 0?{layer:0}:d;q=q===void 0?_.P_():q;Au.call(this);var M=!!f&&!!f.clientParams&&!!f.clientParams.miniplayer;M&&this.vB.push(new TGy);this.vB.push(new GG(this.ob,f,q));this.vB.push(new mvF);var g,O;this.vB.push(new oX(this.ob,c,M,!((g=f.clientParams)==null||!g.fromHistory),(O=f.clientParams)==null?void 0:O.previousVideoId,q,f.tempData));var l;this.vB.push(new ft(this,(l=f.clientParams)==null?void 0:l.previousVideoId));var m;(m=f.clientParams)!=null&&m.fromHistory||
(d.layer||(d=Object.assign({},d,{layer:M?3:0})),this.vB.push(new cL(d,Z)),this.vB.push(new H_(d)));_.F("web_response_commands_chunk_processor")&&this.vB.push(new Y2)};
_.K(AbT,Au);var dU,ty_;dU={};
_.YQF=(dU["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},dU["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},dU["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},dU["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dU["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dU["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dU["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},dU);_.j3=new _.hw("yt-edu");_.Fgv=function(){this.JSC$12898_eduDisplayedThisLoad_={}};
ty_=function(c){var f=_.Fgv.getInstance();var d=_.rx("kevlar_tooltip_impression_cap");f=d&&parseInt(_.j3.get(c+"-impression")||0,10)>=d||_.j3.get(c+"-dismissed")?!1:(d=_.YQF[c])&&!f.JSC$12898_eduDisplayedThisLoad_[d.setKey||c]&&(d.titleText&&_.HO(d.titleText)||d.bodyText&&_.HO(d.bodyText))?!0:!1;if(!f)return null;f=_.YQF[c];if(!f)return null;d=f.bodyText?_.HO(f.bodyText):void 0;var q=f.titleText?_.HO(f.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:f.position,popup:{bubbleHintRenderer:{text:q?
_.pC(q):void 0,detailsText:d?_.pC(d):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.pC(_.HO("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:c}}]}}}}}}}},{eduImpressionAction:{key:c}}]};
_.Z2(_.Fgv);var Zmk=!1;for(var blH="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Kgr=[],q2=6;q2>=1;q2--)Kgr.push({columnCount:q2,query:q2==1?0:q2*2*107-4+32,className:"grid-"+q2+"-columns",width:q2*2*107+"px"});_.nuO=function(c){this.actionRouter_=c=c===void 0?_.Pw.getInstance():c;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Euj(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Euj=function(c){var f=c.miniGuideVisible_?72:0,d=c.documentWidth_-(c.guidePersistentAndVisible_?240:f);return Kgr.find(function(q){return d>q.query})};
_.Z2(_.nuO);var $vO=function(){var c=this;this.JSC$12910_keyboardInUse=!1;document.addEventListener("keydown",function(){c.onKeydown()});
document.addEventListener("mousedown",function(){c.JSC$12910_keyboardInUse=!1})},QAu;
$vO.prototype.isKeyBoardInUse=function(){return this.JSC$12910_keyboardInUse};
$vO.prototype.onKeydown=function(){this.JSC$12910_keyboardInUse=!0};var SQ_,rU;_.ZV=new _.hw("yt-mentions");_.M2=function(){};
SQ_=function(c,f){return rU(f,"drag-to-reorder-edu-displayed")};
rU=function(c,f,d,q,Z,M){d=d===void 0?"OPEN_POPUP_POSITION_TOP":d;if(f){if(_.ZV.get(f))return;_.ZV.set(f,!0,q)}if(Z&&M!==void 0){f=Number(_.ZV.get(Z)||0);if(f>=M)return;_.ZV.set(Z,f+1)}return[{openPopupAction:{popupType:"HINT",position:d,popup:{bubbleHintRenderer:{detailsText:c,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Z2(_.M2);var Lg3,zjO,Jbr;Lg3=function(c,f,d,q){this.JSC$12920_taskManager_=c;this.onFulfilled_=typeof f==="function"?f:null;this.onRejected_=typeof d==="function"?d:null;this.JSC$12920_context_=q};
zjO=function(c,f){c.onFulfilled_&&_.QH(c.JSC$12920_taskManager_,function(){c.onFulfilled_.call(c.JSC$12920_context_,f)})};
Jbr=function(c,f){c.onRejected_&&_.QH(c.JSC$12920_taskManager_,function(){c.onRejected_.call(c.JSC$12920_context_,f)})};
_.Ct=function(c){this.JSC$12923_taskManager_=c;this.callbacks_=[]};
_.Ct.prototype.then=function(c,f,d){this.callbacks_.push(new Lg3(this.JSC$12923_taskManager_,c,f,d));return this};
_.Ct.prototype.onSuccess=function(c){this.callbacks_.forEach(function(f){zjO(f,c)})};
_.Ct.prototype.onFailure=function(c){this.callbacks_.forEach(function(f){Jbr(f,c)})};
_.Ct.prototype.cancel=function(){this.callbacks_.length=0};
xO3(_.Ct);_.k9P=null;_.uS=new _.jk("ACTIVITY_TOKEN");var gU=function(c,f){this.serviceId=new pCv(c,f)};
gU.prototype.toString=function(){return this.serviceId.toString()};var avH=function(){this.internalMap={}};
_.r=avH.prototype;_.r.contains=function(c){return Object.prototype.hasOwnProperty.call(this.internalMap,c)};
_.r.get=function(c){if(this.contains(c))return this.internalMap[c]};
_.r.set=function(c,f){this.internalMap[c]=f};
_.r.getKeys=function(){return Object.keys(this.internalMap)};
_.r.remove=function(c){delete this.internalMap[c]};var kH=function(){this.mappings=new avH;this.errorCallbacks=new Set};
kH.prototype.getModuleId=function(c){return c.serviceId.getModuleId()};
kH.prototype.get=function(c){var f=this.mappings.get(c.toString());return Vyu(this,f,c)};
kH.prototype.getMultipleAsync=function(){var c=_.hv.apply(0,arguments),f=this,d=c.map(function(l){return f.getModuleId(l)}),q=c.map(function(l){return f.mappings.get(l.toString())}).filter(function(l){return l});
if(q.length===c.length)return _.sX(q.map(function(l,m){return Vyu(f,l,c[m])}));
var Z=zD().loadMultiple(d);q=_.$o(d.map(function(l){return Z[l]}));
var M=document.hidden,g=-1,O=_.rx("get_async_timeout_ms",-1);O>-1&&(g=setTimeout(function(){_.u6(new _.KD("Module timeout.",d,M,document.hidden))},O));
return _.QS(q.then(function(){return c.map(function(l){return Vyu(f,f.mappings.get(l.toString()),l)})}).thenCatch(function(l){for(var m=_.C(f.errorCallbacks),H=m.next();!H.done;H=m.next())H=H.value,H(l);
throw l;}),function(){clearTimeout(g)})};
kH.prototype.registerService=function(c,f){this.mappings.set(c.toString(),{type:"mapping",value:f});return c};
var Vyu=function(c,f,d){switch(f.type){case "mapping":return f.value;case "factory":return f=f.value(),c.mappings.set(d.toString(),{type:"mapping",value:f}),f;default:return _.WH(f)}};
kH.prototype.onLoadError=function(c){var f=this;this.errorCallbacks.add(c);return function(){f.errorCallbacks.delete(c)}};
_.O2=new kH;var imz=/^[a-zA-Z0-9_\-]{11}$/;var T9C=_.b4(function(){var c,f;return(f=(c=window).matchMedia)==null?void 0:f.call(c,"(prefers-reduced-motion: reduce)").matches});var XB3=_.b4(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 c=_.D5("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");c||(c=_.A5("VIDEO"),_.fu("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
c));return!!(c&&c.canPlayType&&c.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var tDG=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var lK;lK=function(){this.tokenJars={};if(this.cookiesEnabled=_.FJ()){var c=_.A4.get("CONSISTENCY",void 0);c&&uoH(this,{encryptedTokenJarContents:c})}};
_.KD4=function(){lK.instance||(lK.instance=new lK);return lK.instance};
lK.prototype.handleResponse=function(c,f){if(!f)throw Error("Pf");var d,q;f=((d=f.innerTubeRequest.context)==null?void 0:(q=d.request)==null?void 0:q.consistencyTokenJars)||[];var Z;(c=(Z=c.responseContext)==null?void 0:Z.consistencyTokenJar)&&this.replace(f,c)};
lK.prototype.replace=function(c,f){c=_.C(c);for(var d=c.next();!d.done;d=c.next())delete this.tokenJars[d.value.encryptedTokenJarContents];uoH(this,f)};
var uoH=function(c,f){if(f.encryptedTokenJarContents&&(c.tokenJars[f.encryptedTokenJarContents]=f,typeof f.expirationSeconds==="string")){var d=Number(f.expirationSeconds);setTimeout(function(){delete c.tokenJars[f.encryptedTokenJarContents]},d*1E3);
c.cookiesEnabled&&_.YK("CONSISTENCY",f.encryptedTokenJarContents,d,void 0,!0)}};var vu_,s2;vu_=window.location.hostname.split(".").slice(-2).join(".");_.aV=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var c=_.hk("LOCATION_PLAYABILITY_TOKEN");_.hk("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=hjj(this))&&(c=this.localStorage.get("yt-location-playability-token"));c&&(this.locationPlayabilityToken=c,this.mostRecentPosition=void 0)};
_.aV.getInstance=function(){s2=_.D5("yt.clientLocationService.instance");s2||(s2=new _.aV,_.fu("yt.clientLocationService.instance",s2));return s2};
_.aV.prototype.setLocationOnInnerTubeContext=function(c){c.client||(c.client={});if(this.mostRecentPosition)c.client.locationInfo||(c.client.locationInfo={}),c.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),c.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),c.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),c.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)c.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.aV.prototype.handleResponse=function(c){var f;c=(f=c.responseContext)==null?void 0:f.locationPlayabilityToken;c!==void 0&&(this.locationPlayabilityToken=c,this.mostRecentPosition=void 0,_.hk("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=hjj(this))&&this.localStorage.set("yt-location-playability-token",c,15552E3):_.YK("YT_CL",JSON.stringify({loctok:c}),15552E3,vu_,!0))};
var hjj=function(c){return c.localStorage===void 0?new _.hw("yt-client-location"):c.localStorage};
_.aV.prototype.clearLocationPlayabilityToken=function(c){c==="TVHTML5"?(this.localStorage=hjj(this))&&this.localStorage.remove("yt-location-playability-token"):_.rEh("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.aV.prototype.getCurrentPositionFromGeolocation=function(){var c=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Qf"));var f=!1,d=1E4;_.hk("INNERTUBE_CLIENT_NAME")==="MWEB"&&(f=!0,d=15E3);return new Promise(function(q,Z){navigator.geolocation.getCurrentPosition(function(M){c.mostRecentPosition=M;q(M)},function(M){Z(M)},{enableHighAccuracy:f,
maximumAge:0,timeout:d})})};
_.aV.prototype.createUnpluggedLocationInfo=function(c){var f={};c=c.coords;if(c==null?0:c.latitude)f.latitudeE7=Math.floor(c.latitude*1E7);if(c==null?0:c.longitude)f.longitudeE7=Math.floor(c.longitude*1E7);if(c==null?0:c.accuracy)f.locationRadiusMeters=Math.round(c.accuracy);return f};
_.aV.prototype.createLocationInfo=function(c){var f={};c=c.coords;if(c==null?0:c.latitude)f.latitudeE7=Math.floor(c.latitude*1E7);if(c==null?0:c.longitude)f.longitudeE7=Math.floor(c.longitude*1E7);return f};var wBr=function(){};
_.r=wBr.prototype;
_.r.JSC$12990_getRequest=function(c,f,d){f=f===void 0?{}:f;d=d===void 0?quF:d;var q=f;if(this.isNavigationCommand()){var Z,M=(Z=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?void 0:Z.url;q=_.EQG(c.clickTrackingParams,!0,!1,M,this.JSC$12990_getClientScreen(q))}else q=_.EQG(c.clickTrackingParams,!1,this.includeCsn);q={context:q};if(Z=this.getExtension(c))return this.JSC$12990_buildRequest(q,Z,f),Z=this.getApiUrl(c),M=Object.assign({},{command:c},this.getRequestConfig(c,f)),q={input:Z,requestShell:RS(Z),
innerTubeRequest:q,config:M},q.config.authStrategy?q.config.authStrategy.identity=d:q.config.authStrategy={identity:d},(c=this.JSC$12990_getRequestKey(c,f))&&!q.config.requestKey&&(q.config.requestKey=c),q;c=new _.KD("Error: Failed to create Request from Command.",c);_.VO(c)};
_.r.getApiUrl=function(c){var f=_.cS(this.getApiPaths(c)),d;(c=(d=_.b(c.commandMetadata,_.jO))==null?void 0:d.apiUrl)&&(f=c);return o3Y(x_k(f))};
_.r.isNavigationCommand=function(){return!1};
_.r.JSC$12990_getClientScreen=function(){};
_.r.JSC$12990_getRequestKey=function(){};
_.r.getRequestConfig=function(){};
_.ci.Object.defineProperties(wBr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var BL=function(){};
_.K(BL,wBr);BL.prototype.JSC$12997_getStoreKey=function(){};
BL.prototype.JSC$12990_getRequestKey=function(c,f){f=f===void 0?{}:f;return this.JSC$12997_getStoreKey(c,f)};var Wg_;_.iK=function(c,f,d){var q=d&&d>0?d:0;d=q?Date.now()+q*1E3:0;if((q=q?(0,_.yb3)():Wg_())&&window.JSON){typeof f!=="string"&&(f=JSON.stringify(f,void 0));try{q.set(c,f,d)}catch(Z){q.remove(c)}}};
_.T7=function(c){var f=Wg_(),d=(0,_.yb3)();if(!f&&!d||!window.JSON)return null;try{var q=f.get(c)}catch(Z){}if(typeof q!=="string")try{q=d.get(c)}catch(Z){}if(typeof q!=="string")return null;try{q=JSON.parse(q,void 0)}catch(Z){}return q};
_.m1=function(c){try{var f=Wg_(),d=(0,_.yb3)();f&&f.remove(c);d&&d.remove(c)}catch(q){}};
_.yb3=_.b4(function(){try{var c=new BWn;var f=c.isAvailable()?c:null}catch(d){return null}return f?new _.g2(f):null});
Wg_=_.b4(function(){var c=new iCz;return c.isAvailable()?new _.g2(c):null});var Cp=new _.jk("ENTITY_STATE_TOKEN"),HL=new _.jk("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Dv3=XMLHttpRequest.prototype.fetch,ej3=Dv3&&Dv3.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Gf?!0:!1;var A$=function(c){this.JSC$13002_storeWithEntities=c};
_.K(A$,BL);_.r=A$.prototype;_.r.getApiPaths=function(){return C9r};
_.r.getExtension=function(c){return _.b(c,_.pe)||_.b(c,_.EO)||_.b(c,Cqy)};
_.r.isNavigationCommand=function(){return!0};
_.r.JSC$12997_getStoreKey=function(c){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"))&&(c=this.getExtension(c))&&c.videoId){var f={videoId:c.videoId};c.playlistId&&(f.playlistId=c.playlistId);c.playerParams&&(f.params=c.playerParams);return _.Uc("player",f)}};
_.r.JSC$12990_getClientScreen=function(c){var f;return((f=c.contentPlaybackContext)==null?void 0:f.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.r.JSC$12990_buildRequest=function(c,f,d){if(_.F("enable_interstitial_entity_check")){var q=this.JSC$13002_storeWithEntities;if(f.videoId)for(var Z=_.C(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),M=Z.next();!M.done;M=Z.next()){M=M.value;var g;var O=void 0,l=void 0,m=f.videoId,H=M;(g=q)?(m=_.sx(m+H,"interstitialInteractionStateEntity"),g=(O=(l=_.Bb(g.getState().entities,"interstitialInteractionStateEntity",m))==null?void 0:l.primaryButtonClicked)!=null?O:!1):g=!1;if(g)switch(M){case "CONTENT_CHECK_REQUIRED":f.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":f.racyCheckOk=!0}}}f.videoId&&(c.videoId=f.videoId);f.playlistId&&(c.playlistId=f.playlistId);f.index!==void 0&&(c.playlistIndex=f.index+1);f.playerParams&&(c.params=f.playerParams);"startTimeSeconds"in f&&f.startTimeSeconds&&(_.F("enable_player_request_builder_start_time_floor")?c.startTimeSecs=Math.floor(f.startTimeSeconds):c.startTimeSecs=f.startTimeSeconds);d.contentPlaybackContext&&(c.playbackContext={contentPlaybackContext:d.contentPlaybackContext});d.prefetchPlaybackContext&&
(c.playbackContext=Object.assign({},c.playbackContext,{prefetchPlaybackContext:d.prefetchPlaybackContext}),c.context.request||(c.context.request={}),c.context.request.isPrefetch=!0);c.playbackContext||(c.playbackContext={});q=XB3();c.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!q,supportXhr:ej3};d.overrideMutedAtStart&&(c.overrideMutedAtStart=d.overrideMutedAtStart);c.racyCheckOk=!!f.racyCheckOk;c.contentCheckOk=!!f.contentCheckOk;!_.F("captions_prefs_killswitch")&&(d=(d=_.T7("yt-player-caption-language-preferences"))?
d:[],d==null?0:d.length)&&(c.captionParams={viewerSelectedCaptionLangs:d})};
_.r.getRequestConfig=function(c){c=this.JSC$12997_getStoreKey(c);var f;c&&(f={storeStrategy:{storeKey:c}});_.F("web_log_player_watch_next_ticks")&&(f=f||{},f.requestTick="ps_s",f.responseTick="ps_r");return f};
A$[dE]=[Cp];var YH=function(){};
_.K(YH,BL);_.r=YH.prototype;_.r.getApiPaths=function(){return hmT};
_.r.getExtension=function(c){return _.b(c,_.pe)};
_.r.isNavigationCommand=function(){return!0};
_.r.JSC$12997_getStoreKey=function(c){if((c=this.getExtension(c))&&c.videoId){var f={videoId:c.videoId};c.playlistId&&(f.playlistId=c.playlistId);c.index&&(f.index=c.index);c.params&&(f.params=c.params);return _.Uc("next",f)}};
_.r.JSC$12990_getClientScreen=function(c){var f;return((f=c.contentPlaybackContext)==null?void 0:f.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.r.JSC$12990_buildRequest=function(c,f,d){f.videoId&&(c.videoId=f.videoId);f.playlistId&&(c.playlistId=f.playlistId);f.params&&(c.params=f.params);f.index!==void 0&&(c.playlistIndex=f.index);c.racyCheckOk=!(!d.racyCheckOk&&!f.racyCheckOk);c.contentCheckOk=!!f.contentCheckOk;d.contentPlaybackContext&&(c.autonavState=d.contentPlaybackContext.autonavState,c.playbackContext={vis:d.contentPlaybackContext.vis,lactMilliseconds:d.contentPlaybackContext.lactMilliseconds});d.prefetchPlaybackContext&&(c.context.request||
(c.context.request={}),c.context.request.isPrefetch=!0);_.F("captions_hats_killswitch")||(f=_.Ft().getFlag(65),f=f!=null?!f:!1,d=!!_.T7("yt-player-sticky-caption"),c.captionsRequested=f&&d)};
_.r.getRequestConfig=function(c){c=this.JSC$12997_getStoreKey(c);var f;c&&(f={storeStrategy:{storeKey:c}});_.F("web_log_player_watch_next_ticks")&&(f=f||{},f.requestTick="wn_s",f.responseTick="wn_r");return f};
var FQ=function(){};
_.K(FQ,BL);FQ.prototype.getApiPaths=function(){return hmT};
FQ.prototype.getExtension=function(c){return _.b(c,_.Pr)};
FQ.prototype.JSC$12990_buildRequest=function(c,f){f.token&&(c.continuation=f.token)};var t$=function(c,f){this.playerRequestBuilder=c;this.watchNextRequestBuilder=f};
_.K(t$,BL);t$.prototype.getApiPaths=function(){return xsy};
t$.prototype.getExtension=function(c){return _.b(c,_.pe)};
t$.prototype.isNavigationCommand=function(){return!0};
t$.prototype.JSC$12990_buildRequest=function(c,f,d){c.playerRequest={};this.playerRequestBuilder.JSC$12990_buildRequest(c.playerRequest,f,d);_.F("web_streaming_watch")&&(c.watchNextRequest={},this.watchNextRequestBuilder.JSC$12990_buildRequest(c.watchNextRequest,f,d))};
t$[dE]=[A$,YH];var NG3;_.bK=new _.jk("SHORTS_CONTROLLER_TOKEN");NG3=new _.jk("SHORTS_STATE_STORE_TOKEN");var Kt=function(c,f){var d=_.hv.apply(2,arguments);c=c===void 0?0:c;_.KD.call(this,f,d);this.errorType=c;Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(Kt,_.KD);var Ivy,PMF,Uv_,U7h,eJ,BjM,GRK,ou_,Z23,dkj,flF;Ivy=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(c){return c+"="}).join("|"));
PMF=RegExp(".*\\?.*playnext=1.*");_.E2=function(c,f,d,q){this.watchEndpointMap=c;this.reelWatchEndpointMap=f;this.innerTubeTransportService=d;this.fetchPbj=q};
Uv_=function(c,f,d){var q=_.ql().resolve(_.dx(Rju));_.E2.instance=new _.E2(c,f,d,q)};
_.pBr=function(c,f){var d=_.rx("web_pbj_log_warning_rate",0);d=d>0&&Math.random()<d;var q;if((q=_.b(f.commandMetadata,_.jO))==null||!q.rootVe)return d&&_.u6(Error("Sf")),!1;var Z;q=(Z=_.b(f.commandMetadata,_.jO))==null?void 0:Z.url;if(!q)return d&&_.u6(Error("Tf")),!1;if(PMF.test(q))return!0;if(Ivy.test(q))return d&&_.u6(Error("Uf`"+q)),!1;if(_.b(f,_.pe)){if(!(c.watchEndpointMap.watchNext&&c.watchEndpointMap.player||_.F("kevlar_fetch_initial_data_op_watch_client")))return d&&_.u6(Error("Lf")),!1;
c=_.rx("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;_.b(f,_.pe)?sQG(f)?f=!0:(c&&_.u6(Error("Mf")),f=!1):(c&&_.u6(Error("Lf")),f=!1);return f}if(_.b(f,_.EO))return B9Y(f);if(_.b(f,_.wF))return!0;c=_.oT(c.innerTubeTransportService,f);!c&&d&&_.VO(Error("Vf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(f)});return c};
U7h=function(c,f,d,q,Z,M){f={url:f};if(d==null?0:d.itct)f.parentTrackingParams=d.itct;var g=_.cS(meu);return _.y9(c.innerTubeTransportService,f,g).then(function(O){(O=O.endpoint)||(O=_.tu);(d==null?0:d.itct)&&O&&!O.trackingParams&&(O.trackingParams=d.itct);var l=bo(O);return eJ(c,O,d,q,l,Z,M)})};
eJ=function(c,f,d,q,Z,M,g,O){O=O===void 0?{}:O;if(c.fetchPbj&&!_.pBr(c,f)&&!_.F("force_one_platform")){O=c.fetchPbj(f);var l=_.sX(O.then(function(N){if(!N)throw Error("Wf");g(l)||M(f,N);return N}));
return l}var m,H,A={rootVe:(m=_.b(f.commandMetadata,_.jO))==null?void 0:m.rootVe,url:(H=_.b(f.commandMetadata,_.jO))==null?void 0:H.url,endpoint:f,page:Z};if(_.b(f,_.pe)){var Y,t={contentPlaybackContext:_.Qa(d,(Y=_.b(f.commandMetadata,_.jO))==null?void 0:Y.url,q)},E=_.c9();_.F("web_streaming_watch")&&window.TextDecoderStream?(O=xvu(c.innerTubeTransportService,f,t,function(N){!A.response&&N.content&&(A.response=N.content);!A.playerResponse&&N.player&&(A.playerResponse=N.player);M(f,A)}),m=GNk(f),m.length&&
(A.preconnect=m,M(f,A)),ou_(O,E,A).catch(function(N){N instanceof Kt&&N.errorType===2&&GRK(c,f,t,A,M,g,E)})):GRK(c,f,t,A,M,g,E);
return E.promise}if(_.b(f,_.EO)){var J;if(((J=_.b(f,_.EO))==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var X=_.c9();_.cUv(_.ql().resolve(_.bK),f).then(function(N){flF(c,d,q,Z,M,X,N)});
return X.promise}O=_.sX();var u;m={contentPlaybackContext:_.Qa(d,(u=_.b(f.commandMetadata,_.jO))==null?void 0:u.url,q)};(u=c.reelWatchEndpointMap.player)&&(u=u().JSC$12990_getRequest(f,m))&&(O=_.y9(c.innerTubeTransportService,u.innerTubeRequest,u.input,f.clickTrackingParams,u.config));u=_.sX();(H=c.reelWatchEndpointMap.reelItemWatch)&&(H=H().JSC$12990_getRequest(f))&&(u=_.y9(c.innerTubeTransportService,H.innerTubeRequest,H.input,f.clickTrackingParams,H.config));H=_.sX();(Y=c.reelWatchEndpointMap.reelWatchSequence)&&
_.b(f,_.EO).sequenceParams&&(m=Y().JSC$12990_getRequest(f,m))&&(H=_.y9(c.innerTubeTransportService,m.innerTubeRequest,m.input,f.clickTrackingParams,m.config));m=_.sX(A);Y=_.c9();dkj(f,m,O,u,H,M,g,Y);return Y.promise}var W;if(_.b(f,gQC)&&((W=_.b(f.commandMetadata,_.jO))==null?0:W.url))return O=bmk(_.DU(VT().location.href),_.DU(_.b(f.commandMetadata,_.jO).url)).toString(),U7h(c,O,d,q,M,function(){return!1});
if(_.b(f,_.wF))return M(f,A),_.sX(A);if(_.oT(c.innerTubeTransportService,f)){O=Object.assign({},{tempData:d,disableCache:d.disableCache},O);var p=_.G3(c.innerTubeTransportService,f,O).then(function(N){A.response=N;g(p)||M(f,A);return A});
return p}return _.sX(A)};
_.qI3=function(c,f,d,q){if(_.b(f,_.pe)||_.b(f,_.EO)&&(_.F("mweb_enable_shorts_innertube_player_prefetch")||_.F("kevlar_enable_shorts_prefetch_in_sequence"))||_.b(f,Cqy)&&_.F("web_enable_prefetching_videos_on_home")){var Z,M={contentPlaybackContext:_.Qa(d,(Z=_.b(f.commandMetadata,_.jO))==null?void 0:Z.url,q),prefetchPlaybackContext:Hmh(d)},g,O,l;if(((g=_.b(f,_.pe))==null?void 0:(O=g.watchEndpointSupportedPrefetchConfig)==null?void 0:(l=O.prefetchHintConfig)==null?void 0:l.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(d=
c.watchEndpointMap.watchNext)if(M=d().JSC$12990_getRequest(f,M))return Promise.resolve(_.y9(c.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(A){return A}))}else if(d=c.watchEndpointMap.player)if(M=d().JSC$12990_getRequest(f,M))return Promise.resolve(_.y9(c.innerTubeTransportService,M.innerTubeRequest,M.input,void 0,M.config).then(function(A){return A}))}else if(_.oT(c.innerTubeTransportService,f)){var m={tempData:d},H=j2H(c.innerTubeTransportService,f);
return H?new Promise(function(A,Y){var t,E;return _.k(function(J){if(J.nextAddress==1)return J.yield(H,2);if(J.nextAddress!=4)return t=J.yieldResult,t.JSC$12997_getStoreKey(f,m)?J.yield(_.G3(c.innerTubeTransportService,f,m),4):(Y(new _.KD("Prefetching request builder with no store key.",f)),J.jumpTo(0));E=J.yieldResult;A(E);_.Fm(J)})}):Promise.reject(new _.KD("Prefetching unregistered request builder.",f))}return Promise.reject(new _.KD("No request builder available to prefetch endpoint.",f))};
BjM=function(c,f){var d,q,Z;if(_.b(f,_.pe)){var M=c.watchEndpointMap.watchNext;M&&(d=M());(c=c.watchEndpointMap.player)&&(q=c())}else if(_.b(f,_.EO))(M=c.reelWatchEndpointMap.reelItemWatch)&&(d=M()),(M=c.reelWatchEndpointMap.player)&&(q=M()),(c=c.reelWatchEndpointMap.reelWatchSequence)&&(Z=c());else{a:{c=AyN(f,c.innerTubeTransportService.endpointMap);if(c!==void 0)if(typeof c.then==="function")_.VO(new _.KD("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",f));else break a;
c=void 0}c&&(d=c)}var g,O,l;return{content:(g=d)==null?void 0:g.JSC$12997_getStoreKey(f),player:(O=q)==null?void 0:O.JSC$12997_getStoreKey(f),reelSequence:(l=Z)==null?void 0:l.JSC$12997_getStoreKey(f)}};
GRK=function(c,f,d,q,Z,M,g){var O=_.sX(),l=c.watchEndpointMap.player;_.F("web_streaming_player")&&(l=$0(t$));l&&(l=l().JSC$12990_getRequest(f,d))&&(O=_.y9(c.innerTubeTransportService,l.innerTubeRequest,l.input,f.clickTrackingParams,l.config));l=_.sX();var m=c.watchEndpointMap.watchNext;m&&(d=m().JSC$12990_getRequest(f,d))&&(l=_.y9(c.innerTubeTransportService,d.innerTubeRequest,d.input,f.clickTrackingParams,d.config));c=_.sX(q);Z23(f,c,O,l,Z,M,g)};
ou_=function(c,f,d){return _.k(function(q){if(q.nextAddress==1)return q.yield(c,2);f.resolve(d);_.Fm(q)})};
Z23=function(c,f,d,q,Z,M,g){var O,l,m,H,A;_.k(function(Y){switch(Y.nextAddress){case 1:return Y.yield(f,2);case 2:O=Y.yieldResult;if(M(g.promise))return g.resolve(O),Y.return();Z(c,O);l=GNk(c);if(!l.length){Y.jumpTo(3);break}return Y.yield(f,4);case 4:O.preconnect=l,Z(c,O);case 3:return _.iY(Y,5),Y.yield(d,7);case 7:m=Y.yieldResult;_.Pq(Y,6);break;case 5:return H=_.Yw(Y),g.reject(H),Y.return();case 6:if(m===void 0)return O.reload=!0,Z(c,O),g.resolve(O),Y.return();if(M(g.promise))return g.resolve(O),
Y.return();O.playerResponse=m;Z(c,O);_.iY(Y,8);return Y.yield(q,10);case 10:A=Y.yieldResult;_.Pq(Y,9);break;case 8:_.Yw(Y);case 9:if(A===void 0)return O.response={responseContext:{}},g.resolve(O),Y.return();if(M(g.promise))return g.resolve(O),Y.return();O.response=A;Z(c,O);g.resolve(O);_.Fm(Y)}})};
dkj=function(c,f,d,q,Z,M,g,O){var l,m,H,A,Y,t;_.k(function(E){switch(E.nextAddress){case 1:return E.yield(f,2);case 2:l=E.yieldResult;if(g(O.promise))return O.resolve(l),E.return();M(c,l);m=GNk(c);if(!m.length){E.jumpTo(3);break}return E.yield(f,4);case 4:l.preconnect=m,M(c,l);case 3:return _.iY(E,5),E.yield(d,7);case 7:H=E.yieldResult;_.Pq(E,6);break;case 5:return A=_.Yw(E),O.reject(A),E.return();case 6:if(H===void 0)return l.reload=!0,M(c,l),O.resolve(l),E.return();if(g(O.promise))return O.resolve(l),
E.return();l.playerResponse=H;M(c,l);_.iY(E,8);return E.yield(q,10);case 10:Y=E.yieldResult;_.Pq(E,9);break;case 8:_.Yw(E);case 9:if(Y===void 0)return l.response={responseContext:{}},O.resolve(l),E.return();if(g(O.promise))return O.resolve(l),E.return();l.response=Y;M(c,l);_.iY(E,11);return E.yield(Z,13);case 13:t=E.yieldResult;_.Pq(E,12);break;case 11:_.Yw(E);case 12:if(g(O.promise))return O.resolve(l),E.return();l.reelWatchSequenceResponse=t;M(c,l);O.resolve(l);_.Fm(E)}})};
flF=function(c,f,d,q,Z,M,g){var O,l,m,H,A,Y;_.k(function(t){if((O=g)==null||!O.replacementEndpoint)return M.reject(),t.return();l=g.replacementEndpoint;(m=_.b(l,_.EO))?(g.sequenceContinuation&&(m.sequenceParams=g.sequenceContinuation),H=_.ql().resolve(_.bK),A=m.sequenceParams,MrH(H,l)&&delete m.sequenceParams,Y=eJ(c,l,f,d,q,Z,function(){return!1}),Y.then(function(E){return _.k(function(J){if(J.nextAddress==1)return rUr(H,{reelWatchEndpoint:{sequenceParams:A}},E),J.yield(0,2);
M.resolve(E);_.Fm(J)})})):M.reject();
_.Fm(t)})};_.C1H=function(c){if(c.validatedFragments_.length==0)return null;if(!c.mergedPrefetchedData_){for(var f=[],d=_.C(c.validatedFragments_),q=d.next();!q.done;q=d.next()){q=_.C(c.fragmentConfiguration_[q.value].graftedKeys);for(var Z=q.next();!Z.done;Z=q.next())(Z=c.prefetchedData_[Z.value].trackingParams)&&f.push(Z)}c.mergedPrefetchedData_={};Object.assign(c.mergedPrefetchedData_,c.prefetchedData_,{clientSideGrafts:f})}return c.mergedPrefetchedData_};var gI_;_.nt=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
gI_=function(c,f,d){if(_.Oml(f))return c.prefetchCache_.get(_.lbh(f,d))};_.$H=new _.jk("NAVIGATION_TOKEN");var kF3=function(c){var f=this;var d=d===void 0?QQP():d;var q=q===void 0?_.ql().resolve(_.$H):q;this.onePickCommand=c;this.JSC$13100_playlistNetworkManager=d;this.navigationManager=q;this.videoPickerBuilder=_.nQC("yt-addtoplaylist");_.Txj(gz_(kPo(C6u(this.videoPickerBuilder.setTitle(c.modalTitle).setSize(1E3).addView(lMu()).addView(ODr())).addView("youtube"),c.selectButtonLabel)),function(Z){f.handleAction(Z)})};
kF3.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
kF3.prototype.handleAction=function(c){var f=this;if(c&&this.onePickCommand.listId&&c.action==="picked"&&c.docs){var d=[];c.docs.forEach(function(q){d.push({addedVideoId:q.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13100_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,d).then(function(){_.F("playlist_add_video_hard_reload_killswitch")?f.navigationManager.reload():O2j(f.navigationManager)})}};var llo=function(){if(this.constructor===llo)throw new TypeError("Xf");};
_.r=llo.prototype;_.r.dispose=function(){};
_.r.disconnect=function(){};
_.r.reconnect=function(){};
_.r.observe=function(c,f,d){return{element:c,option:d}};
_.r.unobserveByKey=function(){};var SjM=function(c,f){f=f===void 0?0:f;llo.call(this);this.viewroot=c;this.defaultPrescanHeight=f;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),c?{root:c,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.K(SjM,llo);_.r=SjM.prototype;_.r.dispose=function(){this.disconnect();this.handlers.clear()};
_.r.disconnect=function(c){this.isConnected=!1;this.pauseObservingUntilReconnect=c===void 0?!1:c;this.observer.disconnect();c=_.C(this.prescanObservers.values());for(var f=c.next();!f.done;f=c.next())f.value.disconnect()};
_.r.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var c=_.C(this.handlers),f=c.next();!f.done;f=c.next()){var d=_.C(f.value);f=d.next().value;var q=d.next().value;d=!1;q=_.C(q.keys());for(var Z=q.next();!Z.done;Z=q.next())if((Z=Z.value)&&Z.state==="prescan"){d=!0;break}d&&s23(this,f).observe(f);this.observer.observe(f)}}};
_.r.handleObserveEvent=function(c){c=_.C(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var d=this.handlers.get(f.target);if(d){var q=f.isIntersecting;d=_.C(d);for(var Z=d.next();!Z.done;Z=d.next()){var M=_.C(Z.value);Z=M.next().value;M=M.next().value;Z&&(Z.state==="visible"&&q||Z.state==="hidden"&&!q)&&(M(f.target,Z.state),Z.calledOnce&&this.unobserveByKey({element:f.target,option:Z}))}}}};
_.r.handlePrescanEvent=function(c){c=_.C(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var d=this.handlers.get(f.target);if(d&&f.isIntersecting){d=_.C(d);for(var q=d.next();!q.done;q=d.next()){var Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;q&&q.state==="prescan"&&(Z(f.target,q.state),q.calledOnce&&this.unobserveByKey({element:f.target,option:q}))}}}};
_.r.observe=function(c,f,d){var q=(q=this.handlers.get(c))&&q.has(d)?{element:c,option:d}:void 0;if(q)return q;q={element:c,option:d};this.handlers.has(c)||this.handlers.set(c,new Map);var Z=this.handlers.get(c);Z&&!Z.has(d)&&Z.set(d,f);this.pauseObservingUntilReconnect||(d.state==="prescan"&&s23(this,c).observe(c),this.observer.observe(c));return q};
_.r.unobserveByKey=function(c){var f=this.handlers.get(c.element);if(f&&f.has(c.option)){f.delete(c.option);if(c&&c.option.state==="prescan")for(var d=_.C(this.prescanObservers.values()),q=d.next();!q.done;q=d.next())q.value.unobserve(c.element);f.size===0&&(this.handlers.delete(c.element),this.observer.unobserve(c.element))}};
var s23=function(c,f){var d=c.defaultPrescanHeight;f.hasAttribute("prescan-height")&&(f=Number(f.getAttribute("prescan-height")),isNaN(f)||(d=f));if(c.prescanObservers.has(d))return c.prescanObservers.get(d);f="-0.1px -0.1px "+d+"px -0.1px";f=new IntersectionObserver(c.handlePrescanEvent.bind(c),c.viewroot?{root:c.viewroot,rootMargin:f}:{rootMargin:f});c.prescanObservers.set(d,f);return f};var Bgo=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],i2y=function(){var c,f=this;this.JSC$13117_actionRouter=c=c===void 0?_.Pw.getInstance():c;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return f.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return f.visibilityObservedElementHandlerKeys}}},Tg3,H2o,FLu;
i2y.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.F("kevlar_use_vimio_behavior")&&_.hk("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=LDN())};
i2y.prototype.dispose=function(){this.visibilityMonitor&&_.bp(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
i2y.prototype.handleVisibilityRefreshed=function(){for(var c=_.C(this.targetMap.entries()),f=c.next();!f.done;f=c.next()){var d=_.C(f.value);f=d.next().value;d=d.next().value;_.mky(this,f,d)}};
_.YIO=function(c,f,d){H2o(c,d);var q=_.AU_(c,f);q.element=d;c.targetedElements.set(d,f);_.mky(c,f,q)};
H2o=function(c,f){var d=c.targetedElements.get(f);if(d){var q=c.targetMap.get(d);q&&(delete q.element,c.targetMap.set(d,q));c.targetedElements.delete(f);c.visibilityObserver&&c.visibilityObservedElementHandlerKeys&&(d=c.visibilityObservedElementHandlerKeys.get(f))&&(c.visibilityObserver.unobserveByKey(d),c.visibilityObservedElementHandlerKeys.delete(f))}};
_.mky=function(c,f,d){var q=d.action,Z=d.element;Z&&q&&(Bgo.includes(f)||_.hk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||c.visibilityMonitor&&c.visibilityMonitor.isNodeVisible(Z)?FLu(c,f,d):c.visibilityObserver&&(c.visibilityObservedElementHandlerKeys||(c.visibilityObservedElementHandlerKeys=new WeakMap),q=c.visibilityObserver.observe(Z,function(){FLu(c,f,d);c.visibilityObservedElementHandlerKeys.delete(Z)},{calledOnce:!0,
state:"visible"}),c.visibilityObservedElementHandlerKeys.set(Z,q)))};
FLu=function(c,f,d){var q=d.action;(d=d.element)&&q&&(_.hW(c.JSC$13117_actionRouter,[q],d),c.targetMap.delete(f),c.targetedElements.delete(d),c.triggeredTargets.add(f))};
_.AU_=function(c,f){var d=c.targetMap.get(f);d||(d={},c.targetMap.set(f,d));return d};
_.Qd=function(){Tg3||(Tg3=new i2y);return Tg3};var trK=document.createElement("div");trK.style.touchAction="pan-down";var zmz=trK.style.touchAction==="pan-down";var b23,KLH;b23=function(){this.hammerFn=C7_();this.JSC$13125_screenManager=_.bP();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.m_(83615);_.ij(this.JSC$13125_screenManager,this.ve);J2C()};
_.S3=function(){KLH||(KLH=new b23);return KLH};
b23.prototype.registerTouchEvents=function(c,f,d){var q=_.hv.apply(3,arguments),Z=this.hammerFn(c,{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}]]});d&&Z.set({touchAction:d});this.nodeManagerMapping.set(c,Z);var M=
abh(f);q=_.C(q);for(var g=q.next();!g.done;g=q.next()){g=g.value;if(g.includes("swipe")||g.includes("pinch")||g.includes("pan"))g.includes("swipe")?Z.get("swipe").set({enable:!0,direction:M,velocity:.2}):g.includes("pinch")?Z.get("pinch").set({enable:!0}):g.includes("pan")&&(Z.get("pan").set({enable:!0,direction:M}),Z.get("swipe").set({enable:!0,direction:M,velocity:.2}),Z.get("swipe").recognizeWith("pan"));EI3(this,c,Z,g)}};
var EI3=function(c,f,d,q){d.on(q,function(Z){if(q.includes("pinch"))c.lastPinchTime=Date.now();else if(q.includes("swipe")&&Date.now()-c.lastPinchTime<400)return;Z.pointerType!=="mouse"&&(Z=q==="doubletap"?{coordinates:Z.center}:q.includes("pan")?Z:q.includes("swipe")?{target:Z.target}:{},f.dispatchEvent(new CustomEvent(q,{bubbles:!0,composed:!0,detail:Z})))})};
b23.prototype.unregisterTouchEvents=function(c){var f=_.hv.apply(1,arguments),d=this.nodeManagerMapping.get(c);if(d){f=_.C(f);for(var q=f.next();!q.done;q=f.next())d.off(q.value);this.nodeManagerMapping.delete(c);c.style.touchAction="unset"}};var nIu=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var VDG=null;var $kv=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},G9C=function(){$kv.instance||($kv.instance=new $kv);
return $kv.instance},c6N=function(c){var f=c.networkEvents;
c.networkEvents=[];return _.F("enable_network_monitoring")?f:[]};var Q23;Q23={};_.SIH=j6("yt-serviceworker-metadata",{objectStores:(Q23.auth={addedAtVersion:1},Q23["resource-manifest-assets"]={addedAtVersion:2},Q23),shared:!0,upgrade:function(c,f){f(1)&&ym(c,"resource-manifest-assets");f(2)&&ym(c,"auth")},
version:2});var y2Y=self.location.origin+"/";WDk([/\.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\//]);WDk([/purge_shell=1/]);var LL_=void 0;LL_=LL_===void 0?[]:LL_;for(var zVH=[],JU_=_.C(xuH),alr=JU_.next();!alr.done;alr=JU_.next())zVH.push({key:alr.value});for(var VrT=_.C(LL_),XeF=VrT.next();!XeF.done;XeF=VrT.next())zVH.push(XeF.value);var ucK,vS=_.dz==null?void 0:(ucK=_.dz.performance)==null?void 0:ucK.memory,N9k=!1,f3C={},Rmn={},hh={},wD=navigator;var Lt=function(c){this.JSC$13169_expiringStorage=new nD(c)};
Lt.prototype.set=function(c,f,d){d=d!==void 0?Date.now()+d:void 0;this.JSC$13169_expiringStorage.set(c,f,d)};
Lt.prototype.get=function(c){return this.JSC$13169_expiringStorage.get(c)};
Lt.prototype.remove=function(c){this.JSC$13169_expiringStorage.remove(c)};var gek=_.pp(["https://www.youtube.com/",""]),knz=_.pp(["https://studio.youtube.com/",""]),idr="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",l3l=null,YwN;var vIv=_.pp(["https://www.youtube.com/iframe_api"]),z7=function(){this.playerResolver_=_.c9();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.tq;this.playbackDurationSeconds_=0},hVK=function(c){var f=function(){return window.YT&&typeof window.YT.ready==="function"};
if(f())return _.sX(window.YT);var d=_.c9(),q=_.A5("SCRIPT");q.onload=q.onreadystatechange=function(){q.readyState&&q.readyState!="loaded"&&q.readyState!="complete"||(q.onload=_.tq,q.onreadystatechange=_.tq,q.onerror=_.tq,f()?d.resolve(window.YT):d.reject(new _.KD("Failed to load the iframe player library","script.onload",q.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
q.onerror=function(Z){q.onload=_.tq;q.onreadystatechange=_.tq;q.onerror=_.tq;d.reject(new _.KD("Failed to load the iframe player library","script.onerror",Z&&Z.target&&Z.target.src))};
_.oh(q,_.CG(vIv));c.insertBefore(q,c.firstChild);return d.promise},weu=function(c,f,d){var q,Z;
_.k(function(M){switch(M.nextAddress){case 1:return c.playbackEndedCallback_=d,_.iY(M,2),M.yield(hVK(f.parentElement||null),4);case 4:q=M.yieldResult;_.Pq(M,3);break;case 2:return Z=_.Yw(M),Z instanceof _.KD&&Z.args&&Z.args[0]=="script.onerror"?_.u6(Z):_.VO(Z),M.return();case 3:q.ready(function(){return new q.Player(f,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:c.onPlayerReady_.bind(c),onStateChange:c.onPlayerStateChange_.bind(c),
onCueRangeExit:c.onCueRangeExit_.bind(c)}})}),_.Fm(M)}})};
_.r=z7.prototype;_.r.getPlayerPromise=function(){return this.playerPromise_};
_.r.onPlayerReady_=function(c){this.playerResolver_.resolve(c.target)};
_.r.onPlayerStateChange_=function(c){if(c.data==YT.PlayerState.PLAYING){c=c.target;var f=c.getCurrentTime();c.addCueRange("playback",f,f+this.playbackDurationSeconds_)}};
_.r.onCueRangeExit_=function(c){c.data=="playback"&&(c.target.stopVideo(),this.playbackEndedCallback_())};
_.r.stopVideo=function(){this.playerPromise_.then(function(c){c.stopVideo()})};
var yUv=function(c){c.playerVars_&&c.playerPromise_.then(function(f){typeof f.cueVideoByPlayerVars!="function"?_.u6(new _.KD("vmh: player API not ready","cueVideoByPlayerVars",typeof f.cueVideoByPlayerVars)):f.cueVideoByPlayerVars(c.playerVars_)})};
z7.prototype.playVideo=function(){var c=this;this.playerVars_&&this.playerPromise_.then(function(f){typeof f.loadVideoByPlayerVars!="function"?(f=new _.KD("vmh: player API not ready","loadVideoByPlayerVars",typeof f.loadVideoByPlayerVars),_.VO(f)):f.loadVideoByPlayerVars(c.playerVars_)})};
var WLo=function(c,f,d,q,Z){f&&(d===void 0&&(d=0),q===void 0&&(q=0),c.playbackDurationSeconds_=q/1E3,c.playerVars_={adformat:"17_8",videoId:f,suggestedQuality:"hd720",startSeconds:d/1E3,player_params:Z})};
z7.prototype.mute=function(){this.playerPromise_.then(function(c){c.mute()})};
z7.prototype.unMute=function(){this.playerPromise_.then(function(c){c.unMute()})};var DkH=function(c,f){var d=Wi();c||(c="unknown");f||(f="unknown");c="MAIN_APP_WEB_PAGE_TYPE_"+c.toUpperCase();c in Z8O||(c="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");f="MAIN_APP_WEB_REQUEST_TYPE_"+f.toUpperCase();f in Mly||(f="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.s_(d,{mainAppWeb:{pageType:c,requestType:f,isShellLoad:_.wi("IS_SHELL_LOAD",!1)}})},eVu={start:function(){_.s_(Xah(),{mainAppWeb:_.PS()})},
success:function(){_.B5(Xah(),"SUCCESS")},
failure:function(){_.B5(Xah(),"FAILURE")},
cancelled:function(){_.B5(Xah(),"CANCELLED")}};var Ng3,IlF,QgN;Ng3=_.pp(["/sw.js"]);IlF=_.pp(["/sw.js?0"]);_.P1r=_.CG(Ng3);QgN=_.CG(IlF);var RVT=function(){var c=Error.apply(this,arguments);this.message=c.message;"stack"in c&&(this.stack=c.stack)};
_.K(RVT,Error);_.pX.prototype.load=function(c){this.megabloxUrl_=_.hk("YPC_MB_URL");_.Dz(this.megabloxUrl_,(0,_.n1)(function(){c&&c()},this))};
_.IR4=function(c,f,d,q,Z,M,g,O,l,m,H){_.LUz(l);c.load((0,_.n1)(function(){try{var A=M?M:_.hk("HL"),Y=_.hk("SESSION_INDEX");_.ThP("client",function(){fa3("59",{helpCenterPath:"/youtube",locale:A,window:window}).JSC$9920_loadChatSupport({authuser:String(Y)})})}catch(t){throw RV(10,H,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Z&&Z(t),_.VO(t),t;
}Uko(this,f,d,q,Z,M,g,O,l,m,H)},c))};
_.pX.prototype.openFixFlowDialog=function(c,f,d,q){this.load((0,_.n1)(function(){try{peu(this,_.D5("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(c).withIntegratorCallback(f).load(d,q)}catch(Z){throw _.VO(Z),Z;}},this))};
var peu=function(c,f,d,q){var Z=f.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.F("enable_window_constrained_buy_flow_dialog")&&(Z=Z.usingPopupStyle(_.D5("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));q&&(Z=Z.usingCloseCallback(q));f.bootstrap.fromPaymentsUrl(c.megabloxUrl_);c=f.bootstrap.asMashupMode(Z);d=d?d:_.hk("HL");c.usingGaiaIndex(_.hk("SESSION_INDEX")).usingLocale(d).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.F("enable_google_payments_buyflow_material2_style_web")?
c.usingStyle(":m2;pc=#444;ac=#065fd4"):c.usingStyle(":md;pc=#444;ac=#065fd4");return c},Uko=function(c,f,d,q,Z,M,g,O,l,m,H){try{var A=_.D5("payments.business.integration");
if(!A)throw new RVT("payments.business.integration is undefined");var Y=A.standaloneContextAuthId.forUserId(),t=peu(c,A,M,function(){J6z(!1);O&&O()});
g&&t.usingServerAnalyticsEventHandler(g);var E=t.inStandaloneContext(Y).buyFlow(function(J){if(J&&(!J.integratorData||J.integratorData===""||J.error))if(J.error!=null)if(String(J.error)==="-1")_.zue(l);else{var X=String(J.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";RV(10,H,X,J.debugCode);_.UO(X,l,J.debugCode);X=new _.KD("PAYMENT_ERROR_MESSAGE::"+J.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+J.internalErrorDetails);
_.VO(X)}else RV(10,H,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.UO("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",l,"EMPTY_INTEGRATOR_DATA"),_.VO(Error("bg"));d&&(J6z(!1),d(J))}).withEncryptedParameters(f);
m&&E.withClientParameters(jRN(_.IPl(m)));E.load(function(){RV(24,H);_.ul("ttc",void 0,"commerce_transaction");ZnN("commerce_transaction");q&&(q(),J6z(!0))},function(J){if(J==null?0:J.debugCode)var X=J==null?void 0:J.debugCode;
else if(!J||(J==null?0:J.debugCode))X="EMPTY_LOAD_FAILURE_ERROR",_.VO(Error(X));else{X="EMPTY_LOAD_FAILURE_DEBUG_CODE";var u=new _.KD("LOAD_FAILURE:"+J.message," DEBUG_CODE:"+X);_.VO(u)}RV(10,H,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",X);_.UO("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",l,X);_.VO(J);Z&&Z(J)})}catch(J){throw J instanceof RVT&&(RV(10,H,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Z&&Z(J)),_.VO(J),J;
}};var xkj;xkj=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.D1r=function(c,f){f=f===void 0?!1:f;c=xkj.test(c)?_.bX(c):null;!f&&window.payments||!c?(c=_.c9(),f=c.promise,c.resolve()):f=_.y4_(c,{attributes:{"data-payments-main":"",id:"payment-lib"}});return f};var oIr;oIr=_.pp(["//www.googletagmanager.com/gtm.js?id=",""]);_.J$=function(c,f){_.kv(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:f}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.hk("GL")}),f=_.A5("SCRIPT"),f.async=!0,_.oh(f,_.CG(oIr,c)),f.id="gtm",c=document.getElementsByTagName("script"),c.length==0?document.head.appendChild(f):(c=c[0],c.parentNode.insertBefore(f,c)))};
_.aM=function(c){if(c=JSON.parse(c))window.dataLayer=window.dataLayer||[],window.dataLayer.push(c)};var GFK,cAu;GFK=_.pp(["https://clients2.google.com/gr/gr_sync.js"]);_.yjn=function(){};
_.yjn.prototype.init=function(){if(cAu()){var c=_.c9();c.resolve();return c.promise}return _.y4_(_.CG(GFK)).then(function(){if(!cAu())throw Error("cg");},function(){throw Error("dg");
})};
_.Wmh=function(){if(!cAu())return"";var c=window.google.gr;c.init({async:{schedule:"sync"},merchantId:"youtube"});c.start();c=c.finish();return c==null?"":c};
cAu=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.z=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.K(_.z,PolymerFakeBaseClassWithoutHtml);_.Fj=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.K(_.Fj,PolymerFakeBaseClassWithoutHtml);var a3C=window.ShadyDOM;var BAM,lTn,TA4,mgk,AdM,Y7N,Vd,Mh;BAM=_.F("enable_shadydom_free_scoped_query_methods");lTn=_.F("enable_shadydom_free_scoped_node_methods");TA4=_.F("enable_shadydom_free_scoped_readonly_properties_batch_one");mgk=_.F("enable_shadydom_free_parent_node");AdM=_.F("enable_shadydom_free_children");Y7N=_.F("enable_shadydom_free_last_child");Vd=window.ShadyDOM;_.Ok=Vd&&Vd.noPatch&&Vd.wrap?Vd.wrap:Vd?function(c){return Vd.patch(c)}:function(c){return c};
Mh=function(c){if(c instanceof ShadowRoot)this.host=(0,_.Ok)(c.host),this.root=c;else if(c.$$){this.host=(0,_.Ok)(c);var f;this.root=(f=c.root)!=null?f:this.host}else if(c.polymerController){this.host=(0,_.Ok)(c);var d;this.root=(d=this.host.shadowRoot)!=null?d:this.host}else this.root=this.host=(0,_.Ok)(c)};
sFG();iQl();FHC();tzr();HQC();var f0_={querySelector:function(c,f){f=XRh(f,cj(c));c=_.f$(c);return d1(c).prototype.querySelector.call(c,f)},
querySelectorAll:function(c,f){f=XRh(f,cj(c));c=_.f$(c);return d1(c).prototype.querySelectorAll.call(c,f)}},dGj={appendChild:function(c,f){var d=cj(c),q=_.GX(f);
return _.kHz(_.f$(c),d?_.qh(f,d,q):f)},
cloneNode:function(c,f){var d=_.GX(c);c=_.f$(c);f=d1(c).prototype.cloneNode.call(c,f);return d?Z_(f,d):f},
contains:function(c,f){var d=cj(c),q=_.GX(f);return d!==q?!1:OQk(c,f)},
insertBefore:function(c,f,d){var q=cj(c),Z=_.GX(f);c=_.f$(c);f=q?_.qh(f,q,Z):f;return d1(c).prototype.insertBefore.call(c,f,d)},
removeChild:function(c,f){var d=cj(c);c=_.f$(c);f=d?Z_(f,d):f;return d1(c).prototype.removeChild.call(c,f)},
replaceChild:function(c,f,d){var q=cj(c),Z=_.GX(f);f=q?_.qh(f,q,Z):Z?Z_(f,Z):f;d=q?Z_(d,q):d;c=_.f$(c);return d1(c).prototype.replaceChild.call(c,f,d)},
getRootNode:function(c,f){f=f===void 0?{composed:!0}:f;var d;if(((d=f)!=null?d:{}).composed)c=Pcz(c);else{f=c;for(c=veN(c);c;)f=c,c=wRG(c);c=f}return c}},KHh=TA4?{firstChild:q7Y,
nextSibling:fTr,previousSibling:jFG,firstElementChild:ZQr,lastElementChild:rdz,nextElementSibling:cde,previousElementSibling:dgC,childNodes:Cgr}:{};mgk&&(KHh.parentNode=GnC);AdM&&(KHh.children=g4n);Y7N&&(KHh.lastChild=MzP);BAM&&bQN(f0_);lTn&&bQN(dGj);E4Y();var n4r=function(c){this.node=c instanceof ShadowRoot?c.host:c};
$gk();QFC();var z0N=new WeakMap;var aTl=Symbol("vd");var h0N=new Set(["tap","track","down","up"]),wXG=_.F("pbcm_fi_query_decorators");var XQ=function(){return _.Fj.apply(this,arguments)||this};
_.K(XQ,_.Fj);_.r=XQ.prototype;_.r.getState=function(){return this.store.getState()};
_.r.dispatch=function(c){this.store.dispatch(c)};
_.r.beforeRegister=function(){if(this&&typeof this==="object"){var c;var f=!!this.useSignals||!((c=this.polymerController)==null||!c.useSignals)}else f=!1;if(!f&&this.properties)for(f=_.C(Object.keys(this.properties)),c=f.next();!c.done;c=f.next()){var d=c.value;c=this.properties[d];if(c.selector){if(c.computed)throw Error("jg");d=["reduxPropertiesRecomputeTrigger",'"'+d+'"'].concat(_.LT(c.selectorArgs||[])).join(",");c.computed="recomputeReduxSelector("+d+")"}}};
_.r.attached=function(){var c=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){c.reduxPropertiesRecomputeTrigger++}));
_.F("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.r.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.r.recomputeReduxSelector=function(c,f){var d=_.hv.apply(2,arguments),q=this.properties[f].selector;if(!q)throw Error("hg`"+f);return q.apply(null,[this.store.getState()].concat(_.LT(d)))};
_.r.select=function(c){var f=_.hv.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return c.apply(null,[this.store.getState()].concat(_.LT(f)))};
_.ci.Object.defineProperties(XQ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
XQ.prototype.recomputeReduxSelector=XQ.prototype.recomputeReduxSelector;_.y([_.L(),_.D("design:type",Number)],XQ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.y([_.tY()],XQ);var uK=[],e0k={},ua=function(){return d2.apply(this,arguments)||this};
_.K(ua,d2);ua.prototype._addPropertyEffect=function(c,f,d){if(f==="__observeEffects"&&d){var q,Z=(q=d.info.method)!=null?q:d.info.methodName;if(Z){var M=this[Z];this[Z]=function(){uK.push(Z);try{M==null||M.apply(this,arguments)}finally{uK.pop()}}}}_.n8._addPropertyEffect.apply(this,[c,
f,d])};
ua.prototype._setPendingProperty=function(c,f,d){if(uK.length){var q=uK[uK.length-1],Z;(Z=e0k[this.is])!=null&&Z.has(q)||(NAl(this.is,q),_.JN("polymerPropertyChangedInObserver",{componentName:this.is,observerName:q}))}return _.n8._setPendingProperty.apply(this,[c,f,d])};
_.y([T4l()],ua);var ITr=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),R0N,Ek={};_.F("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Ek);var Qr=function(){return _.Fj.apply(this,arguments)||this};
_.K(Qr,_.Fj);Qr.prototype._setUnmanagedPropertyToNode=function(c,f,d){c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!0);if(d!==c[f]||typeof d==="object")c[f]=d;c.is&&c.polymerController&&c.polymerController!==c&&n$(c.is,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!1)};
_.y([_.tY()],Qr);Pge()&&(WW.prototype._setUnmanagedPropertyToNode=(new Qr)._setUnmanagedPropertyToNode);_.CMe={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(c){},set polymerController(c){}}]};var Xj=function(){var c=d2.apply(this,arguments)||this;c.json=function(){};
return c};
_.K(Xj,d2);Xj.prototype.equals=function(c,f){return c===f};
Xj.prototype.isEmpty=function(c){var f;(f=!c)||(f=_.WN(c)&&c.length===0);return f};
_.y([T4l()],Xj);var jH3=function(c){c=s5M(c);yE.call(this,c)};
_.K(jH3,yE);jH3.prototype.addProvider=function(c){c=c.key?c:s5M([c])[0];var f=this.keyIdToIndex.get(c.key.id);if(f){if(GHr(c,this.providers[f]))throw Error("kg`"+c.key.displayName);}else yE.prototype.addProvider.call(this,c)};
var qeH=new jH3([]);var Zf3=!1;var ZlP={};Zf3||(qQn(),Zf3=!0);
ZlP.InjectBehavior={initializeInjection:function(){var c=this.provide;try{if((c=c!=null?c:[])&&c.length>0)for(var f=s5M(c),d=_.C(f),q=d.next();!q.done;q=d.next())qeH.addProvider(q.value);var Z=new Set;cbN(this.behaviors||[],Z);f={};for(var M=_.C(Z),g=M.next();!g.done;g=M.next()){var O=g.value;O.inject&&Object.assign(f,O.inject)}this.inject&&Object.assign(f,this.inject);for(var l=_.C(Object.keys(f)),m=l.next();!m.done;m=l.next()){var H=m.value,A=f[H];try{this[H]=qeH.resolve(A)}catch(Y){throw Y;}}}catch(Y){throw Error(Y.message);
}}};var rbN;var guk=/\bclass\b/.test(function(){}.toString()),lvC=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var ME3=function(c){this.wasDefined=!0;Array.isArray(c)||c instanceof Array?(this.JSC$13298_getImpl=c[0],this.JSC$13298_setImpl=c[1]):this.JSC$13298_getImpl=c};
_.r=ME3.prototype;_.r.getWithPath=function(c){return ilP(this.JSC$13298_getImpl(),c)};
_.r.setWithPath=function(c,f){var d=this;if(c.length)throw Error("lg");if(!this.JSC$13298_setImpl)throw Error("mg");mK(function(){d.JSC$13298_setImpl(f)})};
_.r.notifyPath=function(){throw Error("ng");};
_.r.notifySplices=function(){throw Error("og");};
_.r.getChangeRecordSignal=function(c,f){var d=this;if(c.length)throw Error("pg");return function(){var q=d.getWithPath(c);return{path:f!=null?f:"",base:q,value:q}}};
_.r.getSplicesSignal=function(){throw Error("qg");};
_.r.getPathMutationSignal=function(){throw Error("rg");};
_.r.pop=function(){throw Error("sg");};
_.r.push=function(){throw Error("tg");};
_.r.splice=function(){throw Error("ug");};
_.r.unshift=function(){throw Error("vg");};var vL=function(c){var f=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(c)||c instanceof Array?(this.JSC$13303_getImpl=c[0],this.JSC$13303_setImpl=c[1]):this.JSC$13303_getImpl=c;this.wasDefined=!1;kk(function(){f.wasDefined=f.JSC$13303_getImpl()!==void 0})};
vL.prototype.getWithPath=function(c){return ilP(this.JSC$13303_getImpl(),c)};
vL.prototype.setWithPath=function(c,f){var d=this;if(c[c.length-1]!=="*"&&c[c.length-1]!=="splices"){var q=kk(function(){return d.getWithPath([])});
if(c.length===0){if(!this.JSC$13303_setImpl)throw Error("wg");if(_.F("mutable_signal_set_skip_unchanged")&&q===f)return;this.wasDefined||(this.wasDefined=f!==void 0);mK(function(){d.JSC$13303_setImpl(f)})}else{for(var Z=0;Z<c.length-1;Z++){if(!q)return;
q=q[c[Z]]}Z=c[c.length-1];q&&(q[Z]=f);this.wasDefined||(this.wasDefined=c.length>1||f!==void 0)}rAv(this,c,{pathComponents:c,value:f})}};
vL.prototype.notifyPath=function(c,f){c.length===0?f&&this.setWithPath(c,f.value):rAv(this,c,{pathComponents:c,value:f==null?void 0:f.value,fallbackWhenUndefined:f==null?void 0:f.value})};
var rAv=function(c,f,d,q){if(c.setMutationSignal){var Z=++c.mutationIndex,M=[c.observedPath],g=c.observedPath,O;f.length===0&&(O=g);for(var l=0;l<f.length;l++){var m=g.subPaths[f[l]];if(!m)break;M.push(m);g=m;l===f.length-1&&(O=m)}for(f=!1;M.length;)g=M.shift(),g.data={index:Z,mutation:d,spliceMutationIndex:q},f||(f=g===O),f&&M.push.apply(M,_.LT(Object.values(g.subPaths)));mK(function(){c.setMutationSignal(Z)})}};
vL.prototype.notifySplices=function(c,f){var d=this,q=kk(function(){return d.getWithPath(c)}),Z=[].concat(_.LT(c),["splices"]);
rAv(this,Z,{pathComponents:Z,value:{indexSplices:f}});if(q==null?0:q.length)f=this.mutationIndex,Z=[].concat(_.LT(c),["length"]),rAv(this,Z,{pathComponents:Z,value:q.length},f)};
var CyH=function(c,f,d,q,Z,M){c.notifySplices(d,[{index:q,addedCount:Z,removed:M,object:f,type:"splice"}])},gij=function(c,f){c=c.observedPath;
for(var d=0;d<f.length;d++){var q=f[d],Z=c.subPaths[q];Z||(Z={pathComponents:f.slice(0,d+1),subPaths:{}},c.subPaths[q]=Z);c=Z}},Ofj=function(c,f,d){gij(c,f);
if(!c.getMutationSignal){var q=_.C(_.OT(c.mutationIndex,void 0,"yrf7Zd"));c.getMutationSignal=q.next().value;c.setMutationSignal=q.next().value}var Z=c.getMutationSignal;return _.TZ(function(){Z();return d(kSF(c,f))},void 0,"XeEyEc")};
vL.prototype.getChangeRecordSignal=function(c,f){var d=this,q=this.mutationIndex,Z;return Ofj(this,c,function(M){if(M&&M.index>q){var g=M.mutation;q=M.index;Z=void 0}M=kk(function(){return d.getWithPath(c)});
if(g){var O=g.pathComponents[g.pathComponents.length-1],l=[].concat(_.LT(g.pathComponents));if(O==="splices"||O==="length")return{base:M,path:(f?[f].concat(_.LT(l)):l).join("."),value:g.value};var m=c.length>l.length?c:l,H;return{base:M!=null?M:g.fallbackWhenUndefined,path:(f?[f].concat(_.LT(m)):m).join("."),value:(H=kk(function(){return d.getWithPath(m)}))!=null?H:g.fallbackWhenUndefined}}Z||(Z={base:M,
path:(f?[f].concat(_.LT(c)):c).join("."),value:M});return Z})};
vL.prototype.getSplicesSignal=function(c){var f=this.mutationIndex,d;return Ofj(this,c,function(q){if(q&&q.index>f&&q.spliceMutationIndex!==f){var Z=q.mutation;f=q.index;d=void 0}return Z&&Z.pathComponents[Z.pathComponents.length-1]==="splices"?d=q=Z.value:d})};
vL.prototype.getPathMutationSignal=function(c){var f=this;gij(this,c);if(!this.getMutationSignal){var d=_.C(_.OT(this.mutationIndex,void 0,"evrPyb"));this.getMutationSignal=d.next().value;this.setMutationSignal=d.next().value}var q=this.getMutationSignal,Z=this.mutationIndex,M;return _.TZ(function(){q();var g=kSF(f,c);if(g&&g.index>Z&&g.mutation&&TGk(g.mutation.pathComponents,c)){var O=g.mutation;Z=g.index}if(!M||Z!==M.index){var l,m;g=(m=kk(function(){return f.getWithPath(c)}))!=null?m:(l=O)==null?
void 0:l.fallbackWhenUndefined;
M={index:Z,value:g}}return M},void 0,"rXesZe")};
var kSF=function(c,f){c=c.observedPath;f=_.C(f);for(var d=f.next();!d.done;d=f.next())c=c.subPaths[d.value];return c.data};
vL.prototype.pop=function(c){var f=this,d=kk(function(){return f.getWithPath(c)});
if(!(d instanceof Array))throw Error("xg");var q=d.length>0,Z=d.pop();q&&CyH(this,d,c,d.length,0,[Z]);return Z};
vL.prototype.push=function(c){var f=_.hv.apply(1,arguments),d=this,q=kk(function(){return d.getWithPath(c)});
if(!(q instanceof Array))throw Error("yg");var Z=q.length,M=q.push.apply(q,_.LT(f));f.length&&CyH(this,q,c,Z,f.length,[]);return M};
vL.prototype.splice=function(c,f,d){var q=_.hv.apply(3,arguments),Z=this,M=kk(function(){return Z.getWithPath(c)});
if(!(M instanceof Array))throw Error("zg");f<0?f=M.length-Math.floor(-f):f&&(f=Math.floor(f));var g=M.splice.apply(M,[f,d].concat(_.LT(q)));(q.length||g.length)&&CyH(this,M,c,f,q.length,g);return g};
vL.prototype.unshift=function(c){var f=_.hv.apply(1,arguments),d=this,q=kk(function(){return d.getWithPath(c)});
if(!(q instanceof Array))throw Error("Ag");var Z=q.unshift.apply(q,_.LT(f));f.length&&CyH(this,q,c,0,f.length,[]);return Z};var h$=function(c,f,d){this.model=c;this.unknownSignalResolver=f;this.options=d;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];f=_.C(Eur());c=f.next().value;f=f.next().value;this.owner=c;this.disposeImpl=f};
h$.prototype.dispose=function(){if(!this.isDisposed){for(var c=_.C(this.childSignalProxies),f=c.next();!f.done;f=c.next())f.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var l0y=function(c,f){c=_.oO(c.owner);try{f()}finally{_.oO(c)}};
h$.prototype.effect=function(c){l0y(this,function(){_.zZ(c)})};
var sHy=function(c,f){c.options!=null||(c.options={});var d;(d=c.options).immutableProps!=null||(d.immutableProps=new Set);c.options.immutableProps.add(f)},xvM=function(c,f){f=""+f;
BPT(c,f);var d,q;if((d=c.options)==null?0:(q=d.immutableProps)==null?0:q.has(f))return!0;var Z;if((Z=c.model.__signalCache)==null?0:Z.has(f))d=c.model.__signalCache.get(f),Array.isArray(d)&&sHy(c,f);var M,g,O;return(O=(M=c.options)==null?void 0:(g=M.immutableProps)==null?void 0:g.has(f))!=null?O:!1},ifK=function(c,f){var d;
c.unknownSignalResolver&&(d=c.unknownSignalResolver(f));var q,Z;((q=c.options)==null?0:(Z=q.immutableProps)==null?0:Z.has(f))?d!=null||(d=new ME3(_.OT(c.model[f],void 0,"By5iP"))):d!=null||(d=new vL(_.OT(c.model[f],void 0,"CXghNc")));var M=c.model.hostElement;Object.defineProperty(c.model,f,{get:function(){pXz(M,f);return d.getWithPath([])},
set:function(g){$E(M,f);c.setWithPath([f],g)},
configurable:!0});return d},BPT=function(c,f){var d,q,Z;
((d=c.model.__signalCache)==null||!d.has(f))&&((q=c.options)==null?0:(Z=q.externalSignalProps)==null?0:Z.has(f))&&c.model[f]},yr=function(c,f){f=""+f;
var d=c.signalCache[f];if(d!==void 0)return d;d=!1;BPT(c,f);var q;if((q=c.model.__signalCache)==null?0:q.has(f))if(d=c.model.__signalCache.get(f),Array.isArray(d))d=!0,sHy(c,f);else return c.signalCache[f]=c.model.__signalCache.get(f).signal,c.signalCache[f];var Z,M;q=(M=(Z=c.options)==null?void 0:Z.reactivityMode)!=null?M:0;var g,O;if(!((g=c.options)==null?0:(O=g.reactiveProps)==null?0:O.has(f))&&!d&&q===1)throw Error("Bg`"+f);Z=d?TPu(c,f):ifK(c,f);return c.signalCache[f]=Z},TPu=function(c,f){var d=
Object.getOwnPropertyDescriptor(c.model.constructor.prototype,f),q=function(){return c.model[f]};
return new ME3(d&&d.get&&!d.set?q:[q,function(Z){c.model[f]=Z}])};
h$.prototype.getWithPath=function(c){var f=_.C(c);c=f.next().value;f=RO(f);pXz(this.model.hostElement,""+c);return yr(this,c).getWithPath(f)};
h$.prototype.setWithPath=function(c,f){if(c.length){$E(this.model.hostElement,c.join("."));var d=_.C(c);c=d.next().value;d=RO(d);yr(this,c).setWithPath(d,f)}};
h$.prototype.getPathMutationSignal=function(c){var f=_.C(c);c=f.next().value;f=RO(f);return yr(this,c).getPathMutationSignal(f)};
h$.prototype.notifyPath=function(c,f){var d=_.C(c);c=d.next().value;d=RO(d);yr(this,c).notifyPath(d,f)};
var mGH=function(c,f){if(f.type==="literal")return function(){return{rootWasDefined:!0,value:f.value}};
var d=hY(f.path),q=_.C(d),Z=q.next().value;q=RO(q);var M,g;if(f.type==="path"&&(d.length===1||((M=c.options)==null?0:(g=M.immutableProps)==null?0:g.has(Z))))return function(){var A=c.getWithPath(d.slice(0,1));A=ilP(A,d.slice(1));return{rootWasDefined:yr(c,d[0]).wasDefined,value:A}};
var O=yr(c,Z);if(f.type==="path"){var l=O.getPathMutationSignal(q);return function(){var A,Y=(A=l())==null?void 0:A.value;return{rootWasDefined:O.wasDefined,value:Y}}}if(f.type==="splices"){var m=O.getSplicesSignal(q);
return function(){var A=m();return{rootWasDefined:O.wasDefined,value:A}}}var H=O.getChangeRecordSignal(q,""+Z);
return function(){var A=H();return{rootWasDefined:O.wasDefined,value:A}}},tyl=function(c,f,d){var q=d.map(function(O){return mGH(c,O)}),Z=d.length===0,M=[],g=d.length!==1||d[0].type!=="path"?!1:!0;
c.effect(function(){for(var O=q.length,l=[],m=!!M.length,H=0;H<O;H++){var A=q[H](),Y=A.rootWasDefined;A=A.value;Z||(Z=Y);l[H]=A;g&&(l[H+O]=m?M[H]:l[H],M[H]=A)}Z&&Jo(c.owner,function(){return void f.apply(null,_.LT(l))})})},mvn=function(c,f,d,q,Z){var M=yr(c,f);
Z!==void 0&&M.setWithPath([],Z);tyl(c,function(){var g=_.hv.apply(0,arguments);$E(c.model.hostElement,f,!0);M.setWithPath([],d.apply(null,_.LT(g)))},q)};
h$.prototype.arrayPush=function(c){var f=_.hv.apply(1,arguments),d=_.C(c),q=d.next().value;d=RO(d);q=yr(this,q);return q.push.apply(q,[d].concat(_.LT(f)))};
h$.prototype.arraySplice=function(c,f,d){var q=_.hv.apply(3,arguments),Z=_.C(c),M=Z.next().value;Z=RO(Z);M=yr(this,M);return M.splice.apply(M,[Z,f,d].concat(_.LT(q)))};
h$.prototype.arrayUnshift=function(c){var f=_.hv.apply(1,arguments),d=_.C(c),q=d.next().value;d=RO(d);q=yr(this,q);return q.unshift.apply(q,[d].concat(_.LT(f)))};
h$.prototype.notifySplices=function(c,f){var d=_.C(c);c=d.next().value;d=RO(d);yr(this,c).notifySplices(d,f)};var Hfr=!0,AAT=!1,oIe=!1,Ye3=!1,FYK=0;Ye3=!1;FYK=0;Hfr=!0;AAT=oIe=!1;var zj4=/([^\s]+?)\(([\s\S]*)\)/,QAM=/\.([^.]+)$/,avN=/\\,/g,nu4=/&comma;/g,$v4=/\\(.)/g,Jbe=[],SQG={"*":"wildcard",splices:"splices"};var ejC=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"),wBe=/[A-Z]/,tEr=["class","hidden","id","on-dom-change"],Ivk=new Set([].concat(_.LT(tEr),
["if","notify-dom-change","restamp"])),PMn=new Set([].concat(_.LT(tEr),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),RjM=new Set(["restamp"]);var Pyk=new Set(["className","id"]);var GRk=Symbol(),MrN=window;var Bgz=window;var FLM=0,mkk=0,Wj=[],YI4=0,TgP=!1,AUl=document.createTextNode("");(new window.MutationObserver(H2z)).observe(AUl,{characterData:!0});var eB=new Map,D_=0,bfr=function(c){this.mappedHandleId=c},b2P=function(c,f,d,q){this.mappedHandleId=c;
var Z=this;this.mappedHandleId=c;this.callback=f;this.waitTime=d;this.schedulerPriority=q;this.handleId=_.a7.addJob(function(){Z.callback();eB.delete(Z.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.K(b2P,bfr);b2P.prototype.cancel=function(){_.a7.cancelJob(this.handleId);eB.delete(this.mappedHandleId)};
var KLN=function(c,f){this.mappedHandleId=c;var d=this;this.mappedHandleId=c;this.callback=f;this.handleId=trk(function(){d.callback();eB.delete(d.mappedHandleId)})};
_.K(KLN,bfr);KLN.prototype.cancel=function(){var c=this.handleId-mkk;c<0||Wj.length<=c||(Wj[c]=null);eB.delete(this.mappedHandleId)};var Q2P=function(){};
Q2P.prototype.cancel=function(){this.jobHandle!==void 0&&(EIC(this.jobHandle),this.jobHandle=void 0)};
Q2P.prototype.run=function(c,f,d){var q=this;this.cancel();this.callback=c;this.jobHandle=_.Nh(function(){c();q.callback=void 0},f,d)};
Q2P.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var nIM=new WeakMap;var KYr=cd(function(c){for(var f=c,d=0;d<3;d++)f=Object.getPrototypeOf(f);delete f.prototype.connectedCallback;var q=function(){return c.apply(this,arguments)||this};
_.K(q,c);q.prototype._attachDom=function(Z){if(!Z)return null;var M=(0,_.Ok)(this.hostElement);M.attachShadow({mode:"open",shadyUpgradeFragment:Z});M.shadowRoot.appendChild(Z);return M.shadowRoot};
q.prototype._takeAttributes=function(){for(var Z=this.hostElement.attributes,M=0;M<Z.length;M++){var g=Z[M],O=void 0,l=void 0;(l=(O=this).__attributeReaction)==null||l.call(O,g.name,null,g.value)}};
q.prototype._readyClients=function(){c.prototype._readyClients.call(this);this.root=this};
q.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);c.prototype.connectedCallback.call(this)};
_.ci.Object.defineProperties(q,{template:{configurable:!0,enumerable:!0,get:function(){return q.prototype._template}}});
return q}),EiH=cd(function(c){var f=function(){return c.apply(this,arguments)||this};
_.K(f,c);f.prototype.created=function(){if(this.__notifyEffects)for(var d=_.C(Object.values(this.__notifyEffects)),q=d.next();!q.done;q=d.next()){q=_.C(q.value);for(var Z=q.next();!Z.done;Z=q.next())Z.value.fn=JUG}if(this.__reflectEffects)for(d=_.C(Object.values(this.__reflectEffects)),q=d.next();!q.done;q=d.next())for(q=_.C(q.value),Z=q.next();!Z.done;Z=q.next())Z.value.fn=ale};
f.prototype._addEventListenerToNode=function(d,q,Z){d=Pj(d);Vg(d,q,Z)||c.prototype._addEventListenerToNode.call(this,d,q,Z)};
f.prototype._removeEventListenerFromNode=function(d,q,Z){d=Pj(d);Xs(d,q,Z)||c.prototype._removeEventListenerFromNode.call(this,d,q,Z)};
f.prototype._propertiesChanged=function(d,q,Z){if(this.__dataToNotify&&this.__notifyEffects)for(var M=_.C(Object.keys(this.__dataToNotify)),g=M.next();!g.done;g=M.next()){g=g.value;var O=zVN(g);this.__notifyEffects[O]||delete this.__dataToNotify[g]}else this.__dataToNotify=null;c.prototype._propertiesChanged.call(this,d,q,Z)};
f.prototype.fire=function(d,q,Z){q=q===void 0?{}:q;var M;return _.CZ(Pj((M=Z==null?void 0:Z.node)!=null?M:this),d,q,Z)};
f.prototype._ensureAttribute=function(d,q){var Z=Pj(this);Z.hasAttribute(d)||w1(Z,q,d)};
f.prototype.isLightDescendant=function(d){var q=Pj(this);return Pj(q)!==d&&_.r1(q).contains(d)&&_.r1(q).getRootNode()===_.r1(d).getRootNode()};
return f});
_.EU.ready=function(){var c;((c=this.hostElement)!=null?c:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var f;((f=this.hostElement)!=null?f:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.aJ._subscribeIronResize=function(c){var f;((f=c.hostElement)!=null?f:c).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.aJ._unsubscribeIronResize=function(c){var f;((f=c.hostElement)!=null?f:c).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var uck=[Array,Boolean,Date,Number,Object,String],Uk=function(c,f,d,q){this.polySiInfo=c;this.polySiParams=f;this.polySiContext=d;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;q||this instanceof HTMLElement&&(q=this);if(!q)throw Error("Ig");this.allowedProps=f.allowedProps;this.hostElement=q;this.is=c.is;this.upgradeDisabled=!!f.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");c=new Set(f.reactiveSchemas.filter(function(Z){return Z.type!==
"observe"}).map(function(Z){return Z.propertyKey}));
this.signalProxy=new h$(this,void 0,{reactiveProps:c,reactivityMode:f.reactivityMode});this.__dataHasAccessor={};f=_.C(f.reactiveSchemas);for(c=f.next();!c.done;c=f.next())c=c.value,c.type==="signal"&&(this.__dataHasAccessor[c.propertyKey]=!0);this.upgradeDisabled||nij(this)};
Uk.prototype.getExtraMethodsToForward=function(){return[]};
var nij=function(c){c.polySiContext.didRegister||(c.registered(),c.polySiContext.didRegister=!0);c.polySiContext.finalizedTemplate||(c.polySiContext.finalizedTemplate={},c.polySiParams.templateGetter&&(c.polySiContext.finalizedTemplate.processedTemplate=i2k(c.polySiParams.templateGetter,c.polySiParams.is)));$GO(c);var f=c.hostElement;f.loggingStatus!=null||(f.loggingStatus={});f.loggingStatus.isInitializing=!0;kk(function(){return void c.created()});
f.loggingStatus.isInitializing=!1;c.isPolySiElementConnected&&QHy(c)},QHy=function(c){c.didCallReady||(kk(function(){return void c.ready()}),c.didCallReady=!0);
c.isAttached=!0;c.attached()};
_.r=Uk.prototype;_.r.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||QHy(this)};
_.r.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.r.attributeChangedCallback=function(c,f,d){if(this.upgradeDisabled)c==="disable-upgrade"&&d===null&&(this.upgradeDisabled=!1,nij(this));else if(f!==d){var q=_.Yn(c),Z=this.polySiContext.typesForSignals[q];if(Z&&(!this.reflecting||_.F("polysi_attribute_changed_serializing_killswitch"))){switch(Z){case Object:try{var M=JSON.parse(d)}catch(O){M=d}break;case Array:try{M=JSON.parse(d)}catch(O){M=null}break;case Date:M=isNaN(d)?String(d):Number(d);M=new Date(M);break;case Boolean:M=d!==null;break;case Number:M=
Number(d);break;default:M=d}this[q]=M}q=_.C(this.polySiParams.behaviors);for(Z=q.next();!Z.done;Z=q.next())M=void 0,(M=Z.value.attributeChanged)==null||M.call(this,c,f,d);var g;(g=this.attributeChanged)==null||g.call(this,c,f,d)}};
_.r.attributeChangedCallbackWrapper=function(c,f,d){this.attributeChangedCallback(c,f,d)};
_.r.setPropertiesFromInitialAttributeValues=function(){for(var c=0;c<this.hostElement.attributes.length;c++){var f=this.hostElement.attributes[c];(f.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(f.name))&&this.attributeChangedCallback(f.name,null,f.value)}};
_.r.created=function(){this.provide=this.polySiParams.provide;var c;(c=this.initializeInjection)==null||c.call(this);c=_.C(this.polySiParams.reactiveSchemas);for(var f=c.next();!f.done;f=c.next())f=f.value,f.type==="signal"&&(this.mutablePropNames.add(f.propertyKey),yr(this.signalProxy,f.propertyKey));Xen(this,this.polySiInfo,this.polySiParams.behaviors);c=_.C(this.polySiParams.reactiveSchemas);for(f=c.next();!f.done;f=c.next())f=f.value,f.type==="signal"&&f.value!==void 0&&(this.signalProxy.model[f.propertyKey]=
typeof f.value==="function"?f.value.call(this):f.value);if(this.polySiParams.signalProperties)for(c=_.C(this.polySiParams.signalProperties),f=c.next();!f.done;f=c.next()){f=f.value;var d=void 0;((d=this.__signalCache)==null?0:d.has(f))||(this.signalProxy.model[f]=void 0)}Ye3||SeO(this);Vrh(this);c=_.C(this.polySiParams.behaviors);for(f=c.next();!f.done;f=c.next())d=void 0,(d=f.value.created)==null||d.call(this);var q;(q=this.polySiInfo.created)==null||q.call(this)};
_.r.registered=function(){var c=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var f=Object.getPrototypeOf(this);f.addReactiveSchema=function(O){c.polySiParams.reactiveSchemas.push(O)};
for(var d=_.C(this.polySiParams.behaviors),q=d.next();!q.done;q=d.next()){var Z=void 0;(Z=q.value.beforeRegister)==null||Z.call(f)}var M;(M=this.polySiInfo.beforeRegister)==null||M.call(f);f.addReactiveSchema=hVk;d=_.C(this.polySiParams.behaviors);for(q=d.next();!q.done;q=d.next())Z=void 0,(Z=q.value.registered)==null||Z.call(f);var g;(g=this.polySiInfo.registered)==null||g.call(f)};
_.r.ready=function(){var c;(c=this.beforeReady)==null||c.call(this);Ye3&&SeO(this);var f;if(c=(f=this.polySiContext.finalizedTemplate)==null?void 0:f.processedTemplate){c=s2C(c.template,c.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:c.hasInsertionPoint,thisCtx:this});f=c.nodesById;c=c.root;var d=this.hostElement;var q=q===void 0?!1:q;d=(0,_.Ok)(d);if(!d.attachShadow)throw Error("Bd");if(!d.shadowRoot||q)d.attachShadow({mode:"open",shadyUpgradeFragment:c}),d.shadowRoot.appendChild(c);
this.root=d.shadowRoot;this.$=f}LY_(this);q=_.C(this.polySiParams.behaviors);for(f=q.next();!f.done;f=q.next())c=void 0,(c=f.value.ready)==null||c.call(this);var Z;(Z=this.polySiInfo.ready)==null||Z.call(this)};
_.r.attached=function(){for(var c=_.C(this.polySiParams.behaviors),f=c.next();!f.done;f=c.next()){var d=void 0;(d=f.value.attached)==null||d.call(this)}var q;(q=this.polySiInfo.attached)==null||q.call(this)};
_.r.detached=function(){for(var c=_.C(this.polySiParams.behaviors),f=c.next();!f.done;f=c.next()){var d=void 0;(d=f.value.detached)==null||d.call(this)}var q;(q=this.polySiInfo.detached)==null||q.call(this)};
var $GO=function(c){for(var f=_.C(c.polySiParams.behaviors),d=f.next();!d.done;d=f.next())if(d=d.value,d.listeners)for(var q in d.listeners)llz(c,c.hostElement,q,d.listeners[q]);if(c.polySiInfo.listeners)for(var Z in c.polySiInfo.listeners)llz(c,c.hostElement,Z,c.polySiInfo.listeners[Z])},llz=function(c,f,d,q,Z){c=BGG(c,q,Z);
Vg(f,d,c)||f.addEventListener(d,c);return c},SeO=function(c){for(var f=_.C(c.polySiParams.reactiveSchemas),d=f.next();!d.done;d=f.next())d=d.value,d.type==="compute"||d.type==="computeWithMethod"?Hlk(c.signalProxy,d,c):d.type==="redux"?FgY(c.signalProxy,d,c.store):d.type==="signal"&&d.readOnly&&YQn(c.signalProxy,d)},LY_=function(c){for(var f=_.C(c.polySiParams.reactiveSchemas),d=f.next(),q={};!d.done;q={schema$jscomp$12:void 0},d=f.next())q.schema$jscomp$12=d.value,q.schema$jscomp$12.type==="notify"?
blN(c.signalProxy,q.schema$jscomp$12,c.hostElement):q.schema$jscomp$12.type==="observe"?Kge(c.signalProxy,q.schema$jscomp$12,c):q.schema$jscomp$12.type==="reflect"&&c.signalProxy.effect(function(M){return function(){var g=c.signalProxy.getWithPath([M.schema$jscomp$12.propertyKey]);
c.reflecting=!0;XBC(c.hostElement,M.schema$jscomp$12.propertyKey,g,!0);c.reflecting=!1}}(q));
if(c.reflectedAttributes)for(f=_.C(Object.entries(c.reflectedAttributes)),q=f.next(),d={};!q.done;d={key$jscomp$910:void 0,value$jscomp$9079:void 0},q=f.next()){var Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;d.key$jscomp$910=q;d.value$jscomp$9079=Z;c.signalProxy.effect(function(M){return function(){c.reflecting=!0;XBC(c.hostElement,M.key$jscomp$910,(0,M.value$jscomp$9079)(),!0);c.reflecting=!1}}(d))}};
_.r=Uk.prototype;_.r._setPendingProperty=function(c,f){this.set(c,f);return!1};
_.r._enableProperties=function(){};
_.r._setPendingPropertyOrPath=function(c,f){this.notifyPath(c,f);return!1};
_.r._addPropertyEffect=function(){};
_.r._stampTemplate=function(){throw Error("Jg");};
_.r.fire=function(c,f,d){f=f===void 0?{}:f;d=d===void 0?{}:d;var q,Z,M={bubbles:(q=d.bubbles)!=null?q:!0,cancelable:!!d.cancelable,composed:(Z=d.composed)!=null?Z:!0},g;return _.CZ(weM((g=d.node)!=null?g:this.hostElement),c,f,M)};
_.r.get=function(c,f){var d=hY(c);return f?ilP(f,d):c==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(d)};
_.r.linkPaths=function(){};
_.r.listen=function(c,f,d){c=weM(c);this.boundListeners!=null||(this.boundListeners=new WeakMap);var q=this.boundListeners.get(c);q||(q={},this.boundListeners.set(c,q));var Z=f+d;q[Z]||(q[Z]=llz(this,c,f,d))};
_.r.notifyPath=function(c,f){this.signalProxy.notifyPath(hY(c),arguments.length===2?{value:f}:void 0)};
_.r.canNotifyPath=function(c){return this.mutablePropNames.has(c)&&!xvM(this.signalProxy,c)};
_.r.notifySplices=function(c,f){this.signalProxy.notifySplices(hY(c),f)};
_.r.pop=function(c){var f=this.signalProxy;c=hY(c);var d=_.C(c);c=d.next().value;d=RO(d);return yr(f,c).pop(d)};
_.r.push=function(c){var f=_.hv.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[hY(c)].concat(_.LT(f)))};
_.r.set=function(c,f,d){if(d)throw Error("Kg");c==="hidden"?this.hostElement.hidden=!!f:this.signalProxy.setWithPath(hY(c),f)};
_.r.setProperties=function(c){c=_.C(Object.entries(c));for(var f=c.next();!f.done;f=c.next()){var d=_.C(f.value);f=d.next().value;d=d.next().value;this[f]=d}};
_.r.splice=function(c,f,d){var q=_.hv.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[hY(c),f,d].concat(_.LT(q)))};
_.r.unlinkPaths=function(){};
_.r.unlisten=function(c,f,d){c=weM(c);if(this.boundListeners){var q=this.boundListeners.get(c);if(q){d=f+d;var Z=q[d];Z&&(Xs(c,f,Z)||c.removeEventListener(f,Z),delete q[d])}}};
_.r.unshift=function(c){var f=_.hv.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[hY(c)].concat(_.LT(f)))};
_.ci.Object.defineProperties(Uk.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 xkr=[Array,Boolean,Date,Number,Object,String];var cAM=!1;var wU=function(){var c=HTMLElement.apply(this,arguments)||this;c.restamp=!1;c.notifyDomChange=!1;c.JSC$13411_didCallConnected=!1;c.JSC$13411_renderDebouncer=null;c.disableTemplateUpdateSignalImpl=p$()?void 0:_.OT(!1,void 0,"Ofhkwb");var f;c.getDisableTemplateUpdate=(f=c.disableTemplateUpdateSignalImpl)==null?void 0:f[0];var d;c.setDisableTemplateUpdate=(d=c.disableTemplateUpdateSignalImpl)==null?void 0:d[1];return c};
_.K(wU,HTMLElement);var zKv=function(c){c.conditionSignalImpl!=null||(c.conditionSignalImpl=new vL(_.OT(!1,void 0,"gE52Fb")));return c.conditionSignalImpl};
_.r=wU.prototype;_.r.showHideChildren=function(c){JA3(this,c,this.if)};
_.r.attributeChangedCallback=function(c,f,d){if(this.JSC$13411_didCallConnected)throw Error("Og`"+c);c==="notify-dom-change"?this.notifyDomChange=d!==null:c==="restamp"&&(this.restamp=d!==null)};
_.r.debounceRender=function(){this.JSC$13411_renderDebouncer=_.OP(this.JSC$13411_renderDebouncer,vW,this.JSC$13411_renderImpl.bind(this));_.l0(this.JSC$13411_renderDebouncer)};
_.r.disconnectedCallback=function(){var c=(0,_.Ok)(this).parentNode;(!c||c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in c&&!c.host)&&a03(this)};
_.r.connectedCallback=function(){var c=this;this.JSC$13411_didCallConnected=!0;Hfr?f0G():this.style.display="none";this.parentSignalProxy.effect(function(){zKv(c).getWithPath([]);c.debounceRender()})};
_.r.render=function(){_.Ty()};
_.r.JSC$13411_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var c=this.if,f=!1;if(c){this.hasInstance()||(VE_(this),f=!0);a:{var d=(0,_.Ok)(this).parentNode;if(this.hasInstance()){var q=this.instance.children;if((q==null?0:q.length)&&(0,_.Ok)(this).previousSibling!==q[q.length-1])for(var Z=0;Z<q.length;Z++)(0,_.Ok)(d).insertBefore(q[Z],this)}else{if(!d){d=!1;break a}Xyu(this,d)}d=!0}if(!d)return}else this.restamp&&a03(this);JA3(this,!1,c);c&&!f&&VE_(this);AAT&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.r.hasInstance=function(){return!!this.instance};
var Xyu=function(c,f){var d=c.parentSignalProxy;if(p$()){var q=_.C(_.OT(!0,void 0,"yf4Yhf"));var Z=q.next().value;q=q.next().value;d=c.parentSignalProxy}else{var M;var g=new h$((M=u0j(c))!=null?M:{},function(l){var m=yr(c.parentSignalProxy,l).getChangeRecordSignal([]);l=_.OT(void 0,void 0,"oT9mkc");var H=new vL(l);g.effect(function(){if(c.getDisableTemplateUpdate&&!c.getDisableTemplateUpdate()){var A=m();H.notifyPath(hY(A.path),{value:A.value})}});
return H});
c.parentSignalProxy.childSignalProxies.push(g);var O=d=g}d=s2C(c.templateInfo,c.templateInfo.nodeInfoList,d,{eventListenerHost:c.eventListenerHost,hasInsertionPoint:c.templateInfo.hasInsertionPoint,thisCtx:c.eventListenerHost,enabledSignal:p$()?Z:void 0,getModel:function(){return u0j(c)}}).root;
c.instance={root:d,children:[],hidden:!1,signalProxy:O,getTemplateUpdatesEnabled:Z,setTemplateUpdatesEnabled:q};O=_.C(d.childNodes);for(Z=O.next();!Z.done;Z=O.next())c.instance.children.push(Z.value);(0,_.Ok)(f).insertBefore(c.instance.root,c)},u0j=function(c){if((c=c.parentSignalProxy.model)&&!c.hostElement){var f={},d;
for(d in c)c.hasOwnProperty(d)&&(f[d]=c[d]);return f}},a03=function(c){if(c.instance){var f=c.instance.children;
if(f.length){var d=(0,_.Ok)(f[0]).parentNode;if(d){d=(0,_.Ok)(d);for(var q=0;q<f.length;q++)d.removeChild(f[q])}}p$()?c.instance.setTemplateUpdatesEnabled(!1):c.instance.signalProxy.dispose();c.instance=void 0}},JA3=function(c,f,d){f=f||!d;
c.instance&&c.instance.hidden!==f&&(c.instance.hidden=f,GFk(f,c.instance.children))},VE_=function(c){if(p$()){var f=c.instance;
f&&Jo(c.parentSignalProxy.owner,function(){return!f.getTemplateUpdatesEnabled()})&&f.setTemplateUpdatesEnabled(!0)}else c.setDisableTemplateUpdate(!1)};
_.ci.Object.defineProperties(wU.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var c=this;return Jo(this.parentSignalProxy.owner,function(){return zKv(c).getWithPath([])})},
set:function(c){c||(p$()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));zKv(this).setWithPath([],!!c)}}});
_.ci.Object.defineProperties(wU,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",wU);var vio=[],yd=function(){var c=HTMLElement.apply(this,arguments)||this;c.as="item";c.indexAs="index";c.itemsIndexAs="itemsIndex";c.targetFramerate=20;c.notifyDomChange=!1;c.isDetached=!1;c.JSC$13418_renderDebouncer=null;c.instances=[];c.chunkingId=null;c.chunkCount=null;c.shouldMeasureChunk=!1;c.shouldContinueChunking=!1;c.renderStartTime=null;c.JSC$13418_didCallConnected=!1;return c};
_.K(yd,HTMLElement);var hKo=function(c){c.itemSignalImpl!=null||(c.itemSignalImpl=new vL(_.OT(vio,void 0,"YBrqgf")));return c.itemSignalImpl},wyy=function(c,f){Array.isArray(f)||(f=vio);
hKo(c).setWithPath([],f)};
_.r=yd.prototype;_.r.showHideChildren=function(c){for(var f=_.C(this.instances),d=f.next();!d.done;d=f.next())GFk(c,d.value.children)};
_.r.notifyPath=function(c,f){c=hY(c);c[0]==="items"&&(c.length===1?wyy(this,f):hKo(this).setWithPath(c.slice(1),f))};
_.r.canNotifyPath=function(c){return c==="items"};
_.r.attributeChangedCallback=function(c,f,d){if(this.JSC$13418_didCallConnected)throw Error("Pg`"+c);c==="as"?this.as=d:c==="index-as"?this.indexAs=d:c==="items-index-as"?this.itemsIndexAs=d:c==="initial-count"?this.initialCount=Number(d):c==="notify-dom-change"?this.notifyDomChange=d!==null:c==="target-framerate"&&(this.targetFramerate=Number(d))};
_.r.disconnectedCallback=function(){this.isDetached=!0;for(var c=0;c<this.instances.length;c++)yAO(this,c);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.r.connectedCallback=function(){var c=this,f=hKo(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Z=f(),M=hY(Z.path);if(M[0]===void 0||M[0]==="splices"||M[0]==="length")c.debounceRender();else{var g=M[0];if(g=c.instances[typeof g==="string"?Math.floor(Number(g)):g])M=[c.as].concat(_.LT(M.slice(1))),g.signalProxy.notifyPath(M,Z)}});
this.JSC$13418_didCallConnected=!0;Hfr?f0G():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var d=(0,_.Ok)((0,_.Ok)(this).parentNode),q=0;q<this.instances.length;q++)d.insertBefore(this.instances[q].root,this);this.chunkingId&&this.render()}};
_.r.debounceRender=function(){this.JSC$13418_renderDebouncer=_.OP(this.JSC$13418_renderDebouncer,vW,this.JSC$13418_renderImpl.bind(this));_.l0(this.JSC$13418_renderDebouncer)};
_.r.render=function(){this.debounceRender();_.Ty()};
_.r.JSC$13418_renderImpl=function(){var c=this;if(!this.parentSignalProxy.isDisposed){var f=this.items,d=WYy(this,f.length);DGT(this,f,d);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){c.chunkingId=null;if(c.shouldMeasureChunk){var q=performance.now()-c.renderStartTime;c.chunkCount=Math.round(Math.ceil(1E3/c.targetFramerate)/q*c.chunkCount)||1}c.shouldContinueChunking&&c.debounceRender()}));
AAT&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var WYy=function(c,f){var d=f,q=c.instances.length;if(c.initialCount){if(c.chunkCount){var Z=Math.min(Math.max(f-q,0),c.chunkCount);d=Math.min(q+Z,f)}else d=Math.min(f,c.initialCount),Z=Math.max(d-q,0),c.chunkCount=Z||1;c.shouldMeasureChunk=Z===c.chunkCount;c.shouldContinueChunking=d<f;c.renderStartTime=performance.now()}return d},DGT=function(c,f,d){for(var q=0;q<d;q++){var Z=c.instances[q],M=f[q];
Z?(Z.signalProxy.setWithPath([c.as],M),Z.signalProxy.setWithPath([c.indexAs],q)):eK_(c,M,q)}for(f=c.instances.length-1;f>=q;f--)d=c,Z=f,yAO(d,Z),_.C(d.instances.splice(Z,1)).next().value.signalProxy.dispose()},yAO=function(c,f){c=c.instances[f];
f=(0,_.Ok)(c.root);for(var d=0;d<c.children.length;d++)f.appendChild(c.children[d])},eK_=function(c,f,d){var q={};
f=Object.assign({},NP_(c),(q[c.as]=f,q[c.indexAs]=d,q[c.itemsIndexAs]=d,q));var Z=new h$(f,function(g){if(g!==c.as&&g!==c.indexAs){if(g===c.itemsIndexAs)return yr(Z,c.indexAs);var O=yr(c.parentSignalProxy,g).getChangeRecordSignal([]);g=_.OT(void 0,void 0,"T21Pqc");var l=new vL(g);Z.effect(function(){var m=O();l.notifyPath(hY(m.path),{value:m.value})});
return l}});
c.parentSignalProxy.childSignalProxies.push(Z);q=s2C(c.templateInfo,c.templateInfo.nodeInfoList,Z,{eventListenerHost:c.eventListenerHost,getModel:function(){var g={};return Object.assign({},NP_(c),(g[c.as]=Z.model[c.as],g[c.indexAs]=Z.model[c.indexAs],g[c.itemsIndexAs]=Z.model[c.indexAs],g))},
hasInsertionPoint:c.templateInfo.hasInsertionPoint,thisCtx:c.eventListenerHost,methodInvocationRequirement:FYK,enabledSignal:c.stampingEnabled}).root;f={root:q,children:[],signalProxy:Z};q=_.C(q.childNodes);for(var M=q.next();!M.done;M=q.next())f.children.push(M.value);q=(q=c.instances[d+1])?q.children[0]:c;(0,_.Ok)((0,_.Ok)(c).parentNode).insertBefore(f.root,q);c.instances[d]=f},NP_=function(c){if((c=c.parentSignalProxy.model)&&!c.hostElement){var f={},d;
for(d in c)c.hasOwnProperty(d)&&(f[d]=c[d]);return f}};
yd.prototype.itemForElement=function(c){var f=this,d=this.instances.find(function(q){return q.children.includes(c)});
if(d)return Jo(this.parentSignalProxy.owner,function(){return d.signalProxy.getWithPath([f.as])})};
yd.prototype.indexForElement=function(c){var f=this.instances.findIndex(function(d){return d.children.includes(c)});
return f>=0?f:void 0};
_.ci.Object.defineProperties(yd.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var c=this;return Jo(this.parentSignalProxy.owner,function(){return hKo(c).getWithPath([])})},
set:function(c){wyy(this,c)}},
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}}});
_.ci.Object.defineProperties(yd,{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",yd);var I0u,PyK;_.WL=new _.jk("STATE_STORE_TOKEN");I0u=new _.jk("SELECT_TOKEN");PyK=new _.jk("DISPATCH_TOKEN");var rAY={getSelectFn:function(){var c;return(c=_.ql().resolve(_.dx(I0u)))!=null?c:dGr},
getDispatchFn:function(){var c;return(c=_.ql().resolve(_.dx(PyK)))!=null?c:_.xE().dispatch.bind(_.xE())},
getAppStore:function(){return _.ql().resolve(_.WL)}},jHP,MEC=!1;var fx={traceAllComponents:_.F("web_tracing_all_components"),exportToCsi:_.F("web_tracing_export_to_csi"),exportBreadcrumbs:_.F("web_enable_tracing"),bufferSize:_.rx("web_max_tracing_events"),enabledSpansArray:_.gx("web_tracing_enabled_spans"),exportToDevTools:_.F("web_tracing_export_to_devtools")};var ifk=function(){};var l0k=void 0;var RK3=function(){};
RK3.prototype.hasAttribute=function(c){if(c==="dir")return!1;if(c==="disable-upgrade"){var f,d;return(d=(f=this.hostElement)==null?void 0:f.hasAttribute("disable-upgrade"))!=null?d:!1}throw Error("Qg`"+c);};
RK3.prototype.attributeChangedCallbackWrapper=function(c,f,d){if(c==="disable-upgrade"&&this.__isUpgradeDisabled&&d===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var q;((q=this.hostElement)!=null?q:this).isConnected&&this.connectedCallback()}else f===d||this.__isReflecting||this.attributeChangedCallback(c,f,d)};
RK3.prototype.getExtraMethodsToForward=function(){for(var c=this,f=[],d=_.C(UGK),q=d.next(),Z={};!q.done;Z={tagName$jscomp$54:void 0,name$jscomp$572:void 0},q=d.next())Z.name$jscomp$572=q.value,q=void 0,Z.name$jscomp$572==="_setPendingProperty"?(Z.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),q=function(M){return function(g,O,l){n$(M.tagName$jscomp$54,g,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return c._setPendingProperty(g,O,l)}}(Z)):q=function(M){return function(){return c[M.name$jscomp$572].apply(c,
_.LT(_.hv.apply(0,arguments)))}}(Z),f.push([Z.name$jscomp$572,
q]);return f};
for(var Hfe=EiH(KYr((0,_.EP)(RK3))),tEe=["disabled","disable-upgrade"],pyj=(0,_.EP)(function(){}),xGF=new Set(Object.getOwnPropertyNames(pyj.prototype)),$G4=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.LT(xGF))),KYe=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),UGK=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),oir=new Set([].concat(_.LT(KYe),_.LT(UGK),_.LT(xGF))),GS3=_.C(oir),cXK=GS3.next();!cXK.done;cXK=GS3.next())ITr.add(cXK.value);var nir={created:function(){Vrh(this);this.initializeInjection()}};var u0r=!1,MV=window.ShadyDOM,NPl=["appendChild","insertBefore","removeChild","replaceChild"],eKG=[Node];MV&&eKG.push(MV.Wrapper);var xGn,oie,fcr={};var gN=new Set,rN="",dbh="";var Cx,kp=new Set;var OAn=new Set("context didCallReady is info params signalProxy".split(" ")),sPl="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Bvr="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var fcj=mF({entities:gfN}),dbT=new on(fcj);var jPK=function(){return _.Fj.apply(this,arguments)||this};
_.K(jPK,_.Fj);_.ci.Object.defineProperties(jPK.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return dbT}}});
_.y([_.tY()],jPK);_.DV=[XQ.prototype,jPK.prototype];_.e3={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var c=this,f={};setTimeout(function(){var d;return _.CZ((d=c.hostElement)!=null?d:c,"yt-live-chat-add-tooltip-target",f)},0);
this.handler_=f.handler},
detached:function(){if(this.handler_){var c;this.handler_.removeElementFromSupportingTooltips((c=this.hostElement)!=null?c:this)}this.handler_=null}}};_.mt=new _.jk("ICON_MANAGER_TOKEN");var qyF=[48,20,18,16,15,13,12],unM=new Map,LQl=new Set,$bN=new Set,Syz=new Set,nFh=new Set,QPh=new Set,JXh=new Promise(function(c){var f=!1,d=!1,q=!1,Z=[],M=function(g){if("detail"in g)if(g=g.detail,g.name==="yt-icons")zdM(g),f=!0;else if(g.name==="yt-sys-icons")zdM(g),d=!0;else{var O;((O=g.name)==null?0:O.includes("yt-sys-icons"))&&g.size!==24&&(zdM(g,!0),Z.push(g.size),Z.length===qyF.length&&(q=!0))}f&&d&&q&&(window.removeEventListener("iron-iconset-added",M),c())};
window.addEventListener("iron-iconset-added",M)}),V$n=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"]]);_.N2={};_.N2.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.xC,computeHref_:function(c,f){f=f===void 0?!1:f;if(!c||c.commandExecutorCommand)return null;var d=hcY(c,f);return f||d!==null?d?_.F("enable_polymer_resin")?_.XD(d).toString():d:null:(_.u6(new _.KD("computeHref was null",this.is,c)),null)},
computeOptionalHref_:function(c){return this.computeHref_(c,!0)},
computeNofollow_:function(c){return c?SRr(c)?"nofollow":null:null},
computeIcon_:function(c){return c&&c.iconType?_.Tu(c.iconType):""},
resolveCommand:function(c,f,d){f=f===void 0?{}:f;return _.Ae(c,this.hostElement,f,d===void 0?!1:d)}};var M$H,IM;_.ZAy={};M$H=null;
IM={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_=LDN(this.viewroot));_.Nh(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var c=this;this.unobserve_();if(_.F("kevlar_vimio_use_shared_monitor"))WQ4(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 f=[];this.visibilityOptionVisible_&&f.push(this.visibilityObserver.observe(this.hostElement,function(){return c.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&f.push(this.visibilityObserver.observe(this.hostElement,function(){return c.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&f.push(this.visibilityObserver.observe(this.hostElement,function(){return c.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=f}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){vFG(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 c=_.vv(this.parentNode,function(d){var q,Z=(q=d.polymerController)!=null?q:d;return!!Z.getVisibilityObserverForChild&&Z.getVisibilityObserverForChild()},!0);
if(c){var f;this.localVisibilityObserver_=((f=c.polymerController)!=null?f:c).getVisibilityObserverForChild()}else M$H||(M$H=LDN()),this.localVisibilityObserver_=M$H;return this.localVisibilityObserver_},visibilityCallback:function(c){c?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.F("kevlar_use_vimio_behavior")||(IM={});IM&&!_.F("kevlar_use_vimio_behavior")&&(delete IM.attached,delete IM.detached);_.ZAy.YtVisibilityObserverBehavior=[IM];var rXK={};rXK.YtVisualElementBehavior=[_.ZAy.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 c=this.getScreenLayer&&this.getScreenLayer(),f=this.getVisibilityLogger();f&&f.reportShown(this,void 0,c)}},
onHidden:function(){if(_.F("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.F("kevlar_vimio_use_shared_monitor")){var c=this.getScreenLayer&&this.getScreenLayer(),f=this.getVisibilityLogger();f&&f.reportHidden(this,void 0,c)}},
getVisibilityLogger:function(){return _.F("kevlar_use_vimio_behavior")?_.FN():null},
shouldSkipLogging:function(){if(_.hk("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var c=this.getParentRenderer&&this.getParentRenderer();if(!c)return!1;var f,d=(f=c.polymerController)!=null?f:c;if(!d.data)return!1;c=this.data.trackingParams;c=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:c;var q;f=(q=d.data)==null?void 0:q.trackingParams;var Z,M;f=((Z=d.data)==null?0:Z.loggingDirectives)?(M=d.data)==null?void 0:M.loggingDirectives.trackingParams:f;return c&&f&&c===
f}}];var Nv4=new Map,Sq;var JSz=function(c){this.layer=c},ik=function(c){return c.layer!==void 0?c.layer:c.parent?ik(c.parent):c.layer=0};var xbn;_.P={};xbn=0;_.P.YtRendererBehavior=[_.N2.YtComponentBehavior,rXK.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 c,f;(f=(c=this.monitorScrollElement)!=null?c:this.hostElement)==null||f.removeEventListener("scroll",_.ia(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Dbn(this.hostElement);H2o(_.Qd(),this.hostElement);oc.delete(this.hostElement)},
registerRenderer:function(c){var f;((f=c.polymerController)!=null?f:c).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(c),this.markDirty())},
unregisterRenderer_:function(c){this.useVimio_||(this.childCache_.delete(c),this.markDirty())},
attached:function(){var c=this,f=this.getParentRenderer();if(f){var d,q,Z;(q=(d=(Z=f.polymerController)!=null?Z:f).registerRenderer)==null||q.call(d,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var M,g;(g=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||g.addEventListener("scroll",_.ia(this,this.onScroll))}_.a7.addJob(function(){IcP(c.hostElement)},8);
d=new JSz(this.screenLayer||void 0);(f=oc.get(f))&&f.layerNode&&(d.parent=f.layerNode);f={};Jsn(this.hostElement,(f.isRenderer=!0,f.layerNode=d,f[axn]=this.data,f))},
getParentRenderer:function(){for(var c=this.hostElement.parentNode,f,d;c&&((f=oc.get(c))==null||!f.isRenderer)&&!((d=c.polymerController)!=null?d:c).isRenderer_;)c=c.parentNode||c.host;return c},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.F("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.wi("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.F("debug_web_ve_data")&&this.data.trackingParams){var c="";try{c=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(d){_.VO(d)}if(c){var f=jnz(c,1);f!==void 0&&(this.hostElement.dataset.veIndex=String(f));c=jnz(c,2);
c!==void 0&&(this.hostElement.dataset.ve=String(c))}}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=_.Q1(this.data.loggingDirectives.trackingParams)),this.visualElement=_.te(_.bP(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var c=this.data.targetId;_.YIO(_.Qd(),c,this.hostElement)}else H2o(_.Qd(),this.hostElement)},
onScroll:function(){var c=Date.now();c-this.lastHandledScroll_<50||(this.lastHandledScroll_=c,this.markDirty())},
markDirty:function(){_.F("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():oFN(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var c=this.getParentRenderer();if(c&&(c=oc.get(c))&&c.layerNode)return ik(c.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.LT(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var c=0;c<this.data.impressionEndpoints.length;c++)this.sendImpression(this.data.impressionEndpoints[c]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(c){c.clickTrackingParams&&delete c.clickTrackingParams;var f,d;(c==null?0:(f=c.commandMetadata)==null?0:(d=f.webCommandMetadata)==null?0:d.sendPost)?_.OX(this.hostElement,[c,{impression:!0}]):_.ll(this.hostElement,[c],this.hostElement)},
logExplicitClick:function(c){var f=_.X2(this.getScreenLayer());if(f){var d,q=(d=c.polymerController)!=null?d:c;c=q.visualElement;q=q.trackingParams||q.clickTrackingParams;!c&&q&&(c=_.Q1(q));c&&_.Rc(f,c)}}}];var CzH={},PL=function(){return _.Fj.apply(this,arguments)||this};
_.K(PL,_.Fj);PL.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
PL.prototype.onPdgItemBehaviorClick=PL.prototype.onPdgItemBehaviorClick;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],PL.prototype,"data",void 0);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],PL.prototype,"onPdgItemBehaviorClick",null);_.y([_.tY()],PL);CzH.YtPdgLiveChatItemBehavior=[PL.prototype,_.P.YtRendererBehavior];var gFO;var kpH;_.RM={};_.RM.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var U2=function(){var c=d2.apply(this,arguments)||this;c.switchTemplateAtRegistration=!1;return c};
_.K(U2,d2);U2.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||dXG(this),_.SIN(this,"doRender"),this.doRender())};
U2.prototype.debounceRender=function(){this.templatingFn&&_.Ia(this,"doRender",this.doRender)};
U2.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.VO(Error("$g"))};
U2.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.y([T4l()],U2);var OAF=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,pt={},Mxh=(pt[1]={filterString:null,isUnwrappable:null,unwrap:null},pt[2]={filterString:function(c,f,d){return Tx(d)},
isUnwrappable:function(c){return c instanceof WU},
unwrap:function(c){return eP(c)}},pt[3]={filterString:function(c,f,d){return OAF.test(d)?d:VM.toString()},
isUnwrappable:function(c){return SP(c)},
unwrap:function(c){return _.Lq(c)}},pt[4]={filterString:function(){return VM.toString()},
isUnwrappable:function(c){return c instanceof tv},
unwrap:function(c){return _.Kq(c).toString()}},pt[5]={filterString:function(c,f,d){return d},
isUnwrappable:function(c){return typeof c==="string"},
unwrap:function(c){return c.toString()}},pt[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(c){return c instanceof _.UW},
unwrap:function(c){return M8C(c)}},pt[8]={filterString:function(c,f,d){d=String(d).toLowerCase();
return r8r(c,f,d)?d:"zClosurez"},
isUnwrappable:null,unwrap:null},pt[10]={filterString:null,isUnwrappable:null,unwrap:null},pt);fh[ho["default"]]=C3z;var gal=[];var tak=OMn("A"),bPh=OMn("BUTTON"),Ls=OMn("DIV"),K7N=OMn("LABEL");(function(){var c=pL;pL=function(f){c==null||c(f);af(function(){for(var d=0;d<f.length;d++)kwC(f[d])})}})();var lco=function(){var c=_.Fj.apply(this,arguments)||this;c.hasUnmounted=!1;return c};
_.K(lco,_.Fj);_.r=lco.prototype;_.r.beforeRegister=function(){var c=this.doIdomRender;this.templatingFn?_.VO(Error("Zg")):(this.templatingFn=c,this.switchTemplateAtRegistration=!0,ZMn(this))};
_.r.attached=function(){};
_.r.detached=function(){kwC(this.hostElement)};
_.r.renderIdom=function(){throw Error("bh");};
_.r.doIdomRender=function(){var c=this;xYY(this.hostElement,function(){c.renderIdom()})};
_.y([_.tY()],lco);var sP_=[U2.prototype,lco.prototype];var Bvj,iA3=function(){return Bvj!==void 0?Bvj:Bvj=document.createElement("template")};
document.head.appendChild(iA3().content);var Tvr;var mb_,HAj=function(){return mb_!==void 0?mb_:mb_=document.createElement("template")};
document.head.appendChild(HAj().content);var AXr;var YyH=document.head,FQv=YyH.appendChild,t$v;if(AXr===void 0){var bAK=document.createElement("template");_.n(bAK,"\x3c!--css-build:shady--\x3e");bAK.content.insertBefore(HAj().content.cloneNode(!0),bAK.content.firstChild);AXr=bAK}t$v=AXr;FQv.call(YyH,t$v.content);var KQ_,EFv=function(){return KQ_!==void 0?KQ_:KQ_=document.createElement("template")};
document.head.appendChild(EFv().content);var nFT;var $bH=document.head,QPT=$bH.appendChild,Syo;if(nFT===void 0){var LQ_=document.createElement("template");_.n(LQ_,"\x3c!--css-build:shady--\x3e");LQ_.content.insertBefore(EFv().content.cloneNode(!0),LQ_.content.firstChild);nFT=LQ_}Syo=nFT;QPT.call($bH,Syo.content);var zdu=document.head,JXT=zdu.appendChild,acK;if(Tvr===void 0){var V$F=document.createElement("template");_.n(V$F,"\x3c!--css-build:shady--\x3e");V$F.content.insertBefore(iA3().content.cloneNode(!0),V$F.content.firstChild);Tvr=V$F}acK=Tvr;JXT.call(zdu,acK.content);var XnK,unu=function(){return XnK!==void 0?XnK:XnK=document.createElement("template")};
document.head.appendChild(unu().content);var vF_;_.of=new _.jk("DARK_THEME_TOKEN");var GwM=new _.fi("accessibilityProperties");var oar=new _.fi("layoutProperties");var cJN=new _.fi("imageType");var hdO={};if("ytAttributedStringLinkHoverColor"in hdO)throw Error("eh`ytAttributedStringLinkHoverColor");(function(c,f){hdO[c]="value"in f&&"unit"in f?TH4(c,f):function(d){try{return f(d)}catch(q){throw Error("ch`"+c+"`"+q.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var wn_=function(c){var f=this;this.holdTime=c===void 0?500:c;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(d){var q=new CustomEvent("LONG_PRESS"),Z;(Z=d.changedTouches[0].target)==null||Z.dispatchEvent(q)};
this.ontouchstart=function(d){f.longPressTimeout=_.X8(_.a7,function(){f.onlongpress(d);f.longPressOccurred=!0},f.holdTime)};
this.ontouchmove=function(){_.a7.cancelJob(f.longPressTimeout);f.longPressTimeout=NaN;f.longPressOccurred=!1;f.moveOccurred=!0};
this.ontouchend=function(d){if(f.longPressTimeout&&!f.longPressOccurred&&!f.moveOccurred){var q;(q=d.changedTouches[0].target)==null||q.dispatchEvent(new Event("click"))}_.a7.cancelJob(f.longPressTimeout);f.longPressTimeout=NaN;f.longPressOccurred=!1;f.moveOccurred=!1}};var VxY=function(c,f){wn_.call(this,f);var d=this;this.callback=c;this.onlongpress=function(q){var Z;(Z=d.callback)==null||Z.call(d,q)}};
_.K(VxY,wn_);var XTl=function(c,f){var d=Object.assign({},f);c=_.C(new Map([["ontouchstart",c.ontouchstart],["ontouchend",c.ontouchend],["ontouchmove",c.ontouchmove]]));for(var q=c.next(),Z={};!q.done;Z={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},q=c.next()){var M=_.C(q.value);q=M.next().value;M=M.next().value;Z.eventName$jscomp$101=q;Z.eventHandler$jscomp$1=M;f[Z.eventName$jscomp$101]=function(g){return function(O){var l;(l=d[g.eventName$jscomp$101])==null||l.call(d,O);(0,g.eventHandler$jscomp$1)(O)}}(Z)}};_.ZM=new _.jk("COMMAND_HANDLER_TOKEN");var HMr=new _.fi("parallelCommand");var Fzz=new _.fi("performOnceCommand");var YFM=new _.fi("serialCommand");var txn=void 0;var yX_=function(){this.data=[];this.consumer=null};
yX_.prototype.push=function(c){this.consumer?this.consumer(c):this.data.push(c)};var j4={};_.OT(j4,void 0,"sgPmTd");_.OT(null,void 0,"jypsq");_.OT(null,void 0,"mWiOof");var NIn=new yX_;var LzN=[tMy,br_,Kh_,nlO,El3,FhH,$NF,Qkv];var pTk=new _.fi("bracketTextDecorator");var px=new _.fi("highlightTextDecorator");_.cr=new _.jk("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var NHk=function(){},WQO;
(WQO=window.requestIdleCallback)==null||WQO.bind(window);var P34={calledOnce:!1,state:"visible"},IFC={calledOnce:!1,state:"hidden"};var DbF=new _.jk("ICON_WIZ_COMPONENT_TOKEN");_.Qy=_.dN(function(c){var f=c.icon;var d=c.active;var q=c.className;var Z=c.style;var M=c.dataSelected;var g=c.dataDisabled;var O=c.role;var l=c.animateIcon;var m=c.themeOverride;var H=c.ariaHidden;var A=c.ariaExpanded;var Y=c.ariaLabel;var t=c.tabindex;var E=c.id;var J=c.size;var X=c.iconFilter;return _.B(_.T,{cond:f,then:function(){var u=_.ql().resolve(DbF);return _.B(u,{icon:f,dataSelected:M,dataDisabled:g,animateIcon:l,themeOverride:m,ariaExpanded:A,tabindex:t,id:E,active:d,size:J,role:O,className:q,
ariaHidden:H,ariaLabel:Y,style:function(){return Z!=null&&Z()||J==null||!J()?Z==null?void 0:Z():"width: "+(J==null?void 0:J())+"px;height: "+((J==null?void 0:J())+"px;")},
iconFilter:X})}})},"b");
_.Qy.idomCompat=!0;var TpY=window.devicePixelRatio||1;var Yqn=new Map([["yt_outline_bag_black_24","bag"]]);var xH=function(c){var f=this;this.margin=.1;this.whenInViewportWithMargin=c;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){f.requestScan()});
window.addEventListener("touchend",function(){f.requestScan()});
window.addEventListener("updateui",function(){f.requestScan()});
var d=new _.Gx((0,_.n1)(this.requestScan,this),100);window.addEventListener("scroll",function(){d.fire()},!0);
window.addEventListener("resize",(0,_.n1)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){f.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.n1)(this.requestScan,this))};
xH.prototype.observe=function(c){this.observationTargets.includes(c)||this.observationTargets.push(c)};
xH.prototype.unobserve=function(c){this.observationTargets=this.observationTargets.filter(function(f){return f!==c})};
xH.prototype.requestScan=function(){var c=this;this.scanRequested||(af(function(){edT(c)}),this.scanRequested=!0)};
var edT=function(c){var f=(1+c.margin)*(document.documentElement.clientHeight||window.innerHeight);c.observationTargets=c.observationTargets.filter(function(d){var q=d.getBoundingClientRect();(q=f>q.top&&!!q.height)&&c.whenInViewportWithMargin(d);return!q&&d.parentNode});
c.scanRequested=!1};
xH.prototype.disconnect=function(){this.observationTargets=[]};var NvO,PzT;NvO=_.C(_.OT(Eyl(),void 0,"O3X2wd"));_.Ic3=NvO.next().value;PzT=NvO.next().value;window.addEventListener("resize",function(){PzT(Eyl())});var Rdv={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},UbT=void 0,pnr=window.innerWidth,xbF=window.innerHeight;window.addEventListener("resize",function(){UbT=void 0});var oFH;if("IntersectionObserver"in window)oFH=QCN();else{if(UbT===void 0){var Gpv;Gpv="matchMedia"in window?window.matchMedia(Rdv.landscape+","+Rdv.portrait).matches:void 0;UbT=Gpv!==void 0?Gpv:pnr>=930&&xbF>=550||pnr>=550&&xbF>=930}oFH=UbT?{observe:function(c){af(function(){var f;(f=c.onViewportEntered)==null||f.call(c)})},
unobserve:function(){}}:new xH(function(c){af(function(){var f;
(f=c.onViewportEntered)==null||f.call(c)})})}var nyC=oFH;var cZT=_.dN(function(c){var f=!1,d=_.xz("img",function(q){_.Q4(function(){f=!0;q.onload=null})});
_.$k(function(){var q,Z=(q=c.data)==null?void 0:q.call(c),M,g=(M=c.getSrc)==null?void 0:M.call(c).cb,O;q=(O=c.config)==null?void 0:O.call(c);if(O=d.value)if(M=function(m,H){if(!f)return g?g(m,H):m},zZn(O,q),_.F("web_image_dont_reload_same_src")&&Lr4(O,Z,M))_.F("web_image_dont_reload_same_src_simulate_load")&&O.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var l;SqG(O,Z||null,M,q,(l=c.lazy)==null?void 0:l.call(c))}},"v0I2p");
return _.B("img",{el:d})},"c");
cZT.idomCompat=!0;_.jC=_.dN(function(c){var f=function(){var d,q=c.data(),Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R,qN,kl,BN,tP,EC,AP,eM,ue,BH,J3;var lr={contentMode:(Z=c.contentMode)==null?void 0:Z.call(c),loadedClass:(M=c.loadedClass)==null?void 0:M.call(c),isPreloaded:(g=c.isPreloaded)==null?void 0:g.call(c),notifyOnLoaded:(O=c.notifyOnLoaded)==null?void 0:O.call(c),notifyOnUnloaded:(l=c.notifyOnUnloaded)==null?void 0:l.call(c),preferredThumbnail:(m=c.preferredThumbnail)==null?void 0:m.call(c),preserveHeight:(H=c.preserveHeight)==
null?void 0:H.call(c),preserveWidth:(A=c.preserveWidth)==null?void 0:A.call(c),objectPosition:(Y=c.objectPosition)==null?void 0:Y.call(c),targetWidth:(t=c.targetWidth)==null?void 0:t.call(c),targetHeight:(E=c.targetHeight)==null?void 0:E.call(c),shouldShowPlaceholder:(J=c.shouldShowPlaceholder)==null?void 0:J.call(c),useWidth:(X=c.useWidth)==null?void 0:X.call(c),isToggled:(u=c.isToggled)==null?void 0:u.call(c),alt:(W=c.alt)==null?void 0:W.call(c),className:(p=c.className)==null?void 0:p.call(c),
onerror:c.onerror,onload:c.onload,style$:((N=c.style$)==null?void 0:N.call(c))||((I=c.style)==null?void 0:I.call(c)),color:(R=c.color)==null?void 0:R.call(c),width:(qN=c.width)==null?void 0:qN.call(c),height:(kl=c.height)==null?void 0:kl.call(c),"aria-hidden$":(BH=(BN=c["aria-hidden$"])==null?void 0:BN.call(c))!=null?BH:(tP=c.ariaHidden)==null?void 0:tP.call(c),draggable:(EC=c.draggable)==null?void 0:EC.call(c),"data-disabled$":(J3=(AP=c["data-disabled$"])==null?void 0:AP.call(c))!=null?J3:(eM=c.dataDisabled)==
null?void 0:eM.call(c),size:(ue=c.size)==null?void 0:ue.call(c)};return V1M(q,lr,(d=c.hideOn404)==null?void 0:d.call(c))};
return _.B(_.n9,null,_.B(_.K9,{when:function(){var d;return((d=f())==null?void 0:d.type)==="image"}},function(){return _.B(cZT,{data:function(){return f().image},
getSrc:{cb:function(d,q){var Z=f().image.sources,M=f().config.isPreloaded,g=f().config.useWidth,O=f().config.targetWidth,l=f().config.targetHeight,m=f().config.preferredThumbnail;return _.mWn(q,Z,M,g,O,l,m)||""}},
config:function(){var d=f().config,q;for(q in d)d[q]===void 0&&delete d[q];return d},
lazy:c.renderLazy})}),_.B(_.K9,{when:function(){var d;
return((d=f())==null?void 0:d.type)==="icon"}},function(){return _.B(_.Qy,{icon:function(){return f().iconName},
role:function(){return f().config.role},
className:function(){return f().config.className},
style:function(){return f().config.style$+";width: "+(f().config.width+"px;height: ")+(f().config.height+"px;color: ")+(f().config.color+";")},
ariaLabel:function(){return f().config["aria-label$"]},
ariaHidden:function(){return f().config["aria-hidden$"]},
dataDisabled:function(){return f().config["data-disabled$"]},
active:function(){return f().config.isToggled},
size:function(){return f().config.size}})}))},"d");
_.jC.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var fFH=function(c){return function(f){return _.B(BBr,null,function(){var d=f.data(),q=_.LL(f.config);return _.B(GP,null,function(){return void c(d,q)})})}}(wMh),vyG=_.dN(function(c){var f=function(q){var Z,M=_.Z7(function(Y){Z=Sh(function(){for(var t=_.C(H()),E=t.next();!E.done;E=t.next()){E=yJh(E.value);
E=typeof E==="string"?document.createTextNode(E):E;if(!(E instanceof Node)){t=new _.KD("Part is not a node",E,typeof E);_.VO(t);break}Y.appendChild(E)}})}),g=M5(function(){return dWG(q())},{isEqual:uGY}),O=_.Ga(c.config),l=function(){var Y,t=g();
return!((Y=O())==null||!Y.ariaLabel)||!(t.commandRuns&&t.commandRuns.length!==0||t.paragraphStyleRuns&&t.paragraphStyleRuns.length!==0)},m=M5(O,{isEqual:DWY}),H=function(){var Y=foP(g(),m());
qqN(Y,m());return g().content?kON(g().content,Y).parts:[]},A=!0;
_.$k(function(){g();m();if(A)A=!1;else{var Y=H();Promise.resolve().then(function(){var t=M.value;if(t){t.innerText="";var E;(E=Z)==null||E();Z=_.$5(t,function(){return _.B(Wrk,{parts:Y})})}})}},"YlhjWd");
return _.B("span",{el:M,class:function(){return g()&&yZk(g(),O())},
dir:function(){var Y;return((Y=O())==null?0:Y.userInput)?"auto":void 0},
"aria-label":function(){var Y;return l()?(Y=O())==null?void 0:Y.ariaLabel:void 0},
role:function(){return l()?"text":void 0}})},d;
return((d=c.config)==null?0:d.renderedFromFormattedString)?f(c.text):_.B(_.T,{cond:c.text,then:f})},"e");
vyG.idomCompat=!0;_.J9=_.dN(function(c){var f=_.Ga(c.text),d=eZr(c);c.renderedFromFormattedString!==void 0&&(d.renderedFromFormattedString=!0);return _.F("attr_string_reactive")?_.B(vyG,{text:f,config:d}):_.B(_.T,{cond:function(){var q;return f()&&((q=dWG(f()))==null?void 0:q.content)},
then:function(){return _.B(fFH,{data:c.text,config:d})},
debugInstance:"Apcuac"})},"f");
_.J9.idomCompat=!0;var IoY=function(c,f,d){f=f===void 0?"unknown":f;d=d===void 0?{}:d;_.KD.call(this,c+" ("+f+")",Object.assign({},{name:"YtWcwError",tagName:f},d));Object.setPrototypeOf(this,this.constructor.prototype)};
_.K(IoY,_.KD);_.oyk=new WeakMap;_.xWN=!1;var pMe,GOY,UWk;_.oM=Symbol("gh");_.Cs=Symbol("hh");pMe=Symbol("ih");GOY=new Set(Object.getOwnPropertyNames(Element.prototype));UWk=Symbol("jh");var dX_=_.dN(function(c){return _.B("yt-attributed-string",{"aria-label":c.ariaLabel,hidden:c.hidden,id:c.id,class:c.className,"force-default-style":c.forceDefaultStyle},_.B(_.J9,{text:c.data,ariaLabel:c.ariaLabel,ellipsisTruncate:c.ellipsisTruncate,isOverlay:c.isOverlay,linkInheritColor:c.linkInheritColor,noPreWrap:c.noPreWrap,noWrap:c.noWrap,userInput:c.userInput,noEndpoints:c.noEndpoints,headerRuns:c.headerRuns}))},"g");
_.F("web_wiz_attributed_string")&&_.g_(dX_,"yt-attributed-string",{props:{ariaHidden:_.oM,ariaLabel:_.oM,className:_.oM,ellipsisTruncate:_.oM,isOverlay:_.oM,linkInheritColor:_.oM,noEndpoints:_.oM,noStyleRuns:_.oM,noLinkColor:_.oM,noPreWrap:_.oM,noWrap:_.oM,skipOnClick:_.oM,userInput:_.oM,headerRuns:_.oM,id:_.oM,data:_.oM,hidden:_.oM,forceDefaultStyle:_.oM,text:_.Cs,stopPropagation:_.Cs,disableUpgrade:_.Cs,disable:_.Cs,slot:_.Cs}});var G7=function(){return _.z.apply(this,arguments)||this};
_.K(G7,_.z);G7.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},wMh(this.data,this.config))};
_.y([_.Q(sP_),_.D("design:type",Object)],G7.prototype,"ytIdomTemplatingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],G7.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],G7.prototype,"ariaLabel",void 0);_.y([_.L(),_.D("design:type",Boolean)],G7.prototype,"disable",void 0);_.y([_.L(),_.D("design:type",Boolean)],G7.prototype,"ellipsisTruncate",void 0);_.y([_.L(),_.D("design:type",Boolean)],G7.prototype,"isOverlay",void 0);
_.y([_.L(),_.D("design:type",Boolean)],G7.prototype,"linkInheritColor",void 0);_.y([_.L(),_.D("design:type",Boolean)],G7.prototype,"noPreWrap",void 0);_.y([_.L(),_.D("design:type",Boolean)],G7.prototype,"noWrap",void 0);_.y([_.L(),_.D("design:type",Boolean)],G7.prototype,"userInput",void 0);_.y([_.L(),_.D("design:type",Boolean)],G7.prototype,"noEndpoints",void 0);_.y([_.L(),_.D("design:type",Array)],G7.prototype,"headerRuns",void 0);
_.y([_.vj({is:"yt-attributed-string",disableElementRegistration:!0})],G7);
_.F("web_wiz_attributed_string")||_.h(G7,"yt-attributed-string",function(){if(vF_===void 0){var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
c.content.insertBefore(unu().content.cloneNode(!0),c.content.firstChild);vF_=c}c=vF_;return c},{mode:2});var jD_,qFH,MNN;jD_=function(){this.firstThumbnailLoaded=!1};
_.ZMF=function(){qFH||(qFH=new jD_);return qFH};
MNN=function(c){var f=_.ZMF();f.firstThumbnailLoaded||(f.firstThumbnailLoaded=!0,_.V_("ftl",c))};
jD_.prototype.reset=function(){this.firstThumbnailLoaded=!1};var fYk=0,ZJN=new WeakMap,jqN=0,lS=new Set;var MxT,rZy=function(){return MxT!==void 0?MxT:MxT=document.createElement("template")};
document.head.appendChild(rZy().content);var C3o;var kjG,lYk,cx;_.iS=_.dz.caches;cx=function(){};
cx.prototype.open=function(c){return _.iS.open(ga_(c))};
cx.prototype.has=function(c){return _.iS.has(ga_(c))};
cx.prototype.delete=function(c){return _.iS.delete(ga_(c))};
cx.prototype.match=function(c,f){var d=this,q,Z,M,g,O,l;return _.k(function(m){switch(m.nextAddress){case 1:return m.yield(d.keys(),2);case 2:q=m.yieldResult,Z=_.C(q),M=Z.next();case 3:if(M.done){m.jumpTo(5);break}g=M.value;return m.yield(d.open(g),6);case 6:return O=m.yieldResult,m.yield(O.match(c,f),7);case 7:if(l=m.yieldResult)return m.return(l);M=Z.next();m.jumpTo(3);break;case 5:return m.return()}})};
var sqM=function(){};
_.K(sqM,cx);var ga_=function(c){if(c.includes(":"))throw Error("mh`"+c);return c+":"+_.t4("CacheStorage get")};
sqM.prototype.keys=function(){var c,f,d,q,Z,M,g,O,l;return _.k(function(m){if(m.nextAddress==1)return c=[],f=_.t4("CacheStorage keys"),m.yield(_.iS.keys(),2);d=m.yieldResult;q=_.C(d);for(Z=q.next();!Z.done;Z=q.next())M=Z.value,g=_.gj4(M),O=g.originalName,l=g.datasyncId,l===f&&c.push(O);return m.return(c)})};var fy=function(){var c=_.z.apply(this,arguments)||this;c.objectURL=null;c.loadTime=Infinity;return c};
_.K(fy,_.z);_.r=fy.prototype;_.r.renderIdom=function(){CQk(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&JJ4(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.r.objectFitToContentMode=function(c){switch(c){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.r.logThumbnailFailureVe=function(){var c=_.m_(197497);_.B_(_.bP(),c);var f=_.X2();f&&c&&f&&_.Ic(f,[c])};
_.r.loadImageFromCacheIfExists=function(c){var f=this,d=c.target;(d==null?0:d.src)&&iJk(d.src).then(function(q){f.objectURL=_.vU(q).toString();f.setSrc(d,f.objectURL)}).catch(function(){})};
_.r.onError=function(c){var f=this;if(_.F("web_use_cache_for_image_fallback")){var d=c.target;d&&iJk(d.src).then(function(q){f.objectURL=_.vU(q).toString();f.setSrc(d,f.objectURL)}).catch(function(){_.F("kevlar_woffle_log_thumbnail_failure_ve")&&f.logThumbnailFailureVe();
_.F("kevlar_woffle_fallback_image")&&f.setSrc(d,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.r.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.r.setConfig=function(){var c=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(f){c.loadImageFromCacheIfExists(f);c.revokeObjectURL();rzC(c.hostElement)},
onerror:function(f){c.onError(f)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.F("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.r.setSrc=function(c,f){f&&(c.src=f)};
_.y([_.Q(sP_),_.D("design:type",Object)],fy.prototype,"ytIdomTemplatingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fy.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],fy.prototype,"alt",void 0);_.y([_.L(),_.D("design:type",Boolean)],fy.prototype,"ftlEligible",void 0);_.y([_.L(),_.D("design:type",Number)],fy.prototype,"height",void 0);_.y([_.L(),_.D("design:type",Boolean)],fy.prototype,"notifyOnLoaded",void 0);
_.y([_.L(),_.D("design:type",Boolean)],fy.prototype,"notifyOnUnloaded",void 0);_.y([_.L(),_.D("design:type",String)],fy.prototype,"objectFit",void 0);_.y([_.L(),_.D("design:type",String)],fy.prototype,"objectPosition",void 0);_.y([_.L(),_.D("design:type",String)],fy.prototype,"preferredThumbnail",void 0);_.y([_.L(),_.D("design:type",Boolean)],fy.prototype,"preserveHeight",void 0);_.y([_.L(),_.D("design:type",Boolean)],fy.prototype,"preserveWidth",void 0);
_.y([_.L({value:!0}),_.D("design:type",Boolean)],fy.prototype,"useWidth",void 0);_.y([_.L({value:function(){return!_.wi("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.D("design:type",Boolean)],fy.prototype,"shouldRenderLazy",void 0);_.y([_.L(),_.D("design:type",Number)],fy.prototype,"width",void 0);_.y([_.vj({is:"yt-image",disableElementRegistration:!0})],fy);
_.h(fy,"yt-image",function(){if(C3o===void 0){var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);c.content.insertBefore(rZy().content.cloneNode(!0),c.content.firstChild);
C3o=c}c=C3o;return c},{mode:2});var dT=function(){return _.z.apply(this,arguments)||this};
_.K(dT,_.z);dT.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var c=_.D9(this.data.onVisibleCommand);c&&this.ytComponentBehavior.resolveCommand(c)}};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],dT.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.RM.YtVisibilityBehavior),_.D("design:type",Object)],dT.prototype,"ytVisibilityBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dT.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],dT);
_.h(dT,"yt-bumper-user-edu-content-view-model",function(){if(kpH===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;gFO===void 0&&(gFO=document.createElement("template"));var q=gFO;d.call(f,q.content.cloneNode(!0),c.content.firstChild);kpH=c}c=kpH;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var kw3;var OMF,lFF=function(){if(OMF!==void 0)return OMF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;kw3===void 0&&(kw3=document.createElement("template"));var q=kw3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return OMF=c};var sD3;_.jI={};sD3=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"]);_.jI.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var c=this.getContext_();return c?c.getTaskManager():_.a7},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var c=_.CZ(this.hostElement,"yt-get-context-provider",{});c.detail&&c.detail.contextProvider?this.cachedProviderNode_=c.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return sD3.has(this.hostElement.localName)},
getNetworkManager:function(){var c=this.getContext_();if(c)return c.getNetworkManager()}};var Fsk,BHy,THO,iMr;_.qj=function(c){var f=BHy.get(c);if(f&&(f=f.pop()))return iMr++,f;THO++;try{var d=document.createElement(c)}catch(q){throw new _.KD("ElementPool failed to create element",c,q.message);}return d};
Fsk=function(c){var f=c.is;if(f){var d=BHy.get(f);d||(d=[],BHy.set(f,d));var q=_.hk("ELEMENT_POOL_CONFIG")||{};d.length>=(q[f]!==void 0?q[f]:_.hk("ELEMENT_POOL_DEFAULT_CAP",0))||d.push(c)}else _.u6(new _.KD("Element pool should only handle custom elements:",c.nodeName))};
BHy=new Map;THO=0;iMr=0;var T3=new WeakMap,Yvr=new WeakMap;var HMj;_.Z$=function(c,f,d){d=d===void 0?_.zd():d;this.JSC$13683_defaultPriority=c;this.signal=f;this.scheduler=d;this.nextJobDescriptor=0;this.JSC$13683_parkedJobs=[];this.scheduledJobs=new Map};
_.Mj=function(c,f){if(f){var d=_.eY();c.signal&&!_.NI(d,c.signal)?(d.addListener(c.signal,function(){c.processSignal()}),c.JSC$13683_parkedJobs.push({job:f,
priority:void 0})):mXv(c,f)}};
HMj=function(c,f){if(f!==c.JSC$13683_defaultPriority){c.JSC$13683_defaultPriority=f;for(var d=_.C(c.scheduledJobs.values()),q=d.next();!q.done;q=d.next())q=q.value,c.scheduler.cancelJob(q.jobId),q.jobId=c.scheduler.addJob(q.jobWrapper,f)}};
_.Z$.prototype.flushJobs=function(){HMj(this,10);this.processSignal()};
_.Z$.prototype.cancel=function(){for(var c=_.C(this.scheduledJobs),f=c.next();!f.done;f=c.next()){var d=_.C(f.value);f=d.next().value;d=d.next().value;this.scheduler.cancelJob(d.jobId);this.scheduledJobs.delete(f)}this.JSC$13683_parkedJobs=[]};
_.Z$.prototype.processSignal=function(){for(var c=_.C(this.JSC$13683_parkedJobs),f=c.next();!f.done;f=c.next())f=f.value,mXv(this,f.job,f.priority);this.JSC$13683_parkedJobs=[]};
var mXv=function(c,f,d){d=d||c.JSC$13683_defaultPriority;if(d===10)sV(f);else{var q=c.nextJobDescriptor++,Z=function(){f();c.scheduledJobs.delete(q)},M=c.scheduler.addJob(Z,d);
c.scheduledJobs.set(q,{jobWrapper:Z,jobId:M,priority:d})}};_.ZB(EjN);var nj4={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};T2z({beforeVisit:function(c){if(gN.has(c.type)){var f;(f=c.props).idomKey!=null||(f.idomKey=c.type)}else c.type.TAG_NAME&&(rN=c.type.TAG_NAME)},
afterRender:function(c,f){var d;rN=(d=f==null?void 0:f.type)!=null?d:""},
didPatch:function(){rN=""}});var AZH;_.rT={};AZH={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.rT.YtRendererstamperBehavior=[_.jI.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 c in this.stampDom){var f=this.stampDom[c];f&&f.id&&this.addReactiveSchema({type:"observe",method:{methodName:m4N(f.id),args:[{type:"wildcard",path:c}]}})}else{(c=(this.constructor.generatedFrom||this).observers)||(c=[]);for(f in this.stampDom){var d=this.stampDom[f];d&&d.id&&c.push(m4N(d.id)+"("+f+".*)")}this.constructor.generatedFrom.observers=c}},
addStampDomObserverFns_:function(){for(var c in this.stampDom){var f=this.stampDom[c];f.id?(this[m4N(f.id)]=this.rendererStamperObserver_.bind(this,c,f.id),this.hasDataPath_[c]=!1):(f=new _.KD("Bad rendererstamper config",this.is+":"+c),_.VO(f))}},
rendererStamperObserver_:function(c,f,d){if(d.path==c){if(d.value===void 0&&!this.hasDataPath_[c])return;this.hasDataPath_[c]=d.value!==void 0}this.rendererStamperApplyChangeRecord_(c,f,d)},
rendererStamperApplyChangeRecord_:function(c,f,d){var q=this.renderJobsMap_[f],Z=null;c==d.path?(d=d.value,_.WN(d)||(d=d===void 0||d===null?[]:[d]),c=this.stampDom[c],c.mapping&&(Z=this.stampDomArray_.bind(this,d,f,c.mapping,c.reuseComponents,c.events,c.stamperStableList)),q&&q.cancel(),d=c.usePageScheduler?this.getTaskManager():void 0,q||c.initialRenderPriority==void 0)?c.renderPriority==void 0||q||(q=new _.Z$(c.renderPriority,c.waitForSignal,d),this.renderJobsMap_[f]=q):(q=new _.Z$(c.initialRenderPriority,
c.waitForSignal,d),this.renderJobsMap_[f]=q,Z=function(M,g){M();HMj(g,10)}.bind(this,Z,q)):Z=c+".splices"==d.path?this.stampDomArraySplices_.bind(this,c,f,d.value):this.forwardRendererStamperChanges_.bind(this,c,f,d);
q?_.Mj(q,Z):Z()},
forwardRendererStamperChanges_:function(c,f,d){var q=d.path.slice(c.length+1),Z=this.getStampContainer_(f),M=q.indexOf("."),g=q.substring(0,M),O=!1,l=0,m=parseInt(g,0);if(g[0]=="#"){O=parseInt(g.substring(1),0);m=this.get(c);var H=this.get([c,g]);m[O]==H?l=O:l=m.indexOf(H);O=!0}else isNaN(m)||(l=m,O=!0);O&&(q=q.substring(g.length+1),M=q.indexOf("."));g=_.$n(Z).children[l];var A;if(Z=(A=g==null?void 0:g.polymerController)!=null?A:g)q="data"+q.slice(M),typeof Z.notifyPath!=="function"?_.u6(new _.KD("notifyPath missing",
this.is+": "+c+", "+f)):d.value?Z.notifyPath(q,d.value):Z.notifyPath(q)},
stampDomArraySplices_:function(c,f,d){if(d&&d.indexSplices){var q=this.getStampContainer_(f);if(q){for(var Z=_.$n(q),M=Azh(this.stampDom[c].reuseComponents),g=d.indexSplices.length,O=0;O<g;O++){for(var l=d.indexSplices[O],m=Z.children[l.index],H=l.removed.length;H>0;H--)m&&m.parentElement&&(_.$n(m.parentElement).removeChild(m),M&&Fsk(m),m=Z.children[l.index]);H=this.stampDom[c].mapping;for(var A=l.index+l.addedCount,Y=document.createDocumentFragment(),t=M,E=l.index;E<A;E++){var J=l.object[E],X=TVk(H,
J);if(X){var u=H[X];J=J[X];X=this.getComponentName_(u,J);var W=m?T3.has(m):!1;t&&m&&m.is==X&&W?(X=m,this.telemetry_.reuse++,m=m.nextElementSibling):t&&m&&W?(X=this.createComponent_(u,J,M),W=_.$n(m).nextElementSibling,Z.insertBefore(X,W),bJn(this.is,Z,m,M),m=W):(t=!1,X=this.createComponent_(u,J,M),Y.appendChild(X));this.deferRenderStamperBinding_(X,u,J)}else u=new _.KD("Unimplemented type",c,f,q.tagName,Object.keys(J)[0]),_.VO(u)}Z.insertBefore(Y,m)}this.flushRenderStamperComponentBindings_();this.stampDom[c].events&&
_.CZ(this.hostElement,"yt-rendererstamper-finished",{container:q})}else c=new _.KD("Container object not found",f,this.hostElement?this.hostElement.is:""),_.VO(c)}},
stampDomArray_:function(c,f,d,q,Z,M){var g=this.getStampContainer_(f);if(g)if(f=_.$n(g),q=Azh(q),c){var O=0,l=0,m;if(M=M===void 0?_.wi("STAMPER_STABLE_LIST",!1):M||!1)for(m=f.firstElementChild;m&&!T3.has(m)&&c.length>l;){M=c[l];var H=TVk(d,M);if(H){if(this.getComponentName_(d[H],M[H])!=m.is){var A=this.createComponent_(d[H],M[H],q),Y=_.$n(m).nextElementSibling;Y?f.insertBefore(A,Y):f.appendChild(A);bJn(this.is,f,m,q);m=A}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(m,d[H],M[H]);O++;
l++;m=_.$n(m).nextElementSibling}else l++}KsY(this.is,f,O,q);O=m;if(c.length>l){M=document.createDocumentFragment();for(H=c.length;l<H;l++)if(A=c[l],Y=TVk(d,A))m=this.createComponent_(d[Y],A[Y],q),this.deferRenderStamperBinding_(m,d[Y],A[Y]),M.appendChild(m);O&&_.$n(O).parentNode&&m&&!T3.has(m)?f.insertBefore(M,O):f.appendChild(M)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Z&&_.CZ(this.hostElement,"yt-rendererstamper-finished",{container:g})}else KsY(this.is,f,0,
q);else c=new _.KD("Container object not found",f,this.hostElement?this.hostElement.is:""),_.VO(c)},
getStampContainer_:function(c){return this.$&&this.$[c]||_.r1(this.hostElement).querySelector("#"+c)},
getComponentName_:function(c,f){return typeof c==="string"?c:c.matcher?c.matcher.call(this,f):c.component},
createComponent_:function(c,f,d){c=this.getComponentName_(c,f);try{var q=kp.has(c)||gN.has(c);if(d&&!q){var Z=_.qj(c);try{_.la(Z)}catch(M){d="Failed to clear styles for "+c+".",M.message&&(d+=" Original error: "+M.message),_.u6(new _.KD(d))}}else Z=document.createElement(c)}catch(M){return Z="YtRendererStamperBehavior failed to create "+c+".",M.message&&(Z+=" Original description: "+M.message),M.message="YtRendererStamperBehavior failed to create element",_.wK(M,Z),AZH.hasOwnProperty(c)?_.u6(M):_.VO(M),
document.createElement("SPAN")}this.telemetry_.create++;return Z},
deferRenderStamperBinding_:function(c,f,d){this.deferredBindingTasks_.push({component:c,typeOrConfig:f,data:d})},
flushRenderStamperComponentBindings_:function(){for(var c=0,f=this.deferredBindingTasks_.length;c<f;c++){var d=this.deferredBindingTasks_[c];if(!d)break;var q=void 0,Z=void 0,M=void 0,g=void 0,O=d.component,l=d.typeOrConfig;d=d.data;var m=(g=O.polymerController)!=null?g:O;g=O.loggingStatus;try{g&&(g.isRendererStamper=!0);if(typeof l!=="string"){for(M in l.attributes)l.attributes[M]===!0?O.setAttribute(M,""):l.attributes[M]===!1?O.removeAttribute(M):O.setAttribute(M,l.attributes[M]);for(Z in l.params)m[Z]=
l.params[Z],O!==m&&n$(O.localName,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(q in l.properties){var H=l.properties[q];if(H){var A=HJN(H);m[q]=this.get(A);O!==m&&n$(O.localName,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(q==="on-tap"||q==="on-click"){var Y=this.get(A);O.addEventListener("click",Y);Yvr.set(O,{property:q,listener:{type:"element",eventName:"click",handler:Y}})}}else{var t=new _.KD("Undefined property binding",q);_.VO(t)}}}if(l.classListBinding){var E=HJN(l.classListBinding),
J=E?this[E]:null;if(J)for(q=0;q<J.length;q++)_.g1(O,J[q],!0)}m.data=d}finally{g&&(g.isRendererStamper=!1)}if(q=T3.get(O))O.hidden=!1,T3.delete(O),_.a7.cancelJob(q)}this.deferredBindingTasks_.length=0}}];_.Cy={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(c){for(var f=_.Pw.getInstance(),d=_.C(Object.keys(c)),q=d.next();!q.done;q=d.next()){var Z=q.value;q=c[Z];if(this&&this[q]){var M=f.actionRoutingMap.get(Z);M||(M=new Map,f.actionRoutingMap.set(Z,M));f.registerActionHandler(this,Z,this[q].bind(this),M)}else Z=Error("hd"),Z.params=q,_.yJ(Z)}},
unregisterActionMap:function(c){_.Um(_.Pw.getInstance(),c,this)}}]};var Ap=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 Hr;var YZ=new Map;var wG4=window.matchMedia("(forced-colors: active)").matches;var YFu;var Fzo;var txF=new _.jk("LOTTIE_LOADER_TOKEN");_.gT=_.dN(function(c){var f=c.data;var d=c.className;var q=c.animationName;var Z=c.animationRef;var M=c.elRefForInterop;var g=_.ob("lottie-component"),O;_.Q4(function(){var m;return void((m=O)==null?void 0:m.destroy())});
var l;_.$k(function(){var m=_.LL(q);if(m!==l){l=m;var H=Object.assign({},{animationName:m,animationRef:_.LL(Z)},_.LL(f));try{_.ql().resolve(txF)().then(function(t){var E;(E=O)==null||E.destroy();var J,X;E=(X=M==null?void 0:(J=M())==null?void 0:J.value)!=null?X:g.value;J=H.animationRef;X=H.listeners;t=t.loadAnimation(Object.assign({},{container:E},H.animationConfig));J&&(J.lottieEl=t);if(X)for(E=_.C(Object.entries(X)),J=E.next();!J.done;J=E.next())X=_.C(J.value),J=X.next().value,(X=X.next().value)&&
t.addEventListener(J,X);O=t})}catch(t){m=t;
var A="LottieComponent error.";m.message&&(A+=" Original description: "+m.message);_.wK(m,A);_.u6(m);var Y;((Y=H.listeners)==null?0:Y.error)&&H.listeners.error(m)}}},"lbhvPc");
return _.B(vnG,{cond:function(){return!(M==null?0:M())},
then:function(){return _.B("lottie-component",{class:_.FY("ytLottieComponentHost",d),el:g})}})},"h");_.g_(_.dN(function(c){return _.B("ytd-lottie-player",{id:c.id,hidden:c.hidden,class:c.className,"aria-label":c.ariaLabel,style:"display: block;"},_.B(_.gT,{data:c.data,animationName:function(){var f;return((f=c.data().animationConfig)==null?void 0:f.name)||""},
animationRef:function(){return c.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.oM,
id:_.oM,hidden:_.oM,className:_.oM,ariaLabel:_.oM}});var kd=function(){var c=_.z.apply(this,arguments)||this;c.animationRef={};c.delhiIconsEnabled=_.F("enable_web_delhi_icons");return c};
_.K(kd,_.z);_.r=kd.prototype;
_.r.handlePropertyChange=function(){var c=this.animatedIcon,f=this.active,d=this.isDarkTheme;if(c){var q=this.previousActive!==f;this.previousActive=f;this.animationRef.lottieEl?q&&this.toggleAnimation(f,c.totalFrames):f?this.initializeAnimationAsToggled(c.lottiePlayerProps,c.totalFrames):this.initializeAnimationAsUntoggled(c.lottiePlayerProps);c.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=c.type;this.lottiePlayerProps=this.computeLottiePlayerProps(c,d)}};
_.r.computeLottiePlayerProps=function(c,f){var d=this.deepCloneLottiePlayerProps(c);f?(f=c.nameDarkTheme,c=c.pathDarkTheme):(f=c.name,c=c.path);d.animationConfig.name=f;(f=YZ.get(c))?d.animationConfig.animationData=f:d.animationConfig.path=c;return d};
_.r.initializeAnimationAsToggled=function(c,f){c.animationConfig.initialSegment=[f-1,f]};
_.r.initializeAnimationAsUntoggled=function(c){c.animationConfig.initialSegment=void 0};
_.r.toggleAnimation=function(c,f){if(c){var d;(d=this.animationRef.lottieEl)==null||d.playSegments([0,f],!0)}else{var q;(q=this.animationRef.lottieEl)==null||q.playSegments([0,1],!0)}};
_.r.deepCloneLottiePlayerProps=function(c){var f=Object.assign({},c.lottiePlayerProps.animationConfig);c=Object.assign({},c.lottiePlayerProps);c.animationConfig=f;return c};
kd.prototype.handlePropertyChange=kd.prototype.handlePropertyChange;_.y([_.L(),_.D("design:type",Object)],kd.prototype,"animatedIcon",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],kd.prototype,"active",void 0);_.y([_.L(),_.D("design:type",Boolean)],kd.prototype,"isDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],kd.prototype,"animatedIconType",void 0);_.y([_.L(),_.D("design:type",Boolean)],kd.prototype,"previousActive",void 0);
_.y([_.L(),_.D("design:type",Object)],kd.prototype,"lottiePlayerProps",void 0);_.y([_.L(),_.D("design:type",Object)],kd.prototype,"animationRef",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kd.prototype,"delhiIconsEnabled",void 0);_.y([_.m5("animatedIcon","active","isDarkTheme"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kd.prototype,"handlePropertyChange",null);_.y([_.vj({is:"yt-animated-icon",disableElementRegistration:!0})],kd);
_.h(kd,"yt-animated-icon",function(){if(Fzo===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;YFu===void 0&&(YFu=document.createElement("template"));var q=YFu;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Fzo=c}c=Fzo;return c},{mode:2});var bMo;var KzK;var IYP=_.dN(function(c){var f=_.ob("span"),d=z4(function(){return{value:null}});
_.Q4(function(){var Z;(Z=d.value)==null||Z.cancel()});
var q=_.TZ(c.data,{equals:function(Z,M){return Z.iconName===M.iconName&&Z.iconStyle===M.iconStyle&&Z.iconSize===M.iconSize&&Z.iconSetName===M.iconSetName&&Z.iconSelected===M.iconSelected}},"aoiXAb");
_.$k(function(){var Z,M=(Z=c.options)==null?void 0:Z.call(c);NV4(f,d,q(),M)},"QXgxJd");
return _.B("span",{class:"yt-icon-shape",el:f})},"j");
IYP.idomCompat=!0;var szh=["youtube_fill","youtube_outline"];var Eaj=new _.Sg({type:"iconset",value:void 0}),Oa=function(){var c=_.z.apply(this,arguments)||this;c.isDarkTheme=document.documentElement.hasAttribute("dark");c.iconName="";c.iconsetName="yt-icons";c.iconset=null;c.missingIconSet=!1;c.iconType=null;c.iconShapeDataSignal=_.OT(void 0,void 0,"RQ9kUb");c.renderingOptionsSignal=_.OT({iconWidth:"100%",iconHeight:"100%",iconFilter:c.iconFilter},void 0,"qtx8Ef");c.wizHasRendered=!1;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(Oa,_.z);Oa.prototype.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&(this.isDarkTheme=c)};
Oa.prototype.handlePropertyChange=function(){var c=this,f,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u;return _.k(function(W){switch(W.nextAddress){case 1:if(f=!c.icon&&!c.iconName||!c.isAttached)return W.return();d=c;q=d.icon;Z=d.size;M=d.defaultToFilled;g=d.active;O=d.targetContainer;c.toggleContainerClass(O);_.F("kevlar_use_wil_icons")&&q&&(l=EFY(q),c.iconType=l.length?l[1]:null);if(q){W.jumpTo(2);break}c.iconsetName="";c.iconName="";return W.yield(c.renderIcon(O,q),3);case 3:return W.return();case 2:m=naF(q);
H=EFY(m);H.length&&(c.iconsetName=H[0],c.iconName=H[1]);if(!_.F("kevlar_use_wil_icons")){W.jumpTo(4);break}A=Oa;Y=$XO;t=c.iconType;E=c.active;J=c.defaultToFilled;X=c.size;u=c.iconsetName;return W.yield(QDT(),6);case 6:return W.yield(Y.call(A,t,E,J,X,u,W.yieldResult),5);case 5:c.iconShapeData=W.yieldResult;case 4:if(c.shouldRenderIconShape(O)){W.jumpTo(7);break}return W.yield(c.determineIconSet(m,g,M,Z,O),7);case 7:return W.yield(c.renderIcon(O,q),0)}})};
Oa.prototype.toggleContainerClass=function(c){c?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var naF=function(c){return!_.F("default_to_innertube_icon")||c.indexOf(":")>0?c:_.Tu(c)};
_.r=Oa.prototype;_.r.determineIconSet=function(c,f,d,q){var Z=this;return _.k(function(M){return M.nextAddress==1?_.F("kevlar_system_icons")||_.hk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.hk("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?M.yield(Z.switchToYtSysIconset(c,f,d,q),3):M.jumpTo(2):M.nextAddress!=2?M.return():M.yield(Z.useYtSysIconsetForMissingIcons(c,f,d,q),0)})};
_.r.switchToYtSysIconset=function(c,f,d,q){var Z=this,M,g,O,l,m,H,A;return _.k(function(Y){switch(Y.nextAddress){case 1:if(!c||Z.iconsetName!=="yt-icons"&&Z.iconsetName!=="yt-sys-icons"){Y.jumpTo(0);break}M=EFY(c);g=M[1];g=_.Xnk(g);_.F("enable_polymer_icons_replace_underscores_dash")&&g.includes("_filled")&&(g=g.replace(/_filled/g,"-filled"));return Y.yield(iP(g,!0),3);case 3:return O=Y.yieldResult,Y.yield(iP(g,!1),4);case 4:if((l=Y.yieldResult)||f&&O)Z.iconsetName="yt-sys-icons";Z.iconName=Z.getIconName(g,
f,d,l,O);if(q===24){Y.jumpTo(0);break}m="yt-sys-icons"+q+":"+Z.iconName;return Y.yield(iP(m,!1,!0),6);case 6:return H=Y.yieldResult,Y.yield(iP(m,!0,!0),7);case 7:A=Y.yieldResult;Z.iconName=Z.getIconName(g,f,d,H,A);if(!f&&H||f&&A)Z.iconsetName="yt-sys-icons"+q;_.Fm(Y)}})};
_.r.getIconName=function(c,f,d,q,Z){c.includes("-filled")&&(c=c.replace("-filled",""));return Z&&(f||d)?c+"-filled":c};
_.r.useYtSysIconsetForMissingIcons=function(c,f,d,q){var Z=this,M,g;return _.k(function(O){if(O.nextAddress==1)return Z.iconsetName!=="yt-icons"?O.jumpTo(0):O.yield(iP(Z.iconName,!1,!1,!0),3);if(O.nextAddress!=4)return M=O.yieldResult,O.yield(iP(Z.iconName,!1),4);g=O.yieldResult;if(M||!g)return O.jumpTo(0);Z.iconsetName="yt-sys-icons";return O.yield(Z.switchToYtSysIconset(c,f,d,q),0)})};
_.r.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var QDT=function(){return _.k(function(c){try{return c.return(_.ql().resolve(_.mt))}catch(f){return c.return(new Promise(function(d){_.eY().parkOrScheduleJob(function(){d(_.ql().resolve(_.mt))},2,"ci")}))}})},$XO=function(c,f,d,q,Z,M){q=q===void 0?24:q;
if(c){c=c.toLowerCase();var g=c.endsWith("_filled")||c.endsWith("-filled");f={iconName:c,iconStyle:(f===void 0?0:f)||(d===void 0?0:d)||g?"youtube_fill":"youtube_outline",iconSize:q,iconSetName:Z===void 0?"yt-icons":Z};d=!!M.resolveIcon(f);d||(f.iconSize=void 0,d=!!M.resolveIcon(f));!d&&g&&(f.iconName=c.substring(0,c.length-7),f.iconSize=q,d=!!M.resolveIcon(f),d||(f.iconSize=void 0,d=!!M.resolveIcon(f)));d||(f.iconStyle=void 0,d=!!M.resolveIcon(f));d||_.u6(new _.KD("Icon not supported",{iconName:f.iconName,
iconStyle:f.iconStyle,iconSize:f.iconSize,iconType:c}));return d?f:void 0}};
_.r=Oa.prototype;_.r.shouldRenderIconShape=function(c){if(!_.F("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;c=this.getContainer(c);return!yzY(c,this.icon)};
_.r.renderIcon=function(c,f){var d=this,q,Z,M,g,O,l,m,H;return _.k(function(A){switch(A.nextAddress){case 1:if(f&&d.icon!==f)return A.return();q=d.getContainer(c);Z=yzY(q,d.icon);if(d.shouldRenderIconShape(c)&&d.iconType)return d.applyIconShape(Z,q),A.return();d.removeIconShape();if(!q)return A.return();d.iconName===""&&d.iconset&&q&&(d.removeStaticIcon(d.iconset,q),Z&&d.removeAnimatedIcon(q));if(d.iconName===""&&d.iconset||!d.iconsetName||!Eaj)return A.return();d.iconset=Eaj.byKey(d.iconsetName);
if(!d.iconset)return d.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.ia(d,d.onIconsetAdded)),A.return();d.missingIconSet&&(d.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.ia(d,d.onIconsetAdded)));g=(M=Z||d.isAnimatedIcon?vjC(d.icon):void 0)&&!M.lazyLoad;l=M&&((O=M)==null?void 0:O.lazyLoad)&&(M.lottiePlayerProps.animationConfig.animationData?!0:YZ.get(d.isDarkTheme?M.pathDarkTheme:M.path)?!0:!1);if(g||l)return d.applyAnimatedIcon(q,M,d.iconset),A.return();if(l||
(m=M)==null||!m.lazyLoad){A.jumpTo(2);break}H=D4P(M,d.isDarkTheme);d.applyStaticIcon(d.iconset,q,d.iconName,c,Z);return A.yield(H,3);case 3:return A.yield(d.renderIcon(d.targetContainer,d.icon),4);case 4:return A.return();case 2:d.applyStaticIcon(d.iconset,q,d.iconName,c,Z),_.Fm(A)}})};
_.r.getContainer=function(c){var f,d=(f=Pcz(this.hostElement))==null?void 0:f.host;f=!!d&&!!d.polymerController;if(!c||f)return c?this.getTargetContainer(c,d):this.hostElement};
_.r.getTargetContainer=function(c,f){var d=_.r1(f).querySelector("#"+c);d||(c=new _.KD("yt-icon container missing",f.is,c),_.VO(c));return d};
_.r.applyStaticIcon=function(c,f,d,q,Z){Z&&this.removeAnimatedIcon(f);this.removeIconShape();Z=Z&&!!this.iconType&&!!this.iconShapeData&&_.F("kevlar_use_wil_icons");try{Z?this.applyIconShape(!1,f):c.applyIcon(f,d)}catch(M){this.handleError(M,q,f)}};
_.r.applyIconShape=function(c,f){this.iconset&&f&&(this.removeStaticIcon(this.iconset,f),c&&this.removeAnimatedIcon(f));c={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var d=_.C(this.iconShapeDataSignal);f=d.next().value;d=d.next().value;var q=_.C(this.renderingOptionsSignal),Z=q.next().value;q=q.next().value;d(this.iconShapeData);q(c);if(!this.wizHasRendered)for(this.wizHasRendered=!0,c=_.C(PQz(f,Z)).next().value;c.firstChild;)_.r1(this.hostElement).appendChild(c.firstChild)};
_.r.removeIconShape=function(){if(_.F("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.r.removeStaticIcon=function(c,f){c.removeIcon(f)};
_.r.applyAnimatedIcon=function(c,f,d){this.removeStaticIcon(d,c);this.removeIconShape();var q;d=this.animatedIconElement&&((q=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:q.type)===f.type;if(this.animatedIconElement&&d){this.animatedIconElement.polymerController.animatedIcon=f;var Z;((Z=this.animatedIconElement)==null?void 0:Z.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(c),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=f,this.animatedIconElement.polymerController.active=this.active,_.F("delhi_modern_web_player_icons")?(f=hnM(c,this.icon)&&c.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=f?f.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.F("kevlar_use_wil_icons")?
c.insertBefore(this.animatedIconElement,c.childNodes[0]):(c=_.r1(c),c.insertBefore(this.animatedIconElement,c.childNodes[0]))};
_.r.removeAnimatedIcon=function(c){_.F("kevlar_use_wil_icons")?this.animatedIconElement&&c.contains(this.animatedIconElement)&&c.removeChild(this.animatedIconElement):(c=_.r1(c),this.animatedIconElement&&c.contains(this.animatedIconElement)&&c.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.r.handleError=function(c,f,d){_.wK(c,this.iconName,f,d);f=yzY(d,this.icon);var q=!1;window.location.href.includes("JpymaW6Lh2w")?q=!0:d._svgIcon&&(d=(d=d._svgIcon.parentNode)?d.tagName:"unknown",_.wK(c,d),d==="YT-ICON"&&c.name==="NotFoundError"?q=!0:c.name==="NotFoundError"&&f&&(q=!0));q?_.u6(c):_.VO(c)};
_.ci.Object.defineProperties(Oa,{template:{configurable:!0,enumerable:!0,get:function(){if(KzK===void 0){var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;
bMo===void 0&&(bMo=document.createElement("template"));var q=bMo;d.call(f,q.content.cloneNode(!0),c.content.firstChild);KzK=c}c=KzK;return c}}});
Oa.prototype.handlePropertyChange=Oa.prototype.handlePropertyChange;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Oa.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",String)],Oa.prototype,"icon",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Oa.prototype,"active",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Oa.prototype,"defaultToFilled",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Oa.prototype,"isAnimatedIcon",void 0);
_.y([_.L({value:24}),_.D("design:type",Number)],Oa.prototype,"size",void 0);_.y([_.L({value:""}),_.D("design:type",String)],Oa.prototype,"targetContainer",void 0);_.y([_.L(),_.D("design:type",Object)],Oa.prototype,"animatedIconElement",void 0);_.y([_.L(),_.D("design:type",Object)],Oa.prototype,"isDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Oa.prototype,"ariaHidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Oa.prototype,"ariaLabel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Oa.prototype,"role",void 0);_.y([_.L(),_.D("design:type",String)],Oa.prototype,"style",void 0);_.y([_.L(),_.D("design:type",String)],Oa.prototype,"iconFilter",void 0);_.y([_.m5("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],Oa.prototype,"handlePropertyChange",null);_.y([_.vj({is:"yt-icon",noInjection:!0})],Oa);var SFO;var LzH=function(){var c=document.body,f=c.appendChild;if(SFO===void 0){var d=document.createElement("template");_.n(d,'\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>');
SFO=d}d=SFO;f.call(c,d.content)};
document.body?LzH():window.addEventListener("DOMContentLoaded",LzH);var zsO,JZo=function(){return zsO!==void 0?zsO:zsO=document.createElement("template")};
document.head.appendChild(JZo().content);var aFv,Vxv=function(){return aFv!==void 0?aFv:aFv=document.createElement("template")};
document.head.appendChild(Vxv().content);var XT_;_.lw=new _.jk("KEY_MANAGER_TOKEN");var ojC={duration:1E3,easing:"ease",fill:"forwards"};_.ZB(x4n);var c0Y={duration:1E3,easing:"ease",fill:"forwards"},hs3=_.dN(function(c){var f=_.xz("animated-rolling-character"),d=void 0,q=function(){var Z,M;return oS((Z=c.character)==null?void 0:Z.call(c))||oS((M=c.previousCharacter)==null?void 0:M.call(c))};
_.$k(function(){if(c.marginMultiplier()){var Z;(Z=d)==null||Z.cancel();if(q()){var M;Z=((M=c.previousCharacter)==null?0:M.call(c))?Number(c.previousCharacter())+10:c.rollUp()?0:30;var g;if((g=c.shouldAnimate)==null||!g.call(c)){var O,l;Z-=Gj4((O=c.character)==null?void 0:O.call(c),(l=c.previousCharacter)==null?void 0:l.call(c),c.rollUp(),Z)}}else{Z=c.rollUp()?0:2;var m;(m=c.shouldAnimate)!=null&&m.call(c)||(M=Z,g=c.rollUp()?-1:1,Z=M-g)}f.value.style.marginTop="-"+Z*c.marginMultiplier()+"px";var H;
if((H=c.shouldAnimate)==null?0:H.call(c)){var A,Y;d=fNl(f.value,(A=c.character)==null?void 0:A.call(c),(Y=c.previousCharacter)==null?void 0:Y.call(c),c.rollUp(),Z,q(),c.marginMultiplier())}else{var t;f.value.style.display=((t=c.character)==null?0:t.call(c))?"":"none"}}},"vt9b9b");
return _.B("animated-rolling-character",{el:f,class:"animated-rolling-character-wiz"},_.B(_.T,{cond:q,then:function(){return _.B(uxK,null)},
else:function(){return _.B(va_,{character:c.character})}}))},"k");
hs3.idomCompat=!0;var dJM=_.F("web_enable_sink_animated_rolling_character_and_number")?hs3:x4n,wTr=_.F("web_enable_sink_animated_rolling_character_and_number")?hs3:_.bS(x4n),uxK=_.dN(function(){for(var c=[],f=1;f<30;f++)c.push(_.B("div",null,f%10));return _.B(_.qD,null,_.B("div",null,"\u00a0"),c,_.B("div",null,"\u00a0"))},"l"),va_=_.dN(function(c){var f=c.character;
return _.B(_.qD,null,_.B("div",null,"\u00a0"),_.B(_.T,{cond:function(){return!(f==null?0:f())||_.gz(f==null?void 0:f())},
then:function(){return _.B("div",null,"\u00a0")},
else:function(){return _.B("div",null,f)}}),_.B("div",null,"\u00a0"))},"m");_.ZB(jde);var yZy=_.dN(function(c){var f=void 0,d=void 0,q=function(){var M;return((M=c.fontSizeMultiplier)==null?0:M.call(c))?c.heightPx()*c.fontSizeMultiplier():c.heightPx()},Z=_.TZ(function(){if(!c.numberText())return[];
var M,g,O=((M=c.forceRollUp)==null?void 0:M.call(c))||!d||!((g=c.numberValue)==null?0:g.call(c))||d<c.numberValue(),l,m=c.numberText();M=q();g=!((l=c.shouldAnimate)==null||!l.call(c));l=[];var H=0,A=0,Y=(f?f.replace(/\D/g,"").length:0)-(m?m.replace(/\D/g,"").length:0),t=f?f.split(/(\d)/).filter(Boolean):[];for(m=m.split(/(\d)/).filter(Boolean);Y<0;){var E=m[A];l.push({character:E,rollUp:O,marginMultiplier:M,shouldAnimate:g});A++;oS(E)&&Y++}for(;H<Y;)E=t[H],l.push({previousCharacter:E,rollUp:O,marginMultiplier:M,
shouldAnimate:g}),H++,oS(E)||Y++;for(;A<m.length;)Y=m[A],E=t[H],oS(Y)===oS(E)?(A++,H++):oS(Y)?(H++,Y=void 0):oS(E)&&(A++,E=void 0),l.push({character:Y,previousCharacter:E,rollUp:O,marginMultiplier:M,shouldAnimate:g});f=c.numberText();var J;d=(J=c.numberValue)==null?void 0:J.call(c);return l},void 0,"B9AmNd");
return _.B("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return c.numberText()?["height: "+q()+"px;","line-height: "+c.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.B(_.bd,{each:Z,keyBy:"INDEX"},function(M){return _.B(wTr,{character:function(){return M().character},
previousCharacter:function(){return M().previousCharacter},
marginMultiplier:function(){return M().marginMultiplier},
rollUp:function(){return M().rollUp},
shouldAnimate:function(){return M().shouldAnimate}})}))},"n");
yZy.idomCompat=!0;_.F7N=_.F("web_enable_sink_animated_rolling_character_and_number")?yZy:jde;_.Wzv=_.F("web_enable_sink_animated_rolling_character_and_number")?yZy:_.bS(jde);var q94={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"};_.Re=_.dN(function(c){var f=_.xz("a",c.ref),d=c.aTagConfig?c.aTagConfig:_.TZ(function(){var q,Z,M,g,O;var l=(O=_.D9((M=c.command)==null?void 0:M.call(c)))!=null?O:(g=c.command)==null?void 0:g.call(c);return _.NV({innertubeCommand:l,skipOnClick:(q=c.skipOnClick)==null?void 0:q.call(c),defaultTarget:(Z=c.target)==null?void 0:Z.call(c)})||{}},void 0,"I5WLmc");
_.$k(function(){f.value._data=d()._data;f.value.params=d().params},"STb8Se");
return _.B("a",{el:f,href:function(){return d().href$},
rel:function(){return d().rel$},
class:function(){var q,Z;return(Z=d().className)!=null?Z:(q=c.className)==null?void 0:q.call(c)},
style:function(){var q;if((q=c.style)==null?0:q.call(c))return c.style();var Z;return((Z=c.disabled)==null?0:Z.call(c))?"pointer-events:none":""},
"aria-haspopup":function(){return!!d()["aria-haspopup$"]},
"force-new-state":EV(function(){return d()["force-new-state$"]}),
title:EV(function(){var q,Z;return(Z=d().title$)!=null?Z:(q=c.title)==null?void 0:q.call(c)}),
role:EV(function(){var q;return((q=c.role)==null?void 0:q.call(c))||d().role$}),
target:EV(function(){return d().target$}),
dir:EV(function(){var q;return((q=c.dir)==null?void 0:q.call(c))||d().dir}),
tabindex:function(){var q;return d().tabindex$?Number(d().tabindex$):(q=c.tabIndex)==null?void 0:q.call(c)},
"aria-hidden":function(){var q,Z;return(Z=d()["aria-hidden$"])!=null?Z:(q=c.ariaHidden)==null?void 0:q.call(c)},
"aria-label":function(){var q,Z;return(Z=d()["aria-label$"])!=null?Z:(q=c.ariaLabel)==null?void 0:q.call(c)},
"aria-current":c.ariaCurrent,"aria-disabled":c.disabled,"aria-labelledby":c.ariaLabelledby,"aria-describedby":c.ariaDescribedby,"aria-selected":c.ariaSelected,"tab-identifier":c.tabIdentifier,"on:pointerdown":_.Ks(function(q){var Z,M;return void((M=(Z=d()).onpointerdown)==null?void 0:M.call(Z,q))}),
"on:click":_.Ks(function(q){var Z,M;(M=(Z=d()).onclick)==null||M.call(Z,q);var g;(g=c.onClick)==null||g.call(c,q)}),
"on:focusin":_.Ks(function(q){var Z;(Z=c.onFocusin)==null||Z.call(c,q)}),
"on:focusout":_.Ks(function(q){var Z;(Z=c.onFocusout)==null||Z.call(c,q)})},c.children)},"o");var DX_=function(c,f){this.fillAnimation=new Animation(CDz(c),document.timeline);this.strokeAnimation=new Animation(gWr(f),document.timeline)};
DX_.prototype.play=function(){var c,f;(f=(c=this.fillAnimation).play)==null||f.call(c);var d,q;(q=(d=this.strokeAnimation).play)==null||q.call(d)};
DX_.prototype.cancel=function(){var c,f;(f=(c=this.fillAnimation).cancel)==null||f.call(c);var d,q;(q=(d=this.strokeAnimation).cancel)==null||q.call(d)};_.z3=_.dN(function(c){var f=c.model;var d=c.pointerDownEvent;var q=c.pointerUpEvent;var Z=c.pointerLeaveEvent;c=_.xz("div");var M=_.$Z({"border-radius":function(){return f().borderRadius}}),g=_.xz("div"),O=_.xz("div"),l=_.C(_.ns(function(){return(q==null?0:q())||(Z==null?0:Z())?!1:!(d==null||!d())||!1})),m=l.next().value,H=l.next().value,A=void 0,Y=function(){!A&&O.value&&g.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(A=new DX_(O.value,g.value));
var W;(W=A)==null||W.play()},t=function(){var W;
(W=A)==null||W.cancel()},E=function(){var W;
(W=A)==null||W.cancel()};
_.$k(function(){(q==null?0:q())&&Y()},"YjVIpd");
_.$k(function(){(d==null?0:d())&&t()},"UrXvqb");
_.$k(function(){(Z==null?0:Z())&&E()},"QK6L8b");
l=_.Ks(function(){Y();H(!1)});
var J=_.Ks(function(){t();H(!0)}),X=_.Ks(function(){E();
H(!1)});
_.Q4(function(){if(A){var W;(W=A)==null||W.cancel();A=void 0}});
var u={};m=_.FY("yt-spec-touch-feedback-shape",function(){return k$Y(f().color)},(u["yt-spec-touch-feedback-shape--focused"]=function(){return!!f().focused&&!f().disabled},u["yt-spec-touch-feedback-shape--circular"]=function(){return!!f().circular},u["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!f().isExtended},u["yt-spec-touch-feedback-shape--down"]=m,u["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!f().triggerEvents},u));
return _.B("yt-touch-feedback-shape",{style:_.$Z({"border-radius":"inherit"})},_.B("div",{el:c,class:m,style:_.$Z({"margin-top":function(){return f().customTopExtend?"-"+f().customTopExtend+"px":void 0}}),
"on:mousedown":J,"on:mouseup":l,"on:pointerleave":X,"on:touchstart":J,"on:touchend":l,"aria-hidden":!0},_.B("div",{class:"yt-spec-touch-feedback-shape__stroke",style:M,el:g}),_.B("div",{class:"yt-spec-touch-feedback-shape__fill",style:M,el:O})))},"p");
_.z3.idomCompat=!0;var esF={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 sa=_.TY();sa=sa.toLowerCase();if(_.OC(sa,"android")){var NHK=sa.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);NHK&&parseFloat(NHK[1])<100||sa.match("("+Object.keys(esF).join("|")+")")};var IF3=_.dN(function(c){return _.B(_.T,{cond:c.aTagConfig,then:function(f){return _.B(_.Re,{aTagConfig:f,disabled:c.disabled,className:c.className,style:c.style,title:c.title,ariaLabel:c.ariaLabel,ariaCurrent:function(){var d,q;return((d=c.toggleable)==null?void 0:d.call(c))&&((q=c.toggled)==null?void 0:q.call(c))},
ref:c.ref},c.children)},
else:function(){return _.B("button",{el:_.Z7(c.ref),"on:click":_.Ks(function(f){var d;return(d=c.onClick)==null?void 0:d.call(c,f)}),
class:c.className,title:c.title,style:c.style,disabled:c.disabled,"aria-pressed":function(){var f,d;return((f=c.toggleable)==null?0:f.call(c))?!((d=c.toggled)==null||!d.call(c)):void 0},
"aria-label":c.ariaLabel,"aria-disabled":c.visiblyDisabled,"aria-hidden":c.ariaHidden,tabindex:c.tabIndex},c.children)}})},"q"),Rsr=_.dN(function(c){var f=c.data;
var d=c.hasIconLeading;var q=c.hasIconLeadingTrailing;var Z=c.hasIconTrailing;var M=c.iconButton;var g=c.iconClassName;var O=c.secondaryIconClassName;var l=c.icon;var m=c.secondaryIcon;var H=c.textContentClassName;return _.B(Bx,{className:"",style:"display: inherit; justify-content: center"},_.B(_.T,{debugInstance:"V4z1Uc",cond:function(){return l&&(d()||q()||(M==null?void 0:M()))},
then:function(){return _.B(Bx,null,_.B("div",{class:g,"aria-hidden":"true"},l==null?void 0:l()))}}),_.B(_.T,{debugInstance:"ok3btb",
cond:function(){return(f().buttonText||f().animatedTextProps||f().formattedButtonText)&&!(M==null?0:M())},
then:function(){return _.B(Bx,null,_.B(P3O,{className:H,iconPosition:function(){return f().iconPosition},
text:function(){return f().buttonText},
oneOffCustomTextWrap:function(){return f().oneOffCustomTextWrap},
formattedButtonText:function(){return f().formattedButtonText},
animatedTextProps:function(){return f().animatedTextProps}}))}}),_.B(_.T,{debugInstance:"DO5Rz",
cond:Z,then:function(){return _.B(Bx,null,_.B("div",{class:g},l==null?void 0:l()))}}),_.B(_.T,{debugInstance:"bnojSc",
cond:q,then:function(){return _.B(Bx,null,_.B("div",{class:O},m==null?void 0:m()))}}),_.B(_.T,{debugInstance:"HN3kad",
cond:function(){return!f().disabled&&!0},
then:function(){return _.B(_.z3,{model:function(){return{color:iPh(f())}}})}}))},"r"),P3O=_.dN(function(c){var f=function(){var d,q;
return((d=c.iconPosition)==null?void 0:d.call(c))==="icon-with-label"||((q=c.oneOffCustomTextWrap)==null?void 0:q.call(c))};
return _.B("div",{class:c.className,"aria-hidden":function(){var d,q,Z;return((d=c.ariaHidden)==null?void 0:d.call(c))&&(!((q=c.animatedTextProps)==null||!q.call(c))||!((Z=c.formattedButtonText)==null||!Z.call(c)))}},_.B(_.n9,null,_.B(_.K9,{when:function(){var d;
return(d=c.animatedTextProps)==null?void 0:d.call(c)}},function(){return _.B(_.Wzv,{numberText:function(){return c.animatedTextProps().numberText},
numberValue:function(){return c.animatedTextProps().numberValue},
heightPx:function(){return c.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return c.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return c.animatedTextProps().shouldAnimate},
forceRollUp:function(){return c.animatedTextProps().forceRollUp}})}),_.B(_.K9,{when:function(){var d;
return(d=c.formattedButtonText)==null?void 0:d.call(c)}},function(){return _.B(_.J9,{text:function(){return Object.assign({},c.formattedButtonText(),{lineBreakMode:f()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":c.formattedButtonText().lineBreakMode,
alignment:f()?"TEXT_ALIGNMENT_CENTER":c.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!f()}})}),_.B(_.K9,{when:function(){var d,q;
return((d=c.iconPosition)==null?void 0:d.call(c))==="icon-with-label"&&((q=c.text)==null?void 0:q.call(c))}},function(){return _.B(_.J9,{text:function(){return{content:c.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.B(_.E6,null,function(){return c.text})))},"s"),UXH=_.dN(function(c){return _.B(_.T,{debugInstance:"kM7Sgc",
cond:c.hasLabel,then:function(){var f;return _.B("label",{class:c.className},c.children,(f=c.textContent)==null?void 0:f.call(c))},
else:function(){return c.children}})},"t"),Bx=_.dN(function(c){return c.children},"u");var gsh=cV("stamper-context");var pTy=_.dN(function(c){var f=_.Z7(),d=_.C(_.OT(void 0,void 0,"Z7xOte")),q=d.next().value,Z=d.next().value;d=_.C(_.OT(void 0,void 0,"ppqp2e"));var M=d.next().value,g=d.next().value;d=_.C(_.OT(0,void 0,"bD1Mhe"));var O=d.next().value,l=d.next().value;d=_.TZ(function(){return O()===3?"ytPopoverComponentClosing":""},void 0,"kVITif");
var m=_.Ks(function(){switch(O()){case 1:l(2);break;case 3:var H,A;(A=(H=f.value).hidePopover)==null||A.call(H);l(0);Z(void 0);g(void 0)}});
_.$k(function(){if(c.show()){var H;Z((H=c.children)==null?void 0:H.call(c));var A;g((A=c.location)==null?void 0:A.call(c));switch(O()){case 0:var Y,t;(t=(Y=f.value).showPopover)==null||t.call(Y);l(1);break;case 3:l(1);var E,J;(J=(E=f.value).hidePopover)==null||J.call(E);var X,u;(u=(X=f.value).showPopover)==null||u.call(X)}}else switch(O()){case 2:l(3);break;case 1:var W,p;(p=(W=f.value).hidePopover)==null||p.call(W);Z(void 0);g(void 0);l(0)}},"umhOQd");
_.L9(function(){});
return _.B("yt-popover",{popover:"manual",el:f,style:_.$Z({left:function(){var H;return(H=M())==null?void 0:H.left},
top:function(){var H;return(H=M())==null?void 0:H.top},
bottom:function(){var H;return(H=M())==null?void 0:H.bottom},
right:function(){var H;return(H=M())==null?void 0:H.right}}),
class:_.FY("ytPopoverComponentHost",d,c.classNames),"on:animationend":m},q)},"v");var xXK={left:"0px",right:"auto",top:"0px",bottom:"auto"},oaj=function(){var c=this;this.registerTooltipElement=function(d){var q;c.tooltipElement=(q=d.querySelector("yt-popover"))!=null?q:void 0};
var f=_.C(_.OT(void 0,void 0,"z4iHWd"));this.state=f.next().value;this.setState=f.next().value;f=_.C(_.OT(void 0,void 0,"uKDcaf"));this.schedulerJobID=f.next().value;this.setSchedulerJobID=f.next().value},Qdh=function(c,f){var d=aT,q=_.a7.addJob(function(){var Z=Gwu(d,c,f);
d.setState({text:f.text,location:Z,anchor:c,offset:f.offset})},4,f.delay);
d.setSchedulerJobID(q)},S9Y=function(){var c=aT,f=c.schedulerJobID();
f&&(_.a7.cancelJob(f),c.setSchedulerJobID(void 0));c.setState(void 0)};
oaj.prototype.notify=function(c,f){var d;((d=this.state())==null?void 0:d.anchor)===c&&(d=Gwu(this,c,f),this.setState({text:f.text,location:d,anchor:c,offset:f.offset}))};
var Gwu=function(c,f,d){var q=f.getBoundingClientRect();f=window.innerWidth;var Z=window.innerHeight,M=d.location,g=d.offset;d=d.text;if(c=c.tooltipElement){var O=getComputedStyle(c);c=O.font;var l=Jp(O.lineHeight),m=Jp(O.paddingLeft),H=Jp(O.paddingRight),A=Jp(O.paddingTop);O=Jp(O.paddingBottom);var Y=document.createElement("canvas").getContext("2d");Y.font=c;d={width:Y.measureText(d).width+m+H,height:l+A+O}}else d=void 0;c=d;if(!c)return xXK;d=c.width;c=c.height;m=g+c;A=g+d;l=q.top>=m;m=Z-q.bottom>=
m;H=q.left>=A;A=f-q.right>=A;O=M;switch(M){case "top":!l&&m&&(O="bottom");break;case "bottom":!m&&l&&(O="top");break;case "left":!H&&A&&(O="right");break;case "right":!A&&H&&(O="left")}switch(O){case "top":M=q.left+q.width/2-d/2;q=q.top-c-g;break;case "bottom":M=q.left+q.width/2-d/2;q=q.bottom+g;break;case "left":M=q.left-d-g;q=q.top+q.height/2-c/2;break;case "right":M=q.right+g;q=q.top+q.height/2-c/2;break;default:M=q.left+q.width/2-d/2,q=q.bottom+g}g=Object.assign({},xXK);M+d>f?(g.right="0px",g.left=
"auto"):(g.left=Math.round(Math.max(0,M)+window.scrollX)+"px",g.right="auto");q+c>Z?(g.bottom="0px",g.top="auto"):(g.top=Math.round(Math.max(0,q)+window.scrollY)+"px",g.bottom="auto");return g};var aT;aT=new oaj;_.cJH=_.dN(function(){var c=_.TZ(function(){var d;return(d=aT.state())==null?void 0:d.text},void 0,"KoaMVc"),f=_.TZ(function(){var d;
return(d=aT.state())==null?void 0:d.location},void 0,"R6s5tc");
return _.B("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Z7(aT.registerTooltipElement),"aria-hidden":"true"},_.B(pTy,{classNames:"ytTooltipContainerContent",location:f,show:function(){return!!c()}},c))},"w");_.iw=_.dN(function(c){var f=c.data;var d=c.icon;var q=c.iconName;var Z=c.secondaryIcon;var M=c.secondaryIconName;var g=c.focusedOverride;var O=c.clientOnlyWizTooltipsEnabled;_.nWl();var l=OPl(f),m=l.size,H=l.style;c=l.disabled;var A=l.onTap,Y=l.alignByText,t=l.aTagConfig,E=l.customColors,J=l.segmentedPosition,X=l.toggled,u=l.toggleable,W=l.accessibilityLabel,p=l.onToggle,N=l.iconPosition,I=l.oneOffCustomTextWrap,R=l.disableTextEllipsis,qN=l.disableBackdropFilter,kl=l.tooltipText,BN=l.ariaHidden,tP=
l.tabIndex,EC=l.buttonText,AP=l.formattedButtonText,eM=l.animatedTextProps,ue=Bwk(f,d,Z,q,M,g),BH=ue.type;d=ue.shouldFocus;q=ue.hasIconLeading;Z=ue.hasIconTrailing;var J3=ue.hasIconLeadingTrailing,lr=ue.hasIconOnly;M=ue.hasIconOnly40;var xl=ue.hasIconWithLabel;g=ue.iconButton;var Tv=ue.visiblyDisabled;l=ue.overrideSmallSizeIcon;var ir=ue.iconToRender;ue=ue.secondaryIconToRender;var $_=_.C(L7P(kl)).next().value,AH={},U3={};return _.B(UXH,{className:_.FY("yt-spec-button-shape-with-label",(AH["yt-spec-button-shape-with-label--is-overlay"]=
function(){return H()==="overlay"||H()==="overlay-dark"},AH)),
hasLabel:xl,textContent:function(){return _.B(P3O,{text:EC,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:I,iconPosition:N,formattedButtonText:AP,animatedTextProps:eM})}},_.B(IF3,{aTagConfig:t,
className:_.FY("yt-spec-button-shape-next",function(){return mJY(BH())},function(){return Tv()?void 0:HPY(H())},function(){return A0n(m())},(U3["yt-spec-button-shape-next--disabled"]=Tv,U3["yt-spec-button-shape-next--focused"]=d,U3["yt-spec-button-shape-next--icon-trailing"]=Z,U3["yt-spec-button-shape-next--icon-leading"]=q,U3["yt-spec-button-shape-next--icon-leading-trailing"]=J3,U3["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return J3()&&!(EC()||AP())},U3["yt-spec-button-shape-next--icon-button"]=
function(){return lr()||xl()},U3["yt-spec-button-shape-next--icon-only-default"]=M,U3["yt-spec-button-shape-next--align-by-text"]=Y,U3["yt-spec-button-shape-next--segmented-start"]=function(){return J()==="start"},U3["yt-spec-button-shape-next--segmented-end"]=function(){return J()==="end"},U3["yt-spec-button-shape-next--override-small-size-icon"]=l,U3["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=I,U3["yt-spec-button-shape-next--disable-text-ellipsis"]=R,U3["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!qN()&&TwN()},U3)),
style:function(){return Y9h(E()).style},
onClick:function(MN){A==null||A(MN);u()&&(p==null||p(MN))},
disabled:c,ariaLabel:W,toggleable:u,toggled:X,title:function(){return(O==null?0:O())||!kl()?"":kl()},
visiblyDisabled:Tv,ariaHidden:BN,tabIndex:tP,ref:function(MN){(O==null?0:O())&&$_(MN)}},_.B(Rsr,{data:f,
hasIconLeading:q,hasIconLeadingTrailing:J3,hasIconTrailing:Z,iconButton:g,icon:ir,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:ue})))},"x");
_.iw.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var fo3=_.dN(function(c){var f=c.data;var d=c.id;var q=c.className;var Z=c.iconName;var M=c.secondaryIconName;c=_.C(_.OT(!1,void 0,"uDRWyd"));var g=c.next().value,O=c.next().value,l=function(){var H=_.ql().resolve(_.dx(_.lw));H&&O(H.isKeyBoardInUse())},m=function(){O(!1)};
c=_.xz("yt-button-shape",function(H){if(_.ql().resolve(_.dx(_.lw)))return H.addEventListener("focusin",l),H.addEventListener("focusout",m),function(){H.removeEventListener("focusin",l);H.removeEventListener("focusout",m)}});
return _.B("yt-button-shape",{el:c,id:d,class:q},_.B(_.T,{cond:f,then:function(){return _.B(_.iw,{data:f,iconName:Z,secondaryIconName:M,focusedOverride:g})}}))},"y");
_.F("web_wiz_button_shape")&&_.g_(fo3,"yt-button-shape",{props:{data:_.oM,id:_.oM,className:_.oM,iconName:_.oM,secondaryIconName:_.oM,clientOnlyWizTooltipsEnabled:_.oM},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var T1=function(){var c=_.z.apply(this,arguments)||this;c.keyboardFocused=!1;return c};
_.K(T1,_.z);T1.prototype.onFocus=function(){var c=_.ql().resolve(_.dx(_.lw));c&&(this.keyboardFocused=c.isKeyBoardInUse())};
T1.prototype.onBlur=function(){this.keyboardFocused=!1};
T1.prototype.renderIdom=function(){var c=this;if(this.data){var f=SC(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),d=sdP(this.data);this.data.focused=this.keyboardFocused;EWN(this.data,function(){var q;XN("yt-icon",{icon:c.iconName,active:(q=c.data)==null?void 0:q.toggled,size:f,style:"width: "+f+"px; height: "+f+"px;",iconFilter:d},PV)},function(){var q;
XN("yt-icon",{icon:c.secondaryIconName,active:(q=c.data)==null?void 0:q.toggled,size:f,style:"width: "+f+"px; height: "+f+"px;",iconFilter:d},PV)});
_.CZ(this.hostElement,"yt-renderidom-finished")}};
_.ci.Object.defineProperties(T1,{template:{configurable:!0,enumerable:!0,get:function(){if(XT_===void 0){var c=document.createElement("template");_.n(c,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_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.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);c.content.insertBefore(Vxv().content.cloneNode(!0),c.content.firstChild);c.content.insertBefore(JZo().content.cloneNode(!0),c.content.firstChild);XT_=c}c=XT_;return c}}});
T1.prototype.onBlur=T1.prototype.onBlur;T1.prototype.onFocus=T1.prototype.onFocus;_.y([_.Q(sP_),_.D("design:type",Object)],T1.prototype,"ytIdomTemplatingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],T1.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],T1.prototype,"iconName",void 0);_.y([_.L(),_.D("design:type",String)],T1.prototype,"secondaryIconName",void 0);_.y([_.L(),_.D("design:type",Object)],T1.prototype,"keyboardFocused",void 0);
_.y([_.Ta("focusin"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],T1.prototype,"onFocus",null);_.y([_.Ta("focusout"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],T1.prototype,"onBlur",null);_.y([_.vj({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.F("web_wiz_button_shape")})],T1);_.g_(_.dN(function(c){function f(){d().seconds&&M(sMl({seconds:Number(d().seconds)-Date.now()/1E3}))}
var d=c.targetTimestamp;c=c.className;var q=_.C(_.OT("",void 0,"U1Q8Ae")),Z=q.next().value,M=q.next().value;_.QJ(function(){f();var g=setInterval(function(){f()},1E3);
_.Q4(function(){clearInterval(g)})});
return _.B("yt-countdown",{class:_.FY("ytCountDownHost",c)},_.B("div",null,Z))},"z"),"yt-countdown",{props:{targetTimestamp:_.oM,
className:_.Cs}});_.mN=_.dN(function(c){var f=c.data;var d=c.className;var q=c.style;var Z=c.useOutlinedIcon;var M=c.buttonOverrides;var g=c.animatedTextProps;var O=c.onClick;var l=c.target;var m=_.xz("button-view-model",function(W){W.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var p=f().targetId;p&&_.YIO(_.Qd(),p,W);return function(){H2o(_.Qd(),W)}}),H=function(){return f().iconName},A,Y=(A=_.ql().resolve(_.dx(_.of)))==null?void 0:A(),t=function(){var W=f();
var p=M==null?void 0:M(),N=g==null?void 0:g(),I=l==null?void 0:l();if(W){var R=uPz(W.type);var qN=!!W.title||!!W.titleFormatted;var kl=!(!W.iconName&&!W.iconImage);qN=kl&&!qN?"icon-only":kl?W.iconTrailing||W.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;qN==="icon-only-40"&&(R="text");var BN,tP=(BN=p==null?void 0:p.disabled)!=null?BN:W.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||W.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";N=N&&N.numberText&&!isNaN(Number(N.numberValue))?
N:void 0;BN=Object;kl=BN.assign;var EC=W.title,AP=W.titleFormatted,eM=W.accessibilityText,ue=Xpk(W.style),BH=vW4(W.state),J3=hS4(W.buttonSize);I=Vae(W,m,tP,O,I);tP=tP&&!W.onDisabledTap;var lr=J0k(W,m),xl=W.customFontColor,Tv=W.customBackgroundColor;var ir=W.customBorderColor;var $_=W.customDarkThemeFontColor,AH=W.customDarkThemeBackgroundColor,U3=W.customDarkThemeBorderColor;xl=Y&&$_?$_:xl;Tv=Y&&AH?AH:Tv;ir=Y&&U3?U3:ir;ir={color:xl?_.WS(xl):void 0,backgroundColor:Tv?_.WS(Tv):void 0,borderColor:ir?
_.WS(ir):void 0};W=kl.call(BN,{},{buttonText:EC,formattedButtonText:AP,animatedTextProps:N,accessibilityLabel:eM,style:ue,type:R,state:BH,size:J3,iconPosition:qN,onTap:I,disabled:tP,aTagConfig:lr,customColors:ir,tooltipText:W.tooltip},p)}else W={style:"mono",type:"text",state:"active",size:"M"};W.focused=X();return W},E=function(){return SC(t(),!!f().iconName)};
c=_.C(_.OT(!1,void 0,"bl7g4"));A=c.next().value;var J=c.next().value,X=A;c=_.Ks(function(){var W=_.ql().resolve(_.dx(_.lw));W&&J(W.isKeyBoardInUse());return!1});
A=_.Ks(function(){J(!1);return!1});
_.$k(function(){var W,p=_.b(f==null?void 0:(W=f())==null?void 0:W.onVisible,_.Wh);p&&_.eq(p,{disableClickTracking:!0})},"MLqBF");
var u=_.F("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.B("button-view-model",{el:m,class:_.FY("yt-spec-button-view-model",d),"on:focusin":c,"on:focusout":A},_.B(_.T,{cond:function(){var W;return(f==null?0:(W=f())==null?0:W.iconImage)?{sources:[f().iconImage]}:void 0},
then:function(W){return _.B(_.iw,{data:t,icon:function(){return _.B(_.jC,{data:W,alt:"",targetWidth:E,targetHeight:E,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:u})},
else:function(){return _.B(_.iw,{data:t,icon:function(){return _.B(_.Qy,{icon:H,active:function(){return(Z==null?0:Z())?!1:t().toggled},
animateIcon:function(){var W;return!!(q==null?0:(W=q())==null?0:W.animateIcon)},
size:E})},
clientOnlyWizTooltipsEnabled:u})}}))},"A");
_.mN.idomCompat={callbacks:{onClick:!0}};_.g_(_.dN(function(c){return _.B("yt-button-view-model",{id:c.id,class:_.FY(c.scopingClassName,c.classes),icon:function(){var f;return(f=c.icon)==null?void 0:f.call(c)},
"dialog-dismiss":function(){var f;return((f=c.dialogDismiss)==null?0:f.call(c))?"":void 0}},_.B(_.mN,{data:function(){var f;
return(f=c.data)==null?void 0:f.call(c)},
className:function(){var f;return(f=c.className)==null?void 0:f.call(c)},
style:function(){var f;return(f=c.style)==null?void 0:f.call(c)},
useOutlinedIcon:function(){var f;return(f=c.useOutlinedIcon)==null?void 0:f.call(c)},
buttonOverrides:function(){var f;return(f=c.buttonOverrides)==null?void 0:f.call(c)},
animatedTextProps:function(){var f;return(f=c.animatedTextProps)==null?void 0:f.call(c)},
onClick:function(f){var d;return(d=c.onClick)==null?void 0:d.call(c,f)}}))},"B"),"yt-button-view-model",{props:{data:_.oM,
className:_.oM,style:_.oM,useOutlinedIcon:_.oM,buttonOverrides:_.oM,animatedTextProps:_.oM,onClick:_.Cs,scopingClassName:_.oM,id:_.oM,icon:_.oM,dialogDismiss:_.oM,classes:_.oM,target:_.Cs}});var Hx=function(){var c=_.z.apply(this,arguments)||this;c.isGoalActive=!0;return c};
_.K(Hx,_.z);Hx.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Hx.prototype.progressBarChanged=function(){var c=_.r1(this.hostElement).querySelector("#progress-bar-progress"),f,d,q,Z=(q=Number((f=this.creatorGoalState)==null?void 0:f.currentGoalCount)/Number((d=this.creatorGoalState)==null?void 0:d.totalGoalCount)*100)!=null?q:0,M;c.style.width=((M=Math.min(Z,100))!=null?M:0)+"%"};
Hx.prototype.goalStateChanged=function(){var c;this.isGoalActive=((c=this.creatorGoalState)==null?void 0:c.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var f;c={"--yt-progress-bar-color":GpY((f=this.creatorGoalState)==null?void 0:f.progressBarColor)};_.la(this.hostElement,c)};
Hx.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.ci.Object.defineProperties(Hx.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var c;return this.isGoalActive&&!((c=this.creatorGoalState)==null||!c.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.creatorGoalState)==null?0:c.endTimestampMs){var f;c=Number((f=this.creatorGoalState)==null?void 0:f.endTimestampMs)/1E3;return{seconds:String(c)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.creatorGoalState)==null?0:c.themedTargetImage){var f;c=_.b((f=this.creatorGoalState)==null?void 0:f.themedTargetImage,u4v);return this.isAppDarkTheme()?c==null?void 0:c.imageDark:c==null?void 0:c.imageLight}}}});
_.ci.Object.defineProperties(Hx,{template:{configurable:!0,enumerable:!0,get:function(){return lFF()}}});
Hx.prototype.goalStateChanged=Hx.prototype.goalStateChanged;Hx.prototype.progressBarChanged=Hx.prototype.progressBarChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],Hx.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);
_.y([_.L({selectorArgs:["data.creatorGoalEntityKey"],selector:function(c,f){return _.Bb(c.entities,"creatorGoalEntity",f)}}),
_.D("design:type",Object)],Hx.prototype,"creatorGoalState",void 0);_.y([_.L(),_.D("design:type",Object)],Hx.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Hx.prototype,"isGoalActive",void 0);_.y([_.S("creatorGoalState","isGoalActive"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Hx.prototype,"shouldShowCountdown",null);_.y([_.S("creatorGoalState"),_.D("design:type",Object),_.D("design:paramtypes",[])],Hx.prototype,"endTimestamp",null);
_.y([_.S("creatorGoalState"),_.D("design:type",Object),_.D("design:paramtypes",[])],Hx.prototype,"targetIconThemedImage",null);_.y([_.m5("creatorGoalState.currentGoalCount"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Hx.prototype,"progressBarChanged",null);_.y([_.m5("creatorGoalState.creatorGoalState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Hx.prototype,"goalStateChanged",null);
_.y([_.vj({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Hx);_.h(Hx,"yt-creator-goal-progress-flow-view-model",function(){return lFF()},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var dW_;var jCy;var AL=function(){return _.z.apply(this,arguments)||this};
_.K(AL,_.z);AL.prototype.attached=function(){var c,f,d;if(this==null?0:(c=this.data)==null?0:(f=c.pdgPurchasedBumperLoggingDirectives)==null?0:(d=f.loggingDirectives)==null?0:d.trackingParams){var q,Z,M;W7M(this==null?void 0:(q=this.data)==null?void 0:(Z=q.pdgPurchasedBumperLoggingDirectives)==null?void 0:(M=Z.loggingDirectives)==null?void 0:M.trackingParams)}};
AL.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],AL.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],AL.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],AL);
_.h(AL,"yt-live-chat-item-bumper-view-model",function(){if(jCy===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;dW_===void 0&&(dW_=document.createElement("template"));var q=dW_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);jCy=c}c=jCy;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var qqH;var ZKH;_.jc=function(c,f){this.data=c;this.actions=f;this.data=c;this.actions=f};
_.UV=function(){};_.Yd={};_.Yd.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(c,f){DJC(this.hostElement,c,f)},
getNavigationEndpointPopupAction:function(c){return eSn(c,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(c,f){Nwn(this.hostElement,c,f,this.openPopupConfig)}};var ftN=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.F4={};
_.F4.YtEndpointBehavior=[_.Yd.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.hk("openPopupConfig");(this.useClickHandler=_.wi("useClickHandler",!1))?this.hostElement.addEventListener("click",sk(this,this.onEndpointClick_)):(Vg(this.hostElement,"tap",sk(this,this.onEndpointTap_)),Vg(this.hostElement,"touchend",sk(this,this.onEndpointTouchEnd_)));Vg(this.hostElement,"touchstart",sk(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
sk(this,this.onEndpointTapStart_))},
onEndpointClick_:function(c){RSk(this.hostElement,c,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(c){var f=this.hostElement,d=this.openPopupConfig,q=this.disableCommandHandlerOverride;q=q===void 0?!1:q;var Z=INh(c);if(Z){Z.href&&NL(Z.href);var M=c.detail;var g=M.sourceEvent;M=M.preventer;g=g.button!==void 0?g.button===0&&!XY(g):M?!XY(M):!0;Z.data&&g&&PDN(f,Z,c,d,q)}},
onEndpointTouchEnd_:function(c){XY(c)||INh(c)&&c.preventDefault()},
onEndpointTapStart_:function(c){G$n(c)}}];var dmk="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),qYh=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var M1v={};M1v.YtPlaintextBehavior=[_.Kn,{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(c){c.preventDefault();c=c.clipboardData.getData("text/plain");document.execCommand("insertText",!1,c)},
preventRichTextFormatting_:function(c){_.m8&&(c=c.detail.keyboardEvent,c.stopImmediatePropagation(),c.preventDefault())}}];var rJv;var Cvr;var tL=function(){var c=_.z.apply(this,arguments)||this;c.ignoreShadyDom=!1;c.hasChange_=!1;c.hasSetTitle_=!1;c.useIOObserverForVisibilityLogging_=_.F("kevlar_use_vimio_behavior")&&_.hk("INNERTUBE_CLIENT_NAME")==="WEB";c.ytFormattedStringObserverHandlerKeys_=void 0;return c};
_.K(tL,_.z);_.r=tL.prototype;_.r.created=function(){this.useIOObserverForVisibilityLogging_=_.F("kevlar_use_vimio_behavior")&&_.hk("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.r.ready=function(){_.hk("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_()};
_.r.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.r.detached=function(){this.unobserveIOObservers_()};
_.r.clearContents_=function(){for(var c=this.getRoot(),f=c.lastChild;f&&f.tagName!=="STYLE";){try{c.removeChild(f)}catch(d){break}f=c.lastChild}};
_.r.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var c=_.C(this.ytFormattedStringObserverHandlerKeys_),f=c.next();!f.done;f=c.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(f.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.r.resetForAttributedString=function(){var c=this.getRoot();!c.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),c.appendChild(this.ytAttributedStringElementRef))};
_.r.resetForFormattedString=function(){var c=this.getRoot(),f=c.querySelector("yt-attributed-string");f&&(this.ytAttributedStringElementRef=c.removeChild(f))};
_.r.textChanged=function(){this.textChanged_(this.text)};
_.r.textChanged_=function(c){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!c||!c.runs&&!c.simpleText;if(_.F("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var f=this.hostElement.firstChild;f&&f.nodeName==="FONT";){var d=f;f=f.nextSibling;this.hostElement.removeChild(d)}f=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
d=c.simpleText;var q;!d&&((q=c.runs)==null?void 0:q.length)===1&&this.isSimpleString_(c.runs[0])&&(d=c.runs[0].text);d!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.hk("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(d!==void 0){try{f.textContent=d}catch(Z){}f.textContent||(this.isEmpty=!0)}else c=c.runs,d!==void 0&&(c=[{text:d}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),c&&this.updateText_(c),
f.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.r.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)};
_.r.computeAriaLabel_=function(c){return c};
_.r.computeEllipsisTruncateStyling=function(c,f){return c&&!f};
_.r.computeUseAttributedString=function(c){return _.F("web_replace_formatted_with_attributed_string")&&iMe(c)&&!this.disableAttributedString&&!this.enableContentEditable};
_.r.setNodeStyle_=function(c,f){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.F("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?f.removeAttribute("dir"):f.setAttribute("dir","auto");f.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");f.style.color="";var d=null;this.noStyles||(c.bold&&(f.classList.add("bold"),d="bold"),c.deemphasize&&(f.classList.add("deemphasize"),d="deemphasize"),c.italics&&f.classList.add("italic"),
c.strikethrough&&f.classList.add("strikethrough"),c.errorUnderline&&(f.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),c.bracket&&f.classList.add("bracket"),c.textColor&&(f.style.color=_.ya(c.textColor)));d!==f.getAttribute("style-target")&&(d?f.setAttribute("style-target",d):f.removeAttribute("style-target"))};
_.r.setUpVisibilityLogging_=function(c,f){var d=this;this.setNodeTrackingParams_(c,f);var q;((q=f.data)==null?0:q.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(c=this.ytRendererBehavior.visibilityObserver.observe(f,function(Z){var M=d.ytRendererBehavior.getVisibilityLogger();M&&M.reportShown(Z)},this.ytRendererBehavior.visibilityOptionVisible_),f=this.ytRendererBehavior.visibilityObserver.observe(f,function(Z){var M=d.ytRendererBehavior.getVisibilityLogger();
M&&M.reportHidden(Z)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(c),this.ytFormattedStringObserverHandlerKeys_.push(f))};
_.r.setNodeTrackingParams_=function(c,f){f.data||(f.data={});if((c=c.loggingDirectives?c.loggingDirectives.trackingParams:null)||f.data.trackingParams)f.data.trackingParams=c};
_.r.computeHasLinkOnly_=function(c){return!(!c||c.length!==1||this.noEndpoints||!c[0].navigationEndpoint)};
_.r.getRoot=function(){var c=this.buildScopeDomOptions();return this.enableContentEditable?_.r1(_.r1(this.hostElement,c).querySelector("[contenteditable]")):_.r1(this.hostElement,c)};
_.r.fixContenteditableScope=function(){var c=function(f){f&&(f.nodeType===1&&f.classList&&(f.classList.add("style-scope"),f.classList.add("yt-formatted-string")),f.childNodes&&f.childNodes.forEach(function(d){c(d)}))};
c(this.getRoot())};
_.r.updateText_=function(c){for(var f=c.length,d=this.getRoot(),q=d.firstChild;q&&q.nodeName==="STYLE";)q=q.nextSibling;for(var Z=0;Z<f&&q;){var M=c[Z],g=_.F("remove_cr_char")&&M.text?M.text.replace("\r",""):M.text;if(this.isSimpleString_(M)&&!this.useMixedDirectionFormattedStrings)if(q.nodeName==="#text"){q.textContent!=g&&(q.textContent=g);Z++;q=q.nextSibling;continue}else break;if(_.b(M,wN))break;else if(!this.noEndpoints&&M.navigationEndpoint){if(q.nodeName!=="A")break;this.setDataOnAnchor_(q,
M.navigationEndpoint)}else if(q.nodeName!=="SPAN")break;this.setNodeStyle_(M,q);this.setUpVisibilityLogging_(M,q);q.textContent!=g&&(q.textContent=g);Z++;q=q.nextSibling}if(q)for(M=d.lastChild,q=Z?q.previousSibling:null;M&&M!=q;){try{d.removeChild(M)}catch(O){break}M=d.lastChild}Z!==f&&this.addTextNodes_(c,Z)};
_.r.addTextNodes_=function(c,f){for(var d=document.createDocumentFragment(),q=c.length;f<q;f++){var Z=c[f],M=_.F("remove_cr_char")&&Z.text?Z.text.replace("\r",""):Z.text;if(this.isSimpleString_(Z)&&!this.useMixedDirectionFormattedStrings)d.appendChild(document.createTextNode(M));else{var g=_.b(Z,wN);if(g){if(g.image){var O=document.createElement("img");g.isCustomEmoji||O.classList.add("small-emoji");O.classList.add("emoji");g.isCustomEmoji&&(O.dataset.emojiId=g.emojiId);O.src=_.kZ(g.image.thumbnails,
this.emojiSize);(Z=this.get("image.accessibility.accessibilityData.label",g))?O.alt=Z:g.shortcuts&&g.shortcuts.length>0?O.alt=g.shortcuts[0]:g.emojiId&&(O.alt=g.emojiId);d.appendChild(O);this.hasEmoji=!0}}else!this.noEndpoints&&Z.navigationEndpoint?(O=document.createElement("a"),O.classList.add("yt-simple-endpoint"),O.setAttribute("spellcheck","false"),this.setDataOnAnchor_(O,Z.navigationEndpoint)):O=document.createElement("span"),this.setNodeStyle_(Z,O),this.setUpVisibilityLogging_(Z,O),O.appendChild(document.createTextNode(M)),
d.appendChild(O)}}this.getRoot().appendChild(d)};
_.r.isSimpleString_=function(c){return(this.noEndpoints||!c.navigationEndpoint)&&!_.b(c,wN)&&(this.noStyles||!(c.bold||c.deemphasize||c.italics||c.strikethrough||c.errorUnderline||c.bracket||c.textColor))&&!c.loggingDirectives};
_.r.getRawText=function(){return _.xC(this.text)};
_.r.getFirstRunText=function(){var c;if(((c=this.text)==null?0:c.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.r.setFirstRunText=function(c){var f;((f=this.text)==null?0:f.runs)&&this.text.runs[0]&&(this.text.runs[0].text=c,this.textChanged_(this.text))};
_.r.setDataOnAnchor_=function(c,f){var d=this;!_.F("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(f)||this.isSignalServiceEndpoint_(f)?(c.onclick=this.serviceEndpointHandler_(f),_.yM(c,"#")):$Yn({text:this.text,command:f},function(){w9n(c,f,d.target)})};
_.r.isServiceEndpoint_=function(c){var f;return!((f=_.b(c==null?void 0:c.commandMetadata,_.jO))==null||!f.sendPost)};
_.r.isSignalServiceEndpoint_=function(c){return!!_.b(c,_.Ti)};
_.r.serviceEndpointHandler_=function(c){var f=this;return function(d){_.OX(f.hostElement,[c]);d.preventDefault()}};
_.r.overrideAriaLabelChanged_=function(){var c=this.getRoot();this.enableContentEditable&&c&&c.setAttribute("aria-label",this.overrideAriaLabel)};
_.r.enableContentEditableChanged_=function(){var c=this,f=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),f=_.r1(this.hostElement,f),!f.lastChild||f.lastChild instanceof HTMLElement&&f.lastChild.id!=="contenteditable-root"){var d=document.createElement("div");d.id="contenteditable-root";d.setAttribute("contenteditable","true");d.setAttribute("dir","auto");d.onfocus=function(){c.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
f.appendChild(d);this.overrideAriaLabel&&d.setAttribute("aria-label",this.overrideAriaLabel)}}else d=_.C$(this.hostElement).firstChild,d instanceof HTMLElement&&d.id==="contenteditable-root"&&_.r1(this.hostElement,f).removeChild(d)};
_.r.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.r.getNodesForVisibilityLogging_=function(){return _.gn(this.getRoot().childNodes,function(c){var f;return!((f=c.data)==null||!f.trackingParams)})};
_.r.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.r.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var c=this.ytRendererBehavior.getVisibilityLogger();c&&this.getNodesForVisibilityLogging_().forEach(function(f){c.reportShown(f)})}};
_.r.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var c=this.ytRendererBehavior.getVisibilityLogger();c&&this.getNodesForVisibilityLogging_().forEach(function(f){c.reportHidden(f)})}};
_.ci.Object.defineProperties(tL.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.F("enable_mixed_direction_formatted_strings")}}});
tL.prototype.enableContentEditableChanged_=tL.prototype.enableContentEditableChanged_;tL.prototype.overrideAriaLabelChanged_=tL.prototype.overrideAriaLabelChanged_;tL.prototype.ellipsisTruncateChanged_=tL.prototype.ellipsisTruncateChanged_;tL.prototype.textChanged=tL.prototype.textChanged;_.y([_.Q(M1v.YtPlaintextBehavior),_.D("design:type",Object)],tL.prototype,"ytPlaintextBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],tL.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tL.prototype,"text",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"noEndpoints",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"noStyles",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],tL.prototype,"isDarkTheme",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],tL.prototype,"splitLines",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],tL.prototype,"forceDefaultStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],tL.prototype,"ellipsisTruncate",void 0);_.y([_.L(),_.D("design:type",Object)],tL.prototype,"ignoreShadyDom",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.D("design:type",Boolean)],tL.prototype,"ellipsisTruncateStyling",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.D("design:type",String)],tL.prototype,"ariaLabel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],tL.prototype,"isEmpty",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.D("design:type",Boolean)],tL.prototype,"hasLinkOnly_",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"hasEmoji",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"disableAttributedString",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"isOverlay",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"linkInheritColor",void 0);
_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"noPreWrap",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"userInput",void 0);_.y([_.L({value:16}),_.D("design:type",Number)],tL.prototype,"emojiSize",void 0);_.y([_.L(),_.D("design:type",String)],tL.prototype,"target",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"enableContentEditable",void 0);_.y([_.L(),_.D("design:type",String)],tL.prototype,"overrideAriaLabel",void 0);
_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"respectHtmlDir",void 0);_.y([_.L(),_.D("design:type",Boolean)],tL.prototype,"respectLangDir",void 0);_.y([_.S("plaintextOnly"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tL.prototype,"useMixedDirectionFormattedStrings",null);_.y([_.L({computed:"computeUseAttributedString(text)"}),_.D("design:type",Boolean)],tL.prototype,"useYtAttributedString",void 0);
_.y([_.m5("text"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tL.prototype,"textChanged",null);_.y([_.m5("ellipsisTruncate"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tL.prototype,"ellipsisTruncateChanged_",null);_.y([_.m5("overrideAriaLabel"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tL.prototype,"overrideAriaLabelChanged_",null);
_.y([_.m5("enableContentEditable"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tL.prototype,"enableContentEditableChanged_",null);_.y([_.vj({is:"yt-formatted-string",disableElementRegistration:!0})],tL);
_.h(tL,"yt-formatted-string",function(){if(Cvr===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;rJv===void 0&&(rJv=document.createElement("template"));var q=rJv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Cvr=c}c=Cvr;return c});var gyO;var kOH;var OKj;var loF;var bw=function(){var c=_.z.apply(this,arguments)||this;c.focused=!1;c.disabled=!1;c.isOverlay=!1;return c};
_.K(bw,_.z);bw.prototype.triggerDown=function(){if(!this.disabled){_.g1(this.hostElement,"down",!0);var c;(c=this.currentAnimation)==null||c.cancel()}};
bw.prototype.triggerUp=function(){if(!this.disabled){_.g1(this.hostElement,"down",!1);var c=this.fillElement;var f=this.strokeElement;typeof GroupEffect==="function"?(c=new GroupEffect([CDz(c),gWr(f)]),c=new Animation(c,document.timeline)):c=new DX_(c,f);this.currentAnimation=c;var d;(d=this.currentAnimation)==null||d.play()}};
_.y([_.AY(".stroke"),_.D("design:type",HTMLElement)],bw.prototype,"strokeElement",void 0);_.y([_.AY(".fill"),_.D("design:type",HTMLElement)],bw.prototype,"fillElement",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],bw.prototype,"focused",void 0);_.y([_.L(),_.D("design:type",Object)],bw.prototype,"disabled",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],bw.prototype,"isOverlay",void 0);_.y([_.vj({is:"yt-interaction",disableElementRegistration:!0})],bw);
_.h(bw,"yt-interaction",function(){if(loF===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;OKj===void 0&&(OKj=document.createElement("template"));var q=OKj;d.call(f,q.content.cloneNode(!0),c.content.firstChild);loF=c}c=loF;return c},{mode:2});var Ky=function(){return _.z.apply(this,arguments)||this};
_.K(Ky,_.z);_.r=Ky.prototype;_.r.ready=function(){var c=this,f=_.r1(this.hostElement).querySelector("#button");f.addEventListener("focus",function(){QAu||(QAu=new $vO);c.keyboardFocused=QAu.isKeyBoardInUse()});
f.addEventListener("blur",function(){c.keyboardFocused=!1;c.rippleUp_()})};
_.r.computeTabIndex_=function(c){return c?-1:0};
_.r.computeButtonAriaPressed_=function(c){if(this.toggleable)return c?"true":"false"};
_.r.rippleDown_=function(){_.r1(this.hostElement).querySelector("#interaction").triggerDown()};
_.r.rippleUp_=function(){_.r1(this.hostElement).querySelector("#interaction").triggerUp()};
_.r.onPressedChanged_=function(){var c=_.C$(_.r1(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.C$(_.r1(this.hostElement).querySelector("#button")).children[0];c&&(c.active=this.pressed)};
Ky.prototype.onPressedChanged_=Ky.prototype.onPressedChanged_;Ky.prototype.rippleUp_=Ky.prototype.rippleUp_;Ky.prototype.rippleDown_=Ky.prototype.rippleDown_;_.y([_.L(),_.D("design:type",String)],Ky.prototype,"label",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Ky.prototype,"disabled",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ky.prototype,"pressed",void 0);_.y([_.L(),_.D("design:type",Object)],Ky.prototype,"toggleable",void 0);
_.y([_.L(),_.D("design:type",Boolean)],Ky.prototype,"untabbable",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ky.prototype,"keyboardFocused",void 0);_.y([_.Ta("down"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ky.prototype,"rippleDown_",null);_.y([_.Ta("up"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ky.prototype,"rippleUp_",null);
_.y([_.m5("pressed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ky.prototype,"onPressedChanged_",null);_.y([_.vj({is:"yt-icon-button",disableElementRegistration:!0})],Ky);
_.h(Ky,"yt-icon-button",function(){if(kOH===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;gyO===void 0&&(gyO=document.createElement("template"));var q=gyO;d.call(f,q.content.cloneNode(!0),c.content.firstChild);kOH=c}c=kOH;return c},{mode:2});var sCy=_.pp(["aria-"]),Ea={};Ea.YtRenderButtonBehavior=[_.P.YtRendererBehavior,_.F4.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!!_.ql().resolve(_.dx(_.lw))&&_.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 c=this.computeHref_(this.endpoint,!0);c?_.yM(this.elements_.endpoint,c):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){c=this.buttonClass.split(" ");c=_.C(c);for(var f=c.next();!f.done;f=c.next())f=f.value,_.g1(this.hostElement,f,!0),this.elements_.button&&_.g1(this.elements_.button,f,!0),this.elements_.text&&_.g1(this.elements_.text,f,!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&&(c=null,this.buttonAccessibility&&(c=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=c:c?_.ck([_.j5(sCy)],this.elements_.button,"aria-label",c):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var c=_.ql().resolve(_.dx(_.lw));c&&(this.keyboardFocused=c.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.qj("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,_.$n(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.$n(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(c,f){if(f)for(c=f.split(" "),c=_.C(c),f=c.next();!f.done;f=c.next())f=f.value,_.g1(this.hostElement,f,!1),this.elements_.button&&_.g1(this.elements_.button,f,!1),this.elements_.text&&_.g1(this.elements_.text,f,!1)},
buttonIconChanged_:function(c){this.elements_.icon?c?(this.elements_.icon.icon=c,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.$n(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.kE(this.hostElement,"is-paper-button-with-icon",!1)):c&&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"&&_.$n(this.elements_.button).appendChild(this.elements_.icon):_.$n(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.kE(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(c){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,c){var f=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(c){case "yt_icon_button_with_label":f=!0;_.g1(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();c=_.$n(this.elements_.button).firstElementChild;
this.elements_.icon=c;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.$n(this.elements_.endpoint).appendChild(this.elements_.button);_.$n(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.qj("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;_.$n(this.elements_.button).appendChild(this.elements_.text);_.$n(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":f=!0,this.elements_.button=this.getYtIconButton_(),c=_.$n(this.elements_.button).firstElementChild,this.elements_.icon=c,this.setIconActive_(this.elements_.icon),
_.$n(this.elements_.endpoint).appendChild(this.elements_.button)}_.kE(this.hostElement,"is-icon-button",f);_.kE(this.hostElement,"is-paper-button",!f);_.kE(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 d;_.r1((d=this.container.hostElement)!=null?d:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.$n(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(c){if(c!=void 0||this.disabled)this.disabled=c,this.elements_.button&&(this.elements_.button.disabled=c)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(c){_.F("kevlar_system_icons")&&c&&this.data&&(this.data.isSelected!==void 0?c.active=this.data.isSelected:this.data.isToggled!==void 0&&(c.active=this.data.isToggled))},
observeBasicPalette_:function(c){_.vr(this.hostElement,c)},
disabledChanged_:function(c){this.data&&this.set("data.isDisabled",c)},
onYtButtonTap_:function(c){if(this.disabled)c.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.OX(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(c=this.disableCommandHandlerOverride,!this.data||!this.data.command||c||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.F("handle_service_request_actions")||_.OX(this.hostElement,[this.serviceEndpoint]),
_.CZ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.F("handle_service_request_actions")?(c=[],this.serviceEndpoint&&c.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&c.push(this.data.command),c.length&&_.ll(this.hostElement,c,this.hostElement)):this.data&&this.data.command&&(c=this.data.command,c.accountUnlinkCommand||c.accountLinkCommand||c.insertAdCommand||c.insertHighlightMarkerCommand||
c.createLivestreamHighlightClipCommand||c.getVideoUploadFeedbackCommand||c.musicDeletePrivatelyOwnedEntityCommand||c.ypcCancelRecurrenceEndpoint||c.getMultiSelectCommandEndpoint?_.OX(this.hostElement,[c]):_.ll(this.hostElement,[c],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 c,f=_.r1((c=this.container.hostElement)!=null?c:this.container);f.lastChild&&f.lastChild.tagName!="STYLE";)try{f.removeChild(f.lastChild)}catch(d){break}},
getYtIconButton_:function(){var c=this.reuseEnabled_()?_.qj("yt-icon-button"):document.createElement("yt-icon-button"),f=_.$n(c).firstElementChild;if(f&&f.is!="yt-icon"){for(f=_.$n(c);f.lastChild;)f.removeChild(f.lastChild);f=null}f||(f=this.getIcon_(),this.setIconActive_(f),_.$n(c).appendChild(f));return c},
reuseEnabled_:function(){return _.F("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.qj("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.qj("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Bpj={};
_.Bpj.YtButtonBehavior=[Ea.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var c=this.data;c&&(this._setEndpoint(this.computeEndpoint_(c)),this._setServiceEndpoint(this.computeServiceEndpoint_(c)),this._setCommand(this.computeCommand_(c)),this._setButtonIcon(this.computeButtonIcon_(c)),this._setButtonText(this.computeButtonText_(c,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(c)),this._setButtonTooltip(this.computeTooltip_(c)),this._setButtonClass(this.computeButtonClass_(c)),this._setIconPositionType(this.computeIconPositionType_(c)),this.updateRenderedElements())},
setPressedState:function(c){var f;if((f=this.elements_)==null?0:f.button)this.elements_.button.pressed=!!c},
computeIconPositionType_:function(c){return c&&c.iconPosition||null},
computeEndpoint_:function(c){var f=c&&c.navigationEndpoint,d=this.get("data.command.commandMetadata.webCommandMetadata.url"),q=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return f?f:c&&c.command&&c.command.modalEndpoint?c.command:d&&!q&&c.command?c.command:null},
computeServiceEndpoint_:function(c){var f=c&&c.serviceEndpoint,d=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return f?f:d&&c.command?c.command:null},
computeCommand_:function(c){return c&&c.command||null},
computeButtonIcon_:function(c){return c&&c.icon&&c.icon.iconType?_.Tu(c.icon.iconType):null},
computeButtonText_:function(c,f){return!f&&c&&c.text||null},
computeAccessibility_:function(c){return this.get("accessibilityData.accessibilityData",c)||c&&c.accessibility||(c&&c.text?{label:this.getSimpleString(c.text)}:null)},
computeTooltip_:function(c){return c?c.isDisabled&&c.disabledTooltip||c.tooltip||null:null},
computeButtonClass_:function(c){var f=c&&c.style?c.style.toLowerCase().replace(/_/g,"-")+" ":"";f+=c&&c.size?c.size.toLowerCase().replace(/_/g,"-")+" ":"";c.colorData&&c.colorData.basicColorPaletteData&&c.colorData.basicColorPaletteData.borderColor&&(f+="palette-with-border");return f.trim()}}];var hp={};var iKu;var Tpv;var mWF,HK3=function(){return mWF!==void 0?mWF:mWF=document.createElement("template")};
document.head.appendChild(HK3().content);var AJ3;var YqF,Fr_=function(){return YqF!==void 0?YqF:YqF=document.createElement("template")};
document.head.appendChild(Fr_().content);var t1u;var bKH,Krv=function(){return bKH!==void 0?bKH:bKH=document.createElement("template")};
document.head.appendChild(Krv().content);var Ey_;var ny3=document.head,$WO=ny3.appendChild,QCH;if(Ey_===void 0){var Sq_=document.createElement("template");_.n(Sq_,"\x3c!--css-build:shady--\x3e");Sq_.content.insertBefore(Krv().content.cloneNode(!0),Sq_.content.firstChild);Ey_=Sq_}QCH=Ey_;$WO.call(ny3,QCH.content);var LrO=document.head,zZF=LrO.appendChild,JJO;if(t1u===void 0){var aou=document.createElement("template");_.n(aou,"\x3c!--css-build:shady--\x3e");aou.content.insertBefore(Fr_().content.cloneNode(!0),aou.content.firstChild);t1u=aou}JJO=t1u;zZF.call(LrO,JJO.content);var V1u=document.head,XM3=V1u.appendChild,uGv;if(AJ3===void 0){var vy_=document.createElement("template");_.n(vy_,"\x3c!--css-build:shady--\x3e");vy_.content.insertBefore(HK3().content.cloneNode(!0),vy_.content.firstChild);AJ3=vy_}uGv=AJ3;XM3.call(V1u,uGv.content);var hZo;_.w_("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");hZo=_.F("web_button_rework")&&_.wi("BUTTON_REWORK")||_.F("web_button_rework_with_live");_.ny=function(){return _.z.apply(this,arguments)||this};
_.K(_.ny,_.z);_.ny.prototype.created=function(){this.openPopupConfig=_.hk("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.ny.prototype.onYtNavigate_=function(c){var f=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(c.detail.endpoint);f&&(this.ytOpenPopupBehavior.openPopup(f),c.stopPropagation(),c.preventDefault())};
_.ci.Object.defineProperties(_.ny,{template:{configurable:!0,enumerable:!0,get:function(){if(Tpv===void 0){var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
var f=c.content,d=f.insertBefore;iKu===void 0&&(iKu=document.createElement("template"));var q=iKu;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Tpv=c}c=Tpv;return c}}});
_.ny.prototype.onYtNavigate_=_.ny.prototype.onYtNavigate_;_.y([_.Q(_.Yd.YtOpenPopupBehavior),_.D("design:type",Object)],_.ny.prototype,"ytOpenPopupBehavior",void 0);_.y([_.Q(_.Bpj.YtButtonBehavior),_.D("design:type",Object)],_.ny.prototype,"ytButtonBehavior",void 0);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],_.ny.prototype,"onYtNavigate_",null);
_.y([_.vj({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:hZo})],_.ny);var wMT;var yJT=_.F("web_button_rework")&&_.wi("BUTTON_REWORK")||_.F("web_button_rework_with_live"),SI=function(){var c=_.z.apply(this,arguments)||this;c.isPressed=!1;c.forceIconButton=!1;c.forceIconOnly=!1;c.forceModernIconButton=!1;c.skipCommandHandling=!1;c.alignByText=!1;c.fitToVisibleBounds=!0;c.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};c.onTap=function(f){_.CZ(c.hostElement,"yt-service-request-sent-button-renderer",f)};
return c};
_.K(SI,_.z);_.r=SI.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.r.onClick=function(c){var f,d=this.disabled||((f=this.data)==null?void 0:f.isDisabled);f=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");d&&f&&c.stopPropagation()};
_.r.computeIcon=function(){var c,f,d=(c=this.data)==null?void 0:(f=c.icon)==null?void 0:f.iconType;if(d)return _.Tu(d)};
_.r.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.r.handleUpdateButtonAction=function(c){c=_.b(c,dKv);var f=_.b(c==null?void 0:c.updatedButton,_.WQ);if(this.data&&c&&f){var d=this.data;d.targetId&&c.targetId&&d.targetId===c.targetId&&(this.data=f)}};
_.ci.Object.defineProperties(SI.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var c=this;if(this.data){var f=kIr({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.CZ(c.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.CZ(c.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});f.alignByText=this.alignByText;return f}}}});
_.ci.Object.defineProperties(SI,{template:{configurable:!0,enumerable:!0,get:function(){if(wMT===void 0){var c=document.createElement("template");_.n(c,'\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>');wMT=c}c=wMT;return c}}});
SI.prototype.onClick=SI.prototype.onClick;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],SI.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],SI.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],SI.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],SI.prototype,"isPressed",void 0);
_.y([_.L(),_.D("design:type",Object)],SI.prototype,"forceIconButton",void 0);_.y([_.L(),_.D("design:type",Object)],SI.prototype,"forceIconOnly",void 0);_.y([_.L(),_.D("design:type",Object)],SI.prototype,"forceModernIconButton",void 0);_.y([_.L(),_.D("design:type",Object)],SI.prototype,"skipCommandHandling",void 0);_.y([_.L(),_.D("design:type",Object)],SI.prototype,"alignByText",void 0);_.y([_.L(),_.D("design:type",Object)],SI.prototype,"buttonTooltipPosition",void 0);
_.y([_.L(),_.D("design:type",Object)],SI.prototype,"fitToVisibleBounds",void 0);_.y([_.L({computed:"computeTooltip(data)"}),_.D("design:type",Object)],SI.prototype,"tooltip",void 0);_.y([_.L(),_.D("design:type",Object)],SI.prototype,"overrides",void 0);_.y([_.L(),_.D("design:type",Boolean)],SI.prototype,"disabled",void 0);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],SI.prototype,"onClick",null);
_.y([_.S("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.D("design:type",Object),_.D("design:paramtypes",[])],SI.prototype,"computedButtonShape",null);_.y([_.vj({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!yJT,cssBuildOptOut:!0}),_.vj({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!yJT,cssBuildOptOut:!0})],SI);var Wry;var DWv;var Ly=function(){var c=_.z.apply(this,arguments)||this;c.empty_=!0;c.loadTime=Infinity;c.pendingPaint=!1;c.hasChange_=!1;c.oldThumbnail_=null;c.oldDelayedSrc_="";c.objectURL_=null;return c};
_.K(Ly,_.z);_.r=Ly.prototype;_.r.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.r.ready=function(){var c=this.shouldShowPlaceholder_();_.g1(this.hostElement,"no-transition",!0);c&&this.hostElement.classList.add("with-placeholder")};
_.r.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.r.isThumbPreloaded_=function(c){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",c)};
_.r.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||eZj};
_.r.computeThumbnailSrc_=function(c){return c&&c.thumbnails?_.kZ(c.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.r.computeAlt_=function(){var c=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&c||""};
_.r.thumbnailChanged_=function(){var c=_.C([this.thumbnail,this.oldThumbnail_]),f=c.next().value;c=c.next().value;this.oldThumbnail_=f;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(c=this.computeThumbnailSrc_(c),this.computeThumbnailSrc_(f)===c))return;_.F("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(f)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):f&&_.wi("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.ol(this,this.onReload_):_.ol(this,this.onShow_):this.resetImage_();f&&(this.hostElement.style.opacity=""+f.opacity)}};
_.r.delayedSrcChanged_=function(){var c=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===c||this.resetImage_()};
_.r.setSrc_=function(c){c?(_.r1(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.r1(this.hostElement).querySelector("#img").src=c):(_.r1(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.r.resetImage_=function(){CQk(this.hostElement);this.empty_=!0;this.setSrc_(eZj);this.ytRendererBehavior.invalidate(!1)};
_.r.observePlaceholderColor_=function(){var c=this.thumbnail&&this.thumbnail.placeholderColor;c?this.hostElement.style.backgroundColor=_.ya(c):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.r.onLoad_=function(){_.r1(this.hostElement).querySelector("#img").src&&_.r1(this.hostElement).querySelector("#img").src!==eZj&&(rzC(this.hostElement),this.notifyOnLoaded&&_.CZ(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.r.onError_=function(){var c=this;if(_.F("web_use_cache_for_image_fallback"))iJk(_.r1(this.hostElement).querySelector("#img").src).then(function(f){c.objectURL_=_.vU(f).toString();c.setSrc_(c.objectURL_)}).catch(function(){_.F("kevlar_woffle_fallback_image")&&c.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.r.onPrescanVisible=function(){this.onShow_()};
_.r.onVisible=function(){if(_.F("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.r.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var c=this.computeSrc_();c!==_.r1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(c))}};
_.r.onReload_=function(){this.empty_=!1;var c=this.computeSrc_();c!==_.r1(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(c))};
_.r.shouldShowPlaceholder_=function(){return _.F("kevlar_thumbnail_bg")};
Ly.prototype.observePlaceholderColor_=Ly.prototype.observePlaceholderColor_;Ly.prototype.delayedSrcChanged_=Ly.prototype.delayedSrcChanged_;Ly.prototype.thumbnailChanged_=Ly.prototype.thumbnailChanged_;_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Ly.prototype,"alt",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ly.prototype,"ariaHidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Ly.prototype,"ariaLabel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Ly.prototype,"hidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Ly.prototype,"id",void 0);_.y([_.Q(_.RM.YtVisibilityBehavior),_.D("design:type",Object)],Ly.prototype,"ytVisibilityBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",String)],Ly.prototype,"delayedSrc",void 0);
_.y([_.L(),_.D("design:type",Object)],Ly.prototype,"thumbnail",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],Ly.prototype,"loaded",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ly.prototype,"notifyOnLoaded",void 0);_.y([_.L(),_.D("design:type",Number)],Ly.prototype,"height",void 0);_.y([_.L(),_.D("design:type",Number)],Ly.prototype,"width",void 0);_.y([_.L({value:function(){return"width"}}),
_.D("design:type",String)],Ly.prototype,"dimension",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Ly.prototype,"fit",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Ly.prototype,"fitHeight",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Ly.prototype,"fitWidth",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Ly.prototype,"objectFit",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Ly.prototype,"objectPosition",void 0);_.y([_.L(),_.D("design:type",String)],Ly.prototype,"preferredThumbnail",void 0);_.y([_.L({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.D("design:type",String)],Ly.prototype,"alt_",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Ly.prototype,"sharedTooltipText",void 0);
_.y([_.L(),_.D("design:type",Boolean)],Ly.prototype,"ftlEligible",void 0);_.y([_.L({value:void 0}),_.D("design:type",String)],Ly.prototype,"observeHiddenOption",void 0);_.y([_.L({value:"observe_once"}),_.D("design:type",String)],Ly.prototype,"observePrescanOption",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Ly.prototype,"roundedContainer",void 0);
_.y([_.ba("thumbnail"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ly.prototype,"thumbnailChanged_",null);_.y([_.ba("delayedSrc"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ly.prototype,"delayedSrcChanged_",null);_.y([_.m5("thumbnail.placeholderColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ly.prototype,"observePlaceholderColor_",null);
_.y([_.vj({is:"yt-img-shadow",disableElementRegistration:!0})],Ly);var eZj=_.wi("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.OD()(Ly,"yt-img-shadow",function(){if(DWv===void 0){var c=document.createElement("template");_.n(c,'\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">');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Wry===void 0&&(Wry=document.createElement("template"));var q=Wry;d.call(f,q.content.cloneNode(!0),c.content.firstChild);DWv=c}c=DWv;return c},{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 x7r;_.z1=new _.jk("SCREEN_MANAGER_TOKEN");x7r=new _.jk("LOG_INITIAL_SCREEN_TOKEN");var NpF=Object.fromEntries(Object.keys({entities:{}}).map(function(c){return[c,c]}));var Iov=function(c){return function(f,d){return ltY(c,f,d)}}(NpF)(NpF.entities,{selectSfvAudioItemPlaybackState:function(c,f){var d,q;
c=(q=_.Bb(c,"sfvAudioItemCurrentlyPlayingEntity",f))!=null?q:void 0;return(d=c==null?void 0:c.sfvAudioItemPlaybackState)!=null?d:void 0},
playlistLoopStateEntitySelector:function(c,f){var d;return(d=_.Bb(c,"playlistLoopStateEntity",f))!=null?d:void 0}});_.JL=_.dN(function(c){function f(qN){return _.b(qN,_.zx)}
function d(){var qN=q().isTogglingDisabled||J()&&q().toggledIsTogglingDisabled,kl=qN||Y()?J():!J();X(kl);W(!1);if(!qN){var BN;(BN=g)==null||BN(!!kl)}var tP;((tP=M)==null?0:tP())||_.mZ(_.ql().resolve(_.z1),q().trackingParams);var EC;if(!kl||!f(q().defaultButtonViewModel)||(EC=M)!=null&&EC()){var AP;!f(q().toggledButtonViewModel)||((AP=M)==null?0:AP())||_.mZ(_.ql().resolve(_.z1),f(q().toggledButtonViewModel).trackingParams)}else _.mZ(_.ql().resolve(_.z1),f(q().defaultButtonViewModel).trackingParams)}
var q=c.data,Z=c.buttonShapeOverrides,M=c.disableExplicitClickLogging,g=c.onToggle,O=c.style,l=c.useOutlinedIcon,m=c.className,H=function(){var qN,kl;return J()?(qN=c.animatedTextPropsToggled)==null?void 0:qN.call(c):(kl=c.animatedTextPropsDefault)==null?void 0:kl.call(c)},A=_.TZ(function(){return H()?Object.assign({},H(),{shouldAnimate:u()}):void 0},void 0,"ZKEa0b"),Y=function(){var qN;
return((qN=I())==null?void 0:qN.isToggled)!==void 0},t=_.C(_.ns(function(){var qN,kl,BN;
return Y()?(qN=I())==null?void 0:qN.isToggled:(BN=Z==null?void 0:(kl=Z())==null?void 0:kl.toggled)!=null?BN:q().isToggled})),E=t.next().value;
t=t.next().value;var J=E,X=t;t=_.C(_.ns(function(){var qN,kl;return(qN=c.animatedTextPropsToggled)==null?void 0:(kl=qN.call(c))==null?void 0:kl.shouldAnimate}));
E=t.next().value;t=t.next().value;var u=E,W=t;E=_.C(_.OT(!1,void 0,"S11hid"));var p=E.next().value,N=E.next().value,I=_.N5(function(qN){a:{var kl=q().entityKey,BN=q().toggledStateEntitySelectorType;if(BN)switch(BN){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!kl)break;qN=Iov.selectSfvAudioItemPlaybackState(qN,kl);if(qN==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){qN={isToggled:!0};break a}if(qN){qN={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":qN=
{isToggled:_.Bmn(qN).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":qN={isToggled:_.Bmn(qN).includes("engagement-panel-live-chat-item-section")};break a;default:_.u6(new _.KD("Error: entitySelectorType defined but not matched in selector.",qN,BN))}qN=void 0}return qN}),R=function(){return Object.assign({},Z==null?void 0:Z(),{onToggle:d,
toggleable:!0,toggled:J(),focused:p()})};
return _.B("toggle-button-view-model",{"on:focusin":_.Ks(function(){var qN=_.ql().resolve(_.dx(_.lw));qN&&N(qN.isKeyBoardInUse());return!1}),
"on:focusout":_.Ks(function(){N(!1);return!1})},_.B(_.T,{cond:function(){return J()?f(q().toggledButtonViewModel):f(q().defaultButtonViewModel)},
then:function(qN){return _.B(_.mN,{data:qN,className:m,style:O,useOutlinedIcon:l,buttonOverrides:R,animatedTextProps:A})}}))},"C");
_.JL.idomCompat={callbacks:{onToggle:!0}};_.g_(_.dN(function(c){return _.B("yt-toggle-button-view-model",{class:function(){var f;return(f=c.scopingClassName)==null?void 0:f.call(c)}},_.B(_.JL,{data:function(){var f;
return(f=c.data)==null?void 0:f.call(c)},
buttonShapeOverrides:function(){var f;return(f=c.overrides)==null?void 0:f.call(c)},
animatedTextPropsDefault:function(){var f;return(f=c.animatedTextPropsDefault)==null?void 0:f.call(c)},
animatedTextPropsToggled:function(){var f;return(f=c.animatedTextPropsToggled)==null?void 0:f.call(c)},
disableExplicitClickLogging:function(){var f;return(f=c.disableExplicitClickLogging)==null?void 0:f.call(c)},
onToggle:function(f){var d;return(d=c.onToggle)==null?void 0:d.call(c,f)},
style:function(){var f;return(f=c.style)==null?void 0:f.call(c)},
useOutlinedIcon:function(){var f;return(f=c.useOutlinedIcon)==null?void 0:f.call(c)},
className:function(){var f;return(f=c.className)==null?void 0:f.call(c)}}))},"D"),"yt-toggle-button-view-model",{props:{data:_.oM,
buttonShapeOverrides:_.oM,overrides:_.oM,animatedTextPropsDefault:_.oM,animatedTextPropsToggled:_.oM,disableExplicitClickLogging:_.oM,onToggle:_.Cs,style:_.oM,useOutlinedIcon:_.oM,className:_.oM,scopingClassName:_.oM}});var aN=function(){return _.z.apply(this,arguments)||this};
_.K(aN,_.z);aN.prototype.onTap=function(c){c.stopPropagation();c=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.uh("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:c})):this.ytLiveChatReduxBehavior.dispatch(_.ER("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:c}))};
_.ci.Object.defineProperties(aN.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.engagementState)==null?void 0:c.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var c=_.b(this.data.toggleButton,_.Jc),f;if(Number(((f=this.likeCountState)==null?void 0:f.likeCountIfIndifferentNumber)||"0")===0){var d;f=((d=this.data.likeCountPlaceholder)==null?void 0:d.content)||""}else{var q,Z,M;f=((q=this.likeCountState)==null?void 0:(Z=q.likeCountIfIndifferent)==null?void 0:Z.content)||((M=this.data.likeCountPlaceholder)==null?void 0:M.content)||""}var g,O;d=((g=this.likeCountState)==null?void 0:(O=
g.likeCountIfLiked)==null?void 0:O.content)||"1";g=_.b(c.toggledButtonViewModel,_.zx);return Object.assign({},c,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.b(c.defaultButtonViewModel,_.zx),{title:f})},toggledButtonViewModel:{buttonViewModel:Object.assign({},g,{title:d})}})}}}});
aN.prototype.onTap=aN.prototype.onTap;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],aN.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],aN.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],aN.prototype,"data",void 0);
_.y([_.L({selectorArgs:["data.likeCountEntityKey"],selector:ikN}),_.D("design:type",Object)],aN.prototype,"likeCountState",void 0);_.y([_.L({selectorArgs:["data.engagementStateKey"],selector:wp4}),_.D("design:type",Object)],aN.prototype,"engagementState",void 0);_.y([_.S("data","engagementState"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],aN.prototype,"isLiked",null);
_.y([_.S("data","likeCountState","isLiked"),_.D("design:type",Object),_.D("design:paramtypes",[])],aN.prototype,"toggleButton",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],aN.prototype,"onTap",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],aN);
_.h(aN,"yt-live-chat-like-button-view-model",function(){if(ZKH===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;qqH===void 0&&(qqH=document.createElement("template"));var q=qqH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);ZKH=c}c=ZKH;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var Pv_;var RZy;var Vs=function(){return _.z.apply(this,arguments)||this};
_.K(Vs,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Vs.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Vs);
_.h(Vs,"yt-live-chat-paid-message-footer-renderer",function(){if(RZy===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Pv_===void 0&&(Pv_=document.createElement("template"));var q=Pv_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);RZy=c}c=RZy;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var UWy;var pMr;var xWH;var oyy,GOv=function(){if(oyy!==void 0)return oyy;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;xWH===void 0&&(xWH=document.createElement("template"));var q=xWH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return oyy=c};var X4=function(){return _.z.apply(this,arguments)||this};
_.K(X4,_.z);X4.prototype.onTap=function(c){c.stopPropagation()};
_.ci.Object.defineProperties(X4.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var c=_.b(this.data.replyButton,_.zx),f,d,q,Z,M,g,O,l=Number(((f=this.replyCountState)==null?void 0:f.replyCountNumber)||"0")===0?(d=this.data)==null?void 0:(q=d.replyCountPlaceholder)==null?void 0:q.content:((Z=this.replyCountState)==null?void 0:(M=Z.replyCount)==null?void 0:M.content)||((g=this.data)==null?void 0:(O=g.replyCountPlaceholder)==null?void 0:O.content)||"",m;return Object.assign({},
c,{title:l,accessibilityText:(m=this.replyCountState)==null?void 0:m.replyButtonAccessibilityText})}}}});
_.ci.Object.defineProperties(X4,{template:{configurable:!0,enumerable:!0,get:function(){return GOv()}}});
X4.prototype.onTap=X4.prototype.onTap;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],X4.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],X4.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],X4.prototype,"data",void 0);
_.y([_.L({selectorArgs:["data.replyCountEntityKey"],selector:function(c,f){return _.Bb(c.entities,"replyCountEntity",f)}}),
_.D("design:type",Object)],X4.prototype,"replyCountState",void 0);_.y([_.S("data","replyCountState"),_.D("design:type",Object),_.D("design:paramtypes",[])],X4.prototype,"buttonViewModel",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],X4.prototype,"onTap",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],X4);
_.h(X4,"yt-live-chat-reply-button-view-model",function(){return GOv()},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var czr;var fYy;var uw=function(){var c=_.z.apply(this,arguments)||this;c.ariaLabel="";return c};
_.K(uw,_.z);
uw.prototype.dataChanged=function(){for(var c=(0,_.Ok)(_.r1(this.hostElement).querySelector("#image"));c.firstChild;)c.removeChild(c.firstChild);if(this.data)if(this.data.icon){var f=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(f.polymerController.icon="yt-sys-icons:shield-filled",f.polymerController.defaultToFilled=!0):f.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();c.appendChild(f)}else if(this.data.customThumbnail){f=document.createElement("img");
var d=_.cze(this.data.customThumbnail.thumbnails,16);d?(f.src=d,c.appendChild(f),f.setAttribute("alt",this.hostElement.ariaLabel||"")):_.u6(new _.KD("Could not compute URL for thumbnail",this.data.customThumbnail))}};
uw.prototype.identity=function(c){return c};
uw.prototype.computeType=function(c){return sD(c||void 0)};
uw.prototype.dataChanged=uw.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],uw.prototype,"data",void 0);_.y([_.L({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.D("design:type",Object)],uw.prototype,"ariaLabel",void 0);_.y([_.L({computed:"computeType(data)",reflectToAttribute:!0}),_.D("design:type",String)],uw.prototype,"type",void 0);
_.y([_.L({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.D("design:type",String)],uw.prototype,"sharedTooltipText",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("live_chat_enable_new_moderator_badge")}}),
_.D("design:type",Boolean)],uw.prototype,"enableNewModeratorBadge",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uw.prototype,"dataChanged",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],uw);
_.h(uw,"yt-live-chat-author-badge-renderer",function(){if(fYy===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;czr===void 0&&(czr=document.createElement("template"));var q=czr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);fYy=c}c=fYy;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var d4y;var jqH;var vx=function(){return _.z.apply(this,arguments)||this};
_.K(vx,_.z);_.r=vx.prototype;_.r.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"}}}}};
_.r.computeBadgesInsideChip=function(c){return c?c.filter(function(f){return sD(f.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.r.computeBadgesOutsideChip=function(c){return this.prependChatBadges||!c?[]:c.filter(function(f){f=sD(f.liveChatAuthorBadgeRenderer);return f!=="verified"&&f!=="owner"})};
_.r.computeBadgesBeforeChip=function(c){return this.prependChatBadges&&c?c.filter(function(f){f=sD(f.liveChatAuthorBadgeRenderer);return f!=="verified"&&f!=="owner"}):[]};
_.r.computeIsHighlighted=function(c,f){var d=!!mbG(c,"owner"),q=!!mbG(c,"verified");c=!!mbG(c,"moderator");return(d||q&&!c)&&!f};
_.r.computeAuthorType=function(c){return Tve(c)};
_.r.computeAuthorClass=function(c,f){return f?(c?c+" ":"")+"single-line":c};
_.r.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)};
vx.prototype.onSeedColorChanged=vx.prototype.onSeedColorChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],vx.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],vx.prototype,"authorName",void 0);_.y([_.L(),_.D("design:type",Array)],vx.prototype,"authorBadges",void 0);
_.y([_.L({computed:"computeAuthorType(authorBadges)"}),_.D("design:type",String)],vx.prototype,"authorType",void 0);_.y([_.L({computed:"computeAuthorClass(authorType, singleLine)"}),_.D("design:type",String)],vx.prototype,"authorClass",void 0);_.y([_.L({computed:"computeBadgesInsideChip(authorBadges)"}),_.D("design:type",Array)],vx.prototype,"badgesInsideChip",void 0);_.y([_.L({computed:"computeBadgesOutsideChip(authorBadges)"}),_.D("design:type",Array)],vx.prototype,"badgesOutsideChip",void 0);
_.y([_.L({computed:"computeBadgesBeforeChip(authorBadges)"}),_.D("design:type",Array)],vx.prototype,"badgesBeforeChip",void 0);_.y([_.L({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.D("design:type",Boolean)],vx.prototype,"isHighlighted",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],vx.prototype,"singleLine",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],vx.prototype,"disableHighlighting",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],vx.prototype,"dashboardMoneyFeed",void 0);_.y([_.L({value:_.F("live_chat_prepend_badges"),reflectToAttribute:!0}),_.D("design:type",Boolean)],vx.prototype,"prependChatBadges",void 0);_.y([_.L(),_.D("design:type",String)],vx.prototype,"authorNameColor",void 0);_.y([_.AY("#author-name"),_.D("design:type",HTMLDivElement)],vx.prototype,"username",void 0);
_.y([_.m5("authorNameColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vx.prototype,"onSeedColorChanged",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],vx);
_.h(vx,"yt-live-chat-author-chip",function(){if(jqH===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;d4y===void 0&&(d4y=document.createElement("template"));var q=d4y;d.call(f,q.content.cloneNode(!0),c.content.firstChild);jqH=c}c=jqH;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var qvK;var ZJH;var hL=function(){var c=_.z.apply(this,arguments)||this;c.debounceCommand=_.Ko(function(f){c.ytComponentBehavior.resolveCommand(f)},1500);
return c};
_.K(hL,_.z);hL.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var c=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",f,d,q=this.isHearted?(f=this.data)==null?void 0:f.unheartCommand:(d=this.data)==null?void 0:d.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.uh("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:c}));(c=_.D9(q))&&this.debounceCommand(c)}};
_.ci.Object.defineProperties(hL.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var c,f;if(!((c=this.data)==null?0:(f=c.creatorThumbnail)==null?0:f.sources))return{};c={thumbnails:[]};f={};f.url=this.data.creatorThumbnail.sources[0].url;c.thumbnails.push(f);return c}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((d=this.engagementState)==null?void 0:d.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}}});
hL.prototype.onTap=hL.prototype.onTap;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],hL.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],hL.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hL.prototype,"data",void 0);
_.y([_.L({selectorArgs:["data.engagementStateKey"],selector:wp4}),_.D("design:type",Object)],hL.prototype,"engagementState",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],hL.prototype,"thumbnailDetails",null);_.y([_.S("data","engagementState"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],hL.prototype,"isHearted",null);_.y([_.S("data","engagementState"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],hL.prototype,"isEditable",null);
_.y([_.S("data","engagementState"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],hL.prototype,"showCreatorView",null);_.y([_.S("data","engagementState"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],hL.prototype,"showButton",null);_.y([_.S("data","isHearted"),_.D("design:type",String),_.D("design:paramtypes",[])],hL.prototype,"label",null);_.y([_.S("data","isHearted"),_.D("design:type",Object),_.D("design:paramtypes",[])],hL.prototype,"heartHoverText",null);
_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],hL.prototype,"onTap",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],hL);
_.h(hL,"yt-live-chat-creator-heart-view-model",function(){if(ZJH===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;qvK===void 0&&(qvK=document.createElement("template"));var q=qvK;d.call(f,q.content.cloneNode(!0),c.content.firstChild);ZJH=c}c=ZJH;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var wT=function(){};
_.K(wT,BL);wT.prototype.JSC$12990_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:RS("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
wT.prototype.getApiPaths=function(){return[]};
wT.prototype.getExtension=function(){};
wT.prototype.JSC$12990_buildRequest=function(){};var MNH={},rz3=(MNH.GET_DATASYNC_IDS=nX(wT),MNH);var CQK,gjO,kj_,xvu,ys,squ,j2H,lYy,OJ_;CQK="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");gjO=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.xZ=function(c,f,d,q,Z,M,g,O,l){this.endpointMap=c;this.networkManager=f;this.authService=d;this.responseProcessorMap=q;this.innertubeResponseStore=Z;this.contextProcessors=M;this.asyncContextProcessors=g;this.localInnertubeRouter=O;this.requestSequencer=l;this.inflightRequests=new Map;c.signalEndpointMap||(c.signalEndpointMap={});c.signalEndpointMap=Object.assign({},rz3,c.signalEndpointMap)};
kj_=function(c,f,d,q,Z,M,g,O,l){if(_.xZ.instance!==void 0){if(q=_.xZ.instance,c=[c!==q.endpointMap,f!==q.networkManager,d!==q.authService,Z!==q.innertubeResponseStore,M!==q.contextProcessors,g!==q.asyncContextProcessors,O!==q.localInnertubeRouter],c.some(function(m){return m}))throw new _.KD("InnerTubeTransportService is already initialized",c);
}else _.xZ.instance=new _.xZ(c,f,d,q,Z,M,g,O,l)};
_.G3=function(c,f,d){var q=q===void 0?quF:q;var Z=j2H(c,f);return Z?new _.i6(function(M,g){var O,l,m,H,A;return _.k(function(Y){switch(Y.nextAddress){case 1:return Y.yield(Z,2);case 2:O=Y.yieldResult;l=O.JSC$12990_getRequest(f,d,q);if(!l){g(new _.KD("Error: Failed to build request for command.",f));Y.jumpTo(0);break}NL(l.input);H=((m=l.requestShell)==null?void 0:m.mode)==="cors"?"cors":void 0;if(c.authService.syncHeaders){A=OJ_(l.config,H);Y.jumpTo(4);break}return Y.yield(lYy(l.config,H),5);case 5:A=
Y.yieldResult;case 4:M(squ(c,l,A)),_.Fm(Y)}})}):_.Je(new _.KD("Error: No request builder found for command.",f))};
xvu=function(c,f,d,q){var Z=Z===void 0?quF:Z;var M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R;return _.k(function(qN){switch(qN.nextAddress){case 1:M=Hkk(f,c.endpointMap);if(!M)throw new _.KD("Error: No streaming request builder found for command",f);g=M.JSC$12990_getRequest(f,d,Z);if(!g)throw new _.KD("Failed to build YtRequest for streaming Command",f);if((O=c.localInnertubeRouter)==null||!O.shouldPreferLocalResponse(g.input,g.innerTubeRequest)){qN.jumpTo(2);break}return qN.yield(c.localInnertubeRouter.localInnertubeResponse(g.input,
g.innerTubeRequest),3);case 3:return l=qN.yieldResult,m={},l.playerResponse&&(ys(c,l.playerResponse,g),m.player=l.playerResponse,(H=q)==null||H(m,l)),l.watchNextResponse&&(ys(c,l.watchNextResponse,g),m.content=l.watchNextResponse,(A=q)==null||A(m,l)),qN.return(m);case 2:t=((Y=g.requestShell)==null?void 0:Y.mode)==="cors"?"cors":void 0;if(c.authService.syncHeaders){E=OJ_(g.config,t);qN.jumpTo(4);break}return qN.yield(lYy(g.config,t),5);case 5:E=qN.yieldResult;case 4:return u=(X=(J=g.requestShell)==
null?void 0:J.headers)!=null?X:{},g.requestShell=Object.assign({},g.requestShell,{headers:Object.assign({},u,E)}),W=Object.assign({},g.requestShell),p=JSON.stringify(g.innerTubeRequest),g.requestShell.method==="POST"&&(W=Object.assign({},W,{body:p})),N=function(kl,BN){ys(c,BN.playerResponse||BN.watchNextResponse||BN.reelItemWatchResponse||BN.reelWatchSequenceResponse,g);q==null||q(kl,BN)},I={},qN.yield(BVu(c.networkManager,g.input,W,N),6);
case 6:return I=qN.yieldResult,((R=g.config)==null?0:R.responseTick)&&_.V_(g.config.responseTick),qN.return(I)}})};
_.y9=function(c,f,d,q,Z){Z=Z===void 0?{authStrategy:{identity:quF}}:Z;var M=M===void 0?!0:M;var g=function(){};
g=lGC(k0n(d));f.context||(f.context=_.EQG(q,M));return new _.i6(function(O){var l,m,H,A,Y;return _.k(function(t){if(t.nextAddress==1)return l=x_k(d),m=_.Pi(l),c.authService.syncHeaders?(H=OJ_(Z,m),t.jumpTo(2)):t.yield(lYy(Z,m),3);t.nextAddress!=2&&(H=t.yieldResult);A=o3Y(x_k(d));Y={input:A,requestShell:RS(A),innerTubeRequest:f,config:Z};O(squ(c,Y,H,g));_.Fm(t)})})};
ys=function(c,f,d){var q;if(f&&!(f==null?0:(q=f.sequenceMetaData)==null?0:q.skipProcessing)&&c.responseProcessorMap){q=_.C(CQK);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,c.responseProcessorMap[Z]&&c.responseProcessorMap[Z].handleResponse(f,d)}};
squ=function(c,f,d,q){q=q===void 0?function(){}:q;
var Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R,qN,kl,BN,tP,EC,AP,eM,ue,BH,J3,lr,xl,Tv,ir,$_,AH,U3,MN,qH,br,YS;return _.k(function(Y_){switch(Y_.nextAddress){case 1:g=(Z=f.config)==null?void 0:(M=Z.storeStrategy)==null?void 0:M.storeKey;if(!(g&&c.innertubeResponseStore&&c.innertubeResponseStore.has(g))||((O=f.config)==null?0:(l=O.storeStrategy)==null?0:l.disableCache)){Y_.jumpTo(2);break}return Y_.yield(c.innertubeResponseStore.get(g),3);case 3:if((m=Y_.yieldResult)&&!m.isExpired())return Y_.return(Promise.resolve(_.Mo(m)));
case 2:if(!((H=f)==null?0:(A=H.innerTubeRequest)==null?0:A.context)){Y_.jumpTo(4);break}Y=f.innerTubeRequest.context;if(!(c.asyncContextProcessors&&c.asyncContextProcessors.length>0)){Y_.jumpTo(5);break}t=[];E=_.C(c.asyncContextProcessors);for(J=E.next();!J.done;J=E.next())X=J.value,u=X.processContext(f),u.wrappedPromise_&&t.push(u.wrappedPromise_);if(!(t.length>0)){Y_.jumpTo(5);break}return Y_.yield(Promise.all(t),5);case 5:W=_.C(c.contextProcessors||[]),p=W.next();case 8:if(p.done){Y_.jumpTo(4);
break}N=p.value;return Y_.yield(N.processContext(Y),9);case 9:p=W.next();Y_.jumpTo(8);break;case 4:if((I=c.localInnertubeRouter)==null||!I.shouldPreferLocalResponse(f.input,f.innerTubeRequest)){Y_.jumpTo(12);break}return Y_.yield(c.localInnertubeRouter.localInnertubeResponse(f.input,f.innerTubeRequest),13);case 13:return R=Y_.yieldResult,ys(c,R,f),Y_.return(R);case 12:return(BN=(kl=f.config)==null?void 0:kl.requestKey)&&c.inflightRequests.has(BN)?qN=c.inflightRequests.get(BN):(tP=JSON.stringify(f.innerTubeRequest),
eM=(AP=(EC=f.requestShell)==null?void 0:EC.headers)!=null?AP:{},f.requestShell=Object.assign({},f.requestShell,{headers:Object.assign({},eM,d)}),ue=Object.assign({},f.requestShell),f.requestShell.method==="POST"&&(ue=Object.assign({},ue,{body:tP})),((BH=f.config)==null?0:BH.requestTick)&&_.V_(f.config.requestTick),J3=function(){return c.networkManager.fetch(f.input,ue,f.config)},qN=c.requestSequencer?iJK(c.requestSequencer,f,J3):J3(),BN&&c.inflightRequests.set(BN,qN)),Y_.yield(qN,14);
case 14:(lr=Y_.yieldResult)&&_.F("web_streaming_player")&&Array.isArray(lr)&&(lr=lr[0].playerResponse);if(lr&&"error"in lr&&((xl=lr)==null?0:(Tv=xl.error)==null?0:Tv.details))for(ir=lr.error.details,$_=_.C(ir),AH=$_.next();!AH.done;AH=$_.next())U3=AH.value,(MN=U3["@type"])&&gjO.indexOf(MN)>-1&&(delete U3["@type"],lr=U3);BN&&c.inflightRequests.has(BN)&&c.inflightRequests.delete(BN);((qH=f.config)==null?0:qH.responseTick)&&_.V_(f.config.responseTick);if(lr||(br=c.localInnertubeRouter)==null||!br.canProvideFallbackResponse(f.input,
f.innerTubeRequest)){Y_.jumpTo(15);break}return Y_.yield(c.localInnertubeRouter.localFallbackInnertubeResponse(f.input,f.innerTubeRequest),16);case 16:lr=Y_.yieldResult;case 15:return ys(c,lr,f),((YS=f.config)==null?0:YS.processorTick)&&_.V_(f.config.processorTick),q(),Y_.return(lr||void 0)}})};
_.oT=function(c,f){return mmM(f,c.endpointMap)};
j2H=function(c,f){c=AyN(f,c.endpointMap);if(c!==void 0)return Promise.resolve(c)};
lYy=function(c,f){var d,q,Z,M;return _.k(function(g){if(g.nextAddress==1){Z=(d=c)==null?void 0:(q=d.authStrategy)==null?void 0:q.sessionIndex;var O=g.yield;var l=_.sX(FqG({sessionIndex:Z}));return O.call(g,l,2)}M=g.yieldResult;return g.return(Promise.resolve(Object.assign({},YYz(f),M)))})};
OJ_=function(c,f){var d;c=c==null?void 0:(d=c.authStrategy)==null?void 0:d.sessionIndex;d=FqG({sessionIndex:c});return Object.assign({},YYz(f),d)};var TVy,m4H,HJH,AzT,Yvj,Fsy,Ksv,EjH,eI,njO,$4H,bJF,Qq_;TVy=0;m4H=/tone[1-5]/;HJH=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");AzT="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Yvj=Number.MAX_SAFE_INTEGER;Fsy=RegExp("\ufe0f","g");_.Wx=function(c){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;c&&_.tNF(this,c)};
_.tNF=function(c,f){try{_.iF(f,{context:c,onSuccess:function(q,Z){Array.isArray(Z)?c.load(Z):(q=new _.KD("Emoji manager JSON response was not an array!",{response:Z}),_.VO(q))},
onError:function(q){q=new _.KD("Failed to retrieve emoji manager initial JSON data!",{url:f,statusCode:_.kK(q).toString()});_.u6(q)}})}catch(q){var d=new _.KD("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:f});
_.u6(d)}};
_.Wx.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Wx.prototype.load=function(c,f){if(f)if(c.length)c=c.concat(f.emojis);else{this.emojis=f.emojis;this.emojiMap=f.emojiMap;this.emojiShortcutMap=f.emojiShortcutMap;this.emojiShortcutCharMap=bJF(f);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=f.emojiRegex;return}this.emojis=[].concat(_.LT(new Set(this.emojis.concat(c))));this.hasInitializedShortcutCharMap=!1;c=Array(this.emojis.length);for(f=0;f<this.emojis.length;f++){var d=this.emojis[f];if(d.emojiId){this.emojiMap[d.emojiId]=d;this.emojiMap[d.emojiId].index=
f;for(var q=0;d.shortcuts&&q<d.shortcuts.length;q++)this.emojiShortcutMap[d.shortcuts[q].toLocaleLowerCase()]=d;c[f]=d.isCustomEmoji&&d.shortcuts?d.shortcuts[0]:d.emojiId}}c.sort(function(Z,M){return M.length-Z.length});
if(c.length)try{this.emojiRegex=new RegExp(c.join("|").replace("*","\\*"),"gi")}catch(Z){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Ksv=function(c,f){f=_.C(f);for(var d=f.next();!d.done;d=f.next()){var q=d.value;if(q.emojiId&&c.emojiMap[q.emojiId]){d=Object.assign({},c.emojiMap[q.emojiId],q);c.emojiMap[q.emojiId]=d;var Z=void 0;d.index&&((Z=c.emojis[d.index])==null?void 0:Z.emojiId)===q.emojiId&&(c.emojis[d.index]=d);q=void 0;if((q=d.shortcuts)==null?0:q.length)for(c.hasInitializedShortcutCharMap=!1,q=_.C(d.shortcuts),Z=q.next();!Z.done;Z=q.next())c.emojiShortcutMap[Z.value.toLocaleLowerCase()]=d}}};
EjH=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(_.L5.getInstance(),2);if(q.nextAddress!=3)return(f=q.yieldResult)?q.yield(f.get("ytlc-emoji-pref"),3):q.return();(d=q.yieldResult)&&Ksv(c,Object.keys(d).map(function(Z){return{emojiId:Z,stickyPrefId:d[Z]}}).filter(function(Z){return!!Z.emojiId&&!!Z.stickyPrefId}));
_.Fm(q)})};
_.D$=function(c,f,d){return(c=c.emojiMap[f])&&(!c.isLocked||d!==void 0&&d)?c:void 0};
eI=function(c,f,d){d=_.D$(c,f,d===void 0?!1:d);var q=f.match("\u200d");d&&c.skinTone!==0&&(c=(q==null?void 0:q.length)===1?_.D$(c,f.replace("\u200d",HJH[c.skinTone]+"\u200d")):_.D$(c,f+HJH[c.skinTone]))&&(d=c);return d};
njO=function(c,f){var d=c.emojiMap[f];return(d==null?0:d.stickyPrefId)?c.emojiMap[d.stickyPrefId]:eI(c,f)};
_.T6=function(c,f){c=c.emojiShortcutMap[f.toLocaleLowerCase()];return!c||c.isLocked?null:c};
$4H=function(c,f,d){return bJF(c,d===void 0?!1:d)[f]||{}};
bJF=function(c,f){f=f===void 0?!1:f;if(!c.hasInitializedShortcutCharMap){c.hasInitializedShortcutCharMap=!0;for(var d=0;d<c.emojis.length;d++){var q=c.emojis[d];if(!(q.isLocked||f&&q.isCustomEmoji&&q.emojiId&&!c.pickerCustomEmojiIds.includes(q.emojiId)))for(var Z=0;q.shortcuts&&Z<q.shortcuts.length;Z++){var M=q.shortcuts[Z];M.startsWith(":_")&&q.isCustomEmoji&&(c.emojiShortcutCharMap[":_"]==null&&(c.emojiShortcutCharMap[":_"]=Object.create(null)),c.emojiShortcutCharMap[":_"][M]=q);if(!(M.length<3||
!q.isCustomEmoji&&m4H.test(M))){var g=M.substr(0,3).toLocaleLowerCase();c.emojiShortcutCharMap[g]==null&&(c.emojiShortcutCharMap[g]=Object.create(null));c.emojiShortcutCharMap[g][M]=q}}}}return c.emojiShortcutCharMap};
_.Wx.prototype.createEmoji=function(c,f){f=f===void 0?!0:f;var d=document.createElement("img");c.isCustomEmoji||d.classList.add("small-emoji");d.classList.add("emoji");d.classList.add("yt-formatted-string");d.src=c.image?_.kZ(c.image.thumbnails,this.emojiSize)||"":"";var q=void 0;c.image&&c.image.accessibility&&c.image.accessibility.accessibilityData&&(q=c.image.accessibility.accessibilityData.label);d.alt=q?q:(c.isCustomEmoji&&c.shortcuts?c.shortcuts[0]:c.emojiId)||"";c.isCustomEmoji&&(d.dataset.emojiId=
c.emojiId);_.OJ&&(d.setAttribute("contenteditable","false"),d.setAttribute("unselectable","on"));f&&(c.shortcuts&&c.shortcuts.length&&d.setAttribute("shared-tooltip-text",c.shortcuts[0]),d.id="emoji-"+TVy++);return d};
_.Wx.prototype.createDocumentFragment=function(c,f,d,q){f=f===void 0?!1:f;d=d===void 0?!0:d;q=q===void 0?!1:q;c=c.replace(Fsy,"");for(var Z=document.createDocumentFragment(),M=0,g,O=0;(g=this.emojiRegex.exec(c))!=null;){var l=_.D$(this,g[0])||_.T6(this,g[0]);!l||l.isCustomEmoji&&!f||(l=this.createEmoji(l,d),M!==g.index&&Z.appendChild(document.createTextNode(c.substring(M,g.index))),Z.appendChild(l),M=g.index+g[0].length,O++)}if(!q||O)return Z.appendChild(document.createTextNode(c.substr(M))),Z};
Qq_=function(c,f,d){var q,Z,M,g,O,l,m,H,A;return _.k(function(Y){if(Y.nextAddress==1){if(!f.emojiId||!c.emojiMap[f.emojiId])return Y.return();q=Object.assign({},c.emojiMap[f.emojiId],{stickyPrefId:d});c.emojiMap[f.emojiId]=q;f.index&&((Z=c.emojis[f.index])==null?void 0:Z.emojiId)===f.emojiId&&(c.emojis[f.index]=q);if((M=f.shortcuts)==null?0:M.length)for(c.hasInitializedShortcutCharMap=!1,g=_.C(f.shortcuts),O=g.next();!O.done;O=g.next())l=O.value,c.emojiShortcutMap[l.toLocaleLowerCase()]=q;return Y.yield(_.L5.getInstance(),
2)}if(Y.nextAddress!=4)return(m=Y.yieldResult)?Y.yield(m.get("ytlc-emoji-pref"),4):Y.jumpTo(0);A=(H=Y.yieldResult)!=null?H:{};A[f.emojiId]=d;return Y.yield(m.set("ytlc-emoji-pref",A,Yvj),0)})};
_.Nj=new _.Wx;var znj;_.IN={};
znj={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 Rn(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 c=_.r1(this.hostElement||this).querySelector("#inline-action-button-container");c&&c.setAttribute("aria-hidden","true");this.menuButton=_.r1(this.hostElement).querySelector("#menu-button")},
attached:function(){var c=this.menuButton;c&&(c.addEventListener("focusin",_.ia(this,this.onMenuButtonFocus_)),c.addEventListener("focusout",_.ia(this,this.onMenuButtonBlur_)))},
detached:function(){var c=this.menuButton;c&&(c.removeEventListener("focusin",_.ia(this,this.onMenuButtonFocus_)),c.removeEventListener("focusout",_.ia(this,this.onMenuButtonBlur_)))},
identity:_.Vn,truthy:function(c){return!!c},
computeTimestampString:function(c){return c?c.timestampText?this.getSimpleString(c.timestampText):this.TIME_FORMATTER.format(new Date(c.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(c){return c},
computeMenuVisible_:function(c,f){return c||f},
computeHasInlineActionButtons:function(c){if(!c)return!1;var f,d;return!((f=c.inlineActionButtons)==null||!f.length)||!((d=c.additionalInlineActionButtons)==null||!d.length)},
createDocumentFragmentFromString:function(c){var f=_.Nj.createDocumentFragment.bind(_.Nj),d;if((d=this.participantsManager)==null||!d.viewerRegex)return f(c);d=document.createDocumentFragment();for(var q=0,Z;(Z=this.participantsManager.viewerRegex.exec(c))!=null;){if(Z.index>0){var M=":"+Z[0]+":";if((_.D$(_.Nj,M)||_.T6(_.Nj,M))&&c.indexOf(M)===Z.index-1)continue}d.appendChild(f(c.substring(q,Z.index)));q=document.createElement("span");q.appendChild(f(Z[0]));q.classList.add("mention");d.appendChild(q);
q=Z.index+Z[0].length}d.appendChild(f(c.substring(q)));return d},
createDocumentFragment:function(c){var f=document.createDocumentFragment();if(c.simpleText)return f.appendChild(this.createDocumentFragmentFromString(c.simpleText)),f;if(!c.runs)return f;for(var d=0;d<c.runs.length;d++){var q=c.runs[d];if(q.emoji)f.appendChild(_.Nj.createEmoji(q.emoji));else if(q.text)if(q.navigationEndpoint){var Z=document.createElement("a");Z.classList.add("yt-simple-endpoint");w9n(Z,q.navigationEndpoint);_.r1(Z).appendChild(this.createDocumentFragmentFromString(q.text));f.appendChild(Z)}else f.appendChild(this.createDocumentFragmentFromString(q.text))}return f},
hasModerationOverlayVisible:function(){var c;return((c=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:c.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(c){c.composedPath().some(function(f){return(f=f instanceof Element?f:null)?f.tagName&&(f.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||f.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(c)},
colorFromDecimal:function(c){return GpY(c)},
markAsDeleted:function(c,f){this.set("data.deletedStateMessage",c);this.set("data.showOriginalContentMessage",f)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(c){if(this.data.contextMenuEndpoint){var f=_.ql().resolve(_.Xw),d=this.data.contextMenuEndpoint,q;(q=_.xZ.instance)&&_.oT(q,d)?(f=SvH(f,d),q=_.y9(q,{},f)):q=_.Lsy(f,d);q.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);c&&c.stopPropagation()}},
handleGetContextMenuResponse_:function(c){var f=_.xZ.instance;f&&_.oT(f,{liveChatEndpoint:{}})||(c=c.response);c.liveChatItemContextMenuSupportedRenderers&&c.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(c.liveChatItemContextMenuSupportedRenderers.menuRenderer);c.actions&&_.gS(this.hostElement,"yt-live-chat-actions",[c.actions])},
handleGetContextMenuError:function(c){if(c instanceof Error||c instanceof Object||c instanceof String)var f=c;_.VO(new _.KD("Error encountered calling GetLiveChatItemContextMenu",f))},
showContextMenu_:function(c){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:c}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.CZ(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.CZ(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.IN.YtLiveChatItemBehavior=[znj,_.N2.YtComponentBehavior,_.Yd.YtOpenPopupBehavior];_.Px=function(){};var JzK;var aYr;var VNH;var XGu;var RN=function(){var c=_.z.apply(this,arguments)||this;c.active=!1;c.identity=_.Vn;return c};
_.K(RN,_.z);RN.prototype.dataChanged=function(){this.active=!1};
RN.prototype.onClick=function(){_.CZ(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
RN.prototype.dataChanged=RN.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],RN.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],RN.prototype,"active",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],RN.prototype,"dataChanged",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],RN);
_.h(RN,"yt-live-chat-text-input-field-suggestion",function(){if(XGu===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;VNH===void 0&&(VNH=document.createElement("template"));var q=VNH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);XGu=c}c=XGu;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});_.Ua=function(c,f,d){return CustomEvent.call(this,c,{detail:{value:f,path:d}})||this};
_.K(_.Ua,CustomEvent);_.py=function(){var c=_.z.apply(this,arguments)||this;c.viewerName=null;c.actionMap={"yt-live-chat-actions":"onChatMessage_"};c.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];c.PARTICIPANT_TIME_USEC_=3E8;return c};
_.K(_.py,_.z);_.r=_.py.prototype;_.r.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.r.addParticipant=function(c){var f=_.QkY(this.participants,c,function(q,Z){q=q[Object.keys(q)[0]];Z=Z[Object.keys(Z)[0]];q=String(_.xC(q.authorName)).toLowerCase();Z=String(_.xC(Z.authorName)).toLowerCase();return q<Z?-1:q==Z?0:1}.bind(this));
if(f>=0){var d=this.participants[f];d[Object.keys(d)[0]].timestampUsec&&this.splice("participants",f,1,c)}else this.splice("participants",-f-1,0,c);c=c[Object.keys(c)[0]];f=_.xC(c.authorName).toLocaleLowerCase();d=f.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(d)||(this.allParticipantsCharMap_[d]={});this.allParticipantsCharMap_[d][f]=c};
_.r.getAuthorsFromPrefix=function(c){return this.allParticipantsCharMap_.hasOwnProperty(c)?this.allParticipantsCharMap_[c]:null};
_.r.computeViewerRegex_=function(c){if(!c)return null;c=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var f=c.indexOf("@")===0&&_.F("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(f+c.replace(/ /g,"\\s*")+"|^"+c.replace(/ /g,"\\s*")+"$|^"+c.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+c.replace(/ /g,"\\s*")+"$|(?<=\\s)"+c.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.r.checkForStaleParticipants_=function(){var c=this;this.trimOldParticipants_();this.asyncHandle_&&EIC(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Nh(function(){c.checkForStaleParticipants_()},3E4))};
_.r.onChatMessage_=function(c){var f=this,d=Date.now()*1E3;c.forEach(function(q){if(q=_.b(q,zO3)){q=q.item;var Z=Object.keys(q)[0];f.SUPPORTED_ITEM_TYPES_.indexOf(Z)!=-1&&q[Z].timestampUsec>=d-f.PARTICIPANT_TIME_USEC_&&f.addParticipant(q)}},this);
this.checkForStaleParticipants_()};
_.r.trimOldParticipants_=function(){for(var c=Date.now()*1E3,f=this.participants.length-1;f>=0;f--){var d=this.participants[f];d=d[Object.keys(d)[0]];d.timestampUsec&&d.timestampUsec<c-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",f,1)}};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],_.py.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],_.py.prototype,"viewerName",void 0);_.y([_.L({computed:"computeViewerRegex_(viewerName)"}),_.D("design:type",Object)],_.py.prototype,"viewerRegex",void 0);_.y([_.L({value:function(){return[]},
notify:!0}),_.D("design:type",Array)],_.py.prototype,"participants",void 0);_.y([_.vj({is:"yt-live-chat-participants-manager",noInjection:!0})],_.py);var up_=/.*([:@#].*?)$/,xd=/\u00a0/g,vj3=String.fromCharCode(160),hnu={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"},oN=function(){var c=_.z.apply(this,arguments)||this;c.disabled=!1;c.liveChatRichMessageInput=null;c.messageInput=null;c.isValidWithNoInputText=!1;c.suggestions=[];c.emojiManager=_.Nj;c.inputMethodEditorActive=
!1;c.suggestionIndex=-1;c.JSC$14004_lastSuggestionRange=null;return c};
_.K(oN,_.z);_.r=oN.prototype;_.r.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.r.attached=function(){_.lf&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.r.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.r.dataChanged=function(){if(!this.ignoreColorMapping){var c=!1,f={},d;for(d in hnu)this.data&&this.data.hasOwnProperty(d)&&(f[hnu[d]]=this.colorFromDecimal(this.data[d]),c=!0);c&&_.la(this.hostElement,f)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.r.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.r.colorFromDecimal=function(c){c=Math.floor(Number(c));return"rgba("+[c>>16&255,c>>8&255,c&255,(c>>24&255)/255].join()+")"};
_.r.preventDrag=function(c){c.dataTransfer&&(c.dataTransfer.dropEffect="none");c.preventDefault()};
_.r.preventResize=function(c){c.returnValue=!1};
_.r.onInputChange=function(){var c=this.characterCount,f=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&f&&f.remove();if(!f&&this.characterCount>this.maxCharacterLimit){var d=window.getSelection();if(d){var q=d.getRangeAt(0);d.removeAllRanges();d.addRange(q)}}if(d=this.getCurrentRange())q=this.calculateTextBeforeRange(d),this.completeEmojisInRange(d,q,!0)||this.updateSuggestions(d,q);q=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(q);
_.CZ(this.hostElement,"yt-live-chat-message-input-change",q);f&&this.characterCount===0&&f.remove();d&&d.commonAncestorContainer.parentElement.id==="input"&&d.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>c):d&&!d.collapsed&&d.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(c=this.input.childNodes.length-1;c>=0;c--)this.input.childNodes[c].nodeName==="BR"&&this.input.childNodes[c].remove()};
_.r.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.r.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var c=this.getCurrentRange();c&&c.commonAncestorContainer.parentElement.id==="input"&&c.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.r.mergeOverflowText=function(c){if(c){var f=document.createRange();f.selectNodeContents(c);f=f.extractContents();this.input.insertBefore(f,c)}};
_.r.checkRangeAtEndOfInput=function(){var c=this.getCurrentRange();if(c){var f=_.r1(this.hostElement).querySelector("#overflow-text"),d=document.createRange();f&&f.previousSibling?f.previousSibling instanceof HTMLImageElement?d.selectNode(f.previousSibling):d.selectNodeContents(f.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?d.selectNode(this.input.lastChild):d.selectNodeContents(this.input.lastChild));d.collapse(!1);return d.isPointInRange(c.startContainer,
c.startOffset)}return!1};
_.r.handleOverflowText=function(c){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var f=_.r1(this.hostElement).querySelector("#overflow-text"),d=this.getCurrentRange();this.input.normalize();c=this.checkRangeAtEndOfInput()&&c;this.mergeOverflowText(f);for(var q,Z=0,M=0,g,O=this.input.childNodes,l=0;l<O.length;l++){var m=O[l];m instanceof Text?(M+=m.textContent.length,M>this.maxCharacterLimit&&(q=m,Z=this.maxCharacterLimit+m.textContent.length-M)):m instanceof HTMLImageElement&&
(q=void 0,M=m.dataset.emojiId&&((q=this.data)==null?0:q.emojiCharacterCount)?M+this.data.emojiCharacterCount:M+m.alt.length,q=this.input,Z=l);if(M>this.maxCharacterLimit&&q){g=document.createRange();g.collapse(!1);f?(M=this.input.lastChild.previousSibling,M instanceof Text?g.setEnd(this.input.lastChild.previousSibling,M.textContent.length):M instanceof HTMLImageElement&&g.setEnd(this.input,this.input.childNodes.length-1)):g.selectNodeContents(this.input);g.setStart(q,Z);break}}g&&(q=!1,d&&(c=g.isPointInRange(d.startContainer,
d.startOffset-1)),f||(f=document.createElement("span"),f.id="overflow-text",f.textContent="",f.setAttribute("contenteditable","true"),_.r1(_.r1(this.hostElement).querySelector("#input")).appendChild(f),q=!0),f&&(d=g.extractContents(),f.insertBefore(d,f.firstChild),c&&f.firstChild&&(d=document.createRange(),q?d.setStartAfter(f.lastChild):d.setStartAfter(f.firstChild),d.collapse(!0),f=window.getSelection(),f.removeAllRanges(),f.addRange(d))))}};
_.r.checkForDuplicateSpans=function(){for(var c=0;c<this.input.childNodes.length;c++){var f=this.input.childNodes[c];if(f.nodeName==="SPAN"){var d=document.createRange();d.selectNodeContents(f);d=d.extractContents();this.input.insertBefore(d,f);f.remove()}}this.handleOverflowText(!0)};
_.r.getCurrentRange=function(){var c=window.getSelection();return c&&c.rangeCount?c.getRangeAt(0).cloneRange():null};
_.r.getInputRange=function(){var c=this.getCurrentRange();if(c){for(var f=c.commonAncestorContainer,d=!1,q=_.r1(this.hostElement).querySelector("#input");f;){if(f===q){d=!0;break}f=f.parentNode}d||(c=null)}c||(c=this.getRangeAtEnd());return c};
_.r.getRangeAtEnd=function(){var c=document.createRange(),f=_.r1(this.hostElement).querySelector("#input").lastChild;!f||f.nodeName!=="#text"&&f.nodeName!=="SPAN"?(c.selectNodeContents(_.r1(this.hostElement).querySelector("#input")),c.collapse(!1)):f.nodeName==="#text"?c.setStart(f,f.textContent.length):c.setStart(f,f.childNodes.length);return c};
_.r.getChatParticipantSuggestions=function(c,f,d,q){var Z=_.F("live_chat_enable_handles_web_text_input_update");if(f)for(var M in f)if(M.indexOf(c)===0||Z&&M.indexOf(d+c)===0){var g=f[M],O=_.xC(g.authorName);q.push({suggestion:{author:!0,authorType:d,image:g.authorPhoto,alt:O,text:O}});if(q.length>=64)break}};
_.r.getSuggestions=function(c){var f=[],d=c.substring(0,3),q=$4H(_.Nj,d,!0);if(q)for(var Z in q)if(Z.toLocaleLowerCase().indexOf(c)===0){var M=q[Z];if(M&&M.emojiId){if(M=njO(_.Nj,M.emojiId)){var g=void 0,O=void 0,l=void 0,m=void 0,H=((g=M.image)==null?0:(O=g.accessibility)==null?0:(l=O.accessibilityData)==null?0:l.label)||M.isCustomEmoji?(m=M.shortcuts)==null?void 0:m[0]:M.emojiId;f.push({suggestion:{emoji:!0,image:M.image,alt:H,text:Z,textToInsertWhenSelected:M.isCustomEmoji?Z:H}})}if(f.length>=
64)break}}if(!this.participantsManager)return null;if(d.indexOf("@")===0||d.indexOf("#")===0)q=d.charAt(0),c=c.substring(1),Z=_.F("live_chat_enable_handles_web_text_input_update"),d.indexOf("@")===0&&Z&&(Z=this.participantsManager.getAuthorsFromPrefix(d.substring(0,2)),this.getChatParticipantSuggestions(c,Z,q,f)),d=d.substring(1),d=this.participantsManager.getAuthorsFromPrefix(d),this.getChatParticipantSuggestions(c,d,q,f);return f?f.sort(function(A,Y){return Y.suggestion.text<A.suggestion.text?-1:
Y.suggestion.text===A.suggestion.text?0:1}):null};
_.r.insertSuggestion=function(c){var f=_.F("live_chat_enable_handles_web_text_input_update"),d=c.authorType;f=c.text.indexOf(d)===0&&f?c.text+vj3:d+c.text+vj3;c.emoji?this.insertTextAtRange(this.JSC$14004_lastSuggestionRange,c.textToInsertWhenSelected||""):c.author&&this.insertTextAtRange(this.JSC$14004_lastSuggestionRange,f)};
_.r.updateSuggestionsAtCaret=function(){var c=this.getCurrentRange();c&&this.updateSuggestions(c,this.calculateTextBeforeRange(c))};
_.r.offsetStartOfRangeBy=function(c,f){for(;f>0;)if(c.startOffset-f>=0){c.setStart(c.startContainer,c.startOffset-f);break}else{f=c.startContainer instanceof HTMLImageElement?f-c.startContainer.alt.length:f-c.startOffset;var d=c.startContainer.previousSibling;if(!d){c.setStart(c.startContainer,0);break}if(_.F("live_chat_require_space_for_autocomplete_emoji")){var q=void 0,Z=void 0;c.setStart(d,((q=d)==null?void 0:(Z=q.textContent)==null?void 0:Z.length)||0)}else c.setStart(d,d.childNodes.length||
0)}};
_.r.updateSuggestions=function(c,f){var d=this;this.JSC$14004_lastSuggestionRange&&(this.JSC$14004_lastSuggestionRange.detach(),this.JSC$14004_lastSuggestionRange=null);if((f=up_.exec(f))&&f.length&&(f=f[f.length-1].toLocaleLowerCase(),f.length>2&&(this.offsetStartOfRangeBy(c,f.length),this.JSC$14004_lastSuggestionRange=c,(c=this.getSuggestions(f))&&c.length))){this.suggestions=c;_.ol(this,function(){_.r1(d.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(c.length-1);return}this.dropdown.opened=!1};
_.r.completeEmojisInRange=function(c,f,d){var q=f.replace(/[\s\xa0]+$/,"");f=f.length-q.length;q=q.split(" ");q=q[q.length-1].trim().toLocaleLowerCase();var Z=q.lastIndexOf(":");if(d&&!f&&Z!==q.length-1)return!1;Z!==-1&&(d=q.lastIndexOf(":",Z-1),d!==-1&&(q=q.substring(d)));if((d=_.T6(_.Nj,q))&&d.emojiId){d=njO(_.Nj,d.emojiId)||null;this.offsetStartOfRangeBy(c,q.length+f);var M,g,O,l;q=(((M=d)==null?0:M.isCustomEmoji)?(g=d)==null?void 0:(O=g.shortcuts)==null?void 0:O[0]:(l=d)==null?void 0:l.emojiId)||
"";f&&(q+=vj3);this.insertTextAtRange(c,q);this.dropdown.opened=!1;return!0}return!1};
_.r.onSuggestion=function(c){this.insertSuggestion(c.detail);this.dropdown.opened=!1};
_.r.onKeyPress=function(c){c.keyCode===13&&(c.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.CZ(this.hostElement,"yt-live-chat-send-message"))};
_.r.completeEmojis=function(){var c=document.createRange(),f=_.r1(this.hostElement).querySelector("#input").lastChild;f?c.setStart(f,f.childNodes.length):(c.selectNodeContents(_.r1(this.hostElement).querySelector("#input")),c.collapse(!1));this.completeEmojisInRange(c,this.calculateTextBeforeRange(c),_.F("live_chat_require_space_for_autocomplete_emoji"))};
_.r.maybePreventTextFormatting=function(c){!_.m8||!c.ctrlKey&&!c.metaKey||c.keyCode!==66&&c.keyCode!==73||(c.stopImmediatePropagation(),c.preventDefault())};
_.r.onKeyDown=function(c){this.maybePreventTextFormatting(c);if(this.dropdown.opened)switch(c.keyCode){case 27:this.dropdown.opened=!1;c.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;c.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);c.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),c.preventDefault()}};
_.r.onKeyUp=function(c){switch(c.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.OJ)this.onInputChange()};
_.r.changeSuggestionIndex=function(c){if(this.dropdown.opened){var f=_.r1(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<f.children.length&&(f.children[this.suggestionIndex].active=!1);var d=this.suggestions.length;this.suggestionIndex=(c+d)%d;c=f.children[this.suggestionIndex];c.active=!0;f.scrollTop=c.offsetTop}};
_.r.onInputPaste=function(c){c.preventDefault();(c=c.clipboardData)&&c.types&&(c=c.getData("text/plain")||"",c=c.replace(/\n/g,""),this.insertText(c));(c=this.getCurrentRange())&&c.commonAncestorContainer.parentElement.id==="input"&&c.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.r.onFocus=function(){this._setFocused(!0)};
_.r.onBlur=function(){this._setFocused(!1)};
_.r.insertText=function(c){this.insertTextAtRange(this.getInputRange(),c)};
_.r.insertTextAtRange=function(c,f){if(c&&(c.collapsed||c.deleteContents(),f=_.Nj.createDocumentFragment(f,!0,!1))){for(var d=_.C((f==null?void 0:f.childNodes)||[]),q=d.next();!q.done;q=d.next()){q=q.value;var Z=void 0,M=void 0,g=void 0,O=void 0,l=void 0;(g=(Z=window)==null?void 0:(M=Z.ShadyCSS)==null?void 0:M.ScopingShim)==null||(l=(O=g).scopeNode)==null||l.call(O,q,this.hostElement.localName)}d=f.lastChild;c.insertNode(f);this.focused||this.input.focus();if(this.focused){c=c.cloneRange();c.selectNodeContents(d);
c.collapse(!1);if(f=window.getSelection())f.removeAllRanges(),f.addRange(c);c.commonAncestorContainer.parentElement.id==="input"&&c.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}c=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(c);_.CZ(this.hostElement,"yt-live-chat-message-input-change",c)}};
_.r.setLiveChatRichMessageInput=function(c){_.r1(_.r1(this.hostElement).querySelector("#input")).textContent="";if(c&&c.textSegments){for(var f=0;f<c.textSegments.length;f++){var d=c.textSegments[f];d.text?_.r1(_.r1(this.hostElement).querySelector("#input")).appendChild(_.Nj.createDocumentFragment(d.text,!0,!1)):d.emojiId&&(d=_.D$(_.Nj,d.emojiId))&&_.r1(_.r1(this.hostElement).querySelector("#input")).appendChild(_.Nj.createEmoji(d,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.r.setText=function(c){this.setLiveChatRichMessageInput(c?{textSegments:[{text:c}]}:null)};
_.r.calculateTextBeforeRange=function(c){var f="",d=c.startContainer;if(d&&d instanceof Text){var q;f=((q=d.textContent)==null?void 0:q.substring(0,c.startOffset))||"";d=d.previousSibling}for(;d&&d instanceof Text;)f=d.textContent+f,d=d.previousSibling;return f.replace(xd," ")};
_.r.calculateLiveChatRichMessageInput=function(){for(var c=[],f="",d=_.r1(_.r1(this.hostElement).querySelector("#input")).childNodes,q=0;q<d.length;q++){var Z=d[q];Z instanceof Text?f+=Z.textContent:Z instanceof HTMLImageElement&&(Z.dataset.emojiId?(f&&(c.push({text:f.replace(xd," ")}),f=""),c.push({emojiId:Z.dataset.emojiId})):f+=Z.alt)}f&&c.push({text:f.replace(xd," ")});if(d=_.r1(this.hostElement).querySelector("#overflow-text")){f="";d=d.childNodes;for(q=0;q<d.length;q++)Z=d[q],Z instanceof Text?
f+=Z.textContent:Z instanceof HTMLImageElement&&(Z.dataset.emojiId?(f&&(c.push({text:f.replace(xd," ")}),f=""),c.push({emojiId:Z.dataset.emojiId})):f+=Z.alt);f&&c.push({text:f.replace(xd," ")})}return{textSegments:c}};
_.r.computeCharacterCount=function(c){if(!c||!c.textSegments)return 0;for(var f=0,d=0;d<c.textSegments.length;d++){var q=c.textSegments[d];if(q.text)f+=q.text.length;else if(q.emojiId){var Z=void 0;if((Z=this.data)==null?0:Z.emojiCharacterCount)f+=this.data.emojiCharacterCount;else{var M=Z=void 0,g=void 0;f+=((M=_.D$(_.Nj,(Z=q)==null?void 0:Z.emojiId))==null?void 0:(g=M.shortcuts)==null?void 0:g[0].length)||0}}}return f};
_.r.characterCountChanged=function(){_.CZ(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.r.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Ua("focused-changed",this.focused))};
_.r.focus=function(){this.setFocus(!1)};
_.r.focusAtEnd=function(){this.setFocus(!0)};
_.r.setFocus=function(c){c=c?this.getRangeAtEnd():this.getInputRange();_.r1(this.hostElement).querySelector("#input").focus();var f=window.getSelection();f&&(f.removeAllRanges(),f.addRange(c))};
_.r.insertEmoji=function(c){var f,d=((c==null?0:c.isCustomEmoji)?(f=c.shortcuts)==null?void 0:f[0]:c==null?void 0:c.emojiId)||"";this.insertText(d)};
_.r.computeText=function(c){if(!c||!c.textSegments)return"";for(var f="",d=0;d<c.textSegments.length;d++){var q=c.textSegments[d];if(q.text)f+=q.text;else if(q.emojiId){var Z=void 0,M=void 0,g=void 0;f+=((M=_.D$(_.Nj,(Z=q)==null?void 0:Z.emojiId))==null?void 0:(g=M.shortcuts)==null?void 0:g[0])||""}}return f};
_.r.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.ci.Object.defineProperties(oN.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.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}}});
oN.prototype.focusedChanged=oN.prototype.focusedChanged;oN.prototype.characterCountChanged=oN.prototype.characterCountChanged;oN.prototype.onSuggestion=oN.prototype.onSuggestion;oN.prototype.onMessageSet=oN.prototype.onMessageSet;oN.prototype.dataChanged=oN.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],oN.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],oN.prototype,"disabled",void 0);_.y([_.S("disabled"),_.D("design:type",Number),_.D("design:paramtypes",[])],oN.prototype,"inputTabIndex",null);_.y([_.S("data.maxCharacterLimit"),_.L({readOnly:!0,notify:!0}),_.D("design:type",Number),_.D("design:paramtypes",[])],oN.prototype,"maxCharacterLimit",null);
_.y([_.S("liveChatRichMessageInput"),_.L({readOnly:!0,notify:!0}),_.D("design:type",Number),_.D("design:paramtypes",[])],oN.prototype,"characterCount",null);_.y([_.S("maxCharacterLimit, characterCount"),_.L({readOnly:!0,notify:!0}),_.D("design:type",Number),_.D("design:paramtypes",[])],oN.prototype,"remainingCharacterCount",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],oN.prototype,"isChatMessageInput",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],oN.prototype,"inputExpanded",void 0);_.y([_.L({readOnly:!0,notify:!0}),_.D("design:type",Object)],oN.prototype,"liveChatRichMessageInput",void 0);_.y([_.L(),_.D("design:type",Object)],oN.prototype,"messageInput",void 0);_.y([_.L(),_.D("design:type",Boolean)],oN.prototype,"ignoreColorMapping",void 0);_.y([_.S("characterCount"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],oN.prototype,"hasText",null);
_.y([_.L(),_.D("design:type",Object)],oN.prototype,"isValidWithNoInputText",void 0);_.y([_.S("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.L(),_.D("design:type",Boolean),_.D("design:paramtypes",[])],oN.prototype,"isInputValid",null);_.y([_.L({readOnly:!0,value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],oN.prototype,"focused",void 0);_.y([_.L(),_.D("design:type",Array)],oN.prototype,"suggestions",void 0);
_.y([_.L(),_.D("design:type",_.Wx)],oN.prototype,"emojiManager",void 0);_.y([_.L(),_.D("design:type",_.py)],oN.prototype,"participantsManager",void 0);_.y([_.L(),_.D("design:type",Boolean)],oN.prototype,"noUnderline",void 0);_.y([_.L(),_.D("design:type",Object)],oN.prototype,"inputMethodEditorActive",void 0);_.y([_.AY("#dropdown"),_.D("design:type",Object)],oN.prototype,"dropdown",void 0);_.y([_.AY("#input"),_.D("design:type",HTMLElement)],oN.prototype,"input",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oN.prototype,"dataChanged",null);_.y([_.m5("messageInput"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oN.prototype,"onMessageSet",null);_.y([_.Ta("yt-live-chat-select-suggestion"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],oN.prototype,"onSuggestion",null);
_.y([_.m5("characterCount"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oN.prototype,"characterCountChanged",null);_.y([_.m5("focused"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oN.prototype,"focusedChanged",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],oN);
_.wGO=_.h(oN,"yt-live-chat-text-input-field-renderer",function(){if(aYr===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;JzK===void 0&&(JzK=document.createElement("template"));var q=JzK;d.call(f,q.content.cloneNode(!0),c.content.firstChild);aYr=c}c=aYr;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var G1=function(){var c=_.z.apply(this,arguments)||this;c.buttonOverrides={style:"overlay",type:"filled"};c.allowAnimations=!1;c.modern=_.F("web_button_rework_with_live");c.noPadding=!1;return c};
_.K(G1,_.z);_.r=G1.prototype;_.r.shouldSupportInlineActionButtons=function(){return!0};
_.r.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"}}}}};
_.r.ready=function(){var c=document.querySelector("yt-live-chat-app");c&&c.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.r.attached=function(){this.allowAnimations=!1};
_.r.dataChanged=function(){if(this.data){var c={"--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)};_.la(this.hostElement,c);this.allowAnimations=!0}};
_.r.messageChanged=function(){var c,f=(c=this.data)==null?void 0:c.message;c=_.r1(_.r1(this.hostElement).querySelector("#message"));c.textContent="";f&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f))};
_.r.computeShowOnlyHeader=function(c,f){return!c||c.pdgLikeButton||c.replyButton||c.buyFlowButton?!1:this.isEmpty(c,f)&&!c.footer};
_.r.computeShowFooterDivider=function(c,f,d){return c?!!c.footer&&!this.isEmpty(c,f)&&!d:!1};
_.r.computeIsUserEditable=function(c){return!!c.inputField};
_.r.computeHasHeartButton=function(c){return(c==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(c==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(c==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.r.computeNoveltyImage=function(c){if(c.headerOverlayImage&&c.headerOverlayImage.thumbnails.length){var f=c.headerOverlayImage.thumbnails[0],d,q;if((d=c.pdgPurchasedNoveltyLoggingDirectives)==null?0:(q=d.loggingDirectives)==null?0:q.trackingParams){var Z,M;W7M((Z=c.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=Z.loggingDirectives)==null?void 0:M.trackingParams)}return f.width||0}return 0};
_.r.computeAuthorPhotoSize=function(c){return(c==null?0:c.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.r.inputFocus=function(){var c=_.r1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");c&&c.focus()};
_.r.inputInsertEmoji=function(c){var f=_.r1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");f&&f.insertEmoji(c)};
_.r.inputMessage=function(){var c=_.r1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),f;return c&&((f=this.data)==null?0:f.inputField)?(c.completeEmojis(),_.RT(c.liveChatRichMessageInput)):null};
_.r.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.r.isEmpty=function(c,f){return c?c.empty||!(c.message||c.inputField||f):!0};
_.r.onLowerBuyButtonClick=function(){var c,f=_.b((c=this.data)==null?void 0:c.buyButton,_.WQ);f&&f.trackingParams&&!fFN(f.command)&&(c=_.Q1(f.trackingParams))&&(f=_.X2())&&_.Rc(f,c)};
_.r.shouldSupportWholeItemClick=function(){return!0};
_.ci.Object.defineProperties(G1.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?0:c.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
G1.prototype.isDeletedChanged=G1.prototype.isDeletedChanged;G1.prototype.messageChanged=G1.prototype.messageChanged;G1.prototype.dataChanged=G1.prototype.dataChanged;_.y([_.Q(CzH.YtPdgLiveChatItemBehavior),_.D("design:type",Object)],G1.prototype,"ytPdgLiveChatItemBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],G1.prototype,"ytLiveChatReduxBehavior",void 0);
_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],G1.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],G1.prototype,"data",void 0);_.y([_.L({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:wp4}),_.D("design:type",Object)],G1.prototype,"engagementState",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.D("design:type",Boolean)],G1.prototype,"isUserEditable",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.D("design:type",Boolean)],G1.prototype,"hasHeartButton",void 0);_.y([_.L({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.D("design:type",Boolean)],G1.prototype,"showOnlyHeader",void 0);
_.y([_.L({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.D("design:type",Boolean)],G1.prototype,"showFooterDivider",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Object)],G1.prototype,"allowAnimations",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],G1.prototype,"dashboardMoneyFeed",void 0);_.y([_.L({computed:"computeNoveltyImage(data)"}),_.D("design:type",Number)],G1.prototype,"noveltyWidth",void 0);
_.y([_.L({computed:"computeAuthorPhotoSize(data)"}),_.D("design:type",Number)],G1.prototype,"authorPhotoSize",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],G1.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],G1.prototype,"noPadding",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],G1.prototype,"dataChanged",null);
_.y([_.m5("data.message"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],G1.prototype,"messageChanged",null);_.y([_.S("data","dashboardMoneyFeed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],G1.prototype,"hideLowerBumper",null);_.y([_.m5("isDeleted"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],G1.prototype,"isDeletedChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],G1);
_.h(G1,"yt-live-chat-paid-message-renderer",function(){if(pMr===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;UWy===void 0&&(UWy=document.createElement("template"));var q=UWy;d.call(f,q.content.cloneNode(!0),c.content.firstChild);pMr=c}c=pMr;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var yzv;var WsT;var cA=function(){var c=_.Fj.apply(this,arguments)||this;c._noAccessors=!0;return c};
_.K(cA,_.Fj);cA.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.hk("openPopupConfig")};
_.y([_.Q(_.Yd.YtOpenPopupBehavior),_.D("design:type",Object)],cA.prototype,"ytOpenPopupBehavior",void 0);_.y([_.tY()],cA);_.fg=[_.Yd.YtOpenPopupBehavior,cA.prototype];var D43;var fa=[_.Fw,OFK,_.hB,_.th,_.pe,_.JM_,_.EO,_.e1K,_.Xb,yye];_.F("web_watch_get_updated_metadata_response_processing")&&fa.push(_.Cj_);_.F("web_continuation_response_processing")&&fa.push(_.Pr);var Y0M=new _.jk("RESPONSE_RECEIVED_COMMANDS"),uUN=new _.jk("RESPONSE_RECEIVED_COMMANDS");var SYC="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),QyM=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],$m4=["GET_UNSEEN_NOTIFICATION_COUNT"];var dt=function(){var c=_.Fj.apply(this,arguments)||this;c._noAccessors=!0;c.serviceEndpointHandlers=[];return c};
_.K(dt,_.Fj);dt.prototype.created=function(){var c=this;this.endpointHandlerActionMap={"yt-service-request":function(f,d,q,Z){var M;return nBk(c.hostElement,f,d,q,Z,c.serviceEndpointHandlers,(M=c.onEntitiesUpdated)==null?void 0:M.bind(c))}}};
dt.prototype.attached=function(){_.Rb(_.Pw.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
dt.prototype.detached=function(){_.Um(_.Pw.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.y([_.tY()],dt);_.en3=[dt.prototype];var NVO,IY3=function(){return NVO!==void 0?NVO:NVO=document.createElement("template")};
document.head.appendChild(IY3().content);var PQo;var Rn3=document.head,U4r=Rn3.appendChild,pGO;if(PQo===void 0){var x4F=document.createElement("template");_.n(x4F,"\x3c!--css-build:shady--\x3e");x4F.content.insertBefore(IY3().content.cloneNode(!0),x4F.content.firstChild);PQo=x4F}pGO=PQo;U4r.call(Rn3,pGO.content);var oj3,GjO=function(){return oj3!==void 0?oj3:oj3=document.createElement("template")};
document.head.appendChild(GjO().content);var c0v;var fN_=document.head,dJu=fN_.appendChild,jdr;if(c0v===void 0){var q9O=document.createElement("template");_.n(q9O,"\x3c!--css-build:shady--\x3e");q9O.content.insertBefore(GjO().content.cloneNode(!0),q9O.content.firstChild);c0v=q9O}jdr=c0v;dJu.call(fN_,jdr.content);var ZPF;_.w_("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.w_("sharingRendererButtons","buttonRenderer","ytd-button-renderer");ZPF=_.F("web_button_rework")&&_.wi("BUTTON_REWORK")||_.F("web_button_rework_with_live");_.jt=function(){var c=_.z.apply(this,arguments)||this;c.isPressed=!1;c.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return c};
_.K(_.jt,_.z);_.r=_.jt.prototype;_.r.created=function(){this.showTooltips=!0};
_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.onHintIdChanged=function(){var c=this,f,d,q=(f=this.ytButtonBehavior.data)==null?void 0:(d=f.hint)==null?void 0:d.hintRenderer;if(q&&q.hintId){f=_.kt(this.hostElement,"yt-get-opened-popups-action");f=(f&&f.length===1?f[0]:[]).length>0;var Z=null;q.hintId!=="sponsor-pre-purchase"||f?q.hintId.startsWith("sponsor-post-purchase")&&!f?Z=ty_("membership-manage"):q.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!f&&(Z=ty_("membership-freebie-join")):Z=ty_("membership-join");Z&&_.a7.addLowPriorityJob(function(){for(var M=
_.C(Z),g=M.next();!g.done;g=M.next())c.ytComponentBehavior.resolveCommand(g.value)})}};
_.r.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.r.onYtNavigate=function(c){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(c.detail.endpoint);f&&(c.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(f))};
_.r.onYtServiceRequestSent=function(c,f){this.handleServiceRequestActions(f);_.CZ(this.hostElement,"yt-service-request-sent-button-renderer")};
_.r.onServiceRequestCompleted=function(c,f){this.handleServiceRequestActions(f);_.CZ(this.hostElement,"yt-service-request-completed-button-renderer")};
_.r.updateButton=function(c){var f;if(c=(f=_.b(c,dKv))==null?void 0:f.updatedButton)this.ytButtonBehavior.data=_.b(c,_.WQ)};
_.r.handleUpdateButtonAction=function(c){var f=this.ytButtonBehavior.data;f.targetId&&c.updateButtonAction.targetId&&f.targetId===c.updateButtonAction.targetId&&this.updateButton(c)};
_.r.handleServiceRequestActions=function(c){if(c=c.actions)for(var f=0;f<c.length;f++)this.updateButton(c[f])};
_.ci.Object.defineProperties(_.jt,{template:{configurable:!0,enumerable:!0,get:function(){if(D43===void 0){var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);D43=c}c=D43;return c}}});
_.jt.prototype.onServiceRequestCompleted=_.jt.prototype.onServiceRequestCompleted;_.jt.prototype.onYtServiceRequestSent=_.jt.prototype.onYtServiceRequestSent;_.jt.prototype.onYtNavigate=_.jt.prototype.onYtNavigate;_.jt.prototype.onPressedStateChanged=_.jt.prototype.onPressedStateChanged;_.jt.prototype.onHintIdChanged=_.jt.prototype.onHintIdChanged;_.y([_.L(),_.D("design:type",Object)],_.jt.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],_.jt.prototype,"isPressed",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],_.jt.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.Bpj.YtButtonBehavior),_.D("design:type",Object)],_.jt.prototype,"ytButtonBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],_.jt.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],_.jt.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(Ea.YtRenderButtonBehavior),_.D("design:type",Object)],_.jt.prototype,"ytRenderButtonBehavior",void 0);_.y([_.m5("data.hint.hintRenderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],_.jt.prototype,"onHintIdChanged",null);_.y([_.m5("isPressed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],_.jt.prototype,"onPressedStateChanged",null);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],_.jt.prototype,"onYtNavigate",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],_.jt.prototype,"onYtServiceRequestSent",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],_.jt.prototype,"onServiceRequestCompleted",null);_.y([_.v({is:"ytd-button-renderer",disableElementRegistration:ZPF})],_.jt);var qs=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_button_rework_with_live");c.buttonOverrides={style:"overlay",type:"filled"};return c};
_.K(qs,_.z);_.r=qs.prototype;_.r.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"}}}}};
_.r.ready=function(){var c=document.querySelector("yt-live-chat-app");c&&c.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.r.dataChanged=function(){if(this.data&&this.data.sticker){var c=_.kZ(this.data.sticker.thumbnails,this.stickerWidth);c||_.ebz(c).thenCatch(function(){_.u6(new _.KD("Failed to load Super Sticker with url",c))})}};
_.r.computeAuthorPhotoSize=function(c){return(c==null?0:c.isV2Style)?32:40};
_.r.computeIsV2Style=function(c){return(c==null?0:c.isV2Style)?!0:!1};
_.r.onStickerLoaded=function(c){var f,d,q;(f=_.oV(c))==null||(d=f.parentNode)==null||(q=d.classList)==null||q.add("sticker-loaded")};
_.r.computeNoveltyImageWidth=function(c){var f,d;if(c==null?0:(f=c.headerOverlayImage)==null?0:(d=f.thumbnails)==null?0:d.length){f=c.headerOverlayImage.thumbnails[0];var q,Z;if((q=c.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Z=q.loggingDirectives)==null?0:Z.trackingParams){var M,g;W7M((M=c.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(g=M.loggingDirectives)==null?void 0:g.trackingParams)}return f.width||0}return 0};
_.r.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.r.updateStickerStyles=function(){var c=this.data;c&&(c={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(c.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(c.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(c.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(c.authorNameTextColor)},
_.la(this.hostElement,c))};
_.r.onBuyButtonClick=function(){var c,f=_.b((c=this.data)==null?void 0:c.buyButton,_.WQ);f&&!fFN(f.command)&&this.ytRendererBehavior.logExplicitClick(f)};
_.r.shouldSupportWholeItemClick=function(){return!0};
_.ci.Object.defineProperties(qs.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 c;return((c=this.data)==null?0:c.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
qs.prototype.updateStickerStyles=qs.prototype.updateStickerStyles;qs.prototype.isDeletedChanged=qs.prototype.isDeletedChanged;qs.prototype.onStickerLoaded=qs.prototype.onStickerLoaded;qs.prototype.dataChanged=qs.prototype.dataChanged;_.y([_.Q(CzH.YtPdgLiveChatItemBehavior),_.D("design:type",Object)],qs.prototype,"ytPdgLiveChatItemBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],qs.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],qs.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qs.prototype,"data",void 0);
_.y([_.L({computed:"computeAuthorPhotoSize(data)"}),_.D("design:type",Number)],qs.prototype,"authorPhotoSize",void 0);_.y([_.L(),_.D("design:type",Boolean)],qs.prototype,"isDeleted",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],qs.prototype,"dashboardMoneyFeed",void 0);_.y([_.L({computed:"computeNoveltyImageWidth(data)"}),_.D("design:type",Number)],qs.prototype,"noveltyWidth",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],qs.prototype,"modern",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.D("design:type",Boolean)],qs.prototype,"isV2Style",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qs.prototype,"dataChanged",null);_.y([_.Ta("yt-img-shadow-loaded"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],qs.prototype,"onStickerLoaded",null);
_.y([_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],qs.prototype,"stickerWidth",null);_.y([_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],qs.prototype,"stickerHeight",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],qs.prototype,"hasHeartButton",null);_.y([_.S("data","dashboardMoneyFeed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],qs.prototype,"hideLowerBumper",null);
_.y([_.m5("isDeleted"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qs.prototype,"isDeletedChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qs.prototype,"updateStickerStyles",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],qs);
_.h(qs,"yt-live-chat-paid-sticker-renderer",function(){if(WsT===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;yzv===void 0&&(yzv=document.createElement("template"));var q=yzv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);WsT=c}c=WsT;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var Ma3;var r0_;var CDo,gWj=function(){return CDo!==void 0?CDo:CDo=document.createElement("template")};
document.head.appendChild(gWj().content);var k$v,OP_=function(){return k$v!==void 0?k$v:k$v=document.createElement("template")};
document.head.appendChild(OP_().content);var lNr;var sd3,BwK=function(){return sd3!==void 0?sd3:sd3=document.createElement("template")};
document.head.appendChild(BwK().content);var iPT;var TwH=document.head,mJv=TwH.appendChild,HPv;if(iPT===void 0){var A0F=document.createElement("template");_.n(A0F,"\x3c!--css-build:shady--\x3e");A0F.content.insertBefore(BwK().content.cloneNode(!0),A0F.content.firstChild);iPT=A0F}HPv=iPT;mJv.call(TwH,HPv.content);var Y9T=document.head,F7H=Y9T.appendChild,taK;if(lNr===void 0){var Zs=document.createElement("template");_.n(Zs,"\x3c!--css-build:shady--\x3e");Zs.content.insertBefore(OP_().content.cloneNode(!0),Zs.content.firstChild);Zs.content.insertBefore(gWj().content.cloneNode(!0),Zs.content.firstChild);lNr=Zs}taK=lNr;F7H.call(Y9T,taK.content);var Ms=function(){var c=_.Fj.apply(this,arguments)||this;c.focusedIndex=0;c.verticalOffset=0;c.verticalAlign="top";c.dynamicAlign=!0;return c};
_.K(Ms,_.Fj);Ms.prototype.emojiUrl=function(c){c=_.D$(this.emojiManager,c);if(!c)return"";var f;c=(f=c.image)==null?void 0:f.thumbnails;return _.kZ(c,24)||""};
var bPT=function(c){var f;c.emojiVariants&&(f=c.data)!=null&&f.target&&_.ol(c,function(){c.set("verticalOffset",-1*c.hostElement.clientHeight);var d=_.r1(c.hostElement).querySelector("img");d&&d.focus()})};
_.r=Ms.prototype;_.r.onKeyboardEnter=function(){};
_.r.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.r.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.r.onKeyDown=function(c){switch(c.keyCode){case 13:this.onKeyboardEnter();c.preventDefault();break;case 40:this.changeFocus(1);c.preventDefault();break;case 38:this.changeFocus(-1);c.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.r.onYtEmojiSelect=function(c){var f=this,d,q,Z,M,g,O,l,m;return _.k(function(H){if(H.nextAddress==1)return q=(d=f.data)==null?void 0:d.emoji,g=((Z=q)==null?void 0:Z.stickyPrefId)||((M=q)==null?void 0:M.emojiId),l=(O=c.detail)==null?void 0:O.emojiId,g&&l&&g!==l?H.yield((m=f.emojiManager)==null?void 0:Qq_(m,q,l),2):H.return();_.gS(f.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[q,l]);_.Fm(H)})};
_.r.changeFocus=function(c){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+c+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(c=_.r1(this.hostElement).querySelector("#variants"))&&c.children[this.focusedIndex].focus())};
_.ci.Object.defineProperties(Ms.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Ms.prototype.onYtEmojiSelect=Ms.prototype.onYtEmojiSelect;Ms.prototype.onKeyDown=Ms.prototype.onKeyDown;Ms.prototype.onEmojiVariantsChanged=Ms.prototype.onEmojiVariantsChanged;Ms.prototype.onVerticalOffsetOrPositionTargetChanged=Ms.prototype.onVerticalOffsetOrPositionTargetChanged;_.y([_.Q(_.RJ),_.D("design:type",Object)],Ms.prototype,"ironOverlayBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ms.prototype,"data",void 0);_.y([_.L(),_.D("design:type",_.Wx)],Ms.prototype,"emojiManager",void 0);
_.y([_.L(),_.D("design:type",Object)],Ms.prototype,"emojiVariants",void 0);_.y([_.L(),_.D("design:type",Object)],Ms.prototype,"focusedIndex",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ms.prototype,"positionTarget",null);_.y([_.L({reflectToAttribute:!0}),_.S("verticalOffset","data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ms.prototype,"isPositioned",null);_.y([_.L(),_.D("design:type",Object)],Ms.prototype,"verticalOffset",void 0);
_.y([_.L(),_.D("design:type",Object)],Ms.prototype,"verticalAlign",void 0);_.y([_.L(),_.D("design:type",Object)],Ms.prototype,"dynamicAlign",void 0);_.y([_.m5("verticalOffset","positionTarget"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ms.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.y([_.m5("emojiVariants"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ms.prototype,"onEmojiVariantsChanged",null);
_.y([_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[KeyboardEvent]),_.D("design:returntype")],Ms.prototype,"onKeyDown",null);_.y([_.Ta("yt-emoji-select"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype",Promise)],Ms.prototype,"onYtEmojiSelect",null);_.y([_.tY()],Ms);var K7H=[Ms.prototype];var EWH;var nW_;var $J3=/medium-light|medium-dark|light|medium|dark/,QdT=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,S9v=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),rt=function(){var c=_.z.apply(this,arguments)||this;c.userSelection={left:null,right:null};c.scrollAction="lock";c.isEmojiDraftInProgress=!1;return c};
_.K(rt,_.z);_.r=rt.prototype;_.r.onClick=function(c){c=_.oV(c);c instanceof HTMLImageElement&&this.selectOrUpdateEmoji(c)};
_.r.selectOrUpdateEmoji=function(c){var f=c.getAttribute("selection");f&&(f==="default"?_.CZ(this.hostElement,"yt-emoji-select",_.D$(this.emojiManager,c.id)):f==="left"?this.userSelection=Object.assign({},this.userSelection,{left:c.src}):f==="right"?this.userSelection=Object.assign({},this.userSelection,{right:c.src}):f==="user"&&this.userSelection.left&&this.userSelection.right&&_.CZ(this.hostElement,"yt-emoji-select",_.D$(this.emojiManager,c.id)))};
_.r.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.r.onMultiSelectorThumbnailRowChanged=function(){var c,f,d;((c=this.data)==null?0:(f=c.emoji)==null?0:(d=f.multiSelectorThumbnailRow)==null?0:d.length)&&this.openSelector()};
_.r.getThumbnailFromEmojiRow=function(c){var f,d;return(c==null?void 0:(f=c.thumbnails)==null?void 0:(d=f[0])==null?void 0:d.url)||""};
_.r.getEmojiAltTextForPartialSelector=function(c){var f;return((f=this.getThumbnailFromEmojiRow(c).match(QdT))==null?void 0:f[0])||""};
_.r.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.r.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.r.getRowSelection=function(c){return["left","right"][c]};
_.r.getIdFromComposedEmoji=function(c){return(c==null?void 0:c.emojiId)||""};
_.r.getEmojiFromPartialSelections=function(c,f){if(!c&&!f)return null;var d,q,Z=(d=this.data)==null?void 0:(q=d.emoji)==null?void 0:q.variantIds;if(!Z||!Z.length)return null;var M;c=(M=c.match($J3))==null?void 0:M[0];var g;f=(g=f.match($J3))==null?void 0:g[0];if(!c||!f)return null;var O=S9v.get(c);g=S9v.get(f);if(O===g){g=Array.from(S9v.values()).filter(function(m){return m!==O}).join("|");
var l=new RegExp("^((?!("+g+")).)*"+O+"$")}else l=new RegExp(O+".*"+g);return(Z=Z.find(function(m){return l.test(m)}))&&_.D$(this.emojiManager,Z)||null};
_.r.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var c,f=this.ytEmojiSelectorBehavior.emojiUrl(((c=this.data.emoji)==null?void 0:c.emojiId)||"");_.r1(this.hostElement).querySelector('[selection="user"]').src.includes(f)||(this.isEmojiDraftInProgress=!0)}};
_.r.onDomChange=function(){bPT(this.ytEmojiSelectorBehavior)};
_.r.getFocusableElements=function(){return _.r1(this.hostElement).querySelectorAll("img").filter(function(c){return c.getAttribute("role")==="option"})};
_.r.changeFocus=function(c){var f=this.getFocusableElements();f!=null&&f.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+c+f.length)%f.length,this.ytEmojiSelectorBehavior.focusedIndex<f.length&&(c=f[this.ytEmojiSelectorBehavior.focusedIndex])&&c.focus())};
_.r.onKeyboardEnter=function(){var c=this.getFocusableElements();c!=null&&c.length&&(c=c[this.ytEmojiSelectorBehavior.focusedIndex])&&c instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(c),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.ci.Object.defineProperties(rt.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var c=this,f,d,q;return this.emojiManager&&((f=this.data)==null?0:(d=f.emoji)==null?0:(q=d.variantIds)==null?0:q.length)?this.data.emoji.variantIds.map(function(Z){return!!Z&&_.D$(c.emojiManager,Z)}).filter(function(Z){return!!Z}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var c,f=(c=this.userSelection)==null?void 0:c.left,d;c=(d=this.userSelection)==null?void 0:d.right;return f&&c?this.getEmojiFromPartialSelections(f,c):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.composedEmojiSelection)==null?0:c.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var f;c=(f=this.userSelection)==null?void 0:f.left;var d;f=(d=this.userSelection)==null?void 0:d.right;if(!c&&!f){var q;return this.ytEmojiSelectorBehavior.emojiUrl(((q=this.data.emoji)==null?void 0:q.emojiId)||"")}return c&&!f?c:!c&&f?f:""}}});
rt.prototype.onMultiSelectorThumbnailRowChanged=rt.prototype.onMultiSelectorThumbnailRowChanged;rt.prototype.onClick=rt.prototype.onClick;_.y([_.Q(_.RJ),_.D("design:type",Object)],rt.prototype,"ironOverlayBehavior",void 0);_.y([_.Q(K7H),_.D("design:type",Object)],rt.prototype,"ytEmojiSelectorBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rt.prototype,"data",void 0);_.y([_.L(),_.D("design:type",_.Wx)],rt.prototype,"emojiManager",void 0);
_.y([_.L(),_.D("design:type",Object)],rt.prototype,"userSelection",void 0);_.y([_.L(),_.D("design:type",Object)],rt.prototype,"scrollAction",void 0);_.y([_.L(),_.D("design:type",Object)],rt.prototype,"isEmojiDraftInProgress",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],rt.prototype,"emojiVariants",null);_.y([_.S("data","userSelection"),_.D("design:type",Object),_.D("design:paramtypes",[])],rt.prototype,"composedEmojiSelection",null);
_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[MouseEvent]),_.D("design:returntype")],rt.prototype,"onClick",null);_.y([_.m5("data.emoji.multiSelectorThumbnailRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rt.prototype,"onMultiSelectorThumbnailRowChanged",null);_.y([_.S("data","userSelection","composedEmojiSelection"),_.D("design:type",String),_.D("design:paramtypes",[])],rt.prototype,"draftEmojiUrl",null);
_.y([_.vj({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],rt);
_.h(rt,"yt-emoji-multi-person-selector",function(){if(nW_===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;EWH===void 0&&(EWH=document.createElement("template"));var q=EWH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);nW_=c}c=nW_;return c},{mode:2});var L73;var zS_;var Cg=function(){var c=_.z.apply(this,arguments)||this;c.tooltip_=null;return c};
_.K(Cg,_.z);_.r=Cg.prototype;_.r.dataChanged_=function(){var c;if((c=this.data)==null?0:c.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.r1(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Ok)(this.tooltip_).textContent=this.data.tooltip};
_.r.computeTargetId=function(){var c;return((c=this.data)==null?void 0:c.targetId)||""};
_.r.computeId_=function(c){return c};
_.r.computeIcon_=function(c){return _.Tu(c)};
_.r.onTap_=function(){this.active=!this.active;_.CZ(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.r.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("active-changed",this.active))};
_.ci.Object.defineProperties(Cg.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var c,f;if((c=this.data)==null?0:(f=c.icon)==null?0:f.iconType)return this.data.icon.iconType==="SUPER_STICKER";var d,q;return((d=this.data)==null?void 0:(q=d.icon)==null?void 0:q.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Cg.prototype.activeChangedForBinding=Cg.prototype.activeChangedForBinding;Cg.prototype.dataChanged_=Cg.prototype.dataChanged_;_.y([_.Q(_.e3.YtLiveChatTooltipTargetingBehavior),_.D("design:type",Object)],Cg.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Cg.prototype,"data",void 0);_.y([_.L({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.D("design:type",String)],Cg.prototype,"id",void 0);
_.y([_.L({computed:"computeTargetId(data.targetId)"}),_.D("design:type",String)],Cg.prototype,"targetId",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],Cg.prototype,"active",void 0);_.y([_.L({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.D("design:type",String)],Cg.prototype,"icon",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cg.prototype,"dataChanged_",null);
_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Cg.prototype,"iconFilled",null);_.y([_.m5("active"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cg.prototype,"activeChangedForBinding",null);_.y([_.vj({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Cg);
_.h(Cg,"yt-emoji-picker-category-button-renderer",function(){if(zS_===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;L73===void 0&&(L73=document.createElement("template"));var q=L73;d.call(f,q.content.cloneNode(!0),c.content.firstChild);zS_=c}c=zS_;return c},{mode:2});var J0K;var aNH;var gt=function(){var c=_.z.apply(this,arguments)||this;c.ariaLabel=null;c.ariaActivedescendant=null;c.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};c.JSC$14069_ignoreNextFocus_=!1;c.longPressTimeoutId=-1;return c};
_.K(gt,_.z);_.r=gt.prototype;_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.r.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.r.emojiChanged_=function(){this.changeFocus_(0,!1);for(var c=_.bP(),f=0;f<this.emoji.length;f++){var d={veType:88013,elementIndex:f},q=this.emoji[f];q.isCustomEmoji&&(q=document.querySelector(("#"+q.emojiId).replace("/","\\/")))&&(d=_.te(c,d))&&(q.visualElement=d)}};
_.r.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.r.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.r.emojiSkinToneChanged_=function(c){this.skinTone=c};
_.r.dataChanged=function(){this.data&&this.data.emojiData&&Ksv(this.emojiManager,this.data.emojiData)};
_.r.emojiUrl=function(c){c=this.getEmoji(c);if(!c)return"";var f;c=(f=c.image)==null?void 0:f.thumbnails;return _.kZ(c,24)||""};
_.r.emojiAlt=function(c){var f=this.get("image.accessibility.accessibilityData.label",c);return f?f:c.isCustomEmoji?c.shortcuts[0]:c.emojiId};
_.r.emojiAriaLabel=function(c){return c.shortcuts?c.shortcuts[0]:""};
_.r.emojiAriaSelected=function(c,f,d){return c&&d==f?"true":"false"};
_.r.getEmoji=function(c){if(this.emojiManager)return this.shouldUseStickyPreferences?njO(this.emojiManager,c):eI(this.emojiManager,c)};
_.r.computeId_=function(c){return c.categoryId||""};
_.r.computeEmoji=function(c){var f=this;return this.emojiManager?c.emojiIds?c.emojiIds.map(function(d){return d?_.D$(f.emojiManager,d):null}).filter(Nmr):c.emojiData?c.emojiData.map(function(d){var q=!!d.emojiId&&_.D$(f.emojiManager,d.emojiId);
return q?Object.assign({},q,d):null}).filter(Nmr):[]:[]};
_.r.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.r.computeAriaLabel_=function(c){return _.xC(c)};
_.r.computeAriaActivedescendant_=function(c,f){return c&&c[f]?c[f].emojiId||"":""};
_.r.handleLongPressEmojiWithVariants=function(c,f){this.changeFocusToEmoji(c.emojiId,!1);this.openVariantSelector(c,f)};
_.r.onMouseDown=function(c){var f=this;this.hostElement!==document.activeElement&&(this.JSC$14069_ignoreNextFocus_=!0);if(c.button===0){var d=_.oV(c);if(d instanceof HTMLImageElement){var q=_.r1(this.hostElement).querySelector("#repeat").itemForElement(d);this.emojiContainsVariants(q)&&(this.longPressTimeoutId=setTimeout(function(){f.handleLongPressEmojiWithVariants(q,d)},500))}}};
_.r.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.r.onFocus=function(){this.JSC$14069_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14069_ignoreNextFocus_=!1};
_.r.onBlur_=function(){this.showFocus=!1};
_.r.emojiContainsVariants=function(c){return!!(c&&c.variantIds&&c.variantIds.length)};
_.r.onClick=function(c){clearTimeout(this.longPressTimeoutId);c=_.oV(c);if(c instanceof HTMLImageElement){var f=c.id;this.changeFocusToEmoji(f,!1);var d=this.getEmoji(f),q;if(q=this.shouldUseStickyPreferences&&this.emojiContainsVariants(d)){var Z;q=!((Z=this.emojiManager.emojiMap[f])!=null&&Z.stickyPrefId)}q?(Z=_.r1(this.hostElement).querySelector("#repeat").itemForElement(c),this.openVariantSelector(Z,c)):_.CZ(this.hostElement,"yt-emoji-select",d)}};
_.r.isActiveEmojiWithVariants=function(c,f){return c&&f?f.stickyPrefId?c===f.stickyPrefId:c===f.emojiId:!1};
_.r.onCloseEmojiVariantSelector=function(c){this.activeEmojiWithVariantsId===c&&(this.activeEmojiWithVariantsId="")};
_.r.onMouseOver_=function(c){c=_.oV(c);c instanceof HTMLImageElement&&_.CZ(this.hostElement,"yt-emoji-hover",_.D$(this.emojiManager,c.id))};
_.r.changeFocus_=function(c,f){this.focusedIndex=(this.focusedIndex+c+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(c=this.emoji[this.focusedIndex],f&&(this.showFocus=!0,_.r1(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.CZ(this.hostElement,"yt-emoji-hover",c)))};
_.r.changeFocusToEmoji=function(c,f){if(c){var d=this.emoji.findIndex(function(q){return q.emojiId===c});
d!==-1&&this.changeFocus_(d-this.focusedIndex,f)}};
_.r.onKeyDown_=function(c){switch(c.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var f=this.emoji[this.focusedIndex];if(f&&f.emojiId){if(this.emojiContainsVariants(f)){var d=_.r1(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(f,d)}else _.CZ(this.hostElement,"yt-emoji-select",eI(this.emojiManager,f.emojiId)),this.hostElement.focus();c.preventDefault()}}break;case 40:this.changeFocus_(1,!0);c.preventDefault();break;case 38:this.changeFocus_(-1,!0),
c.preventDefault()}};
_.r.onEmojiStickyPreferenceChanged=function(c,f){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&c.emojiId&&c.variantIds&&c.variantIds.includes(f)&&this.activeEmojiWithVariantsId!==f&&this.setStickyEmojiPreference(c.emojiId,f)};
_.r.openVariantSelector=function(c,f){this.activeEmojiWithVariantsId=c.stickyPrefId||c.emojiId||"";_.CZ(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:c,target:f})};
_.r.setStickyEmojiPreference=function(c,f){if(this.data){var d=this.emoji.findIndex(function(Z){return Z.emojiId===c});
if(d!==-1){var q=this.emoji[d];q.stickyPrefId=f;this.set("emoji."+d,Object.assign({},q));this.activeEmojiWithVariantsId=f}}};
gt.prototype.onKeyDown_=gt.prototype.onKeyDown_;gt.prototype.onMouseOver_=gt.prototype.onMouseOver_;gt.prototype.onClick=gt.prototype.onClick;gt.prototype.onBlur_=gt.prototype.onBlur_;gt.prototype.onFocus=gt.prototype.onFocus;gt.prototype.onMouseUp=gt.prototype.onMouseUp;gt.prototype.onMouseDown=gt.prototype.onMouseDown;gt.prototype.dataChanged=gt.prototype.dataChanged;gt.prototype.disableIncrementalLoadingChanged_=gt.prototype.disableIncrementalLoadingChanged_;gt.prototype.emojiManagerChanged_=gt.prototype.emojiManagerChanged_;
gt.prototype.emojiChanged_=gt.prototype.emojiChanged_;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],gt.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gt.prototype,"data",void 0);_.y([_.L({computed:"computeId_(data)"}),_.D("design:type",String)],gt.prototype,"id",void 0);_.y([_.L({computed:"computeEmoji(data)"}),_.D("design:type",Array)],gt.prototype,"emoji",void 0);_.y([_.L(),_.D("design:type",Number)],gt.prototype,"skinTone",void 0);
_.y([_.L(),_.D("design:type",_.Wx)],gt.prototype,"emojiManager",void 0);_.y([_.L(),_.D("design:type",Boolean)],gt.prototype,"disableIncrementalLoading",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],gt.prototype,"focusedIndex",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],gt.prototype,"showFocus",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.D("design:type",Object)],gt.prototype,"ariaLabel",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.D("design:type",Object)],gt.prototype,"ariaActivedescendant",void 0);_.y([_.L({value:60}),_.D("design:type",Number)],gt.prototype,"domRepeatTargetFramerate",void 0);_.y([_.L({value:1}),_.D("design:type",Number)],gt.prototype,"domRepeatInitialCount",void 0);_.y([_.L({value:""}),_.D("design:type",String)],gt.prototype,"activeEmojiWithVariantsId",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],gt.prototype,"shouldUseStickyPreferences",void 0);_.y([_.m5("emoji"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gt.prototype,"emojiChanged_",null);_.y([_.m5("emojiManager"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gt.prototype,"emojiManagerChanged_",null);
_.y([_.m5("disableIncrementalLoading"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gt.prototype,"disableIncrementalLoadingChanged_",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gt.prototype,"dataChanged",null);_.y([_.Ta("mousedown"),_.D("design:type",Function),_.D("design:paramtypes",[Object]),_.D("design:returntype")],gt.prototype,"onMouseDown",null);
_.y([_.Ta("mouseup"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gt.prototype,"onMouseUp",null);_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gt.prototype,"onFocus",null);_.y([_.Ta("blur"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gt.prototype,"onBlur_",null);
_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],gt.prototype,"onClick",null);_.y([_.Ta("mouseover"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],gt.prototype,"onMouseOver_",null);_.y([_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],gt.prototype,"onKeyDown_",null);
_.y([_.vj({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],gt);
_.h(gt,"yt-emoji-picker-category-renderer",function(){if(aNH===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;J0K===void 0&&(J0K=document.createElement("template"));var q=J0K;d.call(f,q.content.cloneNode(!0),c.content.firstChild);aNH=c}c=aNH;return c},{mode:2});var Var;var Xpy;var uPo;var vWO;var kq=function(){var c=_.z.apply(this,arguments)||this;c.ariaLabel=null;c.ariaActivedescendant=null;c.getFormattedStringRawText=_.xC;c.JSC$14075_ignoreNextFocus_=!1;return c};
_.K(kq,_.z);_.r=kq.prototype;_.r.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")};
_.r.emojiUrl=function(c){var f,d;c=(f=eI(this.emojiManager,c,!0))==null?void 0:(d=f.image)==null?void 0:d.thumbnails;return _.kZ(c,24)||""};
_.r.emojiAlt=function(c){var f=this.get("image.accessibility.accessibilityData.label",c);return f?f:c.isCustomEmoji?c.shortcuts[0]:c.emojiId};
_.r.emojiId=function(c){return"emoji"+c};
_.r.computeId_=function(c){return c.categoryId||""};
_.r.computeAriaActivedescendant_=function(c){return this.emoji&&c<this.emoji.length?this.emojiId(c):""};
_.r.emojiChanged_=function(){this.changeFocus_(0,!1);for(var c=_.bP(),f=0;f<this.emoji.length;f++){var d={veType:88013,elementIndex:f},q=this.emoji[f];q.isCustomEmoji&&(q=document.querySelector(("#"+q.emojiId).replace("/","\\/")))&&(d=_.te(c,d))&&(q.visualElement=d)}};
_.r.computeEmoji_=function(c){var f=this;return this.emojiManager?c.emojiIds.map(function(d){return _.D$(f.emojiManager,d,!0)}).filter(ItN):[]};
_.r.titleOffsetChanged_=function(){var c=this.hostElement.getBoundingClientRect(),f=_.r1(this.hostElement).querySelector("#title").getBoundingClientRect();c=Math.max(0,Math.min(this.titleOffset,c.height-f.height));_.r1(this.hostElement).querySelector("#title").style.top=c+"px"};
_.r.onEmojiMouseOver_=function(c){_.CZ(this.hostElement,"yt-emoji-hover",c.model.item)};
_.r.onEmojiTap_=function(c){this.data.command&&(c=pph(_.ql().resolve(_.dx(Nu)),this.data.command,c),_.CZ(this.hostElement,"yt-navigate",c))};
_.r.emojiAriaLabel=function(c){return c.shortcuts[0]};
_.r.emojiAriaSelected=function(c,f,d){return c&&d==f?"true":"false"};
_.r.changeFocus_=function(c,f){var d=this.emoji.length;this.focusedIndex=(this.focusedIndex+c+d)%d;c=this.emoji[this.focusedIndex];if(f){var q;(q=_.r1(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||q.scrollIntoView(!1);_.CZ(this.hostElement,"yt-emoji-hover",c)}};
_.r.onMouseDown_=function(){this.JSC$14075_ignoreNextFocus_=!0};
_.r.onFocus_=function(){this.JSC$14075_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14075_ignoreNextFocus_=!1};
_.r.onBlur_=function(){this.showFocus=!1};
_.r.onKeyDown_=function(c){switch(c.keyCode){case 13:this.onEmojiTap_(c);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);c.preventDefault();break;case 38:this.changeFocus_(-1,!0),c.preventDefault()}};
kq.prototype.onKeyDown_=kq.prototype.onKeyDown_;kq.prototype.onBlur_=kq.prototype.onBlur_;kq.prototype.onFocus_=kq.prototype.onFocus_;kq.prototype.onMouseDown_=kq.prototype.onMouseDown_;kq.prototype.onEmojiTap_=kq.prototype.onEmojiTap_;kq.prototype.titleOffsetChanged_=kq.prototype.titleOffsetChanged_;kq.prototype.emojiChanged_=kq.prototype.emojiChanged_;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],kq.prototype,"ytComponentBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],kq.prototype,"data",void 0);_.y([_.L({computed:"computeId_(data)"}),_.D("design:type",String)],kq.prototype,"id",void 0);_.y([_.L({computed:"computeEmoji_(data)"}),_.D("design:type",Array)],kq.prototype,"emoji",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],kq.prototype,"titleOffset",void 0);_.y([_.L({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.D("design:type",Object)],kq.prototype,"ariaLabel",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.D("design:type",Object)],kq.prototype,"ariaActivedescendant",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],kq.prototype,"showFocus",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],kq.prototype,"focusedIndex",void 0);_.y([_.L(),_.D("design:type",_.Wx)],kq.prototype,"emojiManager",void 0);
_.y([_.m5("emoji"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kq.prototype,"emojiChanged_",null);_.y([_.m5("titleOffset"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kq.prototype,"titleOffsetChanged_",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],kq.prototype,"onEmojiTap_",null);
_.y([_.Ta("mousedown"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kq.prototype,"onMouseDown_",null);_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kq.prototype,"onFocus_",null);_.y([_.Ta("blur"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kq.prototype,"onBlur_",null);
_.y([_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],kq.prototype,"onKeyDown_",null);_.y([_.vj({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],kq);
_.h(kq,"yt-emoji-picker-upsell-category-renderer",function(){if(vWO===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;uPo===void 0&&(uPo=document.createElement("template"));var q=uPo;d.call(f,q.content.cloneNode(!0),c.content.firstChild);vWO=c}c=vWO;return c},{mode:2});var hSO;var wpO;var Oi=function(){var c=_.z.apply(this,arguments)||this;c.scrollAction="lock";c.verticalAlign="top";return c};
_.K(Oi,_.z);_.r=Oi.prototype;_.r.onClick=function(c){c=_.oV(c);c instanceof HTMLImageElement&&_.CZ(this.hostElement,"yt-emoji-select",_.D$(this.emojiManager,c.id))};
_.r.openSelector=function(){this.ironOverlayBehavior.open()};
_.r.onDomChange=function(){bPT(this.ytEmojiSelectorBehavior)};
_.r.computeIsFamilySelector=function(c){var f;return(c==null?void 0:(f=c.emoji)==null?void 0:f.emojiId)==="\ud83d\udc6a"};
_.r.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var c=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];c&&c.emojiId&&(_.CZ(this.hostElement,"yt-emoji-select",_.D$(this.emojiManager,c.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.ci.Object.defineProperties(Oi.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var c=this,f,d,q;return this.emojiManager&&((f=this.data)==null?0:(d=f.emoji)==null?0:(q=d.variantIds)==null?0:q.length)?this.data.emoji.variantIds.map(function(Z){return!!Z&&_.D$(c.emojiManager,Z)}).filter(function(Z){return!!Z}):[]}}});
Oi.prototype.onClick=Oi.prototype.onClick;_.y([_.Q(_.RJ),_.D("design:type",Object)],Oi.prototype,"ironOverlayBehavior",void 0);_.y([_.Q(K7H),_.D("design:type",Object)],Oi.prototype,"ytEmojiSelectorBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Oi.prototype,"data",void 0);_.y([_.L(),_.D("design:type",_.Wx)],Oi.prototype,"emojiManager",void 0);_.y([_.L(),_.D("design:type",Object)],Oi.prototype,"scrollAction",void 0);_.y([_.L(),_.D("design:type",Object)],Oi.prototype,"verticalAlign",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.D("design:type",Boolean)],Oi.prototype,"isFamilySelector",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Oi.prototype,"emojiVariants",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[MouseEvent]),_.D("design:returntype")],Oi.prototype,"onClick",null);_.y([_.vj({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Oi);
_.h(Oi,"yt-emoji-variant-selector",function(){if(wpO===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;hSO===void 0&&(hSO=document.createElement("template"));var q=hSO;d.call(f,q.content.cloneNode(!0),c.content.firstChild);wpO=c}c=wpO;return c},{mode:2});var y0y=/:/g,W7u=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],l2=function(){var c=_.z.apply(this,arguments)||this;c.emojiVariantSelector=null;c.emojiMultiPersonSelector=null;c.identity=_.Vn;c.lastAnimationTime_=0;c.animationStart_=null;c.animationEnd_=null;return c};
_.K(l2,_.z);_.r=l2.prototype;
_.r.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}}};
_.r.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Nj)};
_.r.attached=function(){_.OJ&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&EjH(this.emojiManager)};
_.r.dataChanged=function(){var c;if((c=this.data)==null?0:c.categories){c=this.emojiManager;var f=this.getCustomEmojiIds();c.pickerCustomEmojiIds=[].concat(_.LT(AzT),_.LT(f))}};
_.r.getCustomEmojiIds=function(){var c,f=(c=this.data.categories)==null?void 0:c.find(function(M){var g;return((g=M.emojiPickerCategoryRenderer)==null?void 0:g.categoryId)&&W7u.includes(M.emojiPickerCategoryRenderer.categoryId)}),d;
c=(d=this.data.categories)==null?void 0:d.find(function(M){return M.emojiPickerUpsellCategoryRenderer});
var q,Z;return[f==null?void 0:(q=f.emojiPickerCategoryRenderer)==null?void 0:q.emojiIds,c==null?void 0:(Z=c.emojiPickerUpsellCategoryRenderer)==null?void 0:Z.emojiIds].flat().filter(function(M){return!!M})};
_.r.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.r.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.r.updateCategoriesAndPlaceholderInternal=function(c,f){var d=this;c&&f&&(this.categories=c.categories||[],this.categoryButtons=c.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Nh(function(){d.updateButtons_()}))};
_.r.computeId_=function(c){return c.id||""};
_.r.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(c){return c.emojiPickerCategoryRenderer&&c.emojiPickerCategoryRenderer.emojiData}):!1};
_.r.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.r.onShowEmojiVariantSelector=function(c){var f=c.detail.emojiData;f.variantIds&&f.variantIds.length&&(f.multiSelectorThumbnailRow&&f.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:f,target:c.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:f,target:c.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.r.onIronOverlayClosed=function(c){var f=njO(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");f&&c.composedPath&&(c.composedPath().includes(_.r1(this.hostElement).querySelector("#emoji-variant-selector"))||c.composedPath().includes(_.r1(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.gS(this.hostElement,"yt-close-emoji-variant-selector",[f.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.r.onEmojiVariantSelectorMouseup=function(c){var f=c.target.firstChild;this.variantSelectorOpened&&f&&_.Nh(function(){f.noCancelOnOutsideClick=!1},100)};
_.r.onEmojiVariantSelectorMousedown=function(c){c=c.target.firstChild;this.variantSelectorOpened&&c&&(c.noCancelOnOutsideClick=!1)};
_.r.onSelectCategory_=function(c){var f=this.search!="";this.search="";for(var d=_.r1(this.hostElement).querySelector("#categories").children,q=0;q<d.length;q++){var Z=d[q];if(Z.id==c.detail.categoryId){f?(_.r1(this.hostElement).querySelector("#categories").scrollTop=Z.offsetTop,this.updateButtons_()):(this.animationStart_=_.r1(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Z.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.r.onEmojiHover_=function(c){this.placeholder=c.detail.shortcuts?c.detail.shortcuts[0]:""};
_.r.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.r.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.r.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.r.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.r.computeSearchCategory_=function(c){c=c.replace(y0y,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();c=c.split(" ");for(var f=[],d=this.emojiManager.emojis,q=0;q<d.length;q++){var Z=d[q];if(Z.searchTerms)for(var M=0;M<Z.searchTerms.length;M++){for(var g=Z.searchTerms[M].toLocaleLowerCase(),O=!1,l=0;l<c.length;l++)if(g.indexOf(c[l])!=-1){O=!0;break}if(O&&(!Z.isCustomEmoji||!Z.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Z.emojiId))){f.push(Z.emojiId);
break}}}return{categoryId:-1,emojiIds:f}};
_.r.computeSearchEmptyMessage_=function(c,f){return c&&f&&f.emojiIds&&f.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.r.computeSearching_=function(c){return this.emojiManager&&c.replace(y0y,"").length>1};
_.r.computeSkinToneHidden=function(){var c;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((c=this.data)==null||!c.hideSkinTonePicker)};
_.r.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.r.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.r.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.r.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.r.selectSkinTone_=function(c){c=Number(c.target.getAttribute("tone"));this.set("emojiManager.skinTone",c);_.gS(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[c]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.r.skinToneChanged_=function(){_.r1(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var c=_.r1(this.hostElement).querySelector("#dropdown-content").children,f=0;f<c.length;f++)f===this.skinTone?c[f].setAttribute("selected",""):c[f].removeAttribute("selected")};
_.r.animateScroll_=function(c){this.lastAnimationTime_||(this.lastAnimationTime_=c);c-=this.lastAnimationTime_;c<200?(_.r1(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*c/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.r1(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.r.searchChanged_=function(){this.updateButtons_()};
_.r.updateButtons_=function(){var c=null;if(!this.search)for(var f=_.r1(this.hostElement).querySelector("#categories").scrollTop,d=_.r1(this.hostElement).querySelector("#categories").children,q=0;q<d.length;q++){var Z=d[q];Z.offsetTop<=f&&(c=Z.id)}f=_.r1(this.hostElement).querySelector("#category-buttons").children;for(d=0;d<f.length;d++)q=f[d],q.active=q.id===c};
l2.prototype.searchChanged_=l2.prototype.searchChanged_;l2.prototype.skinToneChanged_=l2.prototype.skinToneChanged_;l2.prototype.onEmojiHover_=l2.prototype.onEmojiHover_;l2.prototype.onSelectCategory_=l2.prototype.onSelectCategory_;l2.prototype.onShowEmojiVariantSelector=l2.prototype.onShowEmojiVariantSelector;l2.prototype.updateCategoriesAndPlaceholder_=l2.prototype.updateCategoriesAndPlaceholder_;l2.prototype.dataChanged=l2.prototype.dataChanged;
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],l2.prototype,"data",void 0);_.y([_.L({value:function(){return[]}}),
_.D("design:type",Array)],l2.prototype,"categories",void 0);_.y([_.L({value:function(){return[]}}),
_.D("design:type",Array)],l2.prototype,"categoryButtons",void 0);_.y([_.L({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.D("design:type",Boolean)],l2.prototype,"disableScroll",void 0);_.y([_.L({computed:"computeId_(data)",reflectToAttribute:!0}),_.D("design:type",String)],l2.prototype,"id",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],l2.prototype,"selected",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],l2.prototype,"disableIncrementalLoading",void 0);_.y([_.L(),_.D("design:type",String)],l2.prototype,"placeholder",void 0);_.y([_.L({value:""}),_.D("design:type",String)],l2.prototype,"search",void 0);_.y([_.L({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.D("design:type",Boolean)],l2.prototype,"searching",void 0);_.y([_.L({computed:"computeSearchCategory_(search)"}),_.D("design:type",Object)],l2.prototype,"searchCategory",void 0);
_.y([_.L({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.D("design:type",Object)],l2.prototype,"searchEmptyMessage",void 0);_.y([_.L({computed:"identity(emojiManager.skinTone)"}),_.D("design:type",Number)],l2.prototype,"skinTone",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],l2.prototype,"skinToneOpened",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],l2.prototype,"variantSelectorOpened",void 0);
_.y([_.L({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.D("design:type",Boolean)],l2.prototype,"skinToneHidden",void 0);_.y([_.L(),_.D("design:type",_.Wx)],l2.prototype,"emojiManager",void 0);_.y([_.L(),_.D("design:type",Object)],l2.prototype,"emojiVariantSelector",void 0);_.y([_.L(),_.D("design:type",Object)],l2.prototype,"emojiMultiPersonSelector",void 0);
_.y([_.L({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.D("design:type",Boolean)],l2.prototype,"shouldUseStickyPreferences",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],l2.prototype,"dataChanged",null);_.y([_.m5("data","selected"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],l2.prototype,"updateCategoriesAndPlaceholder_",null);
_.y([_.Ta("yt-show-emoji-variant-selector"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],l2.prototype,"onShowEmojiVariantSelector",null);_.y([_.Ta("yt-emoji-picker-select-category"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],l2.prototype,"onSelectCategory_",null);_.y([_.Ta("yt-emoji-hover"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],l2.prototype,"onEmojiHover_",null);
_.y([_.m5("skinTone"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],l2.prototype,"skinToneChanged_",null);_.y([_.m5("search"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],l2.prototype,"searchChanged_",null);_.y([_.vj({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],l2);
_.h(l2,"yt-emoji-picker-renderer",function(){if(Xpy===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Var===void 0&&(Var=document.createElement("template"));var q=Var;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Xpy=c}c=Xpy;return c},{mode:2});var si=function(){var c=_.z.apply(this,arguments)||this;c.emojiManager=_.Nj;c.isDarkTheme=document.documentElement.hasAttribute("dark");c.selectedIndex=1;c.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return c};
_.K(si,_.z);_.r=si.prototype;_.r.handleEmojiCustomizationVisible=function(c){this.emojiPickerRenderer.selected=c;this.selectedIndex=1;c?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.r.emojiCustomizationSetChanged=function(){var c;(c=this.data)!=null&&c.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.UC(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.r.updateSaveButtonState=function(c){var f;(f=this.data)!=null&&f.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.ER("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:c}))};
_.r.emojiUrl=function(c){c=_.D$(this.emojiManager,c);if(!c)return"";var f;c=(f=c.image)==null?void 0:f.thumbnails;return _.kZ(c,24)||""};
_.r.emojiAlt=function(c){var f=_.D$(this.emojiManager,c);if(!f)return c;var d,q,Z,M=(f==null?void 0:(d=f.image)==null?void 0:(q=d.accessibility)==null?void 0:(Z=q.accessibilityData)==null?void 0:Z.label)||"";return M?M:f.isCustomEmoji?f.shortcuts[0]:f.emojiId||c};
_.r.emojiAriaLabel=function(c){var f,d;return((f=_.D$(this.emojiManager,c))==null?void 0:(d=f.shortcuts)==null?void 0:d[0])||c};
_.r.onEmojiClick=function(c){c.model.index!==0&&(this.selectedIndex=c.model.index)};
_.r.onEmojiSelect=function(c){c=c.detail;var f,d;((f=this.data)==null?0:f.emojiCustomizationSetEntityKey)&&((d=this.emojiCustomizationSet)==null?0:d.emojiId)&&c.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,c.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.ER("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,c.emojiId,this.selectedIndex)}))};
_.r.canEditEmoji=function(c,f,d){c=c.indexOf(f);return c===d||c===0||d===0?!1:!0};
_.r.getUpdatedEmojiIdList=function(c,f,d){var q=c.indexOf(f);c=[].concat(_.LT(c));q>=0&&(c[q]=c[d]);c[d]=f;return c};
_.ci.Object.defineProperties(si,{template:{configurable:!0,enumerable:!0,get:function(){if(r0_===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Ma3===void 0&&(Ma3=document.createElement("template"));var q=Ma3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);r0_=c}c=r0_;return c}}});
si.prototype.onEmojiSelect=si.prototype.onEmojiSelect;_.y([_.Q(_.DV),_.D("design:type",Object)],si.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],si.prototype,"ytActionHandlerBehavior",void 0);_.y([_.AY("yt-emoji-picker-renderer"),_.D("design:type",Object)],si.prototype,"emojiPickerRenderer",void 0);
_.y([_.L({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(c,f){return _.Bb(c.entities,"emojiCustomizationSetEntity",f)},
observer:"emojiCustomizationSetChanged"}),_.D("design:type",Object)],si.prototype,"emojiCustomizationSet",void 0);_.y([_.L(),_.D("design:type",Object)],si.prototype,"originalEmojiSet",void 0);_.y([_.L(),_.D("design:type",_.Wx)],si.prototype,"emojiManager",void 0);_.y([_.L(),_.D("design:type",Object)],si.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],si.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",Object)],si.prototype,"selectedIndex",void 0);
_.y([_.Ta("yt-emoji-select"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],si.prototype,"onEmojiSelect",null);_.y([_.vj({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],si);var DJ3;var eSF;var NwF;var INT;var BA=function(){var c=_.z.apply(this,arguments)||this;c.authorBadges=[];return c};
_.K(BA,_.z);_.r=BA.prototype;_.r.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.r.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]]"}}}}}};
_.r.dataChanged=function(){var c=Tve(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",c)};
_.r.updateMessage=function(){var c=this.data.message,f=_.r1(_.r1(this.hostElement).querySelector("#message"));f.textContent="";c&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(c))};
_.r.shouldSupportWholeItemClick=function(){return!0};
_.r.onShowOriginalClick=function(c){c.preventDefault();this.showOriginal=!0};
_.r.computeShowBar=function(c,f,d){return c&&f||d};
_.r.computeAuthorBadges=function(c){return c.authorBadges||[]};
_.r.computeAuthorIsOwner=function(c){return!!mbG(c.authorBadges,"owner")};
_.r.computeAuthorNameColor=function(c){var f;if(_.F("live_chat_author_name_color_usernames")&&(c==null?0:(f=c.authorName)==null?0:f.simpleText))return _.bAk(_.KQl(c.authorName.simpleText));if(_.F("live_chat_seed_color_usernames")&&(c==null?0:c.authorSeedColorArgb))return _.bAk(_.Bh(c.authorSeedColorArgb));if(_.F("live_chat_colored_usernames"))return"#cc0000";var d;return _.F("live_chat_simple_color_usernames")&&(c==null?0:(d=c.authorName)==null?0:d.simpleText)&&(c==null?0:c.authorUsernameColorLight)&&
(c==null?0:c.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Bh(c.authorUsernameColorDark):_.Bh(c.authorUsernameColorLight):""};
BA.prototype.updateMessage=BA.prototype.updateMessage;BA.prototype.dataChanged=BA.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],BA.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],BA.prototype,"data",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],BA.prototype,"showOriginal",void 0);_.y([_.L({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.D("design:type",Boolean)],BA.prototype,"isDimmed",void 0);_.y([_.L({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.D("design:type",Boolean)],BA.prototype,"showBar",void 0);
_.y([_.L({computed:"computeAuthorBadges(data)"}),_.D("design:type",Array)],BA.prototype,"authorBadges",void 0);_.y([_.L({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],BA.prototype,"authorIsOwner",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],BA.prototype,"inCollapsedBanner",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],BA.prototype,"inBanner",void 0);
_.y([_.L({value:_.F("live_chat_hide_avatars"),reflectToAttribute:!0}),_.D("design:type",Boolean)],BA.prototype,"avatarHidden",void 0);_.y([_.L({computed:"computeAuthorNameColor(data)"}),_.D("design:type",String)],BA.prototype,"authorNameColor",void 0);_.y([_.L(),_.D("design:type",_.py)],BA.prototype,"participantsManager",void 0);_.y([_.L({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.D("design:type",Object)],BA.prototype,"filledButtonOverrides",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],BA.prototype,"dataChanged",null);_.y([_.m5("data.message"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],BA.prototype,"updateMessage",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],BA);
_.h(BA,"yt-live-chat-text-message-renderer",function(){if(INT===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;NwF===void 0&&(NwF=document.createElement("template"));var q=NwF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);INT=c}c=INT;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var i2=function(){var c=_.z.apply(this,arguments)||this;c.tonalButtonOverrides={type:"tonal",style:"overlay"};return c};
_.K(i2,_.z);
i2.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]]"}}}}}};
i2.prototype.shouldSupportInlineActionButtons=function(){return!0};
i2.prototype.shouldSupportWholeItemClick=function(){return!0};
_.ci.Object.defineProperties(i2.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],i2.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],i2.prototype,"data",void 0);_.y([_.L(),_.D("design:type",_.py)],i2.prototype,"participantsManager",void 0);
_.y([_.L(),_.D("design:type",Object)],i2.prototype,"tonalButtonOverrides",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.infoDialogButton"),_.D("design:type",Object),_.D("design:paramtypes",[])],i2.prototype,"hasInfoDialogButton",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],i2);
_.h(i2,"yt-live-chat-auto-mod-message-renderer",function(){if(eSF===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;DJ3===void 0&&(DJ3=document.createElement("template"));var q=DJ3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);eSF=c}c=eSF;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var PDH;var RSK;var UJH;var ppT=function(){return _.z.apply(this,arguments)||this};
_.K(ppT,_.z);_.y([_.L(),_.D("design:type",Object)],ppT.prototype,"data",void 0);_.y([_.v({is:"ytd-factoid-renderer",disableElementRegistration:!0})],ppT);
_.h(ppT,"ytd-factoid-renderer",function(){if(UJH!==void 0)return UJH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return UJH=c},{mode:1});var Tt=function(){return _.z.apply(this,arguments)||this};
_.K(Tt,_.z);Tt.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.y([_.L(),_.D("design:type",Object)],Tt.prototype,"data",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Tt.prototype,"ytRendererstamperBehavior",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Tt);
_.h(Tt,"yt-live-chat-channel-activity-reputation-renderer",function(){if(RSK===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;PDH===void 0&&(PDH=document.createElement("template"));var q=PDH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);RSK=c}c=RSK;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var xJv;var oW_;var mR=function(){return _.z.apply(this,arguments)||this};
_.K(mR,_.z);mR.prototype.ready=function(){var c=document.querySelector("yt-live-chat-app");c&&c.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Boolean)],mR.prototype,"menuFocused",void 0);_.y([_.L(),_.D("design:type",Object)],mR.prototype,"data",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],mR.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],mR);
_.h(mR,"yt-live-chat-donation-announcement-renderer",function(){if(oW_===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;xJv===void 0&&(xJv=document.createElement("template"));var q=xJv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);oW_=c}c=oW_;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var G$F;var cyH,ftH=function(){if(cyH!==void 0)return cyH;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;G$F===void 0&&(G$F=document.createElement("template"));var q=G$F;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return cyH=c};var HA=function(){return _.z.apply(this,arguments)||this};
_.K(HA,_.z);_.ci.Object.defineProperties(HA,{template:{configurable:!0,enumerable:!0,get:function(){return ftH()}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],HA.prototype,"data",void 0);_.y([_.vj({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],HA);_.h(HA,"yt-live-chat-empty-feed-view-model",function(){return ftH()},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var dmy;var jyv;var Ax=function(){return _.z.apply(this,arguments)||this};
_.K(Ax,_.z);Ax.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"}}}}}};
_.ci.Object.defineProperties(Ax.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var c,f;return{runs:[{text:(c=this.data)==null?void 0:(f=c.channelName)==null?void 0:f.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var c=[],f;if((f=this.data)==null||!f.channelBadges)return c;var d;f=_.C((d=this.data)==null?void 0:d.channelBadges);for(d=f.next();!d.done;d=f.next()){d=_.b(d.value,D_3);var q=void 0,Z=void 0;if((q=d)==null?0:(Z=q.badgeImage)==null?0:Z.sources)q=void 0,Z={liveChatAuthorBadgeRenderer:{tooltip:d.tooltip,accessibility:{accessibilityData:{label:(q=_.b(d.rendererContext,_.Kz))==null?void 0:q.label}}}},d.badgeImage.sources[0].clientResource?Z.liveChatAuthorBadgeRenderer.icon=
{iconType:d.badgeImage.sources[0].clientResource.imageName}:Z.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:d.badgeImage.sources},c.push(Z)}return c}}});
_.y([_.L(),_.D("design:type",Object)],Ax.prototype,"data",void 0);_.y([_.S("data.channelName"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ax.prototype,"channelName",null);_.y([_.S("data.channelBadges"),_.D("design:type",Array),_.D("design:paramtypes",[])],Ax.prototype,"channelBadges",null);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Ax);
_.h(Ax,"yt-live-chat-identity-view-model",function(){if(jyv===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;dmy===void 0&&(dmy=document.createElement("template"));var q=dmy;d.call(f,q.content.cloneNode(!0),c.content.firstChild);jyv=c}c=jyv;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var qYT;var Zkv;var MHH;var ryK;var Yq=function(){var c=_.z.apply(this,arguments)||this;c.hidden=!1;c.supportsInlineActionButtons=!0;return c};
_.K(Yq,_.z);Yq.prototype.ready=function(){var c;((c=document.querySelector("yt-live-chat-app"))==null?0:c.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Yq.prototype.dataChanged=function(c){var f=(0,_.Ok)(_.r1(this.hostElement).querySelector("#detail-text"));f.textContent="";(c==null?0:c.detailText)&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(c.detailText))};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],Yq.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({observer:"dataChanged"}),_.D("design:type",Object)],Yq.prototype,"data",void 0);
_.y([_.L({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.D("design:type",Object)],Yq.prototype,"hidden",void 0);_.y([_.v({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Yq);
_.h(Yq,"yt-live-chat-legacy-paid-message-renderer",function(){if(ryK===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;MHH===void 0&&(MHH=document.createElement("template"));var q=MHH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);ryK=c}c=ryK;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var CNr;var gBo;var kIj={},FW=function(){return _.Fj.apply(this,arguments)||this};
_.K(FW,_.Fj);FW.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
FW.prototype.onLiveChatMembershipItemBehaviorClick=FW.prototype.onLiveChatMembershipItemBehaviorClick;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],FW.prototype,"data",void 0);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],FW.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.y([_.tY()],FW);
kIj.YtLiveChatMembershipItemBehavior=[FW.prototype,_.P.YtRendererBehavior];var tx=function(){var c=_.z.apply(this,arguments)||this;c.supportsInlineActionButtons=!0;c.hasPrimaryHeaderText=!1;c.showOnlyHeader=!1;c.authorBadges=[];c.modern=_.F("web_button_rework_with_live");c.buttonOverrides={style:"overlay",type:"filled"};return c};
_.K(tx,_.z);_.r=tx.prototype;_.r.shouldSupportInlineActionButtons=function(){return!0};
_.r.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.r.ready=function(){var c=document.querySelector("yt-live-chat-app");c&&c.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.r.messageChanged=function(){var c=this.data.message,f=(0,_.Ok)(_.r1(this.hostElement).querySelector("#message"));f.textContent="";c&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(c))};
_.r.computeHasPrimaryHeaderText=function(c){return!(!c||!c.headerPrimaryText)};
_.r.computeShowOnlyHeader=function(c,f){return this.isMessageEmpty(c,f)};
_.r.computeAuthorBadges=function(c){return c.authorBadges||[]};
_.r.isMessageEmpty=function(c,f){return!c||c.empty?!0:!c.message&&!c.inputField&&!f};
_.r.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.r.getInputElement=function(){return _.r1(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.r.inputFocus=function(){var c=this.getInputElement();c&&c.focus()};
_.r.inputInsertEmoji=function(c){var f=this.getInputElement();f&&f.insertEmoji(c)};
_.r.inputMessage=function(){var c=this.getInputElement();return c&&this.data.inputField?(c.completeEmojis(),_.RT(c.liveChatRichMessageInput)):null};
_.r.onFooterButtonClick=function(){this.data.footerButton&&_.CZ(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.r.shouldSupportWholeItemClick=function(){return!0};
tx.prototype.isDeletedChanged=tx.prototype.isDeletedChanged;tx.prototype.messageChanged=tx.prototype.messageChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],tx.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.Q(kIj.YtLiveChatMembershipItemBehavior),_.D("design:type",Object)],tx.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tx.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tx.prototype,"data",void 0);_.y([_.L({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.D("design:type",Object)],tx.prototype,"hasPrimaryHeaderText",void 0);_.y([_.L({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.D("design:type",Object)],tx.prototype,"showOnlyHeader",void 0);
_.y([_.L({computed:"computeAuthorBadges(data)"}),_.D("design:type",Array)],tx.prototype,"authorBadges",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tx.prototype,"modern",void 0);_.y([_.m5("data.message"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tx.prototype,"messageChanged",null);_.y([_.m5("isDeleted"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tx.prototype,"isDeletedChanged",null);
_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],tx);
_.h(tx,"yt-live-chat-membership-item-renderer",function(){if(gBo===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;CNr===void 0&&(CNr=document.createElement("template"));var q=CNr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);gBo=c}c=gBo;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var Oku;var ltv;var b2=function(){return _.z.apply(this,arguments)||this};
_.K(b2,_.z);b2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],b2.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],b2);
_.h(b2,"yt-live-chat-mode-change-message-renderer",function(){if(ltv===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Oku===void 0&&(Oku=document.createElement("template"));var q=Oku;d.call(f,q.content.cloneNode(!0),c.content.firstChild);ltv=c}c=ltv;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var syo;var BmF;var Kg=function(){return _.z.apply(this,arguments)||this};
_.K(Kg,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],Kg.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Kg.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Kg);
_.h(Kg,"yt-live-chat-moderation-message-renderer",function(){if(BmF===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;syo===void 0&&(syo=document.createElement("template"));var q=syo;d.call(f,q.content.cloneNode(!0),c.content.firstChild);BmF=c}c=BmF;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var ikH;var Tmo;var Ei=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_button_rework");return c};
_.K(Ei,_.z);Ei.prototype.onClick=function(){var c;if((c=this.data)!=null&&c.onClickCommand){var f;_.Hh.instance.resolveCommand((f=this.data)==null?void 0:f.onClickCommand)}};
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ei.prototype,"modern",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],Ei.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],Ei.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Ei.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Ei);
_.h(Ei,"yt-live-chat-offer-click-count-message-renderer",function(){if(Tmo===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;ikH===void 0&&(ikH=document.createElement("template"));var q=ikH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Tmo=c}c=Tmo;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var mmu;var HkK=function(){return _.z.apply(this,arguments)||this};
_.K(HkK,_.z);_.y([_.L(),_.D("design:type",Object)],HkK.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],HkK);
_.h(HkK,"yt-live-chat-placeholder-item-renderer",function(){if(mmu===void 0){var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);mmu=c}c=mmu;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var AyH;var YYo;var FOj=new Rn(7),$q=function(){var c=_.z.apply(this,arguments)||this;c.data={};return c};
_.K($q,_.z);$q.prototype.dataChanged=function(){var c;((c=this.data)==null?0:c.class)&&_.g1(this.hostElement,this.data.class,!0);var f;((f=this.oldData)==null?0:f.class)&&_.g1(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
$q.prototype.computeTimestampString=function(c){return FOj.format(new Date(c/1E3))};
$q.prototype.dataChanged=$q.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],$q.prototype,"data",void 0);_.y([_.L({computed:"computeTimestampString(data.timestampUsec)"}),_.D("design:type",String)],$q.prototype,"timestampString",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$q.prototype,"dataChanged",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],$q);
_.h($q,"yt-live-chat-server-error-message",function(){if(YYo===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;AyH===void 0&&(AyH=document.createElement("template"));var q=AyH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);YYo=c}c=YYo;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var tHy;var bk3;var Q7=function(){var c=_.z.apply(this,arguments)||this;c.defaultToFilledIcon=!1;return c};
_.K(Q7,_.z);Q7.prototype.computeHasPrimaryColorIcon=function(c){return c==="SPARK"||c==="SPONSORSHIP_STAR"};
Q7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],Q7.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Q7.prototype,"defaultToFilledIcon",void 0);_.y([_.L(),_.D("design:type",Object)],Q7.prototype,"data",void 0);
_.y([_.L({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Q7.prototype,"hasPrimaryColorIcon",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Q7);
_.h(Q7,"yt-live-chat-viewer-engagement-message-renderer",function(){if(bk3===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;tHy===void 0&&(tHy=document.createElement("template"));var q=tHy;d.call(f,q.content.cloneNode(!0),c.content.firstChild);bk3=c}c=bk3;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var KOH;var St=function(){var c=_.z.apply(this,arguments)||this;c.modernUpdate=!1;c.buttonStyle="overlay";c.buttonType="filled";return c};
_.K(St,_.z);St.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
St.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],St.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],St.prototype,"modernUpdate",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],St.prototype,"buttonStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],St.prototype,"buttonType",void 0);
_.y([_.v({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],St);
_.h(St,"ytd-ad-hover-text-button-renderer",function(){if(KOH!==void 0)return KOH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return KOH=c},{mode:1});var EBK;var Lg=function(){var c=_.z.apply(this,arguments)||this;c.buttonOverrides={size:"XS"};c.modern=_.F("web_button_rework");return c};
_.K(Lg,_.z);Lg.prototype.onHelpTap=function(c){this.data&&this.data.informationDialog&&(_.CZ(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),c.preventDefault(),c.stopPropagation())};
_.y([_.L(),_.D("design:type",Object)],Lg.prototype,"buttonOverrides",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Lg.prototype,"modern",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Lg.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Lg);
_.h(Lg,"ytd-live-chat-purchased-product-message-renderer",function(){if(EBK!==void 0)return EBK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return EBK=c},{mode:1});var nBK;var $mO;var zt=function(){var c=_.z.apply(this,arguments)||this;c.isContainerDeleted=!1;return c};
_.K(zt,_.z);zt.prototype.onContextMenuClick=function(c){this.ytLiveChatItemBehavior.showContextMenu(c)};
zt.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))};
zt.prototype.isContainerDeletedChanged=zt.prototype.isContainerDeletedChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],zt.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zt.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],zt.prototype,"isContainerDeleted",void 0);
_.y([_.L(),_.D("design:type",String)],zt.prototype,"deletedStateMessage",void 0);_.y([_.m5("isContainerDeleted"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zt.prototype,"isContainerDeletedChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],zt);
_.h(zt,"ytd-sponsorships-live-chat-header-renderer",function(){if($mO!==void 0)return $mO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $mO=c},{mode:1});var Jx=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_button_rework_with_live");c.buttonOverrides={style:"overlay",type:"filled"};return c};
_.K(Jx,_.z);Jx.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]]"}}}}}};
Jx.prototype.onCtaButtonClick=function(){var c,f=_.b((c=this.data)==null?void 0:c.optInPrompt,_.WQ);if(c=this.maybeGetButtonCommand(f)){var d;(d=_.bP())==null||d.clickCommand(c)}};
Jx.prototype.maybeGetButtonCommand=function(c){return!c||!c.command||_.b(c.command,AuT)===void 0&&_.b(c.command,H5r)===void 0?null:c.command};
Jx.prototype.shouldHideOptinPrompt=function(c,f){return!c||f};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],Jx.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Jx.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Jx.prototype,"modern",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Jx);
_.h(Jx,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(nBK!==void 0)return nBK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return nBK=c},{mode:1});var Qyu;var a0=function(){return _.z.apply(this,arguments)||this};
_.K(a0,_.z);a0.prototype.onContextMenuClick=function(c){this.ytLiveChatItemBehavior.showContextMenu(c)};
a0.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))};
a0.prototype.isDeletedChanged=a0.prototype.isDeletedChanged;_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],a0.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],a0.prototype,"data",void 0);_.y([_.m5("isDeleted"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],a0.prototype,"isDeletedChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],a0);
_.h(a0,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Qyu!==void 0)return Qyu;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Qyu=c},{mode:1});var V7=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return c};
_.K(V7,_.z);_.r=V7.prototype;
_.r.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"}}}};
_.r.handleLiveChatAction=function(c){_.b(c,anH)?this.handleMarkChatItemAsDeletedAction(_.b(c,anH)):_.b(c,JWH)&&this.handleRemoveChatItemAction(_.b(c,JWH))};
_.r.handleLiveChatActions=function(c){c.forEach(this.handleLiveChatAction,this)};
_.r.handleMarkChatItemAsDeletedAction=function(c){var f=this,d;((d=this.data)==null?0:d.items)&&this.data.items.forEach(function(q,Z){var M=Object.keys(q)[0];Object.values(q)[0].id===c.targetItemId&&f.markAsDeleted("data.items",Z,M,c.deletedStateMessage,c.showOriginalContentMessage)})};
_.r.handleRemoveChatItemAction=function(c){var f=this,d;((d=this.data)==null?0:d.items)&&this.data.items.forEach(function(q,Z){Object.values(q)[0].id===c.targetItemId&&f.splice("data.items",Z,1)})};
_.r.markAsDeleted=function(c,f,d,q,Z){c=[c,f,d].join(".");this.set(c+".deletedStateMessage",q);this.set(c+".showOriginalContentMessage",Z)};
_.y([_.L(),_.D("design:type",Object)],V7.prototype,"data",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],V7.prototype,"ytActionHandlerBehavior",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],V7);
_.h(V7,"yt-live-chat-item-display-list-renderer",function(){if(Zkv===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;qYT===void 0&&(qYT=document.createElement("template"));var q=qYT;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Zkv=c}c=Zkv;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var SY3;var LOu,zbo=function(){if(LOu!==void 0)return LOu;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;SY3===void 0&&(SY3=document.createElement("template"));var q=SY3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return LOu=c};var XW=function(){var c=_.z.apply(this,arguments)||this;c.isHeader=!1;return c};
_.K(XW,_.z);XW.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.ci.Object.defineProperties(XW,{template:{configurable:!0,enumerable:!0,get:function(){return zbo()}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],XW.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],XW.prototype,"isHeader",void 0);_.y([_.vj({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],XW);_.h(XW,"yt-live-chat-item-display-renderer",function(){return zbo()},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var JyH,atj,hbF,vB_;
JyH={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}};atj={home:"eohps",search:"eosps",watch:"eowps"};_.VHr=["watch","search","home"];
_.u2=function(){this.JSC$14186_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14186_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.hk("PRECONSTRUCTION_DELAY",0);this.signals_=_.eY();this.targetPage_=""};
_.u2.prototype.init=function(c,f){c=c===void 0?"":c;f=f===void 0?null:f;if(this.JSC$14186_isInitialized_)this.abort();else if(this.JSC$14186_isInitialized_=!0,c&&_.XFj(this,c),f){var d=_.NI(this.signals_,"pcl")?0:10,q=function(){for(var Z=0,M;M=_.VHr[Z++];)M!=c&&M!=f&&this.pendingPages_.push(M);_.uUH(this)}.bind(this);
this.signals_.parkOrScheduleJob(q,d,"pcl")}};
_.u2.prototype.abort=function(){this.fragmentJobId_&&(_.a7.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);vB_(this)};
_.XFj=function(c,f){c.JSC$14186_isInitialized_&&!c.targetPage_&&(c.targetPage_=f,hbF(c,f),c.isInitialPass_=!1,hbF(c,f),c.signals_.processSignal(atj[c.targetPage_]),vB_(c),_.uUH(c))};
_.uUH=function(c){c.pendingPages_.length&&!c.pagePreparerJobId_&&(c.pagePreparerJobId_=_.Em(_.a7,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.XFj(this,this.pendingPages_.shift())}.bind(c),c.DEFAULT_DELAY_))};
hbF=function(c,f){if(f=JyH[f])for(var d in f){var q=!1,Z=d;d.charAt(0)=="~"&&(q=!0,Z=d.substring(1));var M=f[d];M=typeof M=="object"?M:{count:M};f[d]=M;M.componentName=Z;M.count>0&&(c.isInitialPass_?q||c.isSeenDuringInitialPass_[Z]||(c.JSC$14186_queue_.push({componentName:Z,count:1,signals:M.signals}),c.isSeenDuringInitialPass_[Z]=!0,M.count--):c.JSC$14186_queue_.push(M))}};
vB_=function(c){c.JSC$14186_queue_.length=0;c.targetPage_="";c.isInitialPass_=!0;c.signals_.processSignal("eop")};
_.u2.getInstance=function(){return _.qo(_.u2)};var wFH=function(){this.signals=_.eY();this.init()};
wFH.prototype.startPreconstruction=function(){_.u2.getInstance().init(_.wi("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
wFH.prototype.init=function(){yyr(this);window.Polymer&&Duy&&MDn();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var c=_.dz.ytcsi;if(c&&c.gt&&(c=c.gt())&&c.tick&&(c.tick.aft>0||c.tick.pbs>0)&&(_.wi("IS_HOMEPAGE_COLD")||_.wi("IS_RESULTS_PAGE_COLD")||_.wi("IS_WATCH_PAGE_COLD"))){WO_(this);break a}saP(csz,this.onNotifications,this)}};
var yyr=function(c){var f=function(){c.signals.processSignal("dl")};
document.readyState==="complete"?(_.eZ(Error("sh"),"WARNING"),f()):_.DVN(window,"load",f)};
wFH.prototype.onNotifications=function(c){c.timer||(_.wi("IS_HOMEPAGE_COLD")||_.wi("IS_RESULTS_PAGE_COLD")||_.wi("IS_WATCH_PAGE_COLD"))&&WO_(this)};
var WO_=function(c){c.signals.parkOrScheduleJob(function(){c.signals.processSignal("eocs")},10,"eor")};
new wFH;var vA,DmK=function(){return _.Fj.apply(this,arguments)||this};
_.K(DmK,_.Fj);_.r=DmK.prototype;_.r.enableActiveViewMeasurement=function(c){if(this.isActiveViewEnabled(c)){var f=this.getUrlPrefixesFromCommand(c.viewableCommands);c=this.getUrlPrefixesFromCommand(c.endOfSessionCommands);if(!vA){var d=_.rx("custom_active_view_tos_timeout_ms");vA=d>0&&d!==36E5?new ctN(this.getVersion(),d):new ctN(this.getVersion())}dt4(vA,this.hostElement);j6e(vA,this.hostElement,f,c)}};
_.r.stopActiveViewMeasurement=function(){vA&&dt4(vA,this.hostElement)};
_.r.isActiveViewEnabled=function(c){return!!c&&(this.hasAtLeastOneUrl(c.viewableCommands)||this.hasAtLeastOneUrl(c.endOfSessionCommands))};
_.r.hasAtLeastOneUrl=function(c){return!!c&&c.length>0&&c[0].loggingUrls!=null&&c[0].loggingUrls.length>0};
_.r.getVersion=function(){var c=_.hk("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(c==null?void 0:c.length)===2?c[1]:null};
_.r.getUrlPrefixesFromCommand=function(c){if(!c)return[];var f=[];c=_.C(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.loggingUrls){d=_.C(d.loggingUrls);for(var q=d.next();!q.done;q=d.next())q=q.value,q.baseUrl&&f.push(q.baseUrl)}return f};
_.y([_.tY()],DmK);var hx=[DmK.prototype];var ebo=function(){return _.Fj.apply(this,arguments)||this};
_.K(ebo,_.Fj);_.ci.Object.defineProperties(ebo.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_entity_store_from_dependency_injection")?_.xE():_.Gh()}}});
_.y([_.tY()],ebo);_.wt=[XQ.prototype,ebo.prototype];var Nmj=["ytd-rich-shelf-renderer"],y7=function(){var c=_.Fj.apply(this,arguments)||this;c._noAccessors=!0;c.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";c.followUpDialogPromise=null;c.followUpDialogPromiseResolve=null;c.followUpDialogPromiseReject=null;return c};
_.K(y7,_.Fj);_.r=y7.prototype;_.r.dismissibleItemIsDismissedChanged_=function(c){_.F("kevlar_fluid_dismiss")&&(c?_.CZ(this.hostElement,"yt-dismissible-item-dismissed"):_.CZ(this.hostElement,"yt-dismissible-item-undismissed"))};
_.r.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.r.dismissibleItemReset_=function(){var c=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 _.i6(function(f,d){c.followUpDialogPromiseResolve=f;c.followUpDialogPromiseReject=d});
_.CZ(this.hostElement,"yt-enable-lockup-interaction")};
_.r.dismissibleItemOnYtServiceRequestSent_=function(c,f){f.actions&&this.dismissibleItemProcessActions(f.actions,c)};
_.r.dismissibleItemOnRequestSent=function(c){if(_.F("web_button_rework"))for(var f=_.C(c.detail),d=f.next();!d.done;d=f.next()){var q=void 0;(d=(q=_.b(d.value,_.Ti))==null?void 0:q.actions)&&this.dismissibleItemProcessActions(d,c)}};
_.r.dismissibleItemOnCommandSent=function(c,f){f&&this.dismissibleItemProcessActions(f,c)};
_.r.setAndGetDismissedContentId=function(c){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+c};
_.r.replayDismissAction=function(c){this.dismissibleItemProcessActions([c])};
_.r.dismissibleItemProcessActions=function(c,f){for(var d=0;d<c.length;d++){var q=c[d],Z=void 0;((Z=_.b(q,_.BO))==null?0:Z.commands)&&this.dismissibleItemProcessActions(_.b(q,_.BO).commands,f);if(_.b(q,_.nz)){if(Z=_.b(q,_.nz),!Z.replaceParentSection||Nmj.includes(this.hostElement.nodeName.toLowerCase()))Z.groupDismissal&&PNM(this,Z.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Z),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.ER("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:q})),q=void 0,(q=f)==null||q.stopPropagation()}else if(_.b(q,JqH))this.dismissibleItemHandleHideEnclosingAction_(),q=void 0,(q=f)==null||q.stopPropagation();else if(_.b(q,fk3))_.F("web_see_fewer_shorts_reactive_dismissal")&&(q=_.b(q,fk3),Z=void 0,((Z=q)==null?0:Z.targetGroupId)&&PNM(this,{targetGroupId:q.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.ER("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:void 0})),q=void 0,(q=f)==null||q.stopPropagation();else if(_.b(q,_.Ti))(q=_.b(q,_.Ti).actions)&&_.ll(this.hostElement,q,this.hostElement),q=void 0,(q=f)==null||q.stopPropagation();else{var M=Z=void 0;((Z=_.b(q,_.e_))==null?void 0:Z.signal)!=="TELL_US_WHY"||((M=_.b(q,_.e_))==null?0:M.targetId)&&_.F("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),q=void 0,(q=f)==null||q.stopPropagation())}}};
_.r.dismissibleItemOnYtServiceRequestCompleted_=function(c,f){var d=this.get("feedbackResponses.0.followUpDialog",f.data);d?this.followUpDialogPromiseResolve(d):f.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(f.actions,c)};
_.r.dismissibleItemHandleReplaceEnclosingAction_=function(c){this.dismissedRenderer=c.item;this.isDismissed=!0;var f=null;(f=_.r1(this.hostElement).querySelector("#dismissed"))&&_.ol(this,function(){_.xO(f)});
_.CZ(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.r.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.r.dismissibleItemHandleUndoFeedbackAction_=function(){_.CZ(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.r.dismissibleItemHandleTellUsWhySignalAction_=function(){var c=this;this.followUpDialogPromise.then(function(f){c.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:f}})})};
y7.prototype.dismissibleItemOnYtServiceRequestCompleted_=y7.prototype.dismissibleItemOnYtServiceRequestCompleted_;y7.prototype.dismissibleItemOnCommandSent=y7.prototype.dismissibleItemOnCommandSent;y7.prototype.dismissibleItemOnRequestSent=y7.prototype.dismissibleItemOnRequestSent;y7.prototype.dismissibleItemOnYtServiceRequestSent_=y7.prototype.dismissibleItemOnYtServiceRequestSent_;y7.prototype.dismissibleItemDataChanged_=y7.prototype.dismissibleItemDataChanged_;
y7.prototype.dismissibleItemIsDismissedChanged_=y7.prototype.dismissibleItemIsDismissedChanged_;_.y([_.Q(_.fg),_.D("design:type",Object)],y7.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],y7.prototype,"ytdReduxBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],y7.prototype,"isDismissed",void 0);_.y([_.L(),_.D("design:type",Object)],y7.prototype,"dismissedRenderer",void 0);
_.y([_.m5("isDismissed"),_.D("design:type",Function),_.D("design:paramtypes",[Boolean]),_.D("design:returntype")],y7.prototype,"dismissibleItemIsDismissedChanged_",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],y7.prototype,"dismissibleItemDataChanged_",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],y7.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.y([_.Ta("yt-service-request-sent-button-renderer"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],y7.prototype,"dismissibleItemOnRequestSent",null);
_.y([_.Ta("yt-dismissible-item-action"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Array]),_.D("design:returntype")],y7.prototype,"dismissibleItemOnCommandSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],y7.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.y([_.tY()],y7);_.WA=[_.fg,_.wt,y7.prototype];var Ds=function(){var c=_.Fj.apply(this,arguments)||this;c.disableGridStateAware=!1;c.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};c.currentGridClass="";return c};
_.K(Ds,_.Fj);Ds.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.ol(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var c=this.gridStateAwareGetElement();_.g1(c,"grid",!0)}};
Ds.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Ds.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.r1(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Ds.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var c="grid-disabled";else{c=_.nuO.getInstance();var f=this.get("pageSubtype");c=f&&blH.includes(f)?"grid-disabled":c.currentSnapState_?c.currentSnapState_.className:null}(f=this.gridStateAwareGetElement())&&c!==this.currentGridClass&&(c&&_.g1(f,c,!0),this.currentGridClass&&_.g1(f,this.currentGridClass,!1),this.currentGridClass=c)};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Ds.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",String)],Ds.prototype,"gridStateAwareSizingElementSelector",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ds.prototype,"disableGridStateAware",void 0);_.y([_.tY()],Ds);_.et=[Ds.prototype,_.Cy.YtActionHandlerBehavior];_.Ns=new _.jk("GUIDE_TOKEN");var PA;_.I0={};PA=function(){var c=_.Fj.apply(this,arguments)||this;c.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 c};
_.K(PA,_.Fj);_.r=PA.prototype;_.r.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.r.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var c=_.ql().resolve(_.dx(_.Ns));c&&(this.guidePersistentAndVisible=c.getGuidePersistentAndVisible(),this.activeEndpoint=c.getActiveEndpoint(),this.guideOpened=c.getGuideOpened(),this.miniGuideVisible=c.getMiniGuideVisible())};
_.r.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.r.handleGuideStateAction=function(c){this.guidePersistentAndVisible=c};
_.r.handleMiniGuideStateAction=function(c){this.miniGuideVisible=c};
_.r.handleGuideOpenedAction=function(c){this.guideOpened=c};
_.r.handleActiveEndpointAction=function(c){this.activeEndpoint=c};
PA.prototype.onActiveEndpointChange=PA.prototype.onActiveEndpointChange;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],PA.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],PA.prototype,"guidePersistentAndVisible",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],PA.prototype,"miniGuideVisible",void 0);_.y([_.L(),_.D("design:type",Object)],PA.prototype,"activeEndpoint",void 0);
_.y([_.m5("activeEndpoint"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],PA.prototype,"onActiveEndpointChange",null);_.y([_.L(),_.D("design:type",Boolean)],PA.prototype,"guideOpened",void 0);_.y([_.tY()],PA);_.I0.YtdGuideStateAwareBehavior=[];_.I0.YtdGuideStateAwareBehavior.push(PA.prototype,_.Cy.YtActionHandlerBehavior);var ItH=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],R0=function(){var c=_.Fj.apply(this,arguments)||this;c.hoverJobId=0;c.JSC$14217_touched=!1;return c};
_.K(R0,_.Fj);_.r=R0.prototype;_.r.created=function(){this.useExpandableTooltip=!ItH.includes(this.is)};
_.r.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.r.detached=function(){this.useExpandableTooltip=!1};
_.r.lockupOnDown=function(c){this.interactionElement&&!_.qY(_.x0(c),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.r.lockupOnUp=function(c){this.interactionElement&&!_.qY(_.x0(c),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.r.onTouchStart=function(){this.JSC$14217_touched=!0};
_.r.lockupOnMouseEnter=function(){var c=this,f=_.rx("kevlar_lockup_hover_delay",-1);this.JSC$14217_touched&&f>=0?(_.a7.cancelJob(this.hoverJobId),this.hoverJobId=_.a7.addJob(function(){c.lockupIsHovered=!0},8,f),this.JSC$14217_touched=!1):this.lockupIsHovered=!0};
_.r.lockupOnMouseLeave=function(){this.hoverJobId&&(_.a7.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.r.lockupOnPopupClosed=function(c,f){var d;((d=f.popupRenderer)==null?void 0:d.is)==="ytd-menu-popup-renderer"&&(c=f.popupRenderer.veData,f=_.X2(),c&&f&&_.PO(f,[c]))};
_.r.lockupOnLockupRequested=function(c){var f=c.detail.videoIds[0],d;c.detail&&f===((d=this.data)==null?void 0:d.videoId)&&(c.detail.returnValue=[this.data])};
_.r.lockupOnYtServiceRequestSent=function(c,f){if(c=f.actions)for(var d=0;d<c.length;d++){var q=c[d];if(q.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&f.ajaxPromise){var Z=void 0,M=(Z=_.b(f.endpoint,_.hB))==null?void 0:Z.playlistId;Z=void 0;q=(Z=q.removedVideoId)!=null?Z:"";Ug_(_.P_(),q,M)}else q.action==="ACTION_REMOVE_VIDEO"&&f.ajaxPromise&&(M=void 0,q=(M=q.setVideoId)!=null?M:"",_.pXo(_.P_(),q))}};
_.r.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.r.lockupOnLockupEnabled=function(){if(!this.$){var c=_.ql().resolve(_.MY).getCurrentPage(),f=this.getParentRenderer?this.getParentRenderer():void 0;_.u6(new _.KD("component not ready",this.is,this.isAttached,c==null?void 0:c.is,f==null?void 0:f.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
R0.prototype.lockupOnLockupEnabled=R0.prototype.lockupOnLockupEnabled;R0.prototype.lockupOnLockupDisabled=R0.prototype.lockupOnLockupDisabled;R0.prototype.lockupOnYtServiceRequestSent=R0.prototype.lockupOnYtServiceRequestSent;R0.prototype.lockupOnLockupRequested=R0.prototype.lockupOnLockupRequested;R0.prototype.lockupOnPopupClosed=R0.prototype.lockupOnPopupClosed;R0.prototype.lockupOnMouseLeave=R0.prototype.lockupOnMouseLeave;R0.prototype.lockupOnMouseEnter=R0.prototype.lockupOnMouseEnter;
R0.prototype.onTouchStart=R0.prototype.onTouchStart;R0.prototype.lockupOnUp=R0.prototype.lockupOnUp;R0.prototype.lockupOnDown=R0.prototype.lockupOnDown;_.y([_.L(),_.D("design:type",Object)],R0.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],R0.prototype,"lockupIsHovered",void 0);_.y([_.L(),_.D("design:type",Boolean)],R0.prototype,"lockupTouchTriggered",void 0);_.y([_.L(),_.D("design:type",Boolean)],R0.prototype,"useExpandableTooltip",void 0);
_.y([_.AY("#interaction"),_.D("design:type",Object)],R0.prototype,"interactionElement",void 0);_.y([_.Ta("down"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],R0.prototype,"lockupOnDown",null);_.y([_.Ta("up"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],R0.prototype,"lockupOnUp",null);
_.y([_.Ta("touchstart"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],R0.prototype,"onTouchStart",null);_.y([_.Ta("mouseenter"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],R0.prototype,"lockupOnMouseEnter",null);_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],R0.prototype,"lockupOnMouseLeave",null);
_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],R0.prototype,"lockupOnPopupClosed",null);_.y([_.Ta("yt-lockup-requested"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],R0.prototype,"lockupOnLockupRequested",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],R0.prototype,"lockupOnYtServiceRequestSent",null);_.y([_.Ta("yt-disable-lockup-interaction"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],R0.prototype,"lockupOnLockupDisabled",null);
_.y([_.Ta("yt-enable-lockup-interaction"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],R0.prototype,"lockupOnLockupEnabled",null);_.y([_.tY()],R0);_.Ui=[R0.prototype];_.PNu={YtdReduxBehavior:[]};_.PNu.YtdReduxBehavior.push.apply(_.PNu.YtdReduxBehavior,_.wt);var pg=function(){var c=_.Fj.apply(this,arguments)||this;c._noAccessors=!0;c.disableNowPlaying=!1;c.disableTooltips=!1;c.useHoveredProperty=!1;c.hovered=!1;c.isThumbnailHovered_=!1;c.addBackground=_.F("kevlar_thumbnail_bg");c.nowPlaying=!1;c.disableRounding=!1;c.size="small";return c};
_.K(pg,_.Fj);_.r=pg.prototype;_.r.computeThumbnailOverlaySidePanelWidth_=function(c,f){return c-f};
_.r.computeSize=function(c,f){if(!this.disableRounding){if(!c&&!f)return"small";c=Math.max(c||0,f||0);return c>=256?"large":c>=96?"medium":"small"}};
_.r.computeFinalHoveredState_=function(c,f,d){return this.nowPlaying?!1:_.F("kevlar_thumbnail_fluid")&&c?f:d};
_.r.computeHoverOverlays_=function(c,f){return c&&f?f:void 0};
_.r.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.r.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.r.checkMiniplayer_=function(){var c;if(((c=this.data)==null?0:c.playlistSetVideoId)&&_.F("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{c=_.F7();var f=c.currentEndpoint;!this.disableNowPlaying&&f&&_.b(f,_.pe)&&this.data?(f=_.b(f,_.pe),this.nowPlaying=this.data.playlistId?f.playlistId===this.data.playlistId:f.videoId===this.data.videoId,this.isVideoPlaying=c==null?void 0:c.isVideoPlaying):this.nowPlaying=!1}};
pg.prototype.checkMiniplayer_=pg.prototype.checkMiniplayer_;pg.prototype.onMouseLeave_=pg.prototype.onMouseLeave_;pg.prototype.onMouseEnter_=pg.prototype.onMouseEnter_;pg.prototype.computeHoverOverlays_=pg.prototype.computeHoverOverlays_;pg.prototype.computeFinalHoveredState_=pg.prototype.computeFinalHoveredState_;pg.prototype.computeSize=pg.prototype.computeSize;pg.prototype.computeThumbnailOverlaySidePanelWidth_=pg.prototype.computeThumbnailOverlaySidePanelWidth_;
_.y([_.Q(_.wt),_.D("design:type",Object)],pg.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pg.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],pg.prototype,"height",void 0);_.y([_.L(),_.D("design:type",Boolean)],pg.prototype,"bottomSidePanel",void 0);_.y([_.L(),_.D("design:type",Number)],pg.prototype,"width",void 0);_.y([_.L(),_.D("design:type",Object)],pg.prototype,"disableNowPlaying",void 0);
_.y([_.L({selector:_.X5}),_.D("design:type",Boolean)],pg.prototype,"miniplayerIsActive",void 0);_.y([_.L(),_.D("design:type",Object)],pg.prototype,"disableTooltips",void 0);_.y([_.L(),_.D("design:type",Object)],pg.prototype,"useHoveredProperty",void 0);_.y([_.L(),_.D("design:type",Object)],pg.prototype,"hovered",void 0);_.y([_.L(),_.D("design:type",Object)],pg.prototype,"isThumbnailHovered_",void 0);
_.y([_.L({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.D("design:type",Boolean)],pg.prototype,"finalHoveredState_",void 0);_.y([_.L({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.D("design:type",Number)],pg.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pg.prototype,"addBackground",void 0);
_.y([_.L({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.D("design:type",Object)],pg.prototype,"hoverOverlays_",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pg.prototype,"nowPlaying",void 0);_.y([_.L(),_.D("design:type",Boolean)],pg.prototype,"isVideoPlaying",void 0);_.y([_.L(),_.D("design:type",Object)],pg.prototype,"disableRounding",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.D("design:type",Object)],pg.prototype,"size",void 0);_.y([_.Ta("mouseenter"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pg.prototype,"onMouseEnter_",null);_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pg.prototype,"onMouseLeave_",null);
_.y([_.m5("data","disableNowPlaying","miniplayerIsActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pg.prototype,"checkMiniplayer_",null);_.y([_.tY()],pg);var Rbr=[pg.prototype];_.xq={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(c,f){return c+":"+_.Rk(f)},
getPlayerListener_:function(c,f,d){c=this.getPlayerListenerKey_(c,f);f=this.playerListeners_.get(c);d&&this.playerListeners_.delete(c);return f},
savePlayerListener_:function(c,f){var d=f.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(c,f),d);return d},
listenToPlayerEvent:function(c,f,d){d=this.savePlayerListener_(f,d);c.addEventListener(f,d)},
listenToPlayerEvents:function(c,f){f.forEach(function(d,q){this.listenToPlayerEvent(c,q,d)}.bind(this))},
unlistenFromPlayerEvent:function(c,f,d){d=this.getPlayerListener_(f,d,!0);c.removeEventListener(f,d)},
unlistenFromPlayerEvents:function(c,f){f.forEach(function(d,q){this.unlistenFromPlayerEvent(c,q,d)}.bind(this))}}};
_.o0=function(){};_.Umr=new _.jk("PLAYER_API_TOKEN");var cOC=!1,qZr,dpn=!1,MeM;var OR=function(c,f,d,q,Z){_.ES.call(this);var M=this;this.playerId=f;this.webPlayerContextConfig=q;this.uNX=Z;this.zoc=!1;this.api={};this.t0Q=this.hGe=null;this.eDT=new _.mu;this.nv={};this.dWv=this.prq=this.elementId=this.lUP=this.config=null;this.eKv=!1;this.j3=this.fAG=null;this.lj3={};this.wIf=["onReady"];this.lastError=null;this.kVn=NaN;this.wzm={};this.pVv=0;this.oh=this.targetElement=c;_.ln(this,this.eDT);pF3(this);d?this.pVv=setTimeout(function(){M.loadNewVideoConfig(d)},0):q&&(xm_(this),
oBo(this))};
_.K(OR,_.ES);OR.prototype.getId=function(){return this.playerId};
OR.prototype.loadNewVideoConfig=function(c){if(!this.isDisposed()){this.pVv&&(clearTimeout(this.pVv),this.pVv=0);var f=c||{};f instanceof MtO||(f=new MtO(f));this.config=f;this.setConfig(c);oBo(this);this.isReady()&&GIK(this)}};
var xm_=function(c){var f;c.webPlayerContextConfig?f=c.webPlayerContextConfig.rootElementId:f=c.config.attrs.id;c.elementId=f||c.elementId;c.elementId==="video-player"&&(c.elementId=c.playerId,c.webPlayerContextConfig?c.webPlayerContextConfig.rootElementId=c.playerId:c.config.attrs.id=c.playerId);var d;((d=c.oh)==null?void 0:d.id)===c.elementId&&(c.elementId+="-player",c.webPlayerContextConfig?c.webPlayerContextConfig.rootElementId=c.elementId:c.config.attrs.id=c.elementId)};
OR.prototype.setConfig=function(c){this.lUP=c;this.config=cO3(c);xm_(this);if(!this.prq){var f;this.prq=fir(this,((f=this.config.args)==null?void 0:f.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var d;if((d=this.config)==null?0:d.attrs)c=this.config.attrs,(f=c.width)&&this.oh&&(this.oh.style.width=yv(Number(f)||f,!0)),(c=c.height)&&this.oh&&(this.oh.style.height=yv(Number(c)||c,!0))};
var GIK=function(c){if(c.config&&c.config.loaded!==!0)if(c.config.loaded=!0,!c.config.args||c.config.args.autoplay!=="0"&&c.config.args.autoplay!==0&&c.config.args.autoplay!==!1){var f;c.api.loadVideoByPlayerVars((f=c.config.args)!=null?f:null)}else c.api.cueVideoByPlayerVars(c.config.args)},jxT=function(c){var f=!0,d=c.getPlayerElement();
d&&c.config&&(f=d.dataset.version===dpF(c));return f&&!!_.D5("yt.player.Application.create")},oBo=function(c){if(!c.isDisposed()&&!c.eKv){var f=jxT(c);
if(f&&(c.getPlayerElement()?"html5":null)==="html5")c.dWv="html5",c.isReady()||qZj(c);else if(ZBF(c),c.dWv="html5",f&&c.j3&&c.targetElement)c.targetElement.appendChild(c.j3),qZj(c);else{c.config&&(c.config.loaded=!0);var d=!1;c.fAG=function(){d=!0;var q=Meu(c,"player_bootstrap_method")?_.D5("yt.player.Application.createAlternate")||_.D5("yt.player.Application.create"):_.D5("yt.player.Application.create");var Z=c.config?cO3(c.config):void 0;q&&q(c.targetElement,Z,c.webPlayerContextConfig,c.uNX);qZj(c)};
c.eKv=!0;f?c.fAG():(_.Dz(dpF(c),c.fAG),(f=rOy(c))&&YPG(f||""),Cu3(c)&&!d&&_.fu("yt.player.Application.create",null))}}};
OR.prototype.getPlayerElement=function(){var c=_.kv(document,this.elementId);!c&&this.oh&&this.oh.querySelector&&(c=this.oh.querySelector("#"+this.elementId));return c};
var qZj=function(c){if(!c.isDisposed()){var f=c.getPlayerElement(),d=!1;f&&f.getApiInterface&&f.getApiInterface()&&(d=!0);if(d){c.eKv=!1;if(!Meu(c,"html5_remove_not_servable_check_killswitch")){var q;if((f==null?0:f.isNotServable)&&c.config&&(f==null?0:f.isNotServable((q=c.config.args)==null?void 0:q.video_id)))return}gAH(c)}else c.kVn=setTimeout(function(){qZj(c)},50)}},gAH=function(c){pF3(c);
c.zoc=!0;var f=c.getPlayerElement();if(f){c.hGe=kk3(c,f,"addEventListener");c.t0Q=kk3(c,f,"removeEventListener");var d=f.getApiInterface();d=d.concat(f.getInternalApiInterface());for(var q=c.api,Z=0;Z<d.length;Z++){var M=d[Z];q[M]||(q[M]=kk3(c,f,M))}}for(var g in c.nv)c.nv.hasOwnProperty(g)&&c.hGe&&c.hGe(g,c.nv[g]);GIK(c);c.prq&&c.prq(c.api);c.eDT.publish("onReady",c.api)},kk3=function(c,f,d){var q=f[d];
return function(){var Z=_.hv.apply(0,arguments);try{return c.lastError=null,q.apply(f,Z)}catch(M){if(d!=="sendAbandonmentPing")throw M.params=d,c.lastError=M,Z=new _.KD("PlayerProxy error in method call",{error:M,method:d,playerId:c.playerId}),Z.level="WARNING",Z;}}},pF3=function(c){c.zoc=!1;
if(c.t0Q)for(var f in c.nv)c.nv.hasOwnProperty(f)&&c.t0Q(f,c.nv[f]);for(var d in c.wzm)c.wzm.hasOwnProperty(d)&&clearTimeout(Number(d));c.wzm={};c.hGe=null;c.t0Q=null;f=c.api;for(var q in f)f.hasOwnProperty(q)&&(f[q]=null);f.addEventListener=function(Z,M){c.addEventListener(Z,M)};
f.removeEventListener=function(Z,M){c.removeEventListener(Z,M)};
f.destroy=function(){c.dispose()};
f.getLastError=function(){return c.getLastError()};
f.getPlayerType=function(){return c.getPlayerType()};
f.getCurrentVideoConfig=function(){return c.lUP};
f.loadNewVideoConfig=function(Z){c.loadNewVideoConfig(Z)};
f.isReady=function(){return c.isReady()}};
OR.prototype.isReady=function(){return this.zoc};
OR.prototype.addEventListener=function(c,f){var d=this;this.isDisposed();var q=fir(this,f);q&&(_.hP(this.wIf,c)||this.nv[c]||(f=OB_(this,c),this.hGe&&this.hGe(c,f)),this.eDT.subscribe(c,q),c==="onReady"&&this.isReady()&&setTimeout(function(){q(d.api)},0))};
OR.prototype.removeEventListener=function(c,f){this.isDisposed()||(f=fir(this,f))&&this.eDT.unsubscribe(c,f)};
var fir=function(c,f){var d=f;if(typeof f==="string"){if(c.lj3[f])return c.lj3[f];d=function(){var q=_.hv.apply(0,arguments),Z=_.D5(f);if(Z)try{Z.apply(_.dz,q)}catch(M){throw q=new _.KD("PlayerProxy error when executing callback",{error:M}),q.level="ERROR",q;}};
c.lj3[f]=d}return d?d:null},OB_=function(c,f){var d=function(q){var Z=function(){c.isDisposed();
if(!c.isDisposed())try{c.eDT.publish(f,q!=null?q:void 0)}catch(O){var g=new _.KD("PlayerProxy error when creating global callback",{error:O.message,event:f,playerId:c.playerId,data:q,originalStack:O.stack,componentStack:O.componentStack});g.level="WARNING";throw g;}};
if(Meu(c,"web_player_publish_events_immediately"))Z();else{var M=setTimeout(function(){Z();_.zV.remove(c.wzm,String(M))},0);
_.zV.add(c.wzm,String(M),!0)}};
return c.nv[f]=d};
OR.prototype.getPlayerType=function(){return this.dWv||(this.getPlayerElement()?"html5":null)};
OR.prototype.getLastError=function(){return this.lastError};
var ZBF=function(c){c.cancel();pF3(c);c.dWv=null;c.config&&(c.config.loaded=!1);var f=c.getPlayerElement();f&&(jxT(c)||!Cu3(c)?c.j3=f:(f&&f.destroy&&f.destroy(),c.j3=null));c.targetElement&&_.a_(c.targetElement)};
OR.prototype.cancel=function(){this.fAG&&_.RO4(dpF(this),this.fAG);clearTimeout(this.kVn);this.eKv=!1};
OR.prototype.disposeInternal=function(){ZBF(this);if(this.j3&&this.config&&this.j3.destroy)try{this.j3.destroy()}catch(f){var c=new _.KD("PlayerProxy error during disposal",{error:f});c.level="ERROR";throw c;}this.lj3=null;for(c in this.nv)this.nv.hasOwnProperty(c)&&delete this.nv[c];this.lUP=this.config=this.api=null;delete this.targetElement;delete this.oh;_.ES.prototype.disposeInternal.call(this)};
var Cu3=function(c){var f,d;c=(f=c.config)==null?void 0:(d=f.args)==null?void 0:d.fflags;return!!c&&c.indexOf("player_destroy_old_version=true")!==-1},dpF=function(c){return c.webPlayerContextConfig?c.webPlayerContextConfig.jsUrl:(c=c.config.assets)?c.js:""},rOy=function(c){return c.webPlayerContextConfig?c.webPlayerContextConfig.cssUrl:(c=c.config.assets)?c.css:""},Meu=function(c,f){if(c.webPlayerContextConfig)var d=c.webPlayerContextConfig.serializedExperimentFlags;
else{var q;if((q=c.config)==null?0:q.args)d=c.config.args.fflags}return(d||"").split("&").includes(f+"=true")},cO3=function(c){for(var f={},d=_.C(Object.keys(c)),q=d.next();!q.done;q=d.next()){q=q.value;
var Z=c[q];f[q]=typeof Z==="object"?_.zV.clone(Z):Z}return f};var OBG={},kkC="player_uid_"+(Math.random()*1E9>>>0);var Gt=function(c,f,d,q,Z,M){f=f===void 0?document.createElement("div"):f;this.webPlayerContextConfig=c;this.container=f;this.commandResolver=d;this.apiResolver=BaN();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.BS;q||M?liH(this):sxo(this);this.pendingPlayerResponse=q;this.pendingWatchNextResponse=Z;this.pendingPlayerVars=M;BaH(this)};
Gt.prototype.loadVideoWithPlayerResponse=function(c,f,d){this.loadVideo(c,f,d)};
Gt.prototype.loadVideoWithPlayerVars=function(c){return this.loadVideo(void 0,void 0,c)};
Gt.prototype.destroy=function(c){if(c=_.kv(document,c))c=kkC+"_"+_.Rk(c),(c=OBG[c])&&c.dispose()};
var Tar=function(c,f){var d;_.k(function(q){if(q.nextAddress==1)return c.pendingWatchNextResponse=f,c.synchronousApi?(d=c.synchronousApi,q.jumpTo(2)):q.yield(c.api,3);q.nextAddress!=2&&(d=q.yieldResult);if(!iBT(c,d))return q.return();c.pendingWatchNextResponse&&(d.updateVideoData({raw_watch_next_response:c.pendingWatchNextResponse}),c.pendingWatchNextResponse=void 0);_.Fm(q)})},iBT=function(c,f){var d;
if(!(f==null?0:(d=f.isReady)==null?0:d.call(f))){var q;_.u6(new _.KD("playerApi is falsey",{synchronousApi:c.synchronousApi,apiResolved:c.apiResolver.resolved,playerApiUndefined:f===void 0,playerApiNull:f===null,playerApiReady:(f==null?void 0:(q=f.isReady)==null?void 0:q.call(f))===!0,playerApiMethods:f?Object.keys(f):[]}));return!1}return!0},mpF=function(c,f){if(typeof c[f]==="function")return c[f]()},HB3=function(c){var f=window,d,q=(d=f.ytplayer)==null?void 0:d.bootstrapPlayerContainer;
if((d=q==null?void 0:q.firstElementChild)&&_.NU(d,"html5-video-player")){var Z,M,g=(Z=f.ytplayer)==null?void 0:(M=Z.bootstrapWebPlayerContextConfig)==null?void 0:M.contextId;Z=c.webPlayerContextConfig.contextId;if(g&&g===Z){q!==c.container&&(q=!1,mpF(d,"getPlayerState")===2&&(q=!0),c.container.appendChild(d),q||mpF(d,"playVideo"));var O;if((O=f.ytplayer)==null?0:O.bootstrapPlayerResponse)c.bootstrapPlayerResponse=f.ytplayer.bootstrapPlayerResponse}}},BaH=function(c){var f,d,q,Z,M;
_.k(function(g){if(g.nextAddress==1)return c.pageReadyOrDataAvailable?g.jumpTo(2):g.yield(c.pageReadyOrDataAvailableResolver.promise,2);if(g.nextAddress!=4)return!_.F("kevlar_player_unified_player_loading")||fie()&&jxh()?g.jumpTo(4):g.yield(CuC(),4);HB3(c);if(c.pendingPlayerResponse||c.pendingPlayerVars)f=gAN(c.pendingPlayerResponse,c.pendingWatchNextResponse,c.pendingPlayerVars),c.pendingPlayerResponse&&c.pendingPlayerResponse===c.bootstrapPlayerResponse&&(f.loaded=!0),c.bootstrapPlayerResponse=
void 0;d=sxz(c.container,f,c.webPlayerContextConfig);((q=f)==null?0:q.loaded)&&c.pendingWatchNextResponse?(Tar(c,c.pendingWatchNextResponse),c.pendingPlayerResponse=void 0,c.pendingPlayerVars=void 0):AO_(c);Z=function(O){d.removeEventListener("onReady",Z);c.synchronousApi=O;c.apiResolver.resolve(O)};
d.addEventListener("onReady",Z);c.commandResolver!==void 0&&(M=c.commandResolver,d.addEventListener("innertubeCommand",function(O){M(O)}));
_.Fm(g)})};
Gt.prototype.loadVideo=function(c,f,d){var q=this,Z,M,g,O,l,m,H,A,Y;return _.k(function(t){if(t.nextAddress==1)return q.pendingPlayerResponse=c,q.pendingWatchNextResponse=f,q.pendingPlayerVars=d,liH(q),q.synchronousApi?(Z=q.synchronousApi,t.jumpTo(2)):t.yield(q.api,3);t.nextAddress!=2&&(Z=t.yieldResult);if(!iBT(q,Z))return t.return(new Promise(function(){}));
g=new Promise(function(E){M=E});
O=function(){var E=Z.getPlayerResponse();E&&(Z.removeEventListener("onVideoDataChange",O),M(E))};
Z.addEventListener("onVideoDataChange",O);if(q.pendingPlayerResponse||q.pendingPlayerVars)q.pendingPlayerResponse&&q.pendingPlayerResponse===q.bootstrapPlayerResponse?(M(q.pendingPlayerResponse),q.pendingWatchNextResponse&&Tar(q,q.pendingWatchNextResponse)):(l=gAN(q.pendingPlayerResponse,q.pendingWatchNextResponse,q.pendingPlayerVars),(Y=(m=q.pendingPlayerResponse)==null?void 0:(H=m.playerConfig)==null?void 0:(A=H.playbackStartConfig)==null?void 0:A.startPaused)?Z.cueVideoByPlayerVars(l.args):Z.loadVideoByPlayerVars(l.args)),
AO_(q),q.bootstrapPlayerResponse=void 0;return t.return(g)})};
var sxo=function(c){if(document.readyState==="complete"||document.readyState==="interactive")liH(c);else{var f=function(){document.removeEventListener("DOMContentLoaded",f);liH(c)};
document.addEventListener("DOMContentLoaded",f)}},liH=function(c){c.pageReadyOrDataAvailable=!0;
c.pageReadyOrDataAvailableResolver.resolve()},AO_=function(c){c.pendingPlayerResponse=void 0;
c.pendingWatchNextResponse=void 0;c.pendingPlayerVars=void 0};
_.ci.Object.defineProperties(Gt.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var cP=function(c){uB.call(this,c===void 0?"document_active":c);var f=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(d){f.transition("document_disposed",{event:d})});
window.addEventListener("beforeunload",function(d){f.transition("document_disposed_preventable",{event:d})});
window.addEventListener("unload",function(d){f.transition("document_disposed",{event:d});f.hasRun=new Map})};
_.K(cP,uB);
cP.prototype.runPreventableDispose=function(c,f){if(!this.hasRun.get("document_disposed_preventable")){c(f==null?void 0:f.event);var d,q;if((f==null?0:(d=f.event)==null?0:d.defaultPrevented)||(f==null?0:(q=f.event)==null?0:q.returnValue)){f.event.returnValue||(f.event.returnValue=!0);f.event.defaultPrevented||f.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")};
cP.prototype.runDispose=function(c,f){this.hasRun.get("document_disposed")?this.transition("document_active"):(c(f==null?void 0:f.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
cP.prototype.runFlush=function(c,f){c(f==null?void 0:f.event);this.transition("document_active")};
cP.prototype.runActive=function(){};var fm=function(c){uB.call(this,c===void 0?"document_visibility_unknown":c);var f=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(d){document.visibilityState==="visible"?f.transition("document_visible",{event:d}):f.transition("document_hidden",
{event:d})});
_.F("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(d){f.transition("document_backgrounded",{event:d})}),window.addEventListener("focus",function(d){f.transition("document_foregrounded",{event:d})}))};
_.K(fm,uB);fm.prototype.runVisible=function(c,f){c(f==null?void 0:f.event);_.F("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
fm.prototype.runHidden=function(c,f){c(f==null?void 0:f.event);_.F("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
fm.prototype.runBackgrounded=function(c,f){c(f==null?void 0:f.event)};
fm.prototype.runForegrounded=function(c,f){c(f==null?void 0:f.event)};var d9=function(){this.teardownLifecycle=new cP;this.visibilityLifecycle=new fm};
d9.prototype.install=function(){var c=_.hv.apply(0,arguments),f=this;c.forEach(function(d){f.teardownLifecycle.install(d)});
c.forEach(function(d){f.visibilityLifecycle.install(d)})};var jD=function(){d9.call(this);var c={};this.install((c.document_disposed={callback:this.abortSlisAndFlush},c));_.F("combine_ve_grafts")&&(c={},this.install((c.document_disposed={callback:this.flushInteractionLoggingAttachVes},c)));c={};this.install((c.flush_logs={callback:this.logFinalPayload},c));_.F("web_log_cfg_cee_ks")||_.Em(_.a7,YZO)};
_.K(jD,d9);var iBh=function(){jD.loggingInstance||(jD.loggingInstance=new jD);return jD.loggingInstance};
jD.prototype.logFinalPayload=function(){if(_.F("web_fp_via_jspb")){var c=new mTK,f=_.X2();f&&_.b5(c,1,f);f=_.F("jspb_sparse_encoded_pivot")?new KW([{}]):new KW;_.iX(f,380,Heu,c);h9l("finalPayload",f);_.F("web_fp_via_jspb_and_json")&&_.JN("finalPayload",{csn:_.X2()})}else _.JN("finalPayload",{csn:_.X2()})};
jD.prototype.abortSlisAndFlush=function(){NTj(RE);UB!=null&&UB.flush()};
jD.prototype.flushInteractionLoggingAttachVes=function(){gey(_.bP())};
var YZO=function(){var c=_.hk("CLIENT_EXPERIMENT_EVENTS");if(c){var f=UNk();c=_.C(c);for(var d=c.next();!d.done;d=c.next())d=d.value,f(d)&&_.JN("genericClientExperimentEvent",{eventType:d});delete _.VJ.CLIENT_EXPERIMENT_EVENTS}};var Fer={};
Fer.YtPlayerBehavior=[_.xq.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 c=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.BS;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;Tae(function(){c.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.uW(this,"pan-down"),_.F("kevlar_pinch_fullscreen")&&_.S3().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.F("kevlar_pinch_fullscreen")&&_.S3().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(c,f,d){var q=this;l7(this.useUnifiedPlayer_());if(this.mainAppPlayer_)l7(!1,"MainAppPlayer already created.");else{var Z=_.F("kevlar_player_container_query_killswitch")?this.$.container:_.r1(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Gt(this.getWebPlayerContextConfig_(),Z,function(M){return _.Ae(M,q.hostElement)},c,f,d);
this.mainAppPlayer_.api.then(function(M){q.player_=M;q.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&rdo.resolve(M)})}},
loadVideoWithPlayerResponse:function(c,f){var d=this;if(this.useUnifiedPlayer_()){var q=this.watchNextData,Z,M=(Z=c.videoDetails)==null?void 0:Z.videoId,g,O,l;(Z=(g=this.watchNextData)==null?void 0:(O=g.currentVideoEndpoint)==null?void 0:(l=O.watchEndpoint)==null?void 0:l.videoId)&&M!=Z&&(q=void 0,_.F("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(c,q,f):this.createMainAppPlayer_(c,q,f);this.mainAppPlayer_.api.then(function(){_.CZ(d.hostElement,
"yt-player-updated")})}else this.update(xml(c,f))},
loadVideoWithPlayerVars:function(c){var f=this;this.useUnifiedPlayer_()?(_.F("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(c):this.createMainAppPlayer_(void 0,void 0,c),this.mainAppPlayer_.api.then(function(){_.CZ(f.hostElement,"yt-player-updated")})):this.update({args:c})},
update:function(c){var f=this;if(this.useUnifiedPlayer_())l7(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(c);var d=jY4(c.args);d&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==d&&Object.assign(c.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(c).then(function(q){_.CZ(f.hostElement,"yt-player-updated",_.F("kevlar_player_updated_obsolete_player_killswitch")?
q:void 0)})}_.XX(new _.KD("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(f.getPlayerPromise(),2);d=q.yieldResult;if(!d)throw Error("uh");c&&f.updatePlayerPlaylist_(c);_.Fm(q)})},
acquireApi_:function(c){var f=this;if(this.useUnifiedPlayer_())l7(!1,"Invalid method call in kevlar_unified_player.");else return _.a7.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(l7(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(d){f.shouldAutoplay_(c)?d.loadVideoByPlayerVars(c.args):d.cueVideoByPlayerVars(c.args)})):this.initPlayerPromise_=this.initPlayerContainer_(c),this.initPlayerPromise_},
initPlayerContainer_:function(c){var f=this;if(this.useUnifiedPlayer_())l7(!1,"Invalid method call in kevlar_unified_player.");else return l7(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.u6(Error("vh")),l7(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.F("kevlar_player_container_query_killswitch")?this.$.container:_.r1(this.hostElement).querySelector("#container"),CuC().then(function(){var d=f.initPlayer_(c);f.playerResolver_.resolve(d);
return d})},
onPlayerReady_:function(c,f){this.useUnifiedPlayer_()?l7(!1,"Invalid method call in kevlar_unified_player."):(c.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&rdo.resolve(c),f(c))},
maybeCallApiMethodOnElement_:function(c,f){if(typeof c[f]==="function")return c[f]()},
maybeAdoptBootstrapPlayer_:function(){var c=window,f,d=(f=c.ytplayer)==null?void 0:f.bootstrapPlayerContainer;if((f=d==null?void 0:d.firstElementChild)&&f.classList.contains("html5-video-player")){var q,Z,M=(q=c.ytplayer)==null?void 0:(Z=q.bootstrapWebPlayerContextConfig)==null?void 0:Z.contextId;q=this.getWebPlayerContextConfig_().contextId;if(M&&M===q){d!==this.playerContainer_&&(d=!1,this.maybeCallApiMethodOnElement_(f,"getPlayerState")===2&&(d=!0),this.playerContainer_.appendChild(f),d||this.maybeCallApiMethodOnElement_(f,
"playVideo"));var g;if((g=c.ytplayer)==null?0:g.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=c.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(c){var f=this;if(this.useUnifiedPlayer_())l7(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(d){f.maybeAdoptBootstrapPlayer_();var q=c?oBz(c):void 0;q&&q==f.bootstrapPlayerResponse_&&(c.loaded=!0);q=f.playerContainer_;var Z=f.getWebPlayerContextConfig_();q=sxz(q,c,Z);f.player_=q;f.onPlayerReadyEvent_=f.onPlayerReady_.bind(f,f.player_,d);f.player_.addEventListener("onReady",f.onPlayerReadyEvent_);f.player_.addEventListener("innertubeCommand",
f.onPlayerInnerTubeCommand_.bind(f));_.F("enable_web_shorts_captions_language_command")&&f.player_.addEventListener("captionschanged",f.storePlayerCaptionLanguage_.bind(f))})},
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(c){c.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(c){c.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var c=_.ql().resolve(_.MY).getCurrentPage();c&&c.getScrollTop()<=0?_.uW(this,"pan-down"):_.uW(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(c){c.isFullscreen()||c.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(c){c.isFullscreen()&&c.toggleFullscreen()})},
updatePlayerPlaylist_:function(c){var f=this,d,q,Z;return _.k(function(M){if(M.nextAddress==1)return d=_.ql().resolve(_.dx(_.W_)),q=!!(d&&d.playlistComponent&&d.playlistComponent.loopOn),M.yield(f.getPlayerPromise(),2);var g=Z=M.yieldResult,O=g.updatePlaylist,l=[];if(_.F("kevlar_player_playlist_use_local_index")){var m,H;var A=(H=(m=c.localCurrentIndex)!=null?m:c.currentIndex)!=null?H:0}else{var Y;A=(Y=c.currentIndex)!=null?Y:0}if(c.contents)for(m=0;m<c.contents.length;m++)if((H=c.contents[m])&&H.playlistPanelVideoRenderer)if(xjn(H)){H=
H.playlistPanelVideoRenderer;Y="";H.shortBylineText&&(Y=_.xC(H.shortBylineText));var t="";H.title?t=_.xC(H.title):H.unplayableText&&(t=_.xC(H.unplayableText));l.push({author:Y,title:t,encrypted_id:H.videoId})}else m<A&&--A;O.call(g,{index:A,list:c.playlistId?c.playlistId:"",loop:q,playlist_title:c.title,playlist_length:l.length,video:l,fetch:0,external_list:"1",title:c.title?c.title:"",playlist_author:c.ownerName?_.xC(c.ownerName):void 0});_.Fm(M)})},
focusOnPlayer:function(){_.ol(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var c=this.playerContainer_.querySelector(".html5-video-player");c&&(_.qe(_.ql().resolve(_.uS)),c.focus())}})},
preparePlayer:function(){var c=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(f){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")f();else{var d=function(){document.removeEventListener("DOMContentLoaded",d);f()};
document.addEventListener("DOMContentLoaded",d)}})).then(function(){return CuC()}).then(function(){c.initPlayerPromise_||c.preparePlayerJobId_||(c.preparePlayerJobId_=_.Em(_.a7,function(){c.initPlayerPromise_||(c.initPlayerPromise_=c.initPlayerContainer_())}))}):_.XX(new _.KD("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(c){this.useUnifiedPlayer_()?l7(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(c)||(c.args.autoplay="0")},
shouldAutoplay_:function(c){if(this.useUnifiedPlayer_())l7(!1,"Invalid method call in kevlar_unified_player.");else{var f=this.get("args.el",c);return f&&f!="detailpage"&&this.isMiniplayerActive_()||f&&(f=="sponsorshipsoffer"||f=="handlesclaiming")&&this.get("args.autoplay",c)=="0"?!1:(c=oBz(c))&&this.get("playerConfig.playbackStartConfig.startPaused",c)?!1:!0}},
isMiniplayerActive_:function(){return _.ql().resolve(_.yN).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var c=this.getPlayer();if(c){var f=c.getPlayerState();_.F("kevlar_player_check_ad_state_on_stop")&&(f=c.getPlayerState(c.getPresentingPlayerType()));f!=5&&c.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(c,f,d){d=d===void 0?!1:d;var q=this,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1)return f||(f=q.hostElement),Z=q.useUnifiedPlayer_()?!!q.mainAppPlayer_:!!q.initPlayerPromise_,Z?l.yield(q.getPlayerPromise(),2):(d?c.insertBefore(f,c.firstChild):c.appendChild(f),l.return());M=l.yieldResult;g=M.getPlayerState(M.getPresentingPlayerType());O=!1;if(g==-1||g==1||g==3)O=!0;d?c.insertBefore(f,c.firstChild):c.appendChild(f);O&&M.playVideo();M.setSize(NaN,NaN);_.Fm(l)})},
watchNextDataChanged_:function(c){var f=this;c&&(this.useUnifiedPlayer_()&&_.F("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Tar(this.mainAppPlayer_,c):this.getPlayerPromise().then(function(d){d.updateVideoData(f.computeWatchNextPlayerVars_(c))}))},
computeWatchNextPlayerVars_:function(c){if(this.useUnifiedPlayer_()&&_.F("kevlar_unified_player_update_watch_next_killswitch"))l7(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:c}},
maybeSendAbandonmentPing_:function(){var c=this.getPlayer();c&&c.getPlayerState()!=5&&c.getPlayerState()!=0&&c.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var c=_.hk("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(c=Object.assign({},c),c.rootElementId=this.playerId);c.serializedExperimentIds&&c.serializedExperimentFlags||_.u6(Error("wh"));return c},
hasWebPlayerContextConfig_:function(){return!!_.hk("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(c){this.useUnifiedPlayer_()?l7(!1,"Invalid method call in kevlar_unified_player."):_.Ae(c,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(c){var f=_.ql().resolve(_.bK);c=c==null?void 0:c.getOption("captions","track");var d=_.sx("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(c){var q,Z=(q=_.Ka(_.Tmz,d)())==null?void 0:q.value,M;q=typeof(c==null?void 0:c.translationLanguage)==="object"&&((M=c.translationLanguage)==null?void 0:M.languageName)||c.displayName||"";Z!==q&&f.store.dispatch(_.ER("stringEntity",d,{key:d,value:q.toString()}))}else f.store.dispatch(_.ER("stringEntity",
d,{key:d,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var c=_.F("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.F("kevlar_unified_player")||c}}];var teH={};teH.YtPlaylistPanelBehavior=[_.P.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(c){c=c.detail;if(c.actions.loop!=void 0||c.actions["yt-icons:loop"]!=void 0)this.loopOn=c.actions.loop||c.actions["yt-icons:loop"];if(c.actions.shuffle!=void 0||c.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=c.actions.shuffle||c.actions["yt-icons:shuffle"]},
setMenuData_:function(c){if(!c||!c.playlistButtons||c.isInfinite)return null;for(var f=c.playlistButtons.menuRenderer.topLevelButtons,d=f.length,q=0;q<d;q++)if(f[q].toggleButtonRenderer){var Z=f[q].toggleButtonRenderer;Z.defaultIcon.iconType=="LOOP"&&this.loopOn?Z.isToggled=this.loopOn:Z.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Z.isToggled=this.shuffleOn)}return c.playlistButtons}}];var bBr=function(c){Ce.call(this,c,132);this.isDocument=c===document.documentElement};
_.K(bBr,Ce);bBr.prototype.calculateScrollDelta=function(c,f,d){var q=0;c<f?q=c<f-100?-48:-8:c>f+d&&(q=c>f+d+100?48:8);return q};
bBr.prototype.JSC$11284_onMouseMove=function(c){this.isDocument||(c.clientX=c.event_.pageX,c.clientY=c.event_.pageY);Ce.prototype.JSC$11284_onMouseMove.call(this,c)};var Zb=function(){var c=_.Fj.apply(this,arguments)||this;c._noAccessors=!0;c.scrollElement=document.documentElement;c.JSC$14276_dragListGroup=null;c.dragScrollSupport=null;c.onDraggerCreated=function(f){var d=f.JSC$11280_dragger;d.scrollTarget_=c.scrollElement;f=f.draggerEl;d&&f.menuOpened&&d.setEnabled(!1)};
c.onDragStart=function(f){var d=f.draggerEl;f=f.currDragItem;var q=Object.assign({},f==null?void 0:f.data);q.trackingParams=void 0;d.data=q;d.style.position="absolute";d.style.width=(f==null?void 0:f.clientWidth)+"px";d.style.zIndex="2030";d.onDrag&&d.onDrag();_.F("web_owner_document_fallback_killswitch")?(f=document.querySelector("ytd-app"))&&_.r1(f).appendChild(d):(f=_.X1(d),(q=f.querySelector("ytd-app"))?_.r1(q).appendChild(d):f.body.appendChild(d));c.dragScrollSupport=new bBr(c.scrollElement);
c.dragScrollSupport.horizontalScrolling_=!1;d=c.dragScrollSupport;d.constrainScroll_=!!d.margin_&&!1};
c.onDrop=function(f){c.handleDrop(f);c.dragScrollSupport&&(_.GV(c.dragScrollSupport),c.dragScrollSupport=null)};
c.onReorderableScroll=function(){if(c.JSC$14276_dragListGroup){var f=c.JSC$14276_dragListGroup;O$H(f,f.currDragItem_)}};
return c};
_.K(Zb,_.Fj);Zb.prototype.detached=function(){_.KeK(this)};
_.KeK=function(c){c.JSC$14276_dragListGroup&&(_.bp(c.JSC$14276_dragListGroup,dhH,c.onDragStart),_.bp(c.JSC$14276_dragListGroup,MB3,c.onDragStart),c.JSC$14276_dragListGroup.dispose(),c.JSC$14276_dragListGroup=null);c.dragScrollSupport&&(_.GV(c.dragScrollSupport),c.dragScrollSupport=null);c.scrollElement.removeEventListener("scroll",c.onReorderableScroll)};
_.EAK=function(c,f,d,q){q=q===void 0?"":q;_.KeK(c);d&&(c.scrollElement=d);c.JSC$14276_dragListGroup=new Du;c.JSC$14276_dragListGroup.hysteresisDistance_=2;Cau(c.JSC$14276_dragListGroup,f);c.JSC$14276_dragListGroup.draggerElClasses_=sC("dragging").split(" ");q&&gE3(c.JSC$14276_dragListGroup,function(Z){var M=Z||document,g=null;M.getElementsByClassName?g=M.getElementsByClassName(q)[0]:g=DHj("*",q,Z);return g||Z});
_.Lx(c.JSC$14276_dragListGroup,cYH,c.onDraggerCreated);_.Lx(c.JSC$14276_dragListGroup,dhH,c.onDragStart);_.Lx(c.JSC$14276_dragListGroup,MB3,c.onDrop);c.JSC$14276_dragListGroup.init();c.scrollElement.addEventListener("scroll",c.onReorderableScroll,{passive:!0})};
Zb.prototype.handleDrop=function(){};
_.ci.Object.defineProperties(Zb.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.y([_.L({value:100}),_.D("design:type",Number)],Zb.prototype,"scrollMargin",void 0);_.y([_.tY()],Zb);_.nAr=[Zb.prototype];_.Me={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(c,f,d){var q=this.getClickTarget_(f);if(q&&this.isClickAllowed_(q)){f.preventDefault();c=(0,_.zV.unsafeClone)(c);var Z=this.getContainerBoundingRect();f=this.getRelativeClickXy_(f,Z);this.expandEndpointUrlMacros_(c,{NX:f[0],NY:f[1],NB:q.code});d&&this.truncateWebCommendMetadataUrl_(c);_.CZ(this.hostElement,"yt-navigate",{endpoint:c})}},
getClickTarget_:function(c){if(!this.clickTargetMap)return null;c=_.x0(c)||[];c=_.C(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;if(f===_.r1(this.hostElement).querySelector("#menu"))break;if(f=this.clickTargetMap.get(f.id))return f}return null},
getRelativeClickXy_:function(c,f){var d=c.detail.x,q=c.detail.y;_.F("use_on_click_for_desktop_display_ad")&&c.clientX!=null&&c.clientY!=null&&(d=c.clientX,q=c.clientY);c=Math.round(d-f.left);f=Math.round(q-f.top);return c<0||f<0?[null,null]:[c,f]},
getContainerBoundingRect:function(){return _.r1(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(c,f){for(var d=_.C(c.loggingUrls||[]),q=d.next();!q.done;q=d.next())q=q.value,q.baseUrl&&(q.baseUrl=o6C(q.baseUrl,f));c.urlEndpoint&&c.urlEndpoint.url&&(c.urlEndpoint.url=o6C(c.urlEndpoint.url,f));c.commandMetadata&&c.commandMetadata.webCommandMetadata&&c.commandMetadata.webCommandMetadata.url&&(c.commandMetadata.webCommandMetadata.url=o6C(c.commandMetadata.webCommandMetadata.url,f))},
truncateWebCommendMetadataUrl_:function(c){if(c.commandMetadata&&c.commandMetadata.webCommandMetadata&&c.commandMetadata.webCommandMetadata.url){var f=c.commandMetadata.webCommandMetadata.url,d=f.indexOf("&pp=");if(d>0){var q=f.indexOf("&",d+1);c.commandMetadata.webCommandMetadata.url=q>d&&q<f.length?f.slice(0,d)+f.slice(q):f.slice(0,d)}}},
configureClickTargets:function(c,f,d){this.containerId=c;this.clickTargetMap=new Map;c=_.C(f);for(f=c.next();!f.done;f=c.next())if(f=f.value,f.location){var q=d.get(f.location);q&&(_.g1(_.r1(this.hostElement).querySelector("#"+q),"yt-simple-endpoint",this.isClickAllowed_(f)),this.clickTargetMap.set(q,f))}},
isClickAllowed_:function(c){return c.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||c.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||c.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||c.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.r9={};
_.r9.YtLazyListBehavior=[_.jI.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 c=(this.constructor.generatedFrom||this).observers;c||(c=[]);c.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
c}},
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 c=this.renderElementsOutsideVisibleArea_;c&&(HMj(c,4),c.processSignal())},
deepLazyListObserver_:function(c){var f=this;if(c){var d=c.value||[];if(this.itemsPath==c.path){var q=this.nonDeferredItemCount;c=0;q>-1&&d.length>q&&(c=_.hk("REMAINING_DOVA_DEFERRED_CHUNKS",-1));c>0?(q>0&&(q=d.slice(0,q),this.setInitialItemsOnDataChanged(q)),(q=this.renderElementsOutsideVisibleArea_)?q.cancel():(q=this.renderElementsOutsideVisibleArea_=new _.Z$(2,"eocs"),_.DVN(window,"scroll",function(){return f.renderDeferredElements()})),_.Mj(q,function(){f.setInitialItemsOnDataChanged(d)}),_.Xr("REMAINING_DOVA_DEFERRED_CHUNKS",
c-1)):this.setInitialItemsOnDataChanged(d)}else if(this.itemsPath+".splices"==c.path)this.onItemsUpdated_(d);
else q="shownItems"+c.path.substr(this.itemsPath.length),this.useSignals&&q==="shownItems.length"||this.notifyPath(q,c.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(c){c&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(c),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(c){c=c.indexSplices;for(var f=0,d=c.length;f<d;f++){var q=c[f];if(q.index<this.shownCount&&(q.removed&&this.splice("shownItems",q.index,q.removed.length),q.addedCount)){var Z=q.object.slice(q.index,q.index+q.addedCount);q=["shownItems",q.index,0];q.push.apply(q,Z);this.splice.apply(this,q)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(c){this.cancelPendingTasks_();c||(c=[]);this.items_=c;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&&(_.wi("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.ol(this,this.tryRenderChunk_)))},
fillRange_:function(c,f){this.canShowMore&&this.items_&&(c=this.items_.slice(c,f),c.unshift("shownItems"),this.push.apply(this,c),this.shownCount=f,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var c=this;this.canShowMore&&_.Ia(this,"renderChunk",function(){c.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.wi("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.QH(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var c=this.renderElementsOutsideVisibleArea_;c&&(c.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var c=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(c-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=c;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(c){return Math.ceil(1E3/c)},
onCanShowMoreUpdated_:function(c){this.data&&this.items_!==null&&(c?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(c){!this.shouldUseTaskManager()&&this.data&&(!c&&this.canShowMore?(_.SIN(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):c&&this.partiallyRenderedItems_.has(this.items_)&&(_.F("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var kQ;_.Cm={};
kQ=function(){var c=_.Fj.apply(this,arguments)||this;c.atStart=!0;c.atEnd=!0;c.startIndex=0;c.endIndex=0;c.scrollCount=0;c.initialStartIndex=0;c.disableScrollEventListener=!1;c.useFloorScrolling=!1;c.isSearch=!1;c.dragging=!1;c.dragMouseStart=0;c.dragOffsetStart=0;c.disableWheelScroll=!1;c.centerListItems=!1;c.offset=0;c.minComponentWidth=0;c.marginWidthRight=0;c.marginWidthLeft=0;c.setButtonsStateRequested=!1;c.itemsVisibilityObserver=null;c.fullyVisibleItemsIndices=[];c.JSC$14287_onWheelScroll=function(f){if(c.isSearch&&
!c.disableWheelScroll&&_.F("desktop_enable_dmpanel_wheel_scroll")){var d=f.shiftKey?Math.abs(f.deltaY)>Math.abs(f.deltaX)?f.deltaY:f.deltaX:f.deltaX;d!==0&&(f.preventDefault(),c.ytLazyListBehavior.fillRemainingListItems(),c.offset+=d,g9(c),c.reposition_())}};
c.onPointerDown=function(f){$pr(c)&&(c.dragMouseStart=f.clientX,c.dragOffsetStart=c.offset,c.dragging=!0)};
c.onPointerMove=function(f){$pr(c)&&c.dragging&&(c.ytLazyListBehavior.fillRemainingListItems(),c.offset=c.dragOffsetStart-(f.clientX-c.dragMouseStart),g9(c),c.reposition_())};
c.onPointerUp=function(){$pr(c)&&(c.dragging=!1)};
return c};
_.K(kQ,_.Fj);var Qx_=function(c){var f=_.r1(c.hostElement).querySelector("#items").children;if(!f)return 0;var d=0;c=_.C(c.fullyVisibleItemsIndices);for(var q=c.next();!q.done;q=c.next())d+=f[q.value].clientWidth;return d},$pr=function(c){return c.isSearch&&_.F("desktop_enable_dmpanel_click_drag_scroll")};
kQ.prototype.created=function(){this.cachedViewportWidth=_.hk("initialInnerWidth")||window.innerWidth;this.JSC$14287_cachedViewportHeight=_.hk("initialInnerHeight")||window.innerHeight;_.hk("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Xr("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
kQ.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();SZ3(this)};
kQ.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 c;(c=this.itemsVisibilityObserver)==null||c.disconnect();this.itemsVisibilityObserver=null;var f;(f=this.itemsObserver)==null||f.disconnect()};
var SZ3=function(c){var f=_.r1(c.hostElement).querySelector("#scroll-container");if(f){if(!c.itemsVisibilityObserver){var d=window.getComputedStyle(f).marginRight;c.itemsVisibilityObserver=new IntersectionObserver(function(q){Leu(c,q)},{root:f,
rootMargin:d,threshold:.98})}if(f=_.r1(c.hostElement).querySelector("#items"))c.itemsObserver=new yE_(f,function(q){zC3(c,q)})}},zC3=function(c,f){JO3(c)&&(Array.from(f.addedNodes).filter(function(d){return d.nodeType===Node.ELEMENT_NODE}).forEach(function(d){c.itemsVisibilityObserver&&c.itemsVisibilityObserver.observe(d)}),Array.from(f.removedNodes).filter(function(d){return d.nodeType===Node.ELEMENT_NODE}).forEach(function(d){c.itemsVisibilityObserver&&c.itemsVisibilityObserver.unobserve(d)}))},
Leu=function(c,f){var d=new Set(c.fullyVisibleItemsIndices);
f=_.C(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var Z=q.target.parentElement;Z?(Z=Array.from(Z.children).indexOf(q.target),q.isIntersecting?d.add(Z):d.has(Z)&&d.delete(Z)):_.u6(new _.KD("Parent element not found",q.target.nodeName))}c.fullyVisibleItemsIndices=Array.from(d).sort(function(M,g){return M-g});
d.size===0?_.u6(new _.KD("No visible entries in horizontal list")):(c.startIndex=c.fullyVisibleItemsIndices[0],c.endIndex=c.fullyVisibleItemsIndices[c.fullyVisibleItemsIndices.length-1])},JO3=function(c){c.data?c=(c=c.data)&&c.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===c.itemSizeConstraint:!1:c=!1;
return c};
_.r=kQ.prototype;_.r.addScrollEventListeners=function(){var c=_.r1(this.hostElement).querySelector("#scroll-container");c.style.touchAction="pan-y";c.addEventListener("wheel",this.JSC$14287_onWheelScroll);c.addEventListener("pointerdown",this.onPointerDown);c.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.r.removeScrollEventListeners=function(){var c=_.r1(this.hostElement).querySelector("#scroll-container");c.removeEventListener("wheel",this.JSC$14287_onWheelScroll);c.removeEventListener("pointerdown",this.onPointerDown);c.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.r.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.ol(this,this.setStartIndex,[this.initialStartIndex])};
_.r.reposition_=function(){var c=_.hk("HTML_DIR")=="rtl"?"":"-",f=_.r1(this.hostElement).querySelector("#items");f&&(f.style.transform="translateX("+c+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.r.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.ol(this,this.setButtonsState_))};
_.r.setButtonsState_=function(){this.setButtonsStateRequested=!1;var c=_.r1(this.hostElement).querySelector("#items").firstElementChild;if(c){this.minComponentWidth||(this.minComponentWidth=ai_(this,c));c=_.r1(this.hostElement).querySelector("#scroll-container").clientWidth;var f=_.r1(this.hostElement).querySelector("#items");f=_.F("kevlar_horizontal_list_scroll_width_killswitch")?f.clientWidth:f.scrollWidth;var d=this.get(this.ytLazyListBehavior.itemsPath,this);if(d){var q=Math.round(c/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+q,d.length)-1)}this.ytLazyListBehavior.canShowMore?f+this.minComponentWidth>=this.offset+c&&(this.atEnd=!1):this.atEnd=this.offset+c>=f-20?!0:!1;this.atStart=this.offset<=20}};
_.r.setStartIndex=function(c){if(!this.minComponentWidth){var f=_.r1(this.hostElement).querySelector("#items").firstElementChild;if(!f)return;this.minComponentWidth=ai_(this,f)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*c;g9(this);this.reposition_()};
_.r.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Ty();var c=_.r1(this.hostElement).querySelector("#scroll-container").clientWidth;_.F("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=ai_(this,_.r1(this.hostElement).querySelector("#items").firstElementChild));c=this.useFloorScrolling?Math.floor(c/this.minComponentWidth)||1:Math.round(c/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Ve3(this);this.offset+=JO3(this)?
Qx_(this):c*this.minComponentWidth;g9(this);this.reposition_();this.scrollCount++};
_.r.prevClick_=function(){var c=_.r1(this.hostElement).querySelector("#scroll-container").clientWidth;c=this.useFloorScrolling?Math.floor(c/this.minComponentWidth)||1:Math.round(c/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=JO3(this)?Qx_(this):this.minComponentWidth*this.scrollCount-1):this.offset-=JO3(this)?Qx_(this):c*this.minComponentWidth;this.centerListItems&&Ve3(this);g9(this);this.reposition_()};
_.r.onIronResize_=function(){this.resizeSupportEnabled&&_.ol(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.r.onItemsTransitionEnd_=function(c){_.oV(c)===_.r1(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.r.onChildElementFocus_=function(c){c=c.target.closest("#items > *");var f=_.r1(this.hostElement).querySelector("#scroll-container");if(f.contains(c)){if(_.F("web_horizontal_list_behavior_focus_killswitch"))if(c.offsetLeft<this.offset)this.offset=Math.abs(c.offsetLeft)<c.clientWidth?0:c.offsetLeft;else if(c.offsetLeft+c.clientWidth>this.offset+f.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Ty(),this.offset=c.offsetLeft+c.clientWidth-f.clientWidth;else return;else{var d=_.r1(this.hostElement).querySelector("#items"),
q=_.hk("HTML_DIR")==="rtl",Z=q?d.clientWidth-c.offsetLeft:c.offsetLeft;d=q?d.clientWidth-(c.offsetLeft+c.clientWidth):c.offsetLeft+c.clientWidth;var M=q?Z>this.offset+f.clientWidth:Z<this.offset,g=q?d<this.offset:d>this.offset+f.clientWidth,O=q?M:g;if(q?g:M)f=q?d:Z,this.offset=Math.abs(f)<c.clientWidth?0:f;else if(O)this.ytLazyListBehavior.fillRemainingListItems(),_.Ty(),this.offset=(q?Z:d)-f.clientWidth;else return}g9(this);this.reposition_()}};
_.r.observeShownItems_=function(){this.reset()};
_.r.checkComponentWidthResize=function(){var c=_.r1(this.hostElement).querySelector("#items").firstElementChild;c&&(c=ai_(this,c),this.centerListItems||c!==this.minComponentWidth)&&(this.minComponentWidth=c,this.offset=c*this.scrollCount,this.centerListItems&&Ve3(this),g9(this),this.reposition_())};
var ai_=function(c,f){var d=window.getComputedStyle(f).marginRight;d=Math.floor(Number(d.replace("px","")));var q=window.getComputedStyle(f).marginLeft;q=Math.floor(Number(q.replace("px","")));c.centerListItems&&!c.marginWidthRight&&(c.marginWidthRight=d,c.marginWidthLeft=q);return c.resizeSupportEnabled?f.getBoundingClientRect().width+d:f.offsetWidth+d},g9=function(c){var f=_.r1(c.hostElement).querySelector("#scroll-container").clientWidth,d=_.r1(c.hostElement).querySelector("#items").clientWidth;
c.offset<0?c.offset=0:c.offset+f>=d&&(c.offset=d-f)},Ve3=function(c){c.offset-=(_.r1(c.hostElement).querySelector("#scroll-container").clientWidth+c.marginWidthRight-c.minComponentWidth)/2-c.marginWidthLeft};
_.ci.Object.defineProperties(kQ.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var c=_.hk("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(c==-1)c=this.JSC$14287_cachedViewportHeight,c=c>1320?5:c>1020?4:c>730?3:c>430?2:1;else if(c==0)return 0;_.Xr("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",c-1);c=_.hk("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(c>-1)return c;c=this.cachedViewportWidth;c=c>1600?6:c>1400?5:c>1300?4:c>1090?5:c>870?4:c>660?3:2;_.Xr("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
c);return c},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.F("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
kQ.prototype.observeShownItems_=kQ.prototype.observeShownItems_;kQ.prototype.onChildElementFocus_=kQ.prototype.onChildElementFocus_;kQ.prototype.onItemsTransitionEnd_=kQ.prototype.onItemsTransitionEnd_;kQ.prototype.onIronResize_=kQ.prototype.onIronResize_;kQ.prototype.prevClick_=kQ.prototype.prevClick_;kQ.prototype.nextClick_=kQ.prototype.nextClick_;kQ.prototype.setButtonsState_=kQ.prototype.setButtonsState_;kQ.prototype.requestButtonsStateUpdate_=kQ.prototype.requestButtonsStateUpdate_;
kQ.prototype.reposition_=kQ.prototype.reposition_;kQ.prototype.reset=kQ.prototype.reset;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],kQ.prototype,"ytLazyListBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kQ.prototype,"atStart",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kQ.prototype,"atEnd",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"startIndex",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"endIndex",void 0);_.y([_.L({value:6}),_.D("design:type",Number)],kQ.prototype,"initialCount",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"scrollCount",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"initialStartIndex",void 0);
_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"disableScrollEventListener",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"supportComponentResize",void 0);_.y([_.L({value:function(){var c=this;return function(){return c.prevClick_()}}}),
_.D("design:type",Function)],kQ.prototype,"boundPrevClick",void 0);_.y([_.L({value:function(){var c=this;return function(){return c.nextClick_()}}}),
_.D("design:type",Function)],kQ.prototype,"boundNextClick",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"useFloorScrolling",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"isSearch",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"dragging",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"dragMouseStart",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"dragOffsetStart",void 0);
_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"disableWheelScroll",void 0);_.y([_.L(),_.D("design:type",Object)],kQ.prototype,"centerListItems",void 0);_.y([_.Ta("iron-resize"),_.m5("guideOpened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kQ.prototype,"onIronResize_",null);_.y([_.Ta("transitionend"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],kQ.prototype,"onItemsTransitionEnd_",null);
_.y([_.Ta("focusin"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],kQ.prototype,"onChildElementFocus_",null);_.y([_.m5("shownItems"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kQ.prototype,"observeShownItems_",null);_.y([_.tY()],kQ);_.Cm.YtdHorizontalListBehavior=[];_.Cm.YtdHorizontalListBehavior.push(_.aJ,_.P.YtRendererBehavior,_.r9.YtLazyListBehavior,_.I0.YtdGuideStateAwareBehavior,kQ.prototype);var HBC=["APP_STATE","PI"];var XEv=_.pp(["about:blank"]),u6T={pushState:window.history.pushState,replaceState:window.history.replaceState};var Oj=function(c){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=c;this.internalPushState=c.pushState.bind(c);this.internalReplaceState=c.replaceState.bind(c)};
Oj.prototype.init=function(){this.initialized=!0};
Oj.prototype.pushState=function(c,f){this.initialized||this.init();this.internalPushState&&this.internalPushState(c,"",f)};
Oj.prototype.replaceState=function(c,f){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(c,"",f)};
Oj.prototype.getState=function(){return this.history&&this.history.state};var vAF=function(c){var f=function(){var d=c.apply(this,arguments)||this;d.boundHistoryPushState=!1;d.boundHistoryReplaceState=!1;d.debugInfo={};return d};
_.K(f,c);f.prototype.init=function(){var d=_.A5("IFRAME");_.NS(d,_.CG(XEv));d.sandbox="allow-same-origin";d.style.display="none";this.iframe=d;document.body.appendChild(d);this.bindHistoryStateFunctions();c.prototype.init.call(this)};
f.prototype.bindHistoryStateFunctions=function(){var d=this,q=[],Z;this.iframe&&((Z=this.iframe.contentWindow)==null?0:Z.history)&&(Z=this.iframe.contentWindow.history)&&(q.push(Z),Object.getPrototypeOf(Z)&&q.push(Object.getPrototypeOf(Z)));window.history&&q.push(window.history);Z=window.history;Object.getPrototypeOf(Z)&&q.push(Object.getPrototypeOf(Z));q.push(u6T);Z=function(g){for(var O=null,l=0;l<q.length;l++){var m=q[l][g];if(typeof m==="function"){O=m.bind(window.history);d.debugInfo[g]=l;break}}return O};
if(!this.boundHistoryReplaceState){var M=Z("replaceState");M&&(this.internalReplaceState=M,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Z=Z("pushState"))&&(this.internalPushState=Z,this.boundHistoryPushState=!0)};
return f}(Oj),hCr=function(){return vAF.call(this,window.history)||this};
_.K(hCr,vAF);hCr.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var l9=function(c){this.browserHistory=c;this.initialized=!1};
l9.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
l9.prototype.pushState=function(c,f){this.initialized||this.init();this.browserHistory.pushState(c,f)};
l9.prototype.replaceState=function(c,f){this.initialized||this.init();this.browserHistory.replaceState(c,f)};
l9.prototype.handlePopstate=function(c){return c.state};_.wE_=function(c,f,d,q,Z){this.endpoint=c;this.forward=f;this.historyEntry=d;this.JSC$29948_savedComponentState=q;this.legacyBorder=Z===void 0?!1:Z};var yOH=function(c,f){this.rootData=c;this.scrollTop=f};var QN=new _.jk("PAGE_REQUEST_TOKEN"),Rju=new _.jk("FETCH_PBJ_TOKEN");_.sj=new _.jk("EPHEMERAL_STORE_TOKEN");_.BP=function(c){this.data=Object.assign({},c);var f;(f=this.data.innertubeResponse)==null||delete f.frameworkUpdates};
_.BP.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.qR)()};
_.Mo=function(c){return Object.assign({},c.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var WeO=function(){this.maxSize=100;this.timeToDataCache=new Map};
WeO.prototype.get=function(c){var f=this.timeToDataCache.get(c);f&&(this.timeToDataCache.delete(c),this.timeToDataCache.set(c,f));if(f&&f.rootData&&(_.F("web_use_response_store_for_history_cache")||_.F("mweb_use_new_history_manager"))){var d=_.ql().resolve(_.sj),q=Dpv(f),Z=!!q;if(q){if(q.content){var M=i9(d,q.content);Z&&M?f.rootData.response=_.Mo(M):Z=!1}q.player&&(M=i9(d,q.player),Z&&M?f.rootData.playerResponse=_.Mo(M):Z=!1);q.reelSequence&&(d=i9(d,q.reelSequence),Z&&d?f.rootData.reelWatchSequenceResponse=
_.Mo(d):Z=!1)}Z||(this.timeToDataCache.delete(c),f=void 0)}return f};
WeO.prototype.set=function(c,f){if(f.rootData&&(_.F("web_use_response_store_for_history_cache")||_.F("mweb_use_new_history_manager"))){var d=Dpv(f),q=Object.assign({},f.rootData);d&&(d.content&&f.rootData.response&&(eCu(this,d.content,f.rootData.response),q.response=null),d.player&&f.rootData.playerResponse&&(eCu(this,d.player,f.rootData.playerResponse),q.playerResponse=null),d.reelSequence&&f.rootData.reelWatchSequenceResponse&&(eCu(this,d.reelSequence,f.rootData.reelWatchSequenceResponse),q.reelWatchSequenceResponse=
null));f=new yOH(q,f.scrollTop)}this.timeToDataCache.has(c)?this.timeToDataCache.delete(c):this.timeToDataCache.size>=this.maxSize&&(d=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(d.value));this.maxSize!==0&&this.timeToDataCache.set(c,f)};
WeO.prototype.clear=function(){this.timeToDataCache.clear()};
var Dpv=function(c){var f=_.ql().resolve(_.dx(QN)),d;if((d=c.rootData)==null?0:d.endpoint)return f==null?void 0:BjM(f,c.rootData.endpoint);var q;_.u6(new _.KD("History snapshot response data does not contain endpoint",(q=c.rootData)==null?void 0:q.url));return null},eCu=function(c,f,d){if(c.maxSize>0){var q;
(c=(q=d.responseContext)==null?void 0:q.maxAgeSeconds)&&Number(c)>0&&(q=_.ql().resolve(_.sj),d=i7(d,c),q.put(f,new _.BP(d)))}};var Nav=function(c,f,d){this.endpoint=f;this.JSC$29953_savedComponentState=d===void 0?null:d;this.entryTime=c};var Kek=1;var T9=function(c){var f=function(){var d=c.apply(this,[].concat(_.LT(_.hv.apply(0,arguments))))||this;d.historyEntryTime=0;d.historySnapshotCache=d.createHistoryCache();return d};
_.K(f,c);f.prototype.createHistoryCache=function(){return new WeO};
f.prototype.saveAndReplace=function(d,q,Z){var M=window.location.href;var g=g===void 0?{}:g;var O=(O=this.browserHistory.getState())&&O.entryTime?O.entryTime:EAk();d=this.createNewHistoryEntry(d,g,O);this.saveSnapshot(O,q,Z);this.replaceState(d,M||window.location.href)};
f.prototype.saveAndPush=function(d,q,Z,M,g){g=g===void 0?{}:g;this.saveSnapshot(this.historyEntryTime,Z,M);Z=this.historySnapshotCache;M=this.historyEntryTime;var O=Z.timeToDataCache.keys();O=_.C(O);for(var l=O.next();!l.done;l=O.next())l=l.value,l>M&&Z.timeToDataCache.delete(l);q=this.createNewHistoryEntry(q,g);this.pushState(q,d)};
f.prototype.saveSnapshot=function(d,q,Z){this.historySnapshotCache.set(d,new yOH(q,Z))};
f.prototype.createNewHistoryEntry=function(d,q,Z){Z=Z===void 0?EAk():Z;return new Nav(Z,d,q)};
f.prototype.handlePopstate=function(d){var q=c.prototype.handlePopstate.call(this,d),Z=null,M=null,g=!1,O=null;q&&q.entryTime&&(O=this.historySnapshotCache.get(q.entryTime)||null,g=q.entryTime>this.historyEntryTime,this.historyEntryTime=q.entryTime,Z=q.endpoint,M=q.JSC$29953_savedComponentState);this.handleHistoryCacheLoad(new _.wE_(Z,g,O,M),d);return q};
f.prototype.pushState=function(d,q){Number(d==null?void 0:d.entryTime)>=0&&(this.historyEntryTime=d.entryTime);c.prototype.pushState.call(this,d,q)};
f.prototype.replaceState=function(d,q){Number(d==null?void 0:d.entryTime)>=0&&(this.historyEntryTime=d.entryTime);c.prototype.replaceState.call(this,d,q)};
f.prototype.handleHistoryCacheLoad=function(){};
return f}(l9),Iiv=function(){var c=T9.call(this,new hCr)||this;
c.dispatchElement=null;c.entryIndex=0;return c};
_.K(Iiv,T9);_.r=Iiv.prototype;_.r.init=function(c){c=c===void 0?!0:c;T9.prototype.init.call(this);this.initialized||(c||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.r.handlePopstate=function(c){var f=null;c.state||(f="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return T9.prototype.handlePopstate.call(this,c);var d=new CustomEvent("yt-history-pop",{cancelable:!0});_.gS(this.dispatchElement,"yt-history-pop",[d,{errorMsg:f}]);_.kt(this.dispatchElement,"yt-close-all-popups-action");if(!d.defaultPrevented){d=_.ql().resolve(_.MY);f=d.getCurrentData();var q=d.getCurrentPage();d=0;q?(q=_.gS(this.dispatchElement,"yt-get-page-offset",
[q]),q.length>0&&(d=q[0])):_.u6(new _.KD("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:f?f.page:"undefined"}));f&&(f.csn=_.X2());this.saveSnapshot(this.historyEntryTime,f,d)}return T9.prototype.handlePopstate.call(this,c)};
_.r.handleHistoryCacheLoad=function(c,f){c.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.C(_.kt(this.dispatchElement,"yt-history-will-navigate",[f])).next().value||_.gS(this.dispatchElement,"yt-history-load",[f,c]))};
_.r.pushState=function(c,f){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var d=new _.KD("history.pushState is not a function",this.getDebugString());_.VO(d)}T9.prototype.pushState.call(this,c,f)};
_.r.replaceState=function(c,f){if(!this.browserHistory.boundHistoryReplaceState){var d=new _.KD("history.replaceState is not a function",this.getDebugString());_.VO(d)}T9.prototype.replaceState.call(this,c,f)};
_.r.saveAndPush=function(c,f,d,q,Z){Z=Z===void 0?{}:Z;d&&(d.csn=_.X2());T9.prototype.saveAndPush.call(this,c,f,d,q,Z)};
_.r.getDebugString=function(){var c=[];this.initialized&&c.push("i");this.browserHistory.boundHistoryReplaceState&&c.push("bhr");this.browserHistory.boundHistoryPushState&&c.push("bhs");"replaceState"in this.browserHistory.debugInfo&&c.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&c.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&c.push("ei:"+String(this.entryIndex));return c.join(",")};
_.mD=function(c,f){c.init(!0);var d=c.browserHistory.getState();c.replaceState(d,B9(f))};
Iiv.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.HP=new _.jk("DESKTOP_HISTORY_MANAGER_TOKEN");var PuK=[10,20,30,40,50,60],A2=function(){this.currentPartitionIndex=0},RCu=function(c){G1T({mainAppWeb:_.PS(),
survivalSli:{partitionMinute:c,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},UpH=function(c){G1T({mainAppWeb:_.PS(),
survivalSli:{partitionMinute:c,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},pEK=function(c){return c.currentPartitionIndex>=0&&c.currentPartitionIndex<PuK.length?PuK[c.currentPartitionIndex]:-1},xp3=function(c){return c.currentPartitionIndex>0&&c.currentPartitionIndex-1<PuK.length?PuK[c.currentPartitionIndex-1]:-1};
A2.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var c=xp3(this);c>0&&UpH(c);c=pEK(this);c>0&&RCu(c);oAj(this)}};
var oAj=function(c){var f=pEK(c);if(f>0){var d=xp3(c);d<0&&(d=0);c.intervalId=_.a7.addJob(function(){var q=xp3(c);q>0&&UpH(q);q=pEK(c);q>0&&RCu(q);oAj(c)},3,(f-d)*6E4);
c.currentPartitionIndex+=1}else c.currentPartitionIndex=-1};var GkH=function(){this.skipNextNavigation=!1},caj=function(c,f,d){if(!f)return!1;
if(c.skipNextNavigation)return c.skipNextNavigation=!1;if(_.b(d,_.Ib))return!1;var q,Z,M;if((q=_.b(d,_.Fw))==null?0:(Z=q.browseEndpointContextSupportedConfigs)==null?0:(M=Z.browseEndpointContextMainConfig)==null?0:M.skipConfirmation)return!1;var g;return((g=_.b(f.commandMetadata,_.jO))==null?void 0:g.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
GkH.prototype.showConfirmationDialog=function(c,f){this.navigateParams=f;this.customConfirmationCommand?_.ql().resolve(_.ZM).resolveCommand(this.customConfirmationCommand):(f={openPopupAction:{popup:{confirmDialogRenderer:{title:_.pC(_.HO("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.pC(_.HO("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.pC(_.HO("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.pC(_.HO("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Pw.getInstance().triggerAction("yt-open-popup-action",f,c))};
GkH.prototype.cancelPendingNavigation=function(){var c;((c=this.navigateParams)==null?void 0:c.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var fwF=function(){},jr_=function(c,f,d,q,Z,M,g){d=d===void 0?{}:d;
g=g===void 0?{}:g;var O=_.E2.instance,l,m=(l=_.b(f,_.Ib))==null?void 0:l.url;return m?U7h(O,m,d,window.location.href,function(H,A){df_(c,H,A,!1,!0,d,M,q)},function(){return!1}):eJ(O,f,d,window.location.href,bo(f),function(H,A){df_(c,H,A,!1,!0,d,M,q)},Z,g)},df_=function(c,f,d,q,Z,M,g,O){if(!c.JSC$14345_chunkHandler)if(d.page==="watch"||d.page==="learning_journey_watch")if(Z||q){if(_.F("kevlar_continue_playback_without_player_response")){var l;
var m=(l=_.b(O,_.pe))==null?void 0:l.videoId}c.JSC$14345_chunkHandler=new AbT(_.Ca,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:q,previousVideoId:m},tempData:M},g)}else c.JSC$14345_chunkHandler=new BG_(_.Ca);else d.page==="shorts"&&Z&&!q?c.JSC$14345_chunkHandler=new HlK(_.Ca,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:M},g):c.JSC$14345_chunkHandler=new il3(g);c.JSC$14345_chunkHandler.processChunk({endpoint:f,data:d});return c.JSC$14345_chunkHandler.ob.promise},
qbK=function(c,f,d,q,Z){(d=_.C1H(d))&&df_(c,f,d,!1,!0,q,void 0,Z)};var ZYK=function(){this.pendingNavigationPromise=null};
_.r=ZYK.prototype;_.r.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.r.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.r.addEventListener=function(){throw Error("xh");};
_.r.dispatchEvent=function(){throw Error("xh");};
_.r.removeEventListener=function(){throw Error("xh");};var MKF=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],YQ=function(){_.KF.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];rau(this)};
_.K(YQ,_.KF);YQ.prototype.verifyUser=function(){var c=rau(this),f=c.logout;if(!c.sessionChange)return!0;this.dispatchEvent("ytsessionchange");f&&this.dispatchEvent("ytuserinvalid");return!1};
var rau=function(c){var f=MKF.map(function(Z){var M;return(M=_.A4.get(Z))!=null?M:""}),d=f.some(function(Z,M){return c.sessionCookies&&c.sessionCookies[M]!==""&&Z===""}),q=f.some(function(Z,M){return c.sessionCookies&&c.sessionCookies[M]!==Z});
c.sessionCookies=f;return{logout:d,sessionChange:q}};
YQ.prototype.clearTimeout=function(){this.scheduledJobId&&(_.a7.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var LeM=new _.jk("POSTMESSAGE_TUNNEL_TOKEN");var $pe=["/parent_tools","/file_download","/artist_roster"],aiG=[tMy,br_,Kh_,nlO,El3,FhH,$NF,Qkv];var Civ=new _.jk("APP_ROOT");var FT=new _.jk("NAVIGATION_CONFIRMATION_SERVICE");var gbu="/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(" "),kmF=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
t2=function(c,f){this.pendingNavigationPromise=null;this.JSC$14363_clientRoot=c;this.historyManager=f;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 fwF;this.debugString=c.is;c={"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};_.Rb(_.Pw.getInstance(),c,this.JSC$14363_clientRoot)},iYH,T6O,mfT,HYr,B6y;
_.K(t2,ZYK);t2.prototype.reload=function(){_.IV(window.location.href)};
var O2j=function(c){c.currentEndpoint&&_.b(c.currentEndpoint,_.EO)?c.reload():c.currentEndpoint&&c.navigate(c.currentEndpoint,!0,void 0,{disableCache:!0})};
t2.prototype.navigate=function(c,f,d,q,Z,M,g,O){f=f===void 0?!1:f;d=d===void 0?{}:d;q=q===void 0?{}:q;var l=_.ql().resolve(FT),m;if(!g&&caj(l,(m=this.currentEndpoint)!=null?m:void 0,c))return l.showConfirmationDialog(this.JSC$14363_clientRoot.parentElement,{endpoint:c,reload:f,params:d,tempData:q,requestType:Z,createScreenConfig:M}),!1;var H=_.eY();_.NI(H,"eocs")||H.parkOrScheduleJob(function(){H.processSignal("eocs")},10,"eor");
g=bo(c);l=q.autonav==="1";m=_.X2();YQ.instance||(YQ.instance=new YQ);var A=YQ.instance.verifyUser(),Y;if(_.F("enable_dark_theme_only_on_shorts")){var t=document.documentElement.hasAttribute("dark"),E=_.LX(!0)==="USER_INTERFACE_THEME_DARK";if(g==="shorts"){if(!t)if(_.F("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var J;_.IV((J=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?void 0:J.url,void 0,void 0,window.top)}}else{var X;_.IV(_.U6((X=_.b(c==null?
void 0:c.commandMetadata,_.jO))==null?void 0:X.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/")&&!t){var u;_.IV(_.U6((u=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?void 0:u.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(E!==t){var W;_.IV(_.U6((W=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?void 0:W.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(g==="watch"){if(OYF(_.ql().resolve(_.yN),
c)&&(A||_.F("fix_miniplayer_navigation_killswitch")))return!1;_.F("block_all_player_prefetch_requests")||(Y=gI_(_.qo(_.nt),c,l))}else{var p,N=(p=_.b(this.currentEndpoint,_.pe))==null?void 0:p.videoId;N&&_.L5.getInstance().then(function(EC){EC&&EC.set("yt-miniplayer-shown-video-id",N)})}Y&&(d.frags=Y.missingFragments_.join(","));
J=null;var I;X=(I=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?void 0:I.ignoreNavigation;if(!X)if(_.F("kevlar_command_url")){var R;J=(R=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?void 0:R.url}else J=_.QeN(c,d);if(J&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&J==this.lastNavigationUrl)return _.JQ({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.B5(Wi(),"CANCELLED")}J&&(this.lastNavigationUrl=J);jQY();_.Xr("IS_HOMEPAGE_COLD",
!1);_.Xr("IS_RESULTS_PAGE_COLD",!1);_.Xr("IS_WATCH_PAGE_COLD",!1);c.loggingUrls&&c.loggingUrls.forEach(function(EC){EC.baseUrl&&_.e6(EC.baseUrl)});
_.vAn(c,M?M.layer:0)&&_.F("kevlar_flush_logs_on_away_navigation")&&_.ab();if(VeC(c))return!1;DkH(g,Z);if(!J)return X||_.u6(new _.KD("Can't construct url for endpoint",c)),_.B5(Wi(),"FAILURE"),!1;_.nAe();I=c&&_.b(c,_.Fw)&&_.b(c,_.Fw).browseId.startsWith("UC");d=(R=_.F("enable_dark_theme_only_on_shorts")&&g==="shorts"?!1:_.zX()&&document.documentElement.hasAttribute("dark")!==_.Sv())?{themeRefresh:1}:{};R&&!_.FJ()&&_.LX()==="USER_INTERFACE_THEME_DARK"&&(d.theme="dark");I=R||lwH(J)&&!I&&!_.F("kevlar_disable_url_allowlist");
A||(I=!0);if(I||_.hk("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var qN;var kl=(qN=window.top)==null?void 0:qN.location.href}catch(EC){var BN;kl=(BN=EC)==null?void 0:BN.message}_.u6(new _.KD("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:kl}))}c=_.F("kevlar_redirect_on_window_killswitch")?window.top:window;NL(J);_.IV(_.U6(J,d),void 0,void 0,c);_.B5(Wi(),"ABORTED");return!1}_.F("kevlar_early_popup_close")&&_.gS(this.JSC$14363_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14345_chunkHandler=void 0;var tP;kl=bo((tP=this.currentEndpoint)!=null?tP:void 0);(tP=g==="shorts"&&kl==="shorts")||_.qUe();_.WC(e9r)("nr",void 0);l&&_.JQ({webInfo:{navigationReason:"an"}});c.clickTrackingParams&&(q.itct=c.clickTrackingParams,q.csn=m);BYN(q);q.endpoint=JSON.stringify(c);_.F("enable_unknown_lact_fix_on_html5")&&(_.ql().resolve(_.uS),q.lact=_.ZZ());_.zV.isEmpty(q)||_.cO(J,q);!_.F("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(M=Object.assign({},{layer:0},M,{parentLayer:3}));this.pendingNavigationPromise=M=jr_(this.pageFetcher,c,q,this.currentEndpoint,this.JSC$14363_isNetworkPromiseStale.bind(this),M,O);M=M.then(this.handleNavigateSuccess.bind(this,M,c,Y,q),this.handleNavigateFail.bind(this,M,c));_.F7().navigationFinishPromise=M;f={endpoint:c,pageType:g,url:B9(J),reload:!!f,noProgressBar:tP};Z&&(f.type=Z);this.fireEvent("yt-navigate-start",f);Y&&qbK(this.pageFetcher,c,Y,q,this.currentEndpoint);
return!0};
t2.prototype.JSC$14363_isNetworkPromiseStale=function(c){return c!=this.pendingNavigationPromise};
var sr_=function(c,f,d,q,Z){var M=bo(f);f={endpoint:f,pageType:M};Z&&(f.errorMessage=Z);_.u6(d);f.navigationDoneMs=_.V_("nd");f.navigationErrorReason=q;c.fireEvent("yt-navigate-error",f)};
t2.prototype.handleNavigateFail=function(c,f,d){var q=void 0;d instanceof _.NC&&(q=d,nvl(d));if(this.JSC$14363_isNetworkPromiseStale(c))return _.Je(q);_.B5(Wi(),"FAILURE");sr_(this,f,d,"101");return _.Je(d)};
t2.prototype.handleNavigateSuccess=function(c,f,d,q,Z){if(this.JSC$14363_isNetworkPromiseStale(c))return _.sX();this.pendingNavigationPromise=null;if(!Z)return f=new _.KD("Missing data in response for navigation endpoint",f),_.Je(f);if(Z.reload)return window.location.reload(!0),_.sX();d&&(c={},_.zV.extend(c,_.C1H(d),Z),Z=c);var M,g;d=(M=Z)==null?void 0:(g=M.timing)==null?void 0:g.responseStart;d!=null&&_.V_("srt",d);_.V_("pdc");var O,l;M=(O=Z)==null?void 0:(l=O.timing)==null?void 0:l.info;M!=null&&
(O=_.WC(_.R9r)(M),_.JQ(O));_.B5(Wi(),"SUCCESS");B6y(this,f,Z,1,q);return _.sX()};
var lwH=function(c){var f=c;_.F("kevlar_no_redirect_to_classic_2_ks")||(f=(new _.xn(c)).getPath());if(f==="/"||f==="/red")return!1;var d=!0;gbu.forEach(function(q){c.indexOf(q)===0&&(d=!1)});
kmF.forEach(function(q){var Z=q.url;_.F(q.expFlag)&&c.indexOf(Z)===0&&(d=!1)});
return d};
t2.prototype.publishPageData=function(c){this.fireEvent("yt-page-data-fetched",{pageData:c})};
iYH=function(c,f,d,q,Z,M){var g=null;f.page!=="watch"&&f.page!=="learning_journey_watch"||q?f.filler||_.gS(c.JSC$14363_clientRoot,"yt-stop-old-player",[f]):g=df_(c.pageFetcher,Z,f,d,!1,M,void 0,c.currentEndpoint);if(g)return g.then(c.publishPageData.bind(c,f));c.publishPageData(f);return _.sX()};
T6O=function(c,f,d){var q=null;if(!d)return q=new _.KD("Empty data",c.debugString,f);var Z=d.response;if(!Z)return q;var M={endpointType:bo(f)||"unknown"};Z.responseContext?(Z=Z.responseContext.errors)&&(q=new _.KD("Errors in response context",c.debugString,f,Z,M)):q=Z.error||Z.errorMetadata?new _.KD("Errors in response",c.debugString,f,Z.error,Z.errorMetadata,M):new _.KD("responseContext missing",c.debugString,f,Object.keys(Z).sort().join(","),M);var g,O,l,m;if(c=d==null?void 0:(g=d.response)==null?
void 0:(O=g.responseContext)==null?void 0:(l=O.webResponseContextExtensionData)==null?void 0:(m=l.webResponseContextDebugData)==null?void 0:m.debugErrorMessages)for(g=0;g<c.length;g++);return q};
mfT=function(c){var f,d,q,Z;return c==null?void 0:(f=c.response)==null?void 0:(d=f.responseContext)==null?void 0:(q=d.errors)==null?void 0:(Z=q.error)==null?void 0:Z["0"]};
HYr=function(c,f){var d;if(d=f.url&&!f.url.startsWith("/clip"))d=f.url,d=!_.F("webfe_parse_debug_param_in_resolveurl_service")&&c.searchDebugUrlMatcher.test(d)||XOY(d)?!0:!1;if(d)XOY(f.url)&&_.Rw(window.location.href).themeRefresh?(f=_.fZ(f.url,"themeRefresh"),_.mD(c.historyManager,f)):f.url&&!teN(f.url)&&_.mD(c.historyManager,f.url);else if(f.endpoint){var q,Z,M;(d=(q=f.endpoint)==null?void 0:(Z=q.commandMetadata)==null?void 0:(M=Z.webCommandMetadata)==null?void 0:M.url)&&!teN(d)&&_.mD(c.historyManager,
d);d&&f.url&&d!=f.url&&!f.url.match("playnext=1")&&new _.KD("Response url mismatch in response data",c.debugString,d,f.url)}};
_.Aa_=function(c,f,d,q,Z,M,g,O){M=M===void 0?!1:M;var l=_.ql().resolve(FT),m;if(!O&&caj(l,(m=c.currentEndpoint)!=null?m:void 0,f))return l.showConfirmationDialog(c.JSC$14363_clientRoot.parentElement,{endpoint:f,data:d,navigationType:q,tempData:Z,isMiniplayer:M,isForwardHistoryNavigation:g==null?void 0:g.forward}),_.sX();c.pageFetcher.JSC$14345_chunkHandler=void 0;return B6y(c,f,d,q,Z,M)};
B6y=function(c,f,d,q,Z,M){M=M===void 0?!1:M;c.isMiniplayerExpansion=M;var g=q===2;c.currentEndpoint=f;c.numNavigations++;c.numNavigations&&(f3C.navigationCount=c.numNavigations);_.Xr("NUM_NAV",c.numNavigations);var O=T6O(c,f,d);if(O)return sr_(c,f,O,"102",mfT(d)),_.Je(O);var l,m,H,A;O=d.rootVe||(d==null?void 0:(l=d.response)==null?void 0:(m=l.responseContext)==null?void 0:(H=m.webResponseContextExtensionData)==null?void 0:(A=H.ytConfigData)==null?void 0:A.rootVisualElementType);!g&&d&&HYr(c,d);var Y,
t;l=d==null?void 0:(Y=d.response)==null?void 0:(t=Y.responseContext)==null?void 0:t.maxAgeSeconds;if(!g&&!isNaN(l)){var E;_.F("kevlar_use_response_ttl_to_invalidate_cache")?E=(0,_.qR)()+1E3*l:_.F("kevlar_always_invalidate_cache")&&(E=0);isNaN(E)||(d.expirationTime=E)}_.qo(_.nt).prefetchCache_.clear();g||d.page!=="watch"||d.type!=="reduced"&&q!==1?q=iYH(c,d,g,!!M,f,Z):(c.publishPageData(d),q=_.sX());Z=q.then(function(){var J=bo(f);J={endpoint:f,pageType:J,fromHistory:g,response:d};J.navigationDoneMs=
_.V_("nd");c.fireEvent("yt-navigate-finish",J)});
d.csn&&O&&d.clientSideGrafts&&q.then(c.attachClientSideGrafts.bind(c,d,_.V5()));return Z};
_.r=t2.prototype;_.r.attachClientSideGrafts=function(c,f){c.clientSideGrafts&&f&&c.clientSideGrafts.forEach(function(d){if(f&&d){var q=_.Q1(d);_.F("combine_ve_grafts")?_.bP().graftServerVe(d,f):_.Dr(c.csn,f,q)}})};
_.r.handleSignalActionHistoryBack=function(){window.history.back()};
_.r.handleSignalActionCloseWindow=function(){window.close()};
_.r.handleSignalActionReloadPage=function(){this.reload()};
_.r.handleSignalActionSoftReloadPage=function(){O2j(this)};
_.r.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.r.fireEvent=function(c,f){c=new CustomEvent(c,{bubbles:!0,cancelable:!1,composed:!0,detail:f});this.dispatchEvent(c)};
_.r.addEventListener=function(c,f){this.JSC$14363_clientRoot.addEventListener(c,f)};
_.r.dispatchEvent=function(c){return this.JSC$14363_clientRoot.dispatchEvent(c)};
_.r.removeEventListener=function(c,f){this.JSC$14363_clientRoot.removeEventListener(c,f)};
t2[dE]=[Civ,_.HP];_.GTh=new gU("browse","h8y2qb");_.cFN=new gU("search","JzFVk");_.f1h=new gU("shorts","xwEKAe");_.dwr=new gU("watchFixie","nmfa2d");_.j3z=new gU("watchFlexy","CF909");_.q0Y=new gU("watchGrid","Tm0L3c");_.ZNM=new gU("watchLearningJourney","L3n37");var Yb_;var FGr=function(){return _.z.apply(this,arguments)||this};
_.K(FGr,_.z);_.ci.Object.defineProperties(FGr,{template:{configurable:!0,enumerable:!0,get:function(){if(Yb_===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);Yb_=c}c=Yb_;return c}}});
_.y([_.Q(Fer.YtPlayerBehavior),_.D("design:type",Object)],FGr.prototype,"ytPlayerBehavior",void 0);_.y([_.v({is:"ytd-player"})],FGr);var tK_;var bYo;var KGj;var b9=function(){var c=_.z.apply(this,arguments)||this;c.forceModernIconButton=!1;c.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return c};
_.K(b9,_.z);b9.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]]"}}}}}};
b9.prototype.handleAccountLinkingStateChangedCommand=function(c){if(c=_.b(c,g3u)){var f,d=(f=this.data)==null?void 0:f.providerKey;f=c.providerKey;d&&f&&d.id===f.id&&d.subject===f.subject&&(c=c.linked,c!==void 0&&(this.set("data.linked",c),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(c)))}};
b9.prototype.setPlayerAccountLinkState=function(c){var f=new jYO;qPH(f,fu_(new cRv,c));var d=_.Ca();d&&d.getPlayerPromise().then(function(q){q.setAccountLinkState(_.$S(f.JSC$12058_serializeBinary(),4));q.updateAccountLinkingConfig(c)})};
b9.prototype.handleShowAccountLinkDialog=function(){var c=this.get("button.buttonRenderer.command");c&&_.il([c],this.hostElement)};
_.ci.Object.defineProperties(b9.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}}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.y([_.Q([_.Cy.YtActionHandlerBehavior]),_.D("design:type",Object)],b9.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],b9.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],b9.prototype,"overrides",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b9.prototype,"forceModernIconButton",void 0);_.y([_.L({value:"bottom"}),_.D("design:type",String)],b9.prototype,"buttonTooltipPosition",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],b9.prototype,"forceIconButton",void 0);_.y([_.L(),_.D("design:type",Boolean)],b9.prototype,"disableTextTransform",void 0);
_.y([_.S("data","data.linked","data.isWarning"),_.D("design:type",Object),_.D("design:paramtypes",[])],b9.prototype,"button",null);_.y([_.v({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],b9);
_.h(b9,"ytd-account-link-button-renderer",function(){if(KGj!==void 0)return KGj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return KGj=c},{mode:1});var Eb_;var nbr=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Km=function(){return _.z.apply(this,arguments)||this};
_.K(Km,_.z);Km.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Km.prototype.updateButtonActiveState=function(){var c=this,f=!!nbr.find(function(d){return c.currentState===d});
this.button&&(this.button.isPressed=f)};
_.ci.Object.defineProperties(Km.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.playlistLoopStateEntity)==null?void 0:c.state)||((f=this.data)==null?void 0:f.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var c=void 0,f;if(this.currentState&&((f=this.data)==null?0:f.states)){f=_.C(this.data.states);for(var d=f.next();!d.done;d=f.next()){d=_.b(d.value,_.Q5o);var q=void 0;if(((q=d)==null?void 0:q.state)===this.currentState){c=d;break}}}return c}}});
Km.prototype.updateButtonActiveState=Km.prototype.updateButtonActiveState;_.y([_.Q(_.wt),_.D("design:type",Object)],Km.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.NaY}),_.D("design:type",Object)],Km.prototype,"playlistLoopStateEntity",void 0);_.y([_.L(),_.D("design:type",Object)],Km.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],Km.prototype,"forceIconOnly",void 0);_.y([_.AY("ytd-button-renderer"),_.D("design:type",_.jt)],Km.prototype,"button",void 0);
_.y([_.S("data","playlistLoopStateEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],Km.prototype,"currentState",null);_.y([_.m5("currentButtonStateRenderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Km.prototype,"updateButtonActiveState",null);_.y([_.S("currentState"),_.D("design:type",Object),_.D("design:paramtypes",[])],Km.prototype,"currentButtonStateRenderer",null);
_.y([_.v({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Km);
_.h(Km,"ytd-playlist-loop-button-renderer",function(){if(Eb_!==void 0)return Eb_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Eb_=c},
{mode:1});var $f3;var Qry=_.HO("DOWNLOAD",{},"Download"),SbO=_.HO("DOWNLOADING",{},"Downloading"),LGO=_.HO("DOWNLOADED",{},"Downloaded"),zyO=_.HO("RETRY",{},"Retry"),Ej=function(){var c=_.z.apply(this,arguments)||this;c.forceIconButton=!1;c.forceIconOnly=!1;c.overrides=!1;c.buttonTooltipPosition=!1;c.styleActionButton=!1;c.disableTextTransform=!1;c.downloadProgress=0;c.isDownloadComplete=!1;c.isHidden=!0;c.transferState="TRANSFER_STATE_UNKNOWN";c.isVideoDeletedByUser=!1;c.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return c};
_.K(Ej,_.z);_.r=Ej.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.dataChanged=function(){var c;(c=this.data)!=null&&c.text||(c=_.hE(_.Gh().getState(),this.videoId),this.updateButtonState(c))};
_.r.computeVideoId=function(c){return c};
_.r.showHideButton=function(){this.updateButtonVisibility()};
_.r.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};
_.r.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.r.updateButtonState=function(c){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==SbO||!_.bI(c))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(c){case "TRANSFER_STATE_UNKNOWN":c=Qry;var f="OFFLINE_DOWNLOAD";var d="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":c=zyO;f="OFFLINE_DOWNLOAD";d="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":c=LGO;f="OFFLINE_PIN";d="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":c=
SbO;f="OFFLINE_DOWNLOADING_ZERO";d="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":c=zyO;f="OFFLINE_DOWNLOAD";d="ACTION_RETRY";break;default:c=Qry,f="OFFLINE_DOWNLOAD",d="ACTION_ADD"}this.isVideoDeletedByUser&&(c=Qry,f="OFFLINE_DOWNLOAD",d="ACTION_ADD");var q=Object.assign({},this.data);q.text=_.pC(c);q.tooltip=c;q.icon={iconType:f};q.size="SIZE_DEFAULT";q.style="STYLE_DEFAULT";_.b(q.command,_.tc)&&(_.b(q.command,_.tc).action=d);this.set("data",q)}};
_.r.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var c="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?c="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?c="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?c="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?c="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?c="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(c="OFFLINE_PIN",this.isDownloadComplete=!0);var f;c!==((f=this.data.icon)==null?void 0:f.iconType)&&(f=Object.assign({},this.data),f.text=_.pC(SbO),f.tooltip=SbO,f.icon={iconType:c},_.b(f.command,_.tc)&&(_.b(f.command,_.tc).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",f))}};
Ej.prototype.updateProgress=Ej.prototype.updateProgress;Ej.prototype.onTransferStateChanged=Ej.prototype.onTransferStateChanged;Ej.prototype.showHideButton=Ej.prototype.showHideButton;Ej.prototype.dataChanged=Ej.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Ej.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ej.prototype,"forceIconButton",void 0);
_.y([_.L(),_.D("design:type",Object)],Ej.prototype,"forceIconOnly",void 0);_.y([_.L(),_.D("design:type",Object)],Ej.prototype,"overrides",void 0);_.y([_.L(),_.D("design:type",Object)],Ej.prototype,"buttonTooltipPosition",void 0);_.y([_.L(),_.D("design:type",Object)],Ej.prototype,"styleActionButton",void 0);_.y([_.L(),_.D("design:type",Object)],Ej.prototype,"disableTextTransform",void 0);
_.y([_.L({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.D("design:type",String)],Ej.prototype,"videoId",void 0);_.y([_.L(),_.D("design:type",Object)],Ej.prototype,"data",void 0);_.y([_.L({selector:yR,selectorArgs:["videoId"]}),_.D("design:type",Object)],Ej.prototype,"downloadProgress",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ej.prototype,"isDownloadComplete",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ej.prototype,"isHidden",void 0);_.y([_.L({selector:_.hE,selectorArgs:["videoId"]}),_.D("design:type",String)],Ej.prototype,"transferState",void 0);_.y([_.L({selector:_.CKM,selectorArgs:["videoId"]}),_.D("design:type",Object)],Ej.prototype,"isVideoDeletedByUser",void 0);_.y([_.L({selector:d2k,selectorArgs:["videoId"]}),_.D("design:type",Object)],Ej.prototype,"offlineabilityState",void 0);
_.y([_.L({value:!0}),_.D("design:type",Boolean)],Ej.prototype,"showTooltips",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],Ej.prototype,"sendCommandWhenDisabled",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Ej.prototype,"disabled",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ej.prototype,"dataChanged",null);
_.y([_.ba("offlineabilityState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ej.prototype,"showHideButton",null);_.y([_.ba("transferState","isVideoDeletedByUser"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ej.prototype,"onTransferStateChanged",null);_.y([_.ba("downloadProgress"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ej.prototype,"updateProgress",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Ej);
_.h(Ej,"ytd-download-button-renderer",function(){if($f3!==void 0)return $f3;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $f3=c},{mode:2});var Ja3;var awT,VKo=function(){if(awT!==void 0)return awT;var c=document.createElement("template");_.n(c,'\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 awT=c};var X8_=_.F("web_button_rework")&&_.wi("BUTTON_REWORK")||_.F("web_button_rework_with_live"),uO_=_.rx("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,nm=function(){var c=_.z.apply(this,arguments)||this;c.isPressed=!1;c.forceIconButton=!1;c.forceIconOnly=!1;c.forceModernIconButton=!1;c.alignByText=!1;c.isShorts=!1;c.animatedText=!1;c.shouldAnimate=!1;c.JSC$14400_browserSupportsAnimation=_.F("web_supports_animations_api");c.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};c.onTap=function(){var f;if((f=c.data)==null||!f.defaultNavigationEndpoint){var d;f=!((d=c.data)==null?0:d.isToggled);var q;if((q=c.data)==null||!q.preventAutoToggle){c.shouldAnimate=!1;c.disableTextUpdateJobId&&_.a7.cancelJob(c.disableTextUpdateJobId);c.disableTextUpdateJobId=_.a7.addLowPriorityJob(function(){c.disableTextUpdateJobId=void 0},uO_);
var Z;c.set("data.isToggled",!((Z=c.data)==null?0:Z.isToggled));d=c.getInnertubeIcon();q={toggled:f,actions:{}};d&&(q.actions[d.toLowerCase()]=f);_.CZ(c.hostElement,"yt-toggle-button",q)}}};
return c};
_.K(nm,_.z);_.r=nm.prototype;_.r.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.a7.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.toggle=function(c){var f;this.set("data.isToggled",c!==void 0?c:!((f=this.data)==null?0:f.isToggled))};
_.r.handleUpdateToggleButtonStateCommand=function(c){if(this.data){c=_.b(c,AMr);var f,d,q,Z=(f=this.data)==null?void 0:(d=f.toggleButtonSupportedData)==null?void 0:(q=d.toggleButtonIdData)==null?void 0:q.id;Z&&c&&Z===(c==null?void 0:c.buttonId)&&this.set("data.isToggled",c.toggled)}};
_.r.handleUpdateToggleButtonTextAction=function(c){if(this.data){c=_.b(c,rL3);var f,d,q,Z=(f=this.data)==null?void 0:(d=f.toggleButtonSupportedData)==null?void 0:(q=d.toggleButtonIdData)==null?void 0:q.id;Z&&c&&Z===(c==null?void 0:c.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=c.defaultNumericalValue,this.set("data.defaultText",c.defaultText),this.set("data.toggledText",c.toggledText),this.shouldAnimate=!1)}};
_.r.getInnertubeIcon=function(){var c=this.data;if(c){var f,d,q=((f=c.defaultIcon)==null?0:f.iconType)?(d=c.defaultIcon)==null?void 0:d.iconType:null,Z,M;f=((Z=c.toggledIcon)==null?0:Z.iconType)?(M=c.toggledIcon)==null?void 0:M.iconType:q;return c.isToggled?f:q}};
_.r.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.ci.Object.defineProperties(nm.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var c={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$14400_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var f=c.renderer;var d=c.element;var q=c.toggled;var Z=c.onTapCallback;var M=c.commandClientArgs;var g=c.overrides;var O=c.forceIcon;var l=c.forceModernIconButton;var m=c.forceDisabled;var H=c.useAnimatedText;var A=c.animatedTextProps;c=UpN(f,q);O=!f.defaultIcon||!O&&f.defaultText?f.defaultIcon?"leading":void 0:l?"icon-only":"icon-only-40";O==="icon-only-40"&&(c.type="text");var Y;l=Object;var t=l.assign,E;a:switch((E=
f.style)==null?void 0:E.styleType){case "STYLE_COMPACT_GRAY":E={size:"S"};break a;default:E={size:"M"}}var J=!!q;var X=(X=q&&f.toggledText||f.defaultText)?_.he(X):void 0;H?(H=_.xC(q&&f.toggledText||f.defaultText))&&A&&!isNaN(Number(A.numberValue))?(A.numberText=H,q&&(A.numberValue+=1),H=A):H=void 0:H=void 0;var u,W,p,N;var I=(A=((W=q?f.toggledAccessibilityData||((I=f.toggledText)==null?void 0:I.accessibility):f.accessibilityData||((u=f.defaultText)==null?void 0:u.accessibility))==null?void 0:(p=W.accessibilityData)==
null?void 0:p.label)||((N=f.accessibility)==null?void 0:N.label))?A:_.xC(q&&f.toggledText||f.defaultText);m=m===void 0?f.isDisabled:m;d=RCM(f,q,Z,d,M);q=Puk(f,q);q!=null&&q.length?(q=_.NV({innertubeCommand:QDh(q),forceNewState:!0}),q=If(q)?q:void 0):q=void 0;f=t.call(l,{},c,E,{iconPosition:O},g,{focused:!1,toggled:J,toggleable:!0,formattedButtonText:X,animatedTextProps:H,accessibilityLabel:I,disabled:m,onTap:d,aTagConfig:q},ZkY((Y=f.colorData)==null?void 0:Y.basicColorPaletteData));f.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(f.type="filled");return f}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var c=this.getInnertubeIcon();if(c)return _.Tu(c)}}});
nm.prototype.resetAnimation=nm.prototype.resetAnimation;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],nm.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],nm.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],nm.prototype,"isPressed",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"forceIconButton",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"forceIconOnly",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"forceModernIconButton",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"alignByText",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"overrides",void 0);
_.y([_.L(),_.D("design:type",Boolean)],nm.prototype,"disabled",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"isShorts",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"buttonTooltipPosition",void 0);_.y([_.L(),_.D("design:type",Object)],nm.prototype,"animatedText",void 0);_.y([_.L(),_.D("design:type",String)],nm.prototype,"textNumberValue",void 0);_.y([_.L({computed:"computeTooltip(data, data.isToggled)"}),_.D("design:type",Object)],nm.prototype,"tooltip",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nm.prototype,"resetAnimation",null);_.y([_.S("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.D("design:type",Object),_.D("design:paramtypes",[])],nm.prototype,"computedButtonShape",null);_.y([_.S("data.*"),_.D("design:type",Object),_.D("design:paramtypes",[])],nm.prototype,"computedIcon",null);
_.y([_.v({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],nm);X8_&&_.h(nm,"ytd-toggle-button-renderer",VKo,{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var DL=_.dN(function(c){function f(m){var H;return _.k(function(A){if(A.nextAddress==1)return(H=!xpC(m,O())||!O().enabled)?A.jumpTo(2):A.yield(dfl(),3);A.nextAddress!=2&&(H=A.yieldResult);if(H)return A.return();d();setTimeout(function(){g(!1)},1500);
_.Fm(A)})}
function d(){setTimeout(function(){g(!0);var m;(m=q.lottieEl)==null||m.goToAndPlay(0)},150)}
var q=_.Yv(),Z=_.C(_.OT(!1,void 0,"JJXzp")),M=Z.next().value,g=Z.next().value,O=_.Ga(c.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.L9(function(){var m,H;((m=c.settings)==null?void 0:(H=m.call(c))==null?void 0:H.uniqueId)==="this is not intended behavior"&&_.u6(new _.KD("Smartimation Settings is undefined"))});
_.$k(function(){O().experimentEnabled&&(O().enabled?oAr(f):(g(!1),GkN(f)),_.Q4(function(){GkN(f)}))},"FRiAUe");
_.$k(function(){O().timings.join("");O().experimentEnabled&&(car(O()),_.Q4(function(){fwn(O())}))},"VKiJOe");
var l=_.TZ(function(){var m=q,H=O().uniqueId+"-border",A,Y;var t="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((Y=(A=_.ql().resolve(_.dx(_.of)))==null?void 0:A())!=null&&Y?"dark":"light")+"_v2.json";return{animationRef:m,animationConfig:{name:H,autoplay:!1,loop:!1,path:t}}},void 0,"tgykab");
Z={};return _.B("yt-smartimation",{class:_.FY(c.className,"smartimation",(Z["smartimation--experiment-enabled"]=function(){return O().experimentEnabled},Z["smartimation--active-border"]=M,Z["smartimation--enable-masking"]=jrl(),Z))},_.B(_.T,{cond:function(){return O().experimentEnabled},
then:function(){return _.B("div",{class:"smartimation__border"},_.B(_.gT,{className:"smartimation__border-gradient",data:l,animationName:function(){return l().animationConfig.name}}))}}),_.B("div",{class:"smartimation__content"},c.children))},"E");
DL.idomCompat=!0;_.g_(DL,"yt-smartimation",{props:{className:_.oM,settings:_.oM}});var $Q=function(){var c=_.z.apply(this,arguments)||this;c.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};c.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};c.shouldEnableSmartimation=!1;return c};
_.K($Q,_.z);$Q.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
$Q.prototype.onDataChanged=function(){var c,f;this.shouldEnableSmartimation=(((c=this.data)==null?void 0:(f=c.timedAnimationData)==null?void 0:f.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
$Q.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var c=_.b(this.data.likeButton,_.Dj),f=_.b(this.data.dislikeButton,_.Dj);return!!((c==null?0:c.isToggled)||(f==null?0:f.isToggled))};
$Q.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]]"}}}}}};
_.ci.Object.defineProperties($Q.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var c,f,d=((c=this.data)==null?void 0:(f=c.timedAnimationData)==null?void 0:f.animationTiming)||[];return{uniqueId:"like-dislike",timings:d,enabled:this.shouldEnableSmartimation,experimentEnabled:d.length>0}}}});
$Q.prototype.onDataChanged=$Q.prototype.onDataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$Q.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],$Q.prototype,"likeButtonOverride",void 0);_.y([_.L(),_.D("design:type",Object)],$Q.prototype,"dislikeButtonOverride",void 0);
_.y([_.S("shouldEnableSmartimation"),_.D("design:type",Object),_.D("design:paramtypes",[])],$Q.prototype,"smartimationSettings",null);_.y([_.m5("data"),_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$Q.prototype,"onDataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],$Q);
_.h($Q,"ytd-segmented-like-dislike-button-renderer",function(){if(Ja3!==void 0)return Ja3;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Ja3=c},{mode:1});var vb3;var hy3;(hy3=document.body)==null||hy3.setAttribute("rounded-container","");var w8K={};w8K.YtToggleButtonBehavior=[_.Cy.YtActionHandlerBehavior,Ea.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 c=this.data.isToggled;if(!this.isModal_(c)){if(!this.data.preventAutoToggle){this.toggle();var f={toggled:this.data.isToggled,actions:{}};f.actions[this.buttonIcon]=this.data.isToggled;_.CZ(this.hostElement,"yt-toggle-button",f)}f=this.data.defaultServiceEndpoint||null;var d=this.data.toggledServiceEndpoint||null;if(f&&d||f&&this.data.preventAutoToggle)c=c?d:f,f=this.disableCommandHandlerOverride,_.F("killswitch_toggle_button_behavior_resolve_command")||f?_.OX(this.hostElement,
[c]):_.Ae(c,this.hostElement),_.CZ(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:c})}},
stateChanged_:function(){var c=this.data;if(c){var f=c.isToggled;this._setEndpoint(this.computeEndpoint_(c));this._setServiceEndpoint(this.computeServiceEndpoint_(c));this._setButtonIcon(this.computeButtonIcon_(c,f));this._setButtonText(this.computeButtonText_(c,f));this._setButtonAccessibility(this.computeAccessibility_(c,f));this._setButtonTooltip(this.computeTooltip_(c,f));this._setButtonClass(this.computeButtonClass_(c,f));this._setIconPositionType(this.computeIconPositionType_(c));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=f):this.elements_.button.setAttribute("aria-pressed",f));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=f)}},
shouldSetIconActiveState_:function(){return _.F("kevlar_system_icons")},
toggle:function(c){this.set("data.isToggled",c!==void 0?c:!this.data.isToggled);_.F("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(c){if(c){var f,d;return!!((f=this.data)==null?0:(d=f.toggledServiceEndpoint)==null?0:d.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(c){return c&&c.defaultNavigationEndpoint||null},
computeButtonIcon_:function(c,f){var d=c&&c.defaultIcon?_.Tu(c.defaultIcon.iconType):null;c=c&&c.toggledIcon?_.Tu(c.toggledIcon.iconType):d;return f?c:d},
handleUpdateToggleButtonStateCommand_:function(c){c=c.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==c.buttonId&&this.toggle(c.toggled)},
computeButtonText_:function(c,f){return c?f&&c.toggledText||c.defaultText||null:null},
computeAccessibility_:function(c,f){return c?(f?this.get("toggledAccessibilityData.accessibilityData",c):this.get("accessibilityData.accessibilityData",c))||c.accessibility||null:null},
computeTooltip_:function(c,f){return c?f&&c.toggledTooltip||c.defaultTooltip||null:null},
computeButtonClass_:function(c,f){if(!c)return"";var d="",q=c.toggledStyle||c.style;if(f=f?q:c.style){f.styleType&&(f=f.styleType);try{d+=f.toLowerCase().replace(/_/g,"-")+" "}catch(Z){_.wK(Z,f,typeof f),_.u6(Z)}}if(c=c.size){c.sizeType&&(c=c.sizeType);try{d+=c.toLowerCase().replace(/_/g,"-")+" "}catch(Z){_.wK(Z,c,typeof c),_.u6(Z)}}return d.trim()},
computeIconPositionType_:function(c){return c&&c.iconPosition||null},
computeServiceEndpoint_:function(c){var f=c&&c.serviceEndpoint,d=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return f?f:d&&c.command?c.command:null},
handleUpdateToggleButtonTextAction_:function(c){c=c.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==c.buttonId&&(this.set("data.defaultText",c.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",c.toggledText),this.notifyPath("data.toggledText"))}}];_.w_("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var yaF=_.F("web_button_rework")&&_.wi("BUTTON_REWORK")||_.F("web_button_rework_with_live"),QD=function(){var c=_.z.apply(this,arguments)||this;c.systemIcons=_.F("kevlar_system_icons");c.roundedContainer=!0;return c};
_.K(QD,_.z);QD.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
QD.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var c=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var f={toggled:!!this.data.isToggled,actions:{}};f.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var d,q;f.actions.playlistId=(d=this.data.defaultServiceEndpoint)==null?void 0:(q=d.playlistEditEndpoint)==null?void 0:q.playlistId;_.CZ(this.hostElement,"yt-toggle-button",f)}(c=c?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(c)}};
QD.prototype.onYtNavigate=function(c){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(c.detail.endpoint);f&&(c.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(f))};
_.ci.Object.defineProperties(QD,{template:{configurable:!0,enumerable:!0,get:function(){if(vb3===void 0){var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);vb3=c}c=vb3;return c}}});
QD.prototype.onYtNavigate=QD.prototype.onYtNavigate;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],QD.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],QD.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(w8K.YtToggleButtonBehavior),_.D("design:type",Object)],QD.prototype,"ytToggleButtonBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],QD.prototype,"data",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],QD.prototype,"showTooltips",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],QD.prototype,"systemIcons",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],QD.prototype,"roundedContainer",void 0);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],QD.prototype,"onYtNavigate",null);
_.y([_.v({is:"ytd-toggle-button-renderer",disableElementRegistration:yaF})],QD);var WG3;_.SD=new _.jk("PANEL_CONTROLLER_TOKEN");_.Lm=new _.jk("SHEET_CONTROLLER_TOKEN");_.z9=new _.jk("DIALOG_CONTROLLER_TOKEN");WG3=new _.jk("DIALOG_CONTAINER_TOKEN");var lwN=_.HO("DOWNLOAD",{},"Download"),srl=_.HO("DOWNLOADING",{},"Downloading"),B6k=_.HO("DOWNLOADED",{},"Downloaded"),iYN=_.HO("RETRY",{},"Retry");var mfh=[],HYe=!1;var DfT=_.dN(function(c){var f=Ebl,d=function(){return""},q=FGe(c.data),Z=tKG(c.data),M=bYz(c.data),g=KGr(c.data);
f=function(){var O=c.data(),l=kmn(O,q(),Z(),M(),g()),m=!!O.videoId,H=l.text;return{title:m?H:void 0,tooltip:m?void 0:H,accessibilityText:H,onTap:l.onTap,iconName:l.iconType,style:O.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:l.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:O.buttonSize}};
d={};d=_.FY("ytDownloadButtonViewModelHost",(d.ytDownloadButtonViewModelIsHidden=function(){var O=c.data(),l=g();return O.playlistId||l()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||l()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},d));
return _.B("download-button-view-model",{class:d},_.B(_.mN,{data:f}))},"F");
DfT.idomCompat=!0;var N63=_.dN(function(c){var f=c.backgroundLottieRef;var d=c.foregroundLottieRef;var q=c.children;var Z=c.wrapperClass;var M=c.disableAnimation;c=function(){return(_.F("web_animated_actions")||_.F("web_animated_actions_v2"))&&!(M==null?0:M())};
return _.B("yt-animated-action",{class:_.FY("animated-action__container",Z)},_.B("div",{class:"animated-action__content-with-background"},_.B(_.T,{cond:c,then:function(){return _.B(eyF,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:f==null?void 0:f(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(nbe()?"dark":"light")+"_v5.json"}}}})}}),q),_.B(_.T,{cond:c,
then:function(){return _.B(eyF,{lottiePlayerProps:function(){return{animationRef:d==null?void 0:d(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(nbe()?"dark":"light")+"_v4.json"}}}})}}))},"G");
N63.idomCompat=!0;var eyF=_.dN(function(c){var f=c.wrapperClass;var d=c.lottieClass;var q=c.lottiePlayerProps;return _.B("div",{class:_.FY("animated-action__lottie",f),"aria-hidden":"true"},_.B(_.gT,{className:d,data:q,animationName:function(){return q().animationConfig.name}}))},"H");var $fP={isOpen:!1};var Sb4={isAllowed:!1};var zy4={errorMessage:"",title:"",privacy:"",isDisabled:!0};var awh={isOpen:!1};var X8l={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Iwr={response:void 0};var vbP=function(c,f){c=c===void 0?Iwr:c;switch(f.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},c,{response:f.payload});default:return c}};var PiO={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var hyP=function(c,f){c=c===void 0?PiO:c;switch(f.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},c,{nextDisabled:f.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},c,{nextCommand:f.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},c,{footerSubmissionData:f.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},c,{isImpersonationValid:f.payload});default:return c}};var Ry3={reportFormData:void 0,reportDetailsFormData:void 0};var w8k=function(c,f){c=c===void 0?Ry3:c;switch(f.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},c,{reportFormData:f.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},c,{reportDetailsFormData:f.payload});default:return c}};var UfH=void 0;_.F("mweb_enable_redux_store_on_demand")||(UfH=new on(yan()));var J2=_.F("enable_web_delhi_icons");var p83=_.dN(function(c){c=_.ch(c,{themeOverride:void 0,animationRef:{}});var f=c.animatedIconType,d=c.active,q=c.themeOverride,Z=c.animationRef;c=c.staticIconFn;var M=_.C(_.OT(void 0,void 0,"P5a72b")),g=M.next().value,O=M.next().value,l=function(){a:{var X=f();var u=q==null?void 0:q();var W;u=(u==null?void 0:u.useDarkTheme)||((W=_.ql().resolve(_.dx(_.of)))==null?void 0:W());switch(X){case "LIKE":UfH||(UfH=new on(yan()));X=(X=aYe(UfH.getState()))&&X.animationLightUrl&&X.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:u?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:u?X.animationDarkUrl:X.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(X){u=X;break a}u="animated_like_icon_"+(u?"dark":"light")+"_"+(J2?"v5":"v4");u={lottiePlayerProps:{animationConfig:{name:u,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+u+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(J2?" animated-like-icon-delhi":"")}}},totalFrames:J2?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":u={lottiePlayerProps:{animationConfig:{name:u?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(u?"dark":"light")+(J2?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(J2?" animated-subscribe-icon-delhi":"")}}},totalFrames:J2?120:79,lazyLoad:!1};break a}u=
void 0}return u},m=function(){var X,u;
return(u=(X=l())==null?void 0:X.lottiePlayerProps.animationConfig.name)!=null?u:""},H=function(){if(l()){var X=l().lottiePlayerProps.animationConfig.path;
return YZ.get(X)||g()}};
M=_.C(_.OT(!1,void 0,"h6xR3c"));var A=M.next().value;M=M.next().value;var Y=Dfh(M),t=function(){var X=l(),u,W,p;return(p=X==null?void 0:(u=X.lottiePlayerProps.animationConfig)==null?void 0:(W=u.rendererSettings)==null?void 0:W.className)!=null?p:""},E=void 0,J=void 0;
_.$k(function(){var X=l(),u=m(),W=H(),p=A(),N=d();if(X&&(J!==u&&(J=u,E=N,u=Z(),Y.animationConfig=X.lottiePlayerProps.animationConfig,Y.animationRef=u,W&&(Y.animationConfig.animationData=W,Y.animationConfig.path=void 0),u=X.lottiePlayerProps.animationConfig.path,!YZ.get(u)&&X.lazyLoad&&u&&WGP(u,O)),!(p||X.lazyLoad&&!W))){if(W=!Z().lottieEl)N?(p=X.totalFrames,Y.animationConfig.initialSegment=[p-1,p]):Y.animationConfig.initialSegment=void 0;if(E!==N&&!W)if(W=Z(),N){var I;(I=W.lottieEl)==null||I.playSegments([0,
X.totalFrames],!0)}else{var R;(R=W.lottieEl)==null||R.playSegments([0,1],!0)}E=N}},"YCYOCe");
return _.B("animated-icon",{class:"ytAnimatedIconHost"},_.B(_.T,{cond:function(){var X,u;return!((X=l())==null||!X.lottiePlayerProps.animationConfig.path||((u=l())==null?0:u.lazyLoad)&&!H()||A())},
then:function(){return _.B(_.gT,{data:Y,animationName:m,className:t,animationRef:Z})},
else:c}))},"I");_.aQ=_.dN(function(c){var f=_.xz("yt-subscribe-button-view-model"),d=_.xz("div"),q=_.xz("div"),Z=_.Yv(),M=_.Yv(),g=_.Yv(),O=_.Ka(hCe,function(){return c.data().stateEntityStoreKey}),l=_.Ka(wEG,function(){var xl,Tv;
return(Tv=(xl=c.data().notificationStateEntityStoreKeys)==null?void 0:xl.subsNotificationStateKey)!=null?Tv:""}),m=function(){return!c.data().enableSubscribeButtonPostClickAnimation},H=_.C(_.OT(0,void 0,"eTsWvc")),A=H.next().value,Y=H.next().value;
H=_.C(_.OT(0,void 0,"dniDQ"));var t=H.next().value,E=H.next().value;H=_.C(_.OT(!1,void 0,"EluPic"));var J=H.next().value,X=H.next().value;H=_.C(_.OT(!1,void 0,"r0jnre"));var u=H.next().value,W=H.next().value;H=_.C(_.OT(!1,void 0,"KMvoQe"));var p=H.next().value,N=H.next().value,I;H=_.C(_.OT(!1,void 0,"aSENce"));var R=H.next().value,qN=H.next().value,kl=function(){W(!0);_.QH(_.a7,function(){W(!1)},1500)};
_.$k(function(){var xl=u();kk(function(){xl&&!m()&&O()&&Gmn(Z,M,g)})},"LgmX6c");
_.$k(function(){var xl=O();kk(function(){if(!m()&&xl){var Tv;((Tv=c.animateWidth)==null?0:Tv.call(c))&&obe(f.value,!!xl.subscribed,A(),t());var ir,$_;((ir=I)==null?0:ir.subscribed)||!xl.subscribed||xl.key!==(($_=I)==null?void 0:$_.key)||kl();I=xl}})},"iZzoUb");
H=_.TZ(function(){var xl,Tv,ir,$_=c.data(),AH=!((xl=O())==null||!xl.subscribed);xl=!((Tv=c.isOverlay)==null||!Tv.call(c));Tv=J()?f:void 0;var U3=(ir=l())==null?void 0:ir.state;ir=R();xfh($_,U3);return Iwe({model:$_,subscribed:AH,isOverlay:xl,element:Tv,notificationState:U3,disableTextEllipsis:!0,focused:ir})},void 0,"yGQGue");
var BN=function(){var xl;if(!m()&&((xl=c.animateWidth)==null?0:xl.call(c))&&(d==null?0:d.value)&&(q==null?0:q.value)&&!p()){xl=O();var Tv=_.C((xl==null?0:xl.subscribed)?[d,q]:[q,d]),ir=Tv.next().value;Tv=Tv.next().value;ir=Math.ceil(ir.value.getBoundingClientRect().width);Tv=Math.ceil(Tv.value.getBoundingClientRect().width);Y(ir);E(Tv);obe(f.value,!(xl==null||!xl.subscribed),ir,Tv);N(!0)}},tP=_.Ks(function(xl){BN();
var Tv=O();Tv&&(xl.detail.endpoint.subscribeEndpoint||xl.detail.endpoint.unsubscribeEndpoint)&&RyP(f.value,!Tv.subscribed,Tv)}),EC=function(){var xl=_.ql().resolve(_.dx(_.lw));
xl&&qN(xl.isKeyBoardInUse())},AP=function(){qN(!1)};
_.pW("yt-player-subscribe",function(xl){var Tv=O();Tv&&xl===c.data().channelId&&RyP(f.value,!0,Tv)});
_.pW("yt-player-unsubscribe",function(xl){var Tv=O();Tv&&xl===c.data().channelId&&RyP(f.value,!1,Tv)});
_.pW("yt-update-subscribe-button-action",function(xl){xl=_.b(xl,j5H);var Tv=O();Tv&&xl&&xl.channelId===c.data().channelId&&RyP(f.value,!!xl.subscribed,Tv)});
_.L9(function(){f.value&&(f.value.addEventListener("focusin",EC),f.value.addEventListener("focusout",AP));var xl=_.Em(_.a7,function(){BN()});
X(!0);_.Q4(function(){_.a7.cancelJob(xl);f.value&&(f.value.removeEventListener("focusin",EC),f.value.removeEventListener("focusout",AP))})});
var eM=function(){var xl,Tv,ir;if(ir=!((xl=O())==null||!xl.subscribed))xl=!!c.data().disableNotificationBell,ir=(Tv=l())==null?void 0:Tv.state,ir=!xl&&!!ir;return ir},ue=function(){var xl;
return!((xl=O())==null?0:xl.subscribed)},BH=function(){var xl,Tv;
if(Tv=ue()){Tv=!!c.data().disableNotificationBell;var ir=(xl=l())==null?void 0:xl.state;Tv=!Tv&&!!ir}return Tv},J3={},lr={};
return _.B("yt-subscribe-button-view-model",{class:_.FY(c.className,"yt-subscribe-button-view-model-wiz",(J3["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var xl,Tv;return!((xl=O())==null||!xl.subscribed)&&((Tv=c.animateWidth)==null?void 0:Tv.call(c))&&u()},J3["yt-subscribe-button-view-model-wiz--hidden"]=function(){var xl;
return!((xl=O())==null?0:xl.subscribed)&&c.data().hideWhenUnsubscribed},J3)),
el:f,"on:yt-service-request-sent":tP},_.B(N63,{backgroundLottieRef:Z,foregroundLottieRef:M,wrapperClass:_.FY("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(lr["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var xl;return((xl=c.animateWidth)==null?void 0:xl.call(c))&&u()},lr["yt-subscribe-button-view-model-wiz__static-width"]=function(){var xl;
return!((xl=c.animateWidth)==null?0:xl.call(c))},lr)),
disableAnimation:m},_.B("div",{el:d,class:"yt-subscribe-button-view-model-wiz__container"},_.B(_.iw,{data:H,icon:function(){return _.B(_.T,{cond:eM,then:function(){var xl=function(){var Tv;return Pi4((Tv=l())==null?void 0:Tv.state)};
return _.B(_.T,{cond:function(){return m()||xl()!=="NOTIFICATIONS_NONE"},
then:function(){return _.B(_.Qy,{icon:xl})},
else:function(){return _.B(p83,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:g})}})}})},
secondaryIconName:function(){return eM()?"EXPAND":void 0}}))),_.B("div",{el:q,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.B(_.T,{cond:function(){var xl;return((xl=c.animateWidth)==null?void 0:xl.call(c))&&!m()&&!p()},
then:function(){return _.B(_.iw,{data:_.TZ(function(){var xl;return Iwe({model:c.data(),subscribed:ue(),isOverlay:!((xl=c.isOverlay)==null||!xl.call(c)),element:f,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var xl;return BH()?Pi4((xl=l())==null?void 0:xl.state):void 0},
secondaryIconName:function(){return BH()?"EXPAND":void 0}})}})))},"J");
_.aQ.idomCompat=!0;var cfk=new _.jk("RENDERER_STAMPER_OPTIONS_TOKEN");var xfT=_.dN(function(c){var f=c.data;var d=_.Ka(hCe,function(){return f().subscriptionStateEntityKey});
return _.B(_.T,{cond:function(){var q=f(),Z=d();return!q.hideWhenUnsubscribed||(Z==null?0:Z.subscribed)?_.b(f().button,_.zx):void 0},
then:function(q){return _.B("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.B(_.mN,{data:q,buttonOverrides:function(){return{toggled:!0}}}))}})},"K");
xfT.idomCompat=!0;var k_P=_.La({buttonViewModel:_.mN,subscribeButtonViewModel:_.aQ,downloadButtonViewModel:DfT,toggleButtonViewModel:_.JL,subscribePlusButtonViewModel:xfT});_.ZB(l6k);var E7k=new _.jk("RENDERER_LOGGER_TOKEN");var VH;_.ae=new Wto;VH=new Map;var tLe="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),Kyz=["notificationTextRenderer","notificationMultiActionRenderer"],bVN="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
Fyk=sLY(function(c){return _.LL(c==null?void 0:c.targetId)}).useUpdatableData;var YfP=0;_.u7.debugName="EjJbCe";var obr,VD,GmF;obr=_.dN(function(c){return _.B(_.u7,{data:function(){return c.actionRow().actions}},{buttonViewModel:function(f){var d=f.data;
return _.B(VD,{isRow:c.isRow,isIconOnlyButton:function(){return n7h(d())},
useIntrinsicWidth:c.useIntrinsicWidth},_.B(_.mN,{data:d}))},
subscribeButtonViewModel:function(f){return _.B(VD,{isRow:c.isRow},_.B(_.aQ,{data:f.data,isOverlay:!1,animateWidth:function(){return!c.isRow()}}))},
downloadButtonViewModel:function(f){var d=f.data;return _.B(VD,{isRow:c.isRow,isIconOnlyButton:function(){return!!d().playlistId}},_.B(DfT,{data:d}))},
toggleButtonViewModel:function(f){var d=f.data;return _.B(VD,{isRow:c.isRow,isIconOnlyButton:function(){var q=d();return n7h(_.b(q.isToggled?q.toggledButtonViewModel:q.defaultButtonViewModel,_.zx))}},_.B(_.JL,{data:d}))},
subscribePlusButtonViewModel:function(f){return _.B(VD,{isRow:c.isRow},_.B(xfT,{data:f.data}))}})},"L");
VD=_.dN(function(c){var f={};return _.B("div",{class:_.FY("yt-flexible-actions-view-model-wiz__action",(f["yt-flexible-actions-view-model-wiz__action--row-action"]=c.isRow,f["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=c.useIntrinsicWidth,f["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,f["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=c.isIconOnlyButton,f))},c.children)},"M");
GmF=_.dN(function(c){var f=function(){var q;return((q=c.layout)==null?void 0:q.call(c))===1},d={};
return _.B("yt-flexible-actions-view-model",{class:_.FY("yt-flexible-actions-view-model-wiz",c.className,(d["yt-flexible-actions-view-model-wiz--inline"]=function(){return!f()},d["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return c.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},d))},_.B(_.bd,{each:function(){return c.data().actionsRows||[]}},function(q){return _.B(_.T,{cond:f,
then:function(){return _.B("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.B(obr,{actionRow:q,isRow:f,useIntrinsicWidth:function(){return!!c.data().respectActionIntrinsicWidth}}))},
else:function(){return _.B(obr,{actionRow:q,isRow:f})}})}))},"N");
_.XT=_.F("web_enable_sink_yt_flexible_actions_view_model")?GmF:_.bS(l6k);GmF.idomCompat=!0;_.g_(_.XT,"yt-flexible-actions-view-model",{props:{data:_.oM,layout:_.oM,justifyContentOverride:_.oM,className:_.oM}});_.u9=_.dN(function(c){var f=_.Ka(IT,function(){var Z;return(Z=c.data().dislikeEntityKey)!=null?Z:""}),d=_.TZ(function(){var Z=f();
return Z?Z.likeStatus==="DISLIKE":_.b(c.data().toggleButtonViewModel,_.Jc).isToggled},void 0,"B2tgKf"),q=_.TZ(function(){return Object.assign({},_.b(c.data().toggleButtonViewModel,_.Jc),{isToggled:d()})},void 0,"otfIbf");
return _.B("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.B(_.JL,{data:q,buttonShapeOverrides:c.buttonShapeOverrideables,onToggle:function(Z){var M=f();M&&Z!==(M.likeStatus==="DISLIKE")&&M.key&&_.oa(_.uh("likeStatusEntity",M.key,{likeStatus:Z?"DISLIKE":"INDIFFERENT",hadUserInteraction:Z}))}}))},"O");
_.u9.idomCompat=!0;_.vP=_.dN(function(c){var f=_.F("web_supports_animations_api"),d=M5(function(Y){var t=m();if(!Y){var E,J;return{numberText:(J=t==null?void 0:(E=t.likeCountIfIndifferent)==null?void 0:E.content)!=null?J:"",numberValue:Number(t==null?void 0:t.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var X;E=(t==null?void 0:(X=t.likeCountIfIndifferent)==null?void 0:X.content)!==Y.numberText;if(O()||!E)return Y;var u;return{numberText:(t==null?void 0:(u=t.likeCountIfIndifferent)==null?void 0:u.content)||
"",numberValue:Number(t==null?void 0:t.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!t}}),q=M5(function(Y){var t=m();
if(!Y){var E,J;return{numberText:(J=t==null?void 0:(E=t.likeCountIfLiked)==null?void 0:E.content)!=null?J:"",numberValue:Number(t==null?void 0:t.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var X;E=(t==null?void 0:(X=t.likeCountIfIndifferent)==null?void 0:X.content)!==Y.numberText;if(O()||!E)return Y;var u;return{numberText:(t==null?void 0:(u=t.likeCountIfLiked)==null?void 0:u.content)||"",numberValue:Number(t==null?void 0:t.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!t}}),Z=_.C(_.OT(void 0,
void 0,"xYSlUe")),M=Z.next().value,g=Z.next().value,O=M,l=_.Ka(IT,function(){var Y,t;
return(t=(Y=c.data())==null?void 0:Y.likeStatusEntityKey)!=null?t:""}),m=_.Ka(ikN,function(){var Y,t;
return((Y=c.likeCountEntity)==null?void 0:(t=Y.call(c))==null?void 0:t.key)||""}),H=_.TZ(function(){var Y;
return((Y=l())==null?void 0:Y.likeStatus)==="LIKE"},void 0,"DG5Osd"),A=function(){var Y;
return f&&!((Y=c.likeCountEntity)==null||!Y.call(c))};
return _.B("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.B(_.JL,{data:function(){var Y=Object,t=Y.assign,E;var J=_.b((E=c.data())==null?void 0:E.toggleButtonViewModel,_.Jc);return t.call(Y,{},J||{},{isToggled:H()})},
buttonShapeOverrides:c.buttonShapeOverrideables,animatedTextPropsDefault:function(){return A()?d():void 0},
animatedTextPropsToggled:function(){return A()?q():void 0},
onToggle:function(Y){$ZG(Y,l(),O(),g)},
style:function(){var Y;return((Y=c.disableIconAnimation)==null?0:Y.call(c))?void 0:{animateIcon:"true"}}}))},"P");
_.vP.idomCompat=!0;var cfK=_.dN(function(c){var f=function(){return _.b(c.data().likeButtonViewModel,_.uq)},d=function(){var Z;
return((Z=f())==null?void 0:Z.likeStatusEntityKey)||""},q=_.TZ(function(){var Z,M;
var g=(M=_.Ka(IT,d)())!=null?M:(Z=f())==null?void 0:Z.likeStatusEntity;Z=c.data();var O;Z=(Z==null?void 0:(O=Z.timedAnimationData)==null?void 0:O.animationTiming)||[];return{uniqueId:"like-dislike",timings:Z,enabled:(g==null?void 0:g.likeStatus)==="INDIFFERENT"&&Z.length>0,experimentEnabled:Z.length>0}},void 0,"hGh9Td");
return _.B("segmented-like-dislike-button-view-model",{class:_.FY("ytSegmentedLikeDislikeButtonViewModelHost",c.className),"button-renderer":!0},_.B(DL,{settings:q},_.B("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.B(_.T,{cond:f,then:function(Z){return _.B(_.vP,{data:Z,likeCountEntity:function(){return c.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.B(_.T,{cond:function(){return _.b(c.data().dislikeButtonViewModel,_.XL)},
then:function(Z){return _.B(_.u9,{data:Z,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Q");
cfK.idomCompat=!0;_.g_(cfK,"segmented-like-dislike-button-view-model",{props:{data:_.oM,className:_.oM}});var f6y=_.dN(function(c){var f=c.data;var d=c.className;var q=c.setMinWidth;var Z=c.forceIconOnly;var M=_.xz("account-link-button-view-model"),g=_.Ka(_.QLP,function(){var Y;return(Y=f().accountLinkStatusEntityKey)!=null?Y:""}),O=_.Ka(_.QLP,function(){var Y;
return(Y=f().accountLinkStatusSecondaryEntityKey)!=null?Y:""}),l=function(){if(!_.F("web_account_link_secondary_killswitch")){var Y,t;
return((Y=g())==null?void 0:Y.linked)||((t=O())==null?void 0:t.linked)}var E;return(E=g())==null?void 0:E.linked};
_.$k(function(){var Y=g();if(Y){var t=qPH(new jYO,fu_(new cRv,!!Y.linked));_.H9().then(function(E){E&&(E.setAccountLinkState(_.$S(t.JSC$12058_serializeBinary(),4)),E.updateAccountLinkingConfig(!!Y.linked))})}},"b9pSsf");
var m=function(){return _.b(f().toggleButtonViewModel,_.Jc)};
_.pW("yt-signal-action-show-account-link-dialog",function(){if(m()){var Y=l()?m().toggledButtonViewModel:m().defaultButtonViewModel;Y=_.b(Y,_.zx);var t;if((t=g())==null?0:t.isWarning){t=_.b(f().warningButtonViewModel,_.zx);if(!t){_.eZ(Error("zh"));return}Y=t}var E;(t=_.D9((E=Y)==null?void 0:E.onTap))&&_.il([t],M.value)}else _.eZ(Error("Ah"))});
var H=function(){var Y=m();return Object.assign({},Y,{isToggled:l()})},A=function(){return(Z==null?0:Z())?{iconPosition:"icon-only"}:{}};
return _.B("account-link-button-view-model",{class:_.FY("ytwAccountLinkButtonViewModelHost",d,function(){return(q==null?0:q())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:M,"button-renderer":!0},_.B("div",null,_.B(_.T,{cond:function(){var Y;if((Y=g())==null?0:Y.isWarning)return(Y=_.b(f().warningButtonViewModel,_.zx))||_.eZ(Error("zh")),Y},
then:function(Y){return _.B(_.mN,{data:Y,buttonOverrides:A})},
else:function(){return _.B(_.JL,{data:H,buttonShapeOverrides:A})}})))},"R");_.g_(f6y,"account-link-button-view-model",{props:{data:_.oM,className:_.Cs,setMinWidth:_.Cs,forceIconOnly:_.Cs}});_.w_("menuRenderer","menuRenderer","ytd-menu-renderer");
var dZO={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"}},
jLF=_.F("web_fix_missing_action_buttons")?100:200,h2=function(){var c=_.z.apply(this,arguments)||this;c.safeArea=!_.F("kevlar_flex_menu_safe_area_killswitch");c.tonalOverride=!1;c.threeDotSize="M";c.isOverlay=!1;c.useOverlayDark=!1;c.topLevelIconsOnly=!1;c.JSC$14533_lastWidth=0;c.maybeUpdateFlexibleMenu=function(){_.F("web_fix_missing_action_buttons")?requestAnimationFrame(c.maybeUpdateFlexibleMenuImpl):c.maybeUpdateFlexibleMenuImpl()};
c.maybeUpdateFlexibleMenuImpl=function(){var f;if((f=c.data)!=null&&f.flexibleItems){c.maybeFlushDebouncer();f=c.hostElement.clientWidth;var d=f>c.JSC$14533_lastWidth,q,Z=((q=c.topLevelButtonsContainer)==null?void 0:q.scrollHeight)||0,M;q=((M=c.flexibleItemButtonsContainer)==null?void 0:M.scrollHeight)||0;M=c.hostElement.scrollHeight>Math.max(Z,q)+8;d?(c.resetFlexibleItems(),c.JSC$14533_lastWidth=c.hostElement.clientWidth,c.maybeUpdateFlexibleMenu()):M&&(c.shrinkFlexibleMenu(),c.JSC$14533_lastWidth=
f)}};
c.computeThreeDotButtonShape=function(){if(c.tonalOverride)return Object.assign({},{onTap:function(){c.onOverflowTap()},
iconPosition:"icon-only",style:c.isOverlay?c.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:c.threeDotSize,state:"active",accessibilityLabel:c.computeAccessibilityLabel(c.data)},c.threeDotButtonOverride)};
c.onOverflowTap=function(){if(c.data.fetchMenuCommand)_.ql().resolve(_.ZM).resolveCommand(c.data.fetchMenuCommand,{form:{element:c.hostElement}});else if(c.data.isDisabled&&c.data.disabledCommand)_.Ae(c.data.disabledCommand,c.hostElement);else{var f=c.createMenuRendererVe(),d={items:c.items};c.data.menuPopupAccessibility&&(d.menuPopupAccessibility=c.data.menuPopupAccessibility);c.data.footer&&(d.footer=c.data.footer);f={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:d},veData:f}};
_.ql().resolve(_.Lm).openSheet({openPopupActionCommand:f},c.hostElement)}};
return c};
_.K(h2,_.z);_.r=h2.prototype;_.r.updateButtonOverrides=function(){if(!_.F("menu_renderer_label_update_upkillswitch")){var c=_.r1(this.hostElement).querySelector("yt-button-view-model");c&&(c.buttonOverrides=this.buttonOverrides)}};
_.r.computeHasItems=function(){var c;return((c=this.topLevelButtonData)==null?void 0:c.length)||this.hasFlexibleItems};
_.r.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.r.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.la(this.hostElement,{"--ytd-menu-renderer-button-color":_.ya(this.data.iconColor)}))};
_.r.onStamperFinished=function(){this.JSC$14533_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.r.setupFlexibleMenu=function(){var c=this,f;(f=this.data)!=null&&f.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Gx(this.maybeUpdateFlexibleMenu,jLF,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){c.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))};
_.r.maybeFlushDebouncer=function(){if(_.F("web_replace_formatted_with_attributed_string")){var c;(c=this.topLevelButtons)==null||c.forEach(function(d){var q;(d=(q=d.getElementsByTagName("yt-attributed-string"))==null?void 0:q[0])&&LLl(d)});
var f;(f=this.flexibleItemButtons)==null||f.forEach(function(d){var q;(d=(q=d.getElementsByTagName("yt-attributed-string"))==null?void 0:q[0])&&LLl(d)})}};
_.r.resetFlexibleItems=function(){var c;if((c=this.data)!=null&&c.flexibleItems){_.F("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var f;this.flexAsTopLevelButtons=(f=this.data.flexibleItems)==null?void 0:f.map(function(d){return _.b(d,_.z1j).topLevelButton});
_.F("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.r.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.r.shrinkFlexibleMenu=function(){var c;(c=this.flexAsTopLevelButtons)!=null&&c.length&&(this.flexAsTopLevelButtons=[].concat(_.LT(this.flexAsTopLevelButtons.slice(0,-1))))};
_.r.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:dZO,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:dZO,events:!0}}};
_.r.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.r.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.r.detached=function(){this.icon="MORE_VERT"};
_.r.computeTopLevelButtonData=function(c){if(!c)return[];var f;c=(f=c==null?void 0:c.topLevelButtons)!=null?f:[];return _.zV.unsafeClone([].concat(_.LT(c)))};
_.r.computeItems=function(c,f){if(!c)return[];var d=[];if(f){var q=(c.flexibleItems||[]).map(function(g){return _.b(g,_.z1j)});
q=_.C(q);for(var Z=q.next();!Z.done;Z=q.next())Z=Z.value,f.includes(Z.topLevelButton)||(Z=Z.menuItem)&&d.push(Z)}var M;c=(M=c==null?void 0:c.items)!=null?M:[];return[].concat(_.LT(d),_.LT(c))};
_.r.computeMenuActive=function(c,f){return c||f};
_.r.onPopupOpened=function(){this.overlayOpen=!0;_.CZ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.r.onPopupClosed=function(){this.overlayOpen=!1;_.CZ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.r.onPopupCanceled=function(){this.overlayOpen=!1;_.CZ(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.r.computeAccessibilityLabel=function(c){return this.get("accessibility.accessibilityData.label",c)};
_.r.isHidden=function(c,f){return this.tonalOverride||!c?!0:c.fetchMenuCommand||c.isDisabled&&c.disabledCommand?!1:!(f==null?0:f.length)};
_.r.isModernOverflowHidden=function(c,f){return this.tonalOverride&&c?c.fetchMenuCommand?!1:!(f==null?0:f.length):!0};
_.r.createMenuRendererVe=function(){var c=this.data.trackingParams,f=_.X2(),d=_.V5();return c&&f&&d?(c=_.Q1(c),d=_.m_(7591),_.F("combine_ve_grafts")?_.B_(_.bP(),d,c):_.Dr(f,c,d),d):null};
_.ci.Object.defineProperties(h2.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.flexAsTopLevelButtons)==null||!c.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
h2.prototype.onPopupCanceled=h2.prototype.onPopupCanceled;h2.prototype.onPopupClosed=h2.prototype.onPopupClosed;h2.prototype.onPopupOpened=h2.prototype.onPopupOpened;h2.prototype.tonalOverrideChanged=h2.prototype.tonalOverrideChanged;h2.prototype.resetFlexibleItems=h2.prototype.resetFlexibleItems;h2.prototype.setupFlexibleMenu=h2.prototype.setupFlexibleMenu;h2.prototype.iconButtonColorChanged=h2.prototype.iconButtonColorChanged;h2.prototype.updateButtonOverrides=h2.prototype.updateButtonOverrides;
_.y([_.Q(_.fg),_.D("design:type",Object)],h2.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("#button-shape"),_.D("design:type",HTMLElement)],h2.prototype,"buttonShape",void 0);_.y([_.AY("#button"),_.D("design:type",Object)],h2.prototype,"button",void 0);
_.y([_.L(),_.D("design:type",Object)],h2.prototype,"data",void 0);_.y([_.L({computed:"computeTopLevelButtonData(data)"}),_.D("design:type",Array)],h2.prototype,"topLevelButtonData",void 0);_.y([_.L(),_.D("design:type",Array)],h2.prototype,"flexAsTopLevelButtons",void 0);_.y([_.L({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.D("design:type",Array)],h2.prototype,"items",void 0);_.y([_.L({value:"MORE_VERT"}),_.D("design:type",String)],h2.prototype,"icon",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],h2.prototype,"safeArea",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.D("design:type",Boolean)],h2.prototype,"menuActive",void 0);_.y([_.L(),_.D("design:type",Boolean)],h2.prototype,"menuFocused",void 0);_.y([_.L({value:"bottom"}),_.D("design:type",String)],h2.prototype,"buttonTooltipPosition",void 0);_.y([_.L(),_.D("design:type",Boolean)],h2.prototype,"overlayOpen",void 0);
_.y([_.L({value:!0}),_.D("design:type",Boolean)],h2.prototype,"forceIconButton",void 0);_.y([_.L(),_.D("design:type",Boolean)],h2.prototype,"styleActionButton",void 0);_.y([_.L(),_.D("design:type",Boolean)],h2.prototype,"disableTextTransformOnButtons",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],h2.prototype,"tonalOverride",void 0);_.y([_.L(),_.D("design:type",Object)],h2.prototype,"threeDotSize",void 0);
_.y([_.L(),_.D("design:type",Object)],h2.prototype,"threeDotButtonOverride",void 0);_.y([_.L(),_.D("design:type",Object)],h2.prototype,"isOverlay",void 0);_.y([_.L(),_.D("design:type",Object)],h2.prototype,"useOverlayDark",void 0);_.y([_.L({computed:"computeButtonOverride(tonalOverride)"}),_.D("design:type",Object)],h2.prototype,"buttonOverride",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],h2.prototype,"hasCustomIconColor",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("flexAsTopLevelButtons"),_.D("design:type",Object),_.D("design:paramtypes",[])],h2.prototype,"hasFlexibleItems",null);_.y([_.L({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.D("design:type",Boolean)],h2.prototype,"hasItems",void 0);_.y([_.L(),_.D("design:type",Object)],h2.prototype,"topLevelIconsOnly",void 0);
_.y([_.m5("topLevelIconsOnly"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],h2.prototype,"updateButtonOverrides",null);_.y([_.S("topLevelIconsOnly"),_.D("design:type",Object),_.D("design:paramtypes",[])],h2.prototype,"buttonOverrides",null);_.y([_.AY("#top-level-buttons-computed"),_.D("design:type",HTMLElement)],h2.prototype,"topLevelButtonsContainer",void 0);_.y([_.YE(".top-level-buttons > *"),_.D("design:type",Array)],h2.prototype,"topLevelButtons",void 0);
_.y([_.AY("#flexible-item-buttons"),_.D("design:type",HTMLElement)],h2.prototype,"flexibleItemButtonsContainer",void 0);_.y([_.YE("#flexible-item-buttons > *"),_.D("design:type",Array)],h2.prototype,"flexibleItemButtons",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],h2.prototype,"iconButtonColorChanged",null);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],h2.prototype,"setupFlexibleMenu",null);_.y([_.ba("topLevelIconsOnly"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],h2.prototype,"resetFlexibleItems",null);_.y([_.m5("tonalOverride"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],h2.prototype,"tonalOverrideChanged",null);
_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],h2.prototype,"onPopupOpened",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],h2.prototype,"onPopupClosed",null);_.y([_.Ta("yt-popup-canceled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],h2.prototype,"onPopupCanceled",null);
_.h(h2,"ytd-menu-renderer",function(){if(bYo===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);bYo=c}c=bYo;return c},{mode:2});var qfT;var ZV3;_.w9=_.dN(function(c){var f=c.data;var d=function(){if(f().icon)a:{var q={iconName:f().icon};for(var Z=_.ql().resolve(_.mt),M=_.C([12,24]),g=M.next();!g.done;g=M.next()){var O=g.value;g=Object.assign({},q,{iconStyle:"youtube_fill",iconSize:O});O=Object.assign({},q,{iconStyle:"youtube_outline",iconSize:O});if(Z.resolveIcon(g)){q=g;break a}if(Z.resolveIcon(O)){q=O;break a}}q=void 0}else q=void 0;return q};
c={};return _.B("badge-shape",{class:_.FY("badge-shape-wiz",function(){return VLG(f().type)},(c["badge-shape-wiz--overlay"]=function(){return f().isOverlay},c["badge-shape-wiz--ads-include-dot"]=function(){return f().adsIncludeDot},c["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(f().type){case 17:case 18:case 19:var q=!0;
break a;default:q=!1}return q},c["badge-shape-wiz--status-badge"]=function(){a:switch(f().type){case 12:case 13:case 14:case 15:case 16:var q=!0;
break a;default:q=!1}return q},c["badge-shape-wiz--no-text"]=function(){return!f().text},c["badge-shape-wiz--modern"]=function(){return f().modern||_.F("web_modern_badge_shape")},c)),
style:_.$Z({"background-color":function(){var q;return(q=f().customColors)==null?void 0:q.backgroundColor}}),
role:function(){return f().accessibilityText?"img":void 0},
"aria-label":function(){return f().accessibilityText}},_.B(_.T,{cond:function(){return f().animation},
then:function(q){return _.B(_.gT,{className:"badge-shape-wiz__icon",data:q,animationName:function(){return q().animationConfig.name||""}})}}),_.B(_.T,{cond:function(){var q;
return d()&&!((q=f())==null?0:q.animation)},
then:function(){return _.B("div",{class:"badge-shape-wiz__icon"},_.B(IYP,{data:function(){return d()}}))}}),_.B("div",{class:"badge-shape-wiz__text"},function(){var q;
return(q=f())==null?void 0:q.text}))},"S");
_.w9.idomCompat=!0;_.g_(_.w9,"badge-shape",{props:{data:_.oM}});var yD=function(){var c=_.z.apply(this,arguments)||this;c.systemIcons=_.F("kevlar_system_icons");c.animated=_.F("animated_live_badge_icon");c.useBadgeShape=_.F("web_badge_shape_defrag");return c};
_.K(yD,_.z);_.r=yD.prototype;_.r.addTooltips=function(){for(var c=_.r1(this.hostElement).querySelectorAll(".badge"),f=0,d;d=c[f++];){var q=this.repeatElement.itemForElement(d);d=_.r1(d);d.lastChild&&d.lastChild.is==="tp-yt-paper-tooltip"&&d.removeChild(d.lastChild);if(q=q.metadataBadgeRenderer&&q.metadataBadgeRenderer.tooltip){var Z=_.qj("tp-yt-paper-tooltip");(0,_.Ok)(Z).textContent=q;Z.setAttribute("position","top");Z.setAttribute("aria-hidden","true");d.appendChild(Z)}}};
_.r.badgesChanged=function(){var c=this;_.eY().parkOrScheduleJob(function(){c.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.r.standaloneRoundedBadgeChanged=function(){var c=this.useRoundedBadge?this.useRoundedBadge:void 0;c&&(this.useRoundedBadge=c)};
_.r.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.r.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.r.computeStyle=function(c){_.F("enable_html5_teal_ad_badge")&&c==="BADGE_STYLE_TYPE_AD"&&(c="badge-style-type-ad-alternate");_.F("kevlar_ytb_live_badges")&&c==="BADGE_STYLE_TYPE_LIVE_NOW"&&(c="badge-style-type-live-now-alternate");return c?c.toLowerCase().replace(/_/g,"-"):""};
_.r.computeRole=function(c){return this.computeAriaLabel(c)?"img":"status"};
_.r.computeAriaLabel=function(c){var f;return(c==null?void 0:(f=c.accessibilityData)==null?void 0:f.label)||(c==null?void 0:c.label)};
_.r.computeBadgeShape=function(c){var f;if(c){var d,q=JfY(c.style),Z=a6C(c.style),M=c.label,g=((d=c.accessibilityData)==null?void 0:d.label)||c.label;c=(f=c.icon)==null?void 0:f.iconType;f={type:q,brNzRatingBadgeType:Z,text:M,accessibilityText:g,icon:c!=="PREMIUM"?c:void 0}}else f={};return f};
_.r.updateComputedBadges=function(c,f,d){var q=this;(f=f?[f]:d?[d]:void 0)?this.computedBadges=f:this.computedBadges=c==null?void 0:c.filter(function(Z){var M;if((M=Z.metadataBadgeRenderer)==null?0:M.groups){M=!1;Z=_.C(Z.metadataBadgeRenderer.groups);for(var g=Z.next();!g.done;g=Z.next()){g=g.value;var O=void 0;M=M||((O=q.hiddenBadgeGroups)==null?void 0:O.includes(g))}return!M}return!0})};
_.r.useFilledIcons=function(c){return _.F("kevlar_system_icons")&&(c==="AUDIO_BADGE"||c==="CHECK_CIRCLE_THICK"||c==="OFFICIAL_ARTIST_BADGE"||c==="SPONSORSHIP_STAR"||c==="PERSON_RADAR_FILLED"||c==="PERSON_RADAR")};
_.r.computeBadgeShapeStyle=function(c){return this.useBadgeShape?c==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||c==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.r.computeIcon=function(c){var f,d;c=c==null?void 0:(f=c.metadataBadgeRenderer)==null?void 0:(d=f.icon)==null?void 0:d.iconType;if(c!=="PREMIUM"&&c)return _.Tu(c)};
_.r.computeStandaloneBadge=function(c){var f;c=c==null?void 0:(f=c.icon)==null?void 0:f.iconType;return c==="PREMIUM_STANDALONE"||c==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
yD.prototype.hiddenBadgeGroupsChanged=yD.prototype.hiddenBadgeGroupsChanged;yD.prototype.standaloneBadgeChanged=yD.prototype.standaloneBadgeChanged;yD.prototype.standaloneRoundedBadgeChanged=yD.prototype.standaloneRoundedBadgeChanged;yD.prototype.badgesChanged=yD.prototype.badgesChanged;_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"hidden",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],yD.prototype,"componentBehavior",void 0);
_.y([_.L(),_.D("design:type",Array)],yD.prototype,"badges",void 0);_.y([_.L(),_.D("design:type",Object)],yD.prototype,"topStandaloneBadge",void 0);_.y([_.L(),_.D("design:type",Object)],yD.prototype,"bottomStandaloneBadge",void 0);_.y([_.L(),_.D("design:type",Object)],yD.prototype,"computedBadges",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"mediumFontAdBadge",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"useRoundedBadge",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"largeFontAdBadge",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"overlayAd",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"overlayPremium",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"noDotAdBadge",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"collectionTruncate",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"isThumbnailBadge",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yD.prototype,"wrapBadges",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yD.prototype,"systemIcons",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yD.prototype,"animated",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yD.prototype,"useBadgeShape",void 0);_.y([_.L({value:[]}),_.D("design:type",Array)],yD.prototype,"hiddenBadgeGroups",void 0);_.y([_.AY("#repeat"),_.D("design:type",aa)],yD.prototype,"repeatElement",void 0);_.y([_.ba("badges"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yD.prototype,"badgesChanged",null);
_.y([_.ba("useRoundedBadge"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yD.prototype,"standaloneRoundedBadgeChanged",null);_.y([_.ba("topStandaloneBadge","bottomStandaloneBadge"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yD.prototype,"standaloneBadgeChanged",null);_.y([_.ba("hiddenBadgeGroups"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yD.prototype,"hiddenBadgeGroupsChanged",null);
_.y([_.v({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],yD);
var MLv=_.OD()(yD,"ytd-badge-supported-renderer",function(){if(ZV3===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);ZV3=c}c=ZV3;return c},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.lP("kevlar_poly_si_batch_j053")?1:2});var WP=function(){var c=_.z.apply(this,arguments)||this;c.iconType="STAR";c.standardizeIconSize=_.F("kevlar_system_icons");c.mediaHoverOverlayInitialVisibility=_.F("enable_top_landscape_image_button_command_web");c.noBottomMargin=!1;c.thumbnailObjectFit="CONTAIN";c.thumbnailFitHeight=!0;c.actionMap={"yt-mute-ad-action":"handleMuteAd"};return c};
_.K(WP,_.z);_.r=WP.prototype;
_.r.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"}}}};
_.r.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",WP.JSC$14545_DEFAULT_CLICK_LOCATION_BEHAVIOR,WP.JSC$14545_CLICK_LOCATION_ID_MAP))};
_.r.onTap=function(c){if(!_.F("use_on_click_for_desktop_display_ad"))this.onTapOrClick(c)};
_.r.onClick=function(c){if(_.F("use_on_click_for_desktop_display_ad"))this.onTapOrClick(c)};
_.r.onTapOrClick=function(c){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,c,!1)};
_.r.updateMediaBackgroundImage=function(){var c=this.get("data.image.thumbnail.thumbnails");c&&(c=_.kZ(c,0))&&_.la(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+c+")"})};
_.r.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var c=0;c<this.data.impressionEndpoints.length;c++){var f=this.data.impressionEndpoints[c];f.clickTrackingParams&&delete f.clickTrackingParams;_.ql().resolve(_.ZM).resolveCommand(f,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var d;((d=this.data)==null?0:d.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.r.handleMuteAd=function(){};
_.r.attached=function(){var c=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&c.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){_.F("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ci.Object.defineProperties(WP.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null||!c.titleText)return"";var f;return _.HO("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((f=this.data)==null?void 0:f.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?0:c.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?0:c.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?0:c.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?0:c.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?0:c.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 c;return!((c=this.data)==null||!c.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"}}});
WP.prototype.onClick=WP.prototype.onClick;WP.prototype.onTap=WP.prototype.onTap;WP.prototype.dataChanged=WP.prototype.dataChanged;
WP.JSC$14545_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"]]);
WP.JSC$14545_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"}];_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.WA),_.D("design:type",Object)],WP.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],WP.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],WP.prototype,"ytSparklesClickLocationBehavior",void 0);_.y([_.Q(hx),_.D("design:type",Object)],WP.prototype,"ytdActiveViewBehavior",void 0);_.y([_.Q([_.Cy.YtActionHandlerBehavior]),_.D("design:type",Object)],WP.prototype,"actionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],WP.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],WP.prototype,"clickCommand",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],WP.prototype,"miniMode",void 0);_.y([_.L(),_.D("design:type",String)],WP.prototype,"iconType",void 0);_.y([_.S("data.titleText"),_.D("design:type",String),_.D("design:paramtypes",[])],WP.prototype,"titleAriaLabel",null);
_.y([_.S("data.rating"),_.D("design:type",Object),_.D("design:paramtypes",[])],WP.prototype,"getRating",null);_.y([_.S("data.price"),_.D("design:type",Object),_.D("design:paramtypes",[])],WP.prototype,"getPrice",null);_.y([_.S("data.thirdLine"),_.D("design:type",Object),_.D("design:paramtypes",[])],WP.prototype,"getThirdLine",null);_.y([_.S("data.fourthLine"),_.D("design:type",Object),_.D("design:paramtypes",[])],WP.prototype,"getFourthLine",null);
_.y([_.S("data.fifthLine"),_.D("design:type",Object),_.D("design:paramtypes",[])],WP.prototype,"getFifthLine",null);_.y([_.S("getRating"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WP.prototype,"computeRatingHidden",null);_.y([_.S("getPrice"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WP.prototype,"computePriceHidden",null);_.y([_.S("getThirdLine"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WP.prototype,"computeThirdLineHidden",null);
_.y([_.S("getFourthLine"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WP.prototype,"computeFourthLineHidden",null);_.y([_.S("getFifthLine"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WP.prototype,"computeFifthLineHidden",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.energyIcon"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WP.prototype,"hasEnergyIcon",null);
_.y([_.S("computePriceHidden","computeRatingHidden"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WP.prototype,"computeSecondaryTextHidden",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],WP.prototype,"standardizeIconSize",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],WP.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],WP.prototype,"noBottomMargin",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data.layout"),_.D("design:type",String),_.D("design:paramtypes",[])],WP.prototype,"layout",null);_.y([_.S("data.layout"),_.D("design:type",Object),_.D("design:paramtypes",[])],WP.prototype,"mediaThumbnailWidth",null);_.y([_.S("layout"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WP.prototype,"useRoundedBadge",null);_.y([_.L(),_.D("design:type",String)],WP.prototype,"thumbnailObjectFit",void 0);
_.y([_.L(),_.D("design:type",Object)],WP.prototype,"thumbnailFitHeight",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],WP.prototype,"dataChanged",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],WP.prototype,"onTap",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],WP.prototype,"onClick",null);
_.y([_.v({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],WP);
_.h(WP,"ytd-display-ad-renderer",function(){if(qfT!==void 0)return qfT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return qfT=c},{mode:1});var rfr;var CT3;var g7r;var X7h=new Map;var k_3=!1;var Db=function(){var c=_.z.apply(this,arguments)||this;c.DEFAULT_TOOLTIP_OFFSET="10";c.TOOLTIP_OFFSET_NO_BANNER="-8";c.badges=null;c.noEndpoints=!1;c.wrapText=!1;c.forceVerified=!1;c.tooltipPosition="top";c.compactStyle=!1;c.height=0;c.lineHeight=0;return c};
_.K(Db,_.z);_.r=Db.prototype;_.r.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.r.attached=function(){var c=this;this.observer=new MutationObserver(function(f,d){c.handleResized();d.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.r.detached=function(){this.observer&&this.observer.disconnect()};
_.r.logTooltipEvent=function(){_.F("kevlar_wiz_tooltip_event_killswitch")||k_3||(_.uMN("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),k_3=!0)};
_.r.handleWindowResized=function(){this.handleResized()};
_.r.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")))};
_.r.onHeightChanged=function(){if(this.verified){var c=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.hk("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=c:this.textContainerEl.style.marginRight=c}};
_.r.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.hk("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.r.handleResized=function(){var c=this;this.verified&&_.a7.addLowPriorityJob(function(){c.fitBackgroundToText();var f=getComputedStyle(c.hostElement).lineHeight;f&&(f=f.match(/\d+/))&&f.length&&(c.lineHeight=Number(f[0]));c.height=c.lineHeight&&!c.wrapText?c.lineHeight:c.textEl.offsetHeight})};
_.r.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var c=document.createRange(),f=_.r1(this.textEl).children;f.length>0?c.selectNodeContents(f[0]):c.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(c.getBoundingClientRect().width)+"px"}};
_.r.computeChannelBadgeStyle=function(c){var f;if((c==null?0:(f=c.runs)==null?0:f.length)&&c.runs[0].textColor)return"--ytd-badge-icon-color:"+_.ya(c.runs[0].textColor)+";"};
_.ci.Object.defineProperties(Db.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"?_.pC(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var c=this.get("badges.0.metadataBadgeRenderer.tooltip");if(c)return c}return _.xC(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Db.prototype.onLineHeightChanged=Db.prototype.onLineHeightChanged;Db.prototype.onHeightChanged=Db.prototype.onHeightChanged;Db.prototype.onChannelNameChanged=Db.prototype.onChannelNameChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Db.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Db.prototype,"badges",void 0);_.y([_.L(),_.D("design:type",Object)],Db.prototype,"channelName",void 0);
_.y([_.L(),_.D("design:type",Object)],Db.prototype,"noEndpoints",void 0);_.y([_.L(),_.D("design:type",Object)],Db.prototype,"wrapText",void 0);_.y([_.L(),_.D("design:type",Object)],Db.prototype,"forceVerified",void 0);_.y([_.L(),_.D("design:type",Object)],Db.prototype,"tooltipPosition",void 0);_.y([_.L(),_.D("design:type",String)],Db.prototype,"tooltip",void 0);_.y([_.L(),_.D("design:type",Boolean)],Db.prototype,"hasChannelArt",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Db.prototype,"compactStyle",void 0);_.y([_.AY("#text-container"),_.D("design:type",HTMLElement)],Db.prototype,"textContainerEl",void 0);_.y([_.AY("#text"),_.D("design:type",Object)],Db.prototype,"textEl",void 0);_.y([_.AY("#verified-tooltip"),_.D("design:type",HTMLElement)],Db.prototype,"verifiedTooltip",void 0);_.y([_.L(),_.D("design:type",Object)],Db.prototype,"height",void 0);
_.y([_.L(),_.D("design:type",Object)],Db.prototype,"lineHeight",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("badges","forceVerified"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Db.prototype,"verified",null);_.y([_.S("badges","verified"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Db.prototype,"hideBadges",null);_.y([_.S("channelName"),_.D("design:type",Object),_.D("design:paramtypes",[])],Db.prototype,"formattedName",null);
_.y([_.S("badges","verified","formattedName"),_.D("design:type",String),_.D("design:paramtypes",[])],Db.prototype,"tooltipText",null);_.y([_.S("hasChannelArt"),_.D("design:type",String),_.D("design:paramtypes",[])],Db.prototype,"tooltipOffset",null);_.y([_.m5("channelName"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Db.prototype,"onChannelNameChanged",null);
_.y([_.m5("height"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Db.prototype,"onHeightChanged",null);_.y([_.m5("lineHeight","height"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Db.prototype,"onLineHeightChanged",null);_.y([_.v({is:"ytd-channel-name",disableElementRegistration:!0})],Db);
_.h(Db,"ytd-channel-name",function(){if(g7r!==void 0)return g7r;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return g7r=c},{mode:_.lP("kevlar_poly_si_batch_j036")?1:2});var eD=function(){var c=_.z.apply(this,arguments)||this;c.standardizeIconSize=_.F("kevlar_system_icons");return c};
_.K(eD,_.z);eD.prototype.basicPaletteChanged=function(){var c;(c=this.data.color)!=null&&c.basicColorPaletteData&&_.vr(this.hostElement,this.data.color.basicColorPaletteData)};
eD.prototype.useFilledIcons=function(c){return _.F("kevlar_system_icons")&&(c==="CHECK_CIRCLE_THICK"||c==="OFFICIAL_ARTIST_BADGE")};
_.ci.Object.defineProperties(eD.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return this.data.authorCreator||((c=this.data)==null?void 0:(f=c.color)==null?void 0:(d=f.basicColorPaletteData)==null?void 0:d.backgroundColor)}}});
eD.prototype.basicPaletteChanged=eD.prototype.basicPaletteChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],eD.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],eD.prototype,"standardizeIconSize",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.authorUnifiedVerified"),_.D("design:type",Object),_.D("design:paramtypes",[])],eD.prototype,"verified",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],eD.prototype,"creator",null);_.y([_.m5("data.color.basicColorPaletteData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],eD.prototype,"basicPaletteChanged",null);_.y([_.v({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],eD);
_.h(eD,"ytd-author-comment-badge-renderer",function(){if(CT3!==void 0)return CT3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return CT3=c},{mode:1});var OVr;var Ne=function(){return _.z.apply(this,arguments)||this};
_.K(Ne,_.z);Ne.prototype.computeThumbnailWidth=function(c){if(c==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ne.prototype,"data",void 0);_.y([_.L({computed:"computeIcon_(data.icon)"}),_.D("design:type",String)],Ne.prototype,"icon",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Ne.prototype,"surface",void 0);
_.y([_.L({reflectToAttribute:!0,value:_.F("enable_shrink_image_size_on_web_posts_singleton")}),_.D("design:type",Boolean)],Ne.prototype,"searchSxsUx",void 0);_.y([_.v({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Ne);
_.h(Ne,"ytd-backstage-image-renderer",function(){if(OVr!==void 0)return OVr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return OVr=c},{mode:1});var l6K;var IQ=function(){var c=_.z.apply(this,arguments)||this;c.isLoading=!1;c.selectedItemIndex=-1;return c};
_.K(IQ,_.z);_.r=IQ.prototype;_.r.computeIsChannelOwner=function(c){if(!c)return!0;c=c[0];return!(c&&(c.signinEndpoint||c.selectServiceEndpoint))};
_.r.computeIsImagePoll=function(c){return(c==null?void 0:c.type)==="POLL_TYPE_IMAGE"};
_.r.computeIsTotalVotesDisabled=function(c){return!(c==null?0:c.totalVotes)};
_.r.thumbnailSrc=function(c){var f,d,q,Z;return(c==null?0:(f=c.thumbnails)==null?0:(d=f[0])==null?0:d.url)?_.XD((q=c.thumbnails)==null?void 0:(Z=q[0])==null?void 0:Z.url):void 0};
_.r.progressWidth=function(c){return"width:"+(c?c*100:0)+"%;"};
_.r.textAreaWidth=function(c){return this.isImagePoll?null:"width:"+(c?c*100:0)+"%;"};
_.r.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.r.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var c=this.data.choices,f=0;f<c.length;f++)if(c[f].selected){this.selectedItemIndex=f;break}};
_.r.onPopupClosed=function(c,f){c=Number(this.pollVotes.selected);f.confirmed&&(this.selectChoice(c,!1),_.gS(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.r.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.r.onYtCommentPollRevert=function(c,f){f&&(this.selectChoice(f.selectedChoiceIndex,!0),this.set("data.totalVotes",f.totalVotes))};
_.r.onYtServiceRequestSent=function(c,f){if(f.actions)for(c=0;c<f.actions.length;c++){var d=f.actions[c];_.b(d,Sw)&&this.set("data.totalVotes",_.b(d,Sw).totalVotes)}};
_.r.onYtServiceRequestCompleted=function(c){var f=this.get("detail.data.actionResults.0.feedback",c);c=this.get("detail.data.actionResults.0.status",c);if(f==="FEEDBACK_DESELECT"||f==="FEEDBACK_SELECT")this.isLoading=!1,c==="STATUS_FAILED"?_.CZ(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.r.getEndpoint=function(c,f){return f===c?this.data.choices[f].deselectServiceEndpoint||null:this.data.choices[c].selectServiceEndpoint||null};
_.r.selectChoice=function(c,f){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var d=0;d<this.data.choices.length;d++){var q;if(c===this.selectedItemIndex){var Z=!1;var M=q=null}else q=(Z=d===c)?this.data.choices[d].voteRatioIfSelected:this.data.choices[d].voteRatioIfNotSelected,M=Z?this.data.choices[d].votePercentageIfSelected:this.data.choices[d].votePercentageIfNotSelected;this.set("data.choices."+d+".voteRatio",q);
this.set("data.choices."+d+".votePercentage",M);this.set("data.choices."+d+".selected",Z)}f||(this.isLoading=!0,(f=this.getEndpoint(c,this.selectedItemIndex))&&_.ql().resolve(_.ZM).resolveCommand(f,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===c?-1:c};
_.ci.Object.defineProperties(IQ.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
IQ.prototype.onYtServiceRequestCompleted=IQ.prototype.onYtServiceRequestCompleted;IQ.prototype.onYtServiceRequestSent=IQ.prototype.onYtServiceRequestSent;IQ.prototype.onYtCommentPollRevert=IQ.prototype.onYtCommentPollRevert;IQ.prototype.onPopupClosed=IQ.prototype.onPopupClosed;IQ.prototype.dataChanged=IQ.prototype.dataChanged;_.y([_.Q(_.oJ),_.D("design:type",Object)],IQ.prototype,"paperItemBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],IQ.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],IQ.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],IQ.prototype,"isLoading",void 0);_.y([_.L({computed:"computeIsChannelOwner(data.choices)"}),_.D("design:type",Boolean)],IQ.prototype,"isChannelOwner",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.D("design:type",Boolean)],IQ.prototype,"isImagePoll",void 0);_.y([_.L({computed:"computeIsTotalVotesDisabled(data)"}),_.D("design:type",Boolean)],IQ.prototype,"isTotalVotesDisabled",void 0);_.y([_.L(),_.D("design:type",Object)],IQ.prototype,"previousPollInfo",void 0);_.y([_.L(),_.D("design:type",Object)],IQ.prototype,"selectedItemIndex",void 0);_.y([_.AY("#poll-votes"),_.D("design:type",Object)],IQ.prototype,"pollVotes",void 0);
_.y([_.S("isChannelOwner"),_.D("design:type",Object),_.D("design:paramtypes",[])],IQ.prototype,"endpointStyle",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IQ.prototype,"dataChanged",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],IQ.prototype,"onPopupClosed",null);
_.y([_.Ta("yt-comment-poll-revert"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],IQ.prototype,"onYtCommentPollRevert",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],IQ.prototype,"onYtServiceRequestSent",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],IQ.prototype,"onYtServiceRequestCompleted",null);_.y([_.v({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],IQ);
_.h(IQ,"ytd-backstage-poll-renderer",function(){if(l6K!==void 0)return l6K;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return l6K=c},{mode:2});var sLv;var Bf_={autoplay:!1,loop:!1},iV_={simpleText:""},PP=function(){var c=_.z.apply(this,arguments)||this;c.isLoading=!1;c.usesPanelLockup=!1;c.selectedItemIndex=-1;c.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Bf_,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});c.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Bf_,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});c.correctnessAnimationProps=[];c.correctnessAnimationRefs=[];return c};
_.K(PP,_.z);_.r=PP.prototype;_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.r.computeIsChannelOwner=function(c){if(!c)return!0;c=c[0];return!(c&&(c.signinEndpoint||c.selectServiceEndpoint))};
_.r.computeIsTotalVotesDisabled=function(c){return!(c==null?0:c.totalVotes)};
_.r.computeIsImageQuiz=function(c){return(c==null?void 0:c.type)==="POLL_TYPE_IMAGE"};
_.r.onExplanationChanged=function(){this.expander.reset()};
_.r.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var c=this.data.choices;if(c){this.maybeInitializeQuizLotties(c);for(var f=0;f<c.length;f++)if(c[f].isSelected||this.isChannelOwner&&c[f].isCorrect){this.selectedItemIndex=f;return}this.selectedItemIndex=-1}}};
_.r.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var c=this.selectedItemIndex,f=Number(this.quizVotes.selected);this.selectChoice(f);this.sendVoteAction(f,c);this.quizVotes.selected=-1;var d;c=!((d=this.data)==null?0:d.enableAnimation);this.maybePlayAnswerAnimations(c)}};
_.r.onYtCommentPollRevert=function(c,f){f&&(this.selectChoice(f.selectedChoiceIndex),this.set("data.totalVotes",f.totalVotes))};
_.r.onYtServiceRequestSent=function(c,f){if(f.actions)for(c=_.C(f.actions),f=c.next();!f.done;f=c.next())(f=_.b(f.value,Sw))&&this.set("data.totalVotes",f.totalVotes)};
_.r.onYtServiceRequestCompleted=function(c){var f=this.get("detail.data.actionResults.0.feedback",c);c=this.get("detail.data.actionResults.0.status",c);if(f==="FEEDBACK_DESELECT"||f==="FEEDBACK_SELECT")this.isLoading=!1,c==="STATUS_FAILED"?_.CZ(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.r.getAnimationPropsForChoiceIndex=function(c,f){return f[c]};
_.r.maybePlayAnswerAnimations=function(c){c=c===void 0?!1:c;var f;if((f=this.data)!=null&&f.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){f=_.C(this.correctnessAnimationRefs);for(var d=f.next();!d.done;d=f.next()){var q=void 0,Z=void 0;(q=d.value)==null||(Z=q.lottieEl)==null||Z.stop()}if(!(this.selectedItemIndex<0)){f=0;c&&(f=this.isCorrect?37:25);var M,g;(M=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(g=M.lottieEl)==null||g.goToAndPlay(c?f:0,!0);if(!(this.isCorrect||
(M=this.data.choices.findIndex(function(H){return H.isCorrect}),M<0))){var O,l;
(l=(O=this.correctnessAnimationRefs[M])==null?void 0:O.lottieEl)==null||l.goToAndPlay(37,!0);var m;O=(m=this.fadeContainers)==null?void 0:m.item(M);!c&&O&&this.fadeIn(O)}}}};
_.r.thumbnailSrc=function(c){var f,d,q,Z;return(c==null?0:(f=c.thumbnails)==null?0:(d=f[0])==null?0:d.url)?_.XD((q=c.thumbnails)==null?void 0:(Z=q[0])==null?void 0:Z.url):void 0};
_.r.a11yVotedText=function(c,f){var d,q,Z=((d=this.data)==null?void 0:(q=d.correctVotedText)==null?void 0:q.simpleText)||"",M,g;d=((M=this.data)==null?void 0:(g=M.votedText)==null?void 0:g.simpleText)||"";if(!f)return"";var O,l;if((O=this.data)==null?0:(l=O.choices)==null?0:l[c].isCorrect)return Z;var m,H;return((m=this.data)==null?0:(H=m.choices)==null?0:H[c].isSelected)?d:""};
_.r.getEndpoint=function(c,f){return f===c?this.data.choices[c].deselectServiceEndpoint||null:this.data.choices[c].selectServiceEndpoint||null};
_.r.sendVoteAction=function(c,f){if(c=this.getEndpoint(c,f))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(c)};
_.r.selectChoice=function(c){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var f=0;f<this.data.choices.length;f++)this.set("data.choices."+f+".isSelected",c===this.selectedItemIndex?!1:f===c);this.selectedItemIndex=this.selectedItemIndex===c?-1:c};
_.r.maybeInitializeQuizLotties=function(c){var f=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=c.map(function(d){return{animationConfig:d.isCorrect?f.baseCorrectLottiePlayerAnimationConfig:f.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){f.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(d){return d.animationRef||{}})};
_.r.fadeIn=function(c){c.classList.add("fade-in");_.Br(_.a7,function(){c.classList.remove("fade-in")},900)};
_.ci.Object.defineProperties(PP.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 _.xC(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 c,f;return((c=this.data)==null?void 0:(f=c.choices)==null?void 0:f.some(function(d){return d.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null||!c.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?iV_:this.data.choices[this.selectedItemIndex].explanation||iV_}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null||!c.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
PP.prototype.onYtServiceRequestCompleted=PP.prototype.onYtServiceRequestCompleted;PP.prototype.onYtServiceRequestSent=PP.prototype.onYtServiceRequestSent;PP.prototype.onYtCommentPollRevert=PP.prototype.onYtCommentPollRevert;PP.prototype.dataChanged=PP.prototype.dataChanged;PP.prototype.onExplanationChanged=PP.prototype.onExplanationChanged;_.y([_.Q(_.oJ),_.D("design:type",Object)],PP.prototype,"paperItemBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],PP.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.jI.YtTaskEmitterBehavior),_.D("design:type",Object)],PP.prototype,"ytTaskEmitterBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],PP.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],PP.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],PP.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Object)],PP.prototype,"usesPanelLockup",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.D("design:type",Boolean)],PP.prototype,"isChannelOwner",void 0);_.y([_.L({computed:"computeIsTotalVotesDisabled(data)"}),_.D("design:type",Boolean)],PP.prototype,"isTotalVotesDisabled",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.D("design:type",Boolean)],PP.prototype,"isImageQuiz",void 0);_.y([_.L(),_.D("design:type",Object)],PP.prototype,"previousQuizInfo",void 0);_.y([_.L(),_.D("design:type",Object)],PP.prototype,"selectedItemIndex",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data","usesPanelLockup"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],PP.prototype,"shouldUseModernUi",null);
_.y([_.YE(".fade-container"),_.D("design:type",Object)],PP.prototype,"fadeContainers",void 0);_.y([_.L(),_.D("design:type",Array)],PP.prototype,"correctnessAnimationProps",void 0);_.y([_.S("explanation","showCorrectAnswer"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],PP.prototype,"showExplanation",null);_.y([_.S("isChannelOwner","isAttempted"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],PP.prototype,"showCorrectAnswer",null);
_.y([_.S("isChannelOwner","isAttempted","data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],PP.prototype,"isQuizAnsweringDisabled",null);_.y([_.S("isQuizAnsweringDisabled"),_.D("design:type",Object),_.D("design:paramtypes",[])],PP.prototype,"endpointStyle",null);_.y([_.S("data","selectedItemIndex"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],PP.prototype,"isAttempted",null);
_.y([_.S("data","selectedItemIndex"),_.D("design:type",Object),_.D("design:paramtypes",[])],PP.prototype,"explanation",null);_.y([_.S("data","selectedItemIndex"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],PP.prototype,"isCorrect",null);_.y([_.AY("ytd-expander"),_.D("design:type",Object)],PP.prototype,"expander",void 0);_.y([_.AY("#quiz-votes"),_.D("design:type",Object)],PP.prototype,"quizVotes",void 0);
_.y([_.m5("explanation"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],PP.prototype,"onExplanationChanged",null);_.y([_.m5("data","isChannelOwner"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],PP.prototype,"dataChanged",null);_.y([_.Ta("yt-comment-quiz-revert"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],PP.prototype,"onYtCommentPollRevert",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],PP.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],PP.prototype,"onYtServiceRequestCompleted",null);_.y([_.v({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],PP);
_.h(PP,"ytd-backstage-quiz-renderer",function(){if(sLv!==void 0)return sLv;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return sLv=c},{mode:1});var TfK;var RQ=function(){return _.z.apply(this,arguments)||this};
_.K(RQ,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],RQ.prototype,"data",void 0);_.y([_.v({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],RQ);
_.h(RQ,"ytd-post-uploaded-video-renderer",function(){if(TfK!==void 0)return TfK;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return TfK=c},{mode:1});var mZv;var Uj=function(){return _.z.apply(this,arguments)||this};
_.K(Uj,_.z);Uj.prototype.useFilledIcons=function(c){return c==="SPONSORSHIP_STAR"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Uj.prototype,"data",void 0);_.y([_.v({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Uj);
var HVr=_.OD()(Uj,"ytd-sponsors-only-badge-renderer",function(){if(mZv===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);mZv=c}c=mZv;return c},{allowedProps:["data"],
mode:1});var AfT;var pm=function(){return _.z.apply(this,arguments)||this};
_.K(pm,_.z);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],pm.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pm.prototype,"data",void 0);_.y([_.v({is:"ytd-child-video-renderer",disableElementRegistration:!0})],pm);
_.h(pm,"ytd-child-video-renderer",function(){if(AfT!==void 0)return AfT;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return AfT=c},{mode:1});var Yf3;var Fyy;var xQ=function(){var c=_.z.apply(this,arguments)||this;c.size=0;c.enableWebModernCollectionsV2=_.F("web_modern_collections_v2");c.fallbackImageSize={height:void 0,width:9999};c.webModernCollections=!1;return c};
_.K(xQ,_.z);_.r=xQ.prototype;_.r.computeBlurredImageSize=function(c){return c?{height:c*2,width:c*2}:this.fallbackImageSize};
_.r.computeImageSize=function(c){return c?{height:c,width:c}:this.fallbackImageSize};
_.r.computeObjectFit=function(c){return c?"FILL":"CONTAIN"};
_.r.computePreserve=function(c){return c?!0:!1};
_.r.setBackground=function(){var c,f;_.F("web_modern_collections_v2")&&((c=this.data)==null?0:(f=c.thumbnail)==null?0:f.sampledThumbnailColor)&&(c=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+c.red+","+c.green+","+c.blue+",1)")};
xQ.prototype.setBackground=xQ.prototype.setBackground;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],xQ.prototype,"watchFeedThumbnail",void 0);_.y([_.L(),_.D("design:type",Object)],xQ.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],xQ.prototype,"size",void 0);
_.y([_.L({computed:"computeBlurredImageSize(size)"}),_.D("design:type",Object)],xQ.prototype,"blurredImageSize",void 0);_.y([_.L({computed:"computeImageSize(size)"}),_.D("design:type",Object)],xQ.prototype,"imageSize",void 0);_.y([_.L({computed:"computePreserve(size)"}),_.D("design:type",String)],xQ.prototype,"preserve",void 0);_.y([_.L({computed:"computeObjectFit(size)"}),_.D("design:type",String)],xQ.prototype,"objectFit",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],xQ.prototype,"enableWebModernCollectionsV2",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xQ.prototype,"webModernCollections",void 0);_.y([_.m5("data.thumbnail.sampledThumbnailColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xQ.prototype,"setBackground",null);_.y([_.v({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],xQ);
_.h(xQ,"ytd-playlist-custom-thumbnail-renderer",function(){if(Fyy!==void 0)return Fyy;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Fyy=c},{mode:1});var tLr;var oQ=function(){return _.z.apply(this,arguments)||this};
_.K(oQ,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],oQ.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],oQ.prototype,"width",void 0);_.y([_.v({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],oQ);
_.h(oQ,"ytd-playlist-video-thumbnail-renderer",function(){if(tLr!==void 0)return tLr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return tLr=c},{mode:1});var bVH;var G9=function(){return _.z.apply(this,arguments)||this};
_.K(G9,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],G9.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],G9.prototype,"width",void 0);_.y([_.v({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],G9);
_.h(G9,"ytd-show-custom-thumbnail-renderer",function(){if(bVH!==void 0)return bVH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return bVH=c},{mode:1});var Kyo;var cR=function(){return _.z.apply(this,arguments)||this};
_.K(cR,_.z);cR.prototype.useFilledIcons=function(c){return c==="MUSIC"||c==="COURSE"};
cR.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Dm(this.overlayColor,"0.8");else if(this.overlayColor){var c=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+c.red+","+c.green+","+c.blue+",0.8)"}};
_.ci.Object.defineProperties(cR.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)}}});
cR.prototype.overlayColorChanged=cR.prototype.overlayColorChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],cR.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],cR.prototype,"overlayColor",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.icon","data.text"),_.D("design:type",Object),_.D("design:paramtypes",[])],cR.prototype,"overlayStyle",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data.icon","data.text"),_.D("design:type",Object),_.D("design:paramtypes",[])],cR.prototype,"overlayTextStyle",null);_.y([_.m5("overlayColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],cR.prototype,"overlayColorChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],cR);
_.h(cR,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Kyo!==void 0)return Kyo;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Kyo=c},{mode:1});var E7K;var fd=function(){var c=_.z.apply(this,arguments)||this;c.active=!1;return c};
_.K(fd,_.z);fd.prototype.computeIsSpinnerHidden=function(c){return(c==null?void 0:c.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
fd.prototype.computeOverlayIcon=function(c){return(c==null?void 0:c.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(c==null?void 0:c.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fd.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],fd.prototype,"active",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],fd);
_.h(fd,"ytd-thumbnail-overlay-downloading-renderer",function(){if(E7K!==void 0)return E7K;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return E7K=c},{mode:1});var n7T;var dY=function(){return _.z.apply(this,arguments)||this};
_.K(dY,_.z);_.ci.Object.defineProperties(dY.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dY.prototype,"data",void 0);_.y([_.S("data.text"),_.D("design:type",Object),_.D("design:paramtypes",[])],dY.prototype,"text",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],dY);
_.h(dY,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(n7T!==void 0)return n7T;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return n7T=c},{mode:1});var $Z_,QL3=function(){if($Z_!==void 0)return $Z_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return $Z_=c};var jX=function(){return _.z.apply(this,arguments)||this};
_.K(jX,_.z);_.ci.Object.defineProperties(jX,{template:{configurable:!0,enumerable:!0,get:function(){return QL3()}}});
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],jX.prototype,"animateEqualizer",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],jX);_.OD()(jX,"ytd-thumbnail-overlay-equalizer",function(){return QL3()},{allowedProps:["animateEqualizer"],
mode:1});var SfF;var qP=function(){var c=_.z.apply(this,arguments)||this;c.nowPlayingBadge=_.F("web_now_playing_badge");c.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return c};
_.K(qP,_.z);qP.prototype.activeChanged=function(){var c=this;_.F("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.ol(this,function(){_.CZ(c.hostElement,"yt-playlist-lockup-now-playing-active",c)})};
qP.prototype.onMiniplayerPlayStateChanged=function(c){var f,d=(f=_.b(_.F7().currentEndpoint,_.pe))==null?void 0:f.videoId;this.isVideoPlaying=c&&(_.F("web_limit_now_playing_animation_killswitch")||this.videoId===d)};
qP.prototype.activeChanged=qP.prototype.activeChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],qP.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qP.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],qP.prototype,"isVideoPlaying",void 0);_.y([_.L(),_.D("design:type",String)],qP.prototype,"videoId",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],qP.prototype,"equalizerOnly",void 0);_.y([_.L(),_.D("design:type",Boolean)],qP.prototype,"isActive",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],qP.prototype,"nowPlayingBadge",void 0);_.y([_.m5("isActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qP.prototype,"activeChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],qP);
_.h(qP,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(SfF!==void 0)return SfF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return SfF=c},{mode:1});var Ly3;var Z3=function(){return _.z.apply(this,arguments)||this};
_.K(Z3,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Z3.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Z3);
_.h(Z3,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Ly3!==void 0)return Ly3;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Ly3=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var zp3;var MP=function(){return _.z.apply(this,arguments)||this};
_.K(MP,_.z);MP.prototype.onDurationChanged=function(){var c,f;_.r1(this.hostElement).querySelector("#progress").style.width=((f=(c=this.data)==null?void 0:c.percentDurationWatched)!=null?f:0)+"%"};
MP.prototype.onDurationChanged=MP.prototype.onDurationChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],MP.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],MP.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],MP.prototype,"isLive",void 0);_.y([_.m5("data.percentDurationWatched"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MP.prototype,"onDurationChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],MP);
_.h(MP,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(zp3!==void 0)return zp3;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return zp3=c},{mode:1});var Jfv;var rY=function(){var c=_.z.apply(this,arguments)||this;c.bottomPanel=!1;c.richGridOverlay=!1;c.watchFeedOverlay=!1;c.isCompact=!1;return c};
_.K(rY,_.z);rY.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.ci.Object.defineProperties(rY.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:(f=c.icon)==null?void 0:f.iconType)==="PLAY_ALL"&&_.F("kevlar_system_icons")}}});
rY.prototype.widthChanged=rY.prototype.widthChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rY.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],rY.prototype,"width",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rY.prototype,"bottomPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rY.prototype,"richGridOverlay",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rY.prototype,"watchFeedOverlay",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rY.prototype,"isCompact",void 0);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],rY.prototype,"isIconFilled",null);_.y([_.m5("width","watchFeedOverlay"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rY.prototype,"widthChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],rY);
_.h(rY,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Jfv!==void 0)return Jfv;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Jfv=c},{mode:1});var a63;var VL_=["CLIP","SHORTS"],Cd=function(){var c=_.z.apply(this,arguments)||this;c.animated=_.F("animated_live_badge_icon");c.hasIcon=!1;c.updateTimerIntervalId=0;c.timeSinceLive=0;return c};
_.K(Cd,_.z);_.r=Cd.prototype;_.r.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.r.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.r.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.r.hasIconOrText=function(){var c,f;return!!(((c=this.data)==null?0:c.icon)||((f=this.data)==null?0:f.text))};
_.r.initializeLiveBadgeTimer=function(){var c=this,f,d=(f=this.liveBadgeData)==null?void 0:f.startTimestampSec;if(d&&this.canShowLiveBadgeTimer()){var q;f=Number((q=this.liveBadgeData)==null?void 0:q.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(d);this.updateTimerIntervalId=_.lF(function(){c.canShowLiveBadgeTimer()?c.timeSinceLive++:(c.timeSinceLive=0,window.clearInterval(c.updateTimerIntervalId))},f)}else this.timeSinceLive=0};
_.r.canShowLiveBadgeTimer=function(){var c=Date.now(),f,d;return c<(Number((f=this.liveBadgeData)==null?void 0:f.endTimestampSec)-1)*1E3&&c>Number((d=this.liveBadgeData)==null?void 0:d.startTimestampSec)*1E3};
_.ci.Object.defineProperties(Cd.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var c=this.data;var f=this.timeSinceLive;var d,q,Z,M;a:{var g=c.style;if(g===void 0)g=17;else switch(g){case "LIVE":g=18;break a;default:g=17}}f={type:g,text:f?sMl({seconds:f}):_.xC(c.text),accessibilityText:(d=c.text)==null?void 0:(q=d.accessibility)==null?void 0:(Z=q.accessibilityData)==null?void 0:Z.label,icon:(M=c.icon)==null?void 0:M.iconType}}else f={};return f}},
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 c;return(c=this.data)==null?void 0:c.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 VL_.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Cd.prototype.initializeLiveBadgeTimer=Cd.prototype.initializeLiveBadgeTimer;Cd.prototype.dataChanged=Cd.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Cd.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Cd.prototype,"data",void 0);_.y([_.L({computed:"computeIcon_(data.icon)"}),_.D("design:type",String)],Cd.prototype,"icon",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Cd.prototype,"animated",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.D("design:type",Boolean)],Cd.prototype,"hideTimeStatus",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Cd.prototype,"hasIcon",void 0);_.y([_.L(),_.D("design:type",Object)],Cd.prototype,"timeSinceLive",void 0);_.y([_.S("data","timeSinceLive"),_.D("design:type",Object),_.D("design:paramtypes",[])],Cd.prototype,"badgeShapeData",null);
_.y([_.S("data","overlayType"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Cd.prototype,"hideBadgeShape",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cd.prototype,"dataChanged",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.style"),_.D("design:type",Object),_.D("design:paramtypes",[])],Cd.prototype,"overlayStyle",null);
_.y([_.S("data.liveBadgeData"),_.D("design:type",Object),_.D("design:paramtypes",[])],Cd.prototype,"liveBadgeData",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.type"),_.D("design:type",Object),_.D("design:paramtypes",[])],Cd.prototype,"overlayType",null);_.y([_.S("overlayType","overlayStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Cd.prototype,"useFilledIcon",null);
_.y([_.ba("liveBadgeData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cd.prototype,"initializeLiveBadgeTimer",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Cd);
_.h(Cd,"ytd-thumbnail-overlay-time-status-renderer",function(){if(a63!==void 0)return a63;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return a63=c},{mode:_.lP("kevlar_poly_si_batch_j035")?1:2});var X7T;var gY=function(){return _.z.apply(this,arguments)||this};
_.K(gY,_.z);gY.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"}}}}};
gY.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(c){if(this.hasPlaybackProgressBar)return{percentDurationWatched:c.percentDurationWatched}};
gY.prototype.computeHasPlaybackProgressBar=function(c){return!!c.percentDurationWatched&&c.percentDurationWatched>0};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gY.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.D("design:type",Boolean)],gY.prototype,"hasPlaybackProgressBar",void 0);
_.y([_.v({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],gY);
_.h(gY,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(X7T!==void 0)return X7T;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return X7T=c},{mode:1});var uMH;var v7u=_.dN(function(c){var f=c.data;var d=c.children;var q=function(){return!!f().doubleStack},Z=function(){return!!f().includeStackHeight};
return _.B("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!f().experimentEnabled}},_.B(_.T,{cond:f,
then:function(){var M={};return _.B(_.qD,null,_.B(_.T,{cond:Z,then:function(){var g={};return _.B("div",{class:_.FY("collections-stack-wiz__spacer",(g["collections-stack-wiz__spacer--double-stack"]=q,g))})}}),_.B("div",{class:_.FY((M["collections-stack-wiz__relative-stack"]=Z,M))},_.B(_.T,{cond:q,
then:function(){var g={};return _.B("div",{class:_.FY("collections-stack-wiz__collection-stack2",function(){return f().customClassName2ndStack},(g["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return f().enableResponsiveMode},g)),
style:_.$Z({"background-color":function(){return hph(f())}})})}}),_.B("div",{class:_.FY("collections-stack-wiz__collection-stack1",function(){return f().customClassName1stStack},function(){return v7M(f().thumbnailSize?f().thumbnailSize:"medium")}),
style:_.$Z({"background-color":function(){return hph(f())}})}),d))}}))},"T");_.g_(v7u,"yt-collections-stack",{props:{data:_.oM}});var ke=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};c.webModernCollections=!1;c.isSearch=!1;c.isDoubleStack=!1;c.thumbnailSize="medium";c.enableWebModernCollectionsV2=_.F("web_modern_collections_v2");return c};
_.K(ke,_.z);_.r=ke.prototype;
_.r.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]]"}}}}}};
_.r.getThumbnailDetails=function(c){if(c!=null&&c.thumbnailRenderer){var f=c.thumbnailRenderer,d;if((d=f.playlistVideoThumbnailRenderer)==null?0:d.thumbnail)return f.playlistVideoThumbnailRenderer.thumbnail;var q;if((q=f.playlistCustomThumbnailRenderer)==null?0:q.thumbnail)return f.playlistCustomThumbnailRenderer.thumbnail;c=c.thumbnailRenderer;var Z;if((Z=c.showCustomThumbnailRenderer)==null?0:Z.thumbnail)return c.showCustomThumbnailRenderer.thumbnail}};
_.r.computeOverlayColor=function(c){var f,d;if((f=this.getThumbnailDetails(c))==null?0:(d=f.darkColorPalette)==null?0:d.section2Color)return this.getThumbnailDetails(c).darkColorPalette.section2Color;var q;return(q=this.getThumbnailDetails(c))==null?void 0:q.sampledThumbnailColor};
_.r.computeWebModernCollections=function(c){if(c==null||!c.thumbnailOverlays)return!1;c=_.C(c.thumbnailOverlays);for(var f=c.next();!f.done;f=c.next()){var d=void 0;if((d=f.value)==null?0:d.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.r.computeNavigationEndpoint=function(c){return IGC(c==null?void 0:c.navigationEndpoint)};
_.ci.Object.defineProperties(ke.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var c=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:c==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:c==null?void 0:c.vibrantColorPalette,darkColorPalette:c==null?void 0:c.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ke.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(Rbr),_.D("design:type",Object)],ke.prototype,"ytdThumbnailBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ke.prototype,"componentBehavior",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],ke.prototype,"watchFeedThumbnail",void 0);_.y([_.L(),_.D("design:type",Number)],ke.prototype,"customThumbnailSize",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],ke.prototype,"hideAria",void 0);_.y([_.L(),_.D("design:type",Object)],ke.prototype,"data",void 0);_.y([_.L({computed:"computeOverlayColor(data)"}),_.D("design:type",Object)],ke.prototype,"overlayColor",void 0);
_.y([_.L({computed:"computeWebModernCollections(data)"}),_.D("design:type",Object)],ke.prototype,"webModernCollections",void 0);_.y([_.L({computed:"computeNavigationEndpoint(data)"}),_.D("design:type",Object)],ke.prototype,"computedNavigationEndpoint",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ke.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ke.prototype,"isDoubleStack",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],ke.prototype,"thumbnailSize",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],ke.prototype,"enableWebModernCollectionsV2",void 0);_.y([_.S("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.D("design:type",Object),_.D("design:paramtypes",[])],ke.prototype,"collectionStack",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],ke);
_.h(ke,"ytd-playlist-thumbnail",function(){if(uMH!==void 0)return uMH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return uMH=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var hpT;var Ow=function(){var c=_.z.apply(this,arguments)||this;c.noEndpoints=!1;c.amsterdamPostMvp=_.F("web_amsterdam_post_mvp_playlists");c.badges=[];c.transferState="TRANSFER_STATE_UNKNOWN";return c};
_.K(Ow,_.z);_.r=Ow.prototype;_.r.getMetadata=function(c){if(!c)return[];var f=[],d=c.shortViewCountText||c.viewCountText;d&&f.push(_.xC(d));c.publishedTimeText&&f.push(_.xC(c.publishedTimeText));c.upcomingEventData&&c.upcomingEventData.upcomingEventText&&f.push(_.hc(_.xC(c.upcomingEventData.upcomingEventText),Number(c.upcomingEventData.startTime)));return f};
_.r.observeDataForBylineSeparator=function(){this.data&&_.g1(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.r.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.ya(this.metadataColor)};
_.r.getSimpleString=function(c){return _.xC(c)};
_.r.isBylineHidden=function(c){return this.noByline||!((c==null?0:c.longBylineText)||(c==null?0:c.shortBylineText))};
_.r.isMetadataHidden=function(c){var f;return((f=this.getMetadata(c))==null?void 0:f.length)===0};
_.r.isBylineMetadataSeparatorHidden=function(c){return this.isMetadataHidden(c)||!this.shouldShowVideoInfo};
_.r.isLongByline=function(c,f){return f&&!(c==null||!c.longBylineText)};
_.ci.Object.defineProperties(Ow.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var c;return this.amsterdamPostMvp&&!((c=this.data)==null||!c.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}}});
Ow.prototype.metadataColorChanged=Ow.prototype.metadataColorChanged;Ow.prototype.observeDataForBylineSeparator=Ow.prototype.observeDataForBylineSeparator;_.y([_.Q(_.wt),_.D("design:type",Object)],Ow.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ow.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Ow.prototype,"noEndpoints",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Ow.prototype,"isSlimShort",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Ow.prototype,"radioMeta",void 0);_.y([_.L({selector:_.eC}),_.D("design:type",Object)],Ow.prototype,"isGridViewEnabled",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Ow.prototype,"richMeta",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ow.prototype,"amsterdamPostMvp",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ow.prototype,"noByline",void 0);
_.y([_.L({computed:"isLongByline(data, radioMeta)"}),_.D("design:type",Boolean)],Ow.prototype,"longByline",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Ow.prototype,"truncateMetadataLine",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Ow.prototype,"miniMode",void 0);_.y([_.L(),_.D("design:type",Number)],Ow.prototype,"metadataColor",void 0);_.y([_.L(),_.D("design:type",Array)],Ow.prototype,"badges",void 0);
_.y([_.L({selector:_.hE,selectorArgs:["data.videoId"]}),_.D("design:type",String)],Ow.prototype,"transferState",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Ow.prototype,"isDownloading",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Ow.prototype,"typographyBump",void 0);_.y([_.AY("#metadata-line"),_.D("design:type",HTMLElement)],Ow.prototype,"metadataLine",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ow.prototype,"observeDataForBylineSeparator",null);_.y([_.m5("metadataColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ow.prototype,"metadataColorChanged",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ow.prototype,"shouldShowVideoInfo",null);
_.y([_.S("badges"),_.D("design:type",String),_.D("design:paramtypes",[])],Ow.prototype,"inlineBadgeClass",null);_.y([_.S("longByline"),_.D("design:type",String),_.D("design:paramtypes",[])],Ow.prototype,"longBylineClass",null);_.y([_.S("data","longByline"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ow.prototype,"bylineText",null);_.y([_.S("isGridViewEnabled","data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ow.prototype,"watchFeedBigThumbs",null);
_.y([_.v({is:"ytd-video-meta-block",disableElementRegistration:!0})],Ow);
_.h(Ow,"ytd-video-meta-block",function(){if(hpT!==void 0)return hpT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return hpT=c},{mode:_.lP("kevlar_poly_si_batch_j080")?1:2});_.w_("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var lc=function(){var c=_.z.apply(this,arguments)||this;c.displayItemCount=2;c.isBackstagePlaylist=!1;c.isPostCompactPlaylist=!1;c.shouldShowChannelThumbnail=!1;c.useModernCollectionsV2=_.F("web_modern_collections_v2");return c};
_.K(lc,_.z);_.r=lc.prototype;_.r.computeFirstVideos=function(c,f){return c===void 0||f===void 0?[]:c.slice(0,f)};
_.r.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var c=this.data.thumbnailRenderer;c.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",c.playlistVideoThumbnailRenderer.thumbnail);c.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",c.playlistCustomThumbnailRenderer.thumbnail)}};
_.r.computeThumbnailHeight=function(c,f,d,q,Z){return q?Z==="BIG"?280:Z==="MASSIVE"?337:234:d?240:f?72:c?118:138};
_.r.computeThumbnailWidth=function(c,f,d,q,Z){return q?Z==="MEDIUM"?450:Z==="BIG"?500:Z==="MASSIVE"?600:420:d?360:f?128:c?210:246};
_.r.computeUseBiggerThumbs=function(c){return c&&_.F("enable_desktop_search_bigger_thumbs")};
_.r.computeShouldShowChannelThumbnail=function(c,f){return c&&!(f==null||!f.channelThumbnail)};
_.ci.Object.defineProperties(lc.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
lc.prototype.dataChanged=lc.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],lc.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],lc.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],lc.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],lc.prototype,"displayItemCount",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lc.prototype,"isBackstagePlaylist",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lc.prototype,"isPostCompactPlaylist",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],lc.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.D("design:type",Boolean)],lc.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],lc.prototype,"biggerThumbsStyle",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],lc.prototype,"isDownloads",void 0);_.y([_.L({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.D("design:type",Object)],lc.prototype,"shouldShowChannelThumbnail",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lc.prototype,"useModernCollectionsV2",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lc.prototype,"dataChanged",null);_.y([_.S("isSearch"),_.D("design:type",String),_.D("design:paramtypes",[])],lc.prototype,"stackThumbnailSize",null);_.y([_.v({is:"ytd-playlist-renderer",disableElementRegistration:!0})],lc);
_.h(lc,"ytd-playlist-renderer",function(){if(Yf3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);Yf3=c}c=Yf3;return c},{mode:1});var w7o;var yfj;var sw=function(){var c=_.z.apply(this,arguments)||this;c.collections=!!_.F("web_modern_collections_v2");c.startX=0;return c};
_.K(sw,_.z);sw.prototype.onEndpointMouseDown=function(c){this.startX=c.clientX};
sw.prototype.onEndpointClick=function(c){this.startX!==c.clientX&&(c.preventDefault(),c.stopPropagation())};
sw.prototype.computeObjectFit=function(c){return c==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||c==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||c==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
sw.prototype.computeCardStyle=function(c){return c?c.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.ci.Object.defineProperties(sw.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var c,f;return this.collections&&((c=this.data)==null?void 0:(f=c.searchRefinementCardRendererStyle)==null?void 0:f.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}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],sw.prototype,"data",void 0);_.y([_.L({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.D("design:type",Number)],sw.prototype,"objectFit",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.D("design:type",String)],sw.prototype,"cardStyle",void 0);
_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],sw.prototype,"roundContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],sw.prototype,"collections",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],sw.prototype,"isAlbumCard",null);_.y([_.S("data","collections","isAlbumCard"),_.D("design:type",Object),_.D("design:paramtypes",[])],sw.prototype,"collectionStack",null);
_.y([_.v({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],sw);
_.h(sw,"ytd-search-refinement-card-renderer",function(){if(yfj!==void 0)return yfj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return yfj=c},{mode:1});var WyF;var BR=function(){var c=_.z.apply(this,arguments)||this;c.isRichGrid=!1;return c};
_.K(BR,_.z);_.y([_.L(),_.D("design:type",Object)],BR.prototype,"data",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],BR.prototype,"componentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],BR.prototype,"ytdReduxBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],BR.prototype,"isRichGrid",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],BR.prototype,"miniMode",void 0);
_.y([_.v({is:"ytd-game-details-renderer",disableElementRegistration:!0})],BR);
_.h(BR,"ytd-game-details-renderer",function(){if(WyF!==void 0)return WyF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return WyF=c},{mode:1});var DZK;var epH;var ic=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return c};
_.K(ic,_.z);_.r=ic.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.currentStateData=function(c){var f=c||this.data;return f&&f.states&&f.currentStateId!=null?f.states.find(function(d){return d.stateId===f.currentStateId})||null:null};
_.r.currentStateRendererData=function(c){return(c=this.currentStateData(c))&&c.state&&c.state.buttonRenderer?c.state.buttonRenderer:null};
_.r.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())};
_.r.computeButtonIcon=function(c){c=this.currentStateRendererData(c);var f;return(c==null?0:(f=c.icon)==null?0:f.iconType)?c.icon.iconType.toLowerCase():null};
_.r.computeAccessibility=function(c){return(c=this.currentStateRendererData(c))&&c.accessibilityData?c.accessibilityData.accessibilityData||null:null};
_.r.computeButtonClass=function(c){var f=this.currentStateRendererData(c);if(!f)return"";c="";var d=f.style;d&&(c+=d.toLowerCase().replace(/_/g,"-")+" ");(f=f.size)&&(c+=f.toLowerCase().replace(/_/g,"-")+" ");return c.trim()};
_.r.computeServiceEndpoint=function(c){if(!c)return null;var f=c&&c.serviceEndpoint,d=this.get("command.commandMetadata.webCommandMetadata.sendPost",c);return f?f:d&&c.command?c.command:null};
_.r.computeBellMenuItemParams=function(c){var f;c=(f=_.b(c==null?void 0:c.command,_.BO))==null?void 0:f.commands;if(!c||c.length===0)return null;f=_.b(c[0],_.Lz);var d,q;return(f==null?0:(d=f.popup)==null?0:(q=d.menuPopupRenderer)==null?0:q.items)?f.popup.menuPopupRenderer.items.map(function(Z){return Z.menuServiceItemRenderer.trackingParams}):null};
_.r.handleBellMenuOpenSelectedAction=function(c){var f=c.trackingParams,d=this.computeBellMenuItemParams(this.data);this.data&&f&&d&&d.includes(f)&&this.ytRenderButtonBehavior._setButtonIcon(c.icon.iconType.toLowerCase())};
_.r.onYtServiceRequestCompleted=function(c,f){(c=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",f))&&this.set("data",c)};
_.r.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.r.resetState=function(){this.set("data.currentStateId",3)};
_.r.onYtButtonTapHandler=function(){if(this.data){var c=this.currentStateRendererData(this.data);c&&this.ytRendererBehavior.logExplicitClick(c)}};
ic.prototype.onYtServiceRequestError=ic.prototype.onYtServiceRequestError;ic.prototype.onYtServiceRequestCompleted=ic.prototype.onYtServiceRequestCompleted;ic.prototype.stateChanged=ic.prototype.stateChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ic.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(Ea.YtRenderButtonBehavior),_.D("design:type",Object)],ic.prototype,"ytRenderButtonBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ic.prototype,"data",void 0);_.y([_.ba("data","data.currentStateId"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ic.prototype,"stateChanged",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],ic.prototype,"onYtServiceRequestCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],ic.prototype,"onYtServiceRequestError",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],ic);
_.h(ic,"ytd-subscription-notification-toggle-button-renderer",function(){if(epH!==void 0)return epH;var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return epH=c},{mode:1});var Nf3;var Tn=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};c.tapHandler=function(){if(c.data){var f=c.currentStateRendererData();f&&c.ytRendererBehavior.logExplicitClick(f)}};
return c};
_.K(Tn,_.z);_.r=Tn.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.currentStateData=function(){var c=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(f){return f.stateId===c.data.currentStateId})||null:null};
_.r.currentStateRendererData=function(){var c=this.currentStateData();return c&&c.state&&c.state.buttonRenderer?c.state.buttonRenderer:null};
_.r.computeAccessibilityLabel=function(){var c,f,d;return(c=this.currentStateRendererData())==null?void 0:(f=c.accessibilityData)==null?void 0:(d=f.accessibilityData)==null?void 0:d.label};
_.r.computeBellMenuItemParams=function(){var c,f,d=(f=_.b((c=this.data)==null?void 0:c.command,_.BO))==null?void 0:f.commands;if(!d||d.length===0)return null;c=_.b(d[0],_.Lz);var q,Z;return(c==null?0:(q=c.popup)==null?0:(Z=q.menuPopupRenderer)==null?0:Z.items)?c.popup.menuPopupRenderer.items.map(function(M){return M.menuServiceItemRenderer.trackingParams}):null};
_.r.handleBellMenuOpenSelectedAction=function(c){var f=c.trackingParams,d=this.computeBellMenuItemParams();if(this.data&&f&&d&&d.includes(f)&&(c==null||!c.isDisabled)){var q;((q=_.b(c.serviceEndpoint,_.Ti))==null?void 0:q.signal)!=="CLIENT_SIGNAL"&&(this.icon=c.icon.iconType)}};
_.r.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.r.onYtServiceRequestCompleted=function(c,f){if(c=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",f))this.icon=void 0,this.set("data",c)};
_.r.onYtServiceRequestError=function(){this.icon=void 0};
_.ci.Object.defineProperties(Tn.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var c=this.data,f=this.textLabel,d=this.hostElement,q=this.computeAccessibilityLabel(),Z=this.tapHandler,M=this.isOverlay?"overlay":"mono",g=(c==null?0:c.disableButton)?"disabled":"active";f=f?_.he(f):void 0;return{style:M,type:"tonal",state:g,size:"M",focused:!1,formattedButtonText:f,iconPosition:"leading-trailing",onTap:yfr(c,Z,d),accessibilityLabel:q}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var c=this.currentStateRendererData(),f,d,q=(d=this.icon)!=null?d:c==null?void 0:(f=c.icon)==null?void 0:f.iconType;if(q)return _.Tu(q)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.data)==null?void 0:(f=c.secondaryIcon)==null?void 0:f.iconType;if(d)return _.Tu(d)}}});
Tn.prototype.onYtServiceRequestError=Tn.prototype.onYtServiceRequestError;Tn.prototype.onYtServiceRequestCompleted=Tn.prototype.onYtServiceRequestCompleted;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Tn.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Tn.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Tn.prototype,"textLabel",void 0);
_.y([_.L(),_.D("design:type",String)],Tn.prototype,"icon",void 0);_.y([_.L(),_.D("design:type",Boolean)],Tn.prototype,"isOverlay",void 0);_.y([_.S("data.*","textLabel"),_.D("design:type",Object),_.D("design:paramtypes",[])],Tn.prototype,"computedButtonShape",null);_.y([_.S("data.*","icon"),_.D("design:type",Object),_.D("design:paramtypes",[])],Tn.prototype,"computedIcon",null);_.y([_.S("data.*"),_.D("design:type",Object),_.D("design:paramtypes",[])],Tn.prototype,"computedSecondaryIcon",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],Tn.prototype,"onYtServiceRequestCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Tn.prototype,"onYtServiceRequestError",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Tn);
_.h(Tn,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Nf3!==void 0)return Nf3;var c=document.createElement("template");_.n(c,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Nf3=c},{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var I6H;_.g_(N63,"yt-animated-action",{props:{backgroundLottieRef:_.oM,foregroundLottieRef:_.oM,wrapperClass:_.oM,disableAnimation:_.oM},unsafeExternallySettableAttributes:new Set(["key"])});var mU=function(){var c=_.z.apply(this,arguments)||this;c.animatedActionEnabled=_.F("web_animated_actions");c.foregroundLottieRef={};c.backgroundLottieRef={};c.forceIconOnly=!1;c.showTextWhileAnimating=!1;c.keyboardFocused=!1;c.isAnimating=!1;c.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return c};
_.K(mU,_.z);_.r=mU.prototype;_.r.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.r.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]]"}}}}}};
_.r.attached=function(){this.keyboardFocused=!1};
_.r.onYtServiceRequestSent=function(c,f){(this.get("endpoint.subscribeEndpoint",f)||this.get("endpoint.unsubscribeEndpoint",f))&&this.updateSubscriptionState(!this.subscribed)};
_.r.onYtServiceRequestCompleted=function(c,f){(c=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",f.data))&&this.bellButton&&(this.bellButton.data=c)};
_.r.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.la(this.hostElement)};
_.r.onPlayerSubscribe=function(c){this.isCompactRed()||c!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.r.onPlayerUnsubscribe=function(c){this.isCompactRed()||c!==this.data.channelId||this.updateSubscriptionState(!1)};
_.r.handleUpdateSubscribeButtonAction=function(c){c=_.b(c,j5H);var f;c&&c.channelId===((f=this.data)==null?void 0:f.channelId)&&this.updateSubscriptionState(!!c.subscribed)};
_.r.computeButtonStyle=function(c){return this.get("style.styleType",c)||null};
_.r.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.r.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.r.updateSubscriptionState=function(c){if(c!==this.subscribed){this.set("data.subscribed",c);var f,d=(f=this.data)==null?void 0:f.subscribedEntityKey;d&&this.ytdReduxBehavior.dispatch(_.ER("subscriptionStateEntity",d,{key:d,subscribed:c}));this.isCompactRed()||_.CZ(this.hostElement,"yt-subscription-changed",c);c||(_.gS(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!c),c&&this.hasBellButton&&this.startAnimation())}};
_.r.startAnimation=function(){var c=this;if(!this.isAnimating){var f=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var d;(d=this.backgroundLottieRef.lottieEl)==null||d.goToAndPlay(0);var q;(q=this.foregroundLottieRef.lottieEl)==null||q.goToAndPlay(0);_.a7.addJob(function(){c.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.a7.addJob(function(){c.updateContainerToFitContent(!!c.subscribed,!0)},2,1500);
_.a7.addJob(function(){c.isAnimating=!1},2,f)}};
_.r.maybeAnimateBellIcon=function(){var c=_.C$(this.hostElement).querySelector("yt-animated-icon");if(c){var f;(f=c.animationRef.lottieEl)==null||f.goToAndPlay(0)}};
_.r.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.r.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.r.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var c;this.unsubscribedWidth=(c=this.subscribeButtonShape)==null?void 0:c.getBoundingClientRect().width}var f;this.subscribedWidth=(f=this.bellButton)==null?void 0:f.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.r.updateContainerToFitContent=function(c,f){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(c?(c=this.subscribedWidth,f=this.isAnimating&&!f,this.subscribedIconOnlyWidth===void 0||f||(c=this.subscribedIconOnlyWidth),this.hostElement.style.width=c+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.r.clearContainerSize=function(){this.hostElement.style.width=""};
_.r.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.r.maybeSetSubscribedButtonIconOnlyWidth=function(){var c=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 f;c.subscribedIconOnlyWidth=(f=c.bellButton)==null?void 0:f.getBoundingClientRect().width;requestAnimationFrame(function(){if(c.bellButton){var d;c.bellButton.textLabel=
(d=c.data)==null?void 0:d.subscribedButtonText}})})))};
_.ci.Object.defineProperties(mU.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 c;return(c=this.data)==null?void 0:c.subscribedButtonText}var f;return this.forceIconOnly?void 0:(f=this.data)==null?void 0:f.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var c,f,d=((c=this.data)==null?void 0:(f=c.timedAnimationData)==null?void 0:f.animationTiming)||[];return{uniqueId:"subscribe",timings:d,enabled:d.length>0&&!this.subscribed,experimentEnabled:d.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var c;return!this.subscribed&&((c=this.data)==null?void 0:c.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 c={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var f=c.renderer;var d=c.element;var q=c.subscribed;var Z=c.commandController;var M=c.isOverlay;c=c.stopPropagation;var g=NfP(f,q);M&&(g.style="overlay");M=Object;var O=M.assign,l;a:switch((l=f.style)==null?void 0:l.styleType){case "COMPACT_GRAY":case "COMPACT_RED":l={size:"S"};break a;default:l={size:"M"}}var m=epN(f,
q);var H=(H=q?f.subscribedButtonText:f.unsubscribedButtonText)?_.he(H):void 0;return O.call(M,{},g,l,{focused:!1,toggled:q,accessibilityLabel:m,formattedButtonText:H,onTap:DZk(f,q,d,Z,c)})}}}});
mU.prototype.onMouseDown=mU.prototype.onMouseDown;mU.prototype.onDataChanged=mU.prototype.onDataChanged;mU.prototype.observedSubscribed=mU.prototype.observedSubscribed;mU.prototype.onYtServiceRequestCompleted=mU.prototype.onYtServiceRequestCompleted;mU.prototype.onYtServiceRequestSent=mU.prototype.onYtServiceRequestSent;mU.prototype.maybeUpdateBellButtonText=mU.prototype.maybeUpdateBellButtonText;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],mU.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],mU.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],mU.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],mU.prototype,"data",void 0);
_.y([_.L({selectorArgs:["data.subscribedEntityKey"],selector:hCe}),_.D("design:type",Object)],mU.prototype,"subscriptionStateEntity",void 0);_.y([_.L({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.D("design:type",Boolean)],mU.prototype,"subscribed",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],mU.prototype,"branded",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mU.prototype,"animatedActionEnabled",void 0);
_.y([_.L(),_.D("design:type",Object)],mU.prototype,"foregroundLottieRef",void 0);_.y([_.L(),_.D("design:type",Object)],mU.prototype,"backgroundLottieRef",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],mU.prototype,"overlayButton",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.D("design:type",Object)],mU.prototype,"buttonStyle",void 0);_.y([_.L(),_.D("design:type",Object)],mU.prototype,"forceIconOnly",void 0);
_.y([_.L(),_.D("design:type",Object)],mU.prototype,"showTextWhileAnimating",void 0);_.y([_.L({value:function(){return!!_.ql().resolve(_.dx(_.lw))&&_.F("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.D("design:type",Boolean)],mU.prototype,"useKeyboardFocused",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mU.prototype,"keyboardFocused",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mU.prototype,"isAnimating",void 0);_.y([_.S("data.notificationPreferenceButton.*"),_.D("design:type",Object),_.D("design:paramtypes",[])],mU.prototype,"hasBellButton",null);
_.y([_.m5("subscribedButtonText"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mU.prototype,"maybeUpdateBellButtonText",null);_.y([_.S("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.D("design:type",Object),_.D("design:paramtypes",[])],mU.prototype,"subscribedButtonText",null);_.y([_.S("data.timedAnimationData.animationTiming","subscribed"),_.D("design:type",Object),_.D("design:paramtypes",[])],mU.prototype,"smartimationSettings",null);
_.y([_.L({reflectToAttribute:!0}),_.S("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.D("design:type",Object),_.D("design:paramtypes",[])],mU.prototype,"subscribeButtonHidden",null);_.y([_.L({reflectToAttribute:!0}),_.S("subscribed","hasBellButton"),_.D("design:type",Object),_.D("design:paramtypes",[])],mU.prototype,"subscribeButtonInvisible",null);
_.y([_.L({reflectToAttribute:!0}),_.S("subscribed"),_.D("design:type",Object),_.D("design:paramtypes",[])],mU.prototype,"unsubscribeButtonHidden",null);_.y([_.AY("ytd-subscription-notification-toggle-button-renderer-next"),_.D("design:type",Object)],mU.prototype,"bellButton",void 0);_.y([_.AY("#subscribe-button-shape"),_.D("design:type",HTMLElement)],mU.prototype,"subscribeButtonShape",void 0);
_.y([_.S("overlayButton","subscribed","data"),_.D("design:type",Object),_.D("design:paramtypes",[])],mU.prototype,"buttonShape",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],mU.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],mU.prototype,"onYtServiceRequestCompleted",null);
_.y([_.m5("subscribed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mU.prototype,"observedSubscribed",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mU.prototype,"onDataChanged",null);_.y([_.Ta("mousedown"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],mU.prototype,"onMouseDown",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],mU);
_.h(mU,"ytd-subscribe-button-renderer",function(){if(I6H!==void 0)return I6H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return I6H=c},{mode:1});var HR=function(){var c=_.z.apply(this,arguments)||this;c.isRichGrid=!1;return c};
_.K(HR,_.z);HR.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],HR.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],HR.prototype,"isRichGrid",void 0);_.y([_.v({is:"ytd-game-card-renderer",disableElementRegistration:!0})],HR);
_.h(HR,"ytd-game-card-renderer",function(){if(DZK!==void 0)return DZK;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DZK=c},{mode:1});var A6={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.F("defer_menus")&&!nIu?0:void 0,waitForSignal:"eocs"};var PTr;var Rpu;var Ye=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return c};
_.K(Ye,_.z);_.r=Ye.prototype;_.r.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.r.onSeriesReminderStateEntityChange=function(){var c,f,d;((c=this.eventReminderStateEntity)==null?0:c.key)&&((f=this.seriesReminderStateEntity)==null?void 0:f.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((d=this.eventReminderStateEntity)==null?void 0:d.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.ER("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.r.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.r.onYtServiceRequestError=function(){var c;this.updateReminderStateEntitiesFromButtonState((c=this.data)==null?void 0:c.currentState)};
_.r.handleUpdateUpcomingEventReminderButtonStateCommand=function(c){if(c=_.b(c,FZO)){var f,d=(f=this.data)==null?void 0:f.targetId;d&&c.targetId===d&&_.Nh(this.updateReminderStateEntitiesFromButtonState.bind(this,c.state))}};
_.r.getButtonStateFromReminderState=function(){var c;if(((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var f;if(((f=this.eventReminderStateEntity)==null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var d,q;if(((d=this.seriesReminderStateEntity)==null?void 0:d.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((q=this.eventReminderStateEntity)==
null?void 0:q.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Z;return(Z=this.data)==null?void 0:Z.currentState};
_.r.updateReminderStateEntitiesFromButtonState=function(c){if(c){switch(c){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":c="UPCOMING_EVENT_REMINDER_STATE_NONE";var f="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":c="UPCOMING_EVENT_REMINDER_STATE_SINGLE";f="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":c="UPCOMING_EVENT_REMINDER_STATE_NONE";f="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var d;
((d=this.eventReminderStateEntity)==null?0:d.key)&&this.ytdReduxBehavior.dispatch(_.ER("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:c})));var q;((q=this.seriesReminderStateEntity)==null?0:q.key)&&this.ytdReduxBehavior.dispatch(_.ER("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:f})))}};
_.ci.Object.defineProperties(Ye.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var c=this.getButtonStateFromReminderState(),f,d;if(c&&((f=this.data)==null?0:(d=f.states)==null?0:d.length))for(f=_.C(this.data.states),d=f.next();!d.done;d=f.next()){d=d.value;var q=void 0;if(((q=_.b(d,tY3))==null?void 0:q.state)===c)return _.b(d,tY3)}}}});
Ye.prototype.onYtServiceRequestError=Ye.prototype.onYtServiceRequestError;Ye.prototype.onYtServiceRequestCompleted=Ye.prototype.onYtServiceRequestCompleted;Ye.prototype.onSeriesReminderStateEntityChange=Ye.prototype.onSeriesReminderStateEntityChange;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Ye.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Ye.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ye.prototype,"data",void 0);_.y([_.L({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:yON}),_.D("design:type",Object)],Ye.prototype,"eventReminderStateEntity",void 0);
_.y([_.L({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(c,f){return _.Bb(c.entities,"sportsSeriesReminderStateEntity",f)}}),
_.D("design:type",Object)],Ye.prototype,"seriesReminderStateEntity",void 0);_.y([_.S("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ye.prototype,"currentButtonStateRenderer",null);_.y([_.m5("seriesReminderStateEntity"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ye.prototype,"onSeriesReminderStateEntityChange",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ye.prototype,"onYtServiceRequestCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ye.prototype,"onYtServiceRequestError",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Ye);
_.h(Ye,"ytd-upcoming-event-reminder-button-renderer",function(){if(Rpu!==void 0)return Rpu;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return Rpu=c},{mode:1});var UZK;var FS=function(){return _.z.apply(this,arguments)||this};
_.K(FS,_.z);FS.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.ci.Object.defineProperties(FS.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)}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],FS.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],FS.prototype,"shelfDismissal",void 0);_.y([_.S("data.responseText"),_.D("design:type",Object),_.D("design:paramtypes",[])],FS.prototype,"text",null);
_.y([_.S("data.responseText"),_.D("design:type",Object),_.D("design:paramtypes",[])],FS.prototype,"textAriaLabel",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],FS);
_.h(FS,"ytd-notification-multi-action-renderer",function(){if(UZK!==void 0)return UZK;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return UZK=c},{mode:1});var p7_;var t6=function(){return _.z.apply(this,arguments)||this};
_.K(t6,_.z);t6.prototype.ready=function(){var c=this;_.r1(this.hostElement).querySelector("#undo").addEventListener("tap",function(){c.onUndoTap()})};
t6.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],t6.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],t6);
_.h(t6,"ytd-notification-text-renderer",function(){if(p7_!==void 0)return p7_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return p7_=c},{mode:1});var xZF;var bc=function(){var c=_.z.apply(this,arguments)||this;c.mouseOverDelayJobId=0;c.fadeInImageDelayJobId=0;c.startTimeMs=-1;c.loadingStartTimeMs=-1;c.loadingEndTimeMs=-1;c.hasVideoPreview=!1;return c};
_.K(bc,_.z);_.r=bc.prototype;_.r.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.r.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.r.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.r.showThumbnail=function(){var c=this;this.csn=_.X2();_.Xt("fmth");_.a7.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Br(_.a7,function(){c.loadingStartTimeMs=(0,_.qR)();var f=_.r1(c.hostElement).querySelector("#thumbnail");f.complete?c.displayMouseOverImage():f.addEventListener("load",_.ia(c,c.displayMouseOverImage))},150):_.g1(_.r1(this.hostElement).querySelector("#play"),"show",!0)};
_.r.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.r.onTap=function(){this.removeVideoPreview()};
_.r.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var c=this.videoId,f=this.csn,d=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,q=this.startTimeMs,Z=this.hasVideoPreview,M=_.Q1(this.trackingParams),g={isMovingThumbnail:Z};Z&&q>0&&(d>0&&(g.movingThumbnailLoadingDurationMs=Math.round(d)),g.durationHoveredMs=Math.round((0,_.qR)()-q));c&&(g.videoId=c);_.UX(f,M,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:g});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.r.removeVideoPreview=function(){_.a7.cancelJob(this.mouseOverDelayJobId);_.a7.cancelJob(this.fadeInImageDelayJobId);var c=_.r1(this.hostElement).querySelector("#thumbnail");_.g1(c,"fade-in",!1);c.removeEventListener("load",_.ia(this,this.displayMouseOverImage));c=_.r1(this.hostElement).querySelector("#play");_.g1(c,"fade-in",!1);_.g1(c,"show",!1)};
_.r.displayMouseOverImage=function(){var c=_.r1(this.hostElement).querySelector("#thumbnail"),f=_.r1(this.hostElement).querySelector("#play");this.isImageAvailable(c)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.qR)(),this.startTimeMs=(0,_.qR)(),this.fadeInImageDelayJobId=_.Br(_.a7,function(){_.g1(c,"fade-in",!0)},50)):_.g1(f,"fade-in",!0)};
_.r.computeThumbnail=function(c,f){var d;c&&c.movingThumbnailDetails&&c.movingThumbnailDetails.thumbnails&&f?d=_.kZ(c.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):d=f?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(d)return _.XD(d)};
_.r.isImageAvailable=function(c){return!(!c.src||c.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||c.naturalWidth===120)};
bc.prototype.onTap=bc.prototype.onTap;bc.prototype.dataChanged=bc.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],bc.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bc.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],bc.prototype,"csn",void 0);_.y([_.L(),_.D("design:type",Object)],bc.prototype,"trackingParams",void 0);
_.y([_.L(),_.D("design:type",String)],bc.prototype,"videoId",void 0);_.y([_.L(),_.D("design:type",Boolean)],bc.prototype,"isAttachedAndDataSet",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],bc.prototype,"dataChanged",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],bc.prototype,"onTap",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],bc);
_.h(bc,"ytd-moving-thumbnail-renderer",function(){if(xZF!==void 0)return xZF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return xZF=c},{mode:1});var o7y;_.kR=function(c){this.hostElement=c;this.eventSink=null;this.eventList=[]};
_.kR.prototype.shouldForward=function(){var c,f;return(f=(c=this.eventSink)==null?void 0:c.isConnected)!=null?f:document.body.contains(this.eventSink)};
_.kR.prototype.start=function(c,f){this.eventSink&&this.stop();for(var d=0;d<c.length;d++)this.hostElement.addEventListener(c[d],_.ia(this,this.forwardEvent));var q;this.eventSink=(q=f.hostElement)!=null?q:f;this.eventList=c};
_.kR.prototype.stop=function(){for(var c=0;c<this.eventList.length;c++)this.hostElement.removeEventListener(this.eventList[c],_.ia(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.kR.prototype.forwardEvent=function(c,f){this.shouldForward()&&(c.stopPropagation(),this.eventSink instanceof Element?_.CZ(this.eventSink,c.type,f):_.u6(new _.KD("eventSink is not an element")))};_.Kd={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.kR(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(c,f){this.forwarder_.start(c,f)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Ew=function(){return _.z.apply(this,arguments)||this};
_.K(Ew,_.z);_.r=Ew.prototype;_.r.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=_.hk("HTML_DIR")==="rtl"?"right":"left"};
_.r.dataChanged=function(){this.popupOpen=!1};
_.r.computeAriaLabel=function(c){return _.b(c,Ex3).label};
_.r.onTap=function(c){c.stopPropagation();c.preventDefault();this.data.command&&_.ql().resolve(_.ZM).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.r.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.r.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Ew.prototype.onPopupClosed=Ew.prototype.onPopupClosed;Ew.prototype.onPopupOpened=Ew.prototype.onPopupOpened;Ew.prototype.onTap=Ew.prototype.onTap;Ew.prototype.dataChanged=Ew.prototype.dataChanged;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],Ew.prototype,"eventForwardingBehavior",void 0);_.y([_.Q(_.X$),_.D("design:type",Object)],Ew.prototype,"ironButtonState",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Ew.prototype,"componentBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Ew.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:-1}),_.D("design:type",Number)],Ew.prototype,"tabindex",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.D("design:type",Object)],Ew.prototype,"ariaLabel",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Ew.prototype,"disableTooltips",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Ew.prototype,"popupOpen",void 0);
_.y([_.L(),_.D("design:type",Element)],Ew.prototype,"eventSink",void 0);_.y([_.AY("#tooltip"),_.D("design:type",Object)],Ew.prototype,"tooltip",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ew.prototype,"dataChanged",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Ew.prototype,"onTap",null);
_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ew.prototype,"onPopupOpened",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ew.prototype,"onPopupClosed",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Ew);
_.h(Ew,"ytd-thumbnail-overlay-button-renderer",function(){if(o7y!==void 0)return o7y;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return o7y=c},{mode:1});var G_o;var nd=function(){return _.z.apply(this,arguments)||this};
_.K(nd,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nd.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],nd.prototype,"disableAnimation",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],nd.prototype,"rounded",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],nd.prototype,"transparentBackground",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],nd.prototype,"noPadding",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],nd);
_.h(nd,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(G_o!==void 0)return G_o;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return G_o=c},{mode:1});var cmv;var $e=function(){return _.z.apply(this,arguments)||this};
_.K($e,_.z);$e.prototype.computeIconPosition=function(c){return this.get("iconPosition",c)||null};
$e.prototype.computeIconStyle=function(c){return this.get("iconStyle",c)||null};
$e.prototype.computeIsIconStyleFilled=function(c){if(!c)return!1;var f;return c.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((f=c.icon)==null?void 0:f.iconType)==="ERROR_BLACK"};
_.y([_.L(),_.D("design:type",Object)],$e.prototype,"data",void 0);_.y([_.L({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.D("design:type",Object)],$e.prototype,"iconPosition",void 0);_.y([_.L({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.D("design:type",Object)],$e.prototype,"iconStyle",void 0);_.y([_.L({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],$e.prototype,"iconStyleFilled",void 0);
_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],$e);
_.h($e,"ytd-thumbnail-overlay-icon-renderer",function(){if(cmv!==void 0)return cmv;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return cmv=c},{mode:1});var fSO;var QV=function(){return _.z.apply(this,arguments)||this};
_.K(QV,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],QV.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],QV);
_.h(QV,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(fSO!==void 0)return fSO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return fSO=c},{mode:1});var d3F;var SX=function(){var c=_.z.apply(this,arguments)||this;c.isPreviewLoading=!1;return c};
_.K(SX,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],SX.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],SX.prototype,"isPreviewLoading",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],SX);
_.h(SX,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(d3F!==void 0)return d3F;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return d3F=c},{mode:1});var jUu;var Ld=function(){return _.z.apply(this,arguments)||this};
_.K(Ld,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ld.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Ld);
_.h(Ld,"ytd-thumbnail-overlay-pinking-renderer",function(){if(jUu!==void 0)return jUu;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return jUu=c},{mode:1});var qpK;var zn=function(){var c=_.z.apply(this,arguments)||this;c.disableTooltips=!1;c.isLoading=!1;c.useExpandableTooltip=!1;c.toggled=!1;c.hovered=!1;c.mouseoverDelayJobId=0;c.toggleDelayJobId=0;c.expandAnimationDelayJobId=0;return c};
_.K(zn,_.z);_.r=zn.prototype;_.r.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");_.r1(this.hostElement).querySelector("#tooltip").position=_.hk("HTML_DIR")==="rtl"?"right":"left"};
_.r.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.a7.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.a7.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.a7.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.r.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.a7.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.a7.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.a7.cancelJob(this.expandAnimationDelayJobId)};
_.r.computeIcon=function(c,f,d){return(c=d?f:c)&&c.iconType?_.Tu(c.iconType):void 0};
_.r.computeAriaLabel=function(c,f,d){return _.b(d?f:c,Ex3).label};
_.r.computeTooltip=function(c,f,d){return d?f:c};
_.r.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.r.computeIconOnHover=function(c,f){if((c==null?0:c.iconType)&&!f)return _.Tu(c.iconType)};
_.r.onTap=function(c){var f=this;c.stopPropagation();c.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(c=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(c),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Br(_.a7,function(){f.hovered=!1;f.data&&!f.data.toggledServiceEndpoint&&(f.expandAnimationDelayJobId=_.Br(_.a7,function(){f.set("data.isToggled",
!1)},200))},2E3))};
_.r.onMouseenter=function(){var c=this;this.mouseoverDelayJobId=_.Br(_.a7,function(){c.hovered=!0},300)};
_.r.onMouseleave=function(){_.a7.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.r.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.r.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.r.onServiceRequestCompleted=function(c,f){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(f)||this.set("data.isToggled",!this.data.isToggled)};
_.r.serviceRequestWasSuccessful=function(c){return _.b(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.hB)?c.data.status==="STATUS_SUCCEEDED":!0};
zn.prototype.onServiceRequestCompleted=zn.prototype.onServiceRequestCompleted;zn.prototype.onPopupClosed=zn.prototype.onPopupClosed;zn.prototype.onPopupOpened=zn.prototype.onPopupOpened;zn.prototype.onMouseleave=zn.prototype.onMouseleave;zn.prototype.dataChanged=zn.prototype.dataChanged;_.y([_.Q(_.X$),_.D("design:type",Object)],zn.prototype,"ironButtonState",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],zn.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],zn.prototype,"ytEventForwardingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zn.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.D("design:type",Object)],zn.prototype,"ariaLabel",void 0);_.y([_.L(),_.D("design:type",Object)],zn.prototype,"disableTooltips",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],zn.prototype,"popupOpen",void 0);_.y([_.L(),_.D("design:type",Object)],zn.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Element)],zn.prototype,"eventSink",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zn.prototype,"useExpandableTooltip",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.D("design:type",Object)],zn.prototype,"toggled",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zn.prototype,"hovered",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.D("design:type",Object)],zn.prototype,"iconOnHover",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zn.prototype,"dataChanged",null);
_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zn.prototype,"onMouseleave",null);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zn.prototype,"onPopupOpened",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zn.prototype,"onPopupClosed",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],zn.prototype,"onServiceRequestCompleted",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],zn);
_.h(zn,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(qpK!==void 0)return qpK;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return qpK=c},{mode:_.lP("kevlar_poly_si_batch_j053")?1:2});var Z6F;var MpK=_.dN(function(c){var f=c.data;var d=c.thumbnailSize;var q=function(){return f().enableSegmentView};
return _.B("yt-thumbnail-overlay-progress-bar-view-model",{class:_.FY("ytThumbnailOverlayProgressBarHost",function(){return I6N(d==null?void 0:d())})},_.B(_.T,{cond:q,
then:function(){return _.B("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.B("div",{class:_.tp("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+f().startPercent+"%"}}),_.B("div",{class:_.tp("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+f().segmentDurationPercent+"%"}},_.B("div",{class:_.tp("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.B("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.B("div",null," ",function(){return f().segmentLabel})),_.B("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.B("div",{class:_.tp("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.B(_.T,{cond:function(){return!q()&&f().startPercent},
then:function(){var Z={};return _.B("div",{class:_.tp("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Z.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.F("web_enable_modern_progress_bar_overlay"),Z))},_.B("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+f().startPercent+"%"}}))}}))},"U");
MpK.idomCompat=!0;var rm_=_.dN(function(c){var f=_.Yv(),d=_.N5(function(Z){var M,g,O;a:{var l=(M=c.data())==null?void 0:M.animationActivationTargetId;M=((g=c.data())==null?void 0:g.animationActivationEntityKey)||"";g=(O=c.data())==null?void 0:O.animationActivationEntitySelectorType;if(M&&l)switch(g){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Z=_.Bb(Z.entities,"playerStateEntity",M);O=_.ql().resolve(_.dx(_.yN));l=!!(Z&&Z.videoId===l&&(O==null?0:O.isMiniplayerActive()));l={activated:l,playAnimation:l&&
Z.playerState==="PLAYER_STATE_PLAYING"};break a}l=void 0}return l});
_.$k(function(){var Z;if((Z=d())==null?0:Z.activated){var M;if((M=d())==null?0:M.playAnimation){var g;(g=f.lottieEl)==null||g.goToAndPlay(0)}else{var O;(O=f.lottieEl)==null||O.goToAndStop(0)}}},"MDTl2e");
var q=function(){var Z,M=!((Z=d())==null||!Z.activated);if(c.data()){Z=c.data();var g=void 0;Z.icon&&(g=_.Bpr(Z.icon),g=FrG(g));var O=void 0,l;if((l=Z.backgroundColor)==null?0:l.lightTheme){var m;O={backgroundColor:Dm((m=Z.backgroundColor)==null?void 0:m.lightTheme,"0.8")}}if(Z.text||g||M){if(M&&Z.lottieData&&f){m=Z.lottieData;var H,A,Y;l={animationConfig:{name:m.url,path:m.url,autoplay:(H=m.settings)==null?void 0:H.autoplay,loop:(Y=(A=m.settings)==null?void 0:A.loop)!=null?Y:!0},animationRef:f}}else l=
void 0;if(M)H=17;else b:switch(Z.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":H=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":H=19;break b;default:H=17}M={type:H,text:M&&Z.animatedText?Z.animatedText:Z.text,icon:g,customColors:O,animation:l}}else M=void 0}else M=void 0;return M};
return _.B("yt-thumbnail-badge-view-model",{class:_.FY("yt-thumbnail-badge-view-model-wiz",c.class)},_.B(_.T,{cond:q,then:function(){return _.B(_.w9,{data:function(){return q()}})}}))},"V");var CR3=_.dN(function(c){var f={},d={};return _.B("yt-thumbnail-bottom-overlay-view-model",{class:_.FY("ytThumbnailBottomOverlayViewModelHost",(f.ytThumbnailBottomOverlayViewModelHostBackground=function(){return c.data().enableGradientBackground},f))},_.B(_.u7,{data:function(){return c.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(q){return _.B(MpK,{data:q.data,
thumbnailSize:c.thumbnailSize})}}),_.B("div",{class:_.FY("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var q;
return PTe((q=c.thumbnailSize)==null?void 0:q.call(c))},(d.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var q;
return(q=c.isClip)==null?void 0:q.call(c)},d.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var q;
return!_.F("web_enable_modern_progress_bar_overlay")&&((q=c.thumbnailSize)==null?void 0:q.call(c))==="small"},d))},_.B(_.u7,{data:function(){return c.data().badge}},{thumbnailBadgeViewModel:function(q){return _.B(rm_,{data:q.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.B(_.u7,{data:function(){return c.data().badges}},{thumbnailBadgeViewModel:function(q){return _.B(rm_,{data:q.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"W");
CR3.idomCompat=!0;_.g_(CR3,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Cs,thumbnailSize:_.Cs,isClip:_.Cs}});var jUM={calledOnce:!1,state:"visible"},qpk={calledOnce:!1,state:"hidden"};var J6=_.dN(function(c){var f=c.data;var d=c.className;c=c.alwaysShow;var q=_.p7l(),Z={};return _.B("thumbnail-hover-overlay-view-model",{el:_.Z7(_.NY(function(){return f().rendererContext})),
class:_.FY("ytThumbnailHoverOverlayViewModelHost",d,(Z.ytThumbnailHoverOverlayViewModelHostForceHover=c,Z)),"aria-label":function(){var M;return(M=_.b(f().rendererContext,_.Kz))==null?void 0:M.label},
role:function(){return _.DW(f().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.DW(f().rendererContext)!==void 0?0:void 0},
"on:keypress":q},_.B("div",{class:_.FY("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(f().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var M="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:M="ytThumbnailHoverOverlayViewModelStyleCover"}return M})},_.B(_.T,{cond:function(){return f().icon},
then:function(M){return _.B(_.jC,{data:M,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.B(_.T,{cond:function(){return f().text},
then:function(M){return _.B(_.J9,{text:M,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"X");
J6.idomCompat=!0;var ggO=_.dN(function(c){var f=c.data;return _.B(_.u7,{data:function(){return f==null?void 0:f().overlays}},{thumbnailHoverOverlayViewModel:J6})},"Y");
ggO.idomCompat=!0;var kBy={};var O6r=_.dN(function(c){var f=c.data;var d=c.image;var q=c.state;var Z=c.iconType;var M=c.overlays;var g=c.isOverlay;var O=_.ob("div");c=_.C(_.OT(!0,void 0,"sUzEZ"));var l=c.next().value,m=c.next().value,H=function(){return!!f().onTap},A=_.Ga(Z,"LIVE");
_.$k(function(){var t=f();requestAnimationFrame(function(){if(O.value===null)var E=!0;else{var J=O.value;E=t.badgeText;var X=rmG(t.size);E in kBy?J=kBy[E]:(J=J.clientWidth,kBy[E]=J);(E=J>X)?O.value.style.display="none":O.value.style.visibility="visible"}m(E)})},"SpVcNb");
var Y=function(){var t={};return t["yt-spec-avatar-shape__image"]=!0,t["yt-spec-avatar-shape__image--ads-app"]=f().type===1,t};
return _.B("yt-avatar-shape",null,_.B("div",{el:_.Z7(gg4(H,{keydown:function(t){if(t.key==="Enter"){var E;(E=t.currentTarget)==null||E.click()}},
click:function(t){var E,J;return void((J=(E=f()).onTap)==null?void 0:J.call(E,t))}})),
class:function(){var t={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},E=f();t=(t[E.clusterLayoutConfig?lSP(E.clusterLayoutConfig):sUh(E.size)]=!0,t["yt-spec-avatar-shape__button--tappable"]=H(),t);(E=f().avatarButtonCustomClassName)&&(t[E]=!0);return _.tp(t)},
"aria-label":function(){return H()?f().accessibilityText:""},
role:function(){return H()?"button":void 0},
tabindex:function(){return H()?0:void 0}},_.B("div",{class:function(){var t,E=f(),J=q==null?void 0:q(),X=g==null?void 0:g(),u=!((t=E.decorations)==null||!t.includes(2)||E.size!=="medium"&&E.size!=="large"),W=E.size==="tiny"||E.size==="extra-small",p,N,I,R,qN={};
t=(qN["yt-spec-avatar-shape--live-ring"]=!!(((p=E.decorations)==null?0:p.includes(0))&&i6k(E.size)),qN["yt-spec-avatar-shape--stories-watched"]=u&&!(J==null||!J.storiesWatched),qN["yt-spec-avatar-shape--stories-unwatched"]=u&&!(J==null?0:J.storiesWatched),qN["yt-spec-avatar-shape--background-border"]=TXG(E.decorations)&&!W,qN["yt-spec-avatar-shape--background-border-thin"]=TXG(E.decorations)&&W,qN["yt-spec-avatar-shape__on-select-border"]=!((N=E.decorations)==null||!N.includes(4)),qN["yt-spec-avatar-shape__white-border"]=
!((I=E.decorations)==null||!I.includes(5)),qN["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((R=E.decorations)==null?0:R.includes(5))&&W),qN["yt-spec-avatar-shape--is-overlay"]=!!X,qN);return _.tp(t)},
style:function(){a:{var t=f().clusterLayoutConfig;if(t){b:{var E=t.numAvatarsInCluster;var J=t.avatarIndex;if(J!==E-1){switch(t.clusterSize){case "small":t="32";break;case "medium":t="36";break;case "40":t="40";break;default:E=void 0;break b}E="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+t+"x"+t+"_avatars_"+E+"_index_"+J+".svg"}else E=void 0}if(E){E=_.$Z({"-webkit-mask-image":"url("+E+")","mask-image":"url("+E+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}E=void 0}return E}},_.B("div",{class:function(){var t={};
var E=f();t=(t[E.clusterLayoutConfig?kBk(E.clusterLayoutConfig):O6e(E.size)]=!0,t["yt-spec-avatar-shape--no-margin"]=TXG(f().decorations),t);return _.tp(t)}},_.B(_.jC,{data:d,
alt:function(){return!H()&&f().accessibilityText?f().accessibilityText:""},
targetWidth:function(){return BXr(f().size)},
targetHeight:function(){return BXr(f().size)},
className:function(){return _.tp(Y())}}),_.B(_.T,{cond:function(){var t;
return((t=f().decorations)==null?void 0:t.includes(0))&&i6k(f().size)},
then:function(){return _.B("div",{class:function(){var t={};t=(t["yt-spec-avatar-shape__live-badge"]=!0,t["yt-spec-avatar-shape__live-badge--badge-small"]=f().size==="small",t["yt-spec-avatar-shape__live-badge--badge-medium"]=f().size==="medium"||f().size==="48",t["yt-spec-avatar-shape__live-badge--badge-large"]=f().size==="large",t["yt-spec-avatar-shape__live-badge--badge-extra-large"]=f().size==="extra-large"||f().size==="extra-extra-large"||f().size==="giant",t);return _.tp(t)}},_.B(_.T,{cond:function(){return f().badgeText},
then:function(t){return _.B("div",{class:"yt-spec-avatar-shape__badge-text",el:O},t)}}),_.B(_.T,{cond:l,
then:function(){return _.B("div",{class:"yt-spec-avatar-shape__badge-icon"},_.B(_.Qy,{icon:A,size:function(){a:switch(f().size){case "extra-large":var t=16;break a;default:t=13}return t}}))}}))}}),_.B(_.T,{cond:function(){var t,E;
return((t=f().decorations)==null?void 0:t.includes(1))||((E=f().decorations)==null?void 0:E.includes(0))&&!i6k(f().size)},
then:function(){return _.B("div",{class:function(){var t=f(),E,J,X={};var u=(X["yt-spec-avatar-shape__live-dot"]=!((E=t.decorations)==null||!E.includes(0)||i6k(t.size)),X["yt-spec-avatar-shape__new-content"]=!((J=t.decorations)==null||!J.includes(1)),X);return _.tp(u)}})}}),_.B(_.T,{cond:function(){return!!M},
then:function(){return _.B("div",{class:function(){var t={};t=Object.assign((t["yt-spec-avatar-shape__image-overlays"]=!0,t),Y());return _.tp(t)}},M==null?void 0:M())}})))))},"Z");
O6r.idomCompat={callbacks:{overlays:!0}};_.ag=_.dN(function(c){function f(){d().endpoint&&_.Ph(d().endpoint)}
var d=c.data;var q=c.decorations;var Z=c.avatarButtonCustomClassName;var M=c.isOverlay;var g=c.clusterLayoutConfig;return _.B("avatar-view-model",null,_.B(_.T,{cond:function(){return d().image},
then:function(O){return _.B(O6r,{data:function(){return H6r({data:d(),onTap:d().endpoint?f:void 0,decorations:q==null?void 0:q(),badgeText:void 0,accessibilityText:d().accessibilityText,avatarButtonCustomClassName:Z==null?void 0:Z(),clusterLayoutConfig:g==null?void 0:g()})},
image:O,iconType:"RADAR_LIVE",overlays:function(){return _.B(ggO,{data:d})},
isOverlay:M})}}))},"$");
_.ag.idomCompat=!0;_.VV=_.dN(function(c){var f=c.data;c=c.className;var d=_.ob("yt-decorated-avatar-view-model"),q=function(){return _.b(f().avatar,_.Ie)},Z=_.TZ(function(){var M,g=f(),O=q(),l=_.DW(f().rendererContext),m=(M=d.value)!=null?M:void 0,H;
if(O){m={data:g,avatar:O,onTap:l,element:m};M=m.data;g=m.avatar;O=m.onTap;l=m.element;m=m.commandController;O=O?tpY(O,l,m):void 0;l=[];M.liveData&&l.push(0);var A;m=(A=M.liveData)==null?void 0:A.liveBadgeText;A=(H=_.b(M.rendererContext,_.Kz))==null?void 0:H.label;H=H6r({data:g,onTap:O,decorations:l,badgeText:m,accessibilityText:A?A:M.a11yLabel})}else H={size:"medium"};return H},void 0,"H8tk9d");
return _.B("yt-decorated-avatar-view-model",{class:_.FY("yt-decorated-avatar-view-model-wiz",c),el:d},_.B(_.T,{cond:function(){var M;return(M=q())==null?void 0:M.image},
then:function(M){return _.B(O6r,{data:Z,image:M,iconType:"RADAR_LIVE",overlays:function(){return _.B(ggO,{data:q})}})}}))},"aa");
_.VV.idomCompat=!0;_.XS=_.dN(function(c){var f=function(){var O;return Object.assign({},c.data(),(O=c.overrides)==null?void 0:O.call(c))},d=function(){return _.ec(f().rendererContext)},q=function(){var O=f().avatars,l,m;
return(m=(l=(O==null?0:O[0])?_.b(O[0],_.Ie):void 0)==null?void 0:l.avatarImageSize)!=null?m:"AVATAR_SIZE_UNKNOWN"},Z=function(){return F9M(f())},M=function(){if(f().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var O=void 0;
else if((O=c.decorations)==null?0:O.call(c))O=c.decorations();else{O=f();var l=0;O.avatars&&(l+=O.avatars.length);O.decoratedText&&(l+=1);O=l>1?[3]:[]}return O},g={};
return _.B("yt-avatar-stack-view-model",{el:_.Z7(_.NY(function(){return f().rendererContext})),
class:_.FY("yt-avatar-stack-view-model-wiz",c.className,(g["yt-avatar-stack-view-model-wiz--tappable"]=d,g["yt-avatar-stack-view-model-wiz--is-overlay"]=c.isOverlay,g["yt-avatar-stack-view-model-wiz--medium-text"]=c.useMediumText,g)),tabindex:function(){return d()?0:void 0},
role:function(){return d()?"link":void 0},
"aria-label":function(){var O,l;return(l=(O=_.b(f().rendererContext,_.Kz))==null?void 0:O.label)!=null?l:""}},_.B(_.T,{cond:function(){var O;
return f().avatars&&!((O=c.hideAvatar)==null?0:O.call(c))},
then:function(){return _.B("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.B(_.T,{cond:function(){return f().decoratedText},
then:function(O){var l={};return _.B("div",{class:_.FY("yt-avatar-stack-view-model-wiz__text-container",(l["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return q()==="AVATAR_SIZE_XXS"||q()==="AVATAR_SIZE_XS"},l["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var m;
return((m=c.isOverlay)==null?void 0:m.call(c))&&(q()==="AVATAR_SIZE_XXS"||q()==="AVATAR_SIZE_XS")},l)),
style:_.$Z({width:function(){return Z().avatarSizeInPx+"px"},
height:function(){return Z().avatarSizeInPx+"px"}})},_.B(_.J9,{text:O,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.B("div",{style:function(){return _.$Z(Z().avatarStackStyle)()},
class:function(){return Z().avatarStackClass}},_.B(_.u7,{data:function(){return Z().avatars.reverse()}},{avatarViewModel:function(O,l){return _.B("div",{style:function(){var m,H;
return _.$Z((H=(m=Z()).avatarStyle)==null?void 0:H.call(m,l()))()},
class:function(){return Z().avatarClass}},_.B(_.ag,{data:O.data,
decorations:M,avatarButtonCustomClassName:function(){return Z().avatarButtonCustomClassName},
isOverlay:c.isOverlay,clusterLayoutConfig:function(){var m,H;return(H=(m=Z()).clusterLayoutConfig)==null?void 0:H.call(m,l())}}))},
decoratedAvatarViewModel:function(O,l){return _.B("div",{style:function(){var m,H;return _.$Z((H=(m=Z()).avatarStyle)==null?void 0:H.call(m,l()))()},
class:function(){return Z().avatarClass}},_.B(_.VV,{data:O.data}))}})))}}),_.B(_.T,{cond:function(){return f().text},
then:function(O){return _.B(_.J9,{text:O,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ba");
_.XS.idomCompat=!0;_.g_(_.dN(function(c){var f=c.data;var d=c.thumbnailSize;return _.B("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.B("div",{class:_.FY("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return b6N(d==null?void 0:d())})},_.B(_.u7,{data:function(){return f().avatarStack}},{avatarStackViewModel:function(q){return _.B(_.XS,{data:q.data,
decorations:[5]})}})))},"ca"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.oM,
thumbnailSize:_.oM}});var lS3=_.dN(function(c){c=_.ch(c,{hidden:!1});var f=c.data;return _.B("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:c.hidden},_.B(_.J9,{text:function(){return f().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.B(_.T,{cond:function(){return f().subtitle},
then:function(){return _.B(_.J9,{text:function(){return f().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"da");
lS3.idomCompat=!0;_.g_(lS3,"yt-thumbnail-overlay-title-view-model",{props:{data:_.oM,hidden:_.oM}});var sUT=_.dN(function(c){c=_.ch(c,{isClip:!1});var f=c.data,d=c.thumbnailSize,q={};return _.B("yt-thumbnail-overlay-badge-view-model",{class:_.FY("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(f().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Z="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:Z="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return Z},function(){return K9z(d==null?void 0:d())},(q["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
c.isClip,q))},_.B(_.u7,{data:function(){return f().thumbnailBadges}},{thumbnailBadgeViewModel:function(Z){return _.B(rm_,{data:Z.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ea");
sUT.idomCompat=!0;_.g_(sUT,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.oM,thumbnailSize:_.oM,isClip:_.oM}});_.ZB(EgY);_.m$(EgY,"yt-page-indicator-view-model",{propNames:["data"]});var uc=function(){var c=_.z.apply(this,arguments)||this;c.eventSink=function(){return c};
c.disableInteraction=!1;c.noRoundedCorners=!1;c.isPreviewLoading=!1;c.isOriginalAspectRatio=!1;c.computedObjectFit=!1;c.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return c};
_.K(uc,_.z);_.r=uc.prototype;
_.r.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"}}};
_.r.onImageLoaded=function(){this.loaded=!0};
_.r.onImageUnloaded=function(){this.loaded=!1};
_.r.computeRichThumbnail=function(c,f,d,q){if(c&&f&&!q&&!_.F("disable_moving_thumbs_handling")&&!d)return f};
_.r.computeImageWidth=function(c,f){return f||9999};
_.r.computeIsOriginalAspectRatio=function(c){return c};
_.r.computeIsLive=function(c){if(c==null?0:c.badges)for(var f=0;f<c.badges.length;f++){var d=c.badges[f];if(d.metadataBadgeRenderer&&d.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(c==null?0:c.thumbnailOverlays)for(f=0;f<c.thumbnailOverlays.length;f++)if(d=c.thumbnailOverlays[f],d.thumbnailOverlayTimeStatusRenderer&&d.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.r.computeObjectFit=function(c,f){return f||(c?"CONTAIN":"")};
_.r.computeNavigationEndpoint=function(c,f,d){return c?f:d};
_.r.computeHasClip=function(c){c=_.C(c||[]);for(var f=c.next();!f.done;f=c.next())if(f.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.r.computeOverlayColor=function(c){var f;return(c==null?0:(f=c.darkColorPalette)==null?0:f.section2Color)?c.darkColorPalette.section2Color:c==null?void 0:c.sampledThumbnailColor};
_.ci.Object.defineProperties(uc.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Ume(this.width)}}});
uc.prototype.onImageUnloaded=uc.prototype.onImageUnloaded;uc.prototype.onImageLoaded=uc.prototype.onImageLoaded;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],uc.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(Rbr),_.D("design:type",Object)],uc.prototype,"ytdThumbnailBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],uc.prototype,"componentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],uc.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],uc.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],uc.prototype,"circular",void 0);
_.y([_.L({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.D("design:type",Object)],uc.prototype,"richThumbnail",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.D("design:type",Boolean)],uc.prototype,"hasClip",void 0);_.y([_.L(),_.D("design:type",Object)],uc.prototype,"eventSink",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],uc.prototype,"queued",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],uc.prototype,"richGridThumbnail",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],uc.prototype,"useExpandableTooltip",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],uc.prototype,"useUntranslatedNavigationEndpoint",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uc.prototype,"disableInteraction",void 0);
_.y([_.L({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.D("design:type",Object)],uc.prototype,"computedNavigationEndpoint",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],uc.prototype,"nowPlayingEqualizerOnly",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],uc.prototype,"hidePlaybackStatus",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],uc.prototype,"objectFit",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uc.prototype,"noRoundedCorners",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],uc.prototype,"watchFeedThumbnail",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uc.prototype,"isPreviewLoading",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.D("design:type",Object)],uc.prototype,"isOriginalAspectRatio",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.D("design:type",Object)],uc.prototype,"computedObjectFit",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.D("design:type",Boolean)],uc.prototype,"isLiveVideo",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],uc.prototype,"loaded",void 0);_.y([_.L({computed:"computeOverlayColor(data.thumbnail)"}),_.D("design:type",Object)],uc.prototype,"overlayColor",void 0);_.y([_.L({selector:_.Nlk}),_.D("design:type",Boolean)],uc.prototype,"inlinePreviewIsEnabled",void 0);_.y([_.L(),_.D("design:type",Number)],uc.prototype,"width",void 0);
_.y([_.S("inlinePreviewIsEnabled"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],uc.prototype,"isPreviewDisabled",null);_.y([_.S("width"),_.D("design:type",String),_.D("design:paramtypes",[])],uc.prototype,"thumbnailSize",null);_.y([_.Ta("image-loaded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uc.prototype,"onImageLoaded",null);
_.y([_.Ta("image-unloaded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uc.prototype,"onImageUnloaded",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-thumbnail"})],uc);
var BXj=_.OD()(uc,"ytd-thumbnail",function(){if(Z6F===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);Z6F=c}c=Z6F;return c},{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 Spn=function(c){var f=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14808_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14808_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(d){i6y(f,d)};
this.onLockupMouseLeaveFn=function(d){d=d.relatedTarget;var q,Z;((q=document.getElementsByTagName("ytd-video-preview"))==null?0:(Z=q.item(0))==null?0:Z.contains(d))||(f.terminateVideoPreview(),vR(f))};
this.onThumbnailMouseDownFn=function(){f.terminateVideoPreview();vR(f)};
this.onTouchStart=function(){f.JSC$14808_touched=!0};
this.mediaRenderer=c.mediaRenderer;this.thumbnailElement=c.thumbnailElement;this.lockupElement=c.lockupElement;this.videoPreviewOptsInput=c.videoPreviewOpts;TX_(this);h6(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)):
_.u6(Error("Bh")):_.u6(Error("Ch")):m33(this)},dO=function(c){m33(c);
var f;(f=c.lockupElement)==null||f.removeEventListener("mouseenter",c.onMouseMoveFn);var d;(d=c.lockupElement)==null||d.removeEventListener("mouseleave",c.onLockupMouseLeaveFn);var q;(q=c.lockupElement)==null||q.removeEventListener("touchstart",c.onTouchStart);var Z;(Z=c.thumbnailElement)==null||Z.removeEventListener("mousedown",c.onThumbnailMouseDownFn);vR(c)},TX_=function(c){c.inlinePreviewIsEnabledForUser=_.Gh().getState().ui.inlinePreviewIsEnabled;
c.unsubscribeFromInlinePreviewIsEnabled=_.bj(_.Gh(),_.Nlk,function(f){(c.inlinePreviewIsEnabledForUser=f)||vR(c)});
c.JSC$14808_unsubscribeFromInlinePreviewIsActive=_.bj(_.Gh(),_.eek,function(f){(c.inlinePreviewIsActive=f)||vR(c)})},m33=function(c){c.unsubscribeFromInlinePreviewIsEnabled();
c.unsubscribeFromInlinePreviewIsEnabled=function(){};
c.JSC$14808_unsubscribeFromInlinePreviewIsActive();c.JSC$14808_unsubscribeFromInlinePreviewIsActive=function(){}},i6y=function(c,f){f.buttons>0||(f=_.rx("kevlar_lockup_hover_delay",-1),c.JSC$14808_touched&&f>=0?(_.a7.cancelJob(c.videoPreviewJobId),c.videoPreviewJobId=_.Br(_.a7,function(){H6j(c)},f),c.JSC$14808_touched=!1):H6j(c))},YEn=function(c){c.videoPreviewJobId=_.Br(_.a7,function(){var f,d,q,Z;
return _.k(function(M){if(M.nextAddress==1){if(!h6(c))return M.return();f=c.getVideoPreviewOpts();if(!f)return M.return();f.isAutoplay=!0;return(q=(d=_.kt(c.mediaRenderer.hostElement,"yt-open-video-preview-action",[f]))&&d[0])?M.yield(d[0],3):M.jumpTo(2)}M.nextAddress!=2&&(q=M.yieldResult===1);q&&$3e((Z=c.mediaRenderer)==null?void 0:Z.data);_.Fm(M)})})},H6j=function(c){!c.previewTriggered&&h6(c)&&(c.inlinePreviewIsActive&&c.terminateVideoPreview(),c.previewTriggered=!0,c.mediaRenderer.isInlinePreviewTriggered=
!0,_.a7.cancelJob(c.videoPreviewJobId),c.videoPreviewJobId=_.Br(_.a7,function(){var f,d,q,Z;
return _.k(function(M){if(M.nextAddress==1){if(!h6(c))return M.return();f=c.getVideoPreviewOpts();return f?(q=(d=_.kt(c.mediaRenderer.hostElement,"yt-open-video-preview-action",[f]))&&d[0])?M.yield(d[0],3):M.jumpTo(2):M.return()}M.nextAddress!=2&&(q=M.yieldResult===1);q&&$3e((Z=c.mediaRenderer)==null?void 0:Z.data);_.Fm(M)})}))};
Spn.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var c,f;if((f=(c=this.videoPreviewOptsInput)==null?void 0:c.videoPreviewData)!=null)c=f;else if(c=this.mediaRenderer.data)if(ngk(c))c={inlinePlaybackEndpoint:_.D9(c.inlinePlayerData.onVisible),navigationEndpoint:_.D9(c.onTap),thumbnail:"image"in c?c.image:c.thumbnail,thumbnailOverlays:void 0,accessibilityText:QUN(c)};else if("multipleInlinePlaybackEndpoint"in c){var d=_.b(_.b(c.multipleInlinePlaybackEndpoint,vGu),hIr);if(d!=
null&&d.playerDescriptors){f=[];d=_.C(d.playerDescriptors);for(var q=d.next();!q.done;q=d.next())q=q.value,f.push({inlinePlaybackEndpoint:q.inlinePlaybackEndpoint,navigationEndpoint:q.navigationEndpoint,thumbnail:q.thumbnail,thumbnailOverlays:q.thumbnailOverlays,accessibilityText:QUN(c)});c=f}else c=void 0}else c={inlinePlaybackEndpoint:c.inlinePlaybackEndpoint,navigationEndpoint:c.navigationEndpoint,thumbnail:c.thumbnail,thumbnailOverlays:c.thumbnailOverlays,accessibilityText:QUN(c)};else c=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:c,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var h6=function(c){var f;if(f=c.inlinePreviewIsEnabledForUser)f=(c=c.mediaRenderer.data)?"inlinePlaybackEndpoint"in c&&c.inlinePlaybackEndpoint||ngk(c)&&c.inlinePlayerData||"multipleInlinePlaybackEndpoint"in c&&c.multipleInlinePlaybackEndpoint?!0:!1:!1;return f};
Spn.prototype.terminateVideoPreview=function(){_.gS(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var vR=function(c){_.a7.cancelJob(c.videoPreviewJobId);c.inlinePreviewIsActive=!1;c.previewTriggered=!1;c.mediaRenderer.isInlinePreviewTriggered=!1};var Amj=_.pp(["#"]),wY=function(){var c=_.z.apply(this,arguments)||this;c.isDisabled=!1;return c};
_.K(wY,_.z);_.r=wY.prototype;_.r.configureRendererStamper=function(){return{"data.menu":A6,"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"}}}};
_.r.attached=function(){this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.getMetadata=function(c){var f=[];if(c.metadataText&&Object.keys(c.metadataText).length>0){var d=this.ytRendererBehavior.getSimpleString(c.metadataText);c.upcomingEventData&&c.upcomingEventData.upcomingEventText&&(d=_.hc(d,Number(c.upcomingEventData.startTime)));f.push(d)}else c.shortViewCountText&&f.push(this.ytRendererBehavior.getSimpleString(c.shortViewCountText)),c.publishedTimeText&&f.push(this.ytRendererBehavior.getSimpleString(c.publishedTimeText)),c.upcomingEventData&&c.upcomingEventData.upcomingEventText&&
(d=this.ytRendererBehavior.getSimpleString(c.upcomingEventData.upcomingEventText),f.push(_.hc(d,Number(c.upcomingEventData.startTime))));return f};
_.r.calculateBylineText=function(c){return c.shortBylineText?c.shortBylineText:c.bylineText?c.bylineText:null};
_.r.calculateIsDisabled=function(c){return!!c.isDisabled};
_.r.computeHrefWithDefault=function(c){return this.ytComponentBehavior.computeHref_(c)||_.G8k(Amj)};
_.r.onDetailsTap=function(c){var f=this.data&&this.data.navigationEndpoint;f&&!_.qY(_.x0(c)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.F("kevlar_grid_video_renderer_killswitch")?_.CZ(this.hostElement,"yt-navigate",{endpoint:f}):this.ytComponentBehavior.resolveCommand(f))};
_.r.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14813_inlinePreviewHoverListener=P9({mediaRenderer:this,lockupElement:_.r1(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.r1(this.hostElement).querySelector("ytd-thumbnail")})};
_.r.clearInlinePreviewHoverListeners=function(){var c;(c=this.JSC$14813_inlinePreviewHoverListener)==null||dO(c)};
_.r.computeThumbnailWidth=function(c,f){return f&&f>0?f:c?360:210};
_.r.computeShowChannelThumbnail=function(c,f){var d;return f&&!!(c==null?0:(d=c.channelThumbnailSupportedRenderers)==null?0:d.channelThumbnailWithLinkRenderer)};
_.ci.Object.defineProperties(wY.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.JSC$14813_inlinePreviewHoverListener)==null?0:h6(c))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
wY.prototype.dataChanged=wY.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],wY.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],wY.prototype,"ytdDismissibleItemBehavior",void 0);
_.y([_.Q(_.Ui),_.D("design:type",Object)],wY.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],wY.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wY.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],wY.prototype,"noEndpoints",void 0);_.y([_.L({computed:"calculateBylineText(data)"}),_.D("design:type",Object)],wY.prototype,"bylineText",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],wY.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],wY.prototype,"isDownloading",void 0);_.y([_.L({reflectToAttribute:!0,value:0}),_.D("design:type",Number)],wY.prototype,"width",void 0);_.y([_.L({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.D("design:type",Object)],wY.prototype,"isDisabled",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wY.prototype,"dataChanged",null);_.y([_.S("lockupIsHovered"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],wY.prototype,"isHovered",null);_.y([_.v({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],wY);
_.h(wY,"ytd-grid-video-renderer",function(){if(PTr!==void 0)return PTr;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return PTr=c},{mode:_.lP("kevlar_poly_si_batch_j047")?1:2});var Yp3;var yV=function(){var c=_.z.apply(this,arguments)||this;c.roundedContainer=!0;c.skipRoundingTop=!1;c.disableTopPadding=!1;c.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return c};
_.K(yV,_.z);yV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
yV.prototype.onClick=function(c){var f,d=(f=this.data)==null?void 0:f.sourceEndpoint;!_.qY(_.x0(c),this.hostElement,["A".toString()])&&d&&_.CZ(this.hostElement,"yt-navigate",{endpoint:d})};
_.ci.Object.defineProperties(yV.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 c;return!((c=this.data)==null||!c.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=(c=this.data)==null?void 0:c.paragraphMaxLines)!=null?f:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],yV.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yV.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yV.prototype,"showVerticalDividers",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yV.prototype,"roundedContainer",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yV.prototype,"skipRoundingTop",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yV.prototype,"disableTopPadding",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],yV.prototype,"amsterdamEnabled",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],yV.prototype,"showMetadataAtTop",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],yV.prototype,"showMetadataBelowTitle",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.menu"),_.D("design:type",Object),_.D("design:paramtypes",[])],yV.prototype,"hasMenu",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.truncateParagraphs"),_.D("design:type",Object),_.D("design:paramtypes",[])],yV.prototype,"truncateParagraphs",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data.paragraphMaxLines"),_.D("design:type",Number),_.D("design:paramtypes",[])],yV.prototype,"paragraphMaxLines",null);_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.background"),_.D("design:type",Object),_.D("design:paramtypes",[])],yV.prototype,"background",null);_.y([_.v({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],yV);
_.h(yV,"ytd-info-panel-content-renderer",function(){if(Yp3!==void 0)return Yp3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Yp3=c},{mode:_.lP("kevlar_poly_si_batch_j076")?1:2});var F9u;var tpv;var b6H;var K9o;var WR=function(){return _.z.apply(this,arguments)||this};
_.K(WR,_.z);WR.prototype.computeStyle=function(c){return c};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],WR.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.D("design:type",String)],WR.prototype,"style_",void 0);_.y([_.vj({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],WR);
_.h(WR,"yt-channel-thumbnail-with-link-renderer",function(){if(K9o===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;b6H===void 0&&(b6H=document.createElement("template"));var q=b6H;d.call(f,q.content.cloneNode(!0),c.content.firstChild);K9o=c}c=K9o;return c},{mode:2});var D3=function(){var c=_.z.apply(this,arguments)||this;c.modernTypography=_.F("web_modern_typography");return c};
_.K(D3,_.z);D3.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"}}}};
D3.prototype.computeTitleStyle=function(c){return c||null};
D3.prototype.computeAvatarStyle=function(c){return c||null};
D3.prototype.computeShowNavigationButton=function(c,f){return!(c==null||!c.navigationButton||f)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],D3.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.D("design:type",String)],D3.prototype,"titleStyle",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.D("design:type",String)],D3.prototype,"avatarStyle",void 0);_.y([_.L(),_.D("design:type",Boolean)],D3.prototype,"hideNavigationButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],D3.prototype,"isModernSd",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],D3.prototype,"modernTypography",void 0);
_.y([_.v({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],D3);
_.h(D3,"ytd-rich-list-header-renderer",function(){if(tpv!==void 0)return tpv;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return tpv=c},{mode:_.lP("kevlar_poly_si_batch_j058")?1:2});var eX=function(){return _.z.apply(this,arguments)||this};
_.K(eX,_.z);eX.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]]"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],eX.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],eX.prototype,"isSearch",void 0);_.y([_.v({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],eX);
_.h(eX,"ytd-preview-card-renderer",function(){if(F9u!==void 0)return F9u;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return F9u=c},{mode:1});var Egv;var NP=function(){return _.z.apply(this,arguments)||this};
_.K(NP,_.z);NP.prototype.configureRendererStamper=function(){return{"data.menu":A6}};
NP.prototype.dataChanged=function(){var c=this.get("colorExtractionPalette.section1Color",this.data);c=_.ya(c);_.la(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":c})};
NP.prototype.computeCardStyle=function(c){return this.get("style.value",c)||null};
NP.prototype.dataChanged=NP.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],NP.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],NP.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.D("design:type",String)],NP.prototype,"cardStyle",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],NP.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],NP);
_.h(NP,"ytd-compact-channel-recommendation-card-renderer",function(){if(Egv!==void 0)return Egv;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Egv=c},{mode:1});var ngy;var $3r;var Ig=function(){var c=_.z.apply(this,arguments)||this;c.alignAuto=!1;c.collapsed=!0;c.isToggled=!1;c.alwaysCollapsed=!1;c.canToggle=!0;c.collapsedHeight=80;c.disableToggle=!1;c.alwaysToggleable=!1;c.reversed=!1;c.shouldUseNumberOfLines=!1;c.recomputeOnResize=!1;c.canToggleJobId=0;c.lastReversed=!1;return c};
_.K(Ig,_.z);_.r=Ig.prototype;_.r.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.r.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.r.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var c=_.r1(this.hostElement),f=c.childNodes,d=document.createDocumentFragment(),q=c.childNodes.length-1;q>=0;q--)_.r1(d).appendChild(f[q]);_.F("enable_shadydom_free_scoped_node_methods")?_.C$(this.hostElement).appendChild(d):c.appendChild(d)}};
_.r.ready=function(){var c=this;_.Nh(function(){c.initChildrenObserver()},1)};
_.r.attached=function(){var c;(c=this.resizeObserver)==null||c.observe(this.content)};
_.r.detached=function(){this.detachObserver()};
_.r.toggle=function(c,f){this.canToggle&&(this.isToggled=f,_.CZ(this.hostElement,"yt-refit"),c&&c.stopPropagation())};
_.r.reset=function(){this.childrenChanged()};
_.r.onIronResize=function(){this.recomputeOnResize&&!_.F("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.r.computeIsMoreVisible=function(c,f){return c&&!f};
_.r.computeShouldUseNumberOfLines=function(c){try{return!!c&&window.CSS.supports("-webkit-line-clamp","1")}catch(f){}return!1};
_.r.computeIsLessVisible=function(c,f){return c&&f};
_.r.observeCollapsedHeightAndMaxLines=function(){var c=this.collapsedHeight,f=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.la(this.hostElement,{"--ytd-expander-max-lines":""+f,"--ytd-expander-collapsed-height":""}):_.la(this.hostElement,{"--ytd-expander-collapsed-height":c+"px","--ytd-expander-max-lines":""})};
_.r.handleMoreTap=function(c){this.disableToggle||(_.CZ(this.hostElement,"yt-expander-more-tapped"),this.toggle(c,!0))};
_.r.handleLessTap=function(c){_.CZ(this.hostElement,"yt-expander-less-tapped");this.toggle(c,!1)};
_.r.initChildrenObserver=function(){var c=this;this.observer=new MutationObserver(function(){c.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.F("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Gx(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var f;(f=c.resizeThrottle)==null||f.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.r.childrenChanged=function(){var c=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){sV(function(){c.canToggleJobId=0;c.calculateCanCollapse()})}))};
_.r.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};
_.r.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.r.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("collapsed-changed",this.collapsed))};
_.r.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("is-toggled-changed",this.isToggled))};
_.r.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("can-toggle-changed",this.canToggle))};
_.ci.Object.defineProperties(Ig.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Ig.prototype.canToggleChangedForBinding=Ig.prototype.canToggleChangedForBinding;Ig.prototype.isToggledChangedForBinding=Ig.prototype.isToggledChangedForBinding;Ig.prototype.collapsedChangedForBinding=Ig.prototype.collapsedChangedForBinding;Ig.prototype.observeCollapsedHeightAndMaxLines=Ig.prototype.observeCollapsedHeightAndMaxLines;Ig.prototype.onIronResize=Ig.prototype.onIronResize;Ig.prototype.reversedChanged=Ig.prototype.reversedChanged;Ig.prototype.toggledChanged=Ig.prototype.toggledChanged;
Ig.prototype.alwaysToggleableChanged=Ig.prototype.alwaysToggleableChanged;_.y([_.Q(_.aJ),_.D("design:type",Object)],Ig.prototype,"ironResizableBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ig.prototype,"alignAuto",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ig.prototype,"collapsed",void 0);_.y([_.L(),_.D("design:type",Object)],Ig.prototype,"isToggled",void 0);_.y([_.L(),_.D("design:type",Object)],Ig.prototype,"alwaysCollapsed",void 0);
_.y([_.L(),_.D("design:type",Object)],Ig.prototype,"canToggle",void 0);_.y([_.L(),_.D("design:type",Object)],Ig.prototype,"collapsedHeight",void 0);_.y([_.L(),_.D("design:type",Object)],Ig.prototype,"disableToggle",void 0);_.y([_.L(),_.D("design:type",Object)],Ig.prototype,"alwaysToggleable",void 0);_.y([_.L(),_.D("design:type",Object)],Ig.prototype,"reversed",void 0);_.y([_.L(),_.D("design:type",Number)],Ig.prototype,"maxNumberOfLines",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.D("design:type",Object)],Ig.prototype,"shouldUseNumberOfLines",void 0);_.y([_.L(),_.D("design:type",Object)],Ig.prototype,"recomputeOnResize",void 0);_.y([_.AY("#content"),_.D("design:type",HTMLDivElement)],Ig.prototype,"content",void 0);_.y([_.ba("alwaysToggleable"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ig.prototype,"alwaysToggleableChanged",null);
_.y([_.ba("isToggled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ig.prototype,"toggledChanged",null);_.y([_.S("canToggleJobId"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ig.prototype,"isResetting",null);_.y([_.m5("reversed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ig.prototype,"reversedChanged",null);
_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ig.prototype,"onIronResize",null);_.y([_.m5("maxNumberOfLines","collapsedHeight"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ig.prototype,"observeCollapsedHeightAndMaxLines",null);_.y([_.m5("collapsed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ig.prototype,"collapsedChangedForBinding",null);
_.y([_.m5("isToggled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ig.prototype,"isToggledChangedForBinding",null);_.y([_.m5("canToggle"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ig.prototype,"canToggleChangedForBinding",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-expander"})],Ig);
_.h(Ig,"ytd-expander",function(){if($3r!==void 0)return $3r;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $3r=c},{mode:1});var PR=function(){return _.z.apply(this,arguments)||this};
_.K(PR,_.z);PR.prototype.computeIsCarousel=function(c){return!!c.isCarousel};
PR.prototype.observeLightsourcePalette=function(){var c,f=(c=this.data)==null?void 0:c.vibrantsourceColorPaletteData;f&&_.vr(this.hostElement,f)};
PR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
PR.prototype.observeLightsourcePalette=PR.prototype.observeLightsourcePalette;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],PR.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],PR.prototype,"data",void 0);_.y([_.L({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],PR.prototype,"isCarousel",void 0);
_.y([_.m5("data.vibrantsourceColorPaletteData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],PR.prototype,"observeLightsourcePalette",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],PR);
_.h(PR,"ytd-media-upsell-renderer",function(){if(ngy!==void 0)return ngy;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ngy=c},{mode:2});var QUH;var Rg=function(){var c=_.z.apply(this,arguments)||this;c.JSC$14841_playerEvents=new Map;c.listeningToPlayer=!1;c.startX=0;c.active=!1;c.shouldShowButtons=_.F("web_buttons_hidden_killswitch");c.isHighlighted=!1;c.useHighlightStyling=_.F("web_enable_deeper_metadata_highlight_styling");c.modern=_.F("kevlar_modern_sd");c.enableProblemWalkthrough=_.F("problem_walkthrough_sd");return c};
_.K(Rg,_.z);_.r=Rg.prototype;
_.r.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}}}}}};
_.r.created=function(){this.JSC$14841_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.r.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.ia(this,this.onRepeatButtonToggle));_.F("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.ia(this,this.onActiveUpdate))};
_.r.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.ia(this,this.onRepeatButtonToggle));_.F("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.ia(this,this.onActiveUpdate))};
_.r.onDataChanged=function(){this.removePlayerListeners()};
_.r.onColorPaletteChange=function(){var c={},f;if(_.LX()==="USER_INTERFACE_THEME_DARK"&&((f=this.data)==null?0:f.darkColorPalette)){var d=this.data.darkColorPalette;c["--ytd-macro-markers-list-item-background-color"]=_.WS(this.get("section2Color",d))}else{var q;_.LX()==="USER_INTERFACE_THEME_LIGHT"&&((q=this.data)==null?0:q.lightColorPalette)&&(d=this.data.lightColorPalette,c["--ytd-macro-markers-list-item-background-color"]=_.WS(this.get("section3Color",d)))}d?(c["--ytd-macro-markers-list-item-title-color"]=
_.WS(this.get("primaryTitleColor",d)),c["--ytd-macro-markers-list-item-secondary-color"]=_.WS(this.get("secondaryTitleColor",d)),c["--ytd-macro-markers-list-item-timestamp-background-color"]=_.WS(this.get("section1Color",d)),this.customButtonProperties={customColors:{color:_.WS(this.get("primaryTitleColor",d))}},this.useColorSampling=!0):(c["--ytd-macro-markers-list-item-background-color"]="initial",c["--ytd-macro-markers-list-item-title-color"]="initial",c["--ytd-macro-markers-list-item-secondary-color"]=
"initial",c["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.la(this.hostElement,c)};
_.r.onEndpointMouseDown=function(c){this.startX=c.clientX};
_.r.onEndpointClick=function(c){var f=this,d,q,Z;return _.k(function(M){if(M.nextAddress==1){if(f.startX!==c.clientX)return c.preventDefault(),M.return();f.data&&f.ytRendererBehavior.logExplicitClick(f.data);if(!f.seekWithAnimationOnClick)return M.jumpTo(0);if(c.button!==0||c.shiftKey||c.altKey||c.metaKey||c.ctrlKey||_.qY(_.x0(c),f.hostElement,["BUTTON".toString()]))return M.return();c.stopPropagation();c.preventDefault();return f.data?M.yield(_.gy().getPlayerPromise(),3):M.return()}d=M.yieldResult;
Z=(q=_.b(f.data.onTap,_.pe))==null?void 0:q.startTimeSeconds;Z!==void 0&&d.seekToTimeWithAnimation(Z*1E3,_.xC(f.data.title));_.Fm(M)})};
_.r.computeLayout=function(c){return c};
_.r.computeIsHighlighted=function(c){return!!c};
_.r.computeCarouselType=function(c){return c};
_.r.hideModernCarousel=function(c){return this.modern&&this.hideThumbnail(c)};
_.r.hideThumbnail=function(c){return this.enableProblemWalkthrough&&c!==null&&c==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.r.onRepeatButtonToggle=function(c){var f=this;c.detail.toggled&&_.gy().getPlayerPromise().then(function(d){f.ytPlayerListenerBehavior.listenToPlayerEvents(d,f.JSC$14841_playerEvents);f.listeningToPlayer=!0})};
_.r.onLoopRangeChange=function(c){var f=_.r1(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(f){var d=f.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",f.polymerController.data);if(d){var q=Number(d.endTimeMs);if(Number(d.startTimeMs)!==(c==null?void 0:c.startTimeMs)||q!==(c==null?void 0:c.endTimeMs))f.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.r.removePlayerListeners=function(){var c=this;this.listeningToPlayer&&_.gy().getPlayerPromise().then(function(f){c.ytPlayerListenerBehavior.unlistenFromPlayerEvents(f,c.JSC$14841_playerEvents);c.listeningToPlayer=!1})};
_.r.onActiveUpdate=function(c){this.active=c.detail.active};
Rg.prototype.onColorPaletteChange=Rg.prototype.onColorPaletteChange;Rg.prototype.onDataChanged=Rg.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],Rg.prototype,"ytPlayerListenerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Rg.prototype,"data",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],Rg.prototype,"useCustomColors",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Rg.prototype,"active",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Rg.prototype,"shouldShowButtons",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.D("design:type",String)],Rg.prototype,"layout",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.D("design:type",Object)],Rg.prototype,"isHighlighted",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Rg.prototype,"useHighlightStyling",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Rg.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Rg.prototype,"enableProblemWalkthrough",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.D("design:type",String)],Rg.prototype,"carouselType",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Rg.prototype,"useColorSampling",void 0);_.y([_.L(),_.D("design:type",Boolean)],Rg.prototype,"seekWithAnimationOnClick",void 0);_.y([_.L(),_.D("design:type",Object)],Rg.prototype,"customButtonProperties",void 0);
_.y([_.AY("#repeat-button"),_.D("design:type",HTMLElement)],Rg.prototype,"repeatButton",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Rg.prototype,"onDataChanged",null);_.y([_.m5("data.lightColorPalette","data.darkColorPalette"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Rg.prototype,"onColorPaletteChange",null);_.y([_.v({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Rg);
_.h(Rg,"ytd-macro-markers-list-item-renderer",function(){if(QUH!==void 0)return QUH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return QUH=c},{mode:1});var SpF;var L9r;var Uw=function(){var c=_.z.apply(this,arguments)||this;c.modernTypography=_.F("web_modern_typography");return c};
_.K(Uw,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Uw.prototype,"modernTypography",void 0);_.y([_.L(),_.D("design:type",Object)],Uw.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Uw);
_.h(Uw,"ytd-title-and-button-list-header-renderer",function(){if(L9r!==void 0)return L9r;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return L9r=c},{mode:1});var z$T;var Jmr=new _.jk("BUTTON_RENDERER_WIZ_TOKEN"),aS_=new _.jk("BUTTON_RENDERER_TOKEN");_.pd=_.dN(function(c){var f=_.ql().resolve(_.dx(Jmr));if(f)return _.B(f,Object.assign({},c));var d=_.ql().resolve(aS_);return d?_.B(BBr,null,function(){return _.B(GP,null,function(){var q,Z,M,g,O,l,m,H,A,Y,t,E;return void d(c.data(),{onButtonClickCallback:c.onButtonClickCallback,shouldShowIcons:(q=c.shouldShowIcons)==null?void 0:q.call(c),icon:(Z=c.icon)==null?void 0:Z.call(c),processAllEndpoints:(M=c.processAllEndpoints)==null?void 0:M.call(c),preventDefault:(g=c.preventDefault)==null?void 0:g.call(c),
stopPropagation:(O=c.stopPropagation)==null?void 0:O.call(c),disableButtonRendererClickHandling:(l=c.disableButtonRendererClickHandling)==null?void 0:l.call(c),className:(m=c.className)==null?void 0:m.call(c),buttonOverrides:(H=c.buttonOverrides)==null?void 0:H.call(c),forceModernIconButton:(A=c.forceModernIconButton)==null?void 0:A.call(c),isSubscribe:(Y=c.isSubscribe)==null?void 0:Y.call(c),alignByText:(t=c.alignByText)==null?void 0:t.call(c),forceDisabled:(E=c.forceDisabled)==null?void 0:E.call(c)})})}):
_.B(_.qD,null)},"fa");
_.pd.idomCompat=!0;var VpK=_.dN(function(c){var f=c.data,d=_.Ga(c.useSquareAspectRatio,!1);return _.B("dismissed-mini-game-card-view-model",null,_.B(_.T,{cond:function(){var q,Z;return(q=f().responseText)==null?void 0:(Z=q.runs)==null?void 0:Z.length},
then:function(){var q={};return _.B("div",{class:_.FY("yt-mini-game-card-view-model__dismissed-card",(q["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!d()},q["yt-mini-game-card-view-model--dismissed-square-card"]=d,q))},_.B("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.B(_.T,{cond:function(){return f().responseText.runs[0].text},
then:function(Z){return _.B("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Z},Z)}}),_.B(_.u7,{data:function(){return f().buttons}},{buttonRenderer:_.pd,
buttonViewModel:_.mN})))}}))},"ga");var W9H=_.dN(function(c){c=_.ch(c,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var f=c.data,d=c.useFullWidth,q=c.isDesktopWeb,Z=c.addSearchResultTopMargin,M=function(){return f().layout},g=function(){return f().title},O=function(){return f().metadataText?f().metadataText:f().genre},l=function(){return f().channelName},m=function(){return f().image},H=function(){return f().colorPalette},A=function(){return f().actionButton},Y=function(){return f().overflowButton},
t=function(){return f().avatar},E=function(){var W={};
W=_.FY("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(W["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return q()},W));
return _.B("div",{class:W},_.B(X3T,{imageData:m,colorPalette:H}),_.B(uf_,{onTap:function(){return f().onTap},
imageData:m,accessibilityText:function(){return f().accessibilityText},
overlayBadgeText:function(){return f().overlayBadgeText},
iconName:function(){return f().iconName},
unplayableInlinePlaybackIconName:function(){return f().unplayableInlinePlaybackIconName},
isDesktopWeb:q}),_.B(_.T,{cond:function(){return!q()},
then:function(){return _.B(_.qD,null,_.B(vg3,{layout:M,colorPalette:H,isDesktopWeb:q,overflowButton:Y,avatar:t,onTap:function(){return f().onTap},
genre:O,title:g,channelName:l}),_.B(h$T,{actionButton:A}))}}))},J=function(){var W={};
W=_.FY((W["yt-mini-game-card-view-model--search-result-desktop"]=function(){return q()},W["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!q()},W["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Z()},W));
return _.B("div",{class:W},E(),_.B(w3H,{description:function(){return f().description},
isDesktopWeb:q,title:g,genre:O,onTap:function(){return f().onTap},
actionButton:A,overflowButton:Y,avatar:t,channelName:l}))},X=function(){var W={};
W=_.FY("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(W["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return q()},W["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return q()&&f().width===135},W["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return q()},W["yt-mini-game-card-view-model--big-metadata-font"]=function(){return f().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},W["yt-mini-game-card-view-model--use-full-width"]=
function(){return d()},W["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!A()},W));
return _.B("div",{class:W},_.B(ymH,{colorPalette:H,isDesktopWeb:q,onTap:function(){return f().onTap},
accessibilityText:function(){return f().accessibilityText},
overlayBadgeText:function(){return f().overlayBadgeText},
iconName:function(){return f().iconName},
unplayableInlinePlaybackIconName:function(){return f().unplayableInlinePlaybackIconName},
actionButton:A,imageData:m}),_.B(vg3,{layout:M,colorPalette:H,isDesktopWeb:q,overflowButton:Y,avatar:t,onTap:function(){return f().onTap},
genre:O,title:g,channelName:l}))},u=function(){var W={};
W=_.FY("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(W["yt-mini-game-card-view-model--square-card-desktop"]=function(){return q()},W["yt-mini-game-card-view-model--use-full-width"]=function(){return d()},W));
return _.B("div",{class:W},_.B(uf_,{onTap:function(){return f().onTap},
imageData:m,accessibilityText:function(){return f().accessibilityText},
overlayBadgeText:function(){return f().overlayBadgeText},
iconName:function(){return f().iconName},
unplayableInlinePlaybackIconName:function(){return f().unplayableInlinePlaybackIconName},
isDesktopWeb:q}),_.B(vg3,{layout:M,colorPalette:H,isDesktopWeb:q,overflowButton:Y,avatar:t,onTap:function(){return f().onTap},
genre:O,title:g,channelName:l}))};
return _.B("mini-game-card-view-model",{class:c.className},_.B(_.n9,null,_.B(_.K9,{when:function(){return M()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return X()}),_.B(_.K9,{when:function(){return M()==="MINI_APP_LAYOUT_SQUARE"}},function(){return u()}),_.B(_.K9,{when:function(){return M()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return J()})))},"ha");
W9H.idomCompat=!0;var h$T=_.dN(function(c){var f=_.Ga(c.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.B(_.u7,{data:c.actionButton},{buttonViewModel:function(d){return _.B("div",{class:f},_.B(_.mN,{data:d.data}))}})},"ia"),uf_=_.dN(function(c){var f=c.onTap;
var d=c.imageData;var q=c.accessibilityText;var Z=c.overlayBadgeText;var M=c.iconName;var g=c.unplayableInlinePlaybackIconName;c=c.isDesktopWeb;return _.B(_.Re,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:f},_.B(_.jC,{data:d,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(q==null?void 0:q())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.B(D3O,{overlayBadgeText:Z,iconName:M,unplayableInlinePlaybackIconName:g,isDesktopWeb:c}))},"ja"),D3O=_.dN(function(c){var f=c.overlayBadgeText;
var d=c.iconName;var q=c.unplayableInlinePlaybackIconName;var Z=c.isDesktopWeb;return _.B("div",{class:"yt-mini-game-card-view-model__badge-container"},_.B(_.T,{cond:d,then:function(M){return _.B("div",{class:"yt-mini-game-card-view-model__badge"},_.B("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.B(_.Qy,{icon:M,className:"yt-mini-game-card-view-model__icon",size:12}),_.B("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},f)))}}),_.B(_.T,{cond:function(){return!d()&&
f()},
then:function(){return _.B("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},f)}}),_.B(_.T,{cond:function(){return q()&&Z()},
then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.B(_.Qy,{icon:q,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ka"),X3T=_.dN(function(c){var f=c.colorPalette;
var d=c.imageData;var q=function(){return f().vibrantColorPalette?f().vibrantColorPalette.section2Color:f().sectionTwoColor};
return _.B(_.qD,null,_.B("div",{class:"yt-mini-game-card-view-model__background-base",style:_.$Z({"background-color":function(){return Dm(q(),"1")}})}),_.B("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.$Z({"background-image":function(){return"url("+d().sources[0].url+")"}})}),_.B("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.$Z({background:function(){return"linear-gradient(180deg,\n    "+Dm(q(),".8")+" 0%,\n    "+Dm(q(),".4")+" 25%,\n    "+Dm(f().vibrantColorPalette?f().vibrantColorPalette.section4Color:f().sectionFourColor,".8")+" 100%)"}})}))},"la"),vg3=_.dN(function(c){var f=c.layout;
var d=c.colorPalette;var q=c.overflowButton;var Z=c.avatar;var M=c.onTap;var g=c.title;var O=c.channelName;var l=c.genre;var m=function(){var H;return f()!=="MINI_APP_LAYOUT_SQUARE"&&((H=d())==null?0:H.textPrimaryColor)?"color: "+Dm(d().textPrimaryColor,".7"):""};
return _.B("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.B(_.T,{cond:Z,then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__avatar"},_.B(_.u7,{data:Z},{avatarViewModel:_.ag}))}}),_.B(_.Re,{command:M,
className:"yt-mini-game-card-view-model__metadata-details"},_.B("h3",{class:"yt-mini-game-card-view-model__title",title:g},g),_.B(_.T,{cond:Z,then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.B("span",{class:"yt-mini-game-card-view-model__genre",title:O,style:m},O),_.B("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:m},l))},
else:function(){return _.B("span",{class:"yt-mini-game-card-view-model__genre",title:l},l)}})),_.B("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.B(_.u7,{data:q},{buttonViewModel:function(H){var A=H.data;
return _.B(_.mN,{data:function(){return Object.assign({},A(),{customFontColor:f()==="MINI_APP_LAYOUT_SINGLETON"?A().customFontColor:void 0})}})}})))},"ma"),ymH=_.dN(function(c){var f=c.colorPalette;
var d=c.isDesktopWeb;var q=c.onTap;var Z=c.accessibilityText;var M=c.overlayBadgeText;var g=c.iconName;var O=c.unplayableInlinePlaybackIconName;var l=c.actionButton;c=c.imageData;return _.B("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.B(X3T,{imageData:c,colorPalette:f}),_.B(uf_,{onTap:q,imageData:c,accessibilityText:Z,overlayBadgeText:M,iconName:g,unplayableInlinePlaybackIconName:O,isDesktopWeb:d}),_.B(_.T,{cond:function(){return l==null?void 0:l()},
then:function(){return _.B(h$T,{actionButton:l})}}))},"na"),w3H=_.dN(function(c){var f=c.description;
var d=c.isDesktopWeb;var q=c.title;var Z=c.genre;var M=c.onTap;var g=c.actionButton;var O=c.overflowButton;var l=c.avatar;c=c.channelName;var m={};m=_.FY("yt-mini-game-card-view-model--search-result-metadata-wrapper",(m["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=d,m["yt-mini-game-card-view-model--show-unplayable-on-hover"]=d,m["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!d()},m));
var H={};H=_.FY("yt-mini-game-card-view-model__search-result-info-row",(H["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!d()},H));
return _.B("div",{class:m},_.B("div",{class:H},_.B(_.Re,{command:M,className:"yt-mini-game-card-view-model__metadata-details"},_.B("h3",{class:"yt-mini-game-card-view-model__title",title:q},q),_.B("span",{class:"yt-mini-game-card-view-model__genre",title:Z},Z)),_.B(h$T,{actionButton:g,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.B("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.B(_.u7,{data:O},{buttonViewModel:_.mN}))),_.B("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.B("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.B("div",{class:"yt-mini-game-card-view-model__avatar"},_.B(_.u7,{data:l},{avatarViewModel:function(A){var Y=A.data;return _.B(_.ag,{data:function(){return Object.assign({},Y(),{avatarImageSize:d()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.B(_.Re,{command:M,
className:"yt-mini-game-card-view-model__description"},_.B("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},c)),_.B(_.Re,{command:M,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.B("div",null)))),_.B(_.T,{cond:d,then:function(){return _.B(_.Re,{command:M,className:"yt-mini-game-card-view-model__description"},f)}}))},"oa");_.g_(W9H,"mini-game-card-view-model",{props:{data:_.oM,className:_.oM,useFullWidth:_.oM,isDesktopWeb:_.oM,addSearchResultTopMargin:_.oM}});_.g_(VpK,"dismissed-mini-game-card-view-model",{props:{data:_.oM,useSquareAspectRatio:_.oM}});var xe=function(){var c=_.z.apply(this,arguments)||this;c.isSearch=!1;c.isRichGrid=!1;return c};
_.K(xe,_.z);_.r=xe.prototype;_.r.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.r.dismissibleItemOnYtServiceRequestSent=function(c,f){f.actions&&this.dismissibleItemProcessActions(c,f.actions)};
_.r.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.r.dataChanged=function(){this.dismissibleItemReset()};
_.r.dismissibleItemProcessActions=function(c,f){for(var d=0;d<f.length;d++){var q=f[d];_.b(q,_.nz)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.b(q,_.nz)),c.stopPropagation())}};
_.r.dismissibleItemHandleReplaceEnclosingAction=function(c){this.dismissedRenderer=c.item;this.isDismissed=!0};
_.ci.Object.defineProperties(xe.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var c;return!!this.data&&!((c=this.dismissedRenderer)==null?0:c.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.dismissedRenderer)==null||!c.notificationMultiActionRenderer)}}});
xe.prototype.dataChanged=xe.prototype.dataChanged;xe.prototype.dismissibleItemOnRequestSent=xe.prototype.dismissibleItemOnRequestSent;xe.prototype.dismissibleItemOnYtServiceRequestSent=xe.prototype.dismissibleItemOnYtServiceRequestSent;_.y([_.L(),_.D("design:type",Object)],xe.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xe.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],xe.prototype,"isDismissed",void 0);
_.y([_.L(),_.D("design:type",Object)],xe.prototype,"dismissedRenderer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xe.prototype,"isRichGrid",void 0);_.y([_.S("data.layout"),_.D("design:type",Object),_.D("design:paramtypes",[])],xe.prototype,"useSquareAspectRatio",null);_.y([_.S("data","dismissedRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],xe.prototype,"showCard",null);
_.y([_.S("data","dismissedRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],xe.prototype,"showDismissed",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],xe.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.y([_.Ta("yt-service-request-sent-button-renderer"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],xe.prototype,"dismissibleItemOnRequestSent",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xe.prototype,"dataChanged",null);_.y([_.vj({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],xe);
_.h(xe,"ytd-mini-game-card-view-model",function(){if(z$T!==void 0)return z$T;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return z$T=c},{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var e$r;var NXy;var og=function(){return _.fe.apply(this,arguments)||this};
_.K(og,_.fe);og.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
og.prototype.getContinuationUrl=function(c){var f={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(f.itct=this.data.clickTrackingParams);return _.p9(c,f)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],og.prototype,"data",void 0);_.y([_.vj({is:"yt-reload-continuation",noInjection:!0})],og);var IS_;var PRv;var Gn=function(){var c=_.z.apply(this,arguments)||this;c.notificationData={};return c};
_.K(Gn,_.z);_.r=Gn.prototype;_.r.isMenuExpanded=function(c){return c&&c.length<=1?"undefined":"false"};
_.r.dataChanged_=function(){this.selected=void 0;var c=this.computeSelectedIndex_(this.data);c>=0&&(this.selected=c);c=this.data&&this.data.length>1;_.g1(this.hostElement,"has-items",c);_.r1(this.hostElement).querySelector("#label").tabIndex=c?0:-1};
_.r.onDropdownOpen=function(){var c=_.X2();if(this.parentTrackingParams&&this.data){var f=_.Q1(this.parentTrackingParams);this.data.forEach(function(d){c&&f&&d.trackingParams&&(d=_.Q1(d.trackingParams),_.Dr(c,f,d),_.Ic(c,[d]))})}else this.parentTrackingParams||_.u6(new _.KD("No parent tracking params passed in for yt-dropdown-menu."))};
_.r.hasNotification=function(c){var f;if(c.targetId&&((f=this.notificationData)==null?0:f.targetId)){var d;return c.targetId===((d=this.notificationData)==null?void 0:d.targetId)}};
_.r.computeSelectedIndex_=function(c){if(c)for(var f=0,d=c.length;f<d;f++)if(c[f].selected)return f;return-1};
_.r.computeLabel_=function(c){return this.data&&c!=void 0?this.data[c].title:""};
_.r.computeShowIcon_=function(c,f){return!f&&!!c};
_.r.computeVerticalOffset_=function(c){return c?36:0};
_.r.computeEndpoint_=function(c){return c.endpoint||c.navigationEndpoint};
_.r.onLabelClick_=function(c){this.data&&this.data.length<=1?c.stopPropagation():this.menuExpanded="true"};
_.r.onIronActivate_=function(c){c=c.detail.item;var f=_.r1(this.hostElement).querySelector("#repeat").itemForElement(c);if(f&&f.trackingParams){var d=_.X2(),q=_.Q1(f.trackingParams);d&&_.Rc(d,q)}if(f&&f.serviceEndpoint)_.F("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(f.serviceEndpoint):_.OX(this.hostElement,[f.serviceEndpoint]),_.CZ(this.hostElement,"yt-playlist-reloading");else a:{if((f=c.querySelector("yt-supported-renderers"))&&
(f=f.rendererElement)&&f.is=="yt-reload-continuation"){f.trigger();break a}(c=c.querySelector("yt-reload-continuation"))&&c.trigger()}};
_.r.onTap_=function(c){c.preventDefault()};
_.r.onItemTap_=function(c){this.ytEndpointBehavior.onEndpointTap_(c)};
_.r.onLinkFocus_=function(c){try{var f=c.target}catch(q){}if(f){var d=f.querySelector("tp-yt-paper-item");d&&_.Ia(this,"focus",function(){d.focus()})}};
_.r.onMenuClose_=function(){this.menuExpanded="false"};
_.r.isLabelIconActive_=function(c){return c==="true"};
_.r.computeHasSubtitle_=function(c){return!!c};
_.r.computeHrefForItem_=function(c){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(c))};
_.r.updateSelectedFromBinding=function(c){this.selected=c.detail.value};
_.ci.Object.defineProperties(Gn.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Gn.prototype.onMenuClose_=Gn.prototype.onMenuClose_;Gn.prototype.onTap_=Gn.prototype.onTap_;Gn.prototype.onIronActivate_=Gn.prototype.onIronActivate_;Gn.prototype.onDropdownOpen=Gn.prototype.onDropdownOpen;Gn.prototype.dataChanged_=Gn.prototype.dataChanged_;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Gn.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.F4.YtEndpointBehavior),_.D("design:type",Object)],Gn.prototype,"ytEndpointBehavior",void 0);
_.y([_.L(),_.D("design:type",Array)],Gn.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Gn.prototype,"parentTrackingParams",void 0);_.y([_.L(),_.D("design:type",Object)],Gn.prototype,"selected",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Gn.prototype,"useLabel",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Gn.prototype,"useComputedAriaLabel",void 0);_.y([_.L(),_.D("design:type",String)],Gn.prototype,"icon",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Gn.prototype,"iconLabel",void 0);_.y([_.L(),_.D("design:type",String)],Gn.prototype,"ariaLabel",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],Gn.prototype,"disabled",void 0);_.y([_.L({computed:"isMenuExpanded(data)"}),_.D("design:type",String)],Gn.prototype,"menuExpanded",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Gn.prototype,"closeOnActivate",void 0);
_.y([_.L({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.D("design:type",Boolean)],Gn.prototype,"modernButtons",void 0);_.y([_.L(),_.D("design:type",Object)],Gn.prototype,"notificationData",void 0);_.y([_.S("ariaLabel, selected"),_.L(),_.D("design:type",String),_.D("design:paramtypes",[])],Gn.prototype,"computedAriaLabel",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Gn.prototype,"dataChanged_",null);
_.y([_.Ta("paper-dropdown-open"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Gn.prototype,"onDropdownOpen",null);_.y([_.Ta("iron-activate"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Gn.prototype,"onIronActivate_",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Gn.prototype,"onTap_",null);
_.y([_.Ta("iron-overlay-closed"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Gn.prototype,"onMenuClose_",null);_.y([_.vj({is:"yt-dropdown-menu",disableElementRegistration:!0})],Gn);
_.h(Gn,"yt-dropdown-menu",function(){if(PRv===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;IS_===void 0&&(IS_=document.createElement("template"));var q=IS_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);PRv=c}c=PRv;return c},{mode:2});var cX=function(){var c=_.z.apply(this,arguments)||this;c.hasNotification=!1;return c};
_.K(cX,_.z);cX.prototype.computeId=function(c){return c};
cX.prototype.computeHorizontalAlign=function(c){return c?"right":"left"};
cX.prototype.computeAccessibilityLabel=function(c){var f,d;return((f=c.accessibility)==null?void 0:(d=f.accessibilityData)==null?void 0:d.label)||null};
cX.prototype.notificationDataChanged=function(){var c;this.hasNotification=!!this.notificationData&&!((c=this.data)==null?0:c.icon)};
cX.prototype.notificationDataChanged=cX.prototype.notificationDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.e3.YtLiveChatTooltipTargetingBehavior),_.D("design:type",Object)],cX.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],cX.prototype,"data",void 0);_.y([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.D("design:type",String)],cX.prototype,"id",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],cX.prototype,"isRightAligned",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],cX.prototype,"disabled",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],cX.prototype,"closeOnActivate",void 0);_.y([_.L(),_.D("design:type",Object)],cX.prototype,"notificationData",void 0);_.y([_.L(),_.D("design:type",Object)],cX.prototype,"hasNotification",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],cX.prototype,"useComputedAriaLabel",void 0);_.y([_.m5("notificationData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],cX.prototype,"notificationDataChanged",null);_.y([_.vj({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],cX);
_.h(cX,"yt-sort-filter-sub-menu-renderer",function(){if(NXy===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;e$r===void 0&&(e$r=document.createElement("template"));var q=e$r;d.call(f,q.content.cloneNode(!0),c.content.firstChild);NXy=c}c=NXy;return c},{mode:2});var R$K=_.bS(L9e);_.ZB(L9e);_.g_(R$K,"place-data-view-model",{props:{data:_.oM}});var U3j=new _.jk("INLINE_PLAYBACK_HOOK_TOKEN");var p3_=function(c){this.setActiveSlideIndex=c;this.jobIds=[];this.isSlideshowPlaying=!1},GBv=function(c,f){c.isSlideshowPlaying||(c.isSlideshowPlaying=!0,x3v(c),og_(c,f,0))},x3v=function(c){_.Br(_.a7,function(){c.setActiveSlideIndex(0)},1)},og_=function(c,f,d){c.jobIds.push(_.Br(_.a7,function(){var q=d<f-1?d+1:0;
c.setActiveSlideIndex(q);og_(c,f,q)},1800))};var cVo=new _.jk("IMAGE_ON_LOAD_HANDLER_TOKEN");var fC3=_.dN(function(c){return _.B("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.B(_.T,{cond:function(){var f;return(f=c.data())==null?void 0:f.thumbnail},
then:function(f){return _.B(_.jC,{data:f,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"pa");_.d83=_.dN(function(c){var f=c.data;var d=c.lockupExperiments;c={};return _.B("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.B("div",{class:_.FY("ytThumbnailOverlayButtonViewModelButton",(c.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var q;return d&&((q=d())==null?void 0:q.useLegacySizedIconButton)},c))},_.B(_.u7,{data:function(){return f().overlayButton}},{buttonViewModel:function(q){return _.B(_.mN,{data:q.data,
buttonOverrides:function(){var Z;return d&&((Z=d())==null?0:Z.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0}:void 0}})}})))},"qa");
_.d83.idomCompat=!0;var jiu=_.dN(function(c){return _.B("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Ks(function(f){f.preventDefault();return!1})},_.B(_.u7,{data:function(){return c.data().buttons}},{toggleButtonViewModel:function(f){return _.B("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.B(_.JL,{data:f.data}))}}))},"ra");
jiu.idomCompat=!0;var qg3=_.dN(function(c){var f=function(){var d;return((d=_.b(c.data().rendererContext,_.Kz))==null?void 0:d.label)||""};
return _.B("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.B(_.T,{cond:function(){return c.data().image},
then:function(){return _.B("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.B(_.jC,{data:function(){return c.data().image},
alt:f}))}}),_.B(_.T,{cond:function(){return c.data().text},
then:function(){return _.B("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return c.data().text})}}))},"sa");_.fQ=_.dN(function(c){var f=[],d=function(){var Y,t;return Ume((Y=c.width)==null?void 0:Y.call(c),(t=c.height)==null?void 0:t.call(c))},q=_.ql().resolve(_.dx(cVo)),Z=_.xz("yt-thumbnail-view-model",function(){f.push("elRef.value set");
var Y;(Y=c.playbackRef)==null||Y.call(c,{thumbnailElRef:Z,thumbnail:c.data().image,thumbnailOverlays:c.data().overlays,thumbnailSize:d()})});
_.L9(function(){f.push("onInit");_.Q4(function(){f.push("onCleanup")})});
var M=_.N5(Jme),g=function(){var Y,t;return(t=(Y=c.aspectRatio)==null?void 0:Y.call(c))!=null?t:0},O=function(){return(c.data().image?_.sCk(c.data().image):g())<=1&&g()===0},l=function(){return O()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},m=function(){Z.value||_.u6(new _.KD("Thumbnail elRef.value is null",f.join("\n")));
q&&Z.value&&q(Z.value)},H=function(){var Y,t;
return((Y=c.hovered)==null?void 0:Y.call(c))&&d()!=="large"&&((t=c.data().overlays)==null?void 0:t.some(function(E){return _.b(E,PK_)}))},A={};
return _.B("yt-thumbnail-view-model",{class:_.FY("yt-thumbnail-view-model",c.className,function(){return X3h(g())},function(){var Y,t;
a:{var E=d(),J=(Y=c.disableRounding)==null?void 0:Y.call(c);Y=(t=c.isClip)==null?void 0:t.call(c);if(!J&&!Y)switch(E){case "large":t="yt-thumbnail-view-model--large";break a;case "small":t="yt-thumbnail-view-model--small";break a;default:t="yt-thumbnail-view-model--medium";break a}t=void 0}return t},(A["yt-thumbnail-view-model--cinematic"]=O,A)),
style:_.$Z({"background-color":function(){var Y,t=O()?(Y=c.data().backgroundColor)==null?void 0:Y.lightTheme:void 0;return t?Dm(t,"1"):void 0}}),
el:Z},_.B(_.T,{cond:O,then:function(){return _.B("div",{class:"yt-thumbnail-view-model__blurred-image"},_.B(_.jC,{data:function(){return c.data().image},
alt:"",contentMode:l,targetWidth:c.width,onload:m}))}}),_.B("div",{class:"yt-thumbnail-view-model__image"},_.B(_.jC,{data:function(){return c.data().image},
alt:"",contentMode:l,targetWidth:c.width,onload:m}),null),_.B(_.u7,{data:function(){return H()?void 0:c.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:lS3,thumbnailOverlayBadgeViewModel:function(Y){return _.B(sUT,{data:Y.data,thumbnailSize:d,isClip:c.isClip})},
thumbnailBottomOverlayViewModel:function(Y){return _.B(CR3,{data:Y.data,thumbnailSize:d,isClip:c.isClip})},
thumbnailOverlayFullViewModel:qg3,thumbnailOverlayButtonViewModel:function(Y){return _.B(_.d83,{data:Y.data,lockupExperiments:c.lockupExperiments})}}),_.B(_.u7,{data:function(){var Y;
return((Y=c.hovered)==null?0:Y.call(c))?c.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(Y){return _.B(J6,{data:Y.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:jiu}),_.B(_.u7,{data:function(){var Y;return((Y=c.hovered)==null?0:Y.call(c))&&M()?c.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:fC3}),_.B(_.T,{cond:c.isClip,then:function(){return _.B("div",{class:"yt-pinking"},_.B("svg",{class:"yt-pinking__pinking-left"},_.B("defs",null,_.B("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.B("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.B("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.B("svg",{class:"yt-pinking__pinking-right"},_.B("defs",null,_.B("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.B("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.B("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ta");
_.fQ.idomCompat={callbacks:{playbackRef:!0}};var Z7u=_.dN(function(c){var f=_.C(_.OT(-1,void 0,"IOLZ0b")),d=f.next().value,q=f.next().value;_.L9(function(){var Z=new p3_(q);GBv(Z,c.data().thumbnails.length);_.Q4(function(){if(Z.isSlideshowPlaying){Z.isSlideshowPlaying=!1;for(var M=Z.jobIds,g=0,O=M.length;g<O;g++)_.a7.cancelJob(M[g]);Z.jobIds.length=0}})});
return _.B("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.B(_.u7,{data:function(){return c.data().thumbnails}},{thumbnailViewModel:function(Z,M){return _.B("div",{class:function(){var g=!c.data().primaryThumbnail,O=M(),l=d(),m=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
g&&O===0&&m.push("yt-collection-thumbnail-slideshow--first-slide");O<=l&&m.push("yt-collection-thumbnail-slideshow--show-slide");return m.join(" ")}},_.B(_.fQ,{data:Z.data,
disableRounding:c.disableRounding}))}}))},"ua");
Z7u.idomCompat=!0;var ufG=new _.jk("DWELL_DETECTOR_REGISTRY_TOKEN");var rV3=_.dN(function(c){var f=vgC(c.triggeringElement),d=function(){return!!c.data().primaryThumbnail},q=function(){var M,g=(M=c.data())==null?void 0:M.maxHeight,O;
M=(O=c.maxHeight)==null?void 0:O.call(c);return g!=null&&M!=null?Math.min(g,M):M!=null?M:g},Z=function(){var M=q();
if(M){var g;if(d()&&(g=c.includeStackHeight)!=null&&g.call(c)){var O;g=((O=c.doubleStack)==null?0:O.call(c))?8:4}else g=0;M=M-g-1;if(!(M<0)){O=Math;g=O.ceil;var l,m;var H=Rbe((m=(l=c.aspectRatio)==null?void 0:l.call(c))!=null?m:0);return g.call(O,M*H)}}};
return _.B("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.$Z({height:function(){return q()?q()+"px":void 0},
width:function(){return Z()?Z()+"px":void 0}})},_.B(M9v,{stackEnabled:d,
thumbnailSize:function(){var M,g;return Ume((M=c.width)==null?void 0:M.call(c),(g=c.height)==null?void 0:g.call(c))},
doubleStack:c.doubleStack,stackColor:function(){return c.data().stackColor},
includeStackHeight:c.includeStackHeight},_.B(_.u7,{data:function(){return c.data().primaryThumbnail}},{thumbnailViewModel:function(M){var g={};
return _.B(_.fQ,{data:M.data,width:c.width,height:c.height,aspectRatio:c.aspectRatio,disableRounding:c.disableRounding,className:_.FY((g["yt-collection-thumbnail-view-model--has-stacks"]=d,g)),hovered:c.hovered,playbackRef:c.playbackRef})}}),_.B(_.T,{cond:function(){var M;
return f()&&((M=c.data().thumbnails)==null?void 0:M.length)},
then:function(){return _.B("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.B(Z7u,{data:c.data,disableRounding:function(){return!d()}}))}})))},"va");
rV3.idomCompat={callbacks:{playbackRef:!0}};
var M9v=_.dN(function(c){var f=c.children;var d=c.stackEnabled;var q=c.thumbnailSize;var Z=c.doubleStack;var M=c.stackColor;var g=c.includeStackHeight;var O,l=(O=_.ql().resolve(_.dx(_.of)))==null?void 0:O();return _.B(_.T,{cond:d,then:function(){return _.B(v7u,{data:function(){var m,H;return{experimentEnabled:!0,thumbnailSize:q(),doubleStack:Z==null?void 0:Z(),color:l?M==null?void 0:(m=M())==null?void 0:m.darkTheme:M==null?void 0:(H=M())==null?void 0:H.lightTheme,enableResponsiveMode:!1,includeStackHeight:g==
null?void 0:g()}}},f)},
else:function(){return f}})},"wa");var C_O=new _.jk("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var jz;_.dA={calledOnce:!0,state:"visible"};jz={calledOnce:!0,state:"hidden"};_.qg=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;var q=c.className;var Z=c.delayedClassName;var M=c.animationEntityKey;var g=c.isCompactWidth;c=_.C(_.OT(!1,void 0,"aSkCmb"));var O=c.next().value,l=c.next().value,m=_.Ga(M,""),H=_.Ka(znr,m),A=function(){var tP,EC;return(EC=(tP=H())==null?void 0:tP.value)!=null?EC:!1},Y=function(){_.oa(_.ER("booleanEntity",m(),{key:m(),
value:!0}));N=void 0};
M=_.C(_.ns(A));var t=M.next().value,E=M.next().value;M=_.C(_.ns(A));var J=M.next().value,X=M.next().value;M=_.C(_.ns(function(){var tP;return A()?(tP=f().styleTransitionConfig)==null?void 0:tP.destinationStyle:void 0}));
var u=M.next().value,W=M.next().value,p=function(){var tP=Object.assign({},f(),u()&&{style:u()});var EC,AP,eM=tP.label,ue=(EC=tP.interaction)==null?void 0:(AP=EC.accessibility)==null?void 0:AP.label;EC=tP.iconImage?tP.label&&tP.label.content?tP.iconLeading?"leading":"trailing":"icon-only":void 0;tP={formattedButtonText:eM,accessibilityLabel:ue,style:W9N(tP.style),type:D34(tP.style),state:"active",size:ymN(tP.size),iconPosition:EC,disabled:!1,aTagConfig:w3N(tP,d)};_.F("enable_desktop_vdcbg_components")&&
(tP.focused=O());return tP},N;
M=_.qd({visibilityCallback:function(tP){var EC,AP=(EC=f().interaction)==null?void 0:EC.onFirstVisible;tP&&AP&&_.Ph(AP)},
showOption:_.dA});var I=function(){return SC(p(),!!f().iconImage)};
c={};q=_.FY(function(){return"ytwAdButtonViewModelHost"},function(){return f().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var tP=!!f().delayedAppearanceConfig,EC=t();
return tP?EC?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var tP=!!f().delayedAppearanceConfig,EC=J();
return tP?EC?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!f().delayedAppearanceConfig||t()?Z==null?void 0:Z():""},(c.ytwAdButtonViewModelHostCompactWidth=function(){return g==null?void 0:g()},c),q!=null?q:"");
var R=function(){var tP,EC=(tP=f().delayedAppearanceConfig)==null?void 0:tP.delayedInvisibleSeconds;EC&&(N=_.QH(_.a7,function(){E(!0);qN()},EC*1E3))},qN=function(){var tP,EC=(tP=f().delayedAppearanceConfig)==null?void 0:tP.delayedVisibleSeconds;
EC&&(N=_.QH(_.a7,function(){X(!0);kl()},EC*1E3))},kl=function(){var tP,EC=(tP=f().styleTransitionConfig)==null?void 0:tP.styleTransitionSeconds,AP,eM=(AP=f().styleTransitionConfig)==null?void 0:AP.destinationStyle;
EC&&eM?N=_.QH(_.a7,function(){W(eM);Y()},EC*1E3):Y()},BN=function(){var tP;
return(tP=f().delayedAppearanceConfig)==null?void 0:tP.transitionDurationSeconds};
_.L9(function(){R()});
_.Q4(function(){N&&_.a7.cancelJob(N)});
return _.B("ad-button-view-model",{"on:focusin":_.Ks(_.F("enable_desktop_vdcbg_components")?function(){var tP=_.ql().resolve(_.dx(_.lw));tP&&l(tP.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Ks(_.F("enable_desktop_vdcbg_components")?function(){l(!1);return!1}:void 0),
class:q,el:_.Z7(M),style:_.$Z({"transition-duration":function(){return BN()?BN()+"s":void 0}})},_.B(_.T,{cond:p,
then:function(){return _.B(_.iw,{data:p,icon:function(){return _.B(_.T,{cond:function(){return f().iconImage},
then:function(tP){return _.B(_.jC,{data:tP,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"xa");var gNo=_.dN(function(c){var f=c.data;c=_.qd({visibilityCallback:function(q){var Z,M=(Z=f().interaction)==null?void 0:Z.onFirstVisible;q&&M&&_.Ph(M)},
showOption:_.dA});var d={};return _.B("ad-button-group-view-model",{class:_.FY("ytwAdButtonGroupViewModelHost",(d.ytwAdButtonGroupViewModelHostCompactWidth=function(){return f().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},d)),
el:_.Z7(c)},_.B("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.B(_.u7,{data:function(){return f().secondaryAdButton}},{adButtonViewModel:function(q){return _.B(_.qg,{data:q.data})}})),_.B("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.B(_.u7,{data:function(){return f().primaryAdButton}},{adButtonViewModel:function(q){return _.B(_.qg,{data:q.data})}})))},"ya");var ksH=_.dN(function(c){var f=function(){var d;return((d=c.data())==null?void 0:d.answers)||[]};
return _.B("yt-survey-icons",{class:"ytSurveyIconsHost"},_.B("div",{class:"ytSurveyIconsHeader"},_.B("div",{class:"ytSurveyIconsTitle"},function(){var d;return(d=c.data())==null?void 0:d.text}),_.B("div",null,_.B(_.iw,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var d;(d=c.onDismiss)==null||d.call(c)}}},
iconName:"DISMISSAL"}))),_.B("div",null,_.B("div",{class:"ytSurveyIconsAnswers"},_.B(_.bd,{each:function(){return f()},
keyBy:"INDEX"},function(d,q){return _.B("div",null,_.B(_.iw,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Z;(Z=c.onSelect)==null||Z.call(c,d(),q)}}},
icon:function(){return _.B(_.Qy,{icon:function(){var Z,M;return(Z=d())==null?void 0:(M=Z.icon)==null?void 0:M.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.B("div",{class:"ytSurveyIconsAnswersText"},_.B("div",null,function(){return f().length?f()[0].text:""}),_.B("div",null,function(){return f().length?f()[f().length-1].text:""}))))},"za");var O7O=_.dN(function(c){var f=_.Z7(_.NY(function(){var l;return(l=c.data())==null?void 0:l.rendererContext},void 0,void 0,void 0,!0)),d=_.C(_.OT(!1,void 0,"YxWRNc")),q=d.next().value,Z=d.next().value,M=_.Ka(Sfn,function(){var l;
return(l=c.data().keys)==null?void 0:l.surveyEntityKey}),g=_.Ka(LyP,function(){var l;
return(l=c.data().keys)==null?void 0:l.surveyStateEntityKey});
_.pW("ytd-slimline-survey-show-action",function(){Z(!1)});
var O=function(){var l,m;var H=(l=g())==null?void 0:(m=l.questionStack)==null?void 0:m[0];if(H!==void 0){var A,Y;return(A=M())==null?void 0:(Y=A.questions)==null?void 0:Y[H]}};
d={};return _.B("yt-slimline-survey-view-model",{el:f,class:_.FY("ytSlimlineSurveyViewModelHost",(d.ytSlimlineSurveyViewModelCollapsed=function(){return q()},d))},_.B("div",{class:"ytSlimlineSurveyViewModelContainer"},_.B(_.T,{cond:function(){var l;
return((l=O())==null?void 0:l.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.B(ksH,{data:function(){return O()},
onSelect:function(l,m){var H,A;return _.k(function(Y){Z(!0);if(A=(H=c.data())==null?void 0:H.onSelectRating)_.Ph(A),_.oa(sF_(m));_.Fm(Y)})},
onDismiss:function(){Z(!0);var l;var m=(l=M())==null?void 0:l.dismissalFeedbackToken;l=m?{feedbackEndpoint:{feedbackToken:m}}:void 0;l&&_.eq(l,{form:{element:f.value}})}})}})))},"Aa");var lCu=_.dN(function(c){return _.B("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.B(_.u7,{data:function(){var f;return(f=c.data())==null?void 0:f.attachments}},{flexibleActionsViewModel:function(f){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(GmF,{data:f.data,
layout:function(){var d;return((d=c.lockupStyle())==null?void 0:d.arrangement)===1?0:1},
justifyContentOverride:function(){var d;return((d=c.lockupStyle())==null?void 0:d.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(f){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(O7O,{data:f.data}))},
expandableMetadataViewModel:function(f){f=f.data;var d;return _.B("div",{class:_.FY("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(d=_.ql().resolve(_.dx(C_O)))==null?void 0:d({data:f}))},
adButtonGroupViewModel:function(f){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(gNo,{data:f.data}))},
adButtonViewModel:function(f){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(_.qg,{data:f.data,isCompactWidth:!0}))}}))},"Ba");var U3r=_.rx("rich_grid_min_item_width",310),PRY=_.rx("rich_grid_max_item_width",500);var sio=_.dN(function(c){var f=c.data;return _.B("br-nz-badge-shape",{class:_.FY(function(){return jiM(f().brNzRatingBadgeType)}),
role:function(){return f().accessibilityText?"img":void 0},
"aria-label":function(){return f().accessibilityText}},function(){var d;
return(d=f())==null?void 0:d.text})},"Ca");_.rA=_.dN(function(c){var f=function(){var d=c.data(),q,Z;if(d){var M=!((q=c.workaroundShortsIsThumbnailBadge)==null||!q.call(c));q=(Z=c.modern)==null?void 0:Z.call(c);a:switch(d.badgeStyle){case "BADGE_OVERLAY":Z=!0;break a;default:Z=!1}d={type:M?17:qgC(d.badgeStyle),brNzRatingBadgeType:Z7M(d.badgeStyle),text:d.badgeText,icon:d.iconName,isOverlay:Z,modern:q||_.F("web_modern_badge_view_model"),accessibilityText:d.accessibilityLabel}}else d=void 0;return d};
return _.B("yt-badge-view-model",{class:_.FY("yt-badge-view-model-wiz",c.class)},_.B(_.n9,null,_.B(_.K9,{when:function(){var d;return!((d=f())==null||!d.brNzRatingBadgeType)}},function(){return _.B(sio,{data:function(){return f()}})}),_.B(_.K9,{when:function(){return!!f()&&!f().brNzRatingBadgeType}},function(){return _.B(_.w9,{data:function(){return f()}})})))},"Da");
_.rA.idomCompat=!0;var rVC,M9Y;rVC=16/9;M9Y=2/3;_.CQ=_.dN(function(c){var f=c.data;var d=c.className;var q=c.imageSizeConfig;var Z=c.notifyOnLoaded;var M=function(){return f().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},g=function(){var Y;
return _.ec((Y=f())==null?void 0:Y.rendererContext)};
c={};c=(c["yt-content-preview-image-view-model-wiz"]=!0,c["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return M()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},c["yt-content-preview-image-view-model-wiz--tappable"]=function(){return g()},c);
var O=function(){var Y,t;return(t=(Y=_.b(f().rendererContext,_.Kz))==null?void 0:Y.label)!=null?t:""},l=function(){return gNz(f())},m=function(){var Y=C_4(M(),f().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",q==null?void 0:q(),ksN(l()),f().layoutWidth,f().layoutHeight),t=Object.assign({},Y);
Y.width&&(t.width=Math.round(Y.width));Y.height&&(t.height=Math.round(Y.height));Y.maxWidth&&(t.maxWidth=Math.round(Y.maxWidth));Y.maxHeight&&(t.maxHeight=Math.round(Y.maxHeight));return t},H=_.TZ(function(){return m().height},void 0,"Cn10Ce"),A=_.TZ(function(){return m().width},void 0,"laoove");
return _.B("yt-content-preview-image-view-model",{el:_.Z7(_.NY(function(){var Y;return(Y=f())==null?void 0:Y.rendererContext})),
role:function(){return g()?"link":void 0},
tabindex:function(){return g()?0:void 0},
class:_.FY(d,c,function(){var Y=M();var t=q==null?void 0:q();Y=Y==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Y==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Y==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(t==null?void 0:t.size)!=null&&t.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(t==null?void 0:t.size)!=null&&t.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 Y}),
style:function(){var Y=m(),t=[];Y.width&&t.push("width: "+Y.width+"px");Y.height&&t.push("height: "+Y.height+"px");Y.maxWidth&&t.push("max-width: "+Y.maxWidth+"px");Y.maxHeight&&t.push("max-height: "+Y.maxHeight+"px");Y.fullWidth&&t.push("width: 100%");return t.join(";")}},_.B(_.T,{cond:l,
then:function(Y){return _.B(_.jC,{data:Y,alt:O,"data-disabled$":function(){return!O()},
notifyOnLoaded:Z,targetWidth:A,targetHeight:H,preserveWidth:function(){return!!A()},
preserveHeight:function(){return!!H()}})}}),_.B(_.u7,{data:function(){var Y;
return(Y=f())==null?void 0:Y.overlays}},{thumbnailHoverOverlayViewModel:J6,
thumbnailOverlayButtonViewModel:_.d83}))},"Ea");
_.CQ.idomCompat=!0;var i7K=_.dN(function(c){var f=c.data;var d=c.className;var q=c.useSmallLayout;c=c.useMediumText;var Z={};c=(Z["yt-attribution-view-model-wiz"]=!0,Z["yt-attribution-view-model-wiz--medium-text"]=c,Z);return _.B("yt-attribution-view-model",{el:_.Z7(_.NY(function(){var M;return(M=f())==null?void 0:M.rendererContext})),
class:_.FY(d,c)},_.B(_.T,{cond:function(){return _.ec(f().rendererContext)},
then:function(){return _.B("button",{class:"yt-attribution-view-model-wiz--tappable"},_.B(Bry,{data:f,useSmallLayout:q}))},
else:function(){return _.B(Bry,{data:f,useSmallLayout:q})}}))},"Fa"),Bry=_.dN(function(c){var f=c.data;
var d=c.useSmallLayout;var q=function(){return{size:(d==null?0:d())?16:24}};
return _.B(_.qD,null,_.B(_.u7,{data:function(){return f().contentPreviewImage}},{contentPreviewImageViewModel:function(Z){return _.B(_.CQ,{data:Z.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:q})}}),_.B(_.u7,{data:function(){return f().badge}},{badgeViewModel:function(Z){return _.B(_.rA,{data:Z.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.B(_.T,{cond:function(){return f().text},
then:function(){return _.B(_.J9,{text:function(){return f().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.B(_.T,{cond:function(){return f().suffix},
then:function(){return _.B(_.J9,{text:function(){return f().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ga");
i7K.idomCompat=!0;var Tr3,m8j,H7F,AVv,YgF;Tr3=_.dN(function(c){var f=c.delimiter;var d=c.max;var q=c.index;var Z=c.isStandalone;return _.B(_.T,{cond:function(){return d()-1>q()},
then:function(){var M={};return _.B("span",{class:_.FY("yt-content-metadata-view-model-wiz__delimiter",(M["yt-content-metadata-view-model-wiz__delimiter--standalone"]=Z,M)),"aria-hidden":!0},f)}})},"Ha");
m8j=_.dN(function(c){var f=c.metadataPart;var d=c.maxLines;return _.B(_.J9,{text:function(){return f().text},
linkInheritColor:!0,className:function(){return O74(d())},
userInput:!0})},"Ia");
H7F=_.dN(function(c){var f=c.metadataPart;var d=c.maxLines;return _.B(_.T,{cond:function(){return f().tooltip},
then:function(q){return _.B("span",{title:q,role:"tooltip"},_.B(m8j,{metadataPart:f,maxLines:d}))},
else:function(){return _.B(m8j,{metadataPart:f,maxLines:d})}})},"Ja");
AVv=_.dN(function(c){var f=c.metadataPart;var d=c.isOverlay;var q=c.useMediumText;var Z=c.hideAvatar;var M=function(){return f().maxLines!==void 0?f().maxLines:1};
return _.B(_.qD,null,_.B(_.u7,{data:function(){return f().avatarStack}},{avatarStackViewModel:function(g){return _.B(_.XS,{data:g.data,
isOverlay:d,useMediumText:q,hideAvatar:Z})},
badgeViewModel:_.rA}),_.B(_.T,{cond:function(){return f().leadingIcon},
then:function(g){return _.B(_.Qy,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return g().name},
size:function(){return g().width}})}}),_.B(_.T,{cond:function(){return f().text},
then:function(){return _.B(H7F,{metadataPart:f,maxLines:M})}}),_.B(_.T,{cond:function(){return f().icon},
then:function(g){return _.B(_.Qy,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return g().name},
size:function(){return g().width}})}}))},"Ka");
YgF=_.dN(function(c){var f=c.metadataRow;var d=c.isInline;var q=c.delimiter;var Z=c.isOverlay;var M=c.useMediumText;var g=c.extensions;var O=function(){var m,H=g==null?void 0:(m=g())==null?void 0:m.lockupMetadata;m=f();var A,Y;return!!((H==null?0:(A=H.byline)==null?0:A.hideAvatar)&&((Y=_.b(m,hzF))==null?void 0:Y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},l=function(){return f().metadataParts||[]};
c={};return _.B("div",{class:_.FY("yt-content-metadata-view-model-wiz__metadata-row",(c["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=d,c["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var m,H=g==null?void 0:(m=g())==null?void 0:m.lockupMetadata;m=f();var A,Y;return!!((H==null?0:(A=H.byline)==null?0:A.addPadding)&&((Y=_.b(m,hzF))==null?void 0:Y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},c["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var m;
return!!(g==null?0:(m=g())==null?0:m.lockupMetadata)&&f().badges&&!f().metadataParts},c))},_.B(_.u7,{data:function(){return f().badges}},{badgeViewModel:function(m){return _.B("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.B(_.rA,{data:m.data}))}}),_.B(_.bd,{each:l},function(m,H){return _.B(_.qD,null,_.B(AVv,{metadataPart:m,
isOverlay:Z,useMediumText:M,hideAvatar:O}),_.B(Tr3,{delimiter:q,max:function(){return l().length},
index:H,isStandalone:!1}))}),_.B(_.T,{cond:function(){return f().isSpacerRow&&!d()},
then:function(){return _.B("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"La");
_.gA=_.dN(function(c){c=_.ch(c,{layout:0,isOverlay:!1});var f=c.data,d=c.layout,q=c.isOverlay,Z=c.useMediumText,M=c.extensions,g=function(){return d()===0},O=function(){var m;
return((m=f().metadataRows)==null?void 0:m.filter(function(H){var A,Y=M==null?void 0:(A=M())==null?void 0:A.lockupMetadata,t,E;A=!!((Y==null?0:(t=Y.description)==null?0:t.hideDescription)&&((E=_.b(H,hzF))==null?void 0:E.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var J,X;return!((Y==null?0:(J=Y.spacer)==null?0:J.hideSpacer)&&((X=_.b(H,hzF))==null?void 0:X.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||A)}))||[]},l={};
return _.B("yt-content-metadata-view-model",{class:_.FY(c.className,"yt-content-metadata-view-model-wiz",(l["yt-content-metadata-view-model-wiz--inline"]=g,l["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.ec(f().rendererContext)},l["yt-content-metadata-view-model-wiz--medium-text"]=Z,l)),
el:_.Z7(_.NY(function(){return f().rendererContext}))},_.B(_.bd,{each:O},function(m,H){return _.B(_.qD,null,_.B(YgF,{metadataRow:m,
isInline:g,delimiter:function(){return f().delimiter},
isOverlay:q,useMediumText:Z,extensions:M}),_.B(_.T,{cond:function(){return g()&&!m.isSpacerRow},
then:function(){return _.B(Tr3,{delimiter:function(){return f().delimiter},
max:function(){return O().length},
index:H,isStandalone:!0})}}))}))},"Ma");
_.gA.idomCompat=!0;var FiF=_.dN(function(c){var f={};return _.B("yt-lockup-metadata-view-model",{class:_.FY("yt-lockup-metadata-view-model-wiz",function(){a:{var d=c.lockupStyle();if(d==null?0:d.isOverlay)d="yt-lockup-metadata-view-model-wiz--overlay";else switch(d==null?void 0:d.arrangement){case 1:d="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:d="yt-lockup-metadata-view-model-wiz--vertical"}}return d},function(){a:{var d=c.lockupStyle();
if(d==null?0:d.isTiny)d="yt-lockup-metadata-view-model-wiz--tiny";else switch(d==null?void 0:d.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":d="yt-lockup-metadata-view-model-wiz--compact";break a;default:d="yt-lockup-metadata-view-model-wiz--standard"}}return d},(f["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var d;
return(d=c.lockupStyle())==null?void 0:d.isOverlay},f["yt-lockup-metadata-view-model-wiz--card"]=function(){var d;
return(d=c.lockupStyle())==null?void 0:d.isCard},f["yt-lockup-metadata-view-model-wiz--centered"]=function(){var d;
return(d=c.lockupStyle())==null?void 0:d.isCentered},f["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var d;
return(d=c.lockupStyle())==null?void 0:d.typographyBump},f["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var d;
return(d=c.lockupStyle())==null?void 0:d.useLegacyTypography},f["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var d;
return(d=c.lockupStyle())==null?void 0:d.useRichGridLegacyTypography},f))},_.B(_.u7,{data:function(){return c.data().image}},{avatarStackViewModel:function(d){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.XS,{data:d.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(d){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.ag,{data:d.data}))},
decoratedAvatarViewModel:function(d){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.VV,{data:d.data}))}}),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.B("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var d;return(d=c.data().title)==null?void 0:d.content}},_.B(_.T,{cond:function(){return c.data().title},
then:function(d){return _.B(_.Re,{command:c.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:c.lockupAccessibilityLabel},_.B(_.J9,{text:d,userInput:!0}))}})),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.B(_.u7,{data:function(){return c.data().metadata}},{contentMetadataViewModel:function(d){return _.B(_.gA,{data:d.data,
layout:1,useMediumText:function(){var q,Z;return((q=c.lockupStyle())==null?void 0:q.typographyBump)||((Z=c.lockupStyle())==null?void 0:Z.useRichGridLegacyTypography)},
extensions:function(){var q,Z,M,g;return{lockupMetadata:{byline:{hideAvatar:((q=c.lockupStyle())==null?void 0:q.arrangement)===0,addPadding:((Z=c.lockupStyle())==null?void 0:Z.arrangement)===1},description:{hideDescription:!((M=c.lockupStyle())==null||!M.compactMetadata)},spacer:{hideSpacer:!((g=c.lockupStyle())==null||!g.compactMetadata)}}}}})}})),_.B(_.u7,{data:function(){return c.data().attribution}},{attributionViewModel:function(d){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.B(i7K,{data:d.data,
useSmallLayout:!0}))}})),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.B(_.u7,{data:function(){return c.data().menuButton}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
buttonOverrides:function(){var q;return((q=c.lockupStyle())==null?0:q.isOverlay)?{style:"overlay"}:void 0}})}})))},"Na");
FiF.idomCompat=!0;var t9y=_.dN(function(c){var f=_.xz("notification-multi-action-renderer");_.QJ(function(){requestAnimationFrame(function(){_.xO(f.value)})});
var d={},q={},Z={};return _.B("notification-multi-action-renderer",{class:_.FY("ytNotificationMultiActionRendererHost",(d.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var M;return(M=c.useLegacyShelfStyle)==null?void 0:M.call(c)},d)),
el:f},_.B("span",{"aria-live":"polite",class:_.FY("ytNotificationMultiActionRendererTextContainer",(q.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var M;return(M=c.useLegacyShelfStyle)==null?void 0:M.call(c)},q))},_.B(_.J9,{text:function(){return c.data().responseText}})),_.B("div",{class:_.FY("ytNotificationMultiActionRendererButtonContainer",(Z.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var M;
return(M=c.useLegacyShelfStyle)==null?void 0:M.call(c)},Z))},_.B(_.u7,{data:function(){var M;
return(M=c.data().buttons)==null?void 0:M.map(function(g){if(g=g.buttonRenderer){var O,l=Object,m=l.assign,H=(O=g.icon)==null?void 0:O.iconType;O=(O=g.command||g.serviceEndpoint||g.navigationEndpoint)?{innertubeCommand:O}:void 0;g={buttonViewModel:m.call(l,{},{iconName:H,onTap:O,trackingParams:g.trackingParams,titleFormatted:g.text?_.he(g.text):void 0},siz(g))}}else g=void 0;return g}).filter(function(g){return!!g})}},{buttonViewModel:function(M,g){return _.B("div",null,_.B(_.mN,{data:M.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var O;return((O=c.useModernStyles)==null?0:O.call(c))?{type:g()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Oa");var b7H=_.dN(function(c){var f=_.xz("notification-text-renderer");_.QJ(function(){requestAnimationFrame(function(){_.xO(f.value)})});
return _.B("notification-text-renderer",{el:f,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.B(_.J9,{text:function(){return c.data().successResponseText}}))},"Pa");_.k4=_.dN(function(c){var f=_.Ka(IiY,function(){var q;return Brk((q=c.contentId)==null?void 0:q.call(c))}),d=function(){var q;
return _.b((q=f())==null?void 0:q.command,_.nz)};
return _.B(_.T,{cond:function(){var q;if(!(q=d())){var Z;q=_.b((Z=f())==null?void 0:Z.command,JqH)}return q},
then:function(){return _.B(_.T,{cond:d,then:function(){var q={};return _.B("div",{class:_.FY("ytDismissibleItemReplacedContent",function(){var Z;return i7k((Z=c.aspectRatio)==null?void 0:Z.call(c))})},_.B("div",{class:_.FY((q.ytDismissibleItemAspectRatioContainer=function(){var Z;
return((Z=c.aspectRatio)==null?void 0:Z.call(c))!==void 0},q))},_.B(_.u7,{data:function(){var Z;
return(Z=d())==null?void 0:Z.item}},{notificationMultiActionRenderer:function(Z){return _.B(t9y,{data:Z.data,
useModernStyles:c.useModernStyle,useLegacyShelfStyle:c.useLegacyShelfStyle})},
notificationTextRenderer:b7H})))}})},
else:c.children})},"Qa");_.KiF=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;c=_.Z7(_.qd({visibilityCallback:function(M){var g,O=(g=f().interaction)==null?void 0:g.onFirstVisible;M&&O&&_.Ph(O)},
showOption:_.dA}));var q=function(){var M;return((M=f().interaction)==null?0:M.onTap)?function(g){var O;h$h(g,(O=f().interaction)==null?void 0:O.onTap,d)}:void 0},Z=function(){var M,g=f(),O=q(),l=(M=_.b(f().rendererContext,_.Kz))==null?void 0:M.label;
a:switch(g.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":M=1;break a;default:M=0}return{size:H7n(g.size),type:M,onTap:O,accessibilityText:l}};
return _.B("ad-avatar-view-model",{class:function(){var M;return((M=f().interaction)==null?0:M.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:c},_.B(_.T,{cond:function(){return f().image},
then:function(M){return _.B(O6r,{data:Z,image:M})}}))},"Ra");_.O7=_.dN(function(c){var f=_.ch(c,{hasDot:!1});c=Object.assign({},f);var d=f.data,q=f.hasDot;f=f.customCommandResolver;var Z=(delete c.data,delete c.hasDot,delete c.customCommandResolver,c);c=function(){return d().style};
c!==void 0&&c!==null||_.eZ(Error("Dh"));c=_.pa(function(){return d().interaction},f);
return _.B("ad-badge-view-model",{class:_.FY(function(){var M;return((M=d().interaction)==null?0:M.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var M=Z.adRenderingContextType();
d();return M==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.Z7(c)},_.B(_.w9,{data:function(){var M;d();return{type:2,text:(M=d().label)==null?void 0:M.content,adsIncludeDot:q(),isOverlay:d().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Sa");var ENr;_.lg=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;var q=c.adRenderingContextType;return _.B("ad-details-line-view-model",{class:function(){var Z;return((Z=f().interaction)==null?0:Z.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Z7(_.qd({visibilityCallback:function(Z){var M,g=(M=f().interaction)==null?void 0:M.onFirstVisible;Z&&g&&_.Ph(g)},
showOption:_.dA}),_.pa(function(){return f().interaction},d))},_.B(_.T,{cond:function(){return f().style},
then:function(Z){return _.B(_.bd,{each:function(){var M;return((M=f())==null?void 0:M.attributes)||[]},
keyBy:"INDEX"},function(M){return _.B(ENr,{attribute:M,style:Z,adRenderingContextType:function(){return q()}})})}}))},"Ta");
ENr=_.dN(function(c){var f=c.attribute;var d=c.style;var q=c.adRenderingContextType;return _.B(_.T,{cond:function(){return f().text},
then:function(Z){return _.B(_.J9,{text:Z,className:function(){var M=q();d();return M==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ua");var nN_=_.dN(function(c){var f=c.data;var d=c.typographyBump;var q=function(){return f().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
c={};return _.B(_.qD,null,_.B("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.B(_.J9,{text:function(){return f().headline},
className:_.FY("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(c.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return q==null?void 0:q()},c.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(d==null?void 0:d())&&!(q==null?0:q())},c)),
linkInheritColor:!0}),_.B(_.T,{cond:function(){return f().description},
then:function(Z){var M={};return _.B(_.J9,{text:Z,className:_.FY("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return q==null?void 0:q()},M.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(d==null?void 0:d())&&!(q==null?0:q())},M)),
linkInheritColor:!0})}}),_.B(_.T,{cond:function(){return f().secondaryDescription},
then:function(Z){var M={};return _.B(_.J9,{text:Z,className:_.FY("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return d==null?void 0:d()},M)),
linkInheritColor:!0})}}),_.B("div",{class:function(){return q()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.B(_.T,{cond:function(){return f().adAvatar},
then:function(){return _.B("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.B(_.u7,{data:function(){return f().adAvatar}},{adAvatarViewModel:_.KiF}))}}),_.B(_.u7,{data:function(){return f().adBadge}},{adBadgeViewModel:function(Z){return _.B(_.O7,{data:Z.data,
hasDot:function(){return!!f().adDetailsLine},
adRenderingContextType:function(){return f().adRenderingContextType}})}}),_.B(_.u7,{data:function(){return f().adDetailsLine}},{adDetailsLineViewModel:function(Z){return _.B(_.lg,{data:Z.data,
adRenderingContextType:function(){return f().adRenderingContextType}})}}))),_.B("div",{class:function(){return q()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.B(_.u7,{data:function(){return f().menu}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
buttonOverrides:function(){a:switch(f().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var M="S";break a;default:M="M"}return{size:M}}})}})))},"Va"),$8r=_.dN(function(c){var f=c.data;
var d=c.noBottomMargin;var q=c.useVideoLockupTopPadding;var Z=c.typographyBump;c={};c=_.FY("ytwFeedAdMetadataViewModelHostMetadata",(c.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return d==null?void 0:d()},c.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return q==null?void 0:q()},c));
var M=function(){return f().adBadge};
M!==void 0&&M!==null||_.eZ(Error("Eh"));M={};var g={};return _.B(_.qD,null,_.B(_.T,{cond:function(){return f().adAvatar},
then:function(){return _.B("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.B(_.u7,{data:function(){return f().adAvatar}},{adAvatarViewModel:function(O){return _.B(_.KiF,{data:O.data})}}))}}),_.B("div",{class:c},_.B("div",{class:_.FY("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Z==null?void 0:Z()},M.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Z==
null?void 0:Z())&&_.F("web_enable_typography_bump_v2")},M))},_.B(_.J9,{text:function(){return f().headline},
linkInheritColor:!0})),_.B(_.T,{cond:function(){return f().description},
then:function(O){return _.B(_.J9,{text:O,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.B("div",{class:function(){return f().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.F("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.B(_.u7,{data:function(){return f().adBadge}},
{adBadgeViewModel:function(O){return _.B(_.O7,{data:O.data,
hasDot:function(){return!!f().adDetailsLine},
adRenderingContextType:function(){return f().adRenderingContextType}})}}),_.B(_.u7,{data:function(){return f().adDetailsLine}},{adDetailsLineViewModel:function(O){return _.B(_.lg,{data:O.data,
adRenderingContextType:function(){return f().adRenderingContextType}})}})),_.B(_.T,{cond:function(){return f().secondaryDescription},
then:function(O){return _.B(_.J9,{text:O,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.B("div",{class:_.FY("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(g.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return q==null?void 0:q()},g))},_.B(_.u7,{data:function(){return f().menu}},{buttonViewModel:_.mN})))},"Wa"),Qi_=_.dN(function(c){var f=c.data;
var d=c.noBottomMargin;var q=c.listenToTapEvent;var Z=c.setTouchEndHandler;var M=c.useVideoLockupTopPadding;var g=c.typographyBump;c=_.qd({visibilityCallback:function(A){var Y,t=(Y=f().interaction)==null?void 0:Y.onFirstVisible;A&&t&&_.Ph(t)},
showOption:_.dA});var O=_.pa(function(){return f().interaction},void 0,function(){return q==null?void 0:q()}),l=_.C(_.OT(!1,void 0,"p7Js8e")),m=l.next().value,H=l.next().value;
l=_.Ks(function(A){(Z==null?0:Z())&&!m()&&(A.currentTarget.click(),H(!0),setTimeout(function(){H(!1)},100));
return!1});
return _.B("feed-ad-metadata-view-model",{class:function(){var A;return((A=f().interaction)==null?0:A.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Z7(c,O),"on:touchend":l},_.B(_.n9,null,_.B(_.K9,{when:function(){return f().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.B(nN_,{data:f,
typographyBump:g})}),_.B(_.K9,{when:function(){return f().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.B($8r,{data:f,
noBottomMargin:d,useVideoLockupTopPadding:M,typographyBump:g})})))},"Xa");var Sg_;_.s7=_.dN(function(c){return _.B("yt-lockup-view-model",{class:_.FY(c.className)},_.B(_.k4,{contentId:function(){return c.data().contentId},
useModernStyle:!0,aspectRatio:function(){var f,d;return((f=c.containerType)==null?void 0:f.call(c))!==3?fCC(c.data().contentType,(d=c.force16By9ThumbnailAspectRatio)==null?void 0:d.call(c)):void 0}},function(){return _.B(Sg_,Object.assign({},c))}))},"Ya");
Sg_=_.dN(function(c){c=_.ch(c,{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 f=c.data,d=c.containerLayoutConfig,q=c.containerType,Z=c.sizing,M=c.protectBackground,g=c.typographyBump,O=c.force16By9ThumbnailAspectRatio,l=c.thumbnailFixedWidth,m=c.thumbnailTargetWidth,H=c.lockupExperiments,A=c.elementsPerRow;
c=_.Z7(_.NY(function(){var AP;return(AP=f())==null?void 0:AP.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 Y=_.N5(aSG),t=_.ql().resolve(_.dx(U3j)),E=t?{}:void 0,J=function(){var AP,eM,ue;return(ue=(eM=_.b((AP=f())==null?void 0:AP.rendererContext,_.Kz))==null?void 0:eM.label)!=null?ue:void 0},X=function(){var AP=d==null?void 0:d(),eM;
if(AP==null?0:AP.containerType){var ue=(eM=f())==null?void 0:eM.contentType;eM=H();var BH=g(),J3=m(),lr=M();AP=Object.assign({},d8P(ogl(AP),p3G(AP.responsiveSize),BH,ue,AP.force16By9ThumbnailAspectRatio,J3,lr,eM),{thumbnailFixedWidth:AP.contentPreviewWidth})}else AP=d8P(q(),Z(),g(),(ue=f())==null?void 0:ue.contentType,O(),m(),M(),H());return AP};
t&&E&&t({enabled:function(){return Y()},
itemPlaybackModel:function(){return f().itemPlayback},
thumbnailElRef:function(){return E.thumbnailElRef},
containerElRef:c,options:function(){var AP,eM=(AP=_.b(f().metadata,_.wLu))==null?void 0:AP.endorsement;AP=E.thumbnailOverlays||[];eM&&AP.push(eM);var ue,BH;return{thumbnail:E.thumbnail,thumbnailOverlays:AP,accessibilityText:J(),thumbnailSize:E.thumbnailSize,enableRounding:X().isCollection,containPlayerWithinThumbnail:X().isCollection,trackingParams:(ue=_.b(f().rendererContext,_.Kx))==null?void 0:(BH=ue.loggingDirectives)==null?void 0:BH.trackingParams}}});
var u=0;t=_.C(_.OT(!1,void 0,"HzAs3"));var W=t.next().value,p=t.next().value;t=_.C(_.OT(!1,void 0,"ujOXud"));var N=t.next().value,I=t.next().value;t=_.Ks(function(){var AP=Y()&&f().itemPlayback;N()?(_.a7.cancelJob(u),u=_.a7.addJob(function(){p(!AP)},8,32)):p(!AP);
return!0});
var R=_.Ks(function(){u&&(_.a7.cancelJob(u),u=0);p(!1)});
_.Q4(function(){u&&(_.a7.cancelJob(u),u=0)});
var qN=m8r(function(){I(!0)}),kl=qN.touchFeedbackEvents,BN=qN.touchFeedbackOnPointerUp,tP=qN.touchFeedbackOnPointerDown;
qN=qN.touchFeedbackOnPointerLeave;var EC={};return _.B("div",{el:c,class:_.FY("yt-lockup-view-model-wiz",function(){a:{var AP=X();if(AP.isOverlay)AP="yt-lockup-view-model-wiz--overlay";else switch(AP.arrangement){case 1:AP="yt-lockup-view-model-wiz--horizontal";break a;default:AP="yt-lockup-view-model-wiz--vertical"}}return AP},function(){a:{var AP=X();
if(AP.isOverlay)AP="yt-lockup-view-model-wiz--overlay";else{switch(AP.collectionStackNumber){case 1:AP="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:AP="yt-lockup-view-model-wiz--collection-stack-2";break a}AP=void 0}}return AP},function(){var AP;
return _.lCM((AP=f())==null?void 0:AP.contentId)},(EC["yt-lockup-view-model-wiz--card"]=function(){return X().isCard},EC["yt-lockup-view-model-wiz--compact"]=function(){return X().isTiny||X().sizing!=="STANDARD"},EC["yt-lockup-view-model-wiz--protect-background"]=M,EC["yt-lockup-view-model-wiz--add-margins"]=function(){return X().addMarginForFullbleed},EC["yt-lockup-view-model-wiz--centered"]=function(){return X().isCentered},EC["yt-lockup-view-model-wiz--fullbleed"]=function(){return X().fullbleed},
EC["yt-lockup-view-model-wiz--single-column-grid"]=function(){return A()===1&&q()===2},EC["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var AP;
return(AP=H())==null?void 0:AP.useRichGridLegacyMargin},EC)),
"on:mousedown":tP,"on:mouseleave":R,"on:mouseup":BN,"on:mouseover":t,"on:touchstart":tP,"on:touchend":BN,"on:pointerleave":qN},_.B(_.Re,{command:function(){var AP;return _.DW((AP=f())==null?void 0:AP.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return l()&&X().arrangement===1?"width: "+l():""}},_.B(_.u7,{data:function(){var AP;
return(AP=f())==null?void 0:AP.contentImage}},{thumbnailViewModel:function(AP){return _.B(_.fQ,{data:AP.data,
aspectRatio:function(){return X().aspectRatio},
disableRounding:function(){return X().disableRounding},
width:m,hovered:W,isClip:function(){var eM;return((eM=f())==null?void 0:eM.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:z$h(E),lockupExperiments:function(){return H()}})},
collectionThumbnailViewModel:function(AP){return _.B(rV3,{data:AP.data,aspectRatio:function(){return X().aspectRatio},
disableRounding:function(){return X().disableRounding},
width:m,doubleStack:function(){return X().collectionStackNumber===2},
hovered:W,playbackRef:z$h(E)})},
decoratedAvatarViewModel:_.VV})),_.B("div",{class:"yt-lockup-view-model-wiz__metadata"},_.B(_.u7,{data:function(){var AP;return(AP=f())==null?void 0:AP.metadata}},{lockupMetadataViewModel:function(AP){return _.B(FiF,{data:AP.data,
lockupStyle:X,lockupCommand:function(){var eM;return _.DW((eM=f())==null?void 0:eM.rendererContext)},
lockupAccessibilityLabel:function(){return J()}})},
feedAdMetadataViewModel:function(AP){return _.B(Qi_,{data:AP.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:g})}}),_.B(_.u7,{data:function(){var AP;
return(AP=f())==null?void 0:AP.attachmentSlot}},{lockupAttachmentsViewModel:function(AP){return _.B(lCu,{data:AP.data,
lockupStyle:X})}})),_.B(_.z3,{model:function(){a:{switch(X().collectionStackNumber){case 1:var AP=8;
break a;case 2:AP=12;break a}AP=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:AP}},
pointerDownEvent:kl.pointerDownEvent,pointerUpEvent:kl.pointerUpEvent,pointerLeaveEvent:kl.pointerLeaveEvent}))},"Za");
_.s7.idomCompat=!0;_.g_(_.s7,"yt-lockup-view-model",{props:{data:_.oM,containerLayoutConfig:_.oM,containerType:_.oM,sizing:_.oM,protectBackground:_.oM,typographyBump:_.oM,thumbnailFixedWidth:_.oM,thumbnailTargetWidth:_.oM,force16By9ThumbnailAspectRatio:_.oM,className:_.oM,lockupExperiments:_.oM,elementsPerRow:_.oM}});var b7N,Liu=_.dN(function(c){var f=_.ch(c,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),d=f.text,q=f.alwaysShowTruncationText;c=f.truncationText;var Z=f.onTextClick,M=f.maxLines,g=f.disableTextMask,O=f.textStyle,l=f.accessibilityLabel,m=f.textSize,H=f.alwaysTruncateAtMaxLines,A=f.expandOnClick;f=_.C(_.OT(!1,void 0,"TgZFQb"));var Y=f.next().value,t=f.next().value;f=_.Ks(function(){A()&&t(!Y());Z==null||Z()});
var E=function(){a:switch(m()){case "medium":var R=2;break a;case "large":R=2.2;break a;default:R=1.8}return R},J=$8e(d,function(){return Y()?Infinity:M()},E,g,H),X=J.isTruncated;
d=J.displayText;H=J.contentRef;var u=J.hiddenRef,W=J.placeholderTruncationTextRef,p=J.hiddenTruncationTextRef;J=J.truncationTextRef;var N={},I={};return _.B("truncated-text",{class:_.FY((N["truncated-text-wiz"]=!0,N["truncated-text-wiz--overlay"]=function(){return O()==="overlay"},N["truncated-text-wiz--medium-text"]=function(){return m()==="medium"},N["truncated-text-wiz--large-text"]=function(){return m()==="large"},N["truncated-text-wiz--primary-text"]=function(){return O()==="primary-text"},N)),
"on:click":f,style:function(){return"line-height: "+E()+"rem;"}},_.B("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:H,style:function(){return Y()?"":"max-height: "+M()*E()+"rem;"}},_.B(_.J9,{text:d}),_.B("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:W,style:function(){return"line-height: "+E()+"rem;"}},_.B(_.J9,{text:c}))),_.B("truncated-text-content",{class:_.FY("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:u,style:function(){return Y()?"":"max-height: "+M()*E()+"rem;"},
"aria-hidden":"true"},_.B(_.J9,{text:d}),_.B("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:p,style:function(){return"line-height: "+E()+"rem;"}},_.B(_.J9,{text:c}))),_.B("button",{"aria-label":l,
class:_.FY((I["truncated-text-wiz__absolute-button"]=function(){return!g()},I["truncated-text-wiz__bottom-button"]=function(){return g()},I["truncated-text-wiz--hidden"]=function(){return!(!Y()&&(q!=null&&q()||X()))},I)),
el:J,style:function(){return"line-height: "+E()+"rem;"}},_.B(_.J9,{text:c})))},"$a");
Liu.idomCompat={callbacks:{onTextClick:!0}};var aCF=_.dN(function(c){var f=c.data;c=c.className;var d=_.TZ(function(){return Sgl(f())},void 0,"sR58pd");
return _.B("yt-video-attribute-view-model",{class:c},_.B("div",{class:function(){var q=f();a:switch(q.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var Z="yt-video-attribute-view-model--vertical";break a;default:Z="yt-video-attribute-view-model--horizontal"}a:switch(q.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var M="yt-video-attribute-view-model--image-small";break a;default:M="yt-video-attribute-view-model--image-large"}a:switch(q.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var g=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":g="yt-video-attribute-view-model--image-avatar";break a;default:g=""}a:switch(q.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var O="yt-video-attribute-view-model--metadata-header";break a;default:O=""}a:switch(q.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var l="yt-video-attribute-view-model--container-card";break a;default:l=""}return["yt-video-attribute-view-model",Z,M,
g,O,l,Sgl(q)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.$Z({"background-color":function(){var q=f();if(q.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var Z="";else{Z=q.lightColorPalette;q=q.darkColorPalette;var M,g=((M=_.ql().resolve(_.dx(_.of)))==null?0:M())&&q?q:Z;Z=(Z=g==null?void 0:g.section2Color)?_.WS(Z):""}return Z}})},_.B(_.T,{cond:function(){return d()||!_.F("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.B(_.Re,{className:"yt-video-attribute-view-model__content-container",command:d,role:"group",ariaLabel:function(){return f().title}},_.B(_.T,{cond:function(){return f().heroText||f().image},
then:function(){return _.B(zA_,{data:f})}}),_.B(JV3,{data:f,
sizeSmall:function(){return f().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.B("div",{class:"yt-video-attribute-view-model__content-container"},_.B(_.T,{cond:function(){return f().heroText||f().image},
then:function(){return _.B(zA_,{data:f})}}),_.B(JV3,{data:f,
sizeSmall:function(){return f().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"ab");
aCF.idomCompat=!0;var zA_=_.dN(function(c){var f=c.data;var d,q=(d=_.ql().resolve(_.dx(_.of)))==null?void 0:d(),Z=function(){return q&&f().darkThemeImage?f().darkThemeImage:f().image},M=_.TZ(function(){return LiM(f())},void 0,"zGDeMe");
return _.B("div",{class:"yt-video-attribute-view-model__hero-section"},_.B(_.n9,null,_.B(_.K9,{when:Z},function(){return _.B(_.jC,{data:function(){return Z()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.B(_.K9,{when:function(){return f().heroText}},function(){return _.B("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.B("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return f().heroText}))})),_.B(_.T,{cond:function(){return f().overflowMenuOnTap},
then:function(){return _.B("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.B(_.iw,{data:M,iconName:"MORE_VERT"}))}}))},"bb");
zA_.idomCompat=!0;var JV3=_.dN(function(c){var f=c.data;c=c.sizeSmall;var d=function(){return f().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},q=_.TZ(function(){return If(_.NV({innertubeCommand:Sgl(f())}))?"link":"group"},void 0,"kGuRzd"),Z={};
return _.B("div",{class:_.FY("yt-video-attribute-view-model__metadata",(Z["yt-video-attribute-view-model--small-font"]=c,Z)),role:q},_.B("h1",{class:"yt-video-attribute-view-model__title"},function(){return f().title}),_.B(_.T,{cond:function(){return f().subtitle},
then:function(){return _.B("h4",{class:"yt-video-attribute-view-model__subtitle"},_.B(_.T,{cond:d,then:function(){return _.B(Liu,{text:function(){return Qil(f().subtitle)},
truncationText:function(){return Qil(f().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.B("span",null,function(){return f().subtitle})}}))}}),_.B(_.T,{cond:function(){return f().secondarySubtitle},
then:function(M){return _.B("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.B(_.J9,{text:function(){var g=M();if(g!=null&&g.attachmentRuns){for(var O=[],l=_.C(g.attachmentRuns),m=l.next();!m.done;m=l.next())m=m.value,m.element&&O.push(Object.assign({},m,{element:Object.assign({},m.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));g=Object.assign({},g,{attachmentRuns:O})}return g}}))}}),_.B(_.u7,
{data:function(){return f().buttonViewModel}},{buttonViewModel:function(M){return _.B(_.mN,{data:M.data,
className:"yt-video-attribute-view-model__button"})}}))},"cb");
JV3.idomCompat=!0;_.g_(aCF,"yt-video-attribute-view-model",{props:{data:_.oM,className:_.oM}});var BX=function(){var c=_.z.apply(this,arguments)||this;c.useHighlightStyling=_.F("web_enable_deeper_metadata_highlight_styling");c.isSearch=!1;c.JSC$15043_lastScrollContainerWidth=NaN;c.pageLoadingFromNavigation=!1;c.currentIndex=0;c.supportComponentResize=!1;return c};
_.K(BX,_.z);_.r=BX.prototype;
_.r.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}}}}}};
_.r.attached=function(){document.addEventListener("yt-page-type-changed",_.ia(this,this.onPageChange))};
_.r.detached=function(){document.removeEventListener("yt-page-type-changed",_.ia(this,this.onPageChange))};
_.r.getItemsPath=function(){return"data.cards"};
_.r.onIronResize=function(){this.updateListStyles()};
_.r.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var c;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(c=this.data)==null?void 0:c.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.F("problem_walkthrough_sd")&&!!this.centerItems};
_.r.computeCardListStyle=function(c){return c||null};
_.r.computeEmpty=function(c){return!this.get("cards.length",c)};
_.r.computeThumbnailStyle=function(c){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",c)||null};
_.r.computeHasSubtitle=function(c){return!!this.get("header.richListHeaderRenderer.subtitle",c)};
_.r.computeInitialCountNumber=function(c){return this.hasSquareMiniApp&&c==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&c==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:c==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:c==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:c==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&c==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.r.computeUseFloorScrolling=function(c){return c==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.r.computeHasGameCard=function(c){return(c=this.get("cards",c))?c.some(function(f){return f.gameCardRenderer}):!1};
_.r.computeCenterHeaderTitle=function(c){return!(c==null||!c.centerHeaderTitle)};
_.r.computeHasPortraitMiniApp=function(c){return(c=c==null?void 0:c.cards)?c.some(function(f){return f.miniGameCardViewModel&&f.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.r.computeHasSquareMiniApp=function(c){return(c=c==null?void 0:c.cards)?c.some(function(f){return f.miniGameCardViewModel&&f.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.r.computeHasSkinnyWidthPortraitMiniApp=function(c){return(c=c==null?void 0:c.cards)?c.some(function(f){return f.miniGameCardViewModel&&f.miniGameCardViewModel.width===135}):!1};
_.r.computeCenterItems=function(c){return!!c};
_.r.computeHasInfoPanel=function(c){var f;return c==null?void 0:(f=c.cards)==null?void 0:f.some(function(d){return d.infoPanelContentRenderer})};
_.r.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.r.getItemByIndex=function(c){var f=this.items.children;return f&&f.length>c?f[c]:void 0};
_.r.onPageChange=function(){var c=this;this.pageLoadingFromNavigation=!0;_.a7.addJob(function(){c.pageLoadingFromNavigation=!1;_.kt(c.hostElement,"yt-terminate-video-preview-action")},8)};
_.r.updateListStyles=function(){if(_.F("problem_walkthrough_sd")&&this.JSC$15043_scrollContainer!==void 0){var c=this.JSC$15043_scrollContainer.clientWidth;c!==this.JSC$15043_lastScrollContainerWidth&&(this.JSC$15043_lastScrollContainerWidth=c,_.la(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(c*.8,415)+"px"}),_.CZ(this.hostElement,"iron-resize"))}};
_.ci.Object.defineProperties(BX.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 c,f,d;return!!((c=this.data)==null?0:(f=c.cards)==null?0:(d=f[0])==null?0:d.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return!!((c=this.data)==null?0:(f=c.cards)==null?0:(d=f[0])==null?0:d.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return _.F("enable_desktop_amsterdam_info_panels")&&!!((c=this.data)==null?0:(f=c.cards)==null?0:(d=f[0])==null?0:d.infoPanelContentRenderer)}}});
BX.prototype.dataChanged=BX.prototype.dataChanged;BX.prototype.onIronResize=BX.prototype.onIronResize;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cm.YtdHorizontalListBehavior),_.D("design:type",Object)],BX.prototype,"ytdHorizontalListBehavior",void 0);
_.y([_.Q(_.WA),_.D("design:type",Object)],BX.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],BX.prototype,"data",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],BX.prototype,"useCustomColors",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],BX.prototype,"useHighlightStyling",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.D("design:type",Object)],BX.prototype,"cardListStyle",void 0);_.y([_.L({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.D("design:type",Boolean)],BX.prototype,"empty",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.D("design:type",Boolean)],BX.prototype,"hasSubtitle",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.D("design:type",Boolean)],BX.prototype,"thumbnailStyle",void 0);_.y([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.D("design:type",Boolean)],BX.prototype,"hasGameCard",void 0);_.y([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.D("design:type",Boolean)],BX.prototype,"centerHeaderTitle",void 0);
_.y([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.D("design:type",Boolean)],BX.prototype,"hasPortraitMiniApp",void 0);_.y([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.D("design:type",Boolean)],BX.prototype,"hasSquareMiniApp",void 0);_.y([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.D("design:type",Boolean)],BX.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.y([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.D("design:type",Boolean)],BX.prototype,"hasInfoPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],BX.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],BX.prototype,"inlineStructuredDescription",void 0);_.y([_.AY("#scroll-container"),_.D("design:type",HTMLDivElement)],BX.prototype,"JSC$15043_scrollContainer",void 0);
_.y([_.L({computed:"computeInitialCountNumber(data.style.type)"}),_.D("design:type",Number)],BX.prototype,"initialCount",void 0);_.y([_.L({computed:"computeUseFloorScrolling(data.style.type)"}),_.D("design:type",Boolean)],BX.prototype,"useFloorScrolling",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.D("design:type",Boolean)],BX.prototype,"centerItems",void 0);_.y([_.L(),_.D("design:type",Object)],BX.prototype,"pageLoadingFromNavigation",void 0);
_.y([_.L(),_.D("design:type",Object)],BX.prototype,"currentIndex",void 0);_.y([_.L(),_.D("design:type",Number)],BX.prototype,"scrollCount",void 0);_.y([_.L(),_.D("design:type",Object)],BX.prototype,"supportComponentResize",void 0);_.y([_.AY("#items"),_.D("design:type",HTMLDivElement)],BX.prototype,"items",void 0);_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],BX.prototype,"onIronResize",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],BX.prototype,"dataChanged",null);_.y([_.L({reflectToAttribute:!0}),_.S("inlineStructuredDescription"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],BX.prototype,"hideNavigationButton",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],BX.prototype,"modernChapters",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],BX.prototype,"hasVideoAttributeViewModels",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],BX.prototype,"modernInfoPanels",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],BX);
_.h(BX,"ytd-horizontal-card-list-renderer",function(){if(SpF!==void 0)return SpF;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return SpF=c},{mode:_.lP("kevlar_poly_si_batch_j072")?1:2});var V93=_.dN(function(c){var f=c.data;var d={};return _.B("video-summary-content-view-model",{class:_.FY("video-summary-content-view-model-wiz",c.className,(d["video-summary-content-view-model-wiz--is-search"]=c.isSearch,d))},_.B(_.bd,{each:function(){var q=[],Z=f().paragraphs;if(Z==null||!Z.length)return[];for(var M=0;M<Z.length;M++){var g=_.b(Z[M],e9j),O=void 0;M>0&&(O=_.b(Z[M-1],e9j));O&&!!O.marker===!!g.marker?q[q.length-1].paragraphs.push(g):q.push({isList:!!g.marker,paragraphs:[g]})}return q},
keyBy:"INDEX"},function(q){return _.B(_.T,{cond:function(){return q().isList},
then:function(){return _.B("ul",{class:"video-summary-content-view-model-wiz__list"},_.B(_.bd,{each:function(){return q().paragraphs},
keyBy:"INDEX"},function(Z){return _.B("li",{class:"video-summary-content-view-model-wiz__list-item"},_.B(_.J9,{text:function(){return Z().text}}))}))},
else:function(){return _.B(_.bd,{each:function(){return q().paragraphs},
keyBy:"INDEX"},function(Z){return _.B("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.B(_.J9,{text:function(){return Z().text}}))})}})}),_.B(_.T,{cond:function(){return!!_.b(f().likeButtonViewModel,_.uq)&&!!_.b(f().dislikeButtonViewModel,_.XL)},
then:function(){return _.B("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.B("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.B(_.vP,{data:function(){return _.b(f().likeButtonViewModel,_.uq)},
disableIconAnimation:!0})),_.B(_.u9,{data:function(){return _.b(f().dislikeButtonViewModel,_.XL)}}))}}))},"db");
V93.idomCompat=!0;_.g_(V93,"video-summary-content-view-model",{props:{data:_.oM,isSearch:_.oM,className:_.oM}});var ig=function(){var c=_.z.apply(this,arguments)||this;var f,d;c.isExpanded=(d=(f=c.data)==null?void 0:f.isExpanded)!=null?d:!1;c.disableExpand=!1;c.showProminentLabel=!1;c.showRightSideLabel=!0;c.toggleExpandableContent=function(q){c.disableExpand||(q.stopPropagation(),_.ZW(_.x0(q),c.hostElement,["info","expanded-subtitle"])||(c.isExpanded=!c.isExpanded,c.ytRendererBehavior.logExplicitClick(c.data),c.JSC$15054_cardList&&!_.F("expandable_metadata_a11y_fix_ks")&&_.ol(c,function(){_.UN(c.hostElement)})))};
c.useSquareThumbnail=!1;c.contentHiddenWithDisplayNone=_.F("web_expandable_metadata_content_hidden_with_display_none");c.startX=0;return c};
_.K(ig,_.z);_.r=ig.prototype;_.r.computeUseSquareThumbnail=function(){var c;return(c=this.data)==null?void 0:c.useSquareThumbnail};
_.r.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"}}}}};
_.r.dataChanged=function(){if(this.data){var c,f;this.isExpanded=(f=(c=this.data)==null?void 0:c.isExpanded)!=null?f:!1;var d,q,Z,M;if(c=this.isDarkTheme()?(d=this.data)==null?void 0:(q=d.colorData)==null?void 0:q.darkColorPalette:(Z=this.data)==null?void 0:(M=Z.colorData)==null?void 0:M.lightColorPalette){var g,O;if((g=this.data)==null?0:(O=g.colorData)==null?0:O.vibrantColorPalette)c.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.vr(this.hostElement,c)}}};
_.r.isExpandedChanged=function(){this.isExpanded&&this.JSC$15054_cardList&&_.CZ(this.JSC$15054_cardList,"iron-resize")};
_.r.computeIsExpanded=function(c){return!!c.isExpanded};
_.r.computeShowProminentLabel=function(c,f){var d;return!!(c==null?0:(d=c.header)==null?0:d.showLeadingCollapsedLabel)&&!f};
_.r.computeShowRightSideLabel=function(c,f){var d;return!(c==null?0:(d=c.header)==null?0:d.showLeadingCollapsedLabel)&&!f};
_.r.captureContentClick=function(c){if(!this.disableExpand)if(_.F("expandable_metadata_fix_killswitch")){var f=c.target;_.sG3(f,"ytd-macro-markers-list-item-renderer")||c.stopPropagation();(f==null?void 0:f.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.ZW(_.x0(c),this.hostElement,["items"])||_.qY(_.x0(c),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.r.timestampClick=function(c){c.stopPropagation();var f,d;(c=(f=this.data)==null?void 0:(d=f.header)==null?void 0:d.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(c)};
_.r.onDown=function(c){c.stopPropagation();this.startX=c.detail?c.detail.x:0};
_.r.onUp=function(c){this.skipKeyInteraction(c)&&c.stopPropagation()};
_.r.skipKeyInteraction=function(c){var f=c.target;if((f==null?void 0:f.id)==="scroll-container"||(f==null?void 0:f.id)==="items"||c.detail&&c.detail.x!==this.startX)return!0;c=_.x0(c);c=_.C(c);for(f=c.next();!f.done;f=c.next()){f=f.value;if(f===this.hostElement)break;if(f.hasAttribute&&f.hasAttribute("skip-key-interaction"))return!0}return!1};
_.r.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.ci.Object.defineProperties(ig.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var c;return!!_.b((c=this.data)==null?void 0:c.expandedContent,DMo)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var c;return!!_.b((c=this.data)==null?void 0:c.expandedContent,_.y$F)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null||!c.useCustomColors)&&!((f=this.data)==null||!f.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var c,f;return!!((c=this.data)==null?0:(f=c.header)==null?0:f.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var c,f;return!!((c=this.data)==null?0:(f=c.header)==null?0:f.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var c,f;return!!((c=this.data)==null?0:(f=c.header)==null?0:f.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.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}}});
ig.prototype.onUp=ig.prototype.onUp;ig.prototype.onDown=ig.prototype.onDown;ig.prototype.isExpandedChanged=ig.prototype.isExpandedChanged;ig.prototype.dataChanged=ig.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ig.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ig.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ig.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ig.prototype,"isExpanded",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ig.prototype,"disableExpand",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],ig.prototype,"isSearch",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],ig.prototype,"isWatch",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.D("design:type",Object)],ig.prototype,"showProminentLabel",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.D("design:type",Object)],ig.prototype,"showRightSideLabel",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ig.prototype,"hasVideoSummary",null);_.y([_.L({value:!1,reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ig.prototype,"hasLockupViewModel",null);_.y([_.L({reflectToAttribute:!0}),_.S("data","isWatch"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ig.prototype,"useCustomColors",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data","isExpanded"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ig.prototype,"showInfoButton",null);_.y([_.S("data","isExpanded"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ig.prototype,"showTimestamp",null);_.y([_.S("data","isExpanded"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ig.prototype,"showExpandedSubtitle",null);
_.y([_.S("data","isExpanded"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ig.prototype,"showThumbnail",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],ig.prototype,"useVppShoppingDestinationStyle",null);_.y([_.L(),_.D("design:type",Object)],ig.prototype,"toggleExpandableContent",void 0);_.y([_.AY("ytd-horizontal-card-list-renderer"),_.D("design:type",Object)],ig.prototype,"JSC$15054_cardList",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.D("design:type",Object)],ig.prototype,"useSquareThumbnail",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ig.prototype,"contentHiddenWithDisplayNone",void 0);_.y([_.S("isExpanded"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ig.prototype,"contentHidden",null);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ig.prototype,"dataChanged",null);_.y([_.m5("isExpanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ig.prototype,"isExpandedChanged",null);_.y([_.Ta("down"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],ig.prototype,"onDown",null);
_.y([_.Ta("up"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],ig.prototype,"onUp",null);_.y([_.v({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],ig);
_.h(ig,"ytd-expandable-metadata-renderer",function(){if(w7o!==void 0)return w7o;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return w7o=c},{mode:1});var Xtu,uuv=function(){if(Xtu!==void 0)return Xtu;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Xtu=c};_.g_(_.XS,"yt-avatar-stack-view-model",{props:{className:_.oM,data:_.oM,overrides:_.oM,isOverlay:_.oM,useMediumText:_.oM,decorations:_.oM,hideAvatar:_.oM}});_.w_("itemSectionRenderer","videoRenderer","ytd-video-renderer");var TH=function(){var c=_.z.apply(this,arguments)||this;c.disableExpand=!1;c.shouldShowChannelInfo=!1;c.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return c};
_.K(TH,_.z);_.r=TH.prototype;_.r.computeUseSearchUi=function(){var c,f;return this.isSearch||((c=this.data)==null?void 0:(f=c.style)==null?void 0:f.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.r.computeUseThreeLineTitle=function(){var c;return((c=this.data)==null?void 0:c.maxTitleLines)===3};
_.r.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.F("polymer_video_renderer_defer_menu")&&!nIu?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"}}}};
_.r.attached=function(){_.g1(this.hostElement,"blue-links",_.F("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.kE(_.r1(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var c=this.get("data.buttons.buttonRenderer.serviceEndpoint"),f;c&&((f=_.b(c.commandMetadata,_.z2))==null?0:f.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(c);this.updateInlinePreviewHoverListeners()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15059_inlinePreviewHoverListener=P9({mediaRenderer:this,lockupElement:this.JSC$15059_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.r.clearInlinePreviewHoverListeners=function(){var c;(c=this.JSC$15059_inlinePreviewHoverListener)==null||dO(c)};
_.r.onTextWrapperClick=function(c){var f,d,q=this.hideTranslation?(f=this.data)==null?void 0:f.untranslatedNavigationEndpoint:(d=this.data)==null?void 0:d.navigationEndpoint;f=_.ZW(_.x0(c),this.hostElement,["expandable-metadata"]);!q||f&&!_.F("expandable_metadata_fix_killswitch")||_.qY(_.x0(c),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.CZ(this.hostElement,"yt-navigate",{endpoint:q})};
_.r.computeThumbnailWidth=function(c,f,d,q,Z){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:q?Z==="MASSIVE"?600:Z==="BIG"?500:Z==="MEDIUM"?450:420:d?360:f?128:c?210:246};
_.r.computeUseBiggerThumbs=function(c){return c&&_.F("enable_desktop_search_bigger_thumbs")};
_.r.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.r.computeVideoStyle=function(){if(_.F("enable_video_style")){var c,f;return(c=this.data)==null?void 0:(f=c.style)==null?void 0:f.value}};
_.r.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.r.handleHideItemSectionVideosByIdCommand=function(c){var f;c=(f=_.b(c,O8_))==null?void 0:f.videoId;this.data&&this.data.videoId===c&&(this.isHidden=!0)};
_.r.getMetadataSnippetContainerClass=function(c){return c?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.r.computeTitleText=function(c,f,d){return c?d:f};
_.r.computeDescriptionSnippet=function(c,f,d){return c?d:f};
_.r.computeSnippetText=function(c,f,d){return c?d:f};
_.r.computeNavigationEndpoint=function(c,f){return c?f==null?void 0:f.untranslatedNavigationEndpoint:f==null?void 0:f.navigationEndpoint};
_.r.hideInlineTitleIcon=function(c,f){return c||!f};
_.ci.Object.defineProperties(TH.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 c;return(c=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?c:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return!!(this==null?0:(c=this.data)==null?0:(f=c.channelThumbnailSupportedRenderers)==null?0:(d=f.channelThumbnailWithLinkRenderer)==null?0:d.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var c;return!!_.b((c=this.data)==null?void 0:c.avatar,W13)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.JSC$15059_inlinePreviewHoverListener)==null?0:h6(c))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.ci.Object.defineProperties(TH,{template:{configurable:!0,enumerable:!0,get:function(){return uuv()}}});
TH.prototype.dataChanged=TH.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],TH.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],TH.prototype,"ytdDismissibleItemBehavior",void 0);
_.y([_.Q(_.Ui),_.D("design:type",Object)],TH.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],TH.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],TH.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],TH.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],TH.prototype,"isBackstageVideo",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],TH.prototype,"isPostCompactVideo",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],TH.prototype,"isHistory",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],TH.prototype,"isRichGridVideoPost",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],TH.prototype,"isHidden",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],TH.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.D("design:type",Boolean)],TH.prototype,"useSearchUi",void 0);_.y([_.L({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.D("design:type",Boolean)],TH.prototype,"useThreeLineTitle",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.D("design:type",Boolean)],TH.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.D("design:type",Object)],TH.prototype,"videoStyle",void 0);_.y([_.L({computed:"computeDisableExpand(videoStyle)"}),_.D("design:type",Object)],TH.prototype,"disableExpand",void 0);
_.y([_.L({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.D("design:type",Object)],TH.prototype,"shouldShowChannelInfo",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],TH.prototype,"biggerThumbsStyle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.D("design:type",String)],TH.prototype,"inlineTitleIcon",void 0);_.y([_.L({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.D("design:type",Object)],TH.prototype,"computedNavigationEndpoint",void 0);_.y([_.L({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(c,f){return _.Bb(c.entities,"searchVideoResultEntity",f)}}),
_.D("design:type",Object)],TH.prototype,"searchVideoResultEntity",void 0);_.y([_.AY("ytd-thumbnail"),_.D("design:type",HTMLElement)],TH.prototype,"thumbnail",void 0);_.y([_.AY("#dismissible"),_.D("design:type",HTMLElement)],TH.prototype,"JSC$15059_dismissibleMedia",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],TH.prototype,"dataChanged",null);
_.y([_.S("searchVideoResultEntity"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],TH.prototype,"hideTranslation",null);_.y([_.S("searchVideoResultEntity"),_.D("design:type",Array),_.D("design:paramtypes",[])],TH.prototype,"hiddenBadgeGroups",null);_.y([_.S("data","useAvatar"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],TH.prototype,"shouldShowChannelThumbnail",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],TH.prototype,"useAvatar",null);
_.y([_.S("lockupIsHovered"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],TH.prototype,"isHovered",null);_.y([_.v({is:"ytd-video-renderer",disableElementRegistration:!0})],TH);_.h(TH,"ytd-video-renderer",function(){return uuv()},{mode:_.lP("kevlar_poly_si_batch_j047")?1:2});var mH=function(){var c=_.z.apply(this,arguments)||this;c.editDialog=null;c.roundedContainer=!0;c.isLoading=!1;c.isRichGrid=!1;c.isRichGridRepost=!1;c.reduceSidePaddings=_.F("reduce_side_paddings_in_shelf");c.JSC$15066_spinnerEl=null;return c};
_.K(mH,_.z);_.r=mH.prototype;
_.r.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"}}}};
_.r.contentTextChanged=function(){this.expander.reset()};
_.r.dataChanged=function(){var c=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var f=0,d=this.data.actions&&this.data.actions.length;f<d;f++)this.openEditDialog(_.b(this.data.actions[f],bFF));if((f=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(f=this.get("buttonRenderer.hint.hintRenderer.hintId",f))&&f.startsWith("share-post-hint")){var q=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(q){_.M2.getInstance();var Z=rU(_.pC(_.HO("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.a7.addLowPriorityJob(function(){_.ll(c.hostElement,Z,q)})}}}};
_.r.updatePoll=function(c){c>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.r.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15066_spinnerEl||(this.JSC$15066_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.r1(this.hostElement).appendChild(this.JSC$15066_spinnerEl));this.JSC$15066_spinnerEl&&(this.JSC$15066_spinnerEl.active=this.isLoading)};
_.r.onYtNavigate=function(c){var f=this.get("updateCommentDialogEndpoint",c.detail.endpoint);f&&(this.openEditDialog(f),c.stopPropagation())};
_.r.onYtCommentboxDismiss=function(){this.editDialog=null};
_.r.onYtCommentPollRevert=function(c,f){f&&this.updatePoll(f.selectedChoiceIndex)};
_.r.onYtServiceRequestSent=function(c,f){var d;f.endpoint&&(_.b(f.endpoint,G2O)||_.b(f.endpoint,ofT)&&((d=_.b(f.endpoint,ofT))==null||!d.clientActions))&&(this.isLoading=!0);if(f.actions)for(c=0;c<f.actions.length;c++)d=f.actions[c],_.b(d,Sw)&&(d=this.get("updateBackstagePollAction.selectedChoiceIndex",d),d==void 0&&(d=-1),this.updatePoll(d))};
_.r.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.r.openEditDialog=function(c){c&&c.dialog&&(this.editDialog=c.dialog,c=this.editDialogEl.firstElementChild)&&(c.focus(),c.openDialog&&c.openDialog())};
_.r.computeIsPostHidden=function(c,f){return!!c||f};
_.r.computeSurfaceType=function(c){return c?c.toLowerCase().replace(/_/g,"-"):""};
_.r.computeUsesCompactLockup=function(c){return c==="BACKSTAGE_SURFACE_TYPE_HOME"||c==="BACKSTAGE_SURFACE_TYPE_SEARCH"||c==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||c==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||c==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||c==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.r.computeShowWithoutToolbar=function(c){return!c.actionButtons&&!c.actionMenu};
_.r.computePostAttachment=function(c){if(c.backstageAttachment){if(_.b(c.backstageAttachment,JBj))return"poll";if(_.b(c.backstageAttachment,TFo))return"quiz";if(_.b(c.backstageAttachment,_.ew))return"video";if(_.b(c.backstageAttachment,mBv))return"uploaded-videos";if(_.b(c.backstageAttachment,R8K))return c.contentText?"image":"image-only";if(_.b(c.backstageAttachment,ljy))return"playlist"}return"none"};
_.r.computePostTabIndex=function(c){return c?0:-1};
_.r.computeButtonTooltipPosition=function(c){return this.computeUsesCompactLockup(c)?"top":"bottom"};
_.r.computeHasText=function(c){return!(c==null||!c.contentText)};
_.r.onTap=function(c){var f,d;if(((f=this.data)==null?0:f.navigationEndpoint)&&((d=this.data)==null?void 0:d.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var q;((q=this.data)==null?0:q.navigationEndpoint)&&!_.qY(_.x0(c)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.ci.Object.defineProperties(mH.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.voteCount)||_.pC("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,JBj))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,mBv))}}});
mH.prototype.onYtServiceRequestCompleted=mH.prototype.onYtServiceRequestCompleted;mH.prototype.onYtServiceRequestSent=mH.prototype.onYtServiceRequestSent;mH.prototype.onYtCommentPollRevert=mH.prototype.onYtCommentPollRevert;mH.prototype.onYtCommentboxDismiss=mH.prototype.onYtCommentboxDismiss;mH.prototype.onYtNavigate=mH.prototype.onYtNavigate;mH.prototype.isLoadingChanged=mH.prototype.isLoadingChanged;mH.prototype.dataChanged=mH.prototype.dataChanged;mH.prototype.contentTextChanged=mH.prototype.contentTextChanged;
_.y([_.Q(_.WA),_.D("design:type",Object)],mH.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],mH.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],mH.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],mH.prototype,"editDialog",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mH.prototype,"roundedContainer",void 0);_.y([_.L(),_.D("design:type",Object)],mH.prototype,"isLoading",void 0);_.y([_.L({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.D("design:type",String)],mH.prototype,"surface",void 0);
_.y([_.L({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.D("design:type",Boolean)],mH.prototype,"usesCompactLockup",void 0);_.y([_.L({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],mH.prototype,"showWithoutToolbar",void 0);_.y([_.L({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.D("design:type",String)],mH.prototype,"attachment",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mH.prototype,"isRichGrid",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mH.prototype,"isRichGridRepost",void 0);_.y([_.L({reflectToAttribute:!0,value:_.F("use_better_post_dismissals")}),_.D("design:type",Boolean)],mH.prototype,"useBetterPostDismissals",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mH.prototype,"reduceSidePaddings",void 0);
_.y([_.L({computed:"computeHasText(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],mH.prototype,"hasText",void 0);_.y([_.AY("#expander"),_.D("design:type",Object)],mH.prototype,"expander",void 0);_.y([_.AY("#action-buttons"),_.D("design:type",Object)],mH.prototype,"actionButtons",void 0);_.y([_.AY("#edit-dialog"),_.D("design:type",HTMLElement)],mH.prototype,"editDialogEl",void 0);
_.y([_.m5("data.contentText"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mH.prototype,"contentTextChanged",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mH.prototype,"dataChanged",null);_.y([_.m5("isLoading"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mH.prototype,"isLoadingChanged",null);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],mH.prototype,"onYtNavigate",null);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mH.prototype,"onYtCommentboxDismiss",null);_.y([_.Ta("yt-comment-poll-revert"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],mH.prototype,"onYtCommentPollRevert",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],mH.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],mH.prototype,"onYtServiceRequestCompleted",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],mH.prototype,"voteCount",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],mH.prototype,"commentCount",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mH.prototype,"hasPoll",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mH.prototype,"hasUploadedVideo",null);_.y([_.v({is:"ytd-post-renderer",disableElementRegistration:!0})],mH);
_.h(mH,"ytd-post-renderer",function(){if(rfr!==void 0)return rfr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return rfr=c},{mode:1});var vNj;var hAH;var HX=function(){return _.z.apply(this,arguments)||this};
_.K(HX,_.z);HX.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cm.YtdHorizontalListBehavior),_.D("design:type",Object)],HX.prototype,"ytdHorizontalListBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],HX.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],HX.prototype,"data",void 0);
_.y([_.L({value:"$.items.children"}),_.D("design:type",String)],HX.prototype,"itemsPath",void 0);_.y([_.L({value:1}),_.D("design:type",Number)],HX.prototype,"initialCount",void 0);_.y([_.L(),_.D("design:type",String)],HX.prototype,"surface",void 0);_.y([_.v({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],HX);
_.h(HX,"ytd-post-multi-image-renderer",function(){if(hAH!==void 0)return hAH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return hAH=c},{mode:_.lP("kevlar_poly_si_batch_j079")?1:2});var wtv={"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"}}},Ad=function(){var c=_.z.apply(this,arguments)||this;c.hasInlineCommentSection=!1;c.editDialog=null;c.isLoading=!1;c.shouldHideAuthor=!1;c.shouldShowVideoTime=!1;
c.isInEngagementPanel=!1;c.hideBorder=!1;c.usesFullLockup=!1;c.shouldShowMenuInCompactView=!1;c.JSC$15082_spinnerEl=null;c.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return c};
_.K(Ad,_.z);_.r=Ad.prototype;_.r.configureRendererStamper=function(){return wtv};
_.r.computeIsPollHeaderEnabled=function(c){return(c==null?void 0:c.pollMetadataIcon)!=null};
_.r.getPublishTimeStampString=function(c,f){f=new Date((Number(f)-60*((new Date).getTimezoneOffset()-(new Date(Number(f)*1E3)).getTimezoneOffset()))*1E3);f=(new Rn(10)).format(f);if(c&&c.runs&&c.runs.length)for(var d=0;d<c.runs.length;d++)c.runs[d].text&&(c.runs[d].text=c.runs[d].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",f));return c};
_.r.created=function(){this.JSC$15082_spinnerEl=null};
_.r.contentTextChanged=function(){this.expander.reset()};
_.r.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var c;if((c=this.data)==null?0:c.actions){c=_.C(this.data.actions);for(var f=c.next();!f.done;f=c.next())this.openEditDialog(_.b(f.value,bFF))}};
_.r.handleSignalActionOpenPostCommentDialogAction=function(){_.r1(this.hostElement).querySelector("#action-buttons").reply()};
_.r.updatePoll=function(c,f){f&&this.set("data.pollMetadataVoteCountText",f);this.hasInlineCommentSection&&(c=c>=0,f=_.r1(this.hostElement).querySelector("#action-buttons"),c?f.reply():f.hideReplyDialog())};
_.r.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15082_spinnerEl||(this.JSC$15082_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.r1(this.hostElement).appendChild(this.JSC$15082_spinnerEl));this.JSC$15082_spinnerEl&&(this.JSC$15082_spinnerEl.active=this.isLoading)};
_.r.onYtNavigate=function(c){var f=this.get("updateCommentDialogEndpoint",c.detail.endpoint);f&&(this.openEditDialog(f),c.stopPropagation())};
_.r.onYtCommentboxDismiss=function(){this.editDialog=null};
_.r.onYtCommentPollRevert=function(c,f){f&&this.updatePoll(f.selectedChoiceIndex,f.totalVotes)};
_.r.onYtServiceRequestSent=function(c,f){c.stopPropagation();c=_.b(f.endpoint,ofT);if(_.b(f.endpoint,G2O)||c&&!c.clientActions)this.isLoading=!0;if(f.actions)for(c=0;c<f.actions.length;c++){var d=f.actions[c],q=_.b(d,Sw);q&&(d=this.get("updateBackstagePollAction.selectedChoiceIndex",d),d===void 0&&(d=-1),this.updatePoll(d,q.totalVotes))}};
_.r.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.r.openEditDialog=function(c){c&&c.dialog&&(this.editDialog=c.dialog,c=this.editDialogElement.firstElementChild)&&(c.focus(),c.openDialog&&c.openDialog())};
_.r.computeIsBodyHidden=function(c,f){return!!c||f};
_.ci.Object.defineProperties(Ad.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var c,f;if((c=this.data)==null?0:(f=c.pollMetadataIcon)==null?0:f.iconType)return _.Tu(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.voteCount)||_.pC("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,JBj))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,TFo))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,mBv))}}});
Ad.prototype.onYtServiceRequestCompleted=Ad.prototype.onYtServiceRequestCompleted;Ad.prototype.onYtServiceRequestSent=Ad.prototype.onYtServiceRequestSent;Ad.prototype.onYtCommentPollRevert=Ad.prototype.onYtCommentPollRevert;Ad.prototype.onYtCommentboxDismiss=Ad.prototype.onYtCommentboxDismiss;Ad.prototype.onYtNavigate=Ad.prototype.onYtNavigate;Ad.prototype.isLoadingChanged=Ad.prototype.isLoadingChanged;Ad.prototype.dataChanged=Ad.prototype.dataChanged;Ad.prototype.contentTextChanged=Ad.prototype.contentTextChanged;
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Ad.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ad.prototype,"rendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ad.prototype,"rendererstamperBehavior",void 0);_.y([_.AY("#contentTextExpander"),_.D("design:type",Object)],Ad.prototype,"expander",void 0);
_.y([_.AY("#edit-dialog"),_.D("design:type",Element)],Ad.prototype,"editDialogElement",void 0);_.y([_.L(),_.D("design:type",Object)],Ad.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Ad.prototype,"hasInlineCommentSection",void 0);_.y([_.L(),_.D("design:type",Object)],Ad.prototype,"editDialog",void 0);_.y([_.L(),_.D("design:type",Object)],Ad.prototype,"isLoading",void 0);
_.y([_.L({computed:"computeIsPollHeaderEnabled(data)"}),_.D("design:type",Boolean)],Ad.prototype,"isPollHeaderEnabled",void 0);_.y([_.L(),_.D("design:type",Object)],Ad.prototype,"shouldHideAuthor",void 0);_.y([_.L(),_.D("design:type",Object)],Ad.prototype,"shouldShowVideoTime",void 0);_.y([_.L(),_.D("design:type",Object)],Ad.prototype,"isInEngagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ad.prototype,"hideBorder",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ad.prototype,"usesFullLockup",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ad.prototype,"shouldShowMenuInCompactView",void 0);_.y([_.S("isInEngagementPanel"),_.D("design:type",Number),_.D("design:paramtypes",[])],Ad.prototype,"postTextMaxLines",null);_.y([_.S("data.icon.iconType"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ad.prototype,"pollIcon",null);
_.y([_.m5("data.contentText"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ad.prototype,"contentTextChanged",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ad.prototype,"dataChanged",null);_.y([_.m5("isLoading"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ad.prototype,"isLoadingChanged",null);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Ad.prototype,"onYtNavigate",null);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ad.prototype,"onYtCommentboxDismiss",null);_.y([_.Ta("yt-comment-poll-revert"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],Ad.prototype,"onYtCommentPollRevert",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],Ad.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Ad.prototype,"onYtServiceRequestCompleted",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ad.prototype,"voteCount",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ad.prototype,"commentCount",null);_.y([_.S("data.backstageAttachment"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ad.prototype,"hasPoll",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ad.prototype,"hasQuiz",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ad.prototype,"hasUploadedVideo",null);
_.y([_.v({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Ad);
_.h(Ad,"ytd-backstage-post-renderer",function(){if(vNj!==void 0)return vNj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return vNj=c},{mode:1});var yVj;var Y4=function(){var c=_.z.apply(this,arguments)||this;c.editDialog=null;c.showExpandButton=!1;c.isRichGrid=!1;c.usesFullLockup=!1;return c};
_.K(Y4,_.z);_.r=Y4.prototype;_.r.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"}}}};
_.r.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.r.computeShowExpandButton=function(c){return this.usesCompactLockup||c&&c.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.r.computeUsesCompactLockup=function(c){return!!c.condensedContent};
_.r.computeShowFullContentText=function(c){return!c};
_.r.onYtNavigate=function(c){c=this.get("updateCommentDialogEndpoint",c.detail.endpoint);this.openEditDialog(c)};
_.r.onYtCommentboxDismiss=function(){this.editDialog=null};
_.r.openEditDialog=function(c){c&&c.dialog&&(this.editDialog=c.dialog,c=this.repostEditDialogEl.firstElementChild)&&(c.focus(),c.openDialog&&c.openDialog())};
_.r.onTap=function(c){if(this.data){var f=null;this.usesCompactLockup&&!_.qY(_.x0(c)||[],this.hostElement,["YT-IMG-SHADOW"])?f=this.get("navigationEndpoint",this.data):c.target===this.moreButtonEl&&(f=this.get("navigationEndpoint",c.target.data));f&&_.CZ(this.hostElement,"yt-navigate",{endpoint:f})}};
Y4.prototype.onYtCommentboxDismiss=Y4.prototype.onYtCommentboxDismiss;Y4.prototype.onYtNavigate=Y4.prototype.onYtNavigate;Y4.prototype.dataChanged=Y4.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Y4.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],Y4.prototype,"editDialog",void 0);_.y([_.L({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Y4.prototype,"usesCompactLockup",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Y4.prototype,"showExpandButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Y4.prototype,"isRichGrid",void 0);
_.y([_.L({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Y4.prototype,"showFullContentText",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Y4.prototype,"usesFullLockup",void 0);_.y([_.AY("#more"),_.D("design:type",Object)],Y4.prototype,"moreButtonEl",void 0);_.y([_.AY("#repost-content-text"),_.D("design:type",HTMLElement)],Y4.prototype,"repostContentTextEl",void 0);
_.y([_.AY("#repost-edit-dialog"),_.D("design:type",HTMLElement)],Y4.prototype,"repostEditDialogEl",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Y4.prototype,"dataChanged",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Y4.prototype,"onYtNavigate",null);
_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Y4.prototype,"onYtCommentboxDismiss",null);_.y([_.v({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Y4);
_.h(Y4,"ytd-shared-post-renderer",function(){if(yVj!==void 0)return yVj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return yVj=c},{mode:1});var WiH;var D8_;var FH=function(){return _.z.apply(this,arguments)||this};
_.K(FH,_.z);FH.prototype.attached=function(){var c=this;this.networkStatusManager||(this.networkStatusManager=new _.I7,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){c.onlineHandler()}))};
FH.prototype.detached=function(){var c=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){c.onlineHandler()}),delete this.networkStatusManager)};
FH.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],FH.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],FH.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],FH);
_.h(FH,"ytd-reload-page-button-renderer",function(){if(D8_!==void 0)return D8_;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return D8_=c},{mode:1});var eAH={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"},td=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(td,_.z);_.r=td.prototype;_.r.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.r.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.r.computeHasBodyText=function(c){return!!c.bodyText};
_.r.computeButtons=function(c){var f=[];c.ctaButton&&f.push(c.ctaButton);c.secondaryButton&&f.push(c.secondaryButton);return f};
_.r.computeRendererStyle=function(c){return c.style?c.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():c.icon?"":"no-icon"};
_.r.getIconName=function(c,f){f=f===void 0?!1:f;if(c===void 0)return"";c=this.get("icon.iconType",c);var d;_.F("enable_hlp_client_icon_pick")?d=this.getThemedIcon(c,f):d=c;(f=eAH[d])||(f="yt-icons");return[f,d].join(":")};
_.r.getThemedIcon=function(c,f){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(c)?f?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(c)?f?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":c};
_.r.isThumbnail=function(c){return!!c.thumbnail};
_.r.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.r.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],td.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],td.prototype,"data",void 0);
_.y([_.L({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.D("design:type",String)],td.prototype,"rendererStyle",void 0);_.y([_.L({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.D("design:type",String)],td.prototype,"iconName",void 0);_.y([_.L({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],td.prototype,"thumbnail",void 0);_.y([_.L({computed:"computeButtons(data)"}),_.D("design:type",Array)],td.prototype,"buttons",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],td.prototype,"isDarkTheme",void 0);_.y([_.L({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],td.prototype,"hasBodyText",void 0);_.y([_.v({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],td);
_.h(td,"ytd-background-promo-renderer",function(){if(WiH!==void 0)return WiH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return WiH=c},{mode:1});var Nry;var bg=function(){var c=_.z.apply(this,arguments)||this;c.collections=_.F("web_modern_collections_v2");return c};
_.K(bg,_.z);_.ci.Object.defineProperties(bg.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q,Z,M;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(c=this.data)==null?void 0:(f=c.thumbnail)==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:(d=this.data)==null?void 0:(q=d.thumbnail)==null?void 0:q.vibrantColorPalette,darkColorPalette:(Z=this.data)==null?void 0:(M=Z.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bg.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],bg.prototype,"collections",void 0);_.y([_.S("data","collections"),_.D("design:type",Object),_.D("design:paramtypes",[])],bg.prototype,"collectionStack",null);_.y([_.v({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],bg);
_.h(bg,"ytd-compact-station-renderer",function(){if(Nry!==void 0)return Nry;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Nry=c},{mode:1});var ICy;var KQ=function(){var c=_.z.apply(this,arguments)||this;c.isRichGrid=!1;return c};
_.K(KQ,_.z);KQ.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]]"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],KQ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],KQ.prototype,"isRichGrid",void 0);_.y([_.v({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],KQ);
_.h(KQ,"ytd-grid-channel-renderer",function(){if(ICy!==void 0)return ICy;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ICy=c},{mode:1});var P_3;var E7=function(){return _.z.apply(this,arguments)||this};
_.K(E7,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],E7.prototype,"data",void 0);_.y([_.v({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],E7);
_.h(E7,"ytd-grid-movie-playlist-renderer",function(){if(P_3!==void 0)return P_3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return P_3=c},{mode:1});var RAT;var nQ=function(){var c=_.z.apply(this,arguments)||this;c.downloadProgress=0;c.transferState="TRANSFER_STATE_UNKNOWN";c.modernButtons=_.F("web_modern_buttons");c.useModernCollectionsV2=_.F("web_modern_collections_v2");return c};
_.K(nQ,_.z);nQ.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
nQ.prototype.configureRendererStamper=function(){return{"data.menu":A6}};
nQ.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
nQ.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.F("woffle_playlist_renderer_killswitch")){var c,f=hzn(this.entityInfo,this.transferState,this.downloadProgress,(c=this.data)==null?void 0:c.playlistId,this.isOnline);c=f.viewPlaylistText;var d=f.badges;f=f.thumbnailOverlays;this.isDownloads=!!c||!!d;this.set("data.viewPlaylistText",c);d&&d.length>0&&this.set("data.badges",d);f&&f.length>0&&this.set("data.thumbnailOverlays",
f)}};
_.ci.Object.defineProperties(nQ.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 c;return!((c=this.data)==null?0:c.menu)}}});
nQ.prototype.transferStateChanged=nQ.prototype.transferStateChanged;nQ.prototype.dataChanged=nQ.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],nQ.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],nQ.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L({selector:_.GGe,selectorArgs:["data.playlistId"]}),_.D("design:type",Object)],nQ.prototype,"downloadProgress",void 0);_.y([_.L({selector:_.wW,selectorArgs:["data.playlistId"]}),_.D("design:type",Object)],nQ.prototype,"transferState",void 0);_.y([_.L({selector:o2n,selectorArgs:["data.playlistId"]}),_.D("design:type",Object)],nQ.prototype,"entityInfo",void 0);_.y([_.L({selector:_.vb}),_.D("design:type",Boolean)],nQ.prototype,"isOnline",void 0);
_.y([_.L(),_.D("design:type",Object)],nQ.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],nQ.prototype,"downloadRenderData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],nQ.prototype,"modernButtons",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],nQ.prototype,"isDownloads",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],nQ.prototype,"useModernCollectionsV2",void 0);
_.y([_.S("transferState"),_.L({reflectToAttribute:!0}),_.D("design:type",String),_.D("design:paramtypes",[])],nQ.prototype,"downloadState",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],nQ.prototype,"menuHidden",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nQ.prototype,"dataChanged",null);
_.y([_.ba("transferState","downloadProgress","isOnline"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nQ.prototype,"transferStateChanged",null);_.y([_.v({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],nQ);
_.h(nQ,"ytd-grid-playlist-renderer",function(){if(RAT!==void 0)return RAT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return RAT=c},{mode:1});var U8H;var $4=function(){var c=_.z.apply(this,arguments)||this;c.collections=_.F("web_modern_collections_v2");return c};
_.K($4,_.z);$4.prototype.configureRendererStamper=function(){return{"data.menu":A6,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ci.Object.defineProperties($4.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q,Z,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(c=this.data)==null?void 0:(f=c.thumbnail)==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:(d=this.data)==null?void 0:(q=d.thumbnail)==null?void 0:q.vibrantColorPalette,darkColorPalette:(Z=this.data)==null?void 0:(M=Z.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],$4.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],$4.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$4.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],$4.prototype,"collections",void 0);_.y([_.S("data","collections"),_.D("design:type",Object),_.D("design:paramtypes",[])],$4.prototype,"collectionStack",null);_.y([_.v({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],$4);
_.h($4,"ytd-grid-radio-renderer",function(){if(U8H!==void 0)return U8H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return U8H=c},{mode:1});var pt_;var Q$=function(){var c=_.z.apply(this,arguments)||this;c.useModernCollectionsV2=_.F("web_modern_collections_v2");return c};
_.K(Q$,_.z);Q$.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Q$.prototype.computeNavigationEndpoint=function(c){return IGC(c==null?void 0:c.navigationEndpoint)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],Q$.prototype,"ytdLockupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Q$.prototype,"data",void 0);_.y([_.L({computed:"computeNavigationEndpoint(data)"}),_.D("design:type",Object)],Q$.prototype,"computedNavigationEndpoint",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Q$.prototype,"useModernCollectionsV2",void 0);_.y([_.v({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Q$);
_.h(Q$,"ytd-grid-show-renderer",function(){if(pt_!==void 0)return pt_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return pt_=c},{mode:1});var x8F;_.Sz=function(c){this.playerClient=c};
_.oNH=function(c,f,d){d=d===void 0?{}:d;return c.playerClient.setOption("ad",f,d)};
_.Sz.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Sz.prototype.executeCommand=function(c,f){this.getOptions().includes("executeCommand")?_.oNH(this,"executeCommand",{command:c,layoutId:f}):_.cZ("Calling executeCommand when adModule is not loaded")};var LQ=function(){return _.z.apply(this,arguments)||this};
_.K(LQ,_.z);LQ.prototype.getLayoutId=function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.layoutId:null};
LQ.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var c=_.Ca(),f=this.getLayoutId(),d=this.data.clickthroughEndpoint;c&&f&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?c.getPlayerPromise().then(function(q){(new _.Sz(q)).executeCommand(d,f)}):_.CZ(this.hostElement,"yt-navigate",{endpoint:d})}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],LQ.prototype,"data",void 0);_.y([_.v({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],LQ);
_.h(LQ,"ytd-shopping-companion-item-renderer",function(){if(x8F!==void 0)return x8F;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return x8F=c},{mode:1});var Gsu;var zH=function(){var c=_.z.apply(this,arguments)||this;c.isExpandableContent=!1;return c};
_.K(zH,_.z);_.ci.Object.defineProperties(zH.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.data)==null?void 0:c.price)||((f=this.data)==null?void 0:(d=f.dealsData)==null?void 0:d.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var c,f;if((c=this.data)!=null&&c.dealsData&&((f=this.data)==null||!f.priceReplacementText)){c=this.data.dealsData;var d,q,Z;return((d=c.salesData)==null?void 0:d.originalPrice)||((q=c.priceDropData)==null?void 0:q.referencePrice)||((Z=c.promotionData)==null?void 0:Z.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var c,f;return(c=this.data)==null?void 0:(f=c.dealsData)==null?void 0:f.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],zH.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zH.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zH.prototype,"isExpandableContent",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"showCta",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"ctaText",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"hasPriceTopPosition",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"hasPriceBottomPosition",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"useNewStyle",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"showPriceReplacementText",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"priceValue",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"showDeal",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"showAffiliateDisclaimer",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"useSaleStyle",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"useFromBrandCtaStyle",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"useFromVendorCtaStyle",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zH.prototype,"useShoppingCollectionCtaStyle",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],zH);
_.h(zH,"ytd-vertical-product-card-renderer",function(){if(Gsu!==void 0)return Gsu;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Gsu=c},{mode:1});var ctH;var Jd=function(){return _.z.apply(this,arguments)||this};
_.K(Jd,_.z);Jd.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],Jd.prototype,"ytdLockupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Jd.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Jd);
_.h(Jd,"ytd-grid-movie-renderer",function(){if(ctH!==void 0)return ctH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ctH=c},{mode:1});var fET;var aF=function(){var c=_.z.apply(this,arguments)||this;c.rounded=!0;c.itemStyle="small-item";return c};
_.K(aF,_.z);aF.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var c,f,d,q,Z=(f=_.b((c=this.data)==null?void 0:c.buttonCommand,_.EB))==null?void 0:(d=f.item)==null?void 0:(q=d.notificationTextRenderer)==null?void 0:q.successResponseText;Z&&_.zAl(this.hostElement,Z)}};
_.ci.Object.defineProperties(aF.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:c.isProductPlaceholder)!==void 0&&((f=this.data)==null?void 0:f.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.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}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],aF.prototype,"rounded",void 0);_.y([_.L(),_.D("design:type",Object)],aF.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],aF.prototype,"itemStyle",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],aF.prototype,"hasPrice",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],aF.prototype,"hasPriceReplacementText",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],aF.prototype,"hasAdditionalFeesText",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],aF.prototype,"hasAffiliateDisclaimer",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],aF.prototype,"isProductPlaceholder",null);
_.y([_.L(),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],aF.prototype,"hideOpenInNewIcon",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],aF.prototype,"ariaLabel",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],aF);
_.h(aF,"ytd-merch-shelf-item-renderer",function(){if(fET!==void 0)return fET;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return fET=c},{mode:1});var dtO=_.dN(function(c){return _.B("button-card-view-model",{el:_.Z7(_.NY(function(){return c.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return c.data().title},
role:"button"},_.B(_.z3,{model:{}}),_.B("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.B("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.B(_.T,{cond:function(){return c.data().image},
then:function(f){return _.B(_.jC,{data:f,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.B("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return c.data().title})))},"eb");_.F("web_button_view_model_wcw_registration_killswitch")||_.g_(dtO,"button-card-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){c=_.ch(c,{className:void 0});var f=c.data;c=c.className;var d=_.TZ(function(){return f().onTapCommand},void 0,"NprDr");
return _.B("ytd-shopping-item-card",{class:_.FY("ytdShoppingItemCardHost",c)},_.B(_.Re,{command:d,className:"ytdShoppingItemCardHostLink"},_.B("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.B(_.u7,{data:function(){return f().thumbnailViewModel}},{thumbnailViewModel:function(q){return _.B(_.fQ,{data:q.data,
aspectRatio:3})}})),_.B("div",null,_.B("p",{class:"ytdShoppingItemCardHostItemTitle"},_.B(_.J9,{text:function(){return f().itemTitle}})),_.B("p",{class:"ytdShoppingItemCardHostPrice"},_.B(_.J9,{text:function(){return f().priceOrStatus}})))))},"fb"),"ytd-shopping-item-card",{props:{data:_.oM,
className:_.oM}});var j6r={isAdsVideo:!0},qL3={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Zco={showPlayerControls:!1,videoPreviewDurationMs:15E3},M2T={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.F("web_shorts_imp_fullwidth_killswitch")};var dB=null,JVC={};var XtM="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(" "),V$={},uuY=(V$.FEwhat_to_watch="home",V$.FEhashtag="hashtag",V$.FEtrending="trending",V$.FEhistory="history",V$.SPunlimited="premium",V$.FEmemberships_and_purchases="paid_memberships",V$.SPredeem_code="redeem",V$.SPverify_location="locate",V$.SPminor_moment="minor_moment",
V$.FEmini_app_container="mini_app",V$.FEnews_destination="news",V$.SPopen_in_app="open_in_app",V$.FEexplore="explore",V$.FEsubscriptions="subscriptions",V$.FEsfv_audio_pivot="sfv_audio_pivot",V$.FEplaylist_aggregation="playlist_aggregation",V$);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");_.sX("init");var rtu=function(){},Ocv=_.dN(function(c){var f=c.data;
var d=c.inlineMetadata;var q=c.aspectRatio;var Z=c.scrimStyle;var M=c.className;var g=c.useDefaultStyle;var O=new rtu,l=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",m=_.TZ(function(){return(g==null?0:g())?l==="SHORTS_LOCKUP_STYLE_SLIM":f().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),H=_.TZ(function(){return _.LL(d)||m()||!1},void 0,"F6KaVc"),A=function(){return(Z==null?void 0:Z())!==void 0?Z==null?void 0:Z():1},Y=_.TZ(function(){return f().belowThumbnailMetadata||
!H()},void 0,"t2xwLe");
c=_.qd({visibilityCallback:function(R){var qN=f().onFirstVisible;R&&qN&&_.Ph(qN)},
showOption:{calledOnce:!0,state:"visible"}});var t=_.Z7(),E={},J=_.FY(function(){return m(),"shortsLockupViewModelHostThumbnailContainer"},(E.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.LL(q)===1},E.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.LL(q)===2},E.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!m()},E.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.F("web_shorts_2_by_3_lockups_study")&&
!_.F("desktop_search_enable_two_by_three_shorts_aspect_ratio")},E)),X=_.TZ(function(){if(_.LL(q)===1)return 1;
_.LL(q);return 2},void 0,"No1ZPc"),u,W=function(){if(O){var R;
(R=u)==null||dO(R);var qN;if(O.hostElement&&((qN=O.data)==null?0:qN.inlinePlayerData)){R=Object.assign({},M2T);var kl,BN;((kl=O.data)==null?void 0:(BN=kl.inlinePlayerData)==null?void 0:BN.maxPlaybackLengthSec)!==void 0&&(R.videoPreviewDurationMs=O.data.inlinePlayerData.maxPlaybackLengthSec*1E3);u=P9({mediaRenderer:O,lockupElement:O.hostElement,thumbnailElement:t.value,videoPreviewOpts:R})}}};
_.$k(function(){O&&(O.data=f(),W())},"ou3rue");
var p=_.TZ(function(){return f().thumbnail},void 0,"F8lWDd");
E=_.TZ(function(){return f().badge},void 0,"IWPLte");
var N=_.TZ(function(){return f().onTap},void 0,"G1C37d"),I={};
return _.B("ytm-shorts-lockup-view-model",{el:_.Z7(function(R){O&&(O.hostElement=R)},W,c),
class:_.FY("shortsLockupViewModelHost",M)},_.B(_.qD,null,_.B(_.Re,{command:N,className:_.FY("shortsLockupViewModelHostEndpoint",(I.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!Y()},I),"reel-item-endpoint",""),
ariaHidden:function(){return!H()},
tabIndex:function(){return H()?0:-1}},_.B("div",{el:t,
class:"shortsLockupViewModelHostThumbnailParentContainer"},_.B(_.T,{cond:p,then:function(){return _.B("div",{class:J},_.B(_.jC,{data:function(){var R;return(R=p==null?void 0:p())!=null?R:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.B(_.u7,{data:function(){return f().thumbnailViewModel}},{thumbnailViewModel:function(R){return _.B(_.fQ,{data:R.data,
aspectRatio:function(){return X()},
disableRounding:function(){return m()}})}}),null),_.B(_.T,{cond:H,
then:function(){return _.B(CE_,{data:f,scrimStyle:A,useDefaultStyle:g})}}),_.B(_.u7,{data:E},{badgeViewModel:function(R){return _.B(_.rA,{data:R.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.B(_.T,{cond:function(){return H()&&f().menuOnTap},
then:function(){return _.B(g8u,{data:f,inlineMetadata:!0})}}),_.B(_.T,{cond:Y,
then:function(){return _.B(kLK,{data:f,useDefaultStyle:g,inlineMetadata:H})}})))},"gb"),CE_=_.dN(function(c){var f=c.data;
var d=c.scrimStyle;var q=c.useDefaultStyle;var Z=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=q&&_.F("web_hide_primary_text_for_pivot_panel"),g=_.TZ(function(){return(q==null?0:q())?Z==="SHORTS_LOCKUP_STYLE_SLIM":f().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"NcNabd");
c={};c=_.FY("shortsLockupViewModelHostInlineMetadata",(c.shortsLockupViewModelHostMetadataRounded=function(){return!g()},c.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(d==null?void 0:d())===3&&!_.F("enable_shorts_lockup_new_scrim")},c.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(d==null?void 0:d())===3&&_.F("enable_shorts_lockup_new_scrim")},c.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(d==null?void 0:d())===2||(d==null?void 0:
d())===4},c.shortsLockupViewModelHostShowOverPlayer=function(){return!0},c),"image-overlay-text");
var O={};return _.B("div",{class:c},_.B("h3",{class:_.FY("shortsLockupViewModelHostMetadataTitle",(O.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(d==null?void 0:d())===4},O.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return f().belowThumbnailMetadata},O)),
"aria-label":function(){return f().accessibilityText}},_.B(_.T,{cond:function(){var l;
return!((l=f().overlayMetadata)==null||!l.primaryText)&&!M},
then:function(){return _.B(_.J9,{text:function(){var l;return(l=f().overlayMetadata)==null?void 0:l.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.B(_.T,{cond:function(){var l;
return(l=f().overlayMetadata)==null?void 0:l.secondaryText},
then:function(){return _.B(lEv,{data:f,scrimStyle:d,className:void 0})}}))},"hb"),kLK=_.dN(function(c){var f=c.data;
var d=c.useDefaultStyle;var q=c.inlineMetadata;var Z=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=_.TZ(function(){return(d==null?0:d())?Z==="SHORTS_LOCKUP_STYLE_SLIM":f().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"UBARTb"),g=_.Z7(),O;
c=_.Ks(function(t){if(_.W9(_.yH(t),g.value,["AVATAR-VIEW-MODEL"]))return!1;var E;(E=O)==null||E.click();return!1});
var l=_.TZ(function(){return f().belowThumbnailMetadata||f().overlayMetadata},void 0,"nD3Z0"),m=function(){return f().menuOnTap&&!q()},H=function(){var t;
return(t=l())==null?void 0:t.avatar},A={},Y={};
return _.B("div",{class:_.FY(function(){return M()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(A.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!H()},A.shortsLockupViewModelHostOutsideMetadataHasMenu=m,A)),
"on:click":c,el:g},_.B(_.u7,{data:H},{avatarViewModel:function(t){return _.B("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.B(_.ag,{data:t.data}))}}),_.B("div",null,_.B("h3",{class:_.FY("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(Y.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var t,E;
return!((t=l())==null?0:(E=t.primaryText)==null?0:E.content)},Y.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=q,Y)),
"aria-label":function(){return f().accessibilityText}},_.B(_.Re,{ref:function(t){return void(O=t)},
command:function(){return f().onTap},
className:_.FY("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var t,E;return(t=l())==null?void 0:(E=t.primaryText)==null?void 0:E.content}},_.B(_.T,{cond:function(){var t;
return(t=l())==null?void 0:t.primaryText},
then:function(t){return _.B(_.J9,{text:t,noEndpoints:!0,noStyleRuns:!0})}}))),_.B(_.T,{cond:function(){var t;
return(t=l())==null?void 0:t.secondaryText},
then:function(t){return _.B("div",{class:_.FY("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.B(_.J9,{text:t,noStyleRuns:!0}))}})),_.B(_.T,{cond:m,
then:function(){return _.B(g8u,{data:f,inlineMetadata:!1})}}))},"ib"),lEv=_.dN(function(c){var f=c.data;
var d=c.scrimStyle;c=c.className;var q={};return _.B("div",{class:_.FY((q.shortsLockupViewModelHostMetadataSubhead=function(){return(d==null?void 0:d())!==4},q.shortsLockupViewModelHostMetadataSubheadNew=_.F("enable_shorts_lockup_new_scrim"),q.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(d==null?void 0:d())===4},q),c),
"aria-hidden":"true"},_.B(_.J9,{text:function(){var Z;return(Z=f().overlayMetadata)==null?void 0:Z.secondaryText},
noStyleRuns:!0}))},"jb"),g8u=_.dN(function(c){var f=c.data;
var d=c.inlineMetadata;c={};c=_.FY((c.shortsLockupViewModelHostInlineMetadataMenu=function(){return d()},c.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!d()},c.shortsLockupViewModelHostShowOverPlayer=function(){return!0},c),"image-overlay-text");
return _.B("div",{class:c},_.B(_.iw,{data:function(){return{style:d()?"overlay":"mono",accessibilityLabel:f().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(q){q.preventDefault();q.stopPropagation();var Z=_.NV({elementsCommand:f().menuOnTap,forceNewState:!0});if(Z==null?0:Z.onclick)Z.onclick(q)}}},
iconName:"MORE_VERT"}))},"kb");var s6_=_.dN(function(c){var f=c.data;var d=c.inlineMetadata;var q=c.aspectRatio;var Z=c.scrimStyle;var M=c.className;var g=c.useDefaultStyle;c=_.TZ(function(){var O=f().entityId;return O?O.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.B("ytm-shorts-lockup-view-model-v2",{class:_.FY("shortsLockupViewModelHost",M)},_.B(_.k4,{contentId:c,aspectRatio:function(){return(q==null?void 0:q())===1?1:(q==null?void 0:q())===2?2:4}},function(){return _.B(Ocv,{data:f,
inlineMetadata:d,aspectRatio:q,scrimStyle:Z,className:M,useDefaultStyle:g})}))},"lb");_.g_(s6_,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Cs,inlineMetadata:_.Cs,aspectRatio:_.Cs,scrimStyle:_.Cs,className:_.Cs,useDefaultStyle:_.Cs}});var BCO=16/9*210,XH=function(){var c=_.z.apply(this,arguments)||this;c.isExpandableContent=!1;c.hideShelfHeader=!1;c.engagementPanel=!1;c.buttonClasses=["arrow"];c.isSearch=!1;c.disableScrollEventListener=!1;c.containsLockup=!1;c.overrideArrowPositionForProductCard=!1;c.overrideArrowPositionForShoppingItemCard=!1;c.overrideArrowPositionForReelItems=!1;c.overrideArrowPositionForGridMovie=!1;c.overrideArrowPositionToCenter=!1;c.isSearchPostShelf=!1;c.overrideArrowPositionForMixedShelf=!1;c.overrideArrowPositionForMixedShelfShortsOnly=
!1;c.hasBigThumbsReelItems=!1;c.shouldUseMixedListHeight=!1;c.shouldUseShortsListHeight=!1;c.gridVideoWidth=0;c.isSearchVodShelf=!1;c.disableWheelScroll=!1;c.sizing="COMPACT";c.shortsLockupAspectRatio=0;return c};
_.K(XH,_.z);_.r=XH.prototype;
_.r.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]]"}}}}};
_.r.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())};
_.r.computeInitialCountNumber=function(c){if(!c)return 6;var f=c.items.some(function(M){return!!M.topicRecommendationsChipRenderer}),d=c.items.some(function(M){return!!M.displayAdRenderer}),q=this.computeShouldListItemsHaveEqualHeight(c),Z=c.items.some(function(M){return!!M.gridPlaylistRenderer});
c=c.items.some(function(M){return!!M.shoppingItemCardViewModel});
return f?9:d?8:Z||q?10:c?7:6};
_.r.computeContainsPost=function(c){return!!c&&!!c.items&&c.items.some(function(f){return!!f.postRenderer})};
_.r.computeContainsLockup=function(){if(_.F("web_horizontal_list_lockup_arrow_killswitch"))return!1;var c,f;return(c=this.data)==null?void 0:(f=c.items)==null?void 0:f.some(function(d){return!!d.lockupViewModel})};
_.r.maybeUpdateLockupAspectRatio=function(){var c,f;if(this.computeContainsLockup()&&((c=this.data)==null?0:(f=c.items)==null?0:f.length)){var d;c=fCC((d=this.data.items[0].lockupViewModel)==null?void 0:d.contentType,this.data.force16By9ThumbnailAspectRatio);d=pFP(c);d=this.computeLockupWidth()/d;_.la(this.hostElement,{"--yt-horizontal-list-content-height":d+"px"})}};
_.r.computeOverrideArrowPositionForProductCard=function(c){if(this.isExpandableContent)return!1;var f;return!!(c==null?0:(f=c.items)==null?0:f.some(function(d){return!!d.verticalProductCardRenderer}))};
_.r.computeOverrideArrowPositionForShoppingItemCard=function(c){var f;return!!(c==null?0:(f=c.items)==null?0:f.some(function(d){return!!d.shoppingItemCardViewModel}))};
_.r.computeOverrideArrowPositionForReelItemRenderer=function(c){return this.containsReelItemRenderer(c)};
_.r.computeHasBigThumbsReelItems=function(c,f){return c&&this.containsReelItemRenderer(f)};
_.r.computeShouldListItemsHaveEqualHeight=function(c){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(c==null?void 0:c.itemSizeConstraint)};
_.r.computeShouldListItemsHaveShortsHeight=function(c){return this.computeShouldListItemsHaveEqualHeight(c)&&!this.containsGridVideoRenderer(c)};
_.r.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.r.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.r.containsReelItemRenderer=function(c){var f;return!!(c==null?0:(f=c.items)==null?0:f.some(function(d){return!(!d.reelItemRenderer&&!d.shortsLockupViewModel)}))};
_.r.containsGridVideoRenderer=function(c){var f;return!!(c==null?0:(f=c.items)==null?0:f.some(function(d){return!!d.gridVideoRenderer||!!d.lockupViewModel}))};
_.r.computeContainsGridMovieRenderer=function(c){var f;return!!(c==null?0:(f=c.items)==null?0:f.some(function(d){return!!d.gridMovieRenderer}))};
_.r.computeOverrideArrowPositionToCenter=function(c){return this.computeIsSearchPostShelf(c)};
_.r.computeIsSearchPostShelf=function(c){var f;return!!(c==null?0:(f=c.items)==null?0:f.some(function(d){var q,Z;return((Z=(q=d.postRenderer)==null?void 0:q.surface)!=null?Z:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.r.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(c){var f;return!!(c==null?0:(f=c.items)==null?0:f.some(function(d){var q,Z,M;return((M=(q=d.backgroundPromoRenderer)==null?void 0:(Z=q.style)==null?void 0:Z.value)!=null?M:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.r.computeIsSearchVodShelf=function(c,f){return c&&this.containsGridVideoRenderer(f)};
_.r.computeDisableWheelScroll=function(c,f){return this.computeIsSearchVodShelf(c,f)};
_.r.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.r.computeShortsLockupAspectRatio=function(){return 1};
_.r.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.la(this.hostElement,{"--ytd-reel-item-thumbnail-height":BCO+"px"})};
XH.prototype.dataChanged=XH.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cm.YtdHorizontalListBehavior),_.D("design:type",Object)],XH.prototype,"ytdHorizontalListBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],XH.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],XH.prototype,"isExpandableContent",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"hideShelfHeader",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"engagementPanel",void 0);_.y([_.L(),_.D("design:type",Array)],XH.prototype,"buttonClasses",void 0);_.y([_.L(),_.D("design:type",Object)],XH.prototype,"isSearch",void 0);
_.y([_.L(),_.D("design:type",Object)],XH.prototype,"disableScrollEventListener",void 0);_.y([_.L({computed:"computeInitialCountNumber(data)"}),_.D("design:type",Number)],XH.prototype,"initialCount",void 0);_.y([_.L({computed:"computeContainsPost(data)"}),_.D("design:type",Boolean)],XH.prototype,"supportComponentResize",void 0);_.y([_.L({computed:"computeContainsPost(data)"}),_.D("design:type",Boolean)],XH.prototype,"containsPost",void 0);
_.y([_.L({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"containsLockup",void 0);_.y([_.L({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],XH.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.y([_.L({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"overrideArrowPositionForProductCard",void 0);_.y([_.L({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.y([_.L({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"overrideArrowPositionForReelItems",void 0);_.y([_.L({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"overrideArrowPositionForGridMovie",void 0);
_.y([_.L({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"overrideArrowPositionToCenter",void 0);_.y([_.L({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"isSearchPostShelf",void 0);_.y([_.L({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.y([_.L({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.y([_.L({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"hasBigThumbsReelItems",void 0);
_.y([_.L({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"shouldUseMixedListHeight",void 0);_.y([_.L({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"shouldUseShortsListHeight",void 0);_.y([_.L({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"gridVideoWidth",void 0);
_.y([_.L({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"isSearchVodShelf",void 0);_.y([_.L({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.D("design:type",Object)],XH.prototype,"disableWheelScroll",void 0);_.y([_.L({computed:"computeSizing(isSearch)"}),_.D("design:type",Object)],XH.prototype,"sizing",void 0);
_.y([_.L({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.D("design:type",Object)],XH.prototype,"shortsLockupAspectRatio",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],XH.prototype,"dataChanged",null);
_.h(XH,"yt-horizontal-list-renderer",function(){if(tK_===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);tK_=c}c=tK_;return c},{mode:1});var ico;var TCo=[10,12,14,16,18,20,24,28,32,36],mtr=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],ug=function(){var c=_.z.apply(this,arguments)||this;c.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";c.hideOverflow=!1;c.useRoboto=!1;c.fontClass="";c.overflown=!1;c.actionMap={"yt-window-resized":"resize"};return c};
_.K(ug,_.z);_.r=ug.prototype;
_.r.attached=function(){var c=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();_.ol(this,function(){c.resize()});
if(!_.OJ){var f,d,q;(f=document)==null||(d=f.fonts)==null||(q=d.ready)==null||q.then(function(){c.resize()})}};
_.r.dataChanged=function(){this.resize()};
_.r.guideIsExpandedChanged=function(){this.resize()};
_.r.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 c=this.getMaxNumLines(),f=this.getMinFont(),d=this.getMaxFont(),q=this.useRoboto?TCo:mtr;for(q=q.filter(function(M){return M<=d&&M>=f});q.length>1;){var Z=Math.floor(q.length/2);
this.updateFontSize(q[Z]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=c)q=q.slice(Z,q.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>c)q=q.slice(0,Z);else break}this.updateFontSize(q[q.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(c)}};
_.r.handleOverflow=function(c){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>c&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",c.toString()))};
_.r.updateFontSize=function(c){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+c;this.textNode.classList.add(this.fontClass)};
_.r.getMaxFont=function(){var c=this.useRoboto?TCo:mtr;c=c[c.length-1];return this.maxFontSize&&this.maxFontSize<=c?this.maxFontSize:c};
_.r.getMinFont=function(){var c=(this.useRoboto?TCo:mtr)[0];return this.minFontSize&&this.minFontSize>=c?this.minFontSize:c};
_.r.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.r.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.r.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.xC(this.text).split("\n").length-1:Infinity};
_.r.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("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
ug.prototype.guideIsExpandedChanged=ug.prototype.guideIsExpandedChanged;ug.prototype.dataChanged=ug.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],ug.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ug.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ug.prototype,"text",void 0);
_.y([_.L(),_.D("design:type",String)],ug.prototype,"fontFamily",void 0);_.y([_.L(),_.D("design:type",Number)],ug.prototype,"maxWidth",void 0);_.y([_.L(),_.D("design:type",Number)],ug.prototype,"maxHeight",void 0);_.y([_.L(),_.D("design:type",Number)],ug.prototype,"maxFontSize",void 0);_.y([_.L(),_.D("design:type",Number)],ug.prototype,"minFontSize",void 0);_.y([_.L(),_.D("design:type",Number)],ug.prototype,"maxLines",void 0);_.y([_.L(),_.D("design:type",Object)],ug.prototype,"hideOverflow",void 0);
_.y([_.L({selector:_.w_G}),_.D("design:type",Boolean)],ug.prototype,"guideIsExpanded",void 0);_.y([_.AY("#container"),_.D("design:type",HTMLElement)],ug.prototype,"containerNode",void 0);_.y([_.AY("#text"),_.D("design:type",HTMLElement)],ug.prototype,"textNode",void 0);_.y([_.ba("text"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ug.prototype,"dataChanged",null);
_.y([_.ba("guideIsExpanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ug.prototype,"guideIsExpandedChanged",null);_.y([_.v({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],ug);
_.h(ug,"yt-dynamic-sizing-formatted-string",function(){if(ico!==void 0)return ico;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ico=c},{mode:1});var Hcj;_.At_=function(c){_.cN.call(this,c)};
_.K(_.At_,_.cN);var YLF=function(c){_.cN.call(this,c)};
_.K(YLF,_.At_);var vX=function(){return _.z.apply(this,arguments)||this};
_.K(vX,_.z);vX.prototype.onTapSuspendedChannel=function(){var c;if((c=this.data)!=null&&c.serviceEndpoint){var f,d;(c=(d=_.b((f=this.data)==null?void 0:f.serviceEndpoint,_.Ib))==null?void 0:d.url)?_.IV(c,void 0,void 0,window.top):(f=new YLF("Did not handle suspended account tap. No appealUrl."),_.VO(f))}else f=new YLF("Did not handle suspended account tap. No serviceEndpoint."),_.VO(f)};
vX.prototype.onTap=function(){var c=this,f=_.bP(),d,q=(d=_.te(f,{veType:7116}))!=null?d:void 0;_.ps(f,{visualElement:q});_.ev();this.saveRoleText();var Z;if((Z=this.data)==null?0:Z.youtubeSuspended)this.onTapSuspendedChannel();else{var M=!1,g,O;(f=(O=_.b((g=this.data)==null?void 0:g.serviceEndpoint,_.Z5K))==null?void 0:O.supportedTokens)&&f.forEach(function(l){if(l.accountSigninToken)if(M=!0,c.onAccountItemTap)c.onAccountItemTap(l.accountSigninToken.signinUrl);else _.IV(l.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!M){if(g=this.get("serviceEndpoint",this.data))M=!0,this.ytComponentBehavior.resolveCommand(g);M||_.XX(new YLF("Did not handle account switch tap. No token."))}}};
vX.prototype.saveRoleText=function(){if(this.data){var c=this.data,f=c.channelDelegationRole;if(f){var d,q=(d=_.b(c==null?void 0:c.serviceEndpoint,_.Z5K))==null?void 0:d.supportedTokens;if(!q){var Z,M,g,O;q=(Z=_.b(c==null?void 0:c.serviceEndpoint,_.Lz))==null?void 0:(M=Z.popup)==null?void 0:(g=M.confirmDialogRenderer)==null?void 0:(O=g.confirmButton)==null?void 0:O.buttonRenderer;var l;q=(l=_.b(q==null?void 0:q.command,_.BO))==null?void 0:l.commands;if(!q)return;var m;q=(m=_.b(q[1],_.Z5K))==null?
void 0:m.supportedTokens}if(q){l=void 0;m=_.C(q);for(q=m.next();!q.done;q=m.next())if(q=q.value,q.datasyncIdToken){l=q.datasyncIdToken.datasyncIdToken;break}if(l){var H;a:{if(_.r6C()&&(m=_.TWl(l+"::pom"))){m=new Lt(m);break a}m=void 0}(H=m)==null||H.set("role_text",f);if((YwN?YwN:window.location).href.indexOf("studio")!==-1&&(H=Cck())){m=H.src?(new URL(H.src)).origin:"*";var A;(A=H.contentWindow)==null||A.postMessage({action:"save_pom_role",datasyncId:l,roleText:f},m)}}}}}};
_.ci.Object.defineProperties(vX.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.data)==null?void 0:(f=c.accountPhoto)==null?void 0:f.thumbnails;return d&&d.length>0&&(d[0].height===36||d[0].height===48)?d[0].height:40}}});
vX.prototype.onTap=vX.prototype.onTap;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],vX.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],vX.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!1}),_.D("design:type",Function)],vX.prototype,"onAccountItemTap",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],vX.prototype,"enableRingForActiveAccount",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],vX.prototype,"thumbnailSize",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vX.prototype,"onTap",null);_.y([_.v({is:"ytd-account-item-renderer",disableElementRegistration:!0})],vX);
_.h(vX,"ytd-account-item-renderer",function(){if(Hcj!==void 0)return Hcj;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Hcj=c},{mode:1});var FxO;var hd=function(){return _.z.apply(this,arguments)||this};
_.K(hd,_.z);hd.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.ql().resolve(_.ZM).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hd.prototype,"data",void 0);_.y([_.v({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],hd);
_.h(hd,"ytd-identity-chip-renderer",function(){if(FxO!==void 0)return FxO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return FxO=c},{mode:1});var t2y;var bcT;var Kxu;var E8v;var wA=function(){var c=_.z.apply(this,arguments)||this;c.richItemMinWidth=_.rx("wn_grid_min_item_width",310);c.isShorts=!1;c.isWatchNext=!1;c.isExploreHub=!1;return c};
_.K(wA,_.z);_.ci.Object.defineProperties(wA.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var c=[],f=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.la(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var d;if(((d=this.data)==null?0:d.rows)&&f)for(f*=this.data.rows,d=0;d<f;d++)c.push({});return c}}});
_.y([_.Q(_.wt),_.D("design:type",Object)],wA.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.VR,value:3}),_.D("design:type",Number)],wA.prototype,"itemsPerRow",void 0);_.y([_.L({selector:_.hek,value:6}),_.D("design:type",Number)],wA.prototype,"slimItemsPerRow",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Number)],wA.prototype,"richItemMinWidth",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],wA.prototype,"miniMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wA.prototype,"isShorts",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wA.prototype,"isWatchNext",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wA.prototype,"isExploreHub",void 0);
_.y([_.S("isExploreHub"),_.L({reflectToAttribute:!0}),_.D("design:type",Object),_.D("design:paramtypes",[])],wA.prototype,"shimmerAnimation",null);_.y([_.S("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.D("design:type",Array),_.D("design:paramtypes",[])],wA.prototype,"cardItems",null);_.y([_.v({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],wA);
_.n8_=_.OD()(wA,"ytd-ghost-grid-renderer",function(){if(E8v===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);E8v=c}c=E8v;return c},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.g_(_.dN(function(c){var f=_.ch(c,{numberOfComments:3}).numberOfComments,d=_.ch(c,{isInitialLoad:!1}).isInitialLoad,q=_.ch(c,{engagementPanel:!1}).engagementPanel,Z=function(){return Math.min(Number(f==null?void 0:f())||20,20)};
return _.B("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.B(_.T,{cond:function(){return!(q==null?0:q())&&(d==null?void 0:d())},
then:function(){return _.B("div",{class:"ytGhostCommentsComments"},_.B("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.B("div",{class:_.FY("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.B("div",{class:_.FY("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.B("div",{class:"ytGhostCommentsGhostCard"},_.B("div",{class:"ytGhostCommentsAvatar"},_.B("div",{class:"ytGhostCommentsCircle"})),_.B("div",{class:"ytGhostCommentsComments"},_.B("div",{class:"ytGhostCommentsMeta"},
_.B("div",{class:_.FY("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.B("div",{class:_.FY("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.B("div",{class:"ytGhostCommentsComments"},_.B(_.bd,{each:function(){return Array((Z==null?void 0:Z())||3)}},function(){return _.B("div",{class:"ytGhostCommentsGhostCard"},_.B("div",{class:"ytGhostCommentsAvatar"},_.B("div",{class:"ytGhostCommentsCircle"})),_.B("div",{class:"ytGhostCommentsHost"},_.B("div",{class:"ytGhostCommentsMeta"},
_.B("div",{class:_.FY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.B("div",{class:_.FY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:_.FY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:"ytGhostCommentsGhostLikeDislike"},_.B("div",{class:_.FY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:_.FY("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"mb"),"yt-ghost-comments",{props:{numberOfComments:_.oM,
isInitialLoad:_.oM,engagementPanel:_.oM}});_.w_("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var y$=function(){var c=_.z.apply(this,arguments)||this;c.isOverridable=!1;c.spinnerActive=!1;c.showButton=!1;c.isCommentsSection=!1;c.engagementPanel=!0;c.isShortsGrid=!1;c.isShortsPage=!1;c.isWatchPage=!1;c.ghostCardExperimentEnabled=_.F("show_ghost_comments_shorts_watch")||_.F("show_ghost_comments_desktop_watch");c.originalShowButton=!1;c.endOfList=!1;return c};
_.K(y$,_.z);_.r=y$.prototype;_.r.resetIntersectionObserver=function(){var c;(c=this.observer)==null||c.disconnect();this.observer=void 0};
_.r.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var c,f;((c=this.data)==null?void 0:c.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((f=this.data)==null?0:f.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.r.initializeIntersectionObserver=function(){var c=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(f){f=_.C(f);for(var d=f.next();!d.done;d=f.next())d.value.isIntersecting&&(c.triggerContinuation(),c.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.r.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]]"}}}}}};
_.r.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var c;((c=this.data)==null?0:c.continuationEndpoint)&&(c=_.b(this.data.continuationEndpoint,_.Pr))&&this.ytdReduxBehavior.dispatch(_.CC({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:c}}))};
_.r.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.r.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.r.onServiceRequestCompleted=function(c,f){if(!_.F("kevlar_hide_spinner_on_empty_continuation_killswitch")){var d;(d=f.actions)!=null&&d.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.r.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.r.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.r.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.r.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var c=3;if(this.engagementPanel){var f,d,q;c=Math.floor(((((f=this.hostElement)==null?void 0:(d=f.parentElement)==null?void 0:(q=d.parentElement)==null?void 0:q.scrollHeight)||108)-108)/108);c=this.isInitialLoad?Math.max(c,3):3}f=[].concat(_.LT(this.hostElement.querySelectorAll("yt-ghost-comments")));f=_.C(f);for(d=f.next();!d.done;d=f.next())d=d.value,d.numberOfComments=c,d.isInitialLoad=this.isInitialLoad,d.engagementPanel=
this.engagementPanel}};
_.r.detached=function(){this.resetIntersectionObserver()};
_.ci.Object.defineProperties(y$.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}}});
y$.prototype.numberOfGhostCommentsChanged=y$.prototype.numberOfGhostCommentsChanged;y$.prototype.continuationTriggerOffsetChanged=y$.prototype.continuationTriggerOffsetChanged;y$.prototype.showButtonChanged=y$.prototype.showButtonChanged;y$.prototype.onYtServiceRequestCompletedForButtonRenderer=y$.prototype.onYtServiceRequestCompletedForButtonRenderer;y$.prototype.onServiceRequestCompleted=y$.prototype.onServiceRequestCompleted;y$.prototype.onYtServiceRequestSentForButtonRenderer=y$.prototype.onYtServiceRequestSentForButtonRenderer;
y$.prototype.observeData=y$.prototype.observeData;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],y$.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.RM.YtVisibilityBehavior),_.D("design:type",Object)],y$.prototype,"ytVisibilityBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],y$.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],y$.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],y$.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],y$.prototype,"isOverridable",void 0);_.y([_.L(),_.D("design:type",Object)],y$.prototype,"spinnerActive",void 0);_.y([_.L(),_.D("design:type",Object)],y$.prototype,"showButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],y$.prototype,"isCommentsSection",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],y$.prototype,"engagementPanel",void 0);_.y([_.L(),_.D("design:type",Object)],y$.prototype,"isShortsGrid",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.DI4}),_.D("design:type",Object)],y$.prototype,"isShortsPage",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.WZG}),_.D("design:type",Object)],y$.prototype,"isWatchPage",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],y$.prototype,"ghostCardExperimentEnabled",void 0);
_.y([_.L(),_.D("design:type",Number)],y$.prototype,"continuationTriggerOffset",void 0);_.y([_.L(),_.D("design:type",Object)],y$.prototype,"endOfList",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],y$.prototype,"isInitialLoad",void 0);_.y([_.AY("ytd-button-renderer"),_.D("design:type",_.jt)],y$.prototype,"buttonRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],y$.prototype,"buttonOverrides",void 0);
_.y([_.L(),_.S("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.D("design:type",Object),_.D("design:paramtypes",[])],y$.prototype,"isShortsCommentsSection",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],y$.prototype,"observeData",null);
_.y([_.Ta("yt-service-request-sent-button-renderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],y$.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],y$.prototype,"onServiceRequestCompleted",null);
_.y([_.Ta("yt-service-request-completed-button-renderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],y$.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.y([_.ba("showButton"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],y$.prototype,"showButtonChanged",null);
_.y([_.ba("continuationTriggerOffset"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],y$.prototype,"continuationTriggerOffsetChanged",null);_.y([_.m5("isInitialLoad","engagementPanel"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],y$.prototype,"numberOfGhostCommentsChanged",null);_.y([_.v({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],y$);
_.h(y$,"ytd-continuation-item-renderer",function(){if(Kxu!==void 0)return Kxu;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Kxu=c},{mode:1});var $t_;var WX=function(){var c=_.z.apply(this,arguments)||this;c.downloadProgress=0;c.transferState="TRANSFER_STATE_UNKNOWN";c.downloadState="DOWNLOAD_STATE_UNKNOWN";c.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";c.offlineVideoPolicyExpirationTimestamp=0;c.downloadedVideoPlaybackPosition=0;return c};
_.K(WX,_.z);WX.prototype.dataChanged=function(){var c;this.videoData=_.b((c=this.data)==null?void 0:c.renderer,vfj);this.transferStateChanged()};
WX.prototype.downloadProgressChanged=function(){if(this.entityInfo){var c=Object.assign({},this.videoData),f=wLM(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),d=f.publishedTimeText,q=f.badges;c.shortViewCountText=f.shortViewCountText;c.publishedTimeText=d;c.badges=q;this.set("videoData",c)}};
WX.prototype.transferStateChanged=function(){if(this.entityInfo){var c=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",f=_.bI(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!tE(this.entityInfo.policyEntity),d=Object.assign({},this.videoData),q=wLM(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Z=q.publishedTimeText,M=q.badges;d.shortViewCountText=
q.shortViewCountText;d.publishedTimeText=Z;d.badges=M;d.isDisabled=f;d.isWatched=this.downloadedVideoPlaybackPosition>0;d.navigationEndpoint=f?void 0:eir(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var g;c&&((g=this.videoData)==null?0:g.videoId)&&!_.F("dl_resume_click_killswitch")&&(d.isDisabled=!1,d.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});d.thumbnailOverlays=vHY(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",d)}};
WX.prototype.transferStateChanged=WX.prototype.transferStateChanged;WX.prototype.downloadProgressChanged=WX.prototype.downloadProgressChanged;WX.prototype.dataChanged=WX.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],WX.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],WX.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],WX.prototype,"videoData",void 0);_.y([_.L({selector:yR,selectorArgs:["videoData.videoId"]}),_.D("design:type",Object)],WX.prototype,"downloadProgress",void 0);_.y([_.L(),_.D("design:type",Number)],WX.prototype,"relativeDateReference",void 0);_.y([_.L({selector:_.hE,selectorArgs:["videoData.videoId"]}),_.D("design:type",Object)],WX.prototype,"transferState",void 0);
_.y([_.L({selector:gHr,selectorArgs:["videoData.videoId"]}),_.D("design:type",Object)],WX.prototype,"downloadState",void 0);_.y([_.L({selector:Rek,selectorArgs:["videoData.videoId"]}),_.D("design:type",Object)],WX.prototype,"offlinePolicyAction",void 0);_.y([_.L({selector:UIN,selectorArgs:["videoData.videoId"]}),_.D("design:type",Object)],WX.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.y([_.L({selector:Wb,selectorArgs:["videoData.videoId"]}),_.D("design:type",Object)],WX.prototype,"downloadedVideoPlaybackPosition",void 0);_.y([_.L({selector:xIN,selectorArgs:["videoData.videoId"]}),_.D("design:type",Object)],WX.prototype,"entityInfo",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],WX.prototype,"isDownloading",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],WX.prototype,"dataChanged",null);
_.y([_.ba("downloadProgress"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],WX.prototype,"downloadProgressChanged",null);_.y([_.ba("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],WX.prototype,"transferStateChanged",null);
_.y([_.v({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],WX);
_.h(WX,"ytd-downloaded-video-grid-video-renderer",function(){if($t_!==void 0)return $t_;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $t_=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var Q6T;var DT=function(){};
DT.prototype.resolve=function(c,f){var d=this;return _.k(function(q){return q.yield(d.resolveCommand(c,f),0)})};var SLF,ez;SLF=sLY(function(c){return c.targetId},{shouldPersist:!1});
ez=SLF.updateData;_.LxH=SLF.useUpdatableData;var zPu,JtF;zPu=sLY(function(c){return c.targetId});
JtF=zPu.updateData;_.aE3=zPu.useUpdatableData;var V2r=wtY.bind(null,ez),X6_=wtY.bind(null,JtF);(function(c,f,d){var q=_.b(d==null?void 0:d.updatedRenderer,_.sEH);return q?c({targetId:f},function(){return q}):!1}).bind(null,ez);var Ng=function(){};
_.K(Ng,DT);Ng.prototype.resolveCommand=function(c){var f;return _.k(function(d){f=_.b(c,_.hbn);if(!f)return d.return();V2r(f.targetId,f);_.Fm(d)})};var IF=function(){var c=_.Fj.apply(this,arguments)||this;c.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return c};
_.K(IF,_.Fj);_.r=IF.prototype;_.r.configureContinuationPathMap=function(){return{}};
_.r.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.r.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.r.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.r.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.r.handleAppendContinuationItemsAction=function(c){var f=_.b(c,_.hqy);if(this.data&&this.data.targetId&&f&&this.continuationPathMap&&f.targetId===this.data.targetId){var d=JcY(c),q=d&&this.continuationPathMap[d];if(q&&d)if(c=this.get(q,this.data)){a:{for(d=0;d<c.length;d++){var Z=c[d],M=void 0,g=!!_.b((M=_.b(Z,K6y))==null?void 0:M.content,_.aj_);if(_.b(Z,_.jJ)||g)break a}d=c.length}q="data."+q;f.continuationItems?d===c.length-1?(this.pop(q),this.push.apply(this,[q].concat(_.LT(f.continuationItems)))):
d===c.length?this.push.apply(this,[q].concat(_.LT(f.continuationItems))):this.splice.apply(this,[q,d,1].concat(_.LT(f.continuationItems))):this.splice(q,d,1);(_.F("web_enable_voting_animation")||_.F("enable_music_web_cairo_voting_animation"))&&_.CZ(this.hostElement,"yt-append-continuation-items-action-finished");_.CZ(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.u6(new _.KD("append continuation items does not exist",d));else _.u6(new _.KD("append continuation path does not exist",
d))}};
_.r.handleReloadContinuationItemsCommand=function(c){var f=_.b(c,_.hbn);if(this.data&&f){if(_.F("web_client_explore_hub")||_.F("web_explore_hub_on_hover")||_.F("web_client_explore_hub_on_hover"))try{_.ql().resolve(Ng).resolveCommand(c)}catch(M){}if(this.data.targetId&&this.continuationPathMap&&f.targetId===this.data.targetId&&(!_.F("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||f.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var d,q=(d=f.slot)==null?void 0:
d.replace("RELOAD_CONTINUATION_SLOT_","");d=(c=JcY(c)+"-"+(q==null?void 0:q.toLowerCase()))&&this.continuationPathMap[c];if(!d||!c||!q)_.u6(new _.KD("reload continuation path does not exist",c));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(f)){if(f.replaceWithFirstItem){var Z;this.set("data."+d,((Z=f.continuationItems)==null?0:Z.length)?f.continuationItems[0]:{})}else this.set("data."+d,f.continuationItems?f.continuationItems:[]);this.continuationIsReloading=
!1;_.CZ(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.r.handleShowReloadUiCommand=function(c){c=_.b(c,cMO);var f;((f=this.data)==null?0:f.targetId)&&(c==null?0:c.targetId)&&c.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
IF.prototype.observeData=IF.prototype.observeData;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],IF.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],IF.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],IF.prototype,"data",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],IF.prototype,"continuationIsReloading",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IF.prototype,"observeData",null);_.y([_.tY()],IF);_.PX=[_.N2.YtComponentBehavior,_.Cy.YtActionHandlerBehavior,IF.prototype];_.RF={};_.RF.YtNextContinuationBehavior=[_.jI.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",_.ia(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.ia(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(c,f){c.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,f,{}):(c={locationRetrieved:function(d){this.makeNextContinuationRequest_(d,f,{})}.bind(this)},_.CZ(this.hostElement,"yt-retrieve-location",c))},
makeNextContinuationRequest_:function(c,f,d){_.Xt("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();c=f(c);var q;this.canUseContextualNetworkManager_()&&(q=this.getNetworkManager());q||(q=_.ql().resolve(_.Xw));f=_.xZ.instance;if(_.hk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&f){q=_.cS([c.startsWith("/")?c.substr(1):c]);var Z,M;d=_.y9(f,{},q,d==null?void 0:(Z=d.context)==null?void 0:(M=Z.clickTracking)==null?void 0:M.clickTrackingParams).then(function(g){return{response:g}})}else d=
this.nextContinuation.usePost?q.postData(c,d):q.fetchData(c);
d.then(this.updateNextContinuationData_.bind(this,c));this.pendingContinuationRequest_=d;this.startListeningForNavigate_()},
updateNextContinuationData_:function(c,f){var d=this;_.Xt("ncl");this.pendingContinuationRequest_=void 0;if(f){var q={};this.nextContinuation&&(q=this.nextContinuation);if(f.response&&f.response.continuationContents&&f.response.continuationContents[q.continuationType]){c=f.response.continuationContents[q.continuationType];var Z=q.header||"data.header",M=c[q.responseHeaderKey||"header"];M&&this.set(Z,M);Z=q.contentsArray||"data.contents";M=this.getContents_(c,q.responseContentsKey||"contents")||[];
this.pathExists_(Z)?(M.unshift(Z),this.push.apply(this,M)):this.set(Z,M);M&&(yVr(_.bP(),f.response,this.hostElement,function(g){_.gS(d.hostElement,"yt-store-grafted-ve-action",[g])}),_.CZ(this.hostElement,"yt-next-continuation-data-updated",{continuationData:f,
page:this,contentsArray:Z}));this.set(q.continuationsArray||"data.continuations",c[q.responseContinuationsKey||"continuations"]||[])}else f.reload?_.u6(new _.KD("Reloading from continuation is unsupported")):f.responseContext&&f.responseContext.errors||(delete f.xsrf_token,delete f.timing,delete f.endpoint,delete f.csn,f.responseContext&&delete f.responseContext.serviceTrackingParams,Z={request:_.U6(c,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(f).sort()},f.response&&(Z.responseContentKeys=
Object.keys(f.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Z.continuationType=this.nextContinuation.continuationType.substr(0,256)),f=new _.KD("Malformed continuation",Z),c.indexOf("/comment_service_ajax")==0?_.u6(f):_.VO(f)),this.set(q.continuationsArray||"data.continuations",[])}else _.XX(new _.KD("Missing continuation response",c))},
getContents_:function(c,f){f=f.split(".");return _.zV.getValueByKeys(c,f)},
pathExists_:function(c){var f=this;c=c.toString().split(".");for(var d=0;d<c.length;d++)if(f=f[c[d]],f===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var u3r;var v8H;var U7=function(){var c=_.z.apply(this,arguments)||this;c.triggered_=!1;return c};
_.K(U7,_.z);_.r=U7.prototype;_.r.attached=function(){this.maybeTriggerAutoload()};
_.r.detached=function(){this.hasBeenTriggered_=!1};
_.r.onPrescanVisible=function(){this.onShow()};
_.r.onShow=function(){this.showButton||this.trigger()};
_.r.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.CZ(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.r.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.r.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.r.computeLabel_=function(c,f){return c===void 0?null:c.label||!f?c.label:this.showMoreText_};
_.r.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.r.getContinuationUrl=function(c){var f={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(f.itct=this.data.clickTrackingParams);return _.p9(c,f)};
_.r.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
U7.prototype.showButtonChanged_=U7.prototype.showButtonChanged_;U7.prototype.observeData_=U7.prototype.observeData_;_.y([_.Q(_.RM.YtVisibilityBehavior),_.D("design:type",Object)],U7.prototype,"ytVisibilityBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],U7.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],U7.prototype,"showButton",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],U7.prototype,"showIcon",void 0);_.y([_.L({computed:"computeLabel_(data, showButton)"}),_.D("design:type",Object)],U7.prototype,"label",void 0);_.y([_.L({value:_.pC(_.HO("SHOW_MORE",void 0,"Show More"))}),_.D("design:type",Object)],U7.prototype,"showMoreText_",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],U7.prototype,"spinnerActive_",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],U7.prototype,"hasBeenTriggered_",void 0);
_.y([_.L({value:void 0}),_.D("design:type",String)],U7.prototype,"observeVisibleOption",void 0);_.y([_.L({value:void 0}),_.D("design:type",String)],U7.prototype,"observeHiddenOption",void 0);_.y([_.L({value:"observe_once"}),_.D("design:type",Object)],U7.prototype,"observePrescanOption",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],U7.prototype,"observeData_",null);
_.y([_.m5("showButton"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],U7.prototype,"showButtonChanged_",null);_.y([_.vj({is:"yt-next-continuation",disableElementRegistration:!0})],U7);
_.h(U7,"yt-next-continuation",function(){if(v8H===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;u3r===void 0&&(u3r=document.createElement("template"));var q=u3r;d.call(f,q.content.cloneNode(!0),c.content.firstChild);v8H=c}c=v8H;return c},{mode:2});var hPF;var w6j;var pQ=function(){return _.z.apply(this,arguments)||this};
_.K(pQ,_.z);pQ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pQ.prototype,"data",void 0);_.y([_.vj({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],pQ);
_.h(pQ,"yt-music-pass-small-feature-info-renderer",function(){if(w6j===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;hPF===void 0&&(hPF=document.createElement("template"));var q=hPF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);w6j=c}c=w6j;return c},{mode:2});_.w_("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var x4=function(){var c=_.z.apply(this,arguments)||this;c.isCollapsible=!1;c.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return c};
_.K(x4,_.z);_.r=x4.prototype;_.r.computeIsCollapsible=function(c){return!!(((c==null?0:c.showMoreText)||(c==null?0:c.visibleRowCount))&&(c==null?0:c.isCollapsible))};
_.r.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"}}}};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.r.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.r.onIronResize=function(){var c=this;_.Ia(this,"updateGridInitItems",function(){c.maybeUpdateInitialItemsDisplayed()})};
_.r.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var c=this.getVisibleWidth();c!==0&&(c=Math.floor(c/214)*(this.data.visibleRowCount||2),c!==this.initialCount&&(this.initialCount=c,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.r.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.r.computeExpandVisible=function(c,f,d,q){return c&&f&&d&&!!q&&!!q.showMoreText};
_.r.computeShowMoreButton=function(c){return{text:c,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.r.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.r.initCollapsed=function(){var c=this;this.ytLazyListBehavior.canShowMore=!1;var f;(this.collapsed=!((f=this.data)==null||!f.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.ol(this,function(){_.kt(c.hostElement,"yt-refit-popups-action")})};
_.r.fillRestIfNotCollapsible=function(){var c=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!c||this.ytLazyListBehavior.fillRemainingListItems()};
_.r.computeViewAllHidden=function(c,f){return c||!f.viewAllEndpoint};
x4.prototype.fillRestIfNotCollapsible=x4.prototype.fillRestIfNotCollapsible;x4.prototype.initCollapsed=x4.prototype.initCollapsed;x4.prototype.onIronResize=x4.prototype.onIronResize;x4.prototype.persistentGuideChanged=x4.prototype.persistentGuideChanged;_.y([_.Q(_.aJ),_.D("design:type",Object)],x4.prototype,"ironResizableBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],x4.prototype,"ytLazyListBehavior",void 0);_.y([_.Q(_.RF.YtNextContinuationBehavior),_.D("design:type",Object)],x4.prototype,"ytNextContinuationBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],x4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.y([_.Q(_.PX),_.D("design:type",Object)],x4.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],x4.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],x4.prototype,"collapsed",void 0);_.y([_.L(),_.D("design:type",Number)],x4.prototype,"initialCount",void 0);_.y([_.L({computed:"computeShowMoreButton(data.showMoreText)"}),_.D("design:type",Object)],x4.prototype,"showMoreButton",void 0);
_.y([_.L({computed:"computeIsCollapsible(data)"}),_.D("design:type",Object)],x4.prototype,"isCollapsible",void 0);_.y([_.AY("#items"),_.D("design:type",HTMLElement)],x4.prototype,"items",void 0);_.y([_.ba("guidePersistentAndVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],x4.prototype,"persistentGuideChanged",null);_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],x4.prototype,"onIronResize",null);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],x4.prototype,"initCollapsed",null);_.y([_.ba("canShowMore"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],x4.prototype,"fillRestIfNotCollapsible",null);_.y([_.v({is:"ytd-grid-renderer",disableElementRegistration:!0})],x4);
_.h(x4,"ytd-grid-renderer",function(){if(Q6T!==void 0)return Q6T;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Q6T=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var oF=function(){return _.z.apply(this,arguments)||this};
_.K(oF,_.z);
oF.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"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],oF.prototype,"data",void 0);_.y([_.v({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],oF);
_.h(oF,"ytd-carousel-ad-renderer",function(){if(bcT!==void 0)return bcT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return bcT=c},{mode:1});var yty;var GH=function(){return _.z.apply(this,arguments)||this};
_.K(GH,_.z);_.r=GH.prototype;_.r.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"}}}};
_.r.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,GH.JSC$15258_CLICK_LOCATION_ID_MAP))};
_.r.onSitelinkTap=function(c){c.stopPropagation();var f,d,q=c==null?void 0:(f=c.model)==null?void 0:(d=f.item)==null?void 0:d.onTap;q&&this.ytSparklesClickLocationBehavior.handleClick(q,c,!1)};
_.r.onTap=function(c){var f=this.data&&this.data.content&&this.data.content.navigationEndpoint;f&&this.ytSparklesClickLocationBehavior.handleClick(f,c,!1)};
_.r.sendImpression=function(){if(this.data&&this.data.content)for(var c=_.C(this.data.content.impressionEndpoints||[]),f=c.next();!f.done;f=c.next()){f=_.C(f.value.loggingUrls||[]);for(var d=f.next();!d.done;d=f.next())d=d.value,d.baseUrl&&NR(d.baseUrl,d.attributionSrcMode)}};
GH.prototype.onTap=GH.prototype.onTap;GH.prototype.dataChanged=GH.prototype.dataChanged;GH.JSC$15258_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"]]);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],GH.prototype,"ytSparklesClickLocationBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],GH.prototype,"data",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],GH.prototype,"dataChanged",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],GH.prototype,"onTap",null);_.y([_.v({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],GH);
_.h(GH,"ytd-promoted-sparkles-text-search-renderer",function(){if(yty!==void 0)return yty;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return yty=c},{mode:1});var Wxy;var cB=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-mute-ad-action":"handleMuteAd"};return c};
_.K(cB,_.z);_.r=cB.prototype;
_.r.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]]"}}}}}};
_.r.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.r.computeHasAdBadge=function(c){return!(c==null||!c.adBadge)};
_.r.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",cB.JSC$15267_DEFAULT_AD_BADGE_RENDERER),_.g1(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,cB.JSC$15267_CLICK_LOCATION_ID_MAP))};
_.r.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var c;(((c=this.data)==null?void 0:c.impressionCommands)||[]).forEach(function(f){f=_.C(f.loggingUrls||[]);for(var d=f.next();!d.done;d=f.next())d=d.value,d.baseUrl&&NR(d.baseUrl,d.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.r.onTap=function(c){var f,d=(f=this.data)==null?void 0:f.navigationEndpoint,q;(f=(q=this.data)==null?void 0:q.thumbnailNavigationEndpoint)&&_.ZW(_.x0(c),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(f,c,!1):d&&this.ytSparklesClickLocationBehavior.handleClick(d,c,!1)};
_.r.handleMuteAd=function(){this.collapsed=!0};
_.r.attached=function(){var c=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&c.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){_.F("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ci.Object.defineProperties(cB.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var c;return!(((c=this.data)==null?void 0:c.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var c;return!(((c=this.data)==null?void 0:c.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.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}}});
cB.prototype.dataChanged=cB.prototype.dataChanged;
cB.JSC$15267_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"]]);
cB.JSC$15267_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.HO("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.y([_.Q(hx),_.D("design:type",Object)],cB.prototype,"ytdActiveViewBehavior",void 0);
_.y([_.Q([_.Cy.YtActionHandlerBehavior]),_.D("design:type",Object)],cB.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],cB.prototype,"ytSparklesClickLocationBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],cB.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],cB.prototype,"collapsed",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.D("design:type",Boolean)],cB.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],cB.prototype,"biggerThumbsStyle",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.D("design:type",Boolean)],cB.prototype,"fixAlignmentSmallScreens",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs_square")}}),
_.D("design:type",Boolean)],cB.prototype,"useBiggerThumbsSquare",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.mediaHoverOverlay"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],cB.prototype,"hideHoverOverlay",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],cB.prototype,"webSearchLayout",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],cB.prototype,"webSearchLayoutLandscape",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],cB.prototype,"webSearchLayoutSquare",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],cB.prototype,"sparklesCtaNoBackground",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.actionButton"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],cB.prototype,"hideActionButton",null);_.y([_.L({computed:"computeButtonOverride(uiUpdate)"}),_.D("design:type",Object)],cB.prototype,"buttonOverride",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.D("design:type",Boolean)],cB.prototype,"hasNewAdBadge",void 0);_.y([_.S("data.promotedSparklesWebStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],cB.prototype,"useRoundedBadge",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],cB.prototype,"dataChanged",null);_.y([_.v({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],cB);
_.h(cB,"ytd-promoted-sparkles-web-renderer",function(){if(Wxy!==void 0)return Wxy;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Wxy=c},{mode:1});var DtK;var fl=function(){var c=_.z.apply(this,arguments)||this;c.isInlinePreviewTriggered=!1;c.enableMonoStyle=_.F("enable_default_mono_cta_migration_web_client");return c};
_.K(fl,_.z);_.r=fl.prototype;_.r.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]]"}}}}}};
_.r.computeShowCta=function(c){return!(c==null||!c.ctaRenderer)};
_.r.onCtaClick=function(){var c,f,d,q=(c=this.data)==null?void 0:(f=c.ctaRenderer)==null?void 0:(d=f.buttonRenderer)==null?void 0:d.command;q&&this.ytComponentBehavior.resolveCommand(q)};
_.r.onWatchButtonClick=function(){var c,f,d,q=(c=this.data)==null?void 0:(f=c.watchButtonRenderer)==null?void 0:(d=f.buttonRenderer)==null?void 0:d.command;q&&this.ytComponentBehavior.resolveCommand(q)};
_.r.onTap=function(){};
_.r.dataChanged=function(){if(this.data){var c;_.F("enable_inline_muted_playback_on_web_search")&&((c=this.data)==null?0:c.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",fl.JSC$15271_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",fl.JSC$15271_DEFAULT_CLICK_LOCATION_BEHAVIOR,fl.JSC$15271_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(c=this.thumbnail.getElementsByTagName("a"),c.length>0&&(c=c.namedItem("thumbnail"))&&c.removeAttribute("href"))}};
_.r.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var c=_.C(this.data.impressionUrls),f=c.next();!f.done;f=c.next())f=f.value,mVh(f,Aer(f));this.data.impressionsFired=!0}};
_.r.maybeComputeHref=function(){return null};
_.r.computeIsShortDR=function(c){return!(c==null||!c.watchButtonRenderer)&&!(c==null||!c.ctaRenderer)&&!!this.enableShortDR};
_.r.computeIsNewUiOrShortDr=function(c){return!!this.enableUiUpdate||this.computeIsShortDR(c)};
_.r.computeIsNewUiAndNotShortDr=function(c){return!!this.enableUiUpdate&&!this.computeIsShortDR(c)};
_.r.computeHideAvatar=function(c){return!((c==null?0:c.channelThumbnail)&&this.computeIsNewUiOrShortDr(c))};
_.r.onClick=function(c){var f,d=(f=this.data)==null?void 0:f.navigationEndpoint;if(this.enableShortDR&&d&&(_.b(d,_.pe)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(d,c,!!_.b(d,_.pe)),c.stopPropagation();else if(d&&_.b(d,_.pe))this.ytSparklesClickLocationBehavior.handleClick(d,c,!0),c.stopPropagation();else if(d){var q,Z;((q=this.data)==null?0:q.navigationEndpoint)&&((Z=this.data)==null?0:Z.adPlaybackContextParams)&&gXM(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(d)}};
_.r.computeButtonOverride=function(c){if(this.computeIsNewUiOrShortDr(c))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.r.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.r.onThumbnailContainerClick=function(c){this.onClick(c)};
_.r.computeThumbnailWidth=function(c,f){return c?f==="MASSIVE"?600:f==="BIG"?500:f==="MEDIUM"?450:420:360};
_.r.attached=function(){var c=this,f;_.F("enable_inline_muted_playback_on_web_search")&&((f=this.data)==null?0:f.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&c.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){var c;_.F("enable_inline_muted_playback_on_web_search")&&((c=this.data)==null?0:c.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15272_inlinePreviewHoverListener=P9({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:j6r})};
_.r.clearInlinePreviewHoverListeners=function(){var c;(c=this.JSC$15272_inlinePreviewHoverListener)==null||dO(c)};
fl.prototype.dataChanged=fl.prototype.dataChanged;fl.prototype.onTap=fl.prototype.onTap;fl.JSC$15271_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.HO("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};fl.JSC$15271_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
fl.JSC$15271_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"}];_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.y([_.Q(hx),_.D("design:type",Object)],fl.prototype,"ytdActiveViewBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],fl.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],fl.prototype,"ytSparklesClickLocationBehavior",void 0);
_.y([_.AY("#main-container"),_.D("design:type",HTMLElement)],fl.prototype,"mainContainer",void 0);_.y([_.L(),_.D("design:type",Object)],fl.prototype,"isInlinePreviewTriggered",void 0);_.y([_.L(),_.D("design:type",Object)],fl.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.D("design:type",Boolean)],fl.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_video_display_compact_button_group_for_desktop_search")}}),
_.D("design:type",Boolean)],fl.prototype,"enableShortDR",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_vac_ui_update_for_desktop_search")}}),
_.D("design:type",Boolean)],fl.prototype,"enableUiUpdate",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],fl.prototype,"biggerThumbsStyle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.D("design:type",Boolean)],fl.prototype,"showCta",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.D("design:type",Boolean)],fl.prototype,"isShortDr",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.D("design:type",Boolean)],fl.prototype,"isShortDrOrNewUi",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.D("design:type",Boolean)],fl.prototype,"isNewUiAndNotShortDr",void 0);_.y([_.L({computed:"computeButtonOverride(data)"}),_.D("design:type",Object)],fl.prototype,"buttonOverride",void 0);_.y([_.L({computed:"computeSecondaryButtonOverride(data)"}),_.D("design:type",Object)],fl.prototype,"secondaryButtonOverride",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],fl.prototype,"enableMonoStyle",void 0);
_.y([_.AY("ytd-thumbnail"),_.D("design:type",HTMLElement)],fl.prototype,"thumbnail",void 0);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fl.prototype,"onTap",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fl.prototype,"dataChanged",null);_.y([_.v({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],fl);
_.h(fl,"ytd-promoted-video-renderer",function(){if(DtK!==void 0)return DtK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return DtK=c},{mode:1});var ePH;var dG=function(){var c=_.z.apply(this,arguments)||this;c.useRoundedBadge=!0;c.sitelinkIds=[];return c};
_.K(dG,_.z);_.r=dG.prototype;
_.r.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]]"}}}}}};
_.r.dataChanged=function(){var c;(c=this.data)!=null&&c.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,dG.JSC$15277_CLICK_LOCATION_ID_MAP)};
_.r.onTap=function(c){var f,d=(f=this.data)==null?void 0:f.navigationCommand;d&&!_.ZW(_.x0(c),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(d,c,!1)};
_.r.onSitelinkTap=function(c){var f,d,q=c==null?void 0:(f=c.model)==null?void 0:(d=f.item)==null?void 0:d.onTap;q&&this.ytSparklesClickLocationBehavior.handleClick(q,c,!1)};
_.r.configureSitelinkClickTargets=function(){var c=this,f,d,q=(f=this.data)==null?void 0:(d=f.clickLocationTargets)==null?void 0:d.find(function(Z){return Z.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
q&&_.r1(this.hostElement).querySelectorAll(".sitelink").forEach(function(Z){_.g1(Z,"yt-simple-endpoint",!0);c.sitelinkIds.push(Z.id);var M,g;(M=c.ytSparklesClickLocationBehavior)==null||(g=M.clickTargetMap)==null||g.set(Z.id,q)})};
_.r.sendImpression=function(){var c,f,d=((c=this.data)==null?void 0:(f=c.impressionCommand)==null?void 0:f.loggingUrls)||[];c=_.C(d);for(f=c.next();!f.done;f=c.next())f=f.value,f.baseUrl&&NR(f.baseUrl,f.attributionSrcMode)};
_.r.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.ci.Object.defineProperties(dG.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
dG.prototype.onTap=dG.prototype.onTap;dG.prototype.dataChanged=dG.prototype.dataChanged;dG.JSC$15277_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"]]);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],dG.prototype,"ytSparklesClickLocationBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dG.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],dG.prototype,"showFavicon",null);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.D("design:type",Boolean)],dG.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],dG.prototype,"biggerThumbsStyle",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.D("design:type",Boolean)],dG.prototype,"enableThumbnailScalingFix",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],dG.prototype,"dataChanged",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],dG.prototype,"onTap",null);_.y([_.v({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],dG);
_.h(dG,"ytd-text-image-no-button-layout-renderer",function(){if(ePH!==void 0)return ePH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ePH=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var NCj;var jy=function(){var c=_.z.apply(this,arguments)||this;c.isInlinePlaybackState=!1;c.uiUpdate=_.F("web_modern_buttons");c.hideCta=_.F("hide_cta_for_home_web_video_ads");c.noBottomMargin=!1;c.animateInTimeStamp=_.rx("hide_cta_for_home_web_video_ads_animate_in_time");c.animateInCta=!1;c.isHovered=!1;c.enableMonoStyle=_.F("enable_default_mono_cta_migration_web_client");c.player=null;c.JSC$15284_playerEvents=new Map;c.JSC$15284_preventProgressSaveTimer=null;c.delayedCtaJobId=null;return c};
_.K(jy,_.z);_.r=jy.prototype;_.r.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]]"}}}}}};
_.r.attached=function(){this.JSC$15284_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15284_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.F("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.r.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15284_playerEvents)};
_.r.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",jy.JSC$15283_DEFAULT_CLICK_LOCATION_BEHAVIOR,jy.JSC$15283_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.r.hoverChanged=function(){var c=this;this.delayedCtaJobId&&(_.a7.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.F("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.QH(_.a7,function(){c.buttonContainer.classList.add("show-delayed-buttons")},_.rx("delayed_cta_on_web_delay_milliseconds")))};
_.r.setPlayer=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return(f=_.kt(c.hostElement,"yt-get-inline-preview-player-action"))&&f[0]?d.yield(f[0].getPlayerPromise(),3):d.jumpTo(0);c.player=d.yieldResult;c.ytPlayerListenerBehavior.listenToPlayerEvents(c.player,c.JSC$15284_playerEvents);_.Fm(d)})};
_.r.onPlaybackStart=function(){var c=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15284_preventProgressSaveTimer=_.Br(_.a7,function(){c.JSC$15284_preventProgressSaveTimer=null},1E4))};
_.r.onVideoProgress=function(c){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&c>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.r.resetPreventProgressSaveTimer=function(){_.a7.cancelJob(this.JSC$15284_preventProgressSaveTimer);this.JSC$15284_preventProgressSaveTimer=null};
_.r.getSimpleString=function(c){return _.xC(c)};
_.r.onClick=function(c){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var f,d=(f=this.data)==null?void 0:f.navigationEndpoint,q;f=(q=this.data)==null?void 0:q.channelEndpoint;var Z,M;(q=(M=_.b((Z=this.data)==null?void 0:Z.adCtaButton,_.WQ))==null?void 0:M.command)&&_.ZW(_.x0(c),this.hostElement,["call-to-action"])?_.F("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(q,c,!1):f&&_.ZW(_.x0(c),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(f,c,!1):!_.ZW(_.x0(c),this.hostElement,["secondary-button"])&&d&&(_.F("enable_short_dr_for_desktop_launchable")?(Z=!!_.b(d,_.pe),this.isInlinePlaybackState&&Z&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(d,c,Z)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(d,c,!0)))}};
_.r.updateWatchEndpointStartTime=function(){var c,f;this.player&&((c=this.data)==null?0:c.inlinePlaybackEndpoint)&&((f=this.data)==null?0:f.navigationEndpoint)&&!this.JSC$15284_preventProgressSaveTimer&&(c=Math.floor(this.player.getCurrentTime()),_.b(this.data.navigationEndpoint,_.pe).startTimeSeconds=c,_.b(this.data.inlinePlaybackEndpoint,_.pe).startTimeSeconds=c)};
_.r.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.r.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.ci.Object.defineProperties(jy.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 c,f;return!((c=this.data)==null||!c.watchButton)&&!((f=this.data)==null||!f.adCtaButton)}}});
jy.prototype.hoverChanged=jy.prototype.hoverChanged;jy.prototype.dataChanged=jy.prototype.dataChanged;
jy.JSC$15283_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"]]);
jy.JSC$15283_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"}];
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],jy.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],jy.prototype,"ytSparklesClickLocationBehavior",void 0);
_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],jy.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],jy.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jy.prototype,"isInlinePlaybackState",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],jy.prototype,"miniMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jy.prototype,"uiUpdate",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jy.prototype,"hideCta",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jy.prototype,"noBottomMargin",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jy.prototype,"animateInCta",void 0);_.y([_.L({computed:"computeButtonOverride(uiUpdate)"}),_.D("design:type",Object)],jy.prototype,"buttonOverride",void 0);
_.y([_.L({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.D("design:type",Object)],jy.prototype,"secondaryButtonOverride",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jy.prototype,"isHovered",void 0);_.y([_.AY("#button-container"),_.D("design:type",HTMLElement)],jy.prototype,"buttonContainer",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],jy.prototype,"typographyBump",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("typographyBump"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],jy.prototype,"typographyBumpV2",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jy.prototype,"enableMonoStyle",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jy.prototype,"dataChanged",null);
_.y([_.m5("isHovered"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jy.prototype,"hoverChanged",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],jy.prototype,"isButtonGroup",null);_.y([_.v({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],jy);
_.h(jy,"ytd-ad-inline-playback-meta-block",function(){if(NCj!==void 0)return NCj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return NCj=c},{mode:_.lP("kevlar_poly_si_batch_j065")?1:2});var IE_;var qv=function(){var c=_.z.apply(this,arguments)||this;c.noBottomMargin=!1;c.isInlinePreviewTriggered=!1;c.JSC$15289_activeViewMeasurementDataResolver=_.c9();return c};
_.K(qv,_.z);_.r=qv.prototype;_.r.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.r.attached=function(){var c=this;this.updateInlinePreviewHoverListeners();this.JSC$15289_activeViewMeasurementDataResolver.promise.then(function(f){c.ytdActiveViewBehavior.enableActiveViewMeasurement(f,15)});
_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&c.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){this.clearInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15289_inlinePreviewHoverListener=P9({mediaRenderer:this,lockupElement:this.JSC$15289_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:j6r})};
_.r.clearInlinePreviewHoverListeners=function(){var c;(c=this.JSC$15289_inlinePreviewHoverListener)==null||dO(c)};
_.r.onDataChanged=function(){var c;((c=this.data)==null?0:c.activeView)&&this.JSC$15289_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",qv.JSC$15288_DEFAULT_CLICK_LOCATION_BEHAVIOR,qv.JSC$15288_CLICK_LOCATION_ID_MAP);this.thumbnail&&(c=this.thumbnail.getElementsByTagName("a"),c.length>0&&(c=c.namedItem("thumbnail"))&&c.removeAttribute("href"));var f;if((f=this.data)==
null?0:f.forceImpAutoplay){var d;(d=this.JSC$15289_inlinePreviewHoverListener)==null||YEn(d)}};
_.r.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.r.onThumbnailContainerClick=function(c){if(this.data&&this.data.navigationEndpoint){var f,d=(f=this.data)==null?void 0:f.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(d,c,!!_.b(d,_.pe));c.stopPropagation()}};
_.r.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.r.impressionLog=function(){var c=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var f,d,q=(d=_.b((f=this.data)==null?void 0:f.onImpression,_.BO))==null?void 0:d.commands;q&&(q.forEach(function(Z){Z.clickTrackingParams&&delete Z.clickTrackingParams;c.ytComponentBehavior.resolveCommand(Z)}),this.data.impressionsFired=!0)}};
_.ci.Object.defineProperties(qv.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.JSC$15289_inlinePreviewHoverListener)==null?0:h6(c))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
qv.prototype.onTypographyBumpChanged=qv.prototype.onTypographyBumpChanged;qv.prototype.onDataChanged=qv.prototype.onDataChanged;qv.JSC$15288_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);qv.JSC$15288_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"}];
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.y([_.Q(hx),_.D("design:type",Object)],qv.prototype,"ytdActiveViewBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],qv.prototype,"ytdDismissibleItemBehavior",void 0);
_.y([_.Q(_.Ui),_.D("design:type",Object)],qv.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],qv.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],qv.prototype,"ytSparklesClickLocationBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qv.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],qv.prototype,"noBottomMargin",void 0);
_.y([_.L(),_.D("design:type",Object)],qv.prototype,"isInlinePreviewTriggered",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],qv.prototype,"miniMode",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],qv.prototype,"typographyBump",void 0);_.y([_.AY("ytd-thumbnail"),_.D("design:type",HTMLElement)],qv.prototype,"thumbnail",void 0);_.y([_.AY("#dismissible"),_.D("design:type",HTMLElement)],qv.prototype,"JSC$15289_dismissibleMedia",void 0);
_.y([_.AY("ytd-ad-inline-playback-meta-block"),_.D("design:type",HTMLElement)],qv.prototype,"adInlinePlaybackMetaBlock",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qv.prototype,"onDataChanged",null);_.y([_.ba("typographyBump"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qv.prototype,"onTypographyBumpChanged",null);
_.y([_.S("lockupIsHovered"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],qv.prototype,"isHovered",null);_.y([_.v({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],qv);
_.h(qv,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(IE_!==void 0)return IE_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return IE_=c},{mode:1});var PEj;var Zv=function(){var c=_.z.apply(this,arguments)||this;c.isInlinePreviewTriggered=!1;c.JSC$15292_activeViewMeasurementDataResolver=_.c9();return c};
_.K(Zv,_.z);_.r=Zv.prototype;_.r.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.r.attached=function(){var c=this;this.updateInlinePreviewHoverListeners();this.JSC$15292_activeViewMeasurementDataResolver.promise.then(function(f){c.ytdActiveViewBehavior.enableActiveViewMeasurement(f,15)})};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15292_inlinePreviewHoverListener=P9({mediaRenderer:this,lockupElement:this.JSC$15292_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:j6r})};
_.r.clearInlinePreviewHoverListeners=function(){var c;(c=this.JSC$15292_inlinePreviewHoverListener)==null||dO(c)};
_.r.onDataChanged=function(){var c;((c=this.data)==null?0:c.activeView)&&this.JSC$15292_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Zv.JSC$15291_DEFAULT_CLICK_LOCATION_BEHAVIOR,Zv.JSC$15291_CLICK_LOCATION_ID_MAP);this.thumbnail&&(c=this.thumbnail.getElementsByTagName("a"),c.length>0&&(c=c.namedItem("thumbnail"))&&c.removeAttribute("href"))};
_.r.onThumbnailContainerClick=function(c){if(this.data&&this.data.navigationEndpoint){var f,d=(f=this.data)==null?void 0:f.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(d,c,!0);c.stopPropagation()}};
_.r.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.r.impressionLog=function(){var c=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var f,d,q=(d=_.b((f=this.data)==null?void 0:f.onImpression,_.BO))==null?void 0:d.commands;q&&(q.forEach(function(Z){Z.clickTrackingParams&&delete Z.clickTrackingParams;_.ql().resolve(_.ZM).resolveCommand(Z,{form:{element:c.hostElement}})}),this.data.impressionsFired=!0)}};
_.ci.Object.defineProperties(Zv.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.JSC$15292_inlinePreviewHoverListener)==null?0:h6(c))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Zv.prototype.onDataChanged=Zv.prototype.onDataChanged;Zv.JSC$15291_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Zv.JSC$15291_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"}];_.y([_.Q(hx),_.D("design:type",Object)],Zv.prototype,"ytdActiveViewBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],Zv.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],Zv.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Zv.prototype,"ytdReduxBehavior",void 0);
_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],Zv.prototype,"ytSparklesClickLocationBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Zv.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Zv.prototype,"isInlinePreviewTriggered",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],Zv.prototype,"miniMode",void 0);_.y([_.AY("ytd-thumbnail"),_.D("design:type",HTMLElement)],Zv.prototype,"thumbnail",void 0);
_.y([_.AY("#dismissible"),_.D("design:type",HTMLElement)],Zv.prototype,"JSC$15292_dismissibleMedia",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zv.prototype,"onDataChanged",null);_.y([_.S("lockupIsHovered"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Zv.prototype,"isHovered",null);_.y([_.v({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Zv);
_.h(Zv,"ytd-video-display-full-buttoned-renderer",function(){if(PEj!==void 0)return PEj;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return PEj=c},{mode:1});var gB=function(c,f,d,q){q=q===void 0?!1:q;_.cN.call(this,c);this.adsClientErrorMessage=d;this.aggressivelySample=q;this.args=[];f&&this.args.push(f)};
_.K(gB,_.cN);var rB=function(c,f,d,q){q=q===void 0?!1:q;_.cN.call(this,c);this.adsClientErrorMessage=d;this.aggressivelySample=q;this.args=[];f&&this.args.push(f)};
_.K(rB,_.cN);var RP3=function(c){_.ES.call(this);var f=this;this.initializationFunction=c;this.instance=null;this.addOnDisposeCallback(function(){_.GV(f.instance);f.instance=null})};
_.K(RP3,_.ES);RP3.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.cZ("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var U8N=function(){var c=new Map;[].forEach(function(f){c.set(f.JSC$30253_getType(),f)});
this.getters=c};new Promise(function(){});var eAN=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"]]),WiN=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"}]]),Ut_=function(c){this.experimentApiProvider=c;c=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=c<.1};var Mv=function(c,f,d,q){_.ES.call(this);this.adsControlFlowEventListeners=f;this.adEventLogger=d;this.experimentApiProvider=q;this.adsControlFlowManagerHelper=c(this,this,this,this,this);_.ln(this,this.adsControlFlowManagerHelper);c=_.C(f);for(f=c.next();!f.done;f=c.next())_.ln(this,f.value)};
_.K(Mv,_.ES);var p6_=function(c,f,d,q){rG(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",f,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,q);c=_.C(c.adsControlFlowEventListeners);for(q=c.next();!q.done;q=c.next())p6_(q.value,f,d)};
_.r=Mv.prototype;_.r.onOpportunityProcessedExternallyManaged=function(c,f,d,q){rG(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",c,d,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)};
_.r.onSlotReceivedExternallyManaged=function(c,f){Cl(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c,f)};
_.r.onSlotEntered=function(c){if(gG(this.adsControlFlowManagerHelper,c)!=null){Cl(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",c);this.adsControlFlowManagerHelper.onSlotEntered(c);for(var f=_.C(this.adsControlFlowEventListeners),d=f.next();!d.done;d=f.next())d.value.onSlotEntered(c);if(gG(this.adsControlFlowManagerHelper,c)!=null&&gG(this.adsControlFlowManagerHelper,c).isOccupyingSlotType()&&ku(this.adsControlFlowManagerHelper,c)&&!xt_(this.adsControlFlowManagerHelper,c)){var q;OQ(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",c,(q=ku(this.adsControlFlowManagerHelper,c))!=null?q:void 0);c=gG(this.adsControlFlowManagerHelper,c);c.slotLifecycleStage!=="entered"&&lM(c.slot,c.slotLifecycleStage,"enterLayoutForSlot");c.slotLifecycleStage="rendering";c.registeredLayoutRenderingAdapter.startRendering(c.layout)}}};
_.r.onSlotExited=function(c){if(gG(this.adsControlFlowManagerHelper,c)!=null){Cl(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",c);this.adsControlFlowManagerHelper.onSlotExited(c);for(var f=_.C(this.adsControlFlowEventListeners),d=f.next();!d.done;d=f.next())d.value.onSlotExited(c);gG(this.adsControlFlowManagerHelper,c)!=null&&gG(this.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests&&o8r(this,c)}};
_.r.onLayoutReceivedExternallyManaged=function(c,f,d){c.managerLayer!=="core"&&OQ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",c,f,d)};
var GLj=function(c,f,d){if(gG(c.adsControlFlowManagerHelper,f)!=null){OQ(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",f,d);c=_.C(c.adsControlFlowEventListeners);for(var q=c.next();!q.done;q=c.next())GLj(q.value,f,d)}};
Mv.prototype.onLayoutExited=function(c,f,d){if(gG(this.adsControlFlowManagerHelper,c)!=null){OQ(this.adEventLogger,D8l(d),c,f);this.adsControlFlowManagerHelper.onLayoutExited(c,f);for(var q=_.C(this.adsControlFlowEventListeners),Z=q.next();!Z.done;Z=q.next())Z.value.onLayoutExited(c,f,d);(d=ku(this.adsControlFlowManagerHelper,c))&&f.layoutId===d.layoutId&&c_H(this,c)}};
Mv.prototype.disposeInternal=function(){var c=fQy(this.adsControlFlowManagerHelper);c=_.C(c);for(var f=c.next();!f.done;f=c.next())o8r(this,f.value);_.ES.prototype.disposeInternal.call(this)};
var o8r=function(c,f){if(gG(c.adsControlFlowManagerHelper,f)!=null)if(gG(c.adsControlFlowManagerHelper,f).JSC$30283_isSlotExitRequested()||gG(c.adsControlFlowManagerHelper,f).JSC$30283_isLayoutExitRequested())gG(c.adsControlFlowManagerHelper,f).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(gG(c.adsControlFlowManagerHelper,f).isOccupyingSlotType())gG(c.adsControlFlowManagerHelper,f).markedForUnscheduleAfterOutboundAdapterRequests=!0,c_H(c,f);else if(gG(c.adsControlFlowManagerHelper,f).JSC$30283_isSlotFillRequested())gG(c.adsControlFlowManagerHelper,
f).markedForUnscheduleAfterOutboundAdapterRequests=!0,gG(c.adsControlFlowManagerHelper,f)!=null&&(Cl(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",f),f=gG(c.adsControlFlowManagerHelper,f),f.fulfillmentLifecycleStage="fill_cancel_requested",f.registeredFulfillmentAdapter.cancelSlotFilling());else{var d=ku(c.adsControlFlowManagerHelper,f),q;c.experimentApiProvider.get();(q=_.F("h5_enable_layout_unscheduling_events"))&&(d?dnT(c,f,d):_.cZ(Error("Hh"),f,d,void 0,!1));Cl(c.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",f);var Z=gG(c.adsControlFlowManagerHelper,f),M=f.slotEntryTrigger,g=Z.registeredSlotEntryTriggerAdapters.get(M.triggerId);g&&(g.unregisterTrigger(M),Z.registeredSlotEntryTriggerAdapters.delete(M.triggerId));M=_.C(f.slotFulfillmentTriggers);for(g=M.next();!g.done;g=M.next()){g=g.value;var O=Z.registeredFulfillmentTriggerAdapters.get(g.triggerId);O&&(O.unregisterTrigger(g),Z.registeredFulfillmentTriggerAdapters.delete(g.triggerId))}M=_.C(f.slotExpirationTriggers);
for(g=M.next();!g.done;g=M.next())if(g=g.value,O=Z.registeredExpirationTriggerAdapters.get(g.triggerId))O.unregisterTrigger(g),Z.registeredExpirationTriggerAdapters.delete(g.triggerId);Z.hasLayout()&&(M=Z.layout,sQ(Z,M.layoutExitNormalTriggers),sQ(Z,M.layoutExitSkipTriggers),sQ(Z,M.layoutExitMuteTriggers),sQ(Z,M.layoutExitUserInputSubmittedTriggers),sQ(Z,M.layoutExitUserCancelledTriggers));Z.registeredFulfillmentAdapter=void 0;Z.registeredSlotAdapter!=null&&(Z.registeredSlotAdapter.release(),Z.registeredSlotAdapter=
void 0);Z.registeredLayoutRenderingAdapter!=null&&(Z.registeredLayoutRenderingAdapter.release(),Z.registeredLayoutRenderingAdapter=void 0);Z=c.adsControlFlowManagerHelper;gG(Z,f)&&(Z=j13(Z,f.slotType+"_"+f.slotPhysicalPosition))&&Z.delete(f.slotId);Cl(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",f);c=_.C(c.adsControlFlowEventListeners);for(Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z.onSlotUnscheduled(f),d&&!q&&dnT(Z,f,d)}},dnT=function(c,f,d){OQ(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
f,d);
OQ(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",f,d);c=_.C(c.adsControlFlowEventListeners);for(var q=c.next();!q.done;q=c.next())q=q.value,d&&dnT(q,f,d)},c_H=function(c,f){if(gG(c.adsControlFlowManagerHelper,f)!=null&&gG(c.adsControlFlowManagerHelper,f).isOccupyingSlotType()){var d=ku(c.adsControlFlowManagerHelper,f);
if(d&&xt_(c.adsControlFlowManagerHelper,f)){if(gG(c.adsControlFlowManagerHelper,f)!=null){var q=c.adEventLogger,Z;var M=((Z=WiN.get("abandoned"))==null?void 0:Z.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";OQ(q,M,f,d);c=gG(c.adsControlFlowManagerHelper,f);c.slotLifecycleStage!=="rendering"&&lM(c.slot,c.slotLifecycleStage,"exitLayout");c.slotLifecycleStage="rendering_stop_requested";c.registeredLayoutRenderingAdapter.stopRendering(d,"abandoned")}}else{Cl(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
f);try{q=gG(c.adsControlFlowManagerHelper,f);if(!q)throw new rB("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");q.slotLifecycleStage!=="enter_requested"&&q.slotLifecycleStage!=="entered"&&q.slotLifecycleStage!=="rendering"&&lM(q.slot,q.slotLifecycleStage,"exitSlot");q.slotLifecycleStage="exit_requested";if(q.registeredSlotAdapter===void 0)throw q.slotLifecycleStage="scheduled",new rB("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
q.registeredSlotAdapter.exit()}catch(g){g instanceof rB&&g.adsClientErrorMessage?(qsu(c.adEventLogger,g.adsClientErrorMessage,f),_.cZ(g,f,void 0,void 0,g.aggressivelySample)):(qsu(c.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",f),_.cZ(g,f))}}}};var BB=function(c,f,d,q,Z,M){_.ES.call(this);this.registry=c;this.experimentApiProvider=M;this.slotMap=new Map};
_.K(BB,_.ES);var j13=function(c,f){return(c=c.slotMap.get(f))?c:new Map},gG=function(c,f){return j13(c,f.slotType+"_"+f.slotPhysicalPosition).get(f.slotId)},fQy=function(c){var f=[];
c.slotMap.forEach(function(d){d=_.C(d.values());for(var q=d.next();!q.done;q=d.next())f.push(q.value.slot)});
return f};
BB.prototype.onSlotEntered=function(c){c=gG(this,c);c.slotLifecycleStage!=="enter_requested"&&lM(c.slot,c.slotLifecycleStage,"onSlotEntered");c.slotLifecycleStage="entered"};
var xt_=function(c,f){c=gG(c,f);return c.hasLayout()&&c.isRendering()},ku=function(c,f){(c=gG(c,f))?c.hasLayout()&&!c.layout&&_.cZ("Unexpected empty layout",f):_.cZ("Unexpected undefined slotState",f);
return(c==null?void 0:c.layout)||null};
BB.prototype.onSlotExited=function(c){c=gG(this,c);c.slotLifecycleStage!=="exit_requested"&&lM(c.slot,c.slotLifecycleStage,"onSlotExited");c.slotLifecycleStage="scheduled"};
BB.prototype.onLayoutExited=function(c,f){c=gG(this,c);c.isPrimaryLayout(f)&&(c.slotLifecycleStage!=="rendering_stop_requested"&&lM(c.slot,c.slotLifecycleStage,"onLayoutExited"),c.slotLifecycleStage="entered")};
var sQ=function(c,f){f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=c.registeredLayoutExitTriggerAdapters.get(d.triggerId);q&&(q.unregisterTrigger(d),c.registeredLayoutExitTriggerAdapters.delete(d.triggerId))}},lM=function(c,f,d){_.cZ("Slot stage was "+f+" when calling method "+d,c)};var MS_=function(c){_.ES.call(this);this.deps=c;this.JSC$15342_adsControlFlowManager=ZIH(this)};
_.K(MS_,_.ES);var ZIH=function(c){var f=new Mv(function(d,q,Z,M){return new BB(c.deps.registry,d,q,Z,M,c.deps.experimentApiProvider)},new Set(RAh(c.deps.registry).concat(c.deps.listeners)),c.deps.adEventLogger,c.deps.experimentApiProvider);
_.ln(c,f);return f};var Knr=function(){};var r_F=function(c,f){_.ES.call(this);this.experimentApiProvider=c;this.eventLoggingSettingsProvider=f;this.eventCount=0;this.premiumAdSeenEventLogger=Etn()()};
_.K(r_F,_.ES);r_F.prototype.logEvent=function(c){rG(this,c)};
var Cl=function(c,f,d,q){rG(c,f,void 0,void 0,void 0,d,void 0,void 0,void 0,d.adSlotLoggingData,void 0,void 0,q)},OQ=function(c,f,d,q,Z){rG(c,f,void 0,void 0,void 0,d,q?q:void 0,void 0,void 0,d.adSlotLoggingData,q?q.adLayoutLoggingData:void 0,void 0,Z);
d=_.ql().resolve(_.dx(nW))==null?void 0:$z();f=d==null?void 0:d.adsSeenHotConfig;d=d==null?void 0:d.adsHotConfig;(f==null?0:f.logOnAdsSeen)&&(d==null?0:d.webEnablePremiumAdsSeenLogging)&&CHy(c,q?q:void 0,Z)},qsu=function(c,f,d){rG(c,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,d,void 0,void 0,void 0,d.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:f})},rG=function(c,f,d,q,Z,M,g,O,l,m,H,A,Y){Y=Y===void 0?0:Y;
gVy(c.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+f,"slot:",M,"layout:",g,"ping:",O,"Opportunity:",{opportunityType:d,associatedSlotId:q,slotsFromOpportunity:Z,triggerBundle:l,adSlotLoggingData:m,adLayoutLoggingData:H});try{var t=function(){c.experimentApiProvider.get();if(f!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){f||_.cZ("Empty PACF event type",M,g);var E=c.eventLoggingSettingsProvider.get();var J;(J=E.alwaysIncludeDebugData)||(E.experimentApiProvider.get(),J=
!1);E=J;J={eventType:f,eventOrder:++c.eventCount};var X={};M&&(X.slotData=ICk(E,M));if(g){var u={type:g.layoutType,controlFlowManagerLayer:eAN.get(g.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};E&&(u.debugData={layoutId:g.layoutId});X.layoutData=u}O&&(X.pingData={pingDispatchStatus:O.dispatchStatus,serializedAdPingMetadata:O.ping.serializedAdPingMetadata,pingIndex:O.index});l&&(X.triggerData=Nrk(l.trigger,l.category));d&&(X.opportunityData=P_P(E,d,q,Z));J.adClientData=X;m&&(J.serializedSlotAdServingData=
m.serializedSlotAdServingDataEntry);H&&(J.serializedAdServingData=H.serializedAdServingDataEntry);A&&(J.errorInfo=A);_.JN("adsClientStateChange",{adsClientEvent:J})}};
Y&&Y>0?_.Em(_.zd(),function(){return t()},Y):t()}catch(E){gVy(c.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Em(_.zd(),function(){_.cZ(E instanceof Error?E:String(E),M,g,{pacf_message:"exception during pacf logging"})})}},CHy=function(c,f,d){if(f){var q=f.adLayoutLoggingData;
_.Em(_.zd(),function(){c.premiumAdSeenEventLogger!=null&&q&&_.JN("adsSeenClientLogging",{serializedAdServingDataEntry:q.serializedAdServingDataEntry})},d!=null?d:0)}};var kz3=function(c,f){r_F.call(this,c,f)};
_.K(kz3,r_F);var OIF=function(){},gVy=function(c,f){return _.F(f)};var s1o=function(){var c=new lQy;this.JSC$15367_adsControlFlowManager=(new MS_(c)).JSC$15342_adsControlFlowManager},lQy=function(){_.ES.call(this);
var c=this;this.experimentApiProvider=new RP3(function(){return new OIF});
var f=new RP3(function(){return new Ut_(c.experimentApiProvider)});
this.adEventLogger=new kz3(this.experimentApiProvider,f);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.K(lQy,_.ES);var BeT=function(){},iIj,iM=function(){iIj||(iIj=new BeT);
return iIj},TR=function(c){if(!c.JSC$15378_externallyManagedSlotAdapterCallback){var f=(new s1o).JSC$15367_adsControlFlowManager;
c.JSC$15378_externallyManagedSlotAdapterCallback=f}return c.JSC$15378_externallyManagedSlotAdapterCallback},Tev=function(c,f,d){var q=f.opportunityType,Z=Error("Ih");
if(q!==void 0){var M=TR(c);p6_(M,q,void 0,d)}else _.cZ(Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});M=[];if(f.adSlotAndLayoutMetadata!==void 0){f=_.C(f.adSlotAndLayoutMetadata);for(var g=f.next();!g.done;g=f.next()){var O=g.value;if(g=O.adSlotMetadata)if(M.push(g),c.onSlotReceivedExternallyManaged(g,d),O.adLayoutMetadata){O=_.C(O.adLayoutMetadata);for(var l=O.next();!l.done;l=O.next())c.onLayoutReceivedExternallyManaged(g,l.value,d)}else d>0&&_.cZ("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else d>0&&_.cZ("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else d>0&&_.cZ("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(q!==void 0)c.onOpportunityProcessedExternallyManaged(q,M,void 0,d);else _.cZ(Z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
BeT.prototype.onSlotReceivedExternallyManaged=function(c,f){c=CO(c);if(c instanceof rB)_.cZ(c,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else TR(this).onSlotReceivedExternallyManaged(c,f)};
BeT.prototype.onLayoutReceivedExternallyManaged=function(c,f,d){c=CO(c);f=ptl(f);if(c instanceof rB)_.cZ(c,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(f instanceof gB)_.cZ(f,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else TR(this).onLayoutReceivedExternallyManaged(c,f,d)};
BeT.prototype.onOpportunityProcessedExternallyManaged=function(c,f,d,q){var Z=[];f=_.C(f);for(var M=f.next();!M.done;M=f.next())M=CO(M.value),M instanceof rB?_.cZ(M,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Z.push(M);TR(this).onOpportunityProcessedExternallyManaged(c,Z,d,q)};
var mny=function(c,f){f=CO(f);if(f instanceof rB)_.cZ(f,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var d=TR(c);Cl(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",f);d=_.C(d.adsControlFlowEventListeners);for(var q=d.next();!q.done;q=d.next())q=gG(q.value,f),q.slotLifecycleStage!=="not_scheduled"&&lM(q.slot,q.slotLifecycleStage,"onSlotScheduled"),q.slotLifecycleStage="scheduled";c=TR(c);Cl(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",f);c=_.C(c.adsControlFlowEventListeners);
for(d=c.next();!d.done;d=c.next())d.value.onSlotEntered(f)}},HIT=function(c,f){f=CO(f);
if(f instanceof rB)_.cZ(f,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var d=TR(c);Cl(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",f);d=_.C(d.adsControlFlowEventListeners);for(var q=d.next();!q.done;q=d.next())q.value.onSlotExited(f);c=TR(c);Cl(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",f);c=_.C(c.adsControlFlowEventListeners);for(d=c.next();!d.done;d=c.next())d.value.onSlotUnscheduled(f)}},A_o=function(c,f,d){f=CO(f);
d=ptl(d);if(f instanceof rB)_.cZ(f,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(d instanceof gB)_.cZ(d,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var q=TR(c);OQ(q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",f,d);q=_.C(q.adsControlFlowEventListeners);for(var Z=q.next();!Z.done;Z=q.next())Z.value.onLayoutScheduled(f,d);c=TR(c);OQ(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",f,d);c=_.C(c.adsControlFlowEventListeners);
for(q=c.next();!q.done;q=c.next())GLj(q.value,f,d)}},mg=function(c,f,d){f=CO(f);
d=ptl(d);if(f instanceof rB)_.cZ(f,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(d instanceof gB)_.cZ(d,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var q=TR(c);OQ(q.adEventLogger,D8l("normal"),f,d);q=_.C(q.adsControlFlowEventListeners);for(var Z=q.next();!Z.done;Z=q.next())Z.value.onLayoutExited(f,d,"normal");c=TR(c);c=_.C(c.adsControlFlowEventListeners);for(q=c.next();!q.done;q=c.next())dnT(q.value,f,d)}};_.HB=_.dN(function(c){var f=_.ch(c,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});c=Object.assign({},f);var d=f.data;f=f.customCommandResolver;var q=(delete c.data,delete c.customCommandResolver,c);c=_.qd({visibilityCallback:function(O,l){var m,H=(m=d().interaction)==null?void 0:m.onFirstVisible;O&&(H&&_.Ph(H),q.setOnErrorHandler()&&x8n(l))},
showOption:_.dA});f=_.pa(function(){return d().interaction},f,function(){var O;
return(O=q.listenToTapEvent)==null?void 0:O.call(q)});
var Z=_.C(_.OT(!1,void 0,"nqIeMd")),M=Z.next().value,g=Z.next().value;Z=_.Ks(function(O){var l;((l=q.setTouchEndHandler)==null?0:l.call(q))&&!M()&&(O.currentTarget.click(),g(!0),setTimeout(function(){g(!1)},100));
return!1});
return _.B("ad-image-view-model",{class:function(){var O,l=[((O=d().interaction)==null?0:O.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],m;((m=q.isGridViewEnabled)==null?0:m.call(q))&&l.push("ytwAdImageViewModelHostInGridView");return l.join(" ")},
el:_.Z7(c,f),"on:touchend":Z},_.B("div",{class:"ytwAdImageViewModelHostImageContainer"},_.B(_.jC,{data:function(){var O;return{sources:d().imageSources,contentMode:(O=d().imageProperties)==null?void 0:O.contentMode}},
alt:function(){var O,l;return((O=d().interaction)==null?void 0:(l=O.accessibility)==null?void 0:l.label)||""},
targetHeight:q.targetHeight,targetWidth:q.targetWidth,preserveHeight:q.preserveHeight,preserveWidth:q.preserveWidth,useWidth:q.useWidth,style:function(){var O,l;return"vertical-align: bottom;"+(((O=d().background)==null?0:O.color)?"background-color:"+_.ya((l=d().background)==null?void 0:l.color)+";":"")},
className:function(){return q.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var O,l;return(l=(O=q.setDraggable)==null?void 0:O.call(q))!=null?l:void 0}})))},"nb");var Ys_=_.dN(function(c){var f=c.data,d=c.listenToTapEvent,q=function(){};
return _.B("ad-button-hover-overlay-view-model",{"on:click":_.Ks(function(Z){if(_.F("enable_web_home_top_landscape_image_layout_legacy_click_command")){var M,g=(M=f().interaction)==null?void 0:M.onTap;g&&_.CZ(Z.currentTarget,"yt-navigate",{endpoint:_.D9(g)})}}),
class:function(){var Z;return((Z=f().interaction)==null?0:Z.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Z7(_.qd({visibilityCallback:function(Z){var M,g=(M=f().interaction)==null?void 0:M.onFirstVisible;Z&&g&&_.Ph(g)},
showOption:_.dA}),_.pa(function(){return f().interaction},void 0,function(){return!_.F("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(d==null?void 0:d())}))},function(){return _.F("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.B(_.u7,{data:function(){return f().button}},{adButtonViewModel:function(Z){return _.B(_.qg,{data:Z.data,
customCommandResolver:q})}}):_.B(_.u7,{data:function(){return f().button}},{adButtonViewModel:_.qg})}())},"ob");var ks;_.g_(_.dN(function(c){var f=c.data;c=_.qd({visibilityCallback:function(O,l){if(O){var m;(O=(m=f().interaction)==null?void 0:m.onFirstVisible)&&_.Ph(O);var H;if(m=(H=f().adLayoutData)==null?void 0:H.activeViewData)Oo(l,m),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lh(l)})}else _.F("stop_av_measurement_on_detach")&&lh(l)},
showOption:_.dA,hideOption:jz});var d=_.pa(function(){return f().interaction},void 0,function(){return!0}),q=_.C(_.OT(!1,void 0,"K1MNM")),Z=q.next().value,M=q.next().value;
q=_.Ks(function(){M(!0)});
var g=_.Ks(function(){M(!1)});
return _.B("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Z7(c,qLC,d),"on:mouseenter":q,"on:mouseleave":g},_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.$Z({"max-width":function(){return _.F("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.B("div",{class:function(){var O;
a:{var l;switch((O=_.b(f().thumbnailImage,e83))==null?void 0:(l=O.imageProperties)==null?void 0:l.renderingAspect){case "RENDERING_ASPECT_SQUARE":O="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":O="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}O=void 0}return O}},_.B(_.u7,{data:function(){return f().thumbnailImage}},{adImageViewModel:function(O){return _.B(_.HB,
{data:O.data,
listenToTapEvent:!0,setTouchEndHandler:_.F("enable_top_landscape_image_experiment_dom_id_web")})}})),_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.B(_.T,{cond:function(){var O,l,m;
return(O=_.b(f().thumbnailImage,e83))==null?void 0:(l=O.imageProperties)==null?void 0:(m=l.overlayIcon)==null?void 0:m.iconImage},
then:function(O){return _.B(_.jC,{data:O,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.B("div",{class:function(){return Z()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.B(_.u7,{data:function(){return f().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(O){return _.B(Ys_,
{data:O.data,
listenToTapEvent:!0})}}))),_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.B(_.u7,{data:function(){return f().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.B(Qi_,{data:O.data,
listenToTapEvent:!0,setTouchEndHandler:_.F("enable_top_landscape_image_experiment_dom_id_web")})}})))},"pb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;c=_.qd({visibilityCallback:function(O,l){if(O){var m;(O=(m=f().interaction)==null?void 0:m.onFirstVisible)&&_.Ph(O);var H;if(m=(H=f().adLayoutData)==null?void 0:H.activeViewData)Oo(l,m),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lh(l)})}else _.F("stop_av_measurement_on_detach")&&lh(l)},
showOption:_.dA,hideOption:jz});var d=_.N5(_.eC),q=_.pa(function(){return f().interaction}),Z={},M={},g={};
return _.B("square-image-layout-view-model",{class:_.FY("ytwSquareImageLayoutViewModelHost",(Z.ytwSquareImageLayoutViewModelHostColumn=d,Z)),el:_.Z7(c,Zcz,q)},_.B("div",{class:_.FY("ytwSquareImageLayoutViewModelHostImage",(M.ytwSquareImageLayoutViewModelHostColumnImage=d,M))},function(){return _.B(_.u7,{data:function(){return f().adImage}},{adImageViewModel:function(O){return _.B(_.HB,{data:O.data,
isGridViewEnabled:d,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.B("div",{class:_.FY("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(g.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=d,g))},_.B(_.u7,{data:function(){return f().feedAdMetadata}},{feedAdMetadataViewModel:Qi_}),function(){return _.B(_.u7,{data:function(){return f().adButton}},{adButtonViewModel:function(O){var l={};
return _.B(_.qg,{data:O.data,className:_.FY((l.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,l.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=d,l))})}})}()))},"qb"),"square-image-layout-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=c.noBottomMargin;var q=c.typographyBump;c=_.qd({visibilityCallback:function(A,Y){if(A){var t;(A=(t=f().interaction)==null?void 0:t.onFirstVisible)&&_.Ph(A);var E;if(t=(E=f().adLayoutData)==null?void 0:E.activeViewData)Oo(Y,t),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lh(Y)})}else _.F("stop_av_measurement_on_detach")&&lh(Y)},
showOption:_.dA,hideOption:jz});var Z=_.pa(function(){return f().interaction},void 0,function(){return _.F("enable_web_home_top_landscape_image_layout_level_click")}),M=function(){return f().interaction};
M!==void 0&&M!==null||_.eZ(Error("Jh"));var g=function(){var A,Y,t;return(A=_.b(f().thumbnailImage,e83))==null?void 0:(Y=A.background)==null?void 0:(t=Y.backgroundImageSource)==null?void 0:t.imageSources};
M=_.C(_.OT(!1,void 0,"pZPLOd"));var O=M.next().value,l=M.next().value;M=_.Ks(function(){l(!0)});
var m=_.Ks(function(){l(!1)}),H=function(){return O()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.B("top-landscape-image-layout-view-model",{class:function(){var A;return((A=f().interaction)==null?0:A.onTap)&&_.F("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Z7(c,M2h,Z),"on:mouseenter":M,"on:mouseleave":m},_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.B(_.T,{cond:function(){return g()&&g().length>0},
then:function(){return _.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.$Z({top:"0","background-image":function(){return"url("+String(g()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.B(_.T,{cond:function(){return!!f().adButtonHoverOverlay},
then:function(){return _.B("div",{class:H},_.B(_.u7,{data:function(){return f().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Ys_}))}}),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.B(_.u7,{data:function(){return f().thumbnailImage}},{adImageViewModel:function(A){return _.B(_.HB,{data:A.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.F("enable_web_home_top_landscape_image_layout_level_click")})}})),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.B(_.jC,{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"}))),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.B(_.u7,{data:function(){return f().feedAdMetadata}},{feedAdMetadataViewModel:function(A){return _.B(Qi_,{data:A.data,
noBottomMargin:function(){return d==null?void 0:d()},
listenToTapEvent:function(){return _.F("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return q==null?void 0:q()}})}})))},"rb"),"top-landscape-image-layout-view-model",{props:{data:_.oM,
noBottomMargin:_.oM,typographyBump:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=c.typographyBump;return _.B("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Z7(_.qd({visibilityCallback:function(q,Z){if(q){var M;(q=(M=f().interaction)==null?void 0:M.onFirstVisible)&&_.Ph(q);var g;(M=(g=f().adLayoutData)==null?void 0:g.activeViewData)&&Oo(Z,M)}},
showOption:_.dA,hideOption:jz}))},_.B("div",null,_.B(_.u7,{data:function(){return f().videoLockup}},{lockupViewModel:function(q){return _.B(_.s7,{data:q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:d})}})))},"sb"),"video-display-button-group-layout-view-model",{props:{data:_.oM,
noBottomMargin:_.oM,typographyBump:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=c.className;var q=c.typographyBump;return _.B("video-display-compact-button-group-layout-view-model",{el:_.Z7(_.qd({visibilityCallback:function(Z,M){if(Z){var g;(Z=(g=f().interaction)==null?void 0:g.onFirstVisible)&&_.Ph(Z);var O;(g=(O=f().adLayoutData)==null?void 0:O.activeViewData)&&Oo(M,g)}},
showOption:_.dA})),class:_.FY("videoDisplayCompactButtonGroupLayoutViewModelHost",d)},_.B(_.u7,{data:function(){return f().videoLockup}},{lockupViewModel:function(Z){return _.B(_.s7,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:q})}}))},"tb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.oM,
className:_.oM,typographyBump:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=c.className;var q=c.typographyBump;return _.B("video-display-compact-buttoned-layout-view-model",{el:_.Z7(_.qd({visibilityCallback:function(Z,M){if(Z){var g;(Z=(g=f().interaction)==null?void 0:g.onFirstVisible)&&_.Ph(Z);var O;(g=(O=f().adLayoutData)==null?void 0:O.activeViewData)&&Oo(M,g)}},
showOption:_.dA})),class:_.FY("videoDisplayCompactButtonedLayoutViewModelHost",d)},_.B(_.u7,{data:function(){return f().videoLockup}},{lockupViewModel:function(Z){return _.B(_.s7,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:q})}}))},"ub"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.oM,
className:_.oM,typographyBump:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=c.className;var q=c.typographyBump;var Z=function(){return f().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},M=_.N5(_.eC);
c=_.qd({visibilityCallback:function(m,H){if(m){var A=f();m=A.adLayoutData;var Y;(A=(Y=A.interaction)==null?void 0:Y.onFirstVisible)&&_.Ph(A);(Y=m==null?void 0:m.activeViewData)&&Oo(H,Y)}},
showOption:_.dA});var g=_.TZ(function(){return{containerType:Z()&&M()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),O=_.TZ(function(){return Z()&&M()?"":Z()?"168px":"50%"},void 0,"ikSkm"),l=_.TZ(function(){return Z()&&M()?9999:void 0},void 0,"M8rucc");
return _.B("video-display-compact-layout-view-model",{el:_.Z7(c),class:_.FY("videoDisplayCompactLayoutViewModelHost",d)},_.B(_.u7,{data:function(){return f().videoLockup}},{lockupViewModel:function(m){return _.B(_.s7,{data:m.data,
containerLayoutConfig:g,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:O,thumbnailTargetWidth:l,typographyBump:q})}}))},"vb"),"video-display-compact-layout-view-model",{props:{data:_.oM,
className:_.oM,typographyBump:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=c.typographyBump;return _.B("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Z7(_.qd({visibilityCallback:function(q,Z){if(q){var M;(q=(M=f().interaction)==null?void 0:M.onFirstVisible)&&_.Ph(q);var g;(M=(g=f().adLayoutData)==null?void 0:g.activeViewData)&&Oo(Z,M)}},
showOption:_.dA,hideOption:jz}))},_.B("div",null,_.B(_.u7,{data:function(){return f().videoLockup}},{lockupViewModel:function(q){return _.B(_.s7,{data:q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:d})}})))},"wb"),"video-display-full-layout-view-model",{props:{data:_.oM,
noBottomMargin:_.oM,typographyBump:_.oM}});_.FM3=_.dN(function(c){var f=c.data;c=_.xz("ad-card-badge-view-model");return _.B("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:c},_.B(_.T,{cond:function(){return f().imageBadge},
then:function(d){return _.B(_.jC,{data:d,alt:""})}}))},"xb");var tS_=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;return _.B("carousel-ad-card-image-view-model",{class:function(){var q;return((q=f().interaction)==null?0:q.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Z7(_.qd({visibilityCallback:function(q){var Z,M=(Z=f().interaction)==null?void 0:Z.onFirstVisible;q&&M&&_.Ph(M)},
showOption:_.dA}),_.pa(function(){return f().interaction},d)),
"aria-label":function(){var q,Z;return(q=f().interaction)==null?void 0:(Z=q.accessibility)==null?void 0:Z.label}},_.B(_.u7,{data:function(){return f().adImage}},{adImageViewModel:function(q){return _.B(_.HB,{data:q.data,
customCommandResolver:d})}}),_.B("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.B(_.u7,{data:function(){return f().badge}},{adCardBadgeViewModel:_.FM3})),_.B(_.z3,{model:{color:4}}))},"yb");var bIu=_.dN(function(c){var f=_.C(_.OT(0,void 0,"o9Bzd")),d=f.next().value;f.next();var q=f.next().value,Z=_.C(_.OT(!1,void 0,"KLdzYe"));f=Z.next().value;var M=Z.next().value,g;_.Q4(function(){clearTimeout(g)});
Z=_.Ks(function(){var m;((m=c.animate)==null?0:m.call(c))?(M(!0),g=setTimeout(function(){M(!1);O()},200)):O();
return!1});
var O=function(){q(function(m){return(m+c.numShownItems())%c.data().length})},l={};
return _.B("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.B("div",{class:_.FY("ytwHorizontalCarouselCarouselWrapper")},_.B("div",{class:_.FY("ytwHorizontalCarouselCarouselInnerWrapper",(l.ytwHorizontalCarouselAnimating=f,l))},_.B(_.bd,{each:c.data,keyBy:"INDEX"},function(m,H){return _.B("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.$Z({"flex-basis":function(){return"calc((100% - (8px * "+(c.numShownItems()-1)+")) / "+c.numShownItems()+")"},
order:function(){var A=H-d();A<0&&(A+=c.data().length);return A}})},c.children(m,H))}))),_.B("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Z},c.nextButton()))},"zb");var KM3=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;var q=c.expansive;return _.B("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Z7(_.qd({visibilityCallback:function(Z){var M,g=(M=f().interaction)==null?void 0:M.onFirstVisible;Z&&g&&_.Ph(g)},
showOption:_.dA}))},_.B(bIu,{data:function(){var Z;return((Z=f())==null?void 0:Z.carouselAdCards)||[]},
nextButton:function(){return _.B(_.u7,{data:function(){return f().nextButton}},{buttonViewModel:function(Z){var M=Z.data;
return _.B(_.mN,{data:function(){return(q==null?0:q())?Object.assign({},M(),{style:"mono"}):M()},
className:_.F("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Z){return _.B(_.u7,{data:Z},{carouselAdCardImageViewModel:function(M){return _.B(tS_,{data:M.data,customCommandResolver:d})}})}))},"Ab");var EVv=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;var q=c.className;var Z=c.buttonClassName;var M=c.animationEntityKey;var g=c.expansive;return _.B("carousel-button-view-model",{class:_.FY("ytwCarouselButtonViewModelHost",q)},_.B(_.u7,{data:function(){return f().carousel}},{carouselAdCardCollectionViewModel:function(O){return _.B(KM3,{data:O.data,
customCommandResolver:d,expansive:g})}}),_.B(_.u7,{data:function(){return f().button}},{adButtonViewModel:function(O){var l=O.data;
return _.B(_.qg,{data:function(){return(g==null?0:g())?Object.assign({},l(),{style:"AD_BUTTON_STYLE_TONAL"}):l()},
className:Z,customCommandResolver:d,animationEntityKey:M})}}))},"Bb");_.nVo=_.dN(function(c){var f=c.data;c=c.className;var d=_.xz("pivot-button-view-model");_.L9(function(){var q;((q=f())==null?0:q.backgroundColor)&&d.value.setAttribute("data-background-color",String(f().backgroundColor))});
return _.B("pivot-button-view-model",{el:d,class:_.FY("ytwPivotButtonViewModelHost",c)},_.B(_.Re,{command:function(){var q=f();q=q.onClickCommand?_.D9(q.onClickCommand):q.contentDescription?_.dD(q.contentDescription):void 0;return q},
ariaLabel:function(){return f().contentDescription}},_.B(_.T,{cond:function(){return f().thumbnail},
then:function(q){return _.B(_.jC,{data:q,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.B(_.T,{cond:function(){return f().icon},
then:function(q){return _.B(_.Qy,{icon:function(){return q().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cb");_.$nv=_.dN(function(c){var f=c.data;var d=c.buttonShapeOverrideables;return _.B("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.B(_.u7,{data:function(){return f().buttonViewModels}},{buttonViewModel:function(q){return _.B(_.mN,{data:q.data,
buttonOverrides:d})},
likeButtonViewModel:function(q){return _.B(_.vP,{data:q.data,buttonShapeOverrideables:d})},
dislikeButtonViewModel:function(q){return _.B(_.u9,{data:q.data,buttonShapeOverrideables:d})},
toggleButtonViewModel:function(q){return _.B(_.JL,{data:q.data,buttonShapeOverrides:d})}}))},"Db");var Q13=_.dN(function(c){var f=c.avatar;var d=c.headline;var q=c.badge;var Z=c.description;var M=c.expansive;c={};return _.B("yt-ad-metadata-shape",{class:_.FY("ytAdMetadataShapeHost",(c.ytAdMetadataShapeHostLarge=M,c))},_.B("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.B(_.T,{cond:f,then:function(g){return _.B(_.KiF,{data:function(){return(M==null?0:M())?Object.assign({},g(),{size:"AD_AVATAR_SIZE_MPLUS"}):g()}})}}),_.B("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.B(_.J9,{text:d,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.B(_.T,{cond:q,then:function(g){return _.B(_.O7,{data:function(){return(M==null?0:M())?Object.assign({},g(),{style:"AD_BADGE_STYLE_STARK"}):g()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.B("h2",{class:"ytAdMetadataShapeHostDescription"},_.B(_.J9,{text:Z,
linkInheritColor:!0})))},"Eb");var SsH=_.dN(function(c){var f=c.data;var d=c.onShow;var q=c.expansive;c=_.pa(function(){return f().interaction});
_.L9(function(){var M,g=(M=f().animatedRenderingConfig)==null?void 0:M.delayedSecondsToVisible;if(g){var O=setTimeout(d,g*1E3);_.Q4(function(){clearTimeout(O)})}});
var Z={};return _.B("reels-ad-card-buttoned-view-model",{class:_.FY(function(){var M;return((M=f().interaction)==null?0:M.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Z.ytwReelsAdCardButtonedViewModelHostExpansive=q,Z)),
el:_.Z7(c)},_.B(Q13,{avatar:function(){return _.b(f().avatar,Wb_)},
headline:function(){return f().headline},
badge:function(){return _.b(f().adBadge,D0o)},
description:function(){return f().description},
expansive:q}),_.B(_.u7,{data:function(){return f().ctaButton}},{adButtonViewModel:function(M){var g=M.data;
return _.B(_.qg,{data:function(){return(q==null?0:q())?Object.assign({},g(),{style:"AD_BUTTON_STYLE_FILLED"}):g()}})}}))},"Fb");var LM3=_.dN(function(c){var f=c.data;c=c.expansive;var d=_.F("web_ad_metadata_clickable")?_.pa(function(){return f().interaction},void 0,function(){return _.F("web_ad_metadata_clickable")}):void 0,q={};
q=_.tp("ytwReelsAdMetadataViewModelHost",(q.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.F("web_ad_metadata_clickable"),q));return _.B("reels-ad-metadata-view-model",{class:q,el:_.Z7(d)},_.B(Q13,{avatar:function(){return _.b(f().avatar,Wb_)},
headline:function(){return f().headline},
badge:function(){return _.b(f().adBadge,D0o)},
description:function(){return f().description},
expansive:c}))},"Gb");var zLH={iconPosition:"icon-with-label",size:"L"},J__=_.dN(function(c){var f=c.data;var d=c.overlayDensity;c=_.xz("reels-player-overlay-layout-view-model");var q=_.Ga(d,0),Z=function(){var A;return(A=f().reelsAdCardButtonedEntityKey)!=null?A:""},M=function(){return Z()+"/ad_button"},g=_.Ka(znr,Z),O=function(){var A,Y;
return(Y=(A=g())==null?void 0:A.value)!=null?Y:!1},l=_.N5(rtM),m=function(){return Object.assign({},zLH,(l()||q()===2)&&{style:"overlay-dark"})};
d={};var H={};return _.B("reels-player-overlay-layout-view-model",{class:_.FY("ytwReelsPlayerOverlayLayoutViewModelHost",(d.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!f().extension},d.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},d)),
"overlay-density":function(){return String(q())},
el:c},_.B("div",{class:_.FY("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(H.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},H))},_.B("div",{"aria-hidden":function(){return O()},
class:_.FY("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return O()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.$Z({"transition-duration":function(){return OcY(f())}})},_.B(_.u7,{data:function(){return f().adMetadata}},{reelsAdMetadataViewModel:function(A){return _.B(LM3,{data:A.data,
expansive:function(){return q()===1}})}}),_.B(_.T,{cond:function(){return f().extension},
then:function(A){return _.B("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.B(_.u7,{data:A},{adButtonViewModel:function(Y){return _.B(_.qg,{data:Y.data,animationEntityKey:M,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(Y){return _.B(EVv,{data:Y.data,animationEntityKey:M,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return q()===1}})}}))}})),_.B("div",{"aria-hidden":function(){return!O()},
class:_.FY("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return O()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.$Z({"transition-duration":function(){return OcY(f())}})},_.B(_.u7,{data:function(){return f().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(A){return _.B(SsH,{data:A.data,
onShow:function(){_.oa(_.ER("booleanEntity",Z(),{key:Z(),value:!0}))},
expansive:function(){return q()===1}})}}))),_.B("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.B(_.u7,{data:function(){return f().actions}},{reelActionBarViewModel:function(A){return _.B(_.$nv,{data:A.data,
buttonShapeOverrideables:m})}}),_.B(_.u7,{data:function(){return f().menu}},{buttonViewModel:function(A){return _.B(_.mN,{data:A.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},m(),{type:"tonal"})}})}}),_.B(_.u7,{data:function(){return f().pivotButton}},{pivotButtonViewModel:function(A){return _.B(_.nVo,{data:A.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hb");_.g_(J__,"reels-player-overlay-layout-view-model",{props:{data:_.oM,overlayDensity:_.oM}});var Ab=function(){var c=_.z.apply(this,arguments)||this;c.noBottomMargin=!1;c.overlayDensity=0;return c};
_.K(Ab,_.z);_.r=Ab.prototype;
_.r.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]]"}}}}}};
_.r.ready=function(){var c=this;Tae(function(){c.isAttached&&ZL(c.JSC$15421_storedAdSlotMetadata,c.JSC$15421_storedAdLayoutMetadata,c.adSlotMetadata,c.adLayoutMetadata)&&mg(iM(),c.JSC$15421_storedAdSlotMetadata,c.JSC$15421_storedAdLayoutMetadata)})};
_.r.attached=function(){ZL(this.JSC$15421_storedAdSlotMetadata,this.JSC$15421_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&A_o(iM(),this.JSC$15421_storedAdSlotMetadata,this.JSC$15421_storedAdLayoutMetadata)};
_.r.detached=function(){ZL(this.JSC$15421_storedAdSlotMetadata,this.JSC$15421_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&mg(iM(),this.JSC$15421_storedAdSlotMetadata,this.JSC$15421_storedAdLayoutMetadata)};
_.r.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.r.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15421_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15421_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15421_storedAdLayoutMetadata!==void 0&&this.JSC$15421_storedAdSlotMetadata!==void 0&&mg(iM(),this.JSC$15421_storedAdSlotMetadata,this.JSC$15421_storedAdLayoutMetadata),A_o(iM(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15421_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15421_storedAdSlotMetadata=this.adSlotMetadata)};
_.ci.Object.defineProperties(Ab.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.adLayoutMetadata}}});
Ab.prototype.onAdMetadataChanged=Ab.prototype.onAdMetadataChanged;Ab.prototype.onTypographyBumpChanged=Ab.prototype.onTypographyBumpChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ab.prototype,"rendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Ab.prototype,"ytComponentBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Ab.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Ab.prototype,"noBottomMargin",void 0);_.y([_.L(),_.D("design:type",Object)],Ab.prototype,"overlayDensity",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Ab.prototype,"typographyBump",void 0);_.y([_.S("data.adLayoutMetadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],Ab.prototype,"adLayoutMetadata",null);_.y([_.L(),_.D("design:type",Object)],Ab.prototype,"adSlotMetadata",void 0);
_.y([_.AY("ytd-video-display-full-buttoned-and-button-group-renderer"),_.D("design:type",HTMLElement)],Ab.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.y([_.m5("typographyBump"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ab.prototype,"onTypographyBumpChanged",null);_.y([_.m5("adLayoutMetadata","adSlotMetadata"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ab.prototype,"onAdMetadataChanged",null);
_.y([_.v({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Ab);
_.h(Ab,"ytd-in-feed-ad-layout-renderer",function(){if(t2y!==void 0)return t2y;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return t2y=c},
{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var aQT;var VSy;_.g_(_.O7,"ad-badge-view-model",{props:{data:_.oM,hasDot:_.oM,customCommandResolver:_.Cs,adRenderingContextType:_.Cs}});var Yu=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return c};
_.K(Yu,_.z);_.r=Yu.prototype;_.r.computeHasLiveDescription=function(c){return!(c==null||!c.liveDescription)};
_.r.computeHasByline=function(c){return!(c==null||!c.byline)};
_.r.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.r.onYtToggleButton=function(c){var f,d=(f=this.data)==null?void 0:f.videoReminderEntityKey;d&&this.ytdReduxBehavior.dispatch(_.ER("upcomingEventReminderStateEntity",d,{key:d,state:c.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.r.attached=function(){this.updateChannelBanner()};
_.r.dataChanged=function(){this.updateChannelBanner()};
_.r.videoReminderStateChanged=function(){var c;this.videoReminderState&&_.b((c=this.data)==null?void 0:c.cta,_.Dj)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.r.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var c=_.kZ(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);c&&(c.startsWith("//")&&(c="https:"+c),this.hostElement.classList.add("channel-banner"),_.la(this.hostElement,{"--ytvmh-channel-banner":"url("+c+")"}))}else _.F("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.r.onPlayerReady=function(){this.onIronResize()};
_.r.maybeFlushDebouncer=function(){_.F("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(c){var f;c=(f=c.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0];LLl(c==null?void 0:c.polymerController)})};
_.r.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var c=_.r1(this.hostElement).querySelector("#live-description"),f;c&&((f=this.data)==null?0:f.shortLiveDescription)&&c.clientWidth<c.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Yu.prototype.onIronResize=Yu.prototype.onIronResize;Yu.prototype.videoReminderStateChanged=Yu.prototype.videoReminderStateChanged;Yu.prototype.dataChanged=Yu.prototype.dataChanged;Yu.prototype.onYtToggleButton=Yu.prototype.onYtToggleButton;_.y([_.Q(_.aJ),_.D("design:type",Object)],Yu.prototype,"ironResizableBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Yu.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Yu.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Yu.prototype,"data",void 0);_.y([_.L({selectorArgs:["data.videoReminderEntityKey"],selector:yON}),_.D("design:type",Object)],Yu.prototype,"videoReminderState",void 0);
_.y([_.L({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.D("design:type",Boolean)],Yu.prototype,"rounded",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.D("design:type",Boolean)],Yu.prototype,"hasLiveDescription",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.D("design:type",Boolean)],Yu.prototype,"hasByline",void 0);
_.y([_.L({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.D("design:type",String)],Yu.prototype,"adRenderingContextType",void 0);_.y([_.L({reflectToAttribute:!0,value:_.F("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.D("design:type",Boolean)],Yu.prototype,"resizableAdBannerSafariFix",void 0);_.y([_.L({reflectToAttribute:!0,value:_.F("align_three_dot_menu_with_title_description")}),_.D("design:type",Boolean)],Yu.prototype,"menuFix",void 0);
_.y([_.YE("yt-formatted-string"),_.D("design:type",Array)],Yu.prototype,"formattedStrings",void 0);_.y([_.AY("#cta-button"),_.D("design:type",HTMLElement)],Yu.prototype,"ctaButton",void 0);_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Yu.prototype,"onYtToggleButton",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Yu.prototype,"dataChanged",null);
_.y([_.m5("videoReminderState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Yu.prototype,"videoReminderStateChanged",null);_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Yu.prototype,"onIronResize",null);_.y([_.v({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Yu);
_.h(Yu,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(VSy!==void 0)return VSy;var c=document.createElement("template");_.n(c,'\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>\n  </div>\n</div>\n');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return VSy=c},{mode:1});var Xov;var Fo=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};c.isLocked=!1;return c};
_.K(Fo,_.z);_.r=Fo.prototype;_.r.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.r.onExpandedChanged=function(){this.expanded&&_.kt(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.r.onMouseOver=function(){this.maybeExpand()};
_.r.onTap=function(){this.maybeExpand()};
_.r.onExpandableTileExpanding=function(c){c!==this&&(this.expanded=!1)};
_.r.onExpandableTileLockAndCollapse=function(c){this.isLocked=!0;c!==this&&(this.expanded=!1)};
_.r.onExpandableTileUnlock=function(){this.isLocked=!1};
Fo.prototype.onTap=Fo.prototype.onTap;Fo.prototype.onMouseOver=Fo.prototype.onMouseOver;Fo.prototype.onExpandedChanged=Fo.prototype.onExpandedChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Fo.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Fo.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Fo.prototype,"expanded",void 0);_.y([_.ba("expanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Fo.prototype,"onExpandedChanged",null);_.y([_.Ta("mouseover"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Fo.prototype,"onMouseOver",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Fo.prototype,"onTap",null);
_.y([_.v({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Fo);
_.h(Fo,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Xov!==void 0)return Xov;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Xov=c},{mode:1});var uau;var tb=function(){var c=_.z.apply(this,arguments)||this;c.buttonOverrides={style:"overlay"};c.useYtdPlayer=_.F("use_ytd_player_for_desktop_masthead");c.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};c.playbackFinished=!1;c.JSC$15434_playerManager=null;c.JSC$15434_mastheadCounter=new hWv;return c};
_.K(tb,_.z);_.r=tb.prototype;_.r.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"}}}};
_.r.created=function(){this.JSC$15434_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15434_playerManager=new z7)};
_.r.ready=function(){var c=this;this.JSC$15434_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var f=_.r1(this.hostElement).querySelector("#player");this.useYtdPlayer?f.style.display="none":(this.ytdPlayer.style.display="none",weu(this.JSC$15434_playerManager,f,function(){c.onPlaybackEnded()}),_.r1(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var d;
((d=c.data)==null?0:d.navigationEndpoint)&&_.CZ(c.hostElement,"yt-navigate",{endpoint:c.data.navigationEndpoint})}))};
_.r.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15434_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.r.attached=function(){var c=this;_.Nh(function(){c.maybePlayVideo()})};
_.r.maybePlayVideo=function(){var c=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$15434_playerManager.playVideo(),this.getPlayerPromise().then(function(){c.JSC$15434_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.r.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15434_playerManager.stopVideo()};
_.r.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var c,f={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((c=this.data.playbackStartMs)!=null?c:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(f);this.setupYtdPlayer()}else WLo(this.JSC$15434_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(yUv(this.JSC$15434_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.r.getPlayerPromise=function(){return this.JSC$15434_playerManager.getPlayerPromise()};
_.r.onYtToggleButton=function(c){this.useYtdPlayer?this.toggleMute(c.detail.toggled):c.detail.toggled?this.JSC$15434_playerManager.mute():this.JSC$15434_playerManager.unMute()};
_.r.onYtNavigate=function(c){var f=bdn(c.detail.endpoint),d=KUk(this.data.clickthroughReportingData);f&&d&&(c.detail.endpoint.watchEndpoint?c.detail.tempData=d:_.cO(f,d,30))};
_.r.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.r.onExpandedChanged=function(){this.expanded?(_.kt(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.r.onMouseOver=function(){this.maybeExpand()};
_.r.onTap=function(){this.maybeExpand()};
_.r.onExpandableTileExpanding=function(c){c!==this&&(this.stopVideo(),this.expanded=!1)};
_.r.onExpandableTileLockAndCollapse=function(c){c!==this&&(this.isLocked=!0,this.expanded=!1)};
_.r.onExpandableTileUnlock=function(){this.isLocked=!1};
_.r.lockAndCollapseExpandableTiles=function(){_.gS(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.r.unlockExpandableTiles=function(){_.gS(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.r.setupYtdPlayer=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return d.yield(c.ytdPlayer.getPlayerPromise(),2);f=d.yieldResult;f.addEventListener("onStateChange",function(q){c.onPlayerStateChange(q)});
f.addEventListener("onCueRangeExit",function(q){c.onCueRangeExit(q)});
_.Fm(d)})};
_.r.onPlayerStateChange=function(c){if(c===1&&(c=this.ytdPlayer.getPlayer())){var f=c.getCurrentTime(),d,q,Z=f+((q=(d=this.data)==null?void 0:d.playbackDurationMs)!=null?q:0)/1E3;c.addCueRange("playback",f,Z);this.JSC$15434_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.r.onCueRangeExit=function(c){c==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.r.toggleMute=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(f.ytdPlayer.getPlayerPromise(),2);d=q.yieldResult;c?d.mute():d.unMute();_.Fm(q)})};
tb.prototype.onTap=tb.prototype.onTap;tb.prototype.onMouseOver=tb.prototype.onMouseOver;tb.prototype.onExpandedChanged=tb.prototype.onExpandedChanged;tb.prototype.onYtNavigate=tb.prototype.onYtNavigate;tb.prototype.onYtToggleButton=tb.prototype.onYtToggleButton;tb.prototype.dataChanged=tb.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],tb.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tb.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],tb.prototype,"expanded",void 0);_.y([_.L(),_.D("design:type",Object)],tb.prototype,"buttonOverrides",void 0);
_.y([_.L(),_.D("design:type",Object)],tb.prototype,"useYtdPlayer",void 0);_.y([_.AY("#ytd-player"),_.D("design:type",Object)],tb.prototype,"ytdPlayer",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tb.prototype,"dataChanged",null);_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],tb.prototype,"onYtToggleButton",null);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],tb.prototype,"onYtNavigate",null);_.y([_.ba("expanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tb.prototype,"onExpandedChanged",null);_.y([_.Ta("mouseover"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tb.prototype,"onMouseOver",null);
_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tb.prototype,"onTap",null);_.y([_.v({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],tb);
_.h(tb,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(uau!==void 0)return uau;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return uau=c},{mode:1});var vV_;var bM=function(){return _.z.apply(this,arguments)||this};
_.K(bM,_.z);bM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
bM.prototype.onShow=function(){var c=_.r1(this.hostElement).querySelector("#live-description"),f;c&&((f=this.data)==null?0:f.shortLiveDescription)&&c.clientWidth<c.scrollWidth&&this.hostElement.classList.add("short-live-description")};
bM.prototype.onYtToggleButton=function(c){var f,d=(f=this.data)==null?void 0:f.videoReminderEntityKey;d&&this.ytdReduxBehavior.dispatch(_.ER("upcomingEventReminderStateEntity",d,{key:d,state:c.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
bM.prototype.videoReminderStateChanged=function(){var c;this.videoReminderState&&_.b((c=this.data)==null?void 0:c.cta,_.Dj)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
bM.prototype.videoReminderStateChanged=bM.prototype.videoReminderStateChanged;bM.prototype.onYtToggleButton=bM.prototype.onYtToggleButton;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],bM.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bM.prototype,"data",void 0);
_.y([_.L({selectorArgs:["data.videoReminderEntityKey"],selector:yON}),_.D("design:type",Object)],bM.prototype,"videoReminderState",void 0);_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],bM.prototype,"onYtToggleButton",null);_.y([_.m5("videoReminderState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],bM.prototype,"videoReminderStateChanged",null);
_.y([_.v({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],bM);
_.h(bM,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(vV_!==void 0)return vV_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return vV_=c},{mode:_.lP("kevlar_poly_si_batch_j065")?1:2});var hLH;var Kl=function(){var c=_.z.apply(this,arguments)||this;c.useYtdPlayer=_.F("use_ytd_player_for_desktop_masthead");c.buttonOverrides={style:"overlay"};c.JSC$15442_playerManager=null;c.JSC$15442_mastheadCounter=new hWv;c.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return c};
_.K(Kl,_.z);_.r=Kl.prototype;_.r.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"}}}};
_.r.created=function(){this.JSC$15442_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15442_playerManager=new z7)};
_.r.ready=function(){var c=this;this.JSC$15442_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var f;(f=this.embeddedPlayer)==null||f.remove()}else{var d;(d=this.ytdPlayer)==null||d.remove();weu(this.JSC$15442_playerManager,this.embeddedPlayer,function(){c.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){c.data&&c.data.navigationEndpoint&&_.CZ(c.hostElement,"yt-navigate",{endpoint:c.data.navigationEndpoint})})}};
_.r.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15442_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.r.dataChanged=function(){var c=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var f=!this.data.disableAutoPlayback,d,q={autoplay:f,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.hostElement.classList.add(f?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(q);this.setupYtdPlayer()}else WLo(this.JSC$15442_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(yUv(this.JSC$15442_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15442_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.gS(c.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");c.JSC$15442_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.r.getPlayerPromise=function(){return this.JSC$15442_playerManager.getPlayerPromise()};
_.r.onYtToggleButton=function(c){this.useYtdPlayer?this.toggleMute(c.detail.toggled):c.detail.toggled?this.JSC$15442_playerManager.mute():this.JSC$15442_playerManager.unMute()};
_.r.onYtNavigate=function(c){var f=bdn(c.detail.endpoint),d=KUk(this.data.clickthroughReportingData);f&&d&&(c.detail.endpoint.watchEndpoint?c.detail.tempData=d:_.cO(f,d,30))};
_.r.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15442_playerManager.stopVideo()};
_.r.setupYtdPlayer=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return d.yield(c.ytdPlayer.getPlayerPromise(),2);f=d.yieldResult;f.addEventListener("onStateChange",function(q){c.onPlayerStateChange(q)});
f.addEventListener("onCueRangeExit",function(q){c.onCueRangeExit(q)});
_.Fm(d)})};
_.r.onPlayerStateChange=function(c){if(c===1&&(c=this.ytdPlayer.getPlayer())){var f=c.getCurrentTime(),d,q,Z=f+((q=(d=this.data)==null?void 0:d.playbackDurationMs)!=null?q:0)/1E3;c.addCueRange("playback",f,Z);_.gS(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15442_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.r.onCueRangeExit=function(c){c==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.r.toggleMute=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(f.ytdPlayer.getPlayerPromise(),2);d=q.yieldResult;c?d.mute():d.unMute();_.Fm(q)})};
_.ci.Object.defineProperties(Kl.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var c,f;if(!((c=this.data)==null?0:(f=c.accessibilityData)==null?0:f.label))return"Ad primary link";var d,q;return _.HO("AD_TITLE",{title:(d=this.data)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label})}}});
Kl.prototype.onYtMastheadHidden=Kl.prototype.onYtMastheadHidden;Kl.prototype.onYtNavigate=Kl.prototype.onYtNavigate;Kl.prototype.onYtToggleButton=Kl.prototype.onYtToggleButton;Kl.prototype.dataChanged=Kl.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Kl.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Kl.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Kl.prototype,"useYtdPlayer",void 0);_.y([_.AY("ytd-toggle-button-renderer"),_.D("design:type",Object)],Kl.prototype,"muteButton",void 0);_.y([_.L(),_.D("design:type",Object)],Kl.prototype,"buttonOverrides",void 0);
_.y([_.S("data.accessibilityData.label"),_.D("design:type",String),_.D("design:paramtypes",[])],Kl.prototype,"titleAriaLabel",null);_.y([_.AY("#replay-button"),_.D("design:type",Object)],Kl.prototype,"replayButton",void 0);_.y([_.AY("#player-container"),_.D("design:type",Object)],Kl.prototype,"playerContainer",void 0);_.y([_.AY("#player"),_.D("design:type",Object)],Kl.prototype,"embeddedPlayer",void 0);_.y([_.AY("#ytd-player"),_.D("design:type",Object)],Kl.prototype,"ytdPlayer",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kl.prototype,"dataChanged",null);_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Kl.prototype,"onYtToggleButton",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Kl.prototype,"onYtNavigate",null);
_.y([_.Ta("yt-masthead-hidden"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kl.prototype,"onYtMastheadHidden",null);_.y([_.v({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Kl);
_.h(Kl,"ytd-video-masthead-ad-primary-video-renderer",function(){if(hLH!==void 0)return hLH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return hLH=c},{mode:2});var woo;var EQ=function(){var c=_.z.apply(this,arguments)||this;c.collapsed=!1;c.impressionResolver=_.c9();c.JSC$15446_activeViewMeasurementDataResolver=_.c9();c.actionMap={"yt-mute-ad-action":"handleMuteAd"};return c};
_.K(EQ,_.z);_.r=EQ.prototype;_.r.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"}}}};
_.r.ready=function(){var c=this;_.r1(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){c.expandAd()});
this.hostElement.addEventListener("yt-action",function(f){if(f.detail.actionName==="yt-service-request"){var d=f.detail.args[1];d.videoMastheadAdMuteCommand&&(c.collapseAd(d.videoMastheadAdMuteCommand.encryptedMastheadId),f.stopPropagation())}})};
_.r.attached=function(){var c=this;_.Nh(function(){c.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(f){if(!c.collapsed){f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=d.value,NR(d.baseUrl,d.attributionSrcMode);c.data.impressionCommand=void 0}});
this.JSC$15446_activeViewMeasurementDataResolver.promise.then(function(f){c.ytdActiveViewBehavior.enableActiveViewMeasurement(f,15)});
_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&c.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.dataChanged=function(){var c;((c=this.data.impressionCommand)==null?0:c.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var f;((f=this.data)==null?0:f.activeView)&&this.JSC$15446_activeViewMeasurementDataResolver.resolve(this.data.activeView);(c=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(c.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.r.computeWidescreen=function(c){var f;return!!(c&&((f=_.b(c,uB3))==null?0:f.isWidescreen))};
_.r.computeExpandable=function(c){return!!(c&&c.length>0)};
_.r.onIronResize=function(){if(this.expandable){var c=_.r1(this.hostElement).querySelector("#expandable-tile-container :first-child");c&&!c.expanded&&(c.expanded=!0)}};
_.r.handleMuteAd=function(){this.collapseAd(null)};
_.r.restoreCollapsedState=function(c){this.collapsed=_.Ft().get("HIDDEN_MASTHEAD_ID")===c};
_.r.collapseAd=function(c){if(c){var f=_.Ft();f.set("HIDDEN_MASTHEAD_ID",c);f.save()}(c=_.r1(this.hostElement).querySelector("#video"))&&_.CZ(c,"yt-masthead-hidden");this.collapsed=!0};
_.r.expandAd=function(){var c=_.Ft();c.set("HIDDEN_MASTHEAD_ID",!1);c.save();location.reload()};
_.r.detached=function(){_.F("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
EQ.prototype.onIronResize=EQ.prototype.onIronResize;EQ.prototype.dataChanged=EQ.prototype.dataChanged;_.y([_.Q(_.aJ),_.D("design:type",Object)],EQ.prototype,"ironResizableBehavior",void 0);_.y([_.Q(hx),_.D("design:type",Object)],EQ.prototype,"ytdActiveViewBehavior",void 0);_.y([_.Q(_.et),_.D("design:type",Object)],EQ.prototype,"ytdGridStateAwareBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],EQ.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],EQ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.D("design:type",Boolean)],EQ.prototype,"widescreen",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.D("design:type",Boolean)],EQ.prototype,"expandable",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],EQ.prototype,"collapsed",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],EQ.prototype,"dataChanged",null);
_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],EQ.prototype,"onIronResize",null);_.y([_.v({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],EQ);
_.h(EQ,"ytd-video-masthead-ad-v3-renderer",function(){if(woo!==void 0)return woo;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return woo=c},{mode:2});var nl=function(){return _.z.apply(this,arguments)||this};
_.K(nl,_.z);_.r=nl.prototype;_.r.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.r.ready=function(){var c=this;Tae(function(){c.isAttached&&ZL(c.JSC$15451_storedAdSlotMetadata,c.JSC$15451_storedAdLayoutMetadata,c.adSlotMetadata,c.adLayoutMetadata)&&mg(iM(),c.JSC$15451_storedAdSlotMetadata,c.JSC$15451_storedAdLayoutMetadata)})};
_.r.attached=function(){ZL(this.JSC$15451_storedAdSlotMetadata,this.JSC$15451_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&A_o(iM(),this.JSC$15451_storedAdSlotMetadata,this.JSC$15451_storedAdLayoutMetadata)};
_.r.detached=function(){ZL(this.JSC$15451_storedAdSlotMetadata,this.JSC$15451_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&mg(iM(),this.JSC$15451_storedAdSlotMetadata,this.JSC$15451_storedAdLayoutMetadata)};
_.r.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15451_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15451_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15451_storedAdLayoutMetadata!==void 0&&this.JSC$15451_storedAdSlotMetadata!==void 0&&mg(iM(),this.JSC$15451_storedAdSlotMetadata,this.JSC$15451_storedAdLayoutMetadata),A_o(iM(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15451_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15451_storedAdSlotMetadata=this.adSlotMetadata)};
_.ci.Object.defineProperties(nl.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.adLayoutMetadata}}});
nl.prototype.onAdMetadataChanged=nl.prototype.onAdMetadataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],nl.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nl.prototype,"data",void 0);_.y([_.S("data.adLayoutMetadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],nl.prototype,"adLayoutMetadata",null);
_.y([_.L(),_.D("design:type",Object)],nl.prototype,"adSlotMetadata",void 0);_.y([_.m5("adLayoutMetadata","adSlotMetadata"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nl.prototype,"onAdMetadataChanged",null);_.y([_.v({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],nl);
_.h(nl,"ytd-page-top-ad-layout-renderer",function(){if(aQT!==void 0)return aQT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return aQT=
c},{mode:_.lP("kevlar_poly_si_batch_j070")?1:2});var y_o;var Jb=function(){var c=_.z.apply(this,arguments)||this;c.noBottomMargin=!1;c.overlayDensity=0;c.typographyBump=!1;return c};
_.K(Jb,_.z);_.r=Jb.prototype;
_.r.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]]"}}}}}};
_.r.ready=function(){var c=this;Tae(function(){c.isAttached&&c.adSlotMetadata&&HIT(iM(),c.adSlotMetadata)})};
_.r.attached=function(){if(this.adSlotMetadata){var c;if(this.adSlotMetadata===((c=this.data)==null?void 0:c.adSlotMetadata))mny(iM(),this.adSlotMetadata);else{var f;_.u6(Error("Kh`"+this.adSlotMetadata+"`"+((f=this.data)==null?void 0:f.adSlotMetadata)))}}};
_.r.detached=function(){this.adSlotMetadata&&HIT(iM(),this.adSlotMetadata)};
_.r.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.r.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&HIT(iM(),this.adSlotMetadata),mny(iM(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.ci.Object.defineProperties(Jb.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var c,f,d=_.b((c=this.data)==null?void 0:(f=c.fulfillmentContent)==null?void 0:f.fulfilledLayout,_.h8_),q;return(c=(q=_.b(d==null?void 0:d.renderingContent,vxr))==null?void 0:q.layout)?c.toLowerCase().replace(/_/g,"-"):""}}});
Jb.prototype.onAdSlotMetadataChanged=Jb.prototype.onAdSlotMetadataChanged;Jb.prototype.onTypographyBumpChanged=Jb.prototype.onTypographyBumpChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Jb.prototype,"rendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Jb.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Jb.prototype,"noBottomMargin",void 0);_.y([_.L(),_.D("design:type",Object)],Jb.prototype,"overlayDensity",void 0);_.y([_.L(),_.D("design:type",Object)],Jb.prototype,"typographyBump",void 0);_.y([_.AY("ytd-in-feed-ad-layout-renderer"),_.D("design:type",HTMLElement)],Jb.prototype,"inFeedAdLayoutRenderer",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],Jb.prototype,"layout",null);_.y([_.m5("typographyBump"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Jb.prototype,"onTypographyBumpChanged",null);_.y([_.m5("data.adSlotMetadata"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Jb.prototype,"onAdSlotMetadataChanged",null);
_.y([_.v({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Jb);
_.h(Jb,"ytd-ad-slot-renderer",function(){if(y_o!==void 0)return y_o;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return y_o=c},{mode:_.lP("kevlar_poly_si_batch_j077")?
1:2});var WMH;var aA=function(){return _.z.apply(this,arguments)||this};
_.K(aA,_.z);_.r=aA.prototype;_.r.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"}}}};
_.r.maybeComputeHref=function(c){return _.F("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(c)};
_.r.onTap=function(){_.F("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&gXM(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.r.onThumbnailContainerClick=function(c){this.onClick(c)};
_.r.onClick=function(c){if(_.F("enable_handle_watch_endpoint_click_for_vdc")){var f,d=(f=this.data)==null?void 0:f.navigationEndpoint;d&&_.b(d,_.pe)&&(this.ytSparklesClickLocationBehavior.handleClick(d,c,!1),c.stopPropagation())}};
_.r.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var c=_.C(this.data.impressionUrls),f=c.next();!f.done;f=c.next())f=f.value,mVh(f,Aer(f));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.F("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",aA.JSC$15459_DEFAULT_CLICK_LOCATION_BEHAVIOR,aA.JSC$15459_CLICK_LOCATION_ID_MAP),this.thumbnail&&(c=this.thumbnail.getElementsByTagName("a"),
c.length>0&&(c=c.namedItem("thumbnail"))&&c.removeAttribute("href")))}};
_.r.attached=function(){var c=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&c.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){_.F("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ci.Object.defineProperties(aA.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"}}});
aA.prototype.dataChanged=aA.prototype.dataChanged;aA.prototype.onTap=aA.prototype.onTap;aA.JSC$15459_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
aA.JSC$15459_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"}];_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(hx),_.D("design:type",Object)],aA.prototype,"ytdActiveViewBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],aA.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],aA.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],aA.prototype,"ytSparklesClickLocationBehavior",void 0);
_.y([_.L({selector:_.eC}),_.D("design:type",Object)],aA.prototype,"isGridViewEnabled",void 0);_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],aA.prototype,"watchFeedBigThumbs",null);_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",String),_.D("design:paramtypes",[])],aA.prototype,"thumbnailWidth",null);_.y([_.L(),_.D("design:type",Object)],aA.prototype,"data",void 0);
_.y([_.AY("ytd-thumbnail"),_.D("design:type",HTMLElement)],aA.prototype,"thumbnail",void 0);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],aA.prototype,"onTap",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],aA.prototype,"dataChanged",null);_.y([_.v({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],aA);
_.h(aA,"ytd-compact-promoted-video-renderer",function(){if(WMH!==void 0)return WMH;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return WMH=c},{mode:1});var Dn_;_.w_("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var VX=function(){return _.z.apply(this,arguments)||this};
_.K(VX,_.z);VX.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],VX.prototype,"data",void 0);_.y([_.v({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],VX);
_.h(VX,"ytd-search-pyv-renderer",function(){if(Dn_!==void 0)return Dn_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Dn_=c},{mode:1});var eLy;_.w_("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Xo=function(){var c=_.z.apply(this,arguments)||this;c.roundedContainer=!0;c.JSC$15467_handleOpenPostCommentDialogActionAfterStamp=!1;c.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return c};
_.K(Xo,_.z);_.r=Xo.prototype;
_.r.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}}};
_.r.onStampFinished=function(){this.JSC$15467_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.r.handleSignalActionOpenPostCommentDialogAction=function(){var c=_.r1(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");c?c.openDialog():this.JSC$15467_handleOpenPostCommentDialogActionAfterStamp=!0};
_.r.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.r.computeHideBorder=function(){return this.isInEngagementPanel};
_.r.computeIsCompact=function(){return this.isInEngagementPanel};
_.r.computeUsesCompactLockup=function(c){return c==="BACKSTAGE_SURFACE_TYPE_HOME"||c==="BACKSTAGE_SURFACE_TYPE_SEARCH"||c==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||c==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||c==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||c==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.r.computeUsesFullLockup=function(){var c,f=(c=this.data)==null?void 0:c.post,d;c=(d=_.b(f,U0H))==null?void 0:d.surface;var q;d=(q=_.b(f,oxy))==null?void 0:q.originalPost;var Z;if(q=c||((Z=_.b(d,U0H))==null?void 0:Z.surface))return!this.computeUsesCompactLockup(q)&&this.useUpdatedRepostUi;var M;return((M=_.b(f,oxy))==null?void 0:M.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.ci.Object.defineProperties(Xo.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var c,f;return((f=_.b((c=this.data)==null?void 0:c.post,U0H))==null?void 0:f.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.useUpdatedRepostUi}}});
Xo.prototype.onYtCommentModerationPanelEmpty=Xo.prototype.onYtCommentModerationPanelEmpty;Xo.prototype.onStampFinished=Xo.prototype.onStampFinished;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Xo.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Xo.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Xo.prototype,"roundedContainer",void 0);_.y([_.L({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Xo.prototype,"hideBorder",void 0);_.y([_.L({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Xo.prototype,"isCompact",void 0);
_.y([_.L({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Xo.prototype,"usesFullLockup",void 0);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Xo.prototype,"onStampFinished",null);
_.y([_.Ta("ytd-comment-moderation-panel-empty"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Xo.prototype,"onYtCommentModerationPanelEmpty",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Xo.prototype,"isInEngagementPanel",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Xo.prototype,"useUpdatedRepostUi",null);
_.y([_.v({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Xo);
_.h(Xo,"ytd-backstage-post-thread-renderer",function(){if(eLy!==void 0)return eLy;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return eLy=c},{mode:1});var Ne_;var uM=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(uM,_.z);uM.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
uM.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var c=this.data.thumbnail.thumbnails;this.isDarkTheme&&(c=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(c=_.kZ(c,24,void 0,"height"))?c:void 0}};
uM.prototype.onDarkModeToggledAction=function(c){this.isDarkTheme=c};
uM.prototype.computeHasText=function(){var c;return!((c=this.data)==null||!c.text)};
_.ci.Object.defineProperties(uM.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.XD(this.bannerImageUrl))+'");'}}});
uM.prototype.computeHasText=uM.prototype.computeHasText;uM.prototype.computeBannerImageUrl=uM.prototype.computeBannerImageUrl;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],uM.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],uM.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],uM.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],uM.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",String)],uM.prototype,"bannerImageUrl",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.D("design:type",Boolean)],uM.prototype,"hasText",void 0);_.y([_.m5("data","isDarkTheme"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uM.prototype,"computeBannerImageUrl",null);
_.y([_.m5("data.text"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uM.prototype,"computeHasText",null);_.y([_.S("bannerImageUrl"),_.D("design:type",Object),_.D("design:paramtypes",[])],uM.prototype,"bannerStyle",null);_.y([_.v({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],uM);
_.h(uM,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Ne_!==void 0)return Ne_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Ne_=c},{mode:1});var IQO;var vB=function(){return _.z.apply(this,arguments)||this};
_.K(vB,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],vB.prototype,"data",void 0);_.y([_.v({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],vB);
_.h(vB,"ytd-backstage-zero-state-renderer",function(){if(IQO!==void 0)return IQO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return IQO=c},{mode:1});var PHF;var hb=function(){return _.z.apply(this,arguments)||this};
_.K(hb,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hb.prototype,"data",void 0);_.y([_.L({computed:"computeIcon_(data.icon)"}),_.D("design:type",String)],hb.prototype,"icon",void 0);_.y([_.v({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],hb);
_.h(hb,"ytd-post-filter-zero-state-renderer",function(){if(PHF!==void 0)return PHF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return PHF=c},{mode:1});var RLj;var Uny={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},wG=function(){return _.z.apply(this,arguments)||this};
_.K(wG,_.z);wG.prototype.configureRendererStamper=function(){return Uny};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],wG.prototype,"rendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wG.prototype,"data",void 0);_.y([_.L({computed:"computeIcon_(data.icon)"}),_.D("design:type",String)],wG.prototype,"icon",void 0);_.y([_.v({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],wG);
_.h(wG,"ytd-post-scheduling-zero-state-renderer",function(){if(RLj!==void 0)return RLj;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return RLj=c},{mode:1});var poH;var yX=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return c};
_.K(yX,_.z);yX.prototype.onTabsActivate=function(c){this.data&&this.data.tabs&&_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[c.detail.selected].navigationEndpoint})};
yX.prototype.shouldShowTotalCount=function(c){return c&&c.totalCount!==void 0};
yX.prototype.handleUpdatePostsTotalCountAction=function(c){var f=this.get(["data.tabs",1,"totalCount"]),d=this.get("updatePostsTotalCountAction.updateType",c);c=this.get("updatePostsTotalCountAction.number",c);f!==void 0&&d!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&c&&(d==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(f)+c):d==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(f)-c))};
_.ci.Object.defineProperties(yX.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var c=0,f=this.data.tabs.length;c<f;c++)if(this.data.tabs[c].selected)return c;return 0}}});
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],yX.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yX.prototype,"rendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yX.prototype,"data",void 0);_.y([_.S("data.tabs"),_.D("design:type",Number),_.D("design:paramtypes",[])],yX.prototype,"selected",null);_.y([_.v({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],yX);
_.h(yX,"ytd-post-stream-filter-renderer",function(){if(poH!==void 0)return poH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return poH=c},{mode:1});var xnF;var WB=function(){return _.z.apply(this,arguments)||this};
_.K(WB,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],WB.prototype,"kevlarBehaviors",void 0);_.y([_.L(),_.D("design:type",Object)],WB.prototype,"data",void 0);_.y([_.v({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],WB);
_.h(WB,"ytd-channel-age-gate-renderer",function(){if(xnF!==void 0)return xnF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return xnF=c},{mode:1});var oV_;_.w_("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Dv=function(){var c=_.z.apply(this,arguments)||this;c.data=null;return c};
_.K(Dv,_.z);Dv.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ci.Object.defineProperties(Dv.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.data)==null?0:(f=c.title)==null?0:(d=f.runs)==null?0:d.length)?147:160}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Dv.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],Dv.prototype,"imageSizePx",null);_.y([_.v({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Dv);
_.h(Dv,"ytd-channel-owner-empty-state-renderer",function(){if(oV_!==void 0)return oV_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return oV_=c},{mode:1});var Gzy;var clF;var ey=function(){var c=_.z.apply(this,arguments)||this;c.boundSubmitSearch=function(){c.submitSearch()};
c.boundClearSearch=function(){c.clearSearch()};
return c};
_.K(ey,_.z);_.r=ey.prototype;_.r.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]]"}}}}}};
_.r.toggleClearButton=function(){this.hideClearButton=KlP||!this.input.value};
_.r.submitOnEnterKeyUp=function(c){c.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.r.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.r.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.r.submit=function(){_.CZ(this.hostElement,"search-query-changed",this.input.value)};
ey.prototype.toggleClearButton=ey.prototype.toggleClearButton;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ey.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ey.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],ey.prototype,"hideClearButton",void 0);_.y([_.L(),_.D("design:type",Object)],ey.prototype,"boundSubmitSearch",void 0);_.y([_.L(),_.D("design:type",Object)],ey.prototype,"boundClearSearch",void 0);_.y([_.AY("#input"),_.D("design:type",Object)],ey.prototype,"input",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ey.prototype,"toggleClearButton",null);
_.y([_.v({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],ey);
_.h(ey,"ytd-channel-switcher-search-box-renderer",function(){if(clF!==void 0)return clF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return clF=c},{mode:1});var fyu;var Nv=function(){var c=_.z.apply(this,arguments)||this;c.boundSubmit=function(){c.submit()};
return c};
_.K(Nv,_.z);_.r=Nv.prototype;_.r.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"}}}}};
_.r.ready=function(){var c=this;this.form.addEventListener("submit",function(f){return c.onSubmit(f)})};
_.r.onSubmit=function(c){c.preventDefault();return!1};
_.r.toggleClearButton=function(){this.hideClearButton=KlP||!this.input.value};
_.r.submitOnEnterKeyUp=function(c){c.keyCode===13&&this.submit()};
_.r.submit=function(){var c=this.data.endpoint,f=(0,_.zV.unsafeClone)(c);_.b(f,_.Fw)?_.b(f,_.Fw).query=this.input.value:_.b(f,_.th)&&(_.b(f,_.th).query=this.input.value);var d=_.b(f.commandMetadata,_.jO);(d==null?0:d.url)?(d.url=_.Ww(d.url,"query",this.input.value),_.CZ(this.hostElement,"yt-navigate",{endpoint:f})):_.b(f,z8_)?(_.b(f,z8_).channelSwitcherQuery=this.input.value,_.ql().resolve(_.ZM).resolveCommand(f,{form:{element:this.hostElement}})):(c=Error("Lh`"+JSON.stringify(c)),_.VO(c))};
_.r.getUrl=function(c){return this.get("commandMetadata.webCommandMetadata.url",c)};
Nv.prototype.toggleClearButton=Nv.prototype.toggleClearButton;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Nv.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Nv.prototype,"hideClearButton",void 0);
_.y([_.L(),_.D("design:type",Object)],Nv.prototype,"boundSubmit",void 0);_.y([_.AY("#form"),_.D("design:type",HTMLFormElement)],Nv.prototype,"form",void 0);_.y([_.AY("#input"),_.D("design:type",Object)],Nv.prototype,"input",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Nv.prototype,"toggleClearButton",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Nv);
_.h(Nv,"ytd-search-box-renderer",function(){if(fyu!==void 0)return fyu;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return fyu=c},{mode:2});var IA=function(){var c=_.z.apply(this,arguments)||this;c.showSearchBox=!0;return c};
_.K(IA,_.z);IA.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],IA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IA.prototype,"showSearchBox",void 0);_.y([_.v({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],IA);
_.h(IA,"ytd-channel-switcher-header-renderer",function(){if(Gzy!==void 0)return Gzy;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Gzy=c},{mode:1});var dqj;var jtH;var PB=function(){var c=_.z.apply(this,arguments)||this;c.isDisplayed=!0;return c};
_.K(PB,_.z);_.r=PB.prototype;_.r.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.dataChanged=function(){this.isDisplayed=!0};
_.r.computeType=function(c){return c||"UNKNOWN"};
_.r.onYtServiceRequestCompleted=function(c){c.stopPropagation();this.isDisplayed=!1};
_.r.onClose=function(){this.isDisplayed=!1};
PB.prototype.onYtServiceRequestCompleted=PB.prototype.onYtServiceRequestCompleted;PB.prototype.dataChanged=PB.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],PB.prototype,"data",void 0);
_.y([_.L({computed:"computeType(data.type)",reflectToAttribute:!0}),_.D("design:type",String)],PB.prototype,"type",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],PB.prototype,"isDisplayed",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],PB.prototype,"dataChanged",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],PB.prototype,"onYtServiceRequestCompleted",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],PB);
_.h(PB,"ytd-alert-with-button-renderer",function(){if(jtH!==void 0)return jtH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return jtH=c},{mode:1});var RA=function(){var c=_.z.apply(this,arguments)||this;c.noResult=!1;c.enableAlertBanner=!1;c.dismissedAlertBanner=!1;c.hideCreateChannelButton=!1;c.boundDismissAlertBanner=function(){c.dismissAlertBanner()};
c.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return c};
_.K(RA,_.z);_.r=RA.prototype;_.r.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.r.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.r.updateChannelSwitcherAction=function(c){var f;c=(f=_.b(c,b0r))==null?void 0:f.page;_.b(c,tno)!==void 0&&(this.data=_.b(c,tno))};
_.r.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]]"}}}}}};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.r.searchQueryChanged=function(c,f){if(this.data&&this.data.contents&&this.data.contents.length){c=[];var d=[];this.hideCreateChannelButton=this.noResult=!1;for(var q=document.querySelectorAll("ytd-account-item-renderer"),Z=_.C(q),M=Z.next();!M.done;M=Z.next())M=M.value,d.push(M),M.style.display="block";this.resetRightBorder(d);if(f){this.hideCreateChannelButton=!0;for(d=1;d<this.data.contents.length;d++)if(M=this.data.contents[d],_.b(M,Q_O)){var g=void 0,O=void 0;Z=(g=_.b(M,Q_O))==null?void 0:(O=
g.accountName)==null?void 0:O.simpleText;O=g=void 0;M=(g=_.b(M,Q_O))==null?void 0:(O=g.channelHandle)==null?void 0:O.simpleText;(g=q[d-1])&&Z&&_.le(Z,f)?c.push(g):_.F("enable_handle_search_on_channel_switcher")&&g&&M&&_.le(M.toString(),f.toString())?c.push(g):g.style.display="none"}c.length===0&&(this.noResult=!0);this.resetRightBorder(c)}}};
_.r.resetRightBorder=function(c){for(var f=0;f<c.length;f++)c[f].style.borderRight=!this.hideCreateChannelButton&&(f+2)%3===0||this.hideCreateChannelButton&&(f+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.r.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.r.setShowSearchBox=function(c){if(c&&c.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var f=0;f<c.contents.length;f++)_.b(c.contents[f],_.jJ)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.r.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.ci.Object.defineProperties(RA.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null?0:c.contents)}}});
RA.prototype.onContinuationItemsUpdated=RA.prototype.onContinuationItemsUpdated;RA.prototype.searchQueryChanged=RA.prototype.searchQueryChanged;RA.prototype.onDataChanged=RA.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],RA.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],RA.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],RA.prototype,"data",void 0);_.y([_.AY("ytd-channel-switcher-header-renderer"),_.D("design:type",Object)],RA.prototype,"channelSwitcherHeaderRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],RA.prototype,"noResult",void 0);
_.y([_.L(),_.D("design:type",Object)],RA.prototype,"enableAlertBanner",void 0);_.y([_.L(),_.D("design:type",Object)],RA.prototype,"dismissedAlertBanner",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],RA.prototype,"hideCreateChannelButton",void 0);_.y([_.S("data.contents"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],RA.prototype,"isLoading",null);_.y([_.L(),_.D("design:type",Object)],RA.prototype,"boundDismissAlertBanner",void 0);
_.y([_.L({computed:"computeButtonOverride()"}),_.D("design:type",Object)],RA.prototype,"buttonOverride",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],RA.prototype,"onDataChanged",null);_.y([_.Ta("search-query-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,String]),_.D("design:returntype")],RA.prototype,"searchQueryChanged",null);
_.y([_.Ta("yt-next-continuation-data-updated"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],RA.prototype,"onContinuationItemsUpdated",null);_.y([_.v({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],RA);
_.h(RA,"ytd-channel-switcher-page-renderer",function(){if(dqj!==void 0)return dqj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return dqj=c},{mode:1});var qtv;var ZUo;var UQ=function(){var c=_.z.apply(this,arguments)||this;c.images=[];c.selectedImageIndex=0;return c};
_.K(UQ,_.z);_.r=UQ.prototype;
_.r.ready=function(){_.Lx(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Lx(this.JSC$15512_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Lx(this.JSC$15512_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Lx(this.JSC$15512_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.r.onThumbnailClick=function(c){if(c=c.event_.detail)this.selectedImageIndex=this.images.indexOf(c)};
_.r.updateImageThumbnails=function(c){c=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:c.event_.detail});this.images.splice(this.selectedImageIndex,1,c);this.images=[].concat(_.LT(this.images))};
_.r.cancelImageRepositions=function(){this.selectedImageIndex=0;_.CZ(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.r.saveImageRepositions=function(){this.selectedImageIndex=0;_.CZ(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.ci.Object.defineProperties(UQ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var c=this;return(this.images||[]).map(function(f,d){return{image:f,selected:d===c.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("ytd-backstage-image-preview-renderer"),_.D("design:type",Object)],UQ.prototype,"JSC$15512_imagePreviewContainer",void 0);_.y([_.AY(".thumbnail-images-container"),_.D("design:type",HTMLElement)],UQ.prototype,"thumbnailImagesContainer",void 0);_.y([_.L(),_.D("design:type",Array)],UQ.prototype,"images",void 0);
_.y([_.L(),_.D("design:type",Object)],UQ.prototype,"repositionInstructions",void 0);_.y([_.L(),_.D("design:type",Object)],UQ.prototype,"selectedImageIndex",void 0);_.y([_.S("images","selectedImageIndex"),_.D("design:type",Array),_.D("design:paramtypes",[])],UQ.prototype,"thumbnailRendererDatas",null);_.y([_.S("images","selectedImageIndex"),_.D("design:type",Object),_.D("design:paramtypes",[])],UQ.prototype,"selectedImageData",null);
_.y([_.v({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],UQ);
_.h(UQ,"ytd-backstage-multi-image-reposition-renderer",function(){if(ZUo!==void 0)return ZUo;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ZUo=c},{mode:1});var pl=function(c,f){_.KF.call(this);this.uploadUrl=c;this.channelId=f;this.imagesUploadData=[]};
_.K(pl,_.KF);pl.prototype.getAllUploadStatuses=function(){var c=this,f,d,q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(MmK(c),2);f=Z.yieldResult;d=f.get("succeed");q=f.get("failed");return Z.return(d.concat(q))})};
var CZy=function(c){var f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(MmK(c),2);f=q.yieldResult;d=f.get("failed");d.length>0&&rl_(c,d);return q.return(c.getAllUploadStatuses())})},MmK=function(c){var f,d,q,Z,M,g,O;
return _.k(function(l){if(l.nextAddress==1)return f=new Map,l.yield(Promise.allSettled(c.imagesUploadData.map(function(m){return m.uploadPromise})),2);
d=l.yieldResult;q=[];Z=_.C(d);for(M=Z.next();!M.done;M=Z.next())g=M.value,g.status==="fulfilled"&&q.push(g.value);O=c.imagesUploadData.map(function(m){return m.image}).filter(function(m){return q.every(function(H){return H.id!==m.id})});
f.set("succeed",q);f.set("failed",O);return l.return(f)})},rl_=function(c,f){f=_.C(f);
for(var d=f.next();!d.done;d=f.next()){var q=c;d=d.value;gMr(q,d.id)>=0&&q.cancel(d.id);var Z=new kgv(d),M=_.T4_(q.uploadUrl,{"X-YouTube-ChannelId":q.channelId},d.imageBlob);Z.transfer=M;Z.uploadPromise=OUy(M,d);q.imagesUploadData.push(Z);M.run()}};
pl.prototype.cancel=function(c){var f=gMr(this,c);f!==-1&&((f=this.imagesUploadData[f].transfer)&&f.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(d){return d.image.id!==c}))};
var gMr=function(c,f){return c.imagesUploadData.findIndex(function(d){return d.image.id===f})},OUy=function(c,f){return new Promise(function(d,q){c.listen("l",function(){var Z=c.getResponseText();
Z?(Z=JSON.parse(Z).encryptedBlobId,f.encryptedBlobId=Z,d(f)):q("upload failed")});
c.listen("n",function(){q("upload failed")})})},kgv=function(c){this.image=c};var lEY=function(c,f,d,q,Z){this.id=c;this.imageBlob=f;this.localImageSrc=d;this.naturalWidth=q;this.naturalHeight=Z;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 ly_=[".jpeg",".jpg",".png"],xu=function(){var c=_.z.apply(this,arguments)||this;c.showImagesPreview=!1;c.pollOptions=[];c.errorMessage="";c.optionPlaceholderText="";c.optionDefaultText="";c.JSC$15523_imageId=0;c.maxFileSizeMb=0;c.maxAspectRatio=0;c.invalidFileSizeError="";c.invalidAspectRatioError="";c.invalidFileTypeError="";c.imageSelector=new T2(null,"single_file",ly_);return c};
_.K(xu,_.z);_.r=xu.prototype;_.r.ready=function(){_.Lx(this.imageSelector,"j",this.onImageSelect,!1,this);_.Lx(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Lx(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.r.dataChanged=function(){var c,f,d=_.b((c=this.data)==null?void 0:(f=c.cellTemplate)==null?void 0:f.onEmptyCellTap,n$_);if(d&&d.uploadUrl&&d.channelId){var q;this.maxFileSizeMb=((q=d.imageValidationInfo)==null?void 0:q.maxFileSizeMb)||0;var Z;this.maxAspectRatio=((Z=d.imageValidationInfo)==null?void 0:Z.allowedMaxAspectRatio)||0;var M;this.invalidFileSizeError=this.getSimpleString((M=this.data)==null?void 0:M.invalidFileSizeError);var g;this.invalidAspectRatioError=this.getSimpleString((g=this.data)==
null?void 0:g.invalidAspectRatioError);var O;this.invalidFileTypeError=this.getSimpleString((O=this.data)==null?void 0:O.invalidFileTypeError);this.uploadManager=new pl(d.uploadUrl,d.channelId)}};
_.r.onEditorInfoChange=function(){this.optionPlaceholderText=_.xC(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.xC(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.r.observeAddImageError=function(){this.errorMessage!==""&&_.CZ(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.r.onPollOptionsChange=function(){for(var c=!1,f=[],d=0;d<this.pollOptions.length;d++){var q=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(d+1);this.pollOptions[d].placeholderText!==q?(c=!0,f.push(Object.assign({},this.pollOptions[d],{placeholderText:q}))):f.push(this.pollOptions[d])}c&&(this.pollOptions=f);this.isValid()?_.CZ(this.hostElement,"yt-commentbox-post-enable"):_.CZ(this.hostElement,"yt-commentbox-post-disable")};
_.r.createPollOptions=function(c){var f=[],d;c=(d=c==null?void 0:c.minPollOptions)!=null?d:0;for(d=0;d<c;d++)f.push(this.createPollOption());return f};
_.r.onImageSelect=function(c){var f=this,d,q,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1){if(f.selectedImageIndex===void 0)return l.jumpTo(0);d=c.files[0];f.errorMessage="";q=f.validateImage(d);if(q!=="")return f.errorMessage=q,l.return();Z=new oE(f.maxAspectRatio,!1,!0);return l.yield(Z.transform(d),3)}if(l.nextAddress!=4)return M=l.yieldResult,M.transformedData?M.invalidAspectRatio?(f.errorMessage=f.invalidAspectRatioError,l.return()):l.yield(s6l(f.JSC$15523_imageId,c.files[0],M.transformedData),
4):(f.errorMessage=f.invalidFileTypeError,l.return());g=l.yieldResult;f.JSC$15523_imageId++;rl_(f.uploadManager,[g]);O=Object.assign({},f.pollOptions[f.selectedImageIndex],{image:g});f.pollOptions.splice(f.selectedImageIndex,1,O);f.refreshPollOptions();_.CZ(f.hostElement,"yt-backstage-poll-image-select");_.Fm(l)})};
_.r.validateImage=function(c){return c.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.r.refreshPollOptions=function(){this.pollOptions=[].concat(_.LT(this.pollOptions))};
_.r.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.LT(this.pollOptions),[this.createPollOption()]))};
_.r.onRemovePollOption=function(c){var f=this.pollOptions[c.model.index];f&&f.image&&this.uploadManager.cancel(f.image.id);this.pollOptions.splice(c.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.CZ(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.r.onTextInput=function(){this.refreshPollOptions()};
_.r.onImageButtonClick=function(c){this.selectedImageIndex=c.model.index;this.imageSelector.click()};
_.r.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.r.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.r.saveImageRepositions=function(c){c=c.event_.detail;for(var f=0,d=[],q=_.C(this.pollOptions),Z=q.next();!Z.done;Z=q.next())Z=Z.value,Z.image!==void 0?(Z=Object.assign({},Z,{image:c[f]}),d.push(Z),f++):d.push(Z);this.showImagesPreview=!1;this.pollOptions=[].concat(_.LT(d))};
_.r.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 c=0,f=_.C(this.pollOptions),d=f.next();!d.done;d=f.next())if(d=d.value,d.optionText.trim()!==""||d.image!==void 0){if(!d.image||this.hasCustomOptionText&&d.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;c++}return c>=Number(this.editorInfo.minPollOptions)};
_.r.getAllUploadStatuses=function(){var c=this,f,d,q,Z;return _.k(function(M){if(M.nextAddress==1)return M.yield(c.uploadManager.getAllUploadStatuses(),2);f=M.yieldResult;d=_.C(f);for(q=d.next();!q.done;q=d.next())if(Z=q.value,Z.encryptedBlobId===void 0)return M.return(CZy(c.uploadManager));return M.return(f)})};
_.r.getPostCreateOptions=function(){for(var c=[],f=_.C(this.pollOptions),d=f.next();!d.done;d=f.next())d=d.value,d.image!==void 0&&c.push({text:this.hasCustomOptionText?d.optionText:d.placeholderText,image:d.image});return c};
_.r.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.r.createButtonRenderer=function(c,f){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleString(c)}},isDisabled:f}};
_.r.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.r.computeThumbnailRendererData=function(c){return c?{image:c,selected:!1}:void 0};
_.r.getSimpleString=function(c){return _.xC(c)};
_.r.updateOptionTextFromBinding=function(c){if(c.target){var f=Array.from(_.r1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(c.target);if(f>=0){var d;this.pollOptions[f].optionText=(d=c.detail.value)!=null?d:""}}};
_.ci.Object.defineProperties(xu.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var c,f;return this.pollOptions.length<((f=(c=this.editorInfo)==null?void 0:c.maxPollOptions)!=null?f:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(c){return c.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(c){return c.image}).map(function(c){return c.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(c){return c.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var c,f=(c=this.data)==null?void 0:c.addOptionButtonText;return f?this.createButtonRenderer(f,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var c,f=(c=this.data)==null?void 0:c.repositionImagesButtonLabel;return f?this.createButtonRenderer(f,!this.hasImages):void 0}}});
xu.prototype.onPollOptionsChange=xu.prototype.onPollOptionsChange;xu.prototype.observeAddImageError=xu.prototype.observeAddImageError;xu.prototype.onEditorInfoChange=xu.prototype.onEditorInfoChange;xu.prototype.dataChanged=xu.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("ytd-backstage-multi-image-reposition-renderer"),_.D("design:type",Object)],xu.prototype,"imageRepositionContainer",void 0);
_.y([_.L(),_.D("design:type",Object)],xu.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],xu.prototype,"editorInfo",void 0);_.y([_.L(),_.D("design:type",pl)],xu.prototype,"uploadManager",void 0);_.y([_.L(),_.D("design:type",Object)],xu.prototype,"showImagesPreview",void 0);_.y([_.L(),_.D("design:type",Array)],xu.prototype,"pollOptions",void 0);_.y([_.L(),_.D("design:type",Object)],xu.prototype,"errorMessage",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xu.prototype,"dataChanged",null);_.y([_.ba("editorInfo"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xu.prototype,"onEditorInfoChange",null);_.y([_.m5("errorMessage"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xu.prototype,"observeAddImageError",null);
_.y([_.ba("pollOptions"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xu.prototype,"onPollOptionsChange",null);_.y([_.S("pollOptions","editorInfo"),_.D("design:type",Object),_.D("design:paramtypes",[])],xu.prototype,"isAllowedToAddOption",null);_.y([_.S("pollOptions"),_.D("design:type",Object),_.D("design:paramtypes",[])],xu.prototype,"hasImages",null);
_.y([_.S("pollOptions"),_.D("design:type",Object),_.D("design:paramtypes",[])],xu.prototype,"imagesToReposition",null);_.y([_.S("pollOptions"),_.D("design:type",Object),_.D("design:paramtypes",[])],xu.prototype,"hasCustomOptionText",null);_.y([_.S("data","isAllowedToAddOption"),_.D("design:type",Object),_.D("design:paramtypes",[])],xu.prototype,"addOptionButton",null);_.y([_.S("data","hasImages"),_.D("design:type",Object),_.D("design:paramtypes",[])],xu.prototype,"repositionImagesButton",null);
_.y([_.v({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],xu);
_.h(xu,"ytd-backstage-image-poll-editor-renderer",function(){if(qtv!==void 0)return qtv;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return qtv=c},{mode:2});var str={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 BIF;var oA=function(){var c=_.z.apply(this,arguments)||this;c.a11yConfig=str;c.imageDisplayOffsetTop=0;c.imageDisplayOffsetLeft=0;c.pickerDisplayOffsetTop=0;c.pickerDisplayOffsetLeft=0;c.showPreviewContainer=!0;c.startPicker=!1;c.repositionOptional=!1;c.editOnlyMode=!1;c.savedImageDisplayOffsetTop=0;c.savedImageDisplayOffsetLeft=0;return c};
_.K(oA,_.z);_.r=oA.prototype;_.r.created=function(){_.DG.requestAvailability()};
_.r.ready=function(){};
_.r.onArrowKeysDown=function(c){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){c.detail.keyboardEvent.preventDefault();var f=0,d=0,q="";switch(c.detail.keyboardEvent.key){case "ArrowUp":BC4(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?q=this.a11yConfig.reachBottomOfImage:f=this.imageHeight*.05*-1;break;case "ArrowDown":BC4(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?q=this.a11yConfig.reachTopOfImage:
f=this.imageHeight*.05;break;case "ArrowLeft":BC4(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?q=this.a11yConfig.reachRightOfImage:d=this.imageWidth*.05*-1;break;case "ArrowRight":BC4(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?q=this.a11yConfig.reachLeftOfImage:d=this.imageWidth*.05}q&&_.HO(q)&&_.CZ(this.hostElement,"iron-announce",{text:_.HO(q)});if(d||f)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+f)),c=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),c=_.HO(this.a11yConfig.imageVerticalPosition,{x_percent:""+c,y_percent:""+(100-c)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+d)),c=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),c=_.HO(this.a11yConfig.imageHorizontalPosition,{x_percent:""+c,y_percent:""+(100-c)})),c&&_.CZ(this.hostElement,"iron-announce",{text:c})}};
_.r.getPreviewPosition=function(c,f,d,q){return Math.round(100*(c+f*.5-d)/q)};
_.r.calculateDisplayPosition=function(){var c=this.imageData.naturalWidth,f=this.imageData.naturalHeight;this.displayScale=Math.max(200/c,200/f);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var d=c*this.displayScale*this.imageData.previewCoordinates.left,q=f*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=f>c?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-d;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=c>f?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-q;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=c*this.displayScale;this.imageHeight=f*this.displayScale};
_.r.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.r.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.r.getSignedPosition=function(c,f,d){return f==="X"&&_.hk("HTML_DIR")==="rtl"?d==="-"?c+"px":c*-1+"px":d==="-"?c*-1+"px":c+"px"};
_.r.pickerMove=function(c){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var f=this.pickerOffsetX-c.clientX,d=this.pickerOffsetY-c.clientY;this.pickerOffsetX=c.clientX;this.pickerOffsetY=c.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
d)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-f))}};
_.r.pickerMoveStart=function(c){this.startPicker=!0;this.pickerOffsetX=c.clientX;this.pickerOffsetY=c.clientY};
_.r.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var c=this.generateCropPreview();c&&_.CZ(this.hostElement,"ytd-backstage-image-preview-coordinates-update",c)};
_.r.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.CZ(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.r.deleteImage=function(){_.CZ(this.hostElement,"ytd-backstage-image-preview-delete")};
_.r.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.r.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var c=this.generateCropPreview();c&&_.CZ(this.hostElement,"ytd-backstage-image-preview-coordinates-save",c)};
_.r.getPreviewOffset=function(c,f,d){return f&&c?(d==="X"&&_.hk("HTML_DIR")==="rtl"?300/f*c:300/f*c*-1)+"px":"0px"};
_.r.getSimpleText=function(c){return c?_.xC(c):""};
_.r.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}};
_.ci.Object.defineProperties(oA.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var c=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.HO(this.a11yConfig.imageVerticalPosition,{x_percent:""+c,y_percent:""+(100-c)})+"\n"+_.HO(this.a11yConfig.verticalRepositionInstruction)}c=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.HO(this.a11yConfig.imageHorizontalPosition,{x_percent:""+c,y_percent:""+(100-c)})+"\n"+_.HO(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 c,f,d=(c=this.instruction)==null?void 0:(f=c.previewInstruction)==null?void 0:f.editButtonLabel;return d?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleText(d)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q,Z=this.editOnlyMode?(c=this.instruction)==null?void 0:(f=c.editInstruction)==null?void 0:f.saveImagesButtonLabel:(d=this.instruction)==null?void 0:(q=d.editInstruction)==null?void 0:q.saveButtonLabel;return Z?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Z,accessibilityData:{accessibilityData:{label:this.getSimpleText(Z)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.instruction)==null?void 0:(f=c.previewInstruction)==null?void 0:f.deleteButtonLabel;return d?{size:"SIZE_SMALL",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleText(d)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.instruction)==null?void 0:(f=c.editInstruction)==null?void 0:f.cancelButtonLabel;c=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return d?{style:c,size:"SIZE_SMALL",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleText(d)}}}: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"}}});
oA.prototype.onEditOnlyModeUpdate=oA.prototype.onEditOnlyModeUpdate;oA.prototype.onImageChange=oA.prototype.onImageChange;_.y([_.L(),_.D("design:type",lEY)],oA.prototype,"imageData",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"instruction",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"a11yConfig",void 0);_.y([_.L(),_.D("design:type",Number)],oA.prototype,"imageWidth",void 0);_.y([_.L(),_.D("design:type",Number)],oA.prototype,"imageHeight",void 0);
_.y([_.L(),_.D("design:type",Number)],oA.prototype,"displayScale",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"imageDisplayOffsetTop",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"imageDisplayOffsetLeft",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"pickerDisplayOffsetTop",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"pickerDisplayOffsetLeft",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"showPreviewContainer",void 0);
_.y([_.L(),_.D("design:type",Object)],oA.prototype,"startPicker",void 0);_.y([_.L(),_.D("design:type",Number)],oA.prototype,"pickerOffsetX",void 0);_.y([_.L(),_.D("design:type",Number)],oA.prototype,"pickerOffsetY",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"repositionOptional",void 0);_.y([_.L(),_.D("design:type",Object)],oA.prototype,"editOnlyMode",void 0);_.y([_.AY("#picker-container"),_.D("design:type",HTMLElement)],oA.prototype,"JSC$15536_pickerContainer",void 0);
_.y([_.AY("#picker"),_.D("design:type",HTMLElement)],oA.prototype,"picker",void 0);_.y([_.AY("#preview-clipper"),_.D("design:type",HTMLElement)],oA.prototype,"previewClipper",void 0);_.y([_.AY("#image-in-picker-background"),_.D("design:type",HTMLImageElement)],oA.prototype,"JSC$15536_imageInBackground",void 0);_.y([_.AY("#image-in-picker"),_.D("design:type",HTMLImageElement)],oA.prototype,"JSC$15536_imageInPicker",void 0);
_.y([_.AY("#image-in-preview-clipper"),_.D("design:type",HTMLImageElement)],oA.prototype,"JSC$15536_imageInPreviewClipper",void 0);_.y([_.S("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.D("design:type",String),_.D("design:paramtypes",[])],oA.prototype,"altLabelForImage",null);_.y([_.S("imageHeight","imageWidth"),_.D("design:type",Number),_.D("design:paramtypes",[])],oA.prototype,"pickerSize",null);
_.y([_.S("imageHeight","imageWidth"),_.D("design:type",Object),_.D("design:paramtypes",[])],oA.prototype,"imageOrientationStyle",null);_.y([_.S("instruction"),_.D("design:type",Object),_.D("design:paramtypes",[])],oA.prototype,"editButton",null);_.y([_.S("instruction","editOnlyMode"),_.D("design:type",Object),_.D("design:paramtypes",[])],oA.prototype,"saveButton",null);_.y([_.S("instruction"),_.D("design:type",Object),_.D("design:paramtypes",[])],oA.prototype,"deleteButton",null);
_.y([_.S("instruction","editOnlyMode"),_.D("design:type",Object),_.D("design:paramtypes",[])],oA.prototype,"cancelButton",null);_.y([_.S("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.D("design:type",Number),_.D("design:paramtypes",[])],oA.prototype,"cropOffsetTop",null);_.y([_.S("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.D("design:type",Number),_.D("design:paramtypes",[])],oA.prototype,"cropOffsetLeft",null);
_.y([_.S("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.D("design:type",String),_.D("design:paramtypes",[])],oA.prototype,"pickerBackgroundStyle",null);_.y([_.S("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.D("design:type",String),_.D("design:paramtypes",[])],oA.prototype,"pickerDisplayStyle",null);_.y([_.S("cropOffsetLeft","cropOffsetTop"),_.D("design:type",String),_.D("design:paramtypes",[])],oA.prototype,"imageInPickerStyle",null);
_.y([_.S("cropOffsetLeft","cropOffsetTop","pickerSize"),_.D("design:type",String),_.D("design:paramtypes",[])],oA.prototype,"previewClipperStyle",null);_.y([_.ba("imageData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oA.prototype,"onImageChange",null);_.y([_.ba("editOnlyMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oA.prototype,"onEditOnlyModeUpdate",null);
_.y([_.S("showPreviewContainer"),_.D("design:type",String),_.D("design:paramtypes",[])],oA.prototype,"pickerModeStyle",null);_.y([_.v({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],oA);
_.h(oA,"ytd-backstage-image-preview-renderer",function(){if(BIF!==void 0)return BIF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return BIF=c},{mode:1});var iUj;var TIy={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 mq_;var HU3;var GR=function(){var c=_.z.apply(this,arguments)||this;c.a11yConfig=TIy;c.imageDisplayOffsetTop=0;c.imageDisplayOffsetLeft=0;c.pickerDisplayOffsetTop=0;c.pickerDisplayOffsetLeft=0;c.cropCoordinatesSaved=!1;c.previewSize=0;c.startPicker=!1;c.repositionOptional=!1;return c};
_.K(GR,_.z);_.r=GR.prototype;_.r.created=function(){_.DG.requestAvailability()};
_.r.ready=function(){};
_.r.onArrowKeysDown=function(c){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){c.detail.keyboardEvent.preventDefault();var f=0,d=0,q="";switch(c.detail.keyboardEvent.key){case "ArrowUp":icz(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?q=this.a11yConfig.reachBottomOfImage:f=this.imageHeight*.05*-1;break;case "ArrowDown":icz(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?q=this.a11yConfig.reachTopOfImage:
f=this.imageHeight*.05;break;case "ArrowLeft":icz(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?q=this.a11yConfig.reachRightOfImage:d=this.imageWidth*.05*-1;break;case "ArrowRight":icz(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?q=this.a11yConfig.reachLeftOfImage:d=this.imageWidth*.05}q&&_.HO(q)&&_.CZ(this.hostElement,"iron-announce",{text:_.HO(q)});if(d||f)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+f)),c=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),c=_.HO(this.a11yConfig.imageVerticalPosition,{x_percent:""+c,y_percent:""+(100-c)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+d)),c=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),c=_.HO(this.a11yConfig.imageHorizontalPosition,{x_percent:""+c,y_percent:""+(100-c)})),c&&_.CZ(this.hostElement,"iron-announce",{text:c})}};
_.r.getPreviewPosition=function(c,f,d,q){return Math.round(100*(c+f*.5-d)/q)};
_.r.displayImage=function(){var c=this.JSC$15547_pickerContainer.getBoundingClientRect().width,f=this.JSC$15547_pickerContainer.getBoundingClientRect().height,d=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),q=this.JSC$15547_imageInBackground.naturalWidth,Z=this.JSC$15547_imageInBackground.naturalHeight;this.displayScale=Math.max(d/q,d/Z);this.imageWidth=q*this.displayScale;this.imageHeight=Z*this.displayScale;this.pickerDisplayOffsetLeft=(c-d)/2;this.pickerDisplayOffsetTop=
(f-d)/2;this.imageDisplayOffsetLeft=Z>q?this.pickerDisplayOffsetLeft:(c-this.imageWidth)/2;this.imageDisplayOffsetTop=q>Z?this.pickerDisplayOffsetTop:(f-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.r.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15547_imageInBackground.src=this.imageData.toString(),this.JSC$15547_imageInPicker.src=this.imageData.toString(),this.JSC$15547_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.r.getSignedPosition=function(c,f,d){return f==="X"&&_.hk("HTML_DIR")==="rtl"?d==="-"?c+"px":c*-1+"px":d==="-"?c*-1+"px":c+"px"};
_.r.pickerMove=function(c){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var f=this.pickerOffsetX-c.clientX,d=this.pickerOffsetY-c.clientY;this.pickerOffsetX=c.clientX;this.pickerOffsetY=c.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
d)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-f))}};
_.r.pickerMoveStart=function(c){this.startPicker=!0;this.pickerOffsetX=c.clientX;this.pickerOffsetY=c.clientY};
_.r.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.r.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.CZ(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.r.getPreviewOffset=function(c,f,d,q){return f&&c&&d?(q==="X"&&_.hk("HTML_DIR")==="rtl"?d/f*c:d/f*c*-1)+"px":"0px"};
_.r.getSimpleText=function(c){return c?_.xC(c):""};
_.r.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var c=this.cropOffsetTop/this.imageHeight,f=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,d=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,q=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.r1(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.CZ(this.hostElement,"yt-img-crop-coordinates-update",{top:c,right:f,bottom:d,left:q})}};
_.ci.Object.defineProperties(GR.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var c=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.HO(this.a11yConfig.imageVerticalPosition,{x_percent:""+c,y_percent:""+(100-c)})+"\n"+_.HO(this.a11yConfig.verticalRepositionInstruction)}c=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.HO(this.a11yConfig.imageHorizontalPosition,{x_percent:""+c,y_percent:""+(100-c)})+"\n"+_.HO(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 c,f=(c=this.learnMore.runs[0])==null?void 0:c.navigationEndpoint,d;return((d=_.b(f,_.Ib))==null?void 0:d.url)||void 0}}}});
GR.prototype.onImageDataChange=GR.prototype.onImageDataChange;_.y([_.L(),_.D("design:type",Object)],GR.prototype,"imageData",void 0);_.y([_.L(),_.D("design:type",Object)],GR.prototype,"instruction",void 0);_.y([_.L(),_.D("design:type",Object)],GR.prototype,"a11yConfig",void 0);_.y([_.L(),_.D("design:type",Number)],GR.prototype,"imageWidth",void 0);_.y([_.L(),_.D("design:type",Number)],GR.prototype,"imageHeight",void 0);_.y([_.L(),_.D("design:type",Number)],GR.prototype,"displayScale",void 0);
_.y([_.L(),_.D("design:type",Object)],GR.prototype,"imageDisplayOffsetTop",void 0);_.y([_.L(),_.D("design:type",Object)],GR.prototype,"imageDisplayOffsetLeft",void 0);_.y([_.L(),_.D("design:type",Object)],GR.prototype,"pickerDisplayOffsetTop",void 0);_.y([_.L(),_.D("design:type",Object)],GR.prototype,"pickerDisplayOffsetLeft",void 0);_.y([_.L(),_.D("design:type",Object)],GR.prototype,"cropCoordinatesSaved",void 0);_.y([_.L(),_.D("design:type",Object)],GR.prototype,"previewSize",void 0);
_.y([_.L(),_.D("design:type",Object)],GR.prototype,"startPicker",void 0);_.y([_.L(),_.D("design:type",Number)],GR.prototype,"pickerOffsetX",void 0);_.y([_.L(),_.D("design:type",Number)],GR.prototype,"pickerOffsetY",void 0);_.y([_.L(),_.D("design:type",Object)],GR.prototype,"repositionOptional",void 0);_.y([_.AY("#picker-container"),_.D("design:type",HTMLElement)],GR.prototype,"JSC$15547_pickerContainer",void 0);_.y([_.AY("#picker"),_.D("design:type",HTMLElement)],GR.prototype,"picker",void 0);
_.y([_.AY("#image-in-picker-background"),_.D("design:type",HTMLImageElement)],GR.prototype,"JSC$15547_imageInBackground",void 0);_.y([_.AY("#image-in-picker"),_.D("design:type",HTMLImageElement)],GR.prototype,"JSC$15547_imageInPicker",void 0);_.y([_.AY("#image-in-preview-clipper"),_.D("design:type",HTMLImageElement)],GR.prototype,"JSC$15547_imageInPreviewClipper",void 0);_.y([_.AY("#full-image-as-preview"),_.D("design:type",HTMLImageElement)],GR.prototype,"imageAsPreview",void 0);
_.y([_.S("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.D("design:type",String),_.D("design:paramtypes",[])],GR.prototype,"altLabelForImage",null);_.y([_.S("imageHeight","imageWidth"),_.D("design:type",Number),_.D("design:paramtypes",[])],GR.prototype,"pickerSize",null);_.y([_.S("imageHeight","imageWidth"),_.D("design:type",Object),_.D("design:paramtypes",[])],GR.prototype,"imageOrientationStyle",null);
_.y([_.S("instruction.previewInstruction.editButtonLabel"),_.D("design:type",Object),_.D("design:paramtypes",[])],GR.prototype,"editButton",null);_.y([_.S("instruction.editInstruction.saveButtonLabel"),_.D("design:type",Object),_.D("design:paramtypes",[])],GR.prototype,"saveButton",null);_.y([_.S("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.D("design:type",Number),_.D("design:paramtypes",[])],GR.prototype,"cropOffsetTop",null);
_.y([_.S("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.D("design:type",Number),_.D("design:paramtypes",[])],GR.prototype,"cropOffsetLeft",null);_.y([_.S("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.D("design:type",String),_.D("design:paramtypes",[])],GR.prototype,"pickerBackgroundStyle",null);_.y([_.S("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.D("design:type",String),_.D("design:paramtypes",[])],GR.prototype,"pickerDisplayStyle",null);
_.y([_.S("cropOffsetLeft","cropOffsetTop"),_.D("design:type",String),_.D("design:paramtypes",[])],GR.prototype,"imageInPickerStyle",null);_.y([_.S("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.D("design:type",String),_.D("design:paramtypes",[])],GR.prototype,"previewClipperStyle",null);_.y([_.m5("imageData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],GR.prototype,"onImageDataChange",null);
_.y([_.S("cropCoordinatesSaved"),_.D("design:type",String),_.D("design:paramtypes",[])],GR.prototype,"pickerModeStyle",null);_.y([_.S("instruction.editInstruction.learnMore"),_.D("design:type",Object),_.D("design:paramtypes",[])],GR.prototype,"learnMore",null);_.y([_.S("learnMore"),_.D("design:type",Object),_.D("design:paramtypes",[])],GR.prototype,"learnMoreUrl",null);_.y([_.vj({is:"yt-img-crop-picker",disableElementRegistration:!0})],GR);
_.h(GR,"yt-img-crop-picker",function(){if(HU3===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;mq_===void 0&&(mq_=document.createElement("template"));var q=mq_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);HU3=c}c=HU3;return c},{mode:2});var ce=function(){var c=_.z.apply(this,arguments)||this;c.errorMessage="";c.hasPreview=!1;c.isBackstagePost=!1;c.dismissButtonOverrides={size:"XS"};return c};
_.K(ce,_.z);_.r=ce.prototype;_.r.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"}}}};
_.r.detached=function(){this.removeOverlay()};
_.r.setPreview=function(c){_.r1(this.hostElement).querySelector("#preview-picker").imageData=c;this.hasPreview=!0;_.CZ(this.hostElement,"yt-backstage-image-select-preview")};
_.r.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var c=_.r1(this.hostElement).querySelector("#dropzone");c.classList.remove("dragover");c.classList.remove("error");_.CZ(this.hostElement,"yt-backstage-image-select-cancel")};
_.r.setupOverlay=function(){var c=this.imageUploadEndpoint;this.removeOverlay();if(c&&c.imageValidationInfo){var f=_.r1(this.hostElement).querySelector("#dropzone"),d=_.r1(this.hostElement).querySelector("#select");this.overlay=new c_(c.uploadUrl,c.channelId,c.imageValidationInfo.maxFileSizeMb,c.imageValidationInfo.allowedMaxAspectRatio,f,d,!0);_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Lx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.r.removeOverlay=function(){this.overlay&&(_.bp(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.bp(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.bp(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.bp(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.bp(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.r.onDragOver=function(c){var f=_.r1(this.hostElement).querySelector("#dropzone");_.g1(f,"dragover",c.value)};
_.r.onPreview=function(c){this.setPreview(c.value)};
_.r.onImageError=function(c){if(c.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var f;c=(f=this.data)==null?void 0:f.fileSizeError}else if(c.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var d;c=(d=this.data)==null?void 0:d.invalidError}else if(c.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var q;c=(q=this.data)==null?void 0:q.invalidAspectRatioError}else return;this.errorMessage=_.xC(c);_.r1(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.r.onImageAlert=function(c){this.onImageError(c)};
_.r.uploadPromise=function(){var c=this,f=this.overlay&&this.overlay.uploadPromise();if(f)return f.catch(function(){throw Error(c.data?_.xC(c.data.uploadFailureError):"");})};
_.ci.Object.defineProperties(ce.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var c,f;if((c=this.data)==null?0:(f=c.icon)==null?0:f.iconType)return _.Tu(this.data.icon.iconType)}}});
ce.prototype.setupOverlay=ce.prototype.setupOverlay;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ce.prototype,"rendererStamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ce.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],ce.prototype,"imageUploadEndpoint",void 0);_.y([_.L(),_.D("design:type",Object)],ce.prototype,"errorMessage",void 0);
_.y([_.L(),_.D("design:type",c_)],ce.prototype,"overlay",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ce.prototype,"hasPreview",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ce.prototype,"isBackstagePost",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],ce.prototype,"selectionCancel",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],ce.prototype,"previewCancel",null);
_.y([_.S("data.icon.iconType"),_.D("design:type",Object),_.D("design:paramtypes",[])],ce.prototype,"icon",null);_.y([_.L(),_.D("design:type",Object)],ce.prototype,"dismissButtonOverrides",void 0);_.y([_.m5("imageUploadEndpoint"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ce.prototype,"setupOverlay",null);_.y([_.v({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],ce);
_.h(ce,"ytd-backstage-image-select-renderer",function(){if(iUj!==void 0)return iUj;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return iUj=c},{mode:1});var AlH;var Yto;var f2=function(){var c=_.z.apply(this,arguments)||this;c.selected=!1;return c};
_.K(f2,_.z);_.r=f2.prototype;_.r.computeSelected=function(c){return c==null?void 0:c.selected};
_.r.computeTransform=function(c,f,d){var q,Z,M=(Z=(q=this.imageContainer)==null?void 0:q.getBoundingClientRect())!=null?Z:{width:0,height:0};q=Math.max(M.width/f,M.height/d);d=d*q*c.top;return"translateX("+this.getSignedPosition(f*q*c.left,"X","-")+") translateY("+this.getSignedPosition(d,"Y","-")+")"};
_.r.getSignedPosition=function(c,f,d){return f==="X"&&_.hk("HTML_DIR")==="rtl"?d==="-"?c+"px":c*-1+"px":d==="-"?c*-1+"px":c+"px"};
_.r.onClick=function(){var c;_.CZ(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(c=this.data)==null?void 0:c.image)};
_.r.onKeyPress=function(c){if(c.keyCode===13)this.onClick()};
_.ci.Object.defineProperties(f2.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:(f=c.image)==null?void 0:f.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)!=null&&c.image){var f;c=(f=this.data)==null?void 0:f.image;return c.previewCoordinates.top!==0||c.previewCoordinates.left!==0?(f=this.computeTransform(c.previewCoordinates,c.naturalWidth,c.naturalHeight),c.naturalHeight>=c.naturalWidth?"width:inherit;transform:"+f+";":"height:inherit;transform:"+f+";"):c.naturalHeight>=c.naturalWidth?"width:inherit;":"height:inherit;"}}}});
f2.prototype.onKeyPress=f2.prototype.onKeyPress;_.y([_.AY(".image-container"),_.D("design:type",HTMLElement)],f2.prototype,"imageContainer",void 0);_.y([_.L(),_.D("design:type",Object)],f2.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.D("design:type",Object)],f2.prototype,"selected",void 0);_.y([_.S("data.image"),_.D("design:type",Object),_.D("design:paramtypes",[])],f2.prototype,"thumbnailUrl",null);
_.y([_.S("data.image","data.image.previewCoordinates"),_.D("design:type",Object),_.D("design:paramtypes",[])],f2.prototype,"thumbnailStyle",null);_.y([_.Ta("keypress"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],f2.prototype,"onKeyPress",null);_.y([_.v({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],f2);
_.h(f2,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Yto!==void 0)return Yto;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Yto=c},{mode:2});var dg=function(c,f,d){d=d===void 0?!1:d;_.KF.call(this);var q=this;this.dropZoneOverlay=new iq(c);this.selectOverlay=d?new T2(f,"multiple_file",["image/*"]):new T2(f,"single_file",["image/*"]);this.handler=new _.r2(this);_.ln(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(f,"click",function(){q.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.K(dg,_.KF);dg.prototype.onChange=function(c){var f;(f=c.files)!=null&&f.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:c.files}))};var jr=function(){var c=_.z.apply(this,arguments)||this;c.addImageErrorMessage="";c.errorMessage="";c.images=[];c.selectedImageIndex=0;c.modern=_.F("web_modern_buttons");c.maxNumImagesPerPost=_.rx("max_num_images_per_post_web_ui");c.JSC$15562_imageId=0;return c};
_.K(jr,_.z);_.r=jr.prototype;_.r.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.CZ(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.r.observeDragToReorder=function(){var c=this;if(this.showImagesPreview){var f,d=SQ_(_.M2.getInstance(),(f=this.data)==null?void 0:f.dragToReorderTooltip);_.a7.addLowPriorityJob(function(){_.ll(c.hostElement,d,c.thumbnailDragDropArea)})}};
_.r.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}}};
_.r.computeThumbnail=function(c){return(c==null?void 0:c.localImageSrc)||void 0};
_.r.onRendererstamperFinished=function(){_.EAK(this.ytReorderableBehavior,_.r1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.r1(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.r.handleDrop=function(c){var f=c.currDragItem;if(f!=null&&f.data){c=this.images[this.selectedImageIndex];var d=f.data.image,q=this.images.indexOf(d)||0;f=_.Xk(f.parentNode.children,f);this.images.splice(q,1);this.images.splice(f,0,d);this.images=[].concat(_.LT(this.images));this.selectedImageIndex=this.images.indexOf(c)}};
_.r.setUpImagePicker=function(){var c=this.imageUploadEndpoint;c&&c.imageValidationInfo&&(this.uploadManager=new pl(c.uploadUrl,c.channelId),this.initialPicker||(this.initialPicker=new dg(this.dropzone,this.selectLink,!0),_.Lx(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new dg(this.addImageButtonContainer,this.addImageSelectButton),_.Lx(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Lx(this.JSC$15562_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Lx(this.JSC$15562_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Lx(_.r1(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.r.detached=function(){this.initialPicker&&(_.bp(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.bp(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.r.onInitialSelectImages=function(c){var f=this;return _.k(function(d){return d.yield(f.onSelectImages(c,!1),0)})};
_.r.onAddImage=function(c){var f=this;return _.k(function(d){return d.yield(f.onSelectImages(c,!0),0)})};
_.r.onSelectImages=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R;return _.k(function(qN){switch(qN.nextAddress){case 1:f?d.addImageErrorMessage="":(d.images=[],d.errorMessage="");q=c.detail;Z=d.validateImages([].concat(_.LT(q)));if(Z!=="")return f?d.addImageErrorMessage=Z:d.errorMessage=Z,qN.return();M=[].concat(_.LT(q)).map(function(kl){return(new oE(d.maxAspectRatio,!1,!0)).transform(kl)});
return qN.yield(Promise.allSettled(M),2);case 2:g=qN.yieldResult,O=_.C(g.entries()),l=O.next();case 3:if(l.done){qN.jumpTo(5);break}m=l.value;H=_.C(m);A=H.next().value;Y=H.next().value;t=A;E=Y;if(E.status!=="fulfilled"){u=X=J=void 0;f?d.addImageErrorMessage=_.xC((J=d.data)==null?void 0:J.invalidError):d.errorMessage=d.errorMessage===""?_.xC((X=d.data)==null?void 0:X.invalidError):_.xC((u=d.data)==null?void 0:u.multiFileError);qN.jumpTo(4);break}W=E.value;W.cropped&&_.CZ(d.hostElement,"yt-backstage-multi-image-cropped");
if(W.invalidAspectRatio){I=N=p=void 0;f?d.addImageErrorMessage=_.xC((p=d.data)==null?void 0:p.invalidAspectRatioError):d.errorMessage=d.errorMessage===""?_.xC((N=d.data)==null?void 0:N.invalidAspectRatioError):_.xC((I=d.data)==null?void 0:I.multiFileError);qN.jumpTo(4);break}return qN.yield(s6l(d.JSC$15562_imageId,c.detail[t],W.transformedData),8);case 8:R=qN.yieldResult,d.images.push(R),d.JSC$15562_imageId++;case 4:l=O.next();qN.jumpTo(3);break;case 5:if(d.errorMessage!==""||d.addImageErrorMessage!==
"")return qN.return();f?rl_(d.uploadManager,[d.images[d.images.length-1]]):rl_(d.uploadManager,d.images);d.images=[].concat(_.LT(d.images));d.selectedImageIndex=f?Math.max(d.images.length-1,0):0;_.CZ(d.hostElement,"yt-backstage-multi-image-select");_.Fm(qN)}})};
_.r.onThumbnailClick=function(c){if(c=c.event_.detail)this.selectedImageIndex=this.images.indexOf(c)};
_.r.validateImages=function(c){if(c.length>this.maxNumImagesPerPost){var f;return _.xC((f=this.data)==null?void 0:f.multiImageExceedMaxImageCountError)}var d=1048576*this.maxFileSizeMb;c=c.filter(function(M){return M.size>d}).length;
if(c===0)return"";var q,Z;c=c>1?(q=this.data)==null?void 0:q.multiFileError:(Z=this.data)==null?void 0:Z.fileSizeError;return _.xC(c)};
_.r.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.LT(this.images));this.selectedImageIndex=0};
_.r.repositionImage=function(c){this.images[this.selectedImageIndex].previewCoordinates=c.event_.detail;this.images=[].concat(_.LT(this.images))};
_.r.getAllUploadStatuses=function(){var c=this,f,d,q,Z;return _.k(function(M){if(M.nextAddress==1)return M.yield(c.uploadManager.getAllUploadStatuses(),2);f=M.yieldResult;d=_.C(f);for(q=d.next();!q.done;q=d.next())if(Z=q.value,Z.encryptedBlobId===void 0)return M.return(CZy(c.uploadManager));return M.return(f)})};
_.r.hasImages=function(){return this.images.length>0};
_.r.cancel=function(){for(var c=this.uploadManager,f=_.C(c.imagesUploadData),d=f.next();!d.done;d=f.next())c.cancel(d.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.CZ(this.hostElement,"yt-backstage-multi-image-cancel")};
_.ci.Object.defineProperties(jr.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.imageUploadEndpoint)==null?void 0:(f=c.imageValidationInfo)==null?void 0:f.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.imageUploadEndpoint)==null?void 0:(f=c.imageValidationInfo)==null?void 0:f.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var c,f;if((c=this.data)==null?0:(f=c.icon)==null?0:f.iconType)return _.Tu(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.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 c=this;return(this.images||[]).map(function(f,d){return{renderer:{image:f,selected:d===c.selectedImageIndex}}})}}});
jr.prototype.setUpImagePicker=jr.prototype.setUpImagePicker;jr.prototype.onRendererstamperFinished=jr.prototype.onRendererstamperFinished;jr.prototype.observeDragToReorder=jr.prototype.observeDragToReorder;jr.prototype.observeAddImageError=jr.prototype.observeAddImageError;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],jr.prototype,"rendererStamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.nAr),_.D("design:type",Object)],jr.prototype,"ytReorderableBehavior",void 0);_.y([_.AY("#dropzone"),_.D("design:type",HTMLElement)],jr.prototype,"dropzone",void 0);_.y([_.AY("#select-link"),_.D("design:type",HTMLElement)],jr.prototype,"selectLink",void 0);_.y([_.AY("#thumbnail-drag-drop-area"),_.D("design:type",HTMLElement)],jr.prototype,"thumbnailDragDropArea",void 0);_.y([_.AY("#add-image-button-container"),_.D("design:type",HTMLElement)],jr.prototype,"addImageButtonContainer",void 0);
_.y([_.AY("#add-image-button"),_.D("design:type",HTMLElement)],jr.prototype,"addImageSelectButton",void 0);_.y([_.AY("#image-preview-container"),_.D("design:type",Object)],jr.prototype,"JSC$15562_imagePreviewContainer",void 0);_.y([_.L(),_.D("design:type",Object)],jr.prototype,"addImageErrorMessage",void 0);_.y([_.L(),_.D("design:type",Object)],jr.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],jr.prototype,"errorMessage",void 0);
_.y([_.L(),_.D("design:type",Object)],jr.prototype,"imageUploadEndpoint",void 0);_.y([_.L(),_.D("design:type",Array)],jr.prototype,"images",void 0);_.y([_.L(),_.D("design:type",dg)],jr.prototype,"initialPicker",void 0);_.y([_.L(),_.D("design:type",dg)],jr.prototype,"addImagePicker",void 0);_.y([_.L(),_.D("design:type",pl)],jr.prototype,"uploadManager",void 0);_.y([_.L(),_.D("design:type",Object)],jr.prototype,"selectedImageIndex",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jr.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jr.prototype,"maxNumImagesPerPost",void 0);_.y([_.S("imageUploadEndpoint"),_.D("design:type",Number),_.D("design:paramtypes",[])],jr.prototype,"maxAspectRatio",null);_.y([_.S("imageUploadEndpoint"),_.D("design:type",Number),_.D("design:paramtypes",[])],jr.prototype,"maxFileSizeMb",null);
_.y([_.S("data.icon.iconType"),_.D("design:type",Object),_.D("design:paramtypes",[])],jr.prototype,"dropIcon",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],jr.prototype,"selectionCancel",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],jr.prototype,"previewCancel",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],jr.prototype,"dataForAddImageButton",null);
_.y([_.S("errorMessage"),_.D("design:type",String),_.D("design:paramtypes",[])],jr.prototype,"dropzoneClass",null);_.y([_.S("images"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],jr.prototype,"showImagesPreview",null);_.y([_.S("images"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],jr.prototype,"containMaxImages",null);_.y([_.m5("addImageErrorMessage"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jr.prototype,"observeAddImageError",null);
_.y([_.m5("showImagesPreview"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jr.prototype,"observeDragToReorder",null);_.y([_.S("images","selectedImageIndex"),_.D("design:type",Object),_.D("design:paramtypes",[])],jr.prototype,"selectedImageData",null);_.y([_.S("images","selectedImageIndex"),_.D("design:type",Array),_.D("design:paramtypes",[])],jr.prototype,"thumbnailRenderers",null);
_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jr.prototype,"onRendererstamperFinished",null);_.y([_.m5("imageUploadEndpoint"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jr.prototype,"setUpImagePicker",null);_.y([_.v({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],jr);
_.h(jr,"ytd-backstage-multi-image-select-renderer",function(){if(AlH!==void 0)return AlH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return AlH=c},{mode:1});var FS_;var tm_;var bUu;var qk=function(){var c=_.z.apply(this,arguments)||this;c.boundCaptureFocus=function(f){c.onCaptureFocus(f)};
return c};
_.K(qk,_.z);_.r=qk.prototype;_.r.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.r.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.r.onCaptureFocus=function(c){_.x0(c).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.r.getIconType=function(c){return c?"yt-icons:"+c.toLowerCase():null};
_.r.onSelect=function(){var c;if((c=this.data)==null?0:c.onSelectCommand)if(_.F("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var f;((f=_.b(this.data.onSelectCommand.commandMetadata,_.jO))==null?0:f.url)?_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.ql().resolve(_.ZM).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.ci.Object.defineProperties(qk.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.xC(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}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],qk.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qk.prototype,"data",void 0);_.y([_.AY("#item"),_.D("design:type",HTMLElement)],qk.prototype,"item",void 0);_.y([_.S("data.label"),_.D("design:type",String),_.D("design:paramtypes",[])],qk.prototype,"label",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],qk.prototype,"value",null);_.y([_.v({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],qk);
_.h(qk,"ytd-privacy-dropdown-item-renderer",function(){if(bUu!==void 0)return bUu;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return bUu=c},{mode:1});var Zl=function(){var c=_.z.apply(this,arguments)||this;c.value="";c.label="";c.disabled=!1;return c};
_.K(Zl,_.z);_.r=Zl.prototype;_.r.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"}}}};
_.r.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.r.dataChanged=function(){this.reset()};
_.r.valueChanged=function(){var c;if(this.value&&(c=this.data)!=null&&c.entries){c=_.C(this.data.entries);for(var f=c.next();!f.done;f=c.next())if((f=this.getRendererForEntry(f.value))&&this.getItemRendererValue(f)===this.value){this.label=this.ytComponentBehavior.getSimpleString(f.label);break}}};
_.r.setInitialLabel=function(){if(this.data&&this.data.entries)for(var c=_.C(this.data.entries),f=c.next();!f.done;f=c.next())if(f=this.getRendererForEntry(f.value)){if(f.isSelected){this.label=this.ytComponentBehavior.getSimpleString(f.label);break}this.data.label&&(this.label=this.data.label)}};
_.r.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var c=_.C(this.data.entries),f=c.next();!f.done;f=c.next()){f=this.getRendererForEntry(f.value);var d=void 0;if((d=f)==null?0:d.isSelected)return this.getItemRendererValue(f)||-1}return-1};
_.r.getItemRendererValue=function(c){return"stringValue"in c||"int32Value"in c?c.stringValue||c.int32Value||null:null};
_.r.getRendererForEntry=function(c){return c.dropdownItemRenderer||c.privacyDropdownItemRenderer||c.navigationDropdownItemRenderer||null};
_.r.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("value-changed",this.value))};
_.r.updateValueFromBinding=function(c){this.value=c.detail.value};
Zl.prototype.valueChangedForBinding=Zl.prototype.valueChangedForBinding;Zl.prototype.valueChanged=Zl.prototype.valueChanged;Zl.prototype.dataChanged=Zl.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Zl.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Zl.prototype,"value",void 0);_.y([_.L(),_.D("design:type",Object)],Zl.prototype,"label",void 0);_.y([_.AY("#entries"),_.D("design:type",Object)],Zl.prototype,"entries",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zl.prototype,"disabled",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zl.prototype,"dataChanged",null);
_.y([_.ba("value"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zl.prototype,"valueChanged",null);_.y([_.m5("value"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zl.prototype,"valueChangedForBinding",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Zl);
_.h(Zl,"ytd-flat-dropdown-renderer",function(){if(tm_!==void 0)return tm_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return tm_=c},{mode:1});var KSO;var Mk=function(){var c=_.z.apply(this,arguments)||this;c.quizOptions=[];c.explanationPlaceholderText="";c.optionPlaceholderText="";c.correctAnswerIndex=-1;c.isMarkAnswerTooltipShown=!1;c.timer=0;return c};
_.K(Mk,_.z);_.r=Mk.prototype;_.r.dataChanged=function(){this.optionPlaceholderText=_.xC(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.xC(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.r.onMarkCorrectAnswer=function(c){var f,d=((f=this.quizOptions[this.correctAnswerIndex])==null?void 0:f.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[c.model.index]=Object.assign({},this.quizOptions[c.model.index],{explanationText:d,isCorrect:!0});this.correctAnswerIndex=c.model.index;this.quizOptions=[].concat(_.LT(this.quizOptions))};
_.r.updatePlaceholderTexts=function(){for(var c=!1,f=[],d=0;d<this.quizOptions.length;d++){var q=this.optionPlaceholderText+" "+(d+1),Z=void 0;((Z=this.quizOptions[d])==null?void 0:Z.placeholderText)!==q?(c=!0,f.push(Object.assign({},this.quizOptions[d],{placeholderText:q}))):f.push(this.quizOptions[d])}c&&(this.quizOptions=f);this.isValid()?_.CZ(this.hostElement,"yt-commentbox-post-enable"):_.CZ(this.hostElement,"yt-commentbox-post-disable")};
_.r.getSimpleString=function(c){return _.xC(c)};
_.r.createQuizOptions=function(c){var f=[],d;c=(d=c==null?void 0:c.minQuizOptions)!=null?d:0;for(d=0;d<c;d++)f.push(this.createQuizOption());return f};
_.r.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.LT(this.quizOptions),[this.createQuizOption()]))};
_.r.onInput=function(){this.quizOptions=[].concat(_.LT(this.quizOptions))};
_.r.onExplanationInput=function(){_.CZ(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.r.onRemoveQuizOption=function(c){this.quizOptions.splice(c.model.index,1);c.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:c.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.LT(this.quizOptions));this.quizOptions.length===0&&_.CZ(this.hostElement,"yt-quiz-attachment-dismiss")};
_.r.updateHintRenderer=function(){var c=this;clearTimeout(this.timer);this.timer=setTimeout(function(){c.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.r.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var c=0,f=0,d=_.C(this.quizOptions),q=d.next();!q.done;q=d.next()){q=q.value;var Z=void 0;if(((Z=q.optionText)==null?void 0:Z.trim())!==""||q.isCorrect){q.isCorrect&&f++;Z=void 0;if(this.hasCustomOptionText&&((Z=q.optionText)==null?void 0:Z.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;c++}}return c>=
Number(this.editorInfo.minQuizOptions)&&f===1};
_.r.getPostCreateOptions=function(){for(var c=[],f=_.C(this.quizOptions),d=f.next();!d.done;d=f.next()){d=d.value;var q=void 0;((q=d.optionText)==null?void 0:q.trim())!==""&&c.push({pollOption:{text:d.optionText,explanation:d.explanationText},isCorrect:d.isCorrect})}return c};
_.r.getExplanationText=function(){var c;return((c=this.quizOptions[this.correctAnswerIndex])==null?void 0:c.explanationText)||""};
_.r.maybeDisplayMarkAnswerEduToolTip=function(){var c,f,d,q,Z,M,g;this.shouldShowMarkAnswerTooltip()&&((c=this.editorInfo)==null?0:(f=c.markAnswerButton)==null?0:(d=f.buttonRenderer)==null?0:(q=d.hint)==null?0:(Z=q.hintRenderer)==null?0:(M=Z.content)==null?0:(g=M.bubbleHintRenderer)==null?0:g.text)&&(_.M2.getInstance(),c=rU(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,(c==null?void 0:c.length)>0&&this.optionSelectors&&_.Ae(c[0],this.optionSelectors[0]))};
_.r.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var c=0,f=_.C(this.quizOptions),d=f.next();!d.done;d=f.next()){d=d.value;var q=void 0;((q=d.optionText)==null?void 0:q.trim())!==""&&c++;if(d.isCorrect)return!1}return c<2?!1:!0};
_.r.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.r.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.r.updateOptionTextFromBinding=function(c){if(c.target){var f=Array.from(_.r1(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(c.target);if(f>=0){var d;this.quizOptions[f].optionText=(d=c.detail.value)!=null?d:""}}};
_.ci.Object.defineProperties(Mk.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.editorInfo)==null?void 0:(f=c.addOptionButton)==null?void 0:f.buttonRenderer;d&&(d.style="STYLE_SUGGESTIVE",d.size="SIZE_SMALL",d.isDisabled=!this.isAllowedToAddOption);return(d==null?0:d.text)?d:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var c,f;return this.quizOptions.length<((f=(c=this.editorInfo)==null?void 0:c.maxQuizOptions)!=null?f:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(c){var f;return(f=c.optionText)==null?void 0:f.trim()})}}});
Mk.prototype.updatePlaceholderTexts=Mk.prototype.updatePlaceholderTexts;Mk.prototype.dataChanged=Mk.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],Mk.prototype,"editorInfo",void 0);_.y([_.L(),_.D("design:type",Array)],Mk.prototype,"quizOptions",void 0);_.y([_.L(),_.D("design:type",Object)],Mk.prototype,"explanationPlaceholderText",void 0);_.y([_.YE(".option-selector-button"),_.D("design:type",Array)],Mk.prototype,"optionSelectors",void 0);
_.y([_.ba("editorInfo"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Mk.prototype,"dataChanged",null);_.y([_.S("editorInfo","isAllowedToAddOption","quizOptions"),_.D("design:type",Object),_.D("design:paramtypes",[])],Mk.prototype,"addAnswerButton",null);_.y([_.S("editorInfo","quizOptions"),_.D("design:type",Object),_.D("design:paramtypes",[])],Mk.prototype,"isAllowedToAddOption",null);
_.y([_.ba("quizOptions"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Mk.prototype,"updatePlaceholderTexts",null);_.y([_.S("quizOptions"),_.D("design:type",Object),_.D("design:paramtypes",[])],Mk.prototype,"hasCustomOptionText",null);_.y([_.v({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Mk);
_.h(Mk,"ytd-backstage-quiz-editor-renderer",function(){if(KSO!==void 0)return KSO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return KSO=c},{mode:2});var EM_;var nM3=(bh.FIRSTDAYOFWEEK+1)%7;var $qu;var Qtv=[],St_=0,LSO=0;St_=0;LSO=24;if(.25*(LSO-St_)<0)$qu=[];else{for(var z63=St_;z63<LSO;z63+=.25)Qtv.push(z63);$qu=Qtv}var JlK=$qu.map(function(c){c=c*60*60;return{secondsSinceMidnight:c,text:(new Rn(7)).format(new Date(0,0,0,0,0,c))}});var ayH;var rg=function(){var c=_.z.apply(this,arguments)||this;c.skipNextOpenDialog=!1;c.errorMessage="";c.previousMonthLabel=_.HO("PREVIOUS_MONTH_LABEL");c.nextMonthLabel=_.HO("NEXT_MONTH_LABEL");return c};
_.K(rg,_.z);_.r=rg.prototype;_.r.attached=function(){var c=this,f=new MutationObserver(function(){c.JSC$15605_calendarMain.scrollHeight>0&&(f.disconnect(),c.calendarConfig&&c.calendarConfig.selectedDate&&c.scrollToDate())});
f.observe(this.JSC$15605_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){f.disconnect()},1E3)};
_.r.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.r.onDateTextChange=function(){if(this.calendarConfig){var c=this.validateDateText();c.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(c.details)):this.textbox.setAttribute("invalid","")}};
_.r.handleDayClick=function(c){c.model.day.date&&(this.commitDate(c.model.day.date),this.dialog.close())};
_.r.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var c=KxM(this.calendarConfig.selectedDate,this.renderData);c!==void 0&&this.JSC$15605_calendarMain.scrollToIndex(c)}};
_.r.scrollToNextMonth=function(){this.JSC$15605_calendarMain.scrollToIndex(this.JSC$15605_calendarMain.firstVisibleIndex+1)};
_.r.scrollToPrevMonth=function(){this.JSC$15605_calendarMain.firstVisibleIndex===0&&this.JSC$15605_calendarMain.scrollTo(0,0);this.JSC$15605_calendarMain.scrollToIndex(this.JSC$15605_calendarMain.firstVisibleIndex-1)};
_.r.onFormSubmit=function(c){c.preventDefault();this.calendarConfig&&(c=this.validateDateText(),c.isValid&&(this.commitDate(c.details),this.dialog.close()))};
_.r.onEscOrClickingOutside=function(c){c=c.detail.path&&!!c.detail.path.length&&c.detail.path[0];if(c.classList.contains("ytd-calendar-date-picker")){c===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var f=0;f<this.dropdownButton.children.length;f++)this.dropdownButton.children[f]===c&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}c=this.textbox.value!==this.dateText;f=this.validateDateText();c&&f.isValid&&this.commitDate(f.details);this.dialog.close();this.textbox.value=
this.dateText};
_.r.commitDate=function(c){this.calendarConfig&&(this.set("calendarConfig.selectedDate",c),_.CZ(this.hostElement,"ytd-calendar-date-selected",c))};
_.r.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var c=this.textbox.value;var f=new Date;c=(new ePN(2)).parse(c,f,{validate:!0})===c.length?t2k(f):void 0;if(!c)return this.errorMessage=_.HO("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};f=this.calendarConfig.start;var d=this.calendarConfig.end;if(mte(c,f))return this.errorMessage=_.HO("ENTER_DATE_OR_LATER",{allowed_date:Fx4(f)}),{isValid:!1,details:void 0};if(mte(d,c))return this.errorMessage=
_.HO("ENTER_DATE_OR_EARLIER",{allowed_date:Fx4(d)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:c}};
_.ci.Object.defineProperties(rg.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Fx4(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var c=this.calendarConfig,f=[],d=0;d<7;d++)f.push(bh.NARROWWEEKDAYS[(d+nM3)%7]);d=[];for(var q=new Date(c.start.year,c.start.month);q.getFullYear()<c.end.year||q.getFullYear()===c.end.year&&q.getMonth()<=c.end.month;){var Z=d,M=Z.push,g=q.getFullYear(),O=q.getMonth(),l=c,m=void 0,H=[],A=Object.freeze({extraCssClass:"invisible",debugClass:""}),Y=new Date(g,O),t=t2k(Y);Y=Y.getDay();for(var E=t2k(new Date);t.month===
O;){Y!==nM3&&m||(m=Array.from({length:7}).fill(A),H.push(m));var J={date:{year:g,month:O,day:t.day},extraCssClass:"",debugClass:""};l.selectedDate&&J.date&&TCz(J.date,l.selectedDate)&&(J.extraCssClass+=" selected");if(mte(t,l.start)||mte(l.end,t))J.extraCssClass+=" disabled";TCz(t,E)&&(J.extraCssClass+=" today");J.extraCssClass=J.extraCssClass.trim();m[(Y-nM3+7)%7]=J;t=AtG(t);Y=(Y+1)%7}M.call(Z,{weeks:H,monthLabel:bh.SHORTMONTHS[O]+" "+g,year:g,month:O,monthLabelExtraCssClass:H[0][2]===A?"shift-down-label":
""});q.setMonth(q.getMonth()+1)}return{months:d,daysOfWeekLabel:f}}}}});
rg.prototype.onEscOrClickingOutside=rg.prototype.onEscOrClickingOutside;rg.prototype.scrollToDate=rg.prototype.scrollToDate;_.y([_.L(),_.D("design:type",Object)],rg.prototype,"calendarConfig",void 0);_.y([_.L(),_.D("design:type",Object)],rg.prototype,"skipNextOpenDialog",void 0);_.y([_.L(),_.D("design:type",Object)],rg.prototype,"errorMessage",void 0);_.y([_.L(),_.D("design:type",Object)],rg.prototype,"previousMonthLabel",void 0);
_.y([_.L(),_.D("design:type",Object)],rg.prototype,"nextMonthLabel",void 0);_.y([_.AY("#textbox"),_.D("design:type",HTMLInputElement)],rg.prototype,"textbox",void 0);_.y([_.AY("#calendar-dialog"),_.D("design:type",Object)],rg.prototype,"dialog",void 0);_.y([_.AY("#calendar-main"),_.D("design:type",Object)],rg.prototype,"JSC$15605_calendarMain",void 0);_.y([_.AY("#date-picker"),_.D("design:type",HTMLElement)],rg.prototype,"dropdownButton",void 0);
_.y([_.S("calendarConfig.selectedDate"),_.D("design:type",String),_.D("design:paramtypes",[])],rg.prototype,"dateText",null);_.y([_.S("calendarConfig","calendarConfig.selectedDate"),_.D("design:type",Object),_.D("design:paramtypes",[])],rg.prototype,"renderData",null);_.y([_.m5("renderData","calendarConfig.selectedDate"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rg.prototype,"scrollToDate",null);
_.y([_.Ta("iron-overlay-canceled"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],rg.prototype,"onEscOrClickingOutside",null);_.y([_.vj({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],rg);
_.h(rg,"ytd-calendar-date-picker",function(){if(ayH!==void 0)return ayH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ayH=c},{mode:2});var Vmj=_.HO("UTC_OFFSET_FORMAT",{utc_offset:(new Rn("Z")).format(new Date)}),Xzy=(new Date).getTimezoneOffset()*-60,u_j=new Date,vMT,h6r=Pb(u_j.getTimezoneOffset());vMT=tBo(K5u(h6r,u_j));var wzo=_.HO("LOCAL_TIME_GMT_LABEL",{gmt_text:vMT.replace("+0","+").replace("-0","-").replace(":00","")}),C2=function(){var c=_.z.apply(this,arguments)||this;c.selectedTimeIndex=0;c.selectedTimezoneIndex=0;c.timeOfDayOptions=JlK;return c};
_.K(C2,_.z);_.r=C2.prototype;_.r.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var c=YLn();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=c,this.selectedTimeIndex=0;else{var f=bch(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},c,{selectedDate:f.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(d){return d.secondsSinceMidnight===f.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.r.onDatePicked=function(c){this.selectedDate=c.detail};
_.r.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.CZ(this.hostElement,"ytd-date-time-selection-cancelled")};
_.r.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var c=this.selectedDate;c=new Date(c.year,c.month,c.day);_.CZ(this.hostElement,"ytd-date-time-selection-update",Math.floor(c.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+c.getTimezoneOffset()*60))}};
_.r.getTimezoneFormat=function(c){return c.localizedDisplayText?c.localizedDisplayText:_.HO("TIMEZONE_FORMAT",{utc_offset_text:""+c.localizedUtcOffset,city_name:""+c.localizedName})};
_.r.updateSelectedTimeIndexFromBinding=function(c){this.selectedTimeIndex=c.detail.value};
_.r.updateSelectedTimezoneIndexFromBinding=function(c){this.selectedTimezoneIndex=c.detail.value};
_.ci.Object.defineProperties(C2.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var c=this.data.timezoneOptions;var f={name:"Etc/Unknown",localizedName:_.HO("LOCAL_TIME_LABEL"),localizedUtcOffset:Vmj,utcOffsetSec:""+Xzy,localizedDisplayText:wzo};c?c.length&&c[0].name!==f.name&&(c[0].localizedDisplayText||(f.localizedDisplayText=""),c.unshift(f)):c=[f];return c}}},
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]}}});
C2.prototype.onDateTimeTimezoneChange=C2.prototype.onDateTimeTimezoneChange;C2.prototype.onDatePicked=C2.prototype.onDatePicked;C2.prototype.updateDefaultSelectedValue=C2.prototype.updateDefaultSelectedValue;_.y([_.L(),_.D("design:type",Object)],C2.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],C2.prototype,"calendarConfig",void 0);_.y([_.L(),_.D("design:type",Object)],C2.prototype,"selectedDate",void 0);_.y([_.L(),_.D("design:type",Object)],C2.prototype,"selectedTimeIndex",void 0);
_.y([_.L(),_.D("design:type",Object)],C2.prototype,"selectedTimezoneIndex",void 0);_.y([_.AY("#time-listbox"),_.D("design:type",Object)],C2.prototype,"timeListBox",void 0);_.y([_.AY("#timezone-listbox"),_.D("design:type",Object)],C2.prototype,"timezoneListBox",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],C2.prototype,"rendererStamperBehavior",void 0);_.y([_.S("data.timezoneOptions"),_.D("design:type",Object),_.D("design:paramtypes",[])],C2.prototype,"timeZones",null);
_.y([_.ba("data","timeZones"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],C2.prototype,"updateDefaultSelectedValue",null);_.y([_.S("selectedTimezoneIndex","timeZones"),_.D("design:type",Object),_.D("design:paramtypes",[])],C2.prototype,"selectedTimezone",null);_.y([_.S("selectedTimeIndex"),_.D("design:type",Object),_.D("design:paramtypes",[])],C2.prototype,"selectedTime",null);
_.y([_.Ta("ytd-calendar-date-selected"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],C2.prototype,"onDatePicked",null);_.y([_.m5("selectedTimezone","selectedTime","selectedDate"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],C2.prototype,"onDateTimeTimezoneChange",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],C2);
_.h(C2,"ytd-date-time-picker-renderer",function(){if(EM_!==void 0)return EM_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return EM_=c},{mode:1});var yl3;var gg=function(){var c=_.z.apply(this,arguments)||this;c.boundOnTapDismissButton=function(){c.dismissTapHandler()};
c.dismissButtonOverrides={size:"XS"};return c};
_.K(gg,_.z);gg.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}}}}}};
gg.prototype.dismissTapHandler=function(){_.CZ(this.hostElement,"yt-backstage-attachment-dismissed")};
gg.prototype.computeAttachmentType=function(c){return c?c.backstageImageRenderer?"image":c.videoRenderer?"video":"none":"none"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gg.prototype,"attachmentPreview",void 0);_.y([_.L(),_.D("design:type",Object)],gg.prototype,"dismissButton",void 0);_.y([_.L(),_.D("design:type",Object)],gg.prototype,"boundOnTapDismissButton",void 0);
_.y([_.L(),_.D("design:type",Object)],gg.prototype,"dismissButtonOverrides",void 0);_.y([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.D("design:type",String)],gg.prototype,"attachmentType",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],gg);
_.h(gg,"ytd-backstage-dismissable-attachment",function(){if(yl3!==void 0)return yl3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return yl3=c},{mode:1});var WSK;var kI=function(){var c=_.z.apply(this,arguments)||this;c.selectedVideoId=void 0;c.picker=void 0;c.dismissButtonOverrides={size:"XS"};c.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return c};
_.K(kI,_.z);_.r=kI.prototype;_.r.onServiceRequestCompleted=function(c){c.stopPropagation()};
_.r.handleAddVideoPreviewAction=function(c){c=this.get("addVideoPreviewAction",c);this.onGetVideoPreviewSuccess(c)};
_.r.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}}}}}};
_.r.onLaunchVideoPicker=function(c){var f=this,d=_.xC(this.get("addVideoLinkAction.title",c)),q=this.get("addVideoLinkAction.onePickHostId",c);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",c);q&&(this.picker||(d=_.Txj(_.nQC(q).setTitle(d).addView(lMu()).addView(ODr()),function(Z){f.onPickVideo(Z)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",c)||d.addView("youtube"),this.picker=d.build()),this.picker.setVisible(!0))};
_.r.onPickVideo=function(c){if(c)if(c.action==="cancel")_.CZ(this.hostElement,"yt-video-link-button-cancel");else if(c.action==="picked"){c=c.docs;if(!c||c.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(c=(c==null?0:c.length)?c[0]:void 0)?c.id:void 0;this.setVideoPreview()}};
_.r.setVideoPreview=function(){var c=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){c.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.r.onGetVideoPreviewSuccess=function(c){if(c&&c.videoPreview&&c.cancelButton)this.videoPreview=c.videoPreview,this.cancelButton=c.cancelButton,_.CZ(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.r.onGetVideoPreviewError=function(){this.cancel()};
_.r.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.CZ(this.hostElement,"yt-video-link-cancel")};
_.r.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
kI.prototype.onServiceRequestCompleted=kI.prototype.onServiceRequestCompleted;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],kI.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],kI.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],kI.prototype,"videoPreview",void 0);_.y([_.L(),_.D("design:type",Object)],kI.prototype,"cancelButton",void 0);_.y([_.L(),_.D("design:type",Object)],kI.prototype,"getVideoPreviewCommand",void 0);_.y([_.L(),_.D("design:type",Object)],kI.prototype,"dismissButtonOverrides",void 0);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],kI.prototype,"onServiceRequestCompleted",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],kI);
_.h(kI,"ytd-backstage-video-link-attachment",function(){if(WSK!==void 0)return WSK;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return WSK=c},{mode:1});var DqK;var e6H;var NIF;var OI=function(){return _.z.apply(this,arguments)||this};
_.K(OI,_.z);OI.prototype.dataChanged=function(){this.active=!1};
OI.prototype.onTap=function(){_.CZ(this.hostElement,"yt-select-emoji-suggestion",this.data)};
OI.prototype.identity=function(c){return c};
_.ci.Object.defineProperties(OI.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q;if((c=this.data)==null?0:(f=c.image)==null?0:(d=f.thumbnails)==null?0:(q=d[0])==null?0:q.url)return c=this.data.image.thumbnails[0].url,c.startsWith("data:image/svg+xml")?$h(c):_.XD(c)}}});
OI.prototype.dataChanged=OI.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],OI.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],OI.prototype,"active",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],OI.prototype,"dataChanged",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],OI.prototype,"imageSrc",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],OI);
_.h(OI,"ytd-emoji-suggestion",function(){if(NIF!==void 0)return NIF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return NIF=c},{mode:1});var Iy3=/.*([:@#].*?)$/,l1=function(){var c=_.z.apply(this,arguments)||this;c.suggestions=[];c.suggestionIndex=-1;c.JSC$15633_lastSuggestionRange=null;return c};
_.K(l1,_.z);_.r=l1.prototype;_.r.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.r.getSuggestions=function(c){var f=[],d=$4H(this.emojiManager,c.substr(0,3));if(d)for(var q in d)if(q.toLocaleLowerCase().indexOf(c)===0){var Z=d[q];if(Z&&Z.emojiId){Z=eI(this.emojiManager,Z.emojiId);var M=void 0,g=void 0,O=void 0,l=void 0,m=((M=Z)==null?0:M.isCustomEmoji)?(g=Z)==null?void 0:(O=g.shortcuts)==null?void 0:O[0]:(l=Z)==null?void 0:l.emojiId;M=void 0;f.push({suggestion:{image:(M=Z)==null?void 0:M.image,alt:m,text:q}});if(f.length>=64)break}}return f?f.sort(function(H,A){return A.suggestion.text<
H.suggestion.text?-1:A.suggestion.text===H.suggestion.text?0:1}):null};
_.r.insertSuggestion=function(c){_.CZ(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15633_lastSuggestionRange,text:c.alt});this.dropdown.opened=!1};
_.r.updateSuggestionsAtCaret=function(c){this.updateSuggestions(c,this.retrieveTextBeforeRange(c))};
_.r.offsetStartOfRangeBy=function(c,f){c.startOffset>=f&&c.setStart(c.startContainer,c.startOffset-f)};
_.r.updateSuggestions=function(c,f){var d=this;this.JSC$15633_lastSuggestionRange&&(this.JSC$15633_lastSuggestionRange.detach(),this.JSC$15633_lastSuggestionRange=null);if((f=Iy3.exec(f))&&f.length&&(f=f[f.length-1].toLocaleLowerCase(),f.length>2||f===":_")&&(this.offsetStartOfRangeBy(c,f.length),this.JSC$15633_lastSuggestionRange=c,(c=this.getSuggestions(f))&&c.length)){this.suggestions=c;_.ol(this,function(){d.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(c.length-1);return}this.dropdown.opened=!1};
_.r.onKeyDown=function(c){if(this.dropdown.opened)switch(c.key){case "Escape":this.dropdown.opened=!1;c.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);c.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);c.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),c.preventDefault()}};
_.r.onKeyUp=function(c,f){switch(c.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(f);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(f)}};
_.r.onKeyPress=function(c){c.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),c.preventDefault())};
_.r.changeSuggestionIndex=function(c){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(c+this.suggestions.length)%this.suggestions.length,c=this.dropdownContent.children[this.suggestionIndex],c.active=!0,this.dropdownContent.scrollTop=c.offsetTop)};
_.r.retrieveTextBeforeRange=function(c){var f=c.startContainer;return f&&f.nodeType===Node.TEXT_NODE?f.textContent.substr(0,c.startOffset):""};
l1.prototype.onKeyPress=l1.prototype.onKeyPress;l1.prototype.onKeyUp=l1.prototype.onKeyUp;l1.prototype.onKeyDown=l1.prototype.onKeyDown;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Array)],l1.prototype,"suggestions",void 0);_.y([_.L(),_.D("design:type",_.Wx)],l1.prototype,"emojiManager",void 0);_.y([_.L(),_.D("design:type",Number)],l1.prototype,"verticalSuggestionsOffset",void 0);
_.y([_.AY("#dropdown"),_.D("design:type",Object)],l1.prototype,"dropdown",void 0);_.y([_.AY("#dropdown-content"),_.D("design:type",HTMLDivElement)],l1.prototype,"dropdownContent",void 0);_.y([_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[KeyboardEvent]),_.D("design:returntype")],l1.prototype,"onKeyDown",null);_.y([_.Ta("keyup"),_.D("design:type",Function),_.D("design:paramtypes",[KeyboardEvent,Range]),_.D("design:returntype")],l1.prototype,"onKeyUp",null);
_.y([_.Ta("keypress"),_.D("design:type",Function),_.D("design:paramtypes",[KeyboardEvent]),_.D("design:returntype")],l1.prototype,"onKeyPress",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-emoji-input"})],l1);
_.h(l1,"ytd-emoji-input",function(){if(e6H!==void 0)return e6H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return e6H=c},{mode:2});var PZy;var sI=function(){var c=_.z.apply(this,arguments)||this;c.hasMaxOptions=!1;return c};
_.K(sI,_.z);_.r=sI.prototype;_.r.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.r.setPrefilledChoices=function(c){var f=this;this.set("pollOptions",[]);var d;for(d=0;d<Math.min(c.length,this.data.maxPollOptions);d++)this.push("pollOptions",c[d].substring(0,this.data.maxPollOptionChars));for(;d<this.data.minPollOptions;d++)this.push("pollOptions","");this.hasMaxOptions=d>=this.data.maxPollOptions;_.ol(this,function(){for(var q=f.pollOptions,Z=_.r1(f.hostElement).querySelectorAll(".poll-option-input"),M=0;M<Z.length;M++)Z[M].value=q[M]})};
_.r.focusChanged=function(){_.la(this.hostElement)};
_.r.onInput=function(){var c=this;_.Ia(this,"onInput",function(){c.isValid()?_.CZ(c.hostElement,"yt-commentbox-post-enable"):_.CZ(c.hostElement,"yt-commentbox-post-disable")},300)};
_.r.setPollOptions=function(){var c=[],f,d=((f=this.data)==null?0:f.minPollOptions)?this.data.minPollOptions:0;for(f=0;f<d;f++)c.push("");return c};
_.r.addPollOption=function(){var c=this;_.CZ(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.a7.addLowPriorityJob(function(){var f;(f=_.r1(c.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||f.focus()})};
_.r.onRemovePollOption=function(c){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.CZ(this.hostElement,"yt-poll-attachment-dismiss")):(c=this.repeat.indexForElement(c.target.parentNode),c!==null&&(this.splice("pollOptions",c,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.CZ(this.hostElement,"yt-commentbox-post-enable"))))};
_.r.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.r.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var c=0,f=this.pollOptions.length;c<f;c++)if(this.pollOptions[c].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.r.getPollOptions=function(){return this.pollOptions};
_.r.setPollOptionsFromInputs=function(){for(var c=_.r1(this.hostElement).querySelectorAll(".poll-option-input"),f=0;f<c.length;f++)this.pollOptions[f]=c[f].value.trim()};
_.r.clearPollOptions=function(){var c=_.r1(this.hostElement).querySelectorAll(".poll-option-input");c=_.C(c);for(var f=c.next();!f.done;f=c.next())f.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.r.getSimpleString=function(c){return _.xC(c)};
_.r.updateValueFromBinding=function(c){if(c.target&&this.pollOptions){var f=Array.from(_.r1(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(c.target);if(f>=0){var d;this.pollOptions[f]=(d=c.detail.value)!=null?d:"";this.notifyPath("pollOptions."+f)}}};
sI.prototype.dataChanged=sI.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],sI.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Array)],sI.prototype,"pollOptions",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sI.prototype,"hasMaxOptions",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],sI.prototype,"enableCreationBox",void 0);
_.y([_.AY("#repeat"),_.D("design:type",aa)],sI.prototype,"repeat",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sI.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-poll-attachment"})],sI);
_.h(sI,"ytd-poll-attachment",function(){if(PZy!==void 0)return PZy;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return PZy=c},{mode:2});var R6r;var Uq3;var pzy;var xq3;var Be=function(){return _.z.apply(this,arguments)||this};
_.K(Be,_.z);_.ci.Object.defineProperties(Be.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Be.prototype,"rendererBehaviors",void 0);_.y([_.L(),_.D("design:type",Object)],Be.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Be.prototype,"focused",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("focused"),_.D("design:type",Object),_.D("design:paramtypes",[])],Be.prototype,"ariaSelected",null);_.y([_.vj({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Be);
_.h(Be,"yt-user-mention-suggestion-renderer",function(){if(xq3===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;pzy===void 0&&(pzy=document.createElement("template"));var q=pzy;d.call(f,q.content.cloneNode(!0),c.content.firstChild);xq3=c}c=xq3;return c},{mode:2});var oMy;var Gg_;var i1=function(){var c=_.z.apply(this,arguments)||this;c.focusedSuggestionIndex=-1;return c};
_.K(i1,_.z);_.r=i1.prototype;_.r.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.r.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.r.setFocusedSuggestionIndex=function(c){!this.data||!this.data.suggestions||c<0||c>=this.data.suggestions.length||(this.focusedSuggestionIndex=c,c=this.getSuggestionId(c),this._setFocusedSuggestionId(c))};
_.r.advanceSuggestion=function(c){this.focusedSuggestionIndex===-1||c!==-1&&c!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+c),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.r.ensureSuggestionVisible=function(c){c=this.getSuggestionId(c);c=_.r1(this.hostElement).querySelector("[id="+c+"]");c!=null&&(c.offsetTop<this.hostElement.scrollTop?c.scrollIntoView(!0):c.offsetTop+c.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&c.scrollIntoView(!1))};
_.r.getSuggestionId=function(c){return"user-mention-suggestion-"+c};
_.r.onSuggestionTap=function(c){var f=_.b(c.model.item,mIv);this.ytRendererBehavior.logExplicitClick(f);_.CZ(this.hostElement,"yt-user-mention-suggestion-selected",{data:f,index:c.model.index})};
_.r.onSuggestionMouseMove=function(c){c.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(c.model.index)};
_.r.isSuggestionFocused=function(c,f){return c===f};
_.r.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.r.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("focused-suggestion-id-changed",this.focusedSuggestionId))};
i1.prototype.focusedSuggestionIdChangedForBinding=i1.prototype.focusedSuggestionIdChangedForBinding;i1.prototype.onDomChange=i1.prototype.onDomChange;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],i1.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],i1.prototype,"focusedSuggestionIndex",void 0);_.y([_.L({readOnly:!0}),_.D("design:type",String)],i1.prototype,"focusedSuggestionId",void 0);
_.y([_.Ta("dom-change"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],i1.prototype,"onDomChange",null);_.y([_.m5("focusedSuggestionId"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],i1.prototype,"focusedSuggestionIdChangedForBinding",null);_.y([_.vj({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],i1);
_.h(i1,"yt-user-mention-suggestions-dropdown",function(){if(Gg_===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;oMy===void 0&&(oMy=document.createElement("template"));var q=oMy;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Gg_=c}c=Gg_;return c},{mode:2});var TF=function(){var c=_.z.apply(this,arguments)||this;c.suggestionsResponse=null;c.activeMention=null;c.selectionChangeListener=c.onSelectionChange.bind(c);c.handlesEnabled=_.F("enable_handles_in_mention_suggest_posts");c.handlesInMentionSuggestionsEnabled=_.F("handles_in_mention_suggest_posts");c.zeroPrefixMentionSuggestionEnabled=_.F("enable_zero_prefix_mention_suggestion_web");c.pendingQuery=null;c.flowNonce=null;return c};
_.K(TF,_.z);_.r=TF.prototype;_.r.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.r.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.r.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.r.hasSuggestions=function(c){return!!(c&&c.suggestions&&c.suggestions.length>0)};
_.r.onInput=function(){var c=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var f=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),d=this.activeMention.JSC$11236_getText().slice(-1)===" ",q=this.activeMention.JSC$11236_getText().slice(-2,-1)===" ",Z="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11236_getText().slice(-2,
-1))>=0;Z=this.zeroPrefixMentionSuggestionEnabled&&Z;if(this.activeMention.isCollapsed()||(f||q||Z)&&d)this.cancelActiveMention();else{var M=this.activeMention.JSC$11236_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Ia(this,"requestSuggestions",function(){c.requestSuggestions(M)},100)}}}};
_.r.onServiceRequestSent=function(c){c.stopPropagation()};
_.r.onServiceRequestCompleted=function(c){c.stopPropagation();c=c.detail.data;c.query&&(!this.pendingQuery||this.pendingQuery!==c.query)||!this.zeroPrefixMentionSuggestionEnabled&&c.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=c,this.hasSuggestions(c)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.r.onServiceRequestError=function(c){c.stopPropagation()};
_.r.onUserMentionSuggestionSelected=function(c){this.selectSuggestion(c.detail.data,c.detail.index)};
_.r.onSelectionChange=function(){if(this.activeMention){var c=_.HZ(),f=this.activeMention.JSC$11236_containsRange(c);c=c&&this.containsHelper(this.dropdown,c.getContainer());f||c||this.cancelActiveMention()}};
_.r.containsHelper=function(c,f){var d;if(((d=window.ShadyDOM)==null?void 0:d.noPatch)===!0)return c.contains(f);for(;f;){if(f===c)return!0;f=f instanceof ShadowRoot?f.host:f.parentNode}return!1};
_.r.maybeStartSuggest=function(){var c=_.HZ();if(c&&c.isCollapsed()){var f=c.JSC$11236_getStartNode(),d=c.JSC$11236_getStartOffset();if(f instanceof Text&&!(d<1)){var q=f.textContent;!(q=q&&q.charAt(d-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(q)<0||(this.activeMention=_.yI(f,d-1,c.JSC$11236_getEndNode(),c.JSC$11236_getEndOffset()),this.flowNonce=Ji(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.r.updateActiveMention=function(){if(this.activeMention){var c=_.HZ();c&&c.isCollapsed()&&(this.activeMention=_.yI(this.activeMention.JSC$11236_getStartNode(),this.activeMention.JSC$11236_getStartOffset(),c.JSC$11236_getEndNode(),c.JSC$11236_getEndOffset()))}};
_.r.requestSuggestions=function(c){if(this.activeMention){var f={suggestions_query:c};this.pendingQuery=c;_.OX(this.hostElement,[this.suggestionsEndpoint,f])}};
_.r.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()};
_.r.focusPreviousSuggestion=function(c){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),c.preventDefault())};
_.r.focusNextSuggestion=function(c){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),c.preventDefault())};
_.r.selectFocusedSuggestion=function(c){if(this.hasSuggestions(this.suggestionsResponse)){var f=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.b(f,mIv)&&(this.selectSuggestion(_.b(f,mIv),this.dropdown.focusedSuggestionIndex),c.preventDefault())}};
_.r.selectSuggestion=function(c,f){if(c){var d=this.activeMention;if(d){var q=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&c.handle?_.v1(q,"\u00a0\u2068@"+c.handle+"\u2069\u00a0"):this.handlesEnabled?_.v1(q,"\u00a0"+c.displayName+"\u00a0"):_.v1(q,"\u00a0@"+c.displayName+"\u00a0");_.yM(q,"/channel/"+c.channelId);q.classList.add("yt-formatted-string","yt-simple-endpoint");q.setAttribute("spellcheck","false");d.isCollapsed()||d.JSC$11236_removeContents();d.insertNode(q,!0);c=
document.createTextNode(" ");q.parentNode.insertBefore(c,q.nextSibling);window.getSelection().collapse(c,1);f={suggestionSelected:{suggestionIndex:f}};if(this.zeroPrefixMentionSuggestionEnabled){var Z;f.suggestionSelected.isZeroPrefix=((Z=this.suggestionsResponse)==null?void 0:Z.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",f);this.cancelActiveMention();_.CZ(this.hostElement,"yt-mention-inserted")}}};
_.r.getPositionTarget=function(c){return c&&c.getBrowserRangeObject()};
_.r.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.r.onFocusedSuggestionIdChanged=function(c){var f=_.LHz(this.hostElement)[0];f&&(c.detail.value?f.setAttribute("aria-activedescendant",c.detail.value):f.removeAttribute("aria-activedescendant"))};
_.r.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.r.logGELEvent=function(c,f){c={eventType:c,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};f&&(c=Object.assign(c,f));_.JN("userMentionAutoCompleteBoxEvent",c)};
TF.prototype.onDomChange=TF.prototype.onDomChange;TF.prototype.onUserMentionSuggestionSelected=TF.prototype.onUserMentionSuggestionSelected;TF.prototype.onServiceRequestError=TF.prototype.onServiceRequestError;TF.prototype.onServiceRequestCompleted=TF.prototype.onServiceRequestCompleted;TF.prototype.onServiceRequestSent=TF.prototype.onServiceRequestSent;TF.prototype.onInput=TF.prototype.onInput;_.y([_.Q(_.Kn),_.D("design:type",Object)],TF.prototype,"ironA11yKeysBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],TF.prototype,"suggestionsEndpoint",void 0);_.y([_.L(),_.D("design:type",Object)],TF.prototype,"suggestionsResponse",void 0);_.y([_.L(),_.D("design:type",Object)],TF.prototype,"activeMention",void 0);_.y([_.AY("#dropdown"),_.D("design:type",Object)],TF.prototype,"dropdown",void 0);_.y([_.AY("#iron-dropdown"),_.D("design:type",Object)],TF.prototype,"ironDropdown",void 0);
_.y([_.Ta("input"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],TF.prototype,"onInput",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],TF.prototype,"onServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],TF.prototype,"onServiceRequestCompleted",null);
_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],TF.prototype,"onServiceRequestError",null);_.y([_.Ta("yt-user-mention-suggestion-selected"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],TF.prototype,"onUserMentionSuggestionSelected",null);
_.y([_.Ta("dom-change"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],TF.prototype,"onDomChange",null);_.y([_.vj({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],TF);
_.h(TF,"yt-user-mention-autosuggest-input",function(){if(Uq3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;R6r===void 0&&(R6r=document.createElement("template"));var q=R6r;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Uq3=c}c=Uq3;return c},{mode:2});var mL=null;
_.JY({is:"ytd-commentbox",_template:function(){if(DqK!==void 0)return DqK;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DqK=c},
behaviors:[_.CMe.YtHostElementBehavior,_.Kn,_.Cy.YtActionHandlerBehavior,_.N2.YtComponentBehavior,_.rT.YtRendererstamperBehavior,_.PNu.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(c,f){return _.Bb(c.entities,"aadcGuidelinesStateEntityPayload",f)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(c,f){return _.Bb(c.entities,"commentboxStateEntity",f)},
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 _.Nj}},
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",_.ia(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(c){this.fire(c?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(c){this.set("submitButtonDisabled",void 0);this.clear();c&&this.computeIsEmojiButtonDisplayed_(c)&&(c=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&c.updateEmojiCategories()},
observePrefilledImage_:function(c,f,d){this.isValidPrefilledImage_(c,f,d)&&(this.prefilledAttachment_="image",this.prefilledImageData_=f,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(c,f){this.isValidPrefilledVideo_(c,f)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(c){c&&c.pollData&&c.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(c.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Ty();this.focus()},
detached:function(){document.removeEventListener("tap",_.ia(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(c){c=c.detail;c=c.isCustomEmoji?c.shortcuts[0]:c.emojiId;var f=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(f,c);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var c=_.HZ();if(c){c=c.getBrowserRangeObject();for(var f=c.commonAncestorContainer;f;){if(f===this.getEditableTextArea_())return c;f=f.parentNode}}c=this.getEditableTextArea_();c=_.wh(c,c.childNodes.length);c.select();return c.getBrowserRangeObject()},
insertTextWithEmojis_:function(c,f,d){(f=this.emojiManager.createDocumentFragment(f,!0,!1,d===void 0?!0:d))&&f.childNodes.length!==0&&(c.collapsed||c.deleteContents(),d=f.lastChild,c.insertNode(f),_.eNj(d).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var c=_.HZ();if(c){var f=c.JSC$11236_getStartNode(),d=c.JSC$11236_getEndNode();if(E8Y(f)&&E8Y(d)){var q=c.JSC$11236_getStartOffset(),Z;if(_.TK&&f.nodeType===Node.ELEMENT_NODE&&(Z=_.e_3(f)))_.wh(Z,0).select();else{Z=ih(f)?f:_.vv(f,ih);var M=ih(d)?d:_.vv(d,ih);if(Z||M)if(c.isCollapsed()){if(f.nodeType===Node.TEXT_NODE){c=!0;q===f.length&&(c=!1);if(mL==="end"||mL==="right")c=!1;f=f.parentNode;c=[].concat(_.LT(f.parentNode.childNodes)).indexOf(f)+(c?0:1);_.wh(f.parentNode,
c).select()}}else Z?Z.previousSibling&&Z.previousSibling.length>0?_.yI(d,c.JSC$11236_getEndOffset(),Z.previousSibling,Z.previousSibling.length-1).select():(f=document.createTextNode("\u200b"),Z.parentNode.insertBefore(f,Z),_.yI(d,c.JSC$11236_getEndOffset(),f,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.yI(f,c.JSC$11236_getStartOffset(),M.nextSibling,1).select():(d=document.createTextNode("\u200b"),M.parentNode.insertBefore(d,M.nextSibling),_.yI(f,c.JSC$11236_getStartOffset(),d,d.length).select()));
mL=null}}else mL=null}else mL=null},
leftKeyPressed_:function(){mL="left"},
rightKeyPressed_:function(){mL="right"},
endKeyPressed_:function(){mL="end"},
maybeDeleteChip_:function(){var c=zPM(!0);if(c){var f=_.HZ(),d=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();_.VI(d,f,c,c.childNodes.length).select()}},
maybeBackspaceChip_:function(){var c=zPM(!1);if(c){var f=_.HZ(),d=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();_.VI(d,f,c,0).select()}},
maybeBackspaceChipWordMode_:function(c){var f=_.HZ();if(f.isCollapsed()){var d=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();var q=Jtn(d,f,!0);q&&(_.VI(d,f,q,0).select(),document.execCommand("delete"),c.preventDefault(),c.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(c){var f=_.HZ();if(f.isCollapsed()){var d=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();var q=Jtn(d,f,!1);q&&(_.VI(d,f,q,q.childNodes.length).select(),document.execCommand("delete"),c.preventDefault(),c.stopImmediatePropagation())}},
onTap_:function(c){if(!c.defaultPrevented&&(c.currentTarget.tagName==="YTD-COMMENTBOX"&&ih(c.target)&&c.preventDefault(),this.isEmojiPickerDisplayed)){var f=this.$$("#emojis"),d=this.$$("#emoji-button"),q=this.getEditableTextArea_();if((c=c.path?c.path:c.composedPath&&c.composedPath())&&!c.includes(f)&&!c.includes(q)&&!c.includes(d))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(c,f,d){return c==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&f!==void 0&&f.encryptedBlobId!==null&&f.sourceExternalVideoId!==null&&d!==void 0&&d.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(c,f){return c==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!f&&!!f.videoRenderer&&!!f.videoRenderer.videoId},
isValidPrefilledAttachment_:function(c,f,d){return this.isValidPrefilledImage_(c,f,d)||this.isValidPrefilledVideo_(c,d)},
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 c=this.$$("ytd-backstage-multi-image-select-renderer");c&&c.hasImages()&&c.cancel()}else(c=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&c.cancel();(c=this.$["poll-attachment"])&&this.hasPoll_&&c.clearPollOptions();(c=this.$["image-poll-attachment"])&&this.hasImagePoll_&&c.resetPollOptions();(c=this.$["quiz-attachment"])&&this.hasQuiz_&&c.resetQuizOptions();
(c=this.$["video-link-attachment"])&&this.hasVideo_&&c.cancel();(c=this.$["access-restrictions-selector"].firstElementChild)&&c.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 _.r1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.r1(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(c,f){c=$tG(c,this.emojiManager,f).cloneNode(!0);for(f=c.firstChild;f;)if(f.nodeType!==1)f=f.nextSibling;else switch(f.tagName){case "BR":var d=_.zU();_.o_y(d,f);f=d.nextSibling;break;case "DIV":(d=f.lastChild)&&f.nextSibling&&_.XB(_.zU(),d);f.previousSibling&&(f.previousSibling.nodeType===1||f.previousSibling.nodeType===3&&!f.previousSibling.textContent.endsWith("\n"))&&_.Vv(_.zU(),f);d&&d.nodeName==="BR"&&_.Y6(d);d=f;f.hasChildNodes()?(f=f.firstChild,
_.Gvu(d)):(f=f.nextSibling,_.Y6(d));break;default:f=f.nextSibling}return aEC(c)},
onAddImageError_:function(c){c.stopPropagation();this.errorMessage_=_.pC(c.detail)},
setTextAreaValue_:function(c){c||(c="");var f=this.getEditableFormattedString_();f.text="";this.getEditableTextArea_().innerText="";typeof c==="string"&&(c={runs:[{text:c}]});f.text=c},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();mL=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var c=this.getEditableTextArea_();c&&(_.wh(c,c.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.hk("HTML_DIR")==="rtl"){var c=this.getEditableTextArea_(),f=this.getTextAreaValue()!==""?"auto":"rtl";c.setAttribute("dir",f)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var c;return g3M((c=this.$["quiz-attachment"])==null?void 0:c.getExplanationText())||g3M(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var c=null;if(this.isEmojiButtonDisplayed){var f=this.getInputRange_();f&&(c=this.emojiInput.retrieveTextBeforeRange(f))}this.insertText_(c,!0);this.updateCharCount_();this.setSubmitButton_();c=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=c.scrollHeight>c.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var c=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:c})},
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(c){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(c)},
onPasteEmoji_:function(c){c.preventDefault();c.stopImmediatePropagation();c=c.clipboardData.getData("text/plain");this.insertText_(c,!1,!1)},
insertText_:function(c,f,d){f=f===void 0?!1:f;d=d===void 0?!0:d;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&c){var q=this.getInputRange_().cloneRange();this.emojiManager&&q&&(f&&this.emojiInput.offsetStartOfRangeBy(q,c.length),this.insertTextWithEmojis_(q,c,d),n8l(this.getEditableTextArea_().lastChild)||(q=this.getInputRange_().cloneRange()),q&&(this.emojiInput.updateSuggestions(q,c),this.updateSuggestionOffset_(q)))}},
setSubmitButton_:function(){if(this.data){var c=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",f=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(c||f){var d=this.getTextAreaValue().trim();f=d===this.previousText_;d=!d||this.aboveCharLimit_;c&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(d=this.aboveCharLimit_);this.submitButtonDisabled=
f||d||!this.getTextLength();c&&_.F("enable_post_scheduling")&&(this.submitButtonDisabled=f&&!this.scheduledPublishTimeSec_||d)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.xC,computeCreationBoxClass_:function(c){return c?"focused":"not-focused"},
computeFooterMessageClass_:function(c,f){return f?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(c,f){return f?f:c},
computeFooterMessageHidden_:function(c,f){return!f&&!c},
computePlaceholderText_:function(c,f,d){return(d==="video"||d==="image")&&(c==null?0:c.prefilledPlaceholderText)?c==null?void 0:c.prefilledPlaceholderText:f==="poll"||f==="image-poll"?c==null?void 0:c.pollPostPlaceholderText:f==="quiz"?c==null?void 0:c.quizPostPlaceholderText:f==="image"?c==null?void 0:c.imagePostPlaceholderText:c==null?void 0:c.placeholderText},
computeHideAttachmentButtons_:function(c,f,d,q){return c===void 0?!1:q&&this.getSimpleString(q)===this.getSimpleString(c.rateLimitErrorMessage)?!0:f!=="none"||d!=="none"||!c.videoLinkButton&&!c.pollButton&&!c.imagePollButton&&!c.quizButton&&!c.imageButton},
computeHideDismissableAttachment_:function(c){return c!=="image"&&c!=="video"},
computeHasVideo_:function(c){return c==="video"},
computeHasImage_:function(c){return c==="image"},
computeHasPoll_:function(c){return c==="poll"},
computeHasImagePoll_:function(c){return c==="image-poll"},
computeHasQuiz_:function(c){return c==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(c){return c&&c.backstageAttachment?c.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!c.backstageAttachment.quizRenderer&&!c.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(c){if(this.isValidPrefilledAttachment_(c.purpose,c.prefilledImageData,c.backstageAttachment))return c.backstageAttachment},
computeEditAttachment_:function(c){if(this.computePrefilledContent_(c)===void 0)return c.backstageAttachment},
computeAuthorThumbnailDimension_:function(c,f){return c&&!f?24:40},
computeImageUploadEndpoint_:function(c){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",c)},
computeRateLimitErrorCommands_:function(c){var f,d;return c==null?void 0:(f=c.advancedTierFeatures)==null?void 0:(d=f.rateLimit)==null?void 0:d.rateLimitCommands},
computeIsBackstageComment_:function(c){return!(!c||c!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(c){return this.get("submitButton.buttonRenderer.serviceEndpoint",c)||this.get("replyButton.buttonRenderer.serviceEndpoint",c)||this.get("postButton.buttonRenderer.serviceEndpoint",c)},
computeSubmitButtonOverride:function(){if(_.F("web_modern_buttons")){var c,f;return{segmentedPosition:this.dropdownSchedulePanel_||!((c=this.data)==null?0:(f=c.postOptionsMenu)==null?0:f.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(c,f){c=this.get("submitButton.buttonRenderer",c)||this.get("replyButton.buttonRenderer",c)||this.get("postButton.buttonRenderer",c);f&&(c=f);c&&(c=Object.assign({},c),c.serviceEndpoint=void 0,c.isDisabled=this.submitButtonDisabled);return c},
computeHasExternalLinksAccess_:function(c){if(_.F("enable_rfa_external_links")){var f,d,q;return(q=c==null?void 0:(f=c.advancedTierFeatures)==null?void 0:(d=f.externalLinks)==null?void 0:d.allowExternalLinks)!=null?q:!0}return!0},
computeIsEmojiButtonDisplayed_:function(c){return c.emojiButton&&c.emojiPicker&&c.emojiPicker.emojiPickerRenderer&&c.emojiPicker.emojiPickerRenderer.categories?c.emojiPicker.emojiPickerRenderer.categories.find(function(f){return f.emojiPickerCategoryRenderer?f.emojiPickerCategoryRenderer.emojiIds&&f.emojiPickerCategoryRenderer.emojiIds.length>0:f.emojiPickerUpsellCategoryRenderer?f.emojiPickerUpsellCategoryRenderer.emojis&&f.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(c){return c.charLimit?c.charLimit:null},
computeDropdownSchedulingPanel_:function(c,f){if(c==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&f)return f},
computeInlineSchedulingPanel_:function(c,f){if(c==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&f)return f},
computeHideAuthorThumbnail_:function(c,f){return c||this.computeUseIdentityChip_(f)},
computeHideIdentityChipRenderer_:function(c,f){return c||!this.computeUseIdentityChip_(f)},
computeUseIdentityChip_:function(c){return!!c&&!!c.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(c){var f,d,q,Z;(c==null?0:(f=c.detail)==null?0:(d=f.endpoint)==null?0:d.ypcGetOffersEndpoint)||(c==null?0:(q=c.detail)==null?0:(Z=q.endpoint)==null?0:Z.ypcOffersEndpoint)?(c.stopPropagation(),_.OX(this,[c.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",c)&&(c.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(c){this.addedAttachment="video";this.selectedVideoId_=c.detail.videoId},
commentboxStateEntityChanged_:function(c){var f=this;(c==null?void 0:c.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(c==null?void 0:c.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){f.focus()})},
onYtServiceRequestSent_:function(c,f){if(f.actions)for(c=_.C(f.actions),f=c.next();!f.done;f=c.next())f.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(c){this.isLoading=!1;var f=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",c),d,q,Z,M=c==null?void 0:(d=c.detail)==null?void 0:(q=d.data)==null?void 0:(Z=q.actionResult)==null?void 0:Z.commentboxStateEntityKey;if(f)this.errorMessage_=f;else if(M){var g;this.dismissData_=c==null?void 0:(g=c.detail)==null?void 0:g.data;this.commentboxStateKey_=M}else{this.clear();var O;this.fire("yt-commentbox-dismiss",c==null?void 0:(O=c.detail)==
null?void 0:O.data)}},
onYtServiceRequestError_:function(c){c.stopPropagation();this.isLoading=!1;var f,d;if(((f=this.data)==null?void 0:f.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((d=this.data)==null?void 0:d.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(f=this.get("detail.error.args",c)||[],f.length>1&&f[1].message){this.handlePostsServiceRequestError_(f[1].message);return}(c=this.get("detail.error.message",c))?this.errorMessage_=this.data.errorMessage||_.pC(c):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(c){if(_.F("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var f=_.C(this.rateLimitErrorCommands),d=f.next();!d.done;d=f.next())if(d=d.value,d.errorLabel===c){_.Ae(d.command,this.hostElement);return}this.errorMessage_=_.pC(c)},
submitIfNotBackstagePost_:function(c){if(!this.isBackstagePost)this.onSubmit_(c)},
onSubmit_:function(c){var f=this,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X;return _.k(function(u){switch(u.nextAddress){case 1:c.stopPropagation();if(!f.serviceEndpoint||!f.isValidInput_())return u.return();if(f.shouldShowPostAadcNotice_())return f.showPostAadcNotice_(),u.return();if(f.shouldShowCommentAadcNotice_())return f.showCommentAadcNotice_(),u.return();if(!(f.$$("ytd-backstage-multi-image-select-renderer")&&f.hasImage_&&_.F("enable_multi_image_post_creation"))){u.jumpTo(2);break}d=f.$$("ytd-backstage-multi-image-select-renderer");
return u.yield(d.getAllUploadStatuses(),3);case 3:q=u.yieldResult;if(!q)return u.return();Z=_.C(q);for(M=Z.next();!M.done;M=Z.next())if(g=M.value,g.encryptedBlobId===void 0)return f.isLoading=!1,l=O=void 0,f.errorMessage_=(l=(O=f.imageUploadEndpoint_)==null?void 0:O.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?l:null,u.return();return u.return(f.submitForm_(void 0,void 0,void 0,void 0,d.images,f.taggedVideoId_));case 2:if(!f.hasImagePoll_||!f.$["image-poll-attachment"]){u.jumpTo(4);
break}return u.yield(f.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:m=u.yieldResult;if(!m)return u.return();H=_.C(m);for(A=H.next();!A.done;A=H.next())if(Y=A.value,!Y.encryptedBlobId)return f.isLoading=!1,t=void 0,f.errorMessage_=(t=f.data.errorMessage)!=null?t:null,u.return();case 4:J=(E=f.$$("ytd-backstage-image-select-renderer"))&&E.uploadPromise(),X=f.getSharedPostId_(),J?J.then(function(){f.submitForm_.apply(f,_.LT(_.hv.apply(0,arguments)))}).catch(function(W){f.isLoading=!1;
f.errorMessage_=_.pC(W.message)}):f.selectedVideoId_?f.submitForm_(void 0,f.selectedVideoId_):f.prefilledAttachment_==="image"?f.submitForm_(f.prefilledImageData_.encryptedBlobId,void 0,void 0,f.prefilledImageData_.sourceExternalVideoId,void 0,f.taggedVideoId_):f.prefilledAttachment_==="video"?f.submitForm_(void 0,f.data.backstageAttachment.videoRenderer.videoId):X?f.submitForm_(void 0,void 0,X):f.taggedVideoId_!==void 0?f.submitForm_(void 0,void 0,void 0,void 0,void 0,f.taggedVideoId_):f.submitForm_(),
_.Fm(u)}})},
openSchedulingPanel:function(c){c&&c.scheduleButton&&c.scheduleButton.buttonRenderer&&(this.scheduleButton_=c.scheduleButton.buttonRenderer);c&&c.dateTimePicker&&this.set("data.schedulingDateTimePicker",c.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(c){c.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(c){c.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(c){c.stopPropagation();c.detail.alertMessage&&(this.alertMessage_=c.detail.alertMessage)},
onImageSelected_:function(c){c.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(c){c.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(c){c.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(c.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(c){c.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(c){var f=this.$["video-link-attachment"];f&&f.onLaunchVideoPicker(c)},
onAttachmentDismiss_:function(c){c.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 c;if(this.addedAttachment==="image-poll"&&((c=this.$["image-poll-attachment"])==null||!c.isValid()))return!1;var f;if(this.addedAttachment==="quiz"&&((f=this.$["quiz-attachment"])==null||!f.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;c=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(c=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")c=!0;return c||!!this.getTextAreaValue().trim()},
submitForm_:function(c,f,d,q,Z,M){var g=this.getTextAreaValue().trim(),O={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&g===this.previousText_&&(g=void 0);g!==void 0&&(O.comment_text=g);this.isLoading=!0;M!=void 0&&(O.tagged_video_id=M);c?(O.image_blob_id=c,this.imagePreviewCoordinates_&&(O.image_preview_coordinates=this.imagePreviewCoordinates_)):f?O.attached_video_id=f:d?O.shared_post_id=d:Z&&Z.length>0&&(O.images_data=Z.map(function(l){return{encryptedBlobId:l.encryptedBlobId,
previewCoordinates:l.previewCoordinates}}));
q&&(O.source_video_id=q);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(O.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(O.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(O.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.F("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(O.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.F("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(O.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.OX(this,[this.serviceEndpoint,O])},
onIsInputFocusChanged_:function(c,f){c?this.fire("yt-autonav-pause-focus"):f!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(c){var f=this.getEditableTextArea_();[].concat(_.LT(c.dataTransfer.items)).forEach(function(d){d.kind==="string"&&d.type.match("^text/plain")&&d.getAsString(function(q){f.appendChild(document.createTextNode(q))})});
c.preventDefault()},
preventDefault_:function(c){c.preventDefault()},
onSuggestionInsert_:function(c){this.insertTextWithEmojis_(c.detail.range,c.detail.text)},
onEmojiSuggestionClick_:function(c){this.emojiInput.insertSuggestion(c.detail)},
computeSubmitButtonClass_:function(c,f){return!f||c?"":"with-options"},
updateSuggestionOffset_:function(c){if(this.emojiInput&&_.r1(this.emojiInput).querySelector("#dropdown")){var f=this.getEditableTextArea_().getBoundingClientRect().bottom,d=c.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(f-d)+5;f=this.getEditableTextArea_().getBoundingClientRect().left;c=c.getBoundingClientRect().left-f;_.r1(this.emojiInput).querySelector("#dropdown").style.marginLeft=c+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(c){if(_.F("enable_post_scheduling")&&this.data&&this.data.purpose){c=c.detail;if(Math.floor(Date.now()/1E3)>=c)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var f=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(f)||f!==c?this.scheduledPublishTimeSec_=c:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=c;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var c=["image-button","image-poll-button","poll-button"];_.F("enable_quiz_creation")&&c.push("quiz-button");_.F("auto_convert_posts_video_tag")||c.push("video-link-button");return c},
getButtonRenderer:function(c,f){if(c)switch(f){case "video-link-button":var d;return((d=c.videoLinkButton)==null?void 0:d.buttonRenderer)||void 0;case "image-button":var q;return((q=c.imageButton)==null?void 0:q.buttonRenderer)||void 0;case "poll-button":var Z;return((Z=c.pollButton)==null?void 0:Z.buttonRenderer)||void 0;case "image-poll-button":var M;return((M=c.imagePollButton)==null?void 0:M.buttonRenderer)||void 0;case "quiz-button":var g;return((g=c.quizButton)==null?void 0:g.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var c;return(c=this.data)==null||!c.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var c,f;return!((c=this.data)==null||!c.openAadcDialog)&&!((f=this.aadcGuidelinesState_)==null||!f.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.hk("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var c;((c=this.data)==null?0:c.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.hw("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(c){c.clickTrackingParams&&_.bP().clickCommand(c);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.gS(this,"yt-close-popup-action")},
onHideIdentityChip:function(c){var f;this.set("data.placeholderText",(f=c.hideIdentityChipAction)==null?void 0:f.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var He=function(){var c=_.z.apply(this,arguments)||this;c.isOpen=!1;c.modern=_.F("web_modern_buttons");c.roundedContainer=!0;c.dropdownButtonOverride=_.F("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;c.inPopupContainer=!1;c.isCommentboxLoading=!1;var f=["image-button","image-poll-button","poll-button"];_.F("enable_quiz_creation")&&f.push("quiz-button");_.F("auto_convert_posts_video_tag")||f.push("video-link-button");c.attachmentButtonIds=f;c.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 c};
_.K(He,_.z);_.r=He.prototype;_.r.computeButtonOverride=function(){var c;return((c=this.data)==null?0:c.postOptionsMenu)&&_.F("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.r.configureRendererStamper=function(){var c={"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")||(c["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return c};
_.r.ready=function(){var c=this,f=_.r1(this.hostElement).querySelector("#placeholder-area"),d=function(q){c.onOpen(q)};
f.addEventListener("tap",d);f.addEventListener("keypress",d)};
_.r.showButtonEduTooltip=function(){var c,f,d,q,Z,M,g;if(_.F("enable_quiz_creation")&&((c=this.data)==null?0:(f=c.quizButton)==null?0:(d=f.buttonRenderer)==null?0:(q=d.hint)==null?0:(Z=q.hintRenderer)==null?0:(M=Z.content)==null?0:(g=M.bubbleHintRenderer)==null?0:g.text)&&(_.M2.getInstance(),c=rU(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(c==null?void 0:
c.length)>0)){this.ytComponentBehavior.resolveCommand(c[0],{form:{element:this.quizButton}});return}var O;if((O=this.data)==null?0:O.imagePollButtonTooltip)if(_.M2.getInstance(),O=rU(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(O==null?void 0:O.length)>0){this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.imagePollButton}});return}var l;_.F("enable_multi_image_post_creation")&&
((l=this.data)==null?0:l.multiImageButtonTooltip)&&(_.M2.getInstance(),l=rU(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(l==null?void 0:l.length)>0&&this.ytComponentBehavior.resolveCommand(l[0],{form:{element:this.imageButton}}))};
_.r.onCreatePollAction=function(c){_.b(c,FJ3)&&(this.JSC$15688_commentbox.addedAttachment="poll",this.openDialog())};
_.r.onAddVideoLinkAction=function(c){if(_.b(c,mU3))this.JSC$15688_commentbox.onAddVideoLink(c)};
_.r.onShowSchedulingPanelCommand=function(c){(c=_.b(c,IDy))&&this.openSchedulingPanel(c)};
_.r.onCreateImagePollCommand=function(c){_.b(c,BFj)&&(this.JSC$15688_commentbox.openImagePollComponent(),this.openDialog())};
_.r.onCreateQuizCommand=function(c){_.b(c,izT)&&(this.JSC$15688_commentbox.openQuizComponent(),this.openDialog())};
_.r.openSchedulingPanel=function(c){_.F("enable_post_scheduling")&&(this.openDialog(),this.JSC$15688_commentbox.openSchedulingPanel(c))};
_.r.onCreateCommentAction=function(c){this.get("createCommentAction.contents",c)&&(this.JSC$15688_commentbox.clear(),this.closeDialog())};
_.r.onOpen=function(c){c instanceof KeyboardEvent&&c.type==="keypress"&&c.keyCode!==13&&c.keyCode!==32||(this.data.prepareAccountEndpoint?_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.r.onYtCommentboxDismiss=function(){this.closeDialog()};
_.r.onYtCommentboxLoadingStart=function(c){c.stopPropagation();this.isCommentboxLoading=!0};
_.r.onYtCommentboxLoadingEnd=function(c){c.stopPropagation();this.isCommentboxLoading=!1};
_.r.onYtVideoLinkButtonCancel=function(c){c.stopPropagation();this.onOpen(c)};
_.r.onYtVideoLinkSelected=function(c){c.stopPropagation();this.onOpen(c)};
_.r.onIronSelect=function(c){c.stopPropagation();c.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=c.detail.item.value&&(this.accessRestriction?(this.accessRestriction=c.detail.item.value,this.onOpen(c)):this.accessRestriction=c.detail.item.value)};
_.r.onYtNavigate=function(c){this.get("detail.endpoint.backstageImageUploadEndpoint",c)&&(this.JSC$15688_commentbox.addedAttachment="image",this.JSC$15688_commentbox.submitButtonDisabled=!0,this.onOpen(c))};
_.r.onRequestSent=function(c){if(_.F("web_button_rework"))for(var f=_.C(c.detail),d=f.next();!d.done;d=f.next())_.b(d.value,n$_)&&(this.JSC$15688_commentbox.addedAttachment="image",this.JSC$15688_commentbox.submitButtonDisabled=!0,this.onOpen(c))};
_.r.openDialog=function(){this.JSC$15688_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15688_commentbox.focus()};
_.r.onPopupClosed=function(){_.M2.getInstance()};
_.r.computeCreationDisabled=function(c){return!!c};
_.r.computeIsCreationDialog=function(c){return!!c&&c==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.r.computeDisabledPostButton=function(c){if(!c)return null;c.isDisabled=!0;return c};
_.r.computeIsCreationDialogWithHeader=function(c){return!this.inPopupContainer&&!!c&&!!c.authorText&&c.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.r.computeIsHeaderHidden=function(c,f){return!c||f};
_.r.computeDropdownRendererClasses=function(c){return c?["text-secondary-style"]:[]};
_.r.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var c=_.r1(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;c&&c.reset()};
He.prototype.onPopupClosed=He.prototype.onPopupClosed;He.prototype.onRequestSent=He.prototype.onRequestSent;He.prototype.onYtNavigate=He.prototype.onYtNavigate;He.prototype.onIronSelect=He.prototype.onIronSelect;He.prototype.onYtVideoLinkSelected=He.prototype.onYtVideoLinkSelected;He.prototype.onYtVideoLinkButtonCancel=He.prototype.onYtVideoLinkButtonCancel;He.prototype.onYtCommentboxLoadingEnd=He.prototype.onYtCommentboxLoadingEnd;He.prototype.onYtCommentboxLoadingStart=He.prototype.onYtCommentboxLoadingStart;
He.prototype.onYtCommentboxDismiss=He.prototype.onYtCommentboxDismiss;He.prototype.showButtonEduTooltip=He.prototype.showButtonEduTooltip;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],He.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],He.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],He.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],He.prototype,"isOpen",void 0);_.y([_.L({computed:"computeButtonOverride(data)"}),_.D("design:type",Object)],He.prototype,"buttonOverride",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],He.prototype,"modern",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],He.prototype,"roundedContainer",void 0);_.y([_.L(),_.D("design:type",Object)],He.prototype,"dropdownButtonOverride",void 0);_.y([_.L({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.D("design:type",Boolean)],He.prototype,"creationDisabled",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],He.prototype,"enableCreationBox",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.D("design:type",Boolean)],He.prototype,"isCreationDialog",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],He.prototype,"inPopupContainer",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.D("design:type",Boolean)],He.prototype,"isCreationDialogWithHeader",void 0);_.y([_.L(),_.D("design:type",Object)],He.prototype,"accessRestriction",void 0);
_.y([_.L({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.D("design:type",Array)],He.prototype,"dropdownRendererClasses",void 0);_.y([_.L(),_.D("design:type",Object)],He.prototype,"isCommentboxLoading",void 0);_.y([_.L(),_.D("design:type",Array)],He.prototype,"attachmentButtonIds",void 0);_.y([_.AY("#image-button"),_.D("design:type",HTMLElement)],He.prototype,"imageButton",void 0);
_.y([_.AY("#image-poll-button"),_.D("design:type",HTMLElement)],He.prototype,"imagePollButton",void 0);_.y([_.AY("#quiz-button"),_.D("design:type",HTMLElement)],He.prototype,"quizButton",void 0);_.y([_.AY("#commentbox"),_.D("design:type",Object)],He.prototype,"JSC$15688_commentbox",void 0);_.y([_.m5("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],He.prototype,"showButtonEduTooltip",null);
_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],He.prototype,"onYtCommentboxDismiss",null);_.y([_.Ta("yt-commentbox-loading-start"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],He.prototype,"onYtCommentboxLoadingStart",null);
_.y([_.Ta("yt-commentbox-loading-end"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],He.prototype,"onYtCommentboxLoadingEnd",null);_.y([_.Ta("yt-video-link-button-cancel"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],He.prototype,"onYtVideoLinkButtonCancel",null);
_.y([_.Ta("yt-video-link-selected"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],He.prototype,"onYtVideoLinkSelected",null);_.y([_.Ta("iron-select"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],He.prototype,"onIronSelect",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],He.prototype,"onYtNavigate",null);
_.y([_.Ta("yt-service-request-sent-button-renderer"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],He.prototype,"onRequestSent",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],He.prototype,"onPopupClosed",null);_.y([_.v({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],He);
_.h(He,"ytd-backstage-post-dialog-renderer",function(){if(FS_!==void 0)return FS_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return FS_=c},{mode:1});var c1K;var fP_;var AU=function(){return _.z.apply(this,arguments)||this};
_.K(AU,_.z);_.r=AU.prototype;_.r.computeHeartButtonStyle=function(c){return(c==null?0:c.styleType)?c.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.r.onYtButtonTap=function(){if(this.data.isEnabled){var c=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(c=this.getEndpoint(c))&&_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}})}else(c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(c)};
_.r.toggle=function(c){this.set("data.isHearted",c!==void 0?c:!this.data.isHearted)};
_.r.getEndpoint=function(c){var f,d=(f=this.data)==null?void 0:f.heartEndpoint,q;f=(q=this.data)==null?void 0:q.unheartEndpoint;if(d&&f)return c?f:d};
_.r.computeButtonAccessibility=function(c,f){var d,q,Z=c==null?void 0:(d=c.heartedAccessibility)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label,M,g;c=c==null?void 0:(M=c.unheartedAccessibility)==null?void 0:(g=M.accessibilityData)==null?void 0:g.label;return f?Z:c};
_.ci.Object.defineProperties(AU.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 c;return _.F("kevlar_system_icons")&&!((c=this.data)==null||!c.isHearted)}}});
AU.prototype.onYtButtonTap=AU.prototype.onYtButtonTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],AU.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],AU.prototype,"data",void 0);_.y([_.S("data.isHearted"),_.D("design:type",Object),_.D("design:paramtypes",[])],AU.prototype,"heartTooltip",null);
_.y([_.S("data.isHearted"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],AU.prototype,"iconFilled",null);_.y([_.L({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.D("design:type",String)],AU.prototype,"buttonAccessibility",void 0);_.y([_.L({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.D("design:type",String)],AU.prototype,"heartButtonStyle",void 0);
_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],AU.prototype,"onYtButtonTap",null);_.y([_.v({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],AU);
_.h(AU,"ytd-creator-heart-renderer",function(){if(fP_!==void 0)return fP_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return fP_=c},{mode:1});var YI=function(){var c=_.z.apply(this,arguments)||this;c.hasCreatorReply=!1;c.buttonOverrides={size:"S",iconPosition:"icon-only"};c.replyButtonOverrides={size:"S",type:"text"};c.forceIconButton=!_.F("web_modern_buttons");c.modern=_.F("web_modern_buttons");c.buttonTooltipPosition="bottom";c.systemIcons=_.F("kevlar_system_icons");c.replyDialog=null;return c};
_.K(YI,_.z);_.r=YI.prototype;
_.r.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]]"}}}}}};
_.r.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.r.dataChange=function(){this.replyDialog&&_.r1(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var c,f,d;this.isLiked=this.systemIcons&&!!((c=this.data)==null?0:(f=c.likeButton)==null?0:(d=f.toggleButtonRenderer)==null?0:d.isToggled)};
_.r.computeShowVoteCountBeginning=function(c,f){return c===void 0||f===void 0?!0:c.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!f&&this.ytRendererBehavior.getSimpleString(f)!=="0"};
_.r.computeShowVoteCountEnd=function(c,f){return c===void 0||f===void 0?!0:c.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!f&&this.ytRendererBehavior.getSimpleString(f)!=="0"};
_.r.computeShowCommentCount=function(c,f){return c===void 0||f===void 0?!0:c.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!f&&this.ytRendererBehavior.getSimpleString(f)!=="0"};
_.r.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.r.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.r.showReplyDialog=function(c){c&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.r1(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=c,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.r.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.r.onRequestSent=function(c){if(_.F("web_button_rework")){c=_.C(c.detail);for(var f=c.next();!f.done;f=c.next())(f=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",f.value))&&this.showReplyDialog(f)}};
_.r.onYtNavigate=function(c){var f,d;(c=(f=_.b(c.detail.endpoint,_.QJ3))==null?void 0:(d=f.dialog)==null?void 0:d.commentReplyDialogRenderer)&&this.showReplyDialog(c)};
_.r.onYtServiceRequestSent=function(c,f){c.stopPropagation();if(f.actions)for(c=0;c<f.actions.length;c++){var d=_.b(f.actions[c],$U_);d&&this.handleUpdateCommentVoteAction(d)}};
_.r.handleUpdateCommentVoteAction=function(c){this.voteCount=c.voteCount||_.pC("0");c.voteStatus==="LIKE"?this.JSC$15699_ytdDislikeToggleButtonRenderer.toggle(!1):c.voteStatus==="DISLIKE"?this.JSC$15699_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15699_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15699_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.r.computeReplyButtonHidden=function(c){return c};
_.r.computeReplyButtonBeginning=function(c){return(c==null?0:c.replyButton)&&c.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?c.replyButton:void 0};
_.r.computeReplyButtonEnd=function(c){return(c==null?0:c.replyButton)&&c.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?c.replyButton:void 0};
_.r.computeActionButtonStyle=function(c){return(c==null?0:c.style)?c.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.r.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.r.onYtToggleButton=function(c){var f,d;this.isLiked=this.systemIcons&&!!((f=c.detail)==null?0:(d=f.actions)==null?0:d.like)};
YI.prototype.onYtToggleButton=YI.prototype.onYtToggleButton;YI.prototype.onButtonTooltipPositionChanged=YI.prototype.onButtonTooltipPositionChanged;YI.prototype.onYtServiceRequestSent=YI.prototype.onYtServiceRequestSent;YI.prototype.onYtNavigate=YI.prototype.onYtNavigate;YI.prototype.onRequestSent=YI.prototype.onRequestSent;YI.prototype.onYtCommentboxDismiss=YI.prototype.onYtCommentboxDismiss;YI.prototype.dataChange=YI.prototype.dataChange;
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],YI.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],YI.prototype,"voteCount",void 0);_.y([_.L(),_.D("design:type",Object)],YI.prototype,"commentCount",void 0);_.y([_.L(),_.D("design:type",Object)],YI.prototype,"replyThumbnail",void 0);
_.y([_.L(),_.D("design:type",Object)],YI.prototype,"hasCreatorReply",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],YI.prototype,"enableCreationBox",void 0);_.y([_.L({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.D("design:type",String)],YI.prototype,"actionButtonsStyle",void 0);_.y([_.L({computed:"computeReplyButtonBeginning(data)"}),_.D("design:type",Object)],YI.prototype,"replyButtonBeginning",void 0);
_.y([_.L({computed:"computeReplyButtonEnd(data)"}),_.D("design:type",Object)],YI.prototype,"replyButtonEnd",void 0);_.y([_.L(),_.D("design:type",Object)],YI.prototype,"buttonOverrides",void 0);_.y([_.L(),_.D("design:type",Object)],YI.prototype,"replyButtonOverrides",void 0);_.y([_.L(),_.D("design:type",Object)],YI.prototype,"forceIconButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],YI.prototype,"useCommentIcon",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YI.prototype,"modern",void 0);_.y([_.L(),_.D("design:type",Object)],YI.prototype,"buttonTooltipPosition",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YI.prototype,"systemIcons",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],YI.prototype,"isLiked",void 0);_.y([_.AY("ytd-button-renderer"),_.D("design:type",Object)],YI.prototype,"ytdReplyButtonRenderer",void 0);
_.y([_.AY("#like-button"),_.D("design:type",Object)],YI.prototype,"JSC$15699_ytdLikeToggleButtonRenderer",void 0);_.y([_.AY("#dislike-button"),_.D("design:type",Object)],YI.prototype,"JSC$15699_ytdDislikeToggleButtonRenderer",void 0);_.y([_.AY("#reply-dialog"),_.D("design:type",HTMLElement)],YI.prototype,"replyDialogElement",void 0);_.y([_.AY("#reply-button"),_.D("design:type",HTMLElement)],YI.prototype,"replyButtonElement",void 0);
_.y([_.AY("#reply-button-end"),_.D("design:type",HTMLElement)],YI.prototype,"replyButtonEndElement",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],YI.prototype,"dataChange",null);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],YI.prototype,"onYtCommentboxDismiss",null);
_.y([_.Ta("yt-service-request-sent-button-renderer"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],YI.prototype,"onRequestSent",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],YI.prototype,"onYtNavigate",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],YI.prototype,"onYtServiceRequestSent",null);_.y([_.m5("buttonTooltipPosition"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],YI.prototype,"onButtonTooltipPositionChanged",null);
_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],YI.prototype,"onYtToggleButton",null);_.y([_.v({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],YI);
_.h(YI,"ytd-comment-action-buttons-renderer",function(){if(c1K!==void 0)return c1K;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return c1K=c},{mode:1});var dcj;var Fc=function(){return _.z.apply(this,arguments)||this};
_.K(Fc,_.z);Fc.prototype.focus=function(){_.r1(this.hostElement).querySelector("#commentbox").focus()};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Fc.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Fc.prototype,"zeroStepChannelCreationRenderer",void 0);_.y([_.v({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Fc);
_.h(Fc,"ytd-comment-dialog-renderer",function(){if(dcj!==void 0)return dcj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return dcj=c},{mode:1});var jjr;var tU=function(){var c=_.z.apply(this,arguments)||this;c.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.F("enable_web_delhi_icons")};c.replyButtonOverrides={size:"S",type:"text"};return c};
_.K(tU,_.z);_.r=tU.prototype;_.r.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.r.detached=function(){this.replyBox&&this.replyBox.remove()};
_.r.showReplyDialog=function(c){if(c){var f=this.replyBox;f||(f=document.createElement("ytd-comment-reply-dialog-renderer"),f.id="replybox",_.r1(this.replyDialogDiv).appendChild(f));f.data=c;this.replyDialogDiv.hidden=!1;f.openDialog()}};
_.r.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.r.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var c,f=_.b((c=this.toolbarSurface)==null?void 0:c.subscribersOnlyDisclaimerSnackbarCommand,_.Wh);f&&_.CZ(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:f})}};
_.r.onYtServiceRequestSent=function(c,f){c.stopPropagation();if(f.actions)for(var d=0;d<f.actions.length;d++){var q=_.b(f.actions[d],$U_);q?this.handleUpdateCommentVoteAction(q):c.target===this.heartButton&&this.toggleHeartState()}};
_.r.handleUpdateCommentVoteAction=function(c){var f;(f=this.toolbarState)!=null&&f.key&&this.ytdReduxBehavior.dispatch(_.uh("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:c.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":c.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.r.toggleHeartState=function(){var c;(c=this.toolbarState)!=null&&c.key&&this.ytdReduxBehavior.dispatch(_.uh("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.ci.Object.defineProperties(tU.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return(((c=this.toolbarState)==null?void 0:c.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(f=this.toolbarData)==null?void 0:f.likeCountLiked:(d=this.toolbarData)==null?void 0:d.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.toolbarSurface)==null?void 0:c.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.toolbarSurface)==null?void 0:c.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.toolbarSurface)==null?void 0:c.prepareAccountCommand)!==void 0&&!_.F("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var c,f=_.b((c=this.toolbarSurface)==null?void 0:c.prepareAccountCommand,_.Wh),d,q,Z,M,g,O,l,m,H;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((d=this.toolbarSharedData)==null||!d.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((q=this.toolbarState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:f!=null?f:_.b((Z=this.toolbarSurface)==null?void 0:Z.likeCommand,_.Wh),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:f!=null?f:_.b((M=this.toolbarSurface)==null?void 0:M.unlikeCommand,_.Wh),defaultCommand:this.isVisiblyDisabled?_.b((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand,_.Wh):void 0,defaultTooltip:(O=this.toolbarData)==null?void 0:O.likeInactiveTooltip,toggledTooltip:(l=this.toolbarData)==null?void 0:l.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(m=this.toolbarData)==null?void 0:m.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(H=this.toolbarSharedData)==null?void 0:H.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var c,f=_.b((c=this.toolbarSurface)==null?void 0:c.prepareAccountCommand,_.Wh),d,q,Z,M,g,O,l,m,H,A;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((d=this.toolbarSharedData)==null||!d.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((q=this.toolbarState)==null?void 0:q.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:f!=null?f:_.b((Z=this.toolbarSurface)==null?void 0:Z.dislikeCommand,_.Wh),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:f!=null?f:_.b((M=this.toolbarSurface)==null?void 0:M.undislikeCommand,_.Wh),defaultCommand:this.isVisiblyDisabled?_.b((g=this.toolbarSurface)==null?void 0:g.commentDisabledActionCommand,_.Wh):void 0,defaultTooltip:(O=this.toolbarData)==null?void 0:O.dislikeInactiveTooltip,toggledTooltip:(l=this.toolbarData)==null?void 0:
l.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(m=this.toolbarSharedData)==null?void 0:m.dislikeReplyButtonA11y:(H=this.toolbarSharedData)==null?void 0:H.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var c,f,d;if(((c=this.toolbarState)==null?void 0:c.heartState)!==void 0&&((f=this.toolbarState)==null?void 0:f.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((d=this.toolbarState)==null?void 0:d.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var q,Z,M,g,O,l,m,H,A,Y,t,E,J,X;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(q=this.toolbarData)==null?void 0:q.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Z=this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.b((l=this.toolbarSurface)==null?void 0:l.heartCommand,
_.Wh),unheartEndpoint:this.isVisiblyDisabled?void 0:_.b((m=this.toolbarSurface)==null?void 0:m.unheartCommand,_.Wh),disabledEndpoint:this.isVisiblyDisabled?_.b((H=this.toolbarSurface)==null?void 0:H.commentDisabledActionCommand,_.Wh):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(A=this.toolbarData)==null?void 0:A.heartActiveTooltip,unheartedTooltip:(Y=this.toolbarData)==null?void 0:Y.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((t=
this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(E=this.toolbarSharedData)==null?void 0:E.unheartButtonA11y:(J=this.toolbarSharedData)==null?void 0:J.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(X=this.toolbarSharedData)==null?void 0:X.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.toolbarSurface)==null||!c.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(c=this.commentStrings)==null?void 0:c.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.b((f=this.toolbarSurface)==null?void 0:f.replyCommand,_.Wh),command:this.isVisiblyDisabled?_.b((d=this.toolbarSurface)==null?
void 0:d.commentDisabledActionCommand,_.Wh):this.isSubsOnlyCommentsIneligibleUser?_.b((q=this.toolbarSurface)==null?void 0:q.subscribersOnlySnackbarCommand,_.Wh):void 0}}}});
tU.prototype.onYtServiceRequestSent=tU.prototype.onYtServiceRequestSent;tU.prototype.hideReplyDialogDiv=tU.prototype.hideReplyDialogDiv;_.y([_.L(),_.D("design:type",Object)],tU.prototype,"commentStrings",void 0);_.y([_.L(),_.D("design:type",Boolean)],tU.prototype,"isReply",void 0);_.y([_.L(),_.D("design:type",Object)],tU.prototype,"toolbarData",void 0);_.y([_.L(),_.D("design:type",Object)],tU.prototype,"toolbarSharedData",void 0);
_.y([_.L(),_.D("design:type",String)],tU.prototype,"toolbarStateKey",void 0);_.y([_.L(),_.D("design:type",String)],tU.prototype,"toolbarSurfaceKey",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],tU.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],tU.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.fg),_.D("design:type",Object)],tU.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.AY("#reply-dialog"),_.D("design:type",HTMLElement)],tU.prototype,"replyDialogDiv",void 0);_.y([_.AY("#replybox"),_.D("design:type",Object)],tU.prototype,"replyBox",void 0);_.y([_.AY("ytd-creator-heart-renderer"),_.D("design:type",Object)],tU.prototype,"heartButton",void 0);_.y([_.L({selector:function(c,f){return _.Bb(c.entities,"engagementToolbarStateEntityPayload",f)},
selectorArgs:["toolbarStateKey"]}),_.D("design:type",Object)],tU.prototype,"toolbarState",void 0);_.y([_.L({selector:We4,selectorArgs:["toolbarSurfaceKey"]}),_.D("design:type",Object)],tU.prototype,"toolbarSurface",void 0);_.y([_.L(),_.D("design:type",Object)],tU.prototype,"buttonOverrides",void 0);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tU.prototype,"hideReplyDialogDiv",null);
_.y([_.S("toolbarData","toolbarState"),_.D("design:type",String),_.D("design:paramtypes",[])],tU.prototype,"likeCount",null);_.y([_.S("likeCount"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tU.prototype,"showLikeCount",null);_.y([_.S("toolbarSurface"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tU.prototype,"isVisiblyDisabled",null);_.y([_.S("toolbarSurface"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tU.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.y([_.S("toolbarSurface"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tU.prototype,"isSubsOnlyCommentsEligibleUser",null);_.y([_.S("toolbarSurface"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tU.prototype,"hasPrepareAccountCommand",null);_.y([_.S("toolbarData","toolbarState","toolbarSurface"),_.D("design:type",Object),_.D("design:paramtypes",[])],tU.prototype,"likeToggleButtonRenderer",null);
_.y([_.S("isReply","toolbarData","toolbarState","toolbarSurface"),_.D("design:type",Object),_.D("design:paramtypes",[])],tU.prototype,"dislikeToggleButtonRenderer",null);_.y([_.S("toolbarData","toolbarState","toolbarSurface"),_.D("design:type",Object),_.D("design:paramtypes",[])],tU.prototype,"creatorHeartSupportedRenderer",null);_.y([_.S("toolbarSurface"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tU.prototype,"hasReplyCommand",null);
_.y([_.S("toolbarSurface","commentStrings","isVisiblyDisabled"),_.D("design:type",Object),_.D("design:paramtypes",[])],tU.prototype,"replyButtonRenderer",null);_.y([_.L(),_.D("design:type",Object)],tU.prototype,"replyButtonOverrides",void 0);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],tU.prototype,"onYtServiceRequestSent",null);_.y([_.v({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],tU);
_.h(tU,"ytd-comment-engagement-bar",function(){if(jjr!==void 0)return jjr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return jjr=c},{mode:1});var qn3;var b1=function(){return _.z.apply(this,arguments)||this};
_.K(b1,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],b1.prototype,"data",void 0);_.y([_.v({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],b1);
_.h(b1,"ytd-comment-inline-thumbnail-renderer",function(){if(qn3!==void 0)return qn3;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return qn3=c},{mode:1});var ZRr;var K2=function(){return _.z.apply(this,arguments)||this};
_.K(K2,_.z);K2.prototype.onMessageTap=function(){if(this.onTapCommand){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);c&&this.ytdOpenPopupBehavior.openPopup(c)}};
_.ci.Object.defineProperties(K2.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return(c=this.data)==null?void 0:(f=c.button)==null?void 0:(d=f.buttonRenderer)==null?void 0:d.command}}});
_.y([_.Q(_.fg),_.D("design:type",Object)],K2.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],K2.prototype,"data",void 0);_.y([_.S("data.button.buttonRenderer.command"),_.D("design:type",Object),_.D("design:paramtypes",[])],K2.prototype,"onTapCommand",null);_.y([_.v({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],K2);
_.h(K2,"ytd-comment-pause-composer-renderer",function(){if(ZRr!==void 0)return ZRr;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ZRr=c},{mode:1});var MiH;var r1o;var EI=function(){var c=_.z.apply(this,arguments)||this;c.isOpen=!1;return c};
_.K(EI,_.z);_.r=EI.prototype;_.r.dataChanged=function(){this.isOpen=!1};
_.r.onTap=function(){this.data&&(this.data.navigationEndpoint?_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.r.focus=function(){this.JSC$15729_commentbox.focus()};
_.r.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.r.openDialog=function(){this.isOpen=!0;this.JSC$15729_commentbox.focus();this.JSC$15729_commentbox.maybeHeightChanged()};
EI.prototype.onYtCommentboxDismiss=EI.prototype.onYtCommentboxDismiss;EI.prototype.dataChanged=EI.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],EI.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],EI.prototype,"isOpen",void 0);_.y([_.AY("#commentbox"),_.D("design:type",Object)],EI.prototype,"JSC$15729_commentbox",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],EI.prototype,"dataChanged",null);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],EI.prototype,"onYtCommentboxDismiss",null);_.y([_.v({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],EI);
_.h(EI,"ytd-comment-reply-dialog-renderer",function(){if(r1o!==void 0)return r1o;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return r1o=c},{mode:1});var COF;var n2=function(){return _.z.apply(this,arguments)||this};
_.K(n2,_.z);_.ci.Object.defineProperties(n2.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.data)==null?void 0:(f=c.icon)==null?void 0:f.iconType;return d?"yt-icons:"+d.toLowerCase():null}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],n2.prototype,"data",void 0);_.y([_.L(),_.S("data.icon"),_.D("design:type",Object),_.D("design:paramtypes",[])],n2.prototype,"icon",null);_.y([_.v({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],n2);
_.h(n2,"ytd-pinned-comment-badge-renderer",function(){if(COF!==void 0)return COF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return COF=c},{mode:1});var gTK;var kq_={},ORu={input:!0,meta:!0,br:!0,link:!0,img:!0},$I=null;kq_.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(){$I==null&&($I=document.createElement("tp-yt-paper-tooltip"),$I.offset=8,$I.fitToVisibleBounds=!0)},
onMouseOver_:function(c){if(c=_.vv(c.target,function(Z){return Z==this||Z.getAttribute&&Z.getAttribute("shared-tooltip-text")}.bind(this),!0)){var f=c.getAttribute("shared-tooltip-text");
if(f){var d=this,q=null;c!=this&&(c.tagName.toLowerCase()in ORu?d=c.parentElement:d=c,c.id&&(q=c.id));this.polymerController.createTooltipIfRequired_();if($I.parentElement!=d||$I.for!=q)(0,_.Ok)($I).textContent=f,_.r1(d).appendChild($I),$I.for=q,$I.animationDelay=this.polymerController.sharedTooltipAnimationDelay,$I.position=this.polymerController.sharedTooltipPosition}}}};var QC=function(){return _.z.apply(this,arguments)||this};
_.K(QC,_.z);QC.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]]"}}}}}};
QC.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
QC.prototype.colorChanged=function(){var c,f,d,q=(c=this.data)==null?void 0:(f=c.color)==null?void 0:(d=f.basicColorPaletteData)==null?void 0:d.foregroundBodyColor;q&&(this.rgbBadgeColor=_.ya(q));_.r1(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
QC.prototype.tooltipChanged=function(){var c;((c=this.data)==null?0:c.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
QC.prototype.tooltipChanged=QC.prototype.tooltipChanged;QC.prototype.colorChanged=QC.prototype.colorChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(kq_.YtSharedTooltipBehavior),_.D("design:type",Object)],QC.prototype,"ytSharedTooltipBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],QC.prototype,"data",void 0);
_.y([_.L({value:"#4285F4"}),_.D("design:type",String)],QC.prototype,"rgbBadgeColor",void 0);_.y([_.m5("data.color"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],QC.prototype,"colorChanged",null);_.y([_.m5("data.tooltip"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],QC.prototype,"tooltipChanged",null);_.y([_.v({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],QC);
_.h(QC,"ytd-sponsor-comment-badge-renderer",function(){if(gTK!==void 0)return gTK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return gTK=c},{mode:1});var lPK;var sjT;var Sr=function(){return _.z.apply(this,arguments)||this};
_.K(Sr,_.z);Sr.prototype.computeState=function(c){switch(c==null?void 0:c.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"}};
Sr.prototype.updateStateIdentifier=function(c){if(this.viewModel.triStateKey){var f=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.uh("triStateButtonStateEntityPayload",f,{key:f,stateIdentifier:c}))}};
Sr.prototype.onClick=function(){var c=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(){c.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){c.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.ci.Object.defineProperties(Sr.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 c;return((c=this.data)==null?void 0:c.buttonText)||""}}});
_.y([_.L(),_.D("design:type",Object)],Sr.prototype,"viewModel",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Sr.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Sr.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.y([_.L({selector:DpY,selectorArgs:["viewModel.triStateKey"]}),_.D("design:type",Object)],Sr.prototype,"triStateButtonStateEntity",void 0);
_.y([_.L({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.D("design:type",String)],Sr.prototype,"state",void 0);_.y([_.S("viewModel","state"),_.D("design:type",Object),_.D("design:paramtypes",[])],Sr.prototype,"data",null);_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],Sr.prototype,"buttonText",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Sr);
_.h(Sr,"ytd-tri-state-button-view-model",function(){if(sjT!==void 0)return sjT;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return sjT=c},{mode:1});var BLH;var iRH;var L2=function(){var c=_.z.apply(this,arguments)||this;c.defaultIconToFilled=!_.F("kevlar_fill_comment_chip_icon_killswitch");return c};
_.K(L2,_.z);L2.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
L2.prototype.dataChanged=function(){if(this.data){var c,f;((c=this.data.chipColorPalette)==null?0:c.backgroundColor)&&((f=this.data.chipColorPalette)==null?0:f.foregroundTitleColor)&&_.la(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.WS(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.WS(this.data.chipColorPalette.foregroundTitleColor)});var d;((d=this.data)==null?0:d.command)?(_.la(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.la(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}};
L2.prototype.onTap=function(){var c;if(this.data&&(c=this.data)!=null&&c.command){var f;this.ytComponentBehavior.resolveCommand((f=this.data)==null?void 0:f.command)}};
L2.prototype.getIconSize=function(){return _.F("kevlar_fill_comment_chip_icon_killswitch")?24:12};
L2.prototype.onTap=L2.prototype.onTap;L2.prototype.dataChanged=L2.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],L2.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Kn),_.D("design:type",Object)],L2.prototype,"ironA11yKeysBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],L2.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],L2.prototype,"basePriceText",void 0);_.y([_.L(),_.D("design:type",Object)],L2.prototype,"chipIcon",void 0);_.y([_.L(),_.D("design:type",Object)],L2.prototype,"defaultIconToFilled",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],L2.prototype,"dataChanged",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],L2.prototype,"onTap",null);
_.y([_.vj({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],L2);
_.h(L2,"yt-pdg-comment-chip-renderer",function(){if(iRH===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;BLH===void 0&&(BLH=document.createElement("template"));var q=BLH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);iRH=c}c=iRH;return c},{mode:2});var zF=function(){var c=_.z.apply(this,arguments)||this;c.useSmallAvatars=_.F("small_avatars_for_comments");c.webWatchCompactComments=_.F("web_watch_compact_comments");c.editDialog=null;return c};
_.K(zF,_.z);_.r=zF.prototype;_.r.onShow=function(){_.Xt("cmv",void 0,"wn_comments")};
_.r.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"}}}};
_.r.detached=function(){this.editDialog=null;this.expander.reset()};
_.r.updateBackgroundColor=function(){if(this.backgroundColor){var c={"--ytd-comment-paid-background-color":_.WS(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.la(this.hostElement,c)}else _.la(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.r.resetExpander=function(){var c;(c=this.expander)==null||c.reset()};
_.r.openEditDialog=function(c){c.dialog&&(this.editDialog=c.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.r.onYtNavigate=function(c){var f=c.detail.endpoint;if(f=_.b(f,_.SUK)||_.b(f,_.L3r))c.stopPropagation(),this.openEditDialog(f)};
_.r.onYtCommentboxDismiss=function(){this.editDialog=null;_.la(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.r.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}})};
_.r.onYtCommentboxResize=function(c){var f;(c==null?0:(f=c.detail)==null?0:f.height)&&_.la(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":c.detail.height+"px"})};
_.ci.Object.defineProperties(zF.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 c,f=(c=this.commentEntity)==null?void 0:c.author;return f&&(f.isCreator||f.isVerified||f.isArtist)?{renderer:{authorEndpoint:f.channelPageEndpoint?_.b(f.channelPageEndpoint,_.Wh):_.b(f.channelCommand,_.Wh),authorText:{runs:[{text:f.displayName}]},color:f.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:f.isArtist?{iconType:"AUDIO_BADGE"}:
f.isVerified?{iconType:f.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:f.isArtist||f.isVerified?f.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var c,f=(c=this.commentEntity)==null?void 0:c.author;return f!=null&&f.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:f.sponsorBadgeUrl}]},tooltip:f.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var c;return _.b((c=this.commentSurfaceEntity)==null?void 0:c.pdgCommentChip,_.ZzH)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var c;return this.voiceReplyContainerViewModel&&((c=this.voiceReplyContainerViewModel)==null?void 0:c.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var c;return _.b((c=this.commentSurfaceEntity)==null?void 0:c.voiceReplyContainerViewModel,u9u)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var c;return this.voiceReplyContainerViewModel&&(c=this.voiceReplyContainerViewModel)!=null&&c.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=(c=this.commentSurfaceEntity)==null?void 0:c.commentBackgroundColor)!=null?f:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.F("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var c,f;return(((c=this.commentEntity)==null?void 0:(f=c.properties)==null?void 0:f.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var c,f;if(_.F("enable_profile_cards_on_comments")&&((c=this.commentEntity)==null?0:(f=c.author)==null?0:f.profileCardEndpoint)&&this.viewModel.allowProfileCard){var d,q;return _.b((d=this.commentEntity)==null?void 0:(q=d.author)==null?void 0:q.profileCardEndpoint,_.Wh)}var Z,M;return _.b((Z=this.commentEntity)==null?void 0:(M=Z.avatar)==null?void 0:M.endpoint,_.Wh)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var c,f;if(_.F("enable_profile_cards_on_comments")&&((c=this.commentEntity)==null?0:(f=c.author)==null?0:f.channelPageEndpoint)){var d,q;return _.b((d=this.commentEntity)==null?void 0:(q=d.author)==null?void 0:q.channelPageEndpoint,_.Wh)}var Z,M;return _.b((Z=this.commentEntity)==null?void 0:(M=Z.avatar)==null?void 0:M.endpoint,_.Wh)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q,Z=(c=this.commentEntity)==null?void 0:(f=c.avatar)==null?void 0:(d=f.image)==null?void 0:(q=d.sources)==null?void 0:q[0];return Z?{thumbnails:[{url:Z.url,width:Z.width,height:Z.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.commentEntity)==null?0:(f=c.author)==null?0:f.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.commentEntity)==null?void 0:(f=c.author)==null?void 0:f.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.commentEntity)==null?void 0:(f=c.properties)==null?void 0:f.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var c;return _.b((c=this.commentSurfaceEntity)==null?void 0:c.publishedTimeCommand,_.Wh)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var c,f;if(((c=this.commentEntity)==null?0:c.translatedContent)&&((f=this.translateButtonState)==null?void 0:f.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var d;if((d=this.voiceReplyContainerViewModel)==null?0:d.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var q,Z;return((q=this.commentEntity)==null?void 0:(Z=q.properties)==null?void 0:Z.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.commentSharedEntity)==null?void 0:(f=c.strings)==null?void 0:f.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.commentSharedEntity)==null?void 0:(f=c.strings)==null?void 0:f.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.commentEntity)==null||!c.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var c,f,d=(f=_.b((c=this.viewModel)==null?void 0:c.translateButton,X2o))!=null?f:{},q,Z,M,g,O,l,m,H,A,Y,t;return Object.assign({},d,{untoggledStateData:Object.assign({},d.untoggledStateData,{buttonText:(q=this.commentEntity)==null?void 0:(Z=q.translateData)==null?void 0:Z.text}),togglingStateData:Object.assign({},d.togglingStateData,{buttonText:(M=this.commentSharedEntity)==null?
void 0:(g=M.strings)==null?void 0:g.translatingText}),toggledStateData:Object.assign({},d.toggledStateData,{buttonText:(O=this.commentSharedEntity)==null?void 0:(l=O.strings)==null?void 0:l.seeOriginalText}),transitionCommand:((m=this.commentEntity)==null?0:m.translatedContent)?void 0:_.b((H=this.commentEntity)==null?void 0:(A=H.translateData)==null?void 0:A.translateComment,_.Wh),triStateKey:(Y=this.commentEntity)==null?void 0:(t=Y.properties)==null?void 0:t.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((f=_.b(_.b((c=this.toolbarSurface)==null?void 0:c.menuCommand,_.Wh),ziK))==null?void 0:(d=f.menu)==null?void 0:d.menuRenderer)||null}}});
zF.prototype.onYtCommentboxResize=zF.prototype.onYtCommentboxResize;zF.prototype.onYtCommentboxDismiss=zF.prototype.onYtCommentboxDismiss;zF.prototype.onYtNavigate=zF.prototype.onYtNavigate;zF.prototype.resetExpander=zF.prototype.resetExpander;zF.prototype.updateBackgroundColor=zF.prototype.updateBackgroundColor;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],zF.prototype,"ytdReduxBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],zF.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("#author-thumbnail > button"),_.D("design:type",HTMLElement)],zF.prototype,"authorThumbnailAnchor",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("viewModel"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],zF.prototype,"linked",null);
_.y([_.S("viewModel","linked"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"linkedCommentBadge",null);_.y([_.L({reflectToAttribute:!0}),_.S("viewModel"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],zF.prototype,"pinned",null);_.y([_.S("viewModel","pinned"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"pinnedCommentBadge",null);
_.y([_.S("commentEntity","commentSharedEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"authorCommentBadge",null);_.y([_.L({reflectToAttribute:!0}),_.S("authorCommentBadge"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"hasAuthorBadge",null);_.y([_.S("commentEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"sponsorCommentBadge",null);
_.y([_.L({reflectToAttribute:!0}),_.S("sponsorCommentBadge"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"hasSponsorBadge",null);_.y([_.S("commentSurfaceEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"pdgCommentChipRenderer",null);_.y([_.L({reflectToAttribute:!0}),_.S("voiceReplyContainerViewModel"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"hasVoiceReply",null);
_.y([_.S("commentSurfaceEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"voiceReplyContainerViewModel",null);_.y([_.S("voiceReplyContainerViewModel"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"voiceReplyUnavailableText",null);_.y([_.L(),_.D("design:type",Object)],zF.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"viewModel",null);
_.y([_.L({selector:function(c,f){return _.Bb(c.entities,"commentSharedEntityPayload",f)},
selectorArgs:["viewModel.sharedKey"]}),_.D("design:type",Object)],zF.prototype,"commentSharedEntity",void 0);_.y([_.L({selector:function(c,f){return _.Bb(c.entities,"commentEntityPayload",f)},
selectorArgs:["viewModel.commentKey"]}),_.D("design:type",Object)],zF.prototype,"commentEntity",void 0);_.y([_.L({selector:function(c,f){return _.Bb(c.entities,"commentSurfaceEntityPayload",f)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.D("design:type",Object)],zF.prototype,"commentSurfaceEntity",void 0);_.y([_.L({selector:We4,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.D("design:type",Object)],zF.prototype,"toolbarSurface",void 0);_.y([_.L({selector:DpY,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.D("design:type",Object)],zF.prototype,"translateButtonState",void 0);
_.y([_.S("commentSurfaceEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"backgroundColor",null);_.y([_.L({reflectToAttribute:!0}),_.S("viewModel"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],zF.prototype,"optimalReadingWidthComments",null);_.y([_.AY("ytd-expander"),_.D("design:type",Object)],zF.prototype,"expander",void 0);
_.y([_.m5("backgroundColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zF.prototype,"updateBackgroundColor",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zF.prototype,"useSmallAvatars",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zF.prototype,"webWatchCompactComments",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("commentEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"isReply",null);
_.y([_.S("commentEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"authorThumbnailEndpoint",null);_.y([_.S("commentEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"authorNameEndpoint",null);_.y([_.S("commentEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"authorThumbnail",null);_.y([_.S("commentEntity"),_.D("design:type",String),_.D("design:paramtypes",[])],zF.prototype,"authorTextClass",null);
_.y([_.S("commentEntity"),_.D("design:type",String),_.D("design:paramtypes",[])],zF.prototype,"authorChannelName",null);_.y([_.S("commentEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"publishedTime",null);_.y([_.S("commentSurfaceEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"publishedTimeCommand",null);
_.y([_.S("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"contentText",null);_.y([_.m5("contentText"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zF.prototype,"resetExpander",null);_.y([_.S("commentEntity"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],zF.prototype,"shouldShowReadMoreInitially",null);
_.y([_.S("commentSharedEntity"),_.D("design:type",String),_.D("design:paramtypes",[])],zF.prototype,"expandText",null);_.y([_.S("commentSharedEntity"),_.D("design:type",String),_.D("design:paramtypes",[])],zF.prototype,"collapseText",null);_.y([_.S("commentEntity"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],zF.prototype,"shouldShowTranslateButton",null);
_.y([_.S("commentEntity","commentSharedEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"translateButton",null);_.y([_.S("toolbarSurface"),_.D("design:type",Object),_.D("design:paramtypes",[])],zF.prototype,"overflowMenuRenderer",null);_.y([_.L(),_.D("design:type",Object)],zF.prototype,"editDialog",void 0);_.y([_.AY("ytd-comment-dialog-renderer"),_.D("design:type",Object)],zF.prototype,"editCommentDialogContainer",void 0);
_.y([_.AY("ytd-comment-reply-dialog-renderer"),_.D("design:type",Object)],zF.prototype,"editReplyDialogContainer",void 0);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],zF.prototype,"onYtNavigate",null);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],zF.prototype,"onYtCommentboxDismiss",null);
_.y([_.Ta("yt-commentbox-resize"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],zF.prototype,"onYtCommentboxResize",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-comment-view-model"})],zF);
_.h(zF,"ytd-comment-view-model",function(){if(lPK!==void 0)return lPK;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return lPK=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var JU=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_modern_buttons");c.commentThreadingEnabled=_.F("web_delhi_comment_threads");c.isWatchGrid=_.F("kevlar_watch_grid");c.buttonOverrides=c.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};c.JSC$15775_spinnerEl=null;return c};
_.K(JU,_.z);_.r=JU.prototype;_.r.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"}};
_.r.shouldShowExpandedThreads=function(c,f){return this.commentThreadingEnabled&&!f&&(c==null?void 0:c.length)>0};
_.r.shouldShowCollapsedThreads=function(c,f){return this.commentThreadingEnabled&&f&&c};
_.r.computeThreadRenderer=function(c){return _.b(c,Qpu)};
_.r.computeIsContinuationItem=function(c){return!!this.computeContinuationItemRenderer(c)};
_.r.computeButtonRenderer=function(c){return _.b(c,_.WQ)};
_.r.computeContinuationItemRenderer=function(c){return _.b(c,_.jJ)};
_.r.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]]"}}}}}};
_.r.attached=function(){this.isShowRepliesVisible=!0};
_.r.dataChanged=function(){var c=this.expanderContents;c&&(c.hidden=!0);this.isLoading=!1};
_.r.endsInContinuation=function(c){return!!c&&c.length>0&&!!this.computeContinuationItemRenderer(c[c.length-1])};
_.r.computeShouldShowHideRepliesButton=function(c,f){return!c&&f};
_.r.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.r.isLoadingChanged=function(){this.isLoading&&!this.JSC$15775_spinnerEl&&(this.JSC$15775_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.r1(this.expanderContents).appendChild(this.JSC$15775_spinnerEl));this.JSC$15775_spinnerEl&&(this.JSC$15775_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var c;(c=this.contents)==null||c.classList.remove("reloading")}};
_.r.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var c=_.b(this.data.viewReplies,_.WQ);c&&this.ytRendererBehavior.logExplicitClick(c);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.r.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var c=_.b(this.data.hideReplies,_.WQ);c&&this.ytRendererBehavior.logExplicitClick(c);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.r.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var c=_.r1(this.hostElement).querySelector("#expander-contents");c&&(c.hidden=this.isShowRepliesVisible)}};
_.r.computeAlign=function(){if(this.modern){var c;return!((c=this.data)==null?0:c.viewRepliesCreatorThumbnail)}};
_.ci.Object.defineProperties(JU.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var c,f;return this.endsInContinuation((c=this.data)==null?void 0:c.contents)||this.commentThreadingEnabled&&this.endsInContinuation((f=this.data)==null?void 0:f.subThreads)}}});
JU.prototype.isShowMoreChanged=JU.prototype.isShowMoreChanged;JU.prototype.isLoadingChanged=JU.prototype.isLoadingChanged;JU.prototype.triggerFirstContinuation=JU.prototype.triggerFirstContinuation;JU.prototype.dataChanged=JU.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.PX),_.D("design:type",Object)],JU.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],JU.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JU.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JU.prototype,"commentThreadingEnabled",void 0);_.y([_.L(),_.D("design:type",Boolean)],JU.prototype,"collapsed",void 0);
_.y([_.L(),_.D("design:type",Function)],JU.prototype,"toggleCollapsed",void 0);_.y([_.L(),_.D("design:type",Boolean)],JU.prototype,"isLoading",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],JU.prototype,"isShowRepliesVisible",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],JU.prototype,"useNewFormatting",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JU.prototype,"isWatchGrid",void 0);_.y([_.L(),_.D("design:type",Object)],JU.prototype,"buttonOverrides",void 0);
_.y([_.AY("#expander-contents"),_.D("design:type",HTMLElement)],JU.prototype,"expanderContents",void 0);_.y([_.AY("ytd-continuation-item-renderer"),_.D("design:type",Object)],JU.prototype,"continuationItemRenderer",void 0);_.y([_.AY("#contents"),_.D("design:type",HTMLElement)],JU.prototype,"contents",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JU.prototype,"dataChanged",null);
_.y([_.S("data.contents","data.subThreads.*"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],JU.prototype,"hasContinuation",null);_.y([_.Ta("yt-expander-more-tapped"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JU.prototype,"triggerFirstContinuation",null);_.y([_.m5("isLoading"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JU.prototype,"isLoadingChanged",null);
_.y([_.m5("isShowRepliesVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JU.prototype,"isShowMoreChanged",null);_.y([_.v({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],JU);
_.h(JU,"ytd-comment-replies-renderer",function(){if(MiH!==void 0)return MiH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return MiH=c},{mode:1});var TL3;var a2=function(){var c=_.z.apply(this,arguments)||this;c.isOpen=!1;c.commentDialog=null;c.useSmallAvatars=_.F("small_avatars_for_comments");c.useSmallAvatarsEngagementPanelOnly=_.F("small_avatars_for_comments_ep");c.placeholderFocusListener=null;c.hasOpenedDialog=!1;c.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return c};
_.K(a2,_.z);_.r=a2.prototype;_.r.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]]"}}}}}};
_.r.ready=function(){var c=this,f=_.r1(this.hostElement).querySelector("#placeholder-area"),d=_.r1(this.hostElement).querySelector("#simplebox-placeholder"),q=function(Z){Z.stopPropagation();Z instanceof KeyboardEvent&&Z.type==="keypress"&&Z.keyCode!==13&&Z.keyCode!==32||c.openDialog()};
this.placeholderFocusListener=q;d.addEventListener("focus",this.placeholderFocusListener);f.addEventListener("tap",q);f.addEventListener("keypress",q)};
_.r.maybeRemoveFocusEventListener=function(){var c;(c=this.data)!=null&&c.prepareAccountEndpoint&&!_.F("web_comments_simplebox_modal_focus_on_tap_ks")&&(c=_.r1(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(c.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.r.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.r.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.F("web_comment_simplebox_resolve_polymer_command_ks")?_.Hh.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Ae(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);c&&this.ytdOpenPopupBehavior.openPopup(c);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.r1(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.r.onYtCommentboxDismiss=function(c){c.stopPropagation();this.isOpen=!1};
_.r.onCreateCommentAction=function(c){this.get("createCommentAction.contents",c)&&(this.isOpen=!1)};
_.r.computeCommentDialog=function(c){return{placeholderText:c.placeholderText,authorThumbnail:c.authorThumbnail,submitButton:c.submitButton,imageButton:c.imageButton,cancelButton:c.cancelButton,emojiButton:c.emojiButton,emojis:c.emojis,emojiPicker:c.emojiPicker,aadcGuidelinesStateEntityKey:c.aadcGuidelinesStateEntityKey,openAadcDialog:c.openAadcDialog,unicodeEmojisUrl:c.unicodeEmojisUrl}};
_.r.onHideIdentityChip=function(c){_.b(c,tW3)&&this.set("data.placeholderText",_.b(c,tW3).placeholderText)};
a2.prototype.onYtCommentboxDismiss=a2.prototype.onYtCommentboxDismiss;a2.prototype.dataChanged=a2.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],a2.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],a2.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],a2.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],a2.prototype,"isOpen",void 0);_.y([_.L(),_.D("design:type",Object)],a2.prototype,"commentDialog",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],a2.prototype,"engagementPanel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],a2.prototype,"useSmallAvatars",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],a2.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],a2.prototype,"enableCreationBox",void 0);_.y([_.L(),_.D("design:type",Boolean)],a2.prototype,"showCreateDialog",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],a2.prototype,"dataChanged",null);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],a2.prototype,"onYtCommentboxDismiss",null);_.y([_.v({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],a2);
_.h(a2,"ytd-comment-simplebox-renderer",function(){if(TL3!==void 0)return TL3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return TL3=c},{mode:1});var mco;_.w_("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var VC=function(){var c=_.z.apply(this,arguments)||this;c.addHoverEffect=_.F("swatcheroo_comments_hover_effect");c.useSmallAvatars=_.F("small_avatars_for_comments");c.threadHovered=!1;c.collapsed=!1;c.toggleCollapsed=function(){c.collapsed=!c.collapsed;c.collapsed&&_.F("web_comment_threading_scroll_on_collapse")&&_.gS(c.hostElement,"yt-scroll-to-watch-element",[c.commentElement])};
return c};
_.K(VC,_.z);VC.prototype.onTap=function(c){if(this.addHoverEffect&&!this.engagementPanel&&!_.qY(_.x0(c)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var f;((f=window.getSelection())==null?0:f.toString().length)||_.Ae({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
VC.prototype.attached=function(){var c=this,f;(f=this.commentThreadHitbox)==null||f.addEventListener("mouseover",function(){c.threadHovered=!0});
var d;(d=this.commentThreadHitbox)==null||d.addEventListener("mouseout",function(){c.threadHovered=!1});
var q;(q=this.commentThreadHitbox)==null||q.addEventListener("click",function(){c.maybeToggleCollapsed()})};
VC.prototype.maybeToggleCollapsed=function(){var c,f,d,q=(c=this.data)==null?void 0:(f=c.replies)==null?void 0:(d=f.commentRepliesRenderer)==null?void 0:d.subThreads;q&&(q.length===1&&_.b(q[0],_.jJ)||this.toggleCollapsed())};
_.ci.Object.defineProperties(VC.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)!=null&&c.commentViewModel)return _.b(this.data.commentViewModel,VWr)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return _.F("web_delhi_comment_threads")&&!!((c=this.data)==null?0:(f=c.replies)==null?0:(d=f.commentRepliesRenderer)==null?0:d.subThreads)}}});
VC.prototype.onTap=VC.prototype.onTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],VC.prototype,"addHoverEffect",void 0);_.y([_.L(),_.D("design:type",Object)],VC.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],VC.prototype,"useSmallAvatars",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],VC.prototype,"isSubThread",void 0);_.y([_.AY(".thread-hitbox"),_.D("design:type",HTMLElement)],VC.prototype,"commentThreadHitbox",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],VC.prototype,"threadHovered",void 0);_.y([_.AY("#comment"),_.D("design:type",HTMLElement)],VC.prototype,"commentElement",void 0);
_.y([_.L(),_.D("design:type",Object)],VC.prototype,"collapsed",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],VC.prototype,"commentViewModel",null);_.y([_.S("data.replies"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],VC.prototype,"hasSubThreading",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],VC.prototype,"engagementPanel",void 0);
_.y([_.Ta("tap"),_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],VC.prototype,"onTap",null);_.y([_.v({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],VC);
_.h(VC,"ytd-comment-thread-renderer",function(){if(mco!==void 0)return mco;var c=document.createElement("template");_.n(c,'\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  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return mco=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var HRo;var Xc=function(){var c=_.z.apply(this,arguments)||this;c.modernTypography=_.F("web_modern_typography");c.compactHeader=_.F("web_watch_compact_comments_header");c.hidePanelButton=!1;c.isPostSchedulingEnabled=_.F("enable_post_scheduling");c.hasFinishedStamping=!1;c.JSC$15793_handleOpenPostCommentDialogActionAfterStamp=!1;c.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return c};
_.K(Xc,_.z);_.r=Xc.prototype;
_.r.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"}}}};
_.r.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.r.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15793_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.r.onYtServiceRequestSent=function(c,f){if(!_.F("kevlar_command_handler")&&f.actions)for(c=0;c<f.actions.length;c++){var d=f.actions[c];_.b(d,IDy)&&_.r1(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.b(d,IDy))}};
_.r.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var c;if(this.getPrefilledBackstagePostDialog((c=this.data)==null?void 0:c.actions)){_.r1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var f=_.r1(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;f&&_.ol(this,function(){f.focus();f.openDialog&&f.openDialog()})}}else this.hasActionsChange=!0};
_.r.computeIsBackstage=function(c){return c};
_.r.onYtCommentboxDismiss=function(){_.r1(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.r.removePrefilledDialog=function(c){if(c==null?0:c.actions){for(var f=c.actions.length-1;f>=0;f--){var d=void 0;((d=_.b(c.actions[f],$Aj))==null?0:d.dialog)&&delete c.actions[f]}this.set("data",void 0);this.set("data",c)}};
_.r.getPrefilledBackstagePostDialog=function(c){if(c)for(var f=0;f<c.length;f++){var d=c[f],q=void 0;if((q=_.b(d,$Aj))==null?0:q.dialog)return _.b(d,$Aj).dialog}return null};
_.r.computeBackstagePostDialog=function(c){return c&&(this.getPrefilledBackstagePostDialog(c.actions)||c.createRenderer)};
_.r.dataChanged=function(){if(this.data){var c=this.data.customEmojis,f=this.data.unicodeEmojisUrl;_.Nj.clear();f&&_.tNF(_.Nj,f);c&&_.Nj.load(c)}};
_.r.handleSignalActionOpenPostCommentDialogAction=function(){var c=_.r1(this.hostElement).querySelector("ytd-comment-simplebox-renderer");c?c.openDialog():this.JSC$15793_handleOpenPostCommentDialogActionAfterStamp=!0};
_.ci.Object.defineProperties(Xc.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.F("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q,Z,M,g;return!this.hidePanelButton&&_.F("kevlar_watch_comments_panel_button")&&((g=_.b((c=this.data)==null?void 0:(f=c.sortMenu)==null?void 0:(d=f.sortFilterSubMenuRenderer)==null?void 0:(q=d.subMenuItems)==null?void 0:(Z=q[0])==null?void 0:(M=Z.serviceEndpoint)==null?void 0:M.commandMetadata,_.jO))==null?void 0:g.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.HO("MINIPLAYER_EXPAND_LABEL"),text:_.pC(_.HO("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Xc.prototype.dataChanged=Xc.prototype.dataChanged;Xc.prototype.onYtCommentboxDismiss=Xc.prototype.onYtCommentboxDismiss;Xc.prototype.observePrefilledBackstagePostDialog=Xc.prototype.observePrefilledBackstagePostDialog;Xc.prototype.onYtServiceRequestSent=Xc.prototype.onYtServiceRequestSent;Xc.prototype.onStampFinished=Xc.prototype.onStampFinished;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Xc.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Xc.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Xc.prototype,"modernTypography",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Xc.prototype,"compactHeader",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Xc.prototype,"engagementPanel",void 0);_.y([_.L(),_.D("design:type",Object)],Xc.prototype,"hidePanelButton",void 0);_.y([_.L({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Xc.prototype,"isBackstage",void 0);_.y([_.L({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.D("design:type",Object)],Xc.prototype,"backstagePostDialog",void 0);
_.y([_.L(),_.D("design:type",Object)],Xc.prototype,"isPostSchedulingEnabled",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data","showCommentsPanelButton"),_.D("design:type",Object),_.D("design:paramtypes",[])],Xc.prototype,"useSpaceBetween",null);_.y([_.L({reflectToAttribute:!0}),_.S("data","hidePanelButton"),_.D("design:type",Object),_.D("design:paramtypes",[])],Xc.prototype,"showCommentsPanelButton",null);
_.y([_.S("data","showCommentsPanelButton"),_.D("design:type",Object),_.D("design:paramtypes",[])],Xc.prototype,"commentsPanelButtonData",null);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Xc.prototype,"onStampFinished",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],Xc.prototype,"onYtServiceRequestSent",null);
_.y([_.m5("data.actions"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Xc.prototype,"observePrefilledBackstagePostDialog",null);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Xc.prototype,"onYtCommentboxDismiss",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Xc.prototype,"dataChanged",null);
_.y([_.v({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Xc);
_.h(Xc,"ytd-comments-header-renderer",function(){if(HRo!==void 0)return HRo;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return HRo=c},{mode:1});var A1O;var u1=function(){return _.z.apply(this,arguments)||this};
_.K(u1,_.z);_.y([_.L(),_.D("design:type",Object)],u1.prototype,"data",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.y([_.v({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],u1);
_.h(u1,"ytd-destination-button-renderer",function(){if(A1O!==void 0)return A1O;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return A1O=c},{mode:1});var Yn_;var ve=function(){var c=_.z.apply(this,arguments)||this;c.isRichGrid=!1;c.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};c.modernTypography=_.F("web_modern_typography");return c};
_.K(ve,_.z);_.r=ve.prototype;_.r.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.r.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.r.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.r.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var c;if((c=this.data)==null||!c.isExpanded){c=this.hostElement.clientWidth;var f;if(c&&(f=this.data)!=null&&f.destinationButtons){f=Math.floor((c+4)/214);c=this.data.destinationButtons.length;var d=Math.ceil(c/f);this.fullyVisibleRows=c%f===1&&d===2?1:Math.min(d,2);this.isShowMoreVisible=this.fullyVisibleRows<d}}}};
_.r.updateRichGridDestinationButtonsVisibility=function(){var c,f;if(this.isRichGrid&&((c=this.data)==null||!c.isExpanded)&&(f=this.data)!=null&&f.destinationButtons){c=this.richGridItemsPerRow+1;f=this.data.destinationButtons.length;var d=Math.ceil(f/c);this.fullyVisibleRows=f%c===1&&d===2?1:Math.min(d,2);this.isShowMoreVisible=this.fullyVisibleRows<d}};
_.r.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ve.prototype.updateRichGridDestinationButtonsVisibility=ve.prototype.updateRichGridDestinationButtonsVisibility;_.y([_.L(),_.D("design:type",Object)],ve.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Number)],ve.prototype,"fullyVisibleRows",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],ve.prototype,"isShowMoreVisible",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ve.prototype,"isRichGrid",void 0);
_.y([_.L({selector:_.VR,value:0}),_.D("design:type",Number)],ve.prototype,"richGridItemsPerRow",void 0);_.y([_.L(),_.D("design:type",Object)],ve.prototype,"gridStateActionMap",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ve.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],ve.prototype,"ytdReduxBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ve.prototype,"modernTypography",void 0);_.y([_.m5("data","richGridItemsPerRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ve.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.y([_.v({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],ve);
_.h(ve,"ytd-destination-shelf-renderer",function(){if(Yn_!==void 0)return Yn_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Yn_=c},{mode:1});var FX_;var hU=function(){return _.z.apply(this,arguments)||this};
_.K(hU,_.z);hU.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hU.prototype,"data",void 0);_.y([_.v({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],hU);
_.h(hU,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(FX_!==void 0)return FX_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return FX_=c},{mode:1});var tiT;var wg=function(){var c=_.z.apply(this,arguments)||this;c.disableAnimation=!1;c.isSlimlineSurvey=!1;c.isSlimlineSurveyFollowUp=!1;c.isShortsStyle=!1;return c};
_.K(wg,_.z);wg.prototype.onTap=function(c){c.preventDefault();this.data&&_.CZ(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.ci.Object.defineProperties(wg.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 c,f,d,q,Z;return((c=this.data)==null?0:c.checked)?(f=this.data)==null?void 0:(d=f.onStateIcon)==null?void 0:d.iconType:(q=this.data)==null?void 0:(Z=q.defaultStateIcon)==null?void 0:Z.iconType}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],wg.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wg.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],wg.prototype,"disableAnimation",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wg.prototype,"isSlimlineSurvey",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wg.prototype,"isSlimlineSurveyFollowUp",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wg.prototype,"isShortsStyle",void 0);_.y([_.S("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],wg.prototype,"isAnimatedIcon",null);
_.y([_.S("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.D("design:type",Number),_.D("design:paramtypes",[])],wg.prototype,"iconSize",null);_.y([_.S("isShortsStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],wg.prototype,"isDarkTheme",null);_.y([_.S("data.checked"),_.D("design:type",Object),_.D("design:paramtypes",[])],wg.prototype,"icon",null);_.y([_.v({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],wg);
_.h(wg,"ytd-rating-survey-option-renderer",function(){if(tiT!==void 0)return tiT;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return tiT=c},{mode:2});var bR3;var yC=function(){var c=_.z.apply(this,arguments)||this;c.firstResponseText=null;c.lastResponseText=null;c.selectedNonStarOption=null;c.hideOptions=!1;c.hideUndoButton=!0;c.disableAnimation=!1;c.showResponseRangeText=!1;c.selectedRatingIndex=-1;c.isSlimlineSurvey=!1;c.isSlimlineSurveyFollowUp=!1;c.isShortsStyle=!1;c.slimlineSurveyRatingSelectedIndex=-1;return c};
_.K(yC,_.z);_.r=yC.prototype;_.r.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.r.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.r.onOptionChange=function(c,f){var d=this;c=f.onStateIcon&&f.defaultStateIcon&&f.onStateIcon.iconType===f.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(g,O){g.responseText===f.responseText?d.isSlimlineSurvey?(d.selectedRatingIndex=O,d.ytdReduxBehavior.dispatch(sF_(O))):(d.setSurveyOptionValue(O,!0,"checked"),d.setSurveyOptionValue(O,!0,"selected")):(d.setSurveyOptionValue(O,!1,"checked"),d.setSurveyOptionValue(O,
!1,"selected"))});
else if(c)this.selectedNonStarOption=f,this.hideOptions=!0;else{var q=this.ytRendererBehavior.getSimpleString(f.responseText),Z=!0;this.getOptionRenderers().forEach(function(g,O){d.setSurveyOptionValue(O,Z,"checked");d.setSurveyOptionValue(O,!1,"selected");d.ytRendererBehavior.getSimpleString(g.responseText)===q&&(Z=!1,d.setSurveyOptionValue(O,!0,"selected"))})}c=f.responseEndpoint;
var M;f.followUpCommand&&(M=_.b(f.followUpCommand,xKO));this.isSlimlineSurvey?(this.resetComponent(),_.gS(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.gS(this.hostElement,"ytd-inline-survey-rating-select-action",[c,M])};
_.r.showSelectedOption=function(){var c=this;_.a7.addJob(function(){var f=c.getOptionRenderers()[c.slimlineSurveyRatingSelectedIndex];c.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),f)},8,100)};
_.r.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(c){var f;return(f=_.b(c,Ge_))!=null?f:{}}):[]};
_.r.onUndoClick=function(){this.resetComponent();_.gS(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.r.setSurveyOptionValue=function(c,f,d){this.notifyPath("data.ratings."+c+".ratingSurveyOptionRenderer."+d);this.set("data.ratings."+c+".ratingSurveyOptionRenderer."+d,f)};
_.r.resetComponent=function(){var c=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var f=this.getOptionRenderers(),d,q;this.firstResponseText=(q=(d=f[0])==null?void 0:d.responseText)!=null?q:null;var Z,M;this.lastResponseText=(M=(Z=f[f.length-1])==null?void 0:Z.responseText)!=null?M:null;f.forEach(function(g,O){c.setSurveyOptionValue(O,!1,"checked");c.setSurveyOptionValue(O,!1,"selected")})};
_.ci.Object.defineProperties(yC.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
yC.prototype.onOptionChange=yC.prototype.onOptionChange;yC.prototype.dataChanged=yC.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],yC.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yC.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],yC.prototype,"firstResponseText",void 0);_.y([_.L(),_.D("design:type",Object)],yC.prototype,"lastResponseText",void 0);_.y([_.L(),_.D("design:type",Object)],yC.prototype,"selectedNonStarOption",void 0);_.y([_.L(),_.D("design:type",Object)],yC.prototype,"hideOptions",void 0);_.y([_.L(),_.D("design:type",Object)],yC.prototype,"hideUndoButton",void 0);_.y([_.L(),_.D("design:type",Object)],yC.prototype,"disableAnimation",void 0);
_.y([_.L(),_.D("design:type",Object)],yC.prototype,"showResponseRangeText",void 0);_.y([_.L(),_.D("design:type",Object)],yC.prototype,"selectedRatingIndex",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yC.prototype,"isSlimlineSurvey",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yC.prototype,"isSlimlineSurveyFollowUp",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yC.prototype,"isShortsStyle",void 0);_.y([_.L({selector:function(c){return c.ui.slimlineSurveyRatingSelectedIndex}}),
_.D("design:type",Object)],yC.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.y([_.S("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],yC.prototype,"isSingleSelect",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yC.prototype,"dataChanged",null);
_.y([_.Ta("ytd-rating-survey-option-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],yC.prototype,"onOptionChange",null);_.y([_.v({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],yC);
_.h(yC,"ytd-rating-survey-renderer",function(){if(bR3!==void 0)return bR3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return bR3=c},{mode:1});var KXH;var ETF;var nT3;var ytk=(bh.FIRSTDAYOFWEEK+1)%7,$cr=function(c,f,d,q){var Z="";if(q.selection&&u3e(q.selection))Ys(c,q.selection)&&(Z+=" selected");else if(q.selection&&v8N(q.selection)){var M=q.selection.selectionState||"START_DATE";Ys(c,q.selection.start)&&(Z+=" period-start ",M==="START_DATE"&&(Z+="selected"));Ys(c,q.selection.end)&&(Z+=" period-end ",M==="END_DATE"&&(Z+="selected"));Fd(c,q.selection.start)||Fd(q.selection.end,c)||(Z+=" highlighted")}if(Fd(f,q.start)||Fd(q.end,f))Z+=" disabled";q.circleToday&&
Ys(f,d)&&(Z+=" today");return Z};var We=function(){return _.z.apply(this,arguments)||this};
_.K(We,_.z);_.r=We.prototype;_.r.attached=function(){var c=this;_.ol(this,function(){c.JSC$15827_calendarMain.scrollHeight>0&&(c.calendarConfig.selection?c.scrollToDate(hPn(c.calendarConfig.selection)):c.scrollToDate(c.calendarConfig.end))})};
_.r.updateSelection=function(c){c=Wxk(Object.assign({},this.calendarConfig,{selection:c}),$cr);this.splice.apply(this,["renderData.months",0,c.length].concat(_.LT(c)))};
_.r.scrollToDate=function(c){this.renderData&&(c=Dtk(c,this.renderData),c!==void 0&&this.JSC$15827_calendarMain.scrollToIndex(c))};
_.r.scrollToNextMonth=function(){this.JSC$15827_calendarMain.scrollToIndex(this.JSC$15827_calendarMain.firstVisibleIndex+1)};
_.r.scrollToPrevMonth=function(){this.JSC$15827_calendarMain.firstVisibleIndex===0&&this.JSC$15827_calendarMain.scrollTo(0,0);this.JSC$15827_calendarMain.scrollToIndex(this.JSC$15827_calendarMain.firstVisibleIndex-1)};
_.r.handleDayClick=function(c){_.gS(this.hostElement,"ytd-calendar-date-clicked",[c.model.day.date])};
_.r.handleDayMouseDown=function(c){c.preventDefault();_.gS(this.hostElement,"ytd-calendar-date-mousedown",[c.model.day.date])};
_.r.handleDayMouseUp=function(c){_.gS(this.hostElement,"ytd-calendar-date-mouseup",[c.model.day.date])};
_.r.handleDayMouseEnter=function(c){c.preventDefault();_.gS(this.hostElement,"ytd-calendar-date-mouseenter",[c.model.day.date])};
_.r.handleDayMouseLeave=function(c){_.gS(this.hostElement,"ytd-calendar-date-mouseleave",[c.model.day.date])};
_.ci.Object.defineProperties(We.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var c=this.calendarConfig,f=$cr;f=f===void 0?$cr:f;for(var d=[],q=0;q<7;q++)d.push(bh.NARROWWEEKDAYS[(q+ytk)%7]);return{months:Wxk(c,f),daysOfWeekLabel:d}}}});
_.y([_.L(),_.D("design:type",Object)],We.prototype,"calendarConfig",void 0);_.y([_.AY("#calendar-main"),_.D("design:type",Object)],We.prototype,"JSC$15827_calendarMain",void 0);_.y([_.S("calendarConfig"),_.D("design:type",Object),_.D("design:paramtypes",[])],We.prototype,"renderData",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],We);
_.h(We,"ytd-scrollable-calendar",function(){if(nT3!==void 0)return nT3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return nT3=c},{mode:2});var QjH;var SnF;var Dl=function(){var c=_.z.apply(this,arguments)||this;c.hideCharCounter=!1;c.hideLabel=!1;c.noLabelFloat=!1;c.autoValidate=!0;c.invalid=!1;c.disabled=!1;c.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return c};
_.K(Dl,_.z);_.r=Dl.prototype;_.r.reset=function(c){this.value=c&&this.data?this.data.value=c:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.r.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.r.focusTextInput=function(){this.input.focus()};
_.r.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()};
_.r.valueChanged=function(){var c,f;if(((c=this.data)==null?0:c.value)||((f=this.data)==null?void 0:f.value)==="")this.value=this.data.value;else{var d;((d=this.data)==null?void 0:d.value)!==void 0||this.value||(this.value="")}};
_.r.computeLabel=function(c,f){return f?"":_.xC(c)};
_.r.computeAriaLabel=function(c,f){return f?_.xC(c):""};
_.r.computeErrorMessage=function(c,f,d,q){!c&&f?c=d||this.strings.REQUIRED_LABEL:(c=_.xC(q),c=_.OC(c,"&")?"document"in _.dz?XN3(c):uky(c):c);return c};
_.r.computeType=function(c){return c==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.r.onTextValueChanged=function(c){this.value=c.detail.value;var f;(f=this.onValueChanged)==null||f.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.r.handleUpdateTextInputFormFieldRendererCommand=function(c){(c=_.b(c,H03))&&this.data&&this.data.id===c.id&&(c.invalid!==void 0&&(this.invalid=c.invalid),c.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",c.invalidValueErrorMessage))};
_.r.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("value-changed",this.value))};
_.r.updateInvalidFromBinding=function(c){this.invalid=c.detail.value};
_.ci.Object.defineProperties(Dl.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var c;return!((c=this.data)==null||!c.isMultiline)}}});
Dl.prototype.valueChangedForBinding=Dl.prototype.valueChangedForBinding;Dl.prototype.valueChanged=Dl.prototype.valueChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Dl.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Dl.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Dl.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],Dl.prototype,"value",void 0);_.y([_.L(),_.D("design:type",String)],Dl.prototype,"pattern",void 0);_.y([_.L(),_.D("design:type",String)],Dl.prototype,"errorMessage",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Dl.prototype,"componentStyle",void 0);_.y([_.L(),_.D("design:type",Object)],Dl.prototype,"hideCharCounter",void 0);
_.y([_.L(),_.D("design:type",Object)],Dl.prototype,"hideLabel",void 0);_.y([_.L(),_.D("design:type",Object)],Dl.prototype,"noLabelFloat",void 0);_.y([_.L(),_.D("design:type",Function)],Dl.prototype,"onValueChanged",void 0);_.y([_.L(),_.D("design:type",Boolean)],Dl.prototype,"isMultilineOverride",void 0);_.y([_.L(),_.D("design:type",Object)],Dl.prototype,"autoValidate",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Dl.prototype,"invalid",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Dl.prototype,"disabled",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Dl.prototype,"enableOverlayTheme",void 0);_.y([_.L({value:{REQUIRED_LABEL:_.HO("REQUIRED_LABEL",void 0,"Required")}}),_.D("design:type",Object)],Dl.prototype,"strings",void 0);_.y([_.AY("#input"),_.D("design:type",Object)],Dl.prototype,"input",void 0);
_.y([_.S("data","isMultilineOverride"),_.D("design:type",Object),_.D("design:paramtypes",[])],Dl.prototype,"isMultiline",null);_.y([_.ba("data.value"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Dl.prototype,"valueChanged",null);_.y([_.m5("value"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Dl.prototype,"valueChangedForBinding",null);_.y([_.vj({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Dl);
_.h(Dl,"yt-text-input-form-field-renderer",function(){if(SnF===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;QjH===void 0&&(QjH=document.createElement("template"));var q=QjH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);SnF=c}c=SnF;return c},{mode:2});var er=function(){var c=_.z.apply(this,arguments)||this;c.data=void 0;c.selectionState="START_DATE";c.isStartDateInvalid=!1;c.isEndDateInvalid=!1;c.autoapply=!1;c.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 c};
_.K(er,_.z);_.r=er.prototype;_.r.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"}}}}};
_.r.focus=function(){this.startDateInput.focus()};
_.r.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:t9(this.data.selection.start),end:t9(this.data.selection.end)})};
_.r.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.r.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.WH(this.selectionState)}};
_.r.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.r.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.r.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.r.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var c=this.calendar.calendarConfig,f=c.end;c=NCr({start:c.start,end:this.endDate||f},this.startDateInput.value||"");this.isStartDateInvalid=!c.isValid;c.isValid&&(c=c.value,this.selection=this.endDate?{start:c,end:this.endDate}:c,this.calendar.scrollToDate(c));this.updateInvalidState()}};
_.r.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var c=this.calendar.calendarConfig,f=c.start;c=NCr({start:this.startDate||f,end:c.end},this.endDateInput.value||"");this.isEndDateInvalid=!c.isValid;c.isValid&&(c=c.value,this.selection={start:this.startDate,end:c},this.calendar.scrollToDate(c));this.updateInvalidState()}};
_.r.handleCalendarDateClicked=function(c){var f=this.selection&&hPn(this.selection),d=this.selection&&w6r(this.selection);f&&!Fd(c,f)&&this.selectionState==="END_DATE"?(this.selection={start:f,end:c},this.selectionState="START_DATE"):(d&&!Fd(d,c)?this.selection={start:c,end:d}:this.selection=c,this.selectionState="END_DATE")};
_.r.handleCalendarDateMouseDown=function(c){this.selection&&!u3e(this.selection)&&(this.dragPivot=Ys(c,this.selection.start)?this.selection.end:Ys(c,this.selection.end)?this.selection.start:c)};
_.r.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.r.handleCalendarDateMouseEnter=function(c){this.dragPivot&&(this.selection={start:function(f,d){return Fd(f,d)?f:d}(this.dragPivot,c),
end:function(f,d){return Fd(f,d)?d:f}(this.dragPivot,c)},this.dragPivot||(this.selectionState="START_DATE"))};
_.r.handleCalendarDateMouseLeave=function(){};
_.r.handleCalendarSubmitDateRange=function(){this.selection&&!u3e(this.selection)&&_.gS(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.r.updateInvalidState=function(){var c=function(f,d){d?f.setAttribute("invalid",""):f.removeAttribute("invalid")};
c(this.startDateInput,this.isStartDateInvalid);c(this.endDateInput,this.isEndDateInvalid)};
_.r.updateDateStrings=function(){this.selection&&(u3e(this.selection)?X6G(this.selection):(X6G(this.selection.start),X6G(this.selection.end)))};
_.r.updateCalendarSelection=function(c){this.calendar.updateSelection(Object.assign({},c,{selectionState:this.selectionState}))};
_.r.updateIsStartDateInvalidFromBinding=function(c){this.isStartDateInvalid=c.detail.value};
_.r.updateIsEndDateInvalidFromBinding=function(c){this.isEndDateInvalid=c.detail.value};
_.r.updateStartDateStringFromBinding=function(){};
_.r.updateEndDateStringFromBinding=function(){};
_.ci.Object.defineProperties(er.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:t9(this.data.dateRangeStart),end:t9(this.data.dateRangeEnd),selection:{start:t9(this.data.selection.start),end:t9(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&hPn(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&w6r(this.selection)}}});
er.prototype.resetTextboxes=er.prototype.resetTextboxes;er.prototype.observeSelection=er.prototype.observeSelection;er.prototype.dataChanged=er.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],er.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],er.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("#calendar"),_.D("design:type",Object)],er.prototype,"calendar",void 0);
_.y([_.AY("#start-date"),_.D("design:type",Object)],er.prototype,"startDateInput",void 0);_.y([_.AY("#end-date"),_.D("design:type",Object)],er.prototype,"endDateInput",void 0);_.y([_.L(),_.D("design:type",Object)],er.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],er.prototype,"selection",void 0);_.y([_.L(),_.D("design:type",String)],er.prototype,"selectionState",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],er.prototype,"calendarConfig",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],er.prototype,"errorMessage",null);_.y([_.S("selection"),_.D("design:type",Object),_.D("design:paramtypes",[])],er.prototype,"startDate",null);_.y([_.S("selection"),_.D("design:type",Object),_.D("design:paramtypes",[])],er.prototype,"endDate",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],er.prototype,"dataChanged",null);
_.y([_.m5("selection","selectionState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],er.prototype,"observeSelection",null);_.y([_.m5("selectionState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],er.prototype,"resetTextboxes",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],er);
_.h(er,"ytd-date-period-picker-renderer",function(){if(ETF!==void 0)return ETF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ETF=c},{mode:1});var Nk=function(){var c=_.z.apply(this,arguments)||this;var f={};c.actionMap=(f["ytd-date-period-picker-apply"]="handleDateRangeUpdated",f);return c};
_.K(Nk,_.z);Nk.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Nk.prototype.handleDateRangeUpdated=function(){};
_.y([_.L(),_.D("design:type",Object)],Nk.prototype,"data",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Nk.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Nk.prototype,"rendererstamperBehavior",void 0);_.y([_.v({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Nk);
_.h(Nk,"ytd-report-history-section-header-renderer",function(){if(KXH!==void 0)return KXH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return KXH=c},{mode:1});var LXo;var zM_;var J1H;var I2=function(){return _.z.apply(this,arguments)||this};
_.K(I2,_.z);_.ci.Object.defineProperties(I2.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?0:(f=c.icon)==null?0:f.iconType)?_.Tu(this.data.icon.iconType):""}}});
_.y([_.L(),_.D("design:type",Object)],I2.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],I2.prototype,"icon",null);_.y([_.v({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],I2);
_.h(I2,"ytd-report-history-table-text-cell-renderer",function(){if(J1H!==void 0)return J1H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return J1H=c},{mode:1});var Pe=function(){return _.z.apply(this,arguments)||this};
_.K(Pe,_.z);Pe.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Pe.prototype,"data",void 0);_.y([_.v({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Pe);
_.h(Pe,"ytd-report-history-table-reason-cell-renderer",function(){if(zM_!==void 0)return zM_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return zM_=c},{mode:1});var R2=function(){return _.z.apply(this,arguments)||this};
_.K(R2,_.z);R2.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"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],R2.prototype,"rendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],R2.prototype,"data",void 0);_.y([_.v({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],R2);
_.h(R2,"ytd-report-history-table-cell-renderer",function(){if(LXo!==void 0)return LXo;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return LXo=c},{mode:1});var aP3;var UI=function(){var c=_.z.apply(this,arguments)||this;c.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 c};
_.K(UI,_.z);UI.prototype.onDataChanged=function(){var c;if((c=this.data)==null?0:c.style)this.componentStyle=this.getStyleName(this.data.style)};
UI.prototype.getCellForColumn=function(c){return this.cells.find(function(f){var d;return((d=_.b(f==null?void 0:f.cell,d__)||_.b(f==null?void 0:f.cell,fnF))==null?void 0:d.columnId)===c.type})};
UI.prototype.getClassForColumn=function(c){switch(c){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
UI.prototype.getStyleName=function(c){switch(c){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.ci.Object.defineProperties(UI.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var c;return(((c=this.data)==null?void 0:c.cells)||[]).map(function(f){return _.b(f,cWF)})}}});
UI.prototype.onDataChanged=UI.prototype.onDataChanged;_.y([_.L(),_.D("design:type",Object)],UI.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Array)],UI.prototype,"columnRenderData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],UI.prototype,"componentStyle",void 0);_.y([_.S("data"),_.D("design:type",Array),_.D("design:paramtypes",[])],UI.prototype,"cells",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],UI.prototype,"onDataChanged",null);_.y([_.v({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],UI);
_.h(UI,"ytd-report-history-table-row-renderer",function(){if(aP3!==void 0)return aP3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return aP3=c},{mode:1});var Viv;var XYy;var IEG={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},PEr={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var p2=function(){return _.z.apply(this,arguments)||this};
_.K(p2,_.z);p2.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"}}}}}};
p2.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.ci.Object.defineProperties(p2.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?0:c.columns)?o8e(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return p6G(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var c=this.tableSpec,f=IEG;f=f===void 0?PEr:f;f=xtG(c.columnDimensions,c.columnsToShow||[],f);c=0;f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=d.value,c+=d.minWidth+d.paddingLeft+d.paddingRight;return c}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.y([_.Q(_.PX),_.D("design:type",Object)],p2.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],p2.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],p2.prototype,"tableSpec",null);_.y([_.S("tableSpec"),_.D("design:type",Array),_.D("design:paramtypes",[])],p2.prototype,"columnRenderData",null);
_.y([_.S("tableSpec"),_.D("design:type",Number),_.D("design:paramtypes",[])],p2.prototype,"totalMinWidth",null);_.y([_.S("totalMinWidth"),_.D("design:type",String),_.D("design:paramtypes",[])],p2.prototype,"tableWidthStyle",null);_.y([_.v({is:"ytd-table-renderer",disableElementRegistration:!0})],p2);
_.h(p2,"ytd-table-renderer",function(){if(XYy!==void 0)return XYy;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return XYy=c},{mode:1});var xI=function(){return _.z.apply(this,arguments)||this};
_.K(xI,_.z);xI.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}}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xI.prototype,"data",void 0);_.y([_.v({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],xI);
_.h(xI,"ytd-report-reason-history-modal-renderer",function(){if(Viv!==void 0)return Viv;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Viv=c},{mode:1});var uqj;var vTH;var hMH;var o2=function(){return _.z.apply(this,arguments)||this};
_.K(o2,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],o2.prototype,"data",void 0);_.y([_.v({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],o2);
_.h(o2,"ytd-profile-column-stats-entry-renderer",function(){if(hMH!==void 0)return hMH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return hMH=c},{mode:1});var wYH;var GF=function(){return _.z.apply(this,arguments)||this};
_.K(GF,_.z);GF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],GF.prototype,"data",void 0);_.y([_.v({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],GF);
_.h(GF,"ytd-profile-column-stats-renderer",function(){if(wYH!==void 0)return wYH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return wYH=c},{mode:1});var y1y;var cy=function(){return _.z.apply(this,arguments)||this};
_.K(cy,_.z);_.ci.Object.defineProperties(cy.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null||!c.useThumbnailSize)return 80;var f,d;c=(f=this.data)==null?void 0:(d=f.thumbnail)==null?void 0:d.thumbnails;var q;return c&&((q=c[0])==null?void 0:q.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null||!c.useThumbnailSize)return 80;var f,d;c=(f=this.data)==null?void 0:(d=f.thumbnail)==null?void 0:d.thumbnails;var q;return c&&((q=c[0])==null?void 0:q.height)||80}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],cy.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],cy.prototype,"componentStyle",void 0);_.y([_.S("data.useThumbnailSize"),_.D("design:type",Object),_.D("design:paramtypes",[])],cy.prototype,"thumbnailWidth",null);
_.y([_.S("data.useThumbnailSize"),_.D("design:type",Object),_.D("design:paramtypes",[])],cy.prototype,"thumbnailHeight",null);_.y([_.v({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],cy);
_.h(cy,"ytd-profile-column-user-info-renderer",function(){if(y1y!==void 0)return y1y;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return y1y=c},{mode:1});var ff=function(){return _.z.apply(this,arguments)||this};
_.K(ff,_.z);ff.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]]"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ff.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],ff.prototype,"componentStyle",void 0);_.y([_.v({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],ff);
_.h(ff,"ytd-profile-column-renderer",function(){if(vTH!==void 0)return vTH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return vTH=c},{mode:1});var dP=function(){var c=_.z.apply(this,arguments)||this;c.componentStyle="NON_CENTERED_PROFILE";return c};
_.K(dP,_.z);dP.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
dP.prototype.getIcon=function(c){return c?"settings:"+c.toLowerCase():null};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dP.prototype,"data",void 0);_.y([_.v({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],dP);
_.h(dP,"ytd-page-introduction-renderer",function(){if(uqj!==void 0)return uqj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return uqj=c},{mode:1});var WXy;var jE=function(){return _.z.apply(this,arguments)||this};
_.K(jE,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],jE.prototype,"data",void 0);_.y([_.v({is:"ytd-report-description-renderer",disableElementRegistration:!0})],jE);
_.h(jE,"ytd-report-description-renderer",function(){if(WXy!==void 0)return WXy;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return WXy=c},{mode:1});var DcO;var eMo;var qG=function(){return _.z.apply(this,arguments)||this};
_.K(qG,_.z);qG.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qG.prototype,"data",void 0);_.y([_.v({is:"ytd-video-report-renderer",disableElementRegistration:!0})],qG);
_.h(qG,"ytd-video-report-renderer",function(){if(eMo!==void 0)return eMo;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return eMo=c},{mode:1});var NLj;_.w_("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.w_("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Z0=function(){return _.z.apply(this,arguments)||this};
_.K(Z0,_.z);Z0.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]]"}}}}}};
Z0.prototype.computeMessageStyle=function(c){return c};
Z0.prototype.computeButtonOverride=function(c){var f;if((c==null?0:(f=c.style)==null?0:f.value)&&c.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Z0.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Z0.prototype,"shelf",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Z0.prototype,"panel",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.D("design:type",Boolean)],Z0.prototype,"componentStyle",void 0);_.y([_.L({computed:"computeButtonOverride(data)"}),_.D("design:type",Object)],Z0.prototype,"buttonOverride",void 0);_.y([_.v({is:"ytd-message-renderer",disableElementRegistration:!0})],Z0);
_.h(Z0,"ytd-message-renderer",function(){if(NLj!==void 0)return NLj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return NLj=c},{mode:1});var MG=function(){return _.z.apply(this,arguments)||this};
_.K(MG,_.z);MG.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"}}}};
MG.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
MG.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.ci.Object.defineProperties(MG.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var c,f;return!!(((c=this.data)==null?0:c.header)&&((f=this.data)==null?0:f.table))}}});
MG.prototype.onRequestError=MG.prototype.onRequestError;_.y([_.Q(_.PX),_.D("design:type",Object)],MG.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],MG.prototype,"data",void 0);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],MG.prototype,"isUnifiedReportHistory",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MG.prototype,"onRequestError",null);_.y([_.v({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],MG);
_.h(MG,"ytd-report-history-section-renderer",function(){if(DcO!==void 0)return DcO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DcO=c},{mode:1});var IP_;var rP=function(){var c=_.z.apply(this,arguments)||this;c.answerExpanded=!1;return c};
_.K(rP,_.z);rP.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rP.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rP.prototype,"answerExpanded",void 0);_.y([_.v({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],rP);
_.h(rP,"ytd-handles-claiming-faq-renderer",function(){if(IP_!==void 0)return IP_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return IP_=c},{mode:1});var POj;var RMv=function(){return _.z.apply(this,arguments)||this};
_.K(RMv,_.z);_.y([_.L(),_.D("design:type",Object)],RMv.prototype,"data",void 0);_.y([_.v({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],RMv);
_.h(RMv,"ytd-handles-claiming-faq-section-renderer",function(){if(POj!==void 0)return POj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return POj=c},{mode:1});var Uc3;var Cf=function(){var c=_.z.apply(this,arguments)||this;c.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";c.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";c.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";c.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";c.leftSquiggly=c.leftSquigglyLight;c.rightSquiggly=c.rightSquigglyLight;
c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};c.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return c};
_.K(Cf,_.z);_.r=Cf.prototype;_.r.updateLeftSquigglyStyle=function(){_.la(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.r.updateRightSquigglyStyle=function(){_.la(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.r.ready=function(){var c=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(c)};
_.r.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&(this.set("isDarkTheme",c),c?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.r.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Cf.prototype.updateRightSquigglyStyle=Cf.prototype.updateRightSquigglyStyle;Cf.prototype.updateLeftSquigglyStyle=Cf.prototype.updateLeftSquigglyStyle;_.y([_.L(),_.D("design:type",Object)],Cf.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Cf.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",String)],Cf.prototype,"leftSquiggly",void 0);_.y([_.L(),_.D("design:type",String)],Cf.prototype,"rightSquiggly",void 0);
_.y([_.m5("leftSquiggly"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cf.prototype,"updateLeftSquigglyStyle",null);_.y([_.m5("rightSquiggly"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cf.prototype,"updateRightSquigglyStyle",null);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Cf.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Cf.prototype,"actionButtonOverride",void 0);_.y([_.v({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Cf);
_.h(Cf,"ytd-handles-claiming-header-renderer",function(){if(Uc3!==void 0)return Uc3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Uc3=c},{mode:1});var pYH;var gP=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};c.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";c.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";c.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";c.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
c.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";c.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";c.image0SquigglyBackground=c.image0LightSquigglyBackground;c.image1SquigglyBackground=c.image1LightSquigglyBackground;c.image3SquigglyBackground=c.image3LightSquigglyBackground;return c};
_.K(gP,_.z);_.r=gP.prototype;_.r.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.r.onDataChanged=function(){this.updateTitleAndImages()};
_.r.onThemeChanged=function(){this.updateTitleAndImages()};
_.r.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&(this.isDarkTheme=c)};
_.r.updateImage0SquigglyBackground=function(){_.la(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.r.updateImage1SquigglyBackground=function(){_.la(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.r.updateImage3SquigglyBackground=function(){_.la(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.r.updateTitleAndImages=function(){var c,f;((c=this.data)==null?void 0:(f=c.titleImages)==null?void 0:f.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))};
gP.prototype.updateImage3SquigglyBackground=gP.prototype.updateImage3SquigglyBackground;gP.prototype.updateImage1SquigglyBackground=gP.prototype.updateImage1SquigglyBackground;gP.prototype.updateImage0SquigglyBackground=gP.prototype.updateImage0SquigglyBackground;gP.prototype.onThemeChanged=gP.prototype.onThemeChanged;gP.prototype.onDataChanged=gP.prototype.onDataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],gP.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],gP.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"title0",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"title1",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"title2",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"title3",void 0);
_.y([_.L(),_.D("design:type",Object)],gP.prototype,"title4",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"image0",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"image1",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"image2",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"image3",void 0);_.y([_.L(),_.D("design:type",Object)],gP.prototype,"image4",void 0);_.y([_.L(),_.D("design:type",String)],gP.prototype,"image0SquigglyBackground",void 0);
_.y([_.L(),_.D("design:type",String)],gP.prototype,"image1SquigglyBackground",void 0);_.y([_.L(),_.D("design:type",String)],gP.prototype,"image3SquigglyBackground",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gP.prototype,"onDataChanged",null);_.y([_.m5("isDarkTheme"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gP.prototype,"onThemeChanged",null);
_.y([_.m5("image0SquigglyBackground"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gP.prototype,"updateImage0SquigglyBackground",null);_.y([_.m5("image1SquigglyBackground"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gP.prototype,"updateImage1SquigglyBackground",null);
_.y([_.m5("image3SquigglyBackground"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gP.prototype,"updateImage3SquigglyBackground",null);_.y([_.v({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],gP);
_.h(gP,"ytd-handles-claiming-title-images-section-renderer",function(){if(pYH!==void 0)return pYH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return pYH=c},{mode:1});var xcv;var ki=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(ki,_.z);ki.prototype.ready=function(){var c=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(c)};
ki.prototype.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&this.set("isDarkTheme",c)};
ki.prototype.onCopyButtonClick=function(){var c=this,f,d,q;return _.k(function(Z){return(f=c.data)!=null&&f.primaryChannelUrl?Z.yield(navigator.clipboard.writeText(((d=c.data)==null?0:d.encodedChannelUrl)?c.data.encodedChannelUrl:"https://"+_.xC((q=c.data)==null?void 0:q.primaryChannelUrl)),0):Z.jumpTo(0)})};
_.y([_.L(),_.D("design:type",Object)],ki.prototype,"data",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ki.prototype,"ytComponentBehavior",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],ki.prototype,"isDarkTheme",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ki.prototype,"ytActionHandlerBehavior",void 0);_.y([_.v({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],ki);
_.h(ki,"ytd-handles-claiming-update-social-renderer",function(){if(xcv!==void 0)return xcv;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return xcv=c},{mode:1});var oTF;var Oe=function(){var c=_.z.apply(this,arguments)||this;c.JSC$15921_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";c.JSC$15921_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};c.squigglyBackground=c.JSC$15921_squigglyBackgroundLight;return c};
_.K(Oe,_.z);Oe.prototype.updateSquigglyBackgroundStyle=function(){_.la(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Oe.prototype.ready=function(){var c=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",c);this.squigglyBackground=c?this.JSC$15921_squigglyBackgroundDark:this.JSC$15921_squigglyBackgroundLight};
Oe.prototype.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&(this.set("isDarkTheme",c),this.squigglyBackground=c?this.JSC$15921_squigglyBackgroundDark:this.JSC$15921_squigglyBackgroundLight)};
Oe.prototype.updateSquigglyBackgroundStyle=Oe.prototype.updateSquigglyBackgroundStyle;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Oe.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Oe.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Oe.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Oe.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",String)],Oe.prototype,"squigglyBackground",void 0);_.y([_.m5("squigglyBackground"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Oe.prototype,"updateSquigglyBackgroundStyle",null);_.y([_.v({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Oe);
_.h(Oe,"ytd-handles-claiming-vanity-info-renderer",function(){if(oTF!==void 0)return oTF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return oTF=c},{mode:1});var Gq_;var ly=function(){var c=_.z.apply(this,arguments)||this;c.JSC$15924_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";c.JSC$15924_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";c.squigglyBackground=c.JSC$15924_squigglyBackgroundLight;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(ly,_.z);_.r=ly.prototype;_.r.ready=function(){var c=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(c)};
_.r.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&(this.set("isDarkTheme",c),this.squigglyBackground=c?this.JSC$15924_squigglyBackgroundDark:this.JSC$15924_squigglyBackgroundLight)};
_.r.updateSquigglyBackgroundStyle=function(){_.la(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.r.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.r.detached=function(){this.stop()};
_.r.stop=function(){this.playerElement.stop()};
_.r.setupVideoPlayer=function(){var c=this,f,d;return _.k(function(q){f=c.data.videoId;d="http://i1.ytimg.com/vi/"+f+"/maxresdefault.jpg";c.playerElement.loadVideoWithPlayerVars({video_id:f,iurlhq:d});_.Fm(q)})};
ly.prototype.onDataChanged=ly.prototype.onDataChanged;ly.prototype.updateSquigglyBackgroundStyle=ly.prototype.updateSquigglyBackgroundStyle;_.y([_.L({value:!1}),_.D("design:type",Boolean)],ly.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",String)],ly.prototype,"squigglyBackground",void 0);_.y([_.AY("#player"),_.D("design:type",Object)],ly.prototype,"playerElement",void 0);_.y([_.L(),_.D("design:type",Object)],ly.prototype,"data",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ly.prototype,"ytActionHandlerBehavior",void 0);_.y([_.m5("squigglyBackground"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ly.prototype,"updateSquigglyBackgroundStyle",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ly.prototype,"onDataChanged",null);
_.y([_.v({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],ly);
_.h(ly,"ytd-handles-claiming-video-item-renderer",function(){if(Gq_!==void 0)return Gq_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Gq_=c},{mode:1});var cjr;var By=function(){var c=_.Fj.apply(this,arguments)||this;c.dragging=!1;c.dragMouseStart=0;c.dragOffsetStart=0;c.containerWidthDiff=0;c.boundPrevClick=function(){c.set("offset",se(c,c.offset-(c.scrollDistance||320)))};
c.boundNextClick=function(){c.set("offset",se(c,c.offset+(c.scrollDistance||320)))};
c.boundScrollContainerMouseDown=function(f){c.dragMouseStart=f.clientX;c.dragOffsetStart=c.offset;c.dragging=!0};
c.boundScrollContainerDrag=function(f){c.dragging&&c.set("offset",se(c,c.dragOffsetStart-(f.clientX-c.dragMouseStart)))};
c.boundMouseUp=function(){c.onMouseUp()};
c.boundWheelScroll=function(f){var d=0;Math.abs(f.deltaX)>=Math.abs(f.deltaY)?d=f.deltaX:f.shiftKey&&(d=f.deltaY);d!==0&&(c.offset+=d,f.stopPropagation(),f.preventDefault())};
c.boundChipCloudChipScrollIntoView=function(f){(f=f.detail)&&c.scrollChipIntoView(f)};
return c};
_.K(By,_.Fj);By.prototype.attached=function(){var c=_.r1(this.hostElement).querySelector("#scroll-container");c.addEventListener("wheel",this.boundWheelScroll);c.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);c.style.touchAction="pan-y";c.addEventListener("pointerdown",this.boundScrollContainerMouseDown);c.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
By.prototype.detached=function(){var c=_.r1(this.hostElement).querySelector("#scroll-container");c.removeEventListener("wheel",this.boundWheelScroll);c.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);c.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);c.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
By.prototype.reset=function(){this.set("offset",0);_.ol(this,this.setContainerWidthDiff);iy(this)};
var se=function(c,f){return Math.min(Math.max(f,0),c.containerWidthDiff)};
By.prototype.onMouseUp=function(){this.dragging=!1};
By.prototype.transformContainer=function(){this.offset=se(this,this.offset);var c=_.hk("HTML_DIR")==="rtl"?"":"-";_.r1(this.hostElement).querySelector("#chips").style.transform="translateX("+c+this.offset+"px)";iy(this)};
var iy=function(c){_.ol(c,c.setButtonsState)};
By.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=se(this,this.offset));this.atStart=this.offset<=0};
By.prototype.setContainerWidthDiff=function(){var c=_.r1(this.hostElement).querySelector("#scroll-container"),f=_.r1(this.hostElement).querySelector("#chips");c&&f&&(this.containerWidthDiff=f.clientWidth-c.clientWidth)};
By.prototype.scrollChipIntoView=function(c){var f=_.r1(this.hostElement).querySelector("#scroll-container");if(f){var d=this.atStart?0:106,q=this.atEnd?0:106;c.offsetLeft<this.offset+d?this.offset=se(this,c.offsetLeft-d):c.offsetLeft+c.clientWidth>this.offset+f.clientWidth-q&&(this.offset=se(this,c.offsetLeft+c.clientWidth+q-f.clientWidth))}};
By.prototype.transformContainer=By.prototype.transformContainer;_.y([_.L({value:0}),_.D("design:type",Number)],By.prototype,"offset",void 0);_.y([_.L({value:!0,reflectToAttribute:!0}),_.D("design:type",Boolean)],By.prototype,"atStart",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],By.prototype,"atEnd",void 0);_.y([_.L(),_.D("design:type",Number)],By.prototype,"scrollDistance",void 0);
_.y([_.m5("offset"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],By.prototype,"transformContainer",null);_.y([_.tY()],By);var fR_;var d1_;var Zby=_.dN(function(c){var f=c.data;c=_.C(_.OT(!1,void 0,"HDMMr"));var d=c.next().value,q=c.next().value;c={};c=_.FY("ytChipShapeChip",function(){a:switch(f==null?void 0:f().state){case 0:var M="ytChipShapeActive";break a;case 1:M="ytChipShapeDisabled";break a;default:M="ytChipShapeInactive"}return M},function(){var M=f().type===1||f().type===2,g=f();
return M||g!=null&&g.startIcon?g==null||!g.startIcon||g!=null&&g.text?M?"ytChipShapeEndIconPadding":(g==null?0:g.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(c.ytChipShapeFocused=function(){var M;
return d()&&((M=f())==null?void 0:M.state)!==1},c));
var Z=function(M){if((f==null?void 0:f().state)!==1){var g,O;(O=(g=f()).onTap)==null||O.call(g,M)}};
return _.B("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Ks(function(){var M=_.ql().resolve(_.dx(_.lw));if(M){q(M.isKeyBoardInUse());var g,O;(O=(g=f()).onFocusIn)==null||O.call(g)}return!1}),
"on:focusout":_.Ks(function(){q(!1);return!1})},_.B(jzH,{shouldWrapInButton:function(){return f().type!==2},
selected:function(){return f().state===0},
onClick:Z,isDropdown:function(){return f().type===1},
accessibilityLabel:function(){return f().accessibilityLabel}},_.B("div",{class:c},_.B(_.T,{cond:function(){return f().startIcon},
then:function(){return _.B(_.Qy,{icon:function(){var M;return(M=f())==null?void 0:M.startIcon},
className:function(){return f().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return f().text},_.B(qEr,{shape:f,
onClick:Z}),_.B(_.z3,{model:{borderRadius:"8px"}}))))},"Ib");
Zby.idomCompat=!0;var jzH=_.dN(function(c){var f=_.Ks(function(d){c.onClick(d);return!1});
return _.B(_.T,{cond:c.shouldWrapInButton,then:function(){return _.B("button",{class:"ytChipShapeButtonReset","on:click":f,role:function(){return c.isDropdown()?"combobox":"tab"},
"aria-label":c.accessibilityLabel,"aria-selected":c.selected},c.children)},
else:function(){return c.children}})},"Jb"),qEr=_.dN(function(c){var f=c.shape;
var d=c.onClick;var q=_.Ks(function(Z){d(Z);return!1});
return _.B(_.n9,null,_.B(_.K9,{when:function(){return f().type===1}},function(){return _.B(_.Qy,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.B(_.K9,{when:function(){return f().type===2}},function(){return _.B("button",{class:"ytChipShapeButtonReset",
"on:click":q},_.B(_.Qy,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.B(_.K9,{when:function(){return f().type===0}},function(){return _.B(_.qD,null)}))},"Kb");_.g_(Zby,"chip-shape",{props:{data:_.oM}});var TS=function(){var c=_.z.apply(this,arguments)||this;c.disableDeselectEvent=!1;c.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return c};
_.K(TS,_.z);_.r=TS.prototype;_.r.onSelectChipCommand=function(c){if(!this.selected&&this.data&&(c=_.b(c,gGo),c.targetId&&c.targetId===this.data.targetId))this.onTap()};
_.r.onFilterChipTransformCommand=function(c){if(!this.selected&&this.data){var f;(c=(f=_.b(c,dUo))==null?void 0:f.chipUniqueId)&&c===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.r.dataChanged=function(){var c=this;_.ol(this,function(){c.data&&c.data.isSelected&&!c.selected&&(c.scrollChipIntoView(),c.onTap())})};
_.r.computeChipStyle=function(c){return c!=null?c:"STYLE_DEFAULT"};
_.r.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.gS(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.gS(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.r.onFocus=function(){var c=_.ql().resolve(_.dx(_.lw));c&&c.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.r.scrollChipIntoView=function(){_.CZ(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.ci.Object.defineProperties(TS.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return qsM({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
TS.prototype.onFocus=TS.prototype.onFocus;TS.prototype.onTap=TS.prototype.onTap;TS.prototype.dataChanged=TS.prototype.dataChanged;_.y([_.Q(_.$$),_.D("design:type",Object)],TS.prototype,"ironButtonState",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],TS.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],TS.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Kn),_.D("design:type",Object)],TS.prototype,"ironA11yKeysBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],TS.prototype,"disableDeselectEvent",void 0);_.y([_.L(),_.D("design:type",Object)],TS.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.icon"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],TS.prototype,"hasIcon",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data.uniqueId"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],TS.prototype,"isGnomeChip",null);_.y([_.L({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.D("design:type",String)],TS.prototype,"chipStyle",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],TS.prototype,"selected",void 0);
_.y([_.S("data","selected"),_.D("design:type",Object),_.D("design:paramtypes",[])],TS.prototype,"chipShapeData",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],TS.prototype,"dataChanged",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],TS.prototype,"onTap",null);
_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],TS.prototype,"onFocus",null);_.y([_.vj({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],TS);
_.h(TS,"yt-chip-cloud-chip-renderer",function(){if(d1_===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;fR_===void 0&&(fR_=document.createElement("template"));var q=fR_;d.call(f,q.content.cloneNode(!0),c.content.firstChild);d1_=c}c=d1_;return c},{mode:2});var mY=function(){var c=_.z.apply(this,arguments)||this;c.isDarkTheme=!1;c.notSticky=!1;c.transparentBackground=!1;c.shouldHide=!1;c.disableSticky=!1;c.fluidWidth=!1;c.isClipList=!1;c.defaultChipIndex=0;c.isPlaylist=!1;c.playlistVotingAnimationEnabled=_.F("web_enable_voting_animation");c.toolbarHeight=0;c.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return c};
_.K(mY,_.z);_.r=mY.prototype;
_.r.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}}}}}};
_.r.attached=function(){var c=this;document.addEventListener("scroll",_.ia(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var f;this.toolbarHeight=((f=document.querySelector("ytd-masthead"))==null?void 0:f.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(d){c.handleIntersect(d)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){c.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.r.detached=function(){var c;(c=this.intersectionObserver)==null||c.disconnect();var f;(f=this.resizeObserver)==null||f.disconnect();document.removeEventListener("scroll",_.ia(this,this.updateChipBarWidthAndTop))};
_.r.dataChanged=function(){var c=this,f,d,q;((q=_.b((f=this.data)==null?void 0:(d=f.contents)==null?void 0:d[0],XQr))==null?void 0:q.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Z=this.findSelectedChipIndex();this.selectedIndex!==Z&&(this.selectedIndex=-1);_.ol(this,function(){c.selectedIndex=Z;c.updating=!1;c.ytScrollableChipCloudBehavior.reset()})};
_.r.findSelectedChipIndex=function(){var c;if((c=this.data)==null||!c.contents)return 0;c=this.data.contents;for(var f=0;f<c.length;f++){var d=void 0;if((d=_.b(c[f],XQr))==null?0:d.isSelected)return f}return 0};
_.r.computeStyle=function(c){return c};
_.r.handleChipCloudChipSelectAction=function(c){c=this.JSC$15945_chipsSelector.indexOf(c);c>-1&&this.JSC$15945_chipsSelector.selectIndex(c)};
_.r.handleChipCloudChipDeselectAction=function(){if(_.F("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var c,f,d,q=(d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],XQr))==null?void 0:d.navigationEndpoint;q&&_.gS(this.hostElement,"yt-browse-section-list-reload-endpoint",[q]);this.JSC$15945_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.r.onGuideIsExpandedChanged=function(){var c=this.ytScrollableChipCloudBehavior;_.ol(c,c.setContainerWidthDiff);iy(this.ytScrollableChipCloudBehavior)};
_.r.onResize=function(){var c=this.ytScrollableChipCloudBehavior;_.ol(c,c.setContainerWidthDiff);iy(this.ytScrollableChipCloudBehavior)};
_.r.onDarkModeToggledAction=function(c){this.isDarkTheme=c};
_.r.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.r.handleIntersect=function(c){this.notSticky=this.isChannelPageGrid||this.disableSticky||c[0].intersectionRatio===1};
_.r.updateDimensions=function(){var c=this.ytRendererBehavior.parentComponent;if(c){var f,d=(f=c.headerElement)!=null?f:c;_.la(this.hostElement,{"--ytd-rich-grid-chips-bar-width":d.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.r.updateSelectedIndexFromBinding=function(c){this.selectedIndex=c.detail.value};
_.r.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var c;(c=this.sortFilterHeaderRendererElement)==null||c.setAttribute("is-playlist-page-with-filters","")}};
_.r.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(TAO(!this.notSticky))};
_.ci.Object.defineProperties(mY.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 c,f,d=(c=this.data)==null?void 0:(f=c.contents)==null?void 0:f.find(function(q){return _.b(q,yBF)});
return{sortFilterHeaderRenderer:_.b(d,yBF)}}}});
mY.prototype.dispatchChipBarIsSticky=mY.prototype.dispatchChipBarIsSticky;mY.prototype.isPlaylistPageChanged=mY.prototype.isPlaylistPageChanged;mY.prototype.updateChipBarWidthAndTop=mY.prototype.updateChipBarWidthAndTop;mY.prototype.onResize=mY.prototype.onResize;mY.prototype.onGuideIsExpandedChanged=mY.prototype.onGuideIsExpandedChanged;mY.prototype.dataChanged=mY.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],mY.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.aJ),_.D("design:type",Object)],mY.prototype,"ironResizableBehavior",void 0);_.y([_.Q(),_.D("design:type",By)],mY.prototype,"ytScrollableChipCloudBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],mY.prototype,"ytdReduxBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],mY.prototype,"data",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],mY.prototype,"selectedIndex",void 0);_.y([_.L({value:320}),_.D("design:type",Number)],mY.prototype,"scrollDistance",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mY.prototype,"isDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mY.prototype,"notSticky",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mY.prototype,"transparentBackground",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.D("design:type",String)],mY.prototype,"componentStyle",void 0);_.y([_.L({selector:_.w_G}),_.D("design:type",Boolean)],mY.prototype,"guideIsExpanded",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mY.prototype,"shouldHide",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mY.prototype,"disableSticky",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mY.prototype,"fluidWidth",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mY.prototype,"isClipList",void 0);_.y([_.L(),_.D("design:type",Object)],mY.prototype,"defaultChipIndex",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mY.prototype,"isPlaylist",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],mY.prototype,"playlistVotingAnimationEnabled",void 0);_.y([_.AY("#chips"),_.D("design:type",Object)],mY.prototype,"JSC$15945_chipsSelector",void 0);_.y([_.AY("ytd-sort-filter-header-renderer"),_.D("design:type",HTMLElement)],mY.prototype,"sortFilterHeaderRendererElement",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],mY.prototype,"updating",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mY.prototype,"dataChanged",null);_.y([_.m5("guideIsExpanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mY.prototype,"onGuideIsExpandedChanged",null);_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mY.prototype,"onResize",null);
_.y([_.ba("isChannelPageGrid","disableSticky","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mY.prototype,"updateChipBarWidthAndTop",null);_.y([_.S("componentStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mY.prototype,"isChannelPageGrid",null);_.y([_.S("componentStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mY.prototype,"isHashtagLandingPage",null);
_.y([_.m5("isPlaylistPage"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mY.prototype,"isPlaylistPageChanged",null);_.y([_.S("componentStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mY.prototype,"isPlaylistPage",null);_.y([_.S("componentStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mY.prototype,"isDisableDeselectEvent",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],mY.prototype,"sortFilterHeaderRendererData",null);_.y([_.L({reflectToAttribute:!0,selector:_.PjM}),_.D("design:type",String)],mY.prototype,"frostedGlassMode",void 0);_.y([_.m5("notSticky"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mY.prototype,"dispatchChipBarIsSticky",null);_.y([_.v({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],mY);
_.h(mY,"ytd-feed-filter-chip-bar-renderer",function(){if(cjr!==void 0)return cjr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return cjr=c},{mode:1});var Mo_;var rjF=_.dN(function(c){var f=c.data;var d=c.buttonIndex;var q=c.selectedIndex;var Z=c.onSelect;var M=function(){return d()===q()},g=function(){var O,l;
return(l=(O=f().text)==null?void 0:O.content)!=null?l:""};
c=_.UZk();return _.B("yt-toggleable-image-button-view-model",{class:function(){var O={};O=(O["toggleable-image-button-view-model-wiz"]=!0,O[""]=!0,O["toggleable-image-button-view-model-wiz__semi-transparent"]=q()!==-1&&!M(),O);return _.tp(O)},
tabindex:0,"aria-label":g,"aria-pressed":M,role:"button","on:keydown":c,"on:click":_.Ks(function(){Z(f().onSubmitCommand);return!1})},_.B(_.T,{cond:function(){return f().logo},
then:function(O){return _.B(_.jC,{data:O,className:function(){var l={};l=(l["toggleable-image-button-view-model-wiz__image"]=!0,l["toggleable-image-button-view-model-wiz__circular-radius"]=!(!f().backgroundColor||!f().backgroundColorDarkMode),l["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(M()&&f().backgroundColor&&f().backgroundColorDarkMode),l);return _.tp(l)},
alt:g,useWidth:!1,style:function(){if(M()&&f().backgroundColor&&f().backgroundColorDarkMode){var l=Dm(Number(f().backgroundColorDarkMode),"1");var m=Dm(Number(f().backgroundColor),"1");l="background: linear-gradient(180deg,"+l+","+m+") border-box;"}else l="";return l}})}}),_.B(_.z3,{model:{borderRadius:"16px"}}),_.B("p",{class:function(){var O={};
O=(O["toggleable-image-button-view-model-wiz__label"]=!0,O["toggleable-image-button-view-model-wiz__bold-text"]=M(),O);return _.tp(O)}},_.B(_.J9,{text:function(){return f().text}})))},"Lb");
rjF.idomCompat=!0;var gUo=_.dN(function(c){var f=c.data;c=_.C(_.OT({index:-1,command:{}},void 0,"Zcqtsb"));var d=c.next().value,q=c.next().value;return _.B("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.B("div",{class:"nudge-form-view-model-wiz__form-options"},_.B(_.u7,{data:function(){return f().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Z,M){return _.B(rjF,{data:Z.data,buttonIndex:M,selectedIndex:function(){return d().index},
onSelect:function(g){q({index:M(),command:g})}})}})),_.B(_.J9,{text:function(){return f().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.B("div",{class:"nudge-form-view-model-wiz__submit"},_.B(_.u7,{data:function(){return f().submitButton}},{buttonViewModel:function(Z){return _.B(C8v,{data:Z.data,
isDisabled:function(){return d().index===-1},
onClick:function(){_.Ph(d().command)}})}})))},"Mb");
gUo.idomCompat=!0;var C8v=_.dN(function(c){var f=_.TZ(function(){return Object.assign({},c.data(),{state:c.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.B(_.mN,{data:f,onClick:c.onClick})},"Nb");_.g_(gUo,"yt-nudge-form-view-model",{props:{data:_.oM}});var Hy=function(){var c=_.z.apply(this,arguments)||this;c.roundedContainer=!0;c.buttonUpdate=_.F("web_modern_buttons");c.isDarkMode=!1;c.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return c};
_.K(Hy,_.z);_.r=Hy.prototype;_.r.computeNudgeStyle=function(c){return c?"modernized-nudge":""};
_.r.handleDarkModeToggledAction=function(c){this.isDarkMode=c};
_.r.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.r.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"}}}};
_.r.computeIsHorizontalButtons=function(c){return c?!!c.applyModernizedStyle&&!!c.enableHorizontalButtons&&!!c.secondaryButton:!1};
_.ci.Object.defineProperties(Hy.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=(c=this.data)==null?void 0:c.backgroundStyle)!=null?f:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=(c=this.data)==null?void 0:c.contentsLocation)!=null?f:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null?0:c.lightIconImage)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],Hy.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Hy.prototype,"actionHandlerBehavior",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("isHideEnclosingAction"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Hy.prototype,"isHidden",null);_.y([_.L(),_.D("design:type",Object)],Hy.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Hy.prototype,"roundedContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Hy.prototype,"buttonUpdate",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.D("design:type",String)],Hy.prototype,"nudgeStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.trimStyle"),_.D("design:type",String),_.D("design:paramtypes",[])],Hy.prototype,"trimStyle",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.backgroundStyle"),_.D("design:type",String),_.D("design:paramtypes",[])],Hy.prototype,"backgroundStyle",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data.contentsLocation"),_.D("design:type",String),_.D("design:paramtypes",[])],Hy.prototype,"contentsLocation",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.disableDropShadow"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Hy.prototype,"noShadow",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.lightIconImage"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Hy.prototype,"noIcon",null);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.D("design:type",Boolean)],Hy.prototype,"isHorizontalButtons",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Object)],Hy.prototype,"isDarkMode",void 0);_.y([_.v({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Hy);
_.h(Hy,"ytd-feed-nudge-renderer",function(){if(Mo_!==void 0)return Mo_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Mo_=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var kQ3;var ObO;var AA=function(){var c=_.z.apply(this,arguments)||this;c.collapsed=!1;c.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return c};
_.K(AA,_.z);AA.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"}}}};
AA.prototype.handleRatingSelect=function(){var c;((c=this.data)==null?0:c.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
AA.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],AA.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],AA.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.WA),_.D("design:type",Object)],AA.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],AA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],AA.prototype,"collapsed",void 0);_.y([_.v({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],AA);
_.h(AA,"ytd-slimline-survey-renderer",function(){if(ObO!==void 0)return ObO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ObO=c},{mode:1});var lRK;var Yi=function(){return _.z.apply(this,arguments)||this};
_.K(Yi,_.z);Yi.prototype.maybeGetBackgroundColor=function(c){return this.isDarkMode?c.section2Color:c.section3Color};
Yi.prototype.colorPaletteChanged=function(){var c=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;c&&(c==null?0:c.secondaryTitleColor)&&this.maybeGetBackgroundColor(c)?(this.hostElement.style.backgroundColor=_.ya(this.maybeGetBackgroundColor(c)),this.hostElement.style.color=_.ya(c.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Yi.prototype.colorPaletteChanged=Yi.prototype.colorPaletteChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],Yi.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Yi.prototype,"data",void 0);_.y([_.L({selector:function(c){return c.ui.darkModeIsEnabled}}),
_.D("design:type",Boolean)],Yi.prototype,"isDarkMode",void 0);_.y([_.L(),_.D("design:type",Object)],Yi.prototype,"lightColorPalette",void 0);_.y([_.L(),_.D("design:type",Object)],Yi.prototype,"darkColorPalette",void 0);_.y([_.m5("darkColorPalette","lightColorPalette","data","isDarkMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Yi.prototype,"colorPaletteChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Yi);
_.h(Yi,"ytd-endorsement-header-renderer",function(){if(lRK!==void 0)return lRK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return lRK=c},{mode:1});_.g_(_.VV,"yt-decorated-avatar-view-model",{props:{data:_.oM,className:_.oM}});_.F0=new _.jk("VIEW_TRANSITION_MANAGER_TOKEN");var tA=function(){var c=_.z.apply(this,arguments)||this;c.fullHeight=_.F("web_rich_grid_media_full_height");c.showChannelAvatar=!0;c.hasPlaylistThumbnail=!1;c.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};c.registerThumbnailForPageTransition=function(){_.F("web_thumbnail_to_watch_transition")&&_.szT(_.ql().resolve(_.F0),c.thumbnail)};
return c};
_.K(tA,_.z);_.r=tA.prototype;
_.r.configureRendererStamper=function(){return{lazyLoadMenu:A6,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"}}}};
_.r.attached=function(){this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.shouldLazyLoadMenu=function(){var c=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.F("kevlar_modern_downloads_page")||!c};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15970_inlinePreviewHoverListener=P9({mediaRenderer:this,lockupElement:this.JSC$15970_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.r.getVideoPreviewOpts=function(){var c={},f;if((f=this.data)==null?0:f.multipleInlinePlaybackEndpoint)c=Zco;this.isRadio&&(c=qL3);return c};
_.r.clearInlinePreviewHoverListeners=function(){var c;(c=this.JSC$15970_inlinePreviewHoverListener)==null||dO(c)};
_.r.getOwner=function(){var c,f,d;return((c=this.data)==null?void 0:(f=c.channelThumbnailSupportedRenderers)==null?void 0:f.channelThumbnailWithLinkRenderer)||_.b((d=this.data)==null?void 0:d.showProviderChannelThumbnail,spu)};
_.r.updateLockupSize=function(){var c;((c=this.getOwner())==null?0:c.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.r.getFeedbackEndpoint=function(c){if(_.b(c,_.Xb))return c;var f,d;c=(d=(f=_.b(c,_.BO))==null?void 0:f.commands)!=null?d:[];f=_.C(c);for(d=f.next();!d.done;d=f.next())if(d=this.getFeedbackEndpoint(d.value))return d;return null};
_.r.computeNavigationEndpoint=function(c){return IGC(c==null?void 0:c.navigationEndpoint)};
_.r.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var c=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(c)!==JSON.stringify(this.data)&&this.set("data",c)}};
_.r.onDataChanged=function(){var c=this,f=this.getOwner();if(f){this.set("data.owner",f);var d,q,Z,M,g,O=((d=this.data)==null?void 0:(q=d.shortBylineText)==null?void 0:(Z=q.runs)==null?void 0:(M=Z[0])==null?void 0:M.text)||((g=f.name)==null?void 0:g.simpleText);this.set("data.owner.title",O)}var l,m,H,A,Y,t;f=((l=this.data)==null?void 0:(m=l.thumbnailRenderer)==null?void 0:m.playlistVideoThumbnailRenderer)||((H=this.data)==null?void 0:(A=H.thumbnailRenderer)==null?void 0:A.playlistCustomThumbnailRenderer)||
((Y=this.data)==null?void 0:(t=Y.thumbnailRenderer)==null?void 0:t.showCustomThumbnailRenderer);var E;((E=this.data)==null?0:E.thumbnail)||!f||this.set("data.thumbnail",f.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){c.updateLockupSize()});
var J;if(l=((J=this.data)==null?void 0:J.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(l);var X;((X=this.dismissActionToReplayEntity)==null?0:X.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.r.onHiddenChanged=function(){this.updateLockupSize()};
_.r.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.gS(this.hostElement,"yt-terminate-video-preview-action");else{var c;(c=this.videoTitleLink)==null||c.focus()}};
_.r.metadataColorChanged=function(){var c;if(this.metadataColor&&((c=this.videoTitle)==null?0:c.style))this.videoTitle.style.color=_.ya(this.metadataColor);else{var f,d;!this.metadataColor&&((f=this.videoTitle)==null?0:(d=f.style)==null?0:d.color)&&(this.videoTitle.style.color="")}};
_.r.onDetailsClick=function(c){var f=this.computedNavigationEndpoint;f&&(_.qY(_.x0(c),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.CZ(this.hostElement,"yt-navigate",{endpoint:f}))};
_.r.onRendererTap=function(){this.registerThumbnailForPageTransition();var c,f,d=((c=this.data)==null?void 0:c.serviceEndpoint)||this.getFeedbackEndpoint((f=this.data)==null?void 0:f.navigationEndpoint);d&&_.b(d,_.Xb)&&this.ytComponentBehavior.resolveCommand(d)};
_.r.onMouseDown=function(c){var f=c.target,d=this.computedNavigationEndpoint,q;c=f.href||((q=_.b(d==null?void 0:d.commandMetadata,_.jO))==null?void 0:q.url);q=f.data||d;c&&q&&cyN(c,q)};
_.r.computeVideoTitleText=function(){var c;if((c=this.data)==null?0:c.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.r.computeHasPlaylistThumbnail=function(c){var f,d,q,Z,M;if((((f=c.thumbnailRenderer)==null?0:f.playlistVideoThumbnailRenderer)||((d=c.thumbnailRenderer)==null?0:d.playlistCustomThumbnailRenderer)||((q=c.thumbnailRenderer)==null?0:q.showCustomThumbnailRenderer)||((Z=c.thumbnailRenderer)==null?0:Z.playlistVideoThumbnailRenderer)||((M=c.thumbnailRenderer)==null?0:M.playlistCustomThumbnailRenderer))&&c.thumbnailOverlays)for(f=0;f<c.thumbnailOverlays.length;f++)if(d=void 0,(d=c.thumbnailOverlays[f])==
null?0:d.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ci.Object.defineProperties(tA.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 c;return(c=this.data)==null?void 0:c.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var c;return(c=this.data)==null?void 0:c.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.JSC$15970_inlinePreviewHoverListener)==null?0:h6(c))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Ah(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:c.videoId)||((f=this.data)==null?void 0:f.playlistId)||""}}});
tA.prototype.onMouseDown=tA.prototype.onMouseDown;tA.prototype.metadataColorChanged=tA.prototype.metadataColorChanged;tA.prototype.onIsDismissedChanged=tA.prototype.onIsDismissedChanged;tA.prototype.onHiddenChanged=tA.prototype.onHiddenChanged;tA.prototype.onDataChanged=tA.prototype.onDataChanged;tA.prototype.handleReloadDownloadsInfo=tA.prototype.handleReloadDownloadsInfo;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],tA.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],tA.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],tA.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],tA.prototype,"ytdReduxBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],tA.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],tA.prototype,"entitySelectorType",void 0);_.y([_.L(),_.D("design:type",Boolean)],tA.prototype,"noEndpoints",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],tA.prototype,"isRadio",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],tA.prototype,"miniMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tA.prototype,"fullHeight",void 0);
_.y([_.L(),_.D("design:type",Boolean)],tA.prototype,"showDarkVideoMetadata",void 0);_.y([_.L(),_.D("design:type",Boolean)],tA.prototype,"showLightVideoMetadata",void 0);_.y([_.L(),_.D("design:type",Number)],tA.prototype,"metadataColor",void 0);_.y([_.L(),_.D("design:type",Object)],tA.prototype,"showChannelAvatar",void 0);_.y([_.L(),_.D("design:type",Boolean)],tA.prototype,"hidden",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],tA.prototype,"showYtInteraction",void 0);
_.y([_.L(),_.D("design:type",String)],tA.prototype,"dismissedContentId",void 0);_.y([_.L({selectorArgs:["dismissedContentId"],selector:IiY}),_.D("design:type",Object)],tA.prototype,"dismissActionToReplayEntity",void 0);
_.y([_.L({selectorArgs:["entitySelectorType","mediaId"],selector:function(c,f,d){if(_.F("kevlar_modern_downloads_page")&&d&&f&&f!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(f){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var q=xIN(c,d);if(q){f=_.hE(c,d);var Z=yR(c,d),M=gHr(c,d);c=Wb(c,d);var g=wLM(q,f,Z,M);Z=g.shortViewCountText;var O=g.publishedTimeText;g=g.badges;var l=c>0;M=vHY(q,f,M,c);q=_.bI(f)||f==="TRANSFER_STATE_FAILED"||f==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!tE(q.policyEntity)?
void 0:eir(d,c,q.videoEntity.lengthSeconds);f==="TRANSFER_STATE_PAUSED_BY_USER"&&d&&!_.F("dl_resume_click_killswitch")&&(q={offlineVideoEndpoint:{videoId:d,action:"ACTION_RESUME"}});d={shortViewCountText:Z,publishedTimeText:O,badges:g,isWatched:l,navigationEndpoint:q,thumbnailOverlays:M}}else d=void 0;return d;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(f=o2n(c,d))if(q=_.wW(c,d),M=_.GGe(c,d),q!=="TRANSFER_STATE_UNKNOWN"){d=hzn(f,q,M,d,_.vb(c));break a}d=void 0}return d;default:_.u6(new _.KD("Error: entitySelectorType defined but not matched in selector.",
c,f))}}}),
_.D("design:type",Object)],tA.prototype,"entityDrivenState",void 0);_.y([_.L({computed:"computeVideoTitleText(data)"}),_.D("design:type",Object)],tA.prototype,"videoTitleText",void 0);_.y([_.L({computed:"computeHasPlaylistThumbnail(data)"}),_.D("design:type",Object)],tA.prototype,"hasPlaylistThumbnail",void 0);_.y([_.L({computed:"computeNavigationEndpoint(data)"}),_.D("design:type",Object)],tA.prototype,"computedNavigationEndpoint",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],tA.prototype,"typographyBump",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("typographyBump"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tA.prototype,"typographyBumpV2",null);_.y([_.AY("#video-title"),_.D("design:type",HTMLElement)],tA.prototype,"videoTitle",void 0);_.y([_.AY("#video-title-link"),_.D("design:type",HTMLElement)],tA.prototype,"videoTitleLink",void 0);
_.y([_.AY("#thumbnail"),_.D("design:type",HTMLElement)],tA.prototype,"thumbnail",void 0);_.y([_.AY("#dismissible"),_.D("design:type",HTMLElement)],tA.prototype,"JSC$15970_dismissibleMedia",void 0);_.y([_.S("data.menu"),_.D("design:type",Object),_.D("design:paramtypes",[])],tA.prototype,"lazyLoadMenu",null);_.y([_.S("data.menu"),_.D("design:type",Object),_.D("design:paramtypes",[])],tA.prototype,"immediateLoadMenu",null);
_.y([_.ba("entityDrivenState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tA.prototype,"handleReloadDownloadsInfo",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tA.prototype,"onDataChanged",null);_.y([_.ba("hidden"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tA.prototype,"onHiddenChanged",null);
_.y([_.m5("isDismissed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tA.prototype,"onIsDismissedChanged",null);_.y([_.m5("metadataColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tA.prototype,"metadataColorChanged",null);_.y([_.Ta("mousedown"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],tA.prototype,"onMouseDown",null);
_.y([_.S("lockupIsHovered"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tA.prototype,"isHovered",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tA.prototype,"useAvatar",null);_.y([_.S("data","entitySelectorType"),_.D("design:type",String),_.D("design:paramtypes",[])],tA.prototype,"mediaId",null);_.y([_.v({is:"ytd-rich-grid-media",disableElementRegistration:!0})],tA);
var BQ3=_.OD()(tA,"ytd-rich-grid-media",function(){if(kQ3!==void 0)return kQ3;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return kQ3=c},{mode:_.lP("kevlar_poly_si_batch_j072")?1:2});var ibu;var by=function(){var c=_.z.apply(this,arguments)||this;c.removeMaxWidth=!0;c.insetMetadata=!1;return c};
_.K(by,_.z);_.r=by.prototype;_.r.configureRendererStamper=function(){return{innerMenu:A6,outerMenu:Object.assign({},A6,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.r.onDataChanged=function(){var c,f=((c=this.data)==null?void 0:c.trackingParams)||"";f&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(f));var d;((d=this.dismissActionToReplayEntity)==null?0:d.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.r.attached=function(){this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$15975_inlinePreviewHoverListener=P9({mediaRenderer:this,lockupElement:this.JSC$15975_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:M2T})};
_.r.clearInlinePreviewHoverListeners=function(){var c;(c=this.JSC$15975_inlinePreviewHoverListener)==null||dO(c)};
_.r.onRendererTap=function(){var c,f,d=(c=this.data)==null?void 0:(f=c.serviceEndpoints)==null?void 0:f[0];_.b(d,_.Xb)&&this.componentBehavior.resolveCommand(d)};
_.r.onDetailsClick=function(c){var f,d=(f=this.data)==null?void 0:f.navigationEndpoint;d&&(_.qY(_.x0(c),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(d))};
_.r.onShow=function(){var c=this.data;c.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(c.onFirstVisibleCommand),delete c.onFirstVisibleCommand)};
_.ci.Object.defineProperties(by.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var c;return this.insetMetadata?void 0:(c=this.data)==null?void 0:c.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var c;return this.insetMetadata?(c=this.data)==null?void 0:c.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var c=this.data;if(c!=null&&c.badge&&(c=_.b(c.badge,QE3))){var f,d,q;return[{metadataBadgeRenderer:{label:((f=c.label)==null?void 0:(d=f.runs)==null?void 0:d[0].text)||((q=c.label)==null?void 0:q.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var c=this.data;return Object.assign({},c.headline,{accessibility:c.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return this.isSlimShort?(c=this.computedTitle)==null?void 0:(f=c.accessibility)==null?void 0:(d=f.accessibilityData)==null?void 0:d.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 c;return!((c=this.JSC$15975_inlinePreviewHoverListener)==null?0:h6(c))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
by.prototype.onDataChanged=by.prototype.onDataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],by.prototype,"componentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],by.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.WA),_.D("design:type",Object)],by.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],by.prototype,"ytdReduxBehavior",void 0);_.y([_.AY("ytd-thumbnail"),_.D("design:type",HTMLElement)],by.prototype,"thumbnail",void 0);_.y([_.AY("#dismissible"),_.D("design:type",HTMLElement)],by.prototype,"JSC$15975_dismissibleMedia",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],by.prototype,"removeMaxWidth",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],by.prototype,"insetMetadata",void 0);_.y([_.L(),_.D("design:type",String)],by.prototype,"dismissedContentId",void 0);_.y([_.L({selectorArgs:["dismissedContentId"],selector:IiY}),_.D("design:type",Object)],by.prototype,"dismissActionToReplayEntity",void 0);_.y([_.S("insetMetadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],by.prototype,"thumbnailObjectFit",null);
_.y([_.S("data","insetMetadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],by.prototype,"innerMenu",null);_.y([_.S("data","insetMetadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],by.prototype,"outerMenu",null);_.y([_.L(),_.D("design:type",Object)],by.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],by.prototype,"miniMode",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],by.prototype,"onDataChanged",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],by.prototype,"shortsBadges",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],by.prototype,"isShort",null);
_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],by.prototype,"isSlimShort",null);_.y([_.S("data","isShort"),_.D("design:type",Object),_.D("design:paramtypes",[])],by.prototype,"computedTitle",null);_.y([_.S("isSlimShort","computedTitle"),_.D("design:type",Object),_.D("design:paramtypes",[])],by.prototype,"computedAccessibilityLabel",null);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],by.prototype,"shouldForce2By3",null);_.y([_.S("lockupIsHovered"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],by.prototype,"isHovered",null);_.y([_.v({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],by);
_.h(by,"ytd-rich-grid-slim-media",function(){if(ibu!==void 0)return ibu;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ibu=c},{mode:_.lP("kevlar_poly_si_batch_j063")?1:2});var TQ_;var m1u;var Kf=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(Kf,_.z);Kf.prototype.computeIcon=function(c){return c&&c.iconType?"yt-sys-icons:"+c.iconType.toLowerCase():""};
Kf.prototype.onMouseEnter=function(){this.isHovered=!0};
Kf.prototype.onMouseLeave=function(){this.isHovered=!1};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Kf.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Kf.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Kf.prototype,"isHovered",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kf.prototype,"darkerDarkTheme",void 0);_.y([_.v({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Kf);
_.h(Kf,"ytd-expand-on-hover-card-renderer",function(){if(m1u!==void 0)return m1u;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return m1u=c},{mode:1});var HbT,Aj_=function(){if(HbT!==void 0)return HbT;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return HbT=c};_.w_("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Ee=function(){var c=_.z.apply(this,arguments)||this;c.compactStyle=!1;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(Ee,_.z);_.r=Ee.prototype;_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.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"}}}};
_.r.computeHideDot=function(c){return!(c&&c.subscriberCountText&&c.videoCountText)||this.compactStyle};
_.r.hasDualButtons=function(c){return c&&c.purchaseButton&&c.subscribeButton};
_.r.backgroundColorChanged=function(){if(this.data!==void 0){var c=this.data.backgroundColor;this.isDarkTheme&&(c=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=c!=null?_.ya(c):"transparent"}};
_.r.onDarkModeToggledAction=function(c){this.isDarkTheme=c};
_.r.onTap=function(c){var f,d,q=((f=this.data)==null?void 0:f.navigationEndpoint)||((d=this.data)==null?void 0:d.serviceEndpoint);_.b(q,_.qC)&&(q&&_.ql().resolve(_.ZM).resolveCommand(q,{form:{element:this.hostElement}}),c.preventDefault())};
_.r.computeChannelEndpoint=function(c){return _.b(c,_.qC)?null:c};
_.r.computeHrefEndpoint=function(c){return _.b(c,_.qC)?null:this.componentBehavior.computeHref_(c)};
_.r.computeChannelRendererStyle=function(c){return c};
_.r.computeIconSize=function(c){return c?108:136};
_.ci.Object.defineProperties(Ee,{template:{configurable:!0,enumerable:!0,get:function(){return Aj_()}}});
Ee.prototype.backgroundColorChanged=Ee.prototype.backgroundColorChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ee.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],Ee.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Ee.prototype,"componentBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Ee.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ee.prototype,"isDarkTheme",void 0);_.y([_.L({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.D("design:type",String)],Ee.prototype,"channelRendererStyle",void 0);_.y([_.L({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Ee.prototype,"dualButtons",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.D("design:type",Boolean)],Ee.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],Ee.prototype,"biggerThumbStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ee.prototype,"compactStyle",void 0);_.y([_.m5("data","isDarkTheme"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ee.prototype,"backgroundColorChanged",null);_.y([_.v({is:"ytd-channel-renderer",disableElementRegistration:!0})],Ee);_.h(Ee,"ytd-channel-renderer",function(){return Aj_()},{mode:1});var YEF;var FmT;_.w_("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var nf=function(){var c=_.z.apply(this,arguments)||this;c.displayItemCount=2;c.collections=_.F("web_modern_collections_v2");c.hasPlaylistThumbnail=!1;c.stackThumbnailSize="large";return c};
_.K(nf,_.z);_.r=nf.prototype;_.r.attached=function(){this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.r.computeFirstVideos=function(c,f){return c&&f?c.slice(0,f):[]};
_.r.computeThumbnailWidth=function(c,f){return c?f==="BIG"?500:f==="MASSIVE"?600:f==="MEDIUM"?450:420:360};
_.r.computeThumbnailHeight=function(c,f){return c?f==="BIG"?280:f==="MASSIVE"?337:234:202};
_.r.clearInlinePreviewHoverListeners=function(){var c;(c=this.JSC$15988_inlinePreviewHoverListener)==null||dO(c)};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15988_inlinePreviewHoverListener=P9({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Zco,thumbnailElement:this.thumbnail})};
_.r.computeHasPlaylistThumbnail=function(c){var f,d;if((((f=c.thumbnailRenderer)==null?0:f.playlistVideoThumbnailRenderer)||((d=c.thumbnailRenderer)==null?0:d.playlistCustomThumbnailRenderer))&&c.thumbnailOverlays)for(f=0;f<c.thumbnailOverlays.length;f++)if(d=void 0,(d=c.thumbnailOverlays[f])==null?0:d.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ci.Object.defineProperties(nf.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.JSC$15988_inlinePreviewHoverListener)==null?0:h6(c))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
nf.prototype.dataChanged=nf.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],nf.prototype,"ytdLockupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nf.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],nf.prototype,"displayItemCount",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.D("design:type",Boolean)],nf.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],nf.prototype,"biggerThumbsStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],nf.prototype,"collections",void 0);_.y([_.L({computed:"computeHasPlaylistThumbnail(data)"}),_.D("design:type",Object)],nf.prototype,"hasPlaylistThumbnail",void 0);_.y([_.L(),_.D("design:type",String)],nf.prototype,"stackThumbnailSize",void 0);_.y([_.AY("ytd-thumbnail"),_.D("design:type",HTMLElement)],nf.prototype,"thumbnail",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nf.prototype,"dataChanged",null);_.y([_.S("lockupIsHovered"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],nf.prototype,"isHovered",null);_.y([_.v({is:"ytd-radio-renderer",disableElementRegistration:!0})],nf);
_.h(nf,"ytd-radio-renderer",function(){if(FmT!==void 0)return FmT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return FmT=c},{mode:_.lP("kevlar_poly_si_batch_j058")?1:2});var toH;_.w_("itemSectionRenderer","showRenderer","ytd-show-renderer");var $i=function(){return _.z.apply(this,arguments)||this};
_.K($i,_.z);$i.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$i.prototype.computeThumbnailWidth=function(c){return c?360:246};
$i.prototype.computeUseProminentThumbs=function(c){return c};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$i.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],$i.prototype,"isSearch",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.D("design:type",Boolean)],$i.prototype,"useProminentThumbs",void 0);_.y([_.v({is:"ytd-show-renderer",disableElementRegistration:!0})],$i);
_.h($i,"ytd-show-renderer",function(){if(toH!==void 0)return toH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return toH=c},{mode:1});_.w_("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Qz=function(){var c=_.z.apply(this,arguments)||this;c.isRichGrid=!1;return c};
_.K(Qz,_.z);Qz.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"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Qz.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Qz.prototype,"isRichGrid",void 0);_.y([_.v({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Qz);
_.h(Qz,"ytd-feed-entry-renderer",function(){if(YEF!==void 0)return YEF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return YEF=c},{mode:1});var bbH;var SE=function(){return _.z.apply(this,arguments)||this};
_.K(SE,_.z);SE.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.y([_.Q(_.wt),_.D("design:type",Object)],SE.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],SE.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],SE.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.VR,value:3}),_.D("design:type",Number)],SE.prototype,"itemsPerRow",void 0);
_.y([_.v({is:"ytd-link-card-renderer",disableElementRegistration:!0})],SE);
_.h(SE,"ytd-link-card-renderer",function(){if(bbH!==void 0)return bbH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return bbH=c},{mode:1});var KmO;var Lf=function(){return _.z.apply(this,arguments)||this};
_.K(Lf,_.z);_.r=Lf.prototype;_.r.configureRendererStamper=function(){return{"data.menu":A6,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.r.onRendererTap=function(c){if(!this.ytdDismissibleItemBehavior.isDismissed){var f,d=(f=this.data)==null?void 0:f.navigationEndpoint;d&&!_.qY(_.x0(c),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(d)?_.qY(_.x0(c),this.hostElement,["A"])||_.CZ(this.hostElement,"yt-navigate",{endpoint:d}):this.ytComponentBehavior.resolveCommand(d,{}))}};
_.r.maybeComputeHref=function(c){return this.ytComponentBehavior.computeHref_(c,!0)};
_.r.getNavigationCommand=function(c){return this.isNavigationCommand(c)?c:null};
_.r.isNavigationCommand=function(c){return c?_.b(c,_.Fw)||_.b(c,_.pe)||_.b(c,_.Ib)?!0:!1:!1};
Lf.prototype.onRendererTap=Lf.prototype.onRendererTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],Lf.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Lf.prototype,"ytComponentBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Lf.prototype,"data",void 0);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Lf.prototype,"onRendererTap",null);_.y([_.v({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Lf);
_.h(Lf,"ytd-lumiere-promo-item-image-renderer",function(){if(KmO!==void 0)return KmO;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return KmO=c},{mode:1});var EUT;var zS=function(){return _.z.apply(this,arguments)||this};
_.K(zS,_.z);zS.prototype.computeLandscapeThumbnail=function(){var c;return((c=this.data)==null?void 0:c.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],zS.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zS.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],zS.prototype,"miniMode",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.VR}),_.D("design:type",Number)],zS.prototype,"itemsPerRow",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.D("design:type",Boolean)],zS.prototype,"landscapeThumbnail",void 0);_.y([_.v({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],zS);
_.h(zS,"ytd-lumiere-shelf-details-renderer",function(){if(EUT!==void 0)return EUT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return EUT=c},{mode:_.lP("kevlar_poly_si_batch_j076")?1:2});var nU3;var JA=function(){return _.z.apply(this,arguments)||this};
_.K(JA,_.z);JA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],JA.prototype,"data",void 0);_.y([_.v({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],JA);
_.h(JA,"ytd-primetime-promo-details-renderer",function(){if(nU3!==void 0)return nU3;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return nU3=c},{mode:1});var $1K;var aH=function(){return _.z.apply(this,arguments)||this};
_.K(aH,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],aH.prototype,"data",void 0);_.y([_.v({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],aH);
_.h(aH,"ytd-panel-show-style-metadata-renderer",function(){if($1K!==void 0)return $1K;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $1K=c},{mode:1});var QzO;var Vz=function(){return _.z.apply(this,arguments)||this};
_.K(Vz,_.z);_.r=Vz.prototype;_.r.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.r.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.r.computeThumbnail=function(c){if(c)return c.smallFormFactorBackgroundThumbnail||c.largeFormFactorBackgroundThumbnail};
_.r.maybeComputeHref=function(c){return this.ytComponentBehavior.computeHref_(c,!0)};
_.r.isNavigationCommand=function(c){return c?_.b(c,_.Fw)||_.b(c,_.pe)||_.b(c,_.Ib)?!0:!1:!1};
_.r.getNavigationCommand=function(c){return this.isNavigationCommand(c)?c:null};
Vz.prototype.onPanelTap=Vz.prototype.onPanelTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Vz.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Vz.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],Vz.prototype,"roundedContainer",void 0);_.y([_.L({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.D("design:type",Boolean)],Vz.prototype,"modernButtons",void 0);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Vz.prototype,"onPanelTap",null);_.y([_.v({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Vz);
_.h(Vz,"ytd-primetime-promo-panel-renderer",function(){if(QzO!==void 0)return QzO;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return QzO=c},{mode:1});_.g_(_.dN(function(c){c=_.ch(c,{data:{},useFullWidth:!1});var f=c.data,d=c.useFullWidth;c={};return _.B("teaser-card-view-model",{class:_.FY("ytTeaserCardViewModelHost",(c.ytTeaserCardViewModelUseFullWidth=function(){return d()},c))},_.B(_.T,{cond:function(){return f().onTap},
then:function(q){return _.B(_.Re,{className:"ytTeaserCardViewModelLink",command:q},_.B("div",{class:"ytTeaserCardViewModelImageContainer"},_.B(_.T,{cond:function(){return f().image},
then:function(Z){return _.B(_.jC,{data:Z,className:"ytTeaserCardViewModelImage",alt:""})}})),_.B("p",{class:"ytTeaserCardViewModelCaption"},function(){return f().caption}))}}))},"Ob"),"teaser-card-view-model",{props:{data:_.oM,
useFullWidth:_.oM}});var SE3=new _.jk("RICH_GRID_VIDEO_RENDERER_TOKEN");_.g_(_.dN(function(c){var f=c.data;var d=c.showYtInteractionInContent;var q=function(){return!!f().selectableFeedback};
c=_.C(_.OT(!1,void 0,"nblDw"));var Z=c.next().value,M=c.next().value;_.L9(function(){var Y=_.b(f().primaryButton,_.Jc);(Y==null?0:Y.isToggled)&&M(Y.isToggled)});
c=_.Ks(function(Y){if(!q())return!1;if(Z()){var t;var E=(t=f().selectableFeedback)==null?void 0:t.onDeselect}else{var J;E=(J=f().selectableFeedback)==null?void 0:J.onSelect}E&&_.Ph(E,{form:{element:Y.target}});M(!Z());if(Y=_.b(f().primaryButton,_.Jc))Y.isToggled=Z();return!1});
var g=function(){if(!q()){var Y,t=(Y=f().loggingDirectives)==null?void 0:Y.trackingParams;t&&_.mZ(_.ql().resolve(_.z1),t)}},O=_.p7l(),l=function(){var Y;
return q()?(Y=f().selectableFeedback)==null?void 0:Y.a11yLabel:void 0},m=function(){return q()?{toggled:Z()}:{}},H=_.ql().resolve(_.dx(SE3)),A={};
return _.B("yt-feedback-item-renderer",{class:_.FY("ytFeedbackItemRendererHost",(A.ytFeedbackItemRendererSelectableFeedback=q,A)),"on:click":c,"on:keydown":O,title:l,"aria-label":l,"aria-pressed":function(){return q()?Z():void 0},
tabindex:function(){return q()?0:void 0},
role:function(){return q()?"button":void 0}},_.B("div",{class:"ytFeedbackItemRendererContentContainer"},_.B(_.u7,{data:function(){return f().content}},{videoRenderer:function(Y){return _.B(H,{data:Y.data,
showYtInteraction:d})},
lockupViewModel:function(Y){return _.B(_.s7,{data:Y.data,containerType:2})}})),_.B("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.B(_.u7,{data:function(){return f().primaryButton}},{toggleButtonViewModel:function(Y){return _.B(_.JL,{data:Y.data,
buttonShapeOverrides:m,disableExplicitClickLogging:!0,onToggle:g})}})))},"Pb"),"yt-feedback-item-renderer",{props:{data:_.oM,
showYtInteractionInContent:_.oM}});var X0=function(){var c=_.z.apply(this,arguments)||this;c.isShortsGrid=!1;c.isCompactGrid=!1;c.isShortsPanelGrid=!1;c.renderedFromRichGrid=!1;c.isInFirstColumn=!1;c.noGutterMargins=!1;c.isInlineGroupItem=!1;c.insetMetadata=!1;c.noBottomMarginInAds=!0;c.force16By9ThumbnailAspectRatio=!1;c.useCompactList=!1;c.containerType=2;c.thumbnailTargetWidth=9999;c.isResponsiveGrid=!1;c.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};c.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};
c.hoverListener=c.hover.bind(c);c.leaveListener=c.leave.bind(c);c.highlighted=!1;c.JSC$16023_unsubscribeFromInlinePreviewIsActive=function(){};
return c};
_.K(X0,_.z);_.r=X0.prototype;_.r.computeContainerType=function(){return this.useCompactList?3:2};
_.r.computeThumbnailTargetWidth=function(){var c;return(c=this.itemWidth)!=null?c:9999};
_.r.updateIsInFirstColumn=function(){var c;this.isInFirstColumn=((c=this.data)==null?void 0:c.colIndex)===0};
_.r.observerContainerType=function(){if(this.lockup){var c=this.lockup;c.containerType=this.containerType;c.sizing=this.sizing;c.typographyBump=this.typographyBump;c.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)};
_.r.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]]"}}}}}};
_.r.leave=function(c){c=c.relatedTarget;var f=document.querySelector("ytd-video-preview");c&&f&&_.C$(f).contains(c)||this.removeAndCleanupHighlight()};
_.r.hover=function(){var c;if(!this.highlighted&&(!_.F("web_enable_rich_item_on_focus_effect")||(c=this.data)!=null&&c.onFocusEffect)){var f,d;((f=this.data)==null?void 0:(d=f.onFocusEffect)==null?void 0:d.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(c=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:c,boxShadow:"0 0 0 10px "+c}));var q,Z;((q=this.data)==null?void 0:(Z=q.onFocusEffect)==null?void 0:
Z.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.r.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};
_.r.registerHoverHighlightListeners=function(){var c=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16023_unsubscribeFromInlinePreviewIsActive=_.bj(_.Gh(),_.eek,function(f){c.highlighted&&!f&&c.removeAndCleanupHighlight()})};
_.r.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16023_unsubscribeFromInlinePreviewIsActive()};
_.r.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.r.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.r.getBackgroundColor=function(){var c,f,d=(c=this.data)==null?void 0:(f=c.onFocusEffect)==null?void 0:f.onFocusColor;if(d){if(document.documentElement.hasAttribute("dark")&&(d==null?0:d.darkTheme))return _.ya(d==null?void 0:d.darkTheme);if(d==null?0:d.lightTheme)return _.ya(d==null?void 0:d.lightTheme)}};
_.r.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var c=_.X2(),f,d,q;c&&((f=this.data)==null?0:f.trackingParams)&&((d=this.data)==null?void 0:d.colIndex)!=null&&((q=this.data)==null?void 0:q.rowIndex)!=null&&_.xt(c,_.Q1(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.r.isSlimMediaRenderer=function(c){return!!_.b(c==null?void 0:c.content,_.ZnH)||!!_.b(c==null?void 0:c.content,qUr)||!!_.b(c==null?void 0:c.content,_.yb)||!!_.b(c==null?void 0:c.content,Ef3)};
_.r.isPostRenderer=function(){var c,f;return!!_.b((c=this.data)==null?void 0:c.content,x0K)||!!_.b((f=this.data)==null?void 0:f.content,oxy)};
_.r.computeIsGameCardShelf=function(){var c;return!!_.b((c=this.data)==null?void 0:c.content,CBT)};
_.r.computeIsMiniGameCardShelf=function(){var c,f;return!!_.b((c=this.data)==null?void 0:c.content,tkO)||!!_.b((f=this.data)==null?void 0:f.content,biu)};
_.r.computeIsTeaserCard=function(){var c;return!!_.b((c=this.data)==null?void 0:c.content,biu)};
_.r.computeIsSelectableFeedbackItem=function(){var c,f;return!((f=_.b((c=this.data)==null?void 0:c.content,_.E3j))==null||!f.selectableFeedback)};
_.r.computeContainsLumierePosters=function(){var c,f;return((f=_.b((c=this.data)==null?void 0:c.content,Cp_))==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.r.computeIsExpandOnHoverCardShelf=function(){var c;return!!_.b((c=this.data)==null?void 0:c.content,rCT)};
_.r.computeIsLinkCardShelf=function(){var c;return!!_.b((c=this.data)==null?void 0:c.content,VIF)};
_.r.computeIsReelItemStyleAvatarCircle=function(c){var f;return((f=_.b(c==null?void 0:c.content,_.yb))==null?void 0:f.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.r.computeIsLinkCardFullWidth=function(c,f){var d;return((d=_.b(c==null?void 0:c.content,VIF))==null?void 0:d.useFullWidth)||f<=2};
_.ci.Object.defineProperties(X0.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}}});
X0.prototype.richGridHoverHighlightChanged=X0.prototype.richGridHoverHighlightChanged;X0.prototype.observerContainerType=X0.prototype.observerContainerType;X0.prototype.updateIsInFirstColumn=X0.prototype.updateIsInFirstColumn;_.y([_.Q(_.wt),_.D("design:type",Object)],X0.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],X0.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],X0.prototype,"ytdLockupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],X0.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.D("design:type",Boolean)],X0.prototype,"isPost",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.D("design:type",Boolean)],X0.prototype,"containsLumierePosters",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.D("design:type",Boolean)],X0.prototype,"isSlimMedia",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.D("design:type",Boolean)],X0.prototype,"isGameCardShelf",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.D("design:type",Boolean)],X0.prototype,"isMiniGameCardShelf",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.D("design:type",Boolean)],X0.prototype,"isTeaserCard",void 0);_.y([_.L({computed:"computeIsSelectableFeedbackItem(data)"}),_.D("design:type",Boolean)],X0.prototype,"isSelectableFeedbackItem",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"isShortsGrid",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],X0.prototype,"isSlimGrid",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"isCompactGrid",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"isShortsPanelGrid",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.D("design:type",Boolean)],X0.prototype,"isExpandOnHoverCardShelf",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.D("design:type",Boolean)],X0.prototype,"isLinkCardShelf",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.VR,value:3}),_.D("design:type",Number)],X0.prototype,"itemsPerRow",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"renderedFromRichGrid",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"isInFirstColumn",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"noGutterMargins",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"isInlineGroupItem",void 0);_.y([_.L(),_.D("design:type",Object)],X0.prototype,"insetMetadata",void 0);
_.y([_.L(),_.D("design:type",Object)],X0.prototype,"noBottomMarginInAds",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],X0.prototype,"isShelfItem",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.D("design:type",Boolean)],X0.prototype,"isReelItemStyleAvatarCircle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.D("design:type",Boolean)],X0.prototype,"isLinkCardFullWidth",void 0);
_.y([_.L(),_.D("design:type",Object)],X0.prototype,"force16By9ThumbnailAspectRatio",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"useCompactList",void 0);_.y([_.L(),_.D("design:type",String)],X0.prototype,"sizing",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],X0.prototype,"typographyBump",void 0);_.y([_.L(),_.D("design:type",Number)],X0.prototype,"itemWidth",void 0);_.y([_.L(),_.D("design:type",Boolean)],X0.prototype,"isHomeShelf",void 0);
_.y([_.L(),_.D("design:type",Boolean)],X0.prototype,"isHomeGrid",void 0);_.y([_.AY("yt-lockup-view-model"),_.D("design:type",HTMLElement)],X0.prototype,"lockup",void 0);_.y([_.AY("ytd-rich-grid-media"),_.D("design:type",HTMLElement)],X0.prototype,"richGridMedia",void 0);_.y([_.AY("ytd-ad-slot-renderer"),_.D("design:type",HTMLElement)],X0.prototype,"adSlotRenderer",void 0);_.y([_.L({computed:"computeContainerType(useCompactList)"}),_.D("design:type",Object)],X0.prototype,"containerType",void 0);
_.y([_.L({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.D("design:type",Object)],X0.prototype,"thumbnailTargetWidth",void 0);_.y([_.S("showYtInteractionOnRichItem"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],X0.prototype,"showYtInteractionOnRichGridMedia",null);_.y([_.S("isSelectableFeedbackItem","richGridHoverHighlight"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],X0.prototype,"showYtInteractionOnRichItem",null);
_.y([_.S("typographyBump","isHomeGrid"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],X0.prototype,"richTypographyBump",null);_.y([_.L({reflectToAttribute:!0}),_.S("isShortsGrid","isCompactGrid"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],X0.prototype,"richGridHoverHighlight",null);_.y([_.S("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.D("design:type",Number),_.D("design:paramtypes",[])],X0.prototype,"shortsLockupViewModelAspectRatio",null);
_.y([_.S("isInlineGroupItem"),_.D("design:type",Number),_.D("design:paramtypes",[])],X0.prototype,"shortsLockupViewModelScrimStyle",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],X0.prototype,"updateIsInFirstColumn",null);_.y([_.m5("containerType","sizing","typographyBump"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],X0.prototype,"observerContainerType",null);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],X0.prototype,"isResponsiveGrid",void 0);_.y([_.L(),_.D("design:type",Object)],X0.prototype,"lockupExperiments",void 0);_.y([_.m5("richGridHoverHighlight"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],X0.prototype,"richGridHoverHighlightChanged",null);_.y([_.v({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],X0);
_.Lm_=_.OD()(X0,"ytd-rich-item-renderer",function(){if(TQ_===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);TQ_=c}c=TQ_;return c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var lQk={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var EVY=_.pC(_.HO("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Beh={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},TeY={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},mnk={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var z7u;var uy=function(){var c=_.z.apply(this,arguments)||this;c.useResponsiveGrid=!1;c.hidden=!1;c.standardShelfMargins=_.F("web_rich_grid_standard_shelf_margins");c.isShowMoreHidden=!1;c.isExpanded=!1;c.isInnerShelf=!1;c.allVideosCount=0;c.allPlaylistCount=0;c.haveSmartDownloadsCompleted=!1;c.isShowLessHidden=!0;c.restrictContentsOverflow=!1;c.firstShownIndex=0;c.horizontalOffset=0;c.atEnd=!0;c.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};c.nextClick=function(){var f;(f=c.data)!=null&&f.contents&&(c.firstShownIndex+=c.currentElementsPerRow,c.updateHorizontalOffset(),c.updateHorizontalItemVisibility())};
c.previousClick=function(){var f;(f=c.data)!=null&&f.contents&&(c.firstShownIndex-=c.currentElementsPerRow,c.updateHorizontalOffset(),c.updateHorizontalItemVisibility())};
return c};
_.K(uy,_.z);_.r=uy.prototype;
_.r.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:_.hk("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.r.attached=function(){this.requestElementsPerRow()};
_.r.refreshGridLayoutNew=function(){var c;if((c=this.data)!=null&&c.contents&&this.containerWidth){var f;((f=this.data.responsiveContainerConfiguration)==null?0:f.responsiveSize)?(c=_.Q1C(this.data.responsiveContainerConfiguration,this.containerWidth),c=_.xv(Object.assign({},c,{standardUnitMinWidth:this.standardUnitMinWidth}))):c=_.xv({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=c.typographyBump;if(this.elementsPerRow!==
c.numItems||this.gutter!==c.gutter)this.elementsPerRow=c.numItems,this.gutter=c.gutter,this.itemWidth=c.itemWidth,_.la(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":c.gutter+"px"})}};
_.r.computeSizing=function(){if(!this.isLumiere){var c=_.x3Y(this.data);if(c)return c;if(_.F("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.r.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.r.computeButton=function(c){var f=_.b(c,_.WQ);c=Object.assign({},_.b(c,_.WQ));return f?(c.text||(c.text={simpleText:c.tooltip}),c.style="STYLE_MONO_OUTLINE",c.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",c):f};
_.r.onRowIndexChange=function(){var c=_.X2(),f,d;((f=this.data)==null?0:f.trackingParams)&&((d=this.data)==null?void 0:d.rowIndex)!=null&&c&&_.xt(c,_.Q1(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.r.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var c,f=((c=this.getRichItemRenderers()[0])==null?void 0:c.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*f;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.r.requestElementsPerRow=function(){_.CZ(this.hostElement,"yt-request-elements-per-row")};
_.r.onUpdateElementsPerRowAction=function(c,f,d,q,Z,M){if(this.containerWidth!==M&&(this.containerWidth=M,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&c&&f&&d&&q&&Z&&(this.elementsPerRow!==c||this.postsPerRow!==f||this.slimItemsPerRow!==d||this.gameCardsPerRow!==q||this.miniGameCardsPerRow!==Z)&&(this.elementsPerRow=c,this.postsPerRow=f,this.slimItemsPerRow=d,this.gameCardsPerRow=q,this.miniGameCardsPerRow=Z,this.updateItemVisibility())};
_.r.getRichItemRenderers=function(){return _.r1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.r.updateItemVisibility=function(){var c=this;if(this.data&&this.data.contents){var f=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(q,Z){var M;((M=c.data)==null?0:M.isExpanded)?(q.hidden=Z>f-1,q.ytRendererBehavior.markDirty()):q.hidden=Z>c.currentElementsPerRow-1||Z>f-1});
var d=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||d||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||d||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.r.setHeightToSingleRow=function(){var c=this.getRichItemRenderers(),f=Number.parseInt(getComputedStyle(c[0]).marginBottom,10)||0;c=c.slice(0,this.currentElementsPerRow).reduce(function(d,q){return Math.max(d,q.getBoundingClientRect().height+f)},0);
this.contents.style.height=c+"px"};
_.r.focusNextExpandedItem=function(){var c;((c=this.data)==null?0:c.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.r.focusItem=function(c,f){var d=this.getRichItemRenderers();if(d[c]&&(c=d[c].querySelector(".focus-on-expand"))){if(f){var q;(q=d[this.currentElementsPerRow])==null||q.scrollIntoView({behavior:"smooth",block:"center"})}c.focus({preventScroll:!0})}};
_.r.onDataChange=function(){var c=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var f;if((f=this.data)==null?0:f.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.ol(this,function(){c.updateItemVisibility()});
var d;if((d=this.data)==null?0:d.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.la(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),f=0;f<this.data.contents.length;f++)d=_.b(this.data.contents[f],_.JB)||{},d.colIndex=f,d.rowIndex=this.data.rowIndex};
_.r.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())};
_.r.blockInlinePreview=function(c){var f=this,d;return _.k(function(q){(d=f.inlinePreviewIsEnabled)&&f.ytdReduxBehavior.dispatch(_.iQ_(!1));return q.return(new Promise(function(Z){c(function(){d&&f.ytdReduxBehavior.dispatch(_.iQ_(!0));Z()})}))})};
_.r.expandShelf=function(){var c=this;if(this.data){var f,d=(f=_.b(this.data.showMoreButton,_.WQ))==null?void 0:f.trackingParams;d&&_.mZ(_.bP(),d);this.data.isExpanded=!0;this.blockInlinePreview(function(q){c.setHeightToSingleRow();c.updateItemVisibility();c.contents.style.height=c.contents.scrollHeight+"px";_.a7.addJob(function(){c.contents.style.height="auto";c.focusNextExpandedItem();q()},2,200)})}};
_.r.collapseShelf=function(){var c=this;return _.k(function(f){if(f.nextAddress==1){if(!c.data)return f.return();c.data.isExpanded=!1;return f.yield(c.blockInlinePreview(function(d){c.contents.style.height=c.contents.scrollHeight+"px";c.setHeightToSingleRow();_.a7.addJob(function(){c.updateItemVisibility();c.contents.style.height="auto";d()},2,200)}),2)}_.CZ(c.hostElement,"yt-rich-shelf-renderer-collapse",c.data.trackingParams);
c.focusItem(0,!1);_.Fm(f)})};
_.r.updateArrowButtonStatus=function(){var c=this.getRichItemRenderers().length;if(!_.F("web_rich_shelf_renderer_use_data_contents_killswitch")){var f,d;c=((f=this.data)==null?void 0:(d=f.contents)==null?void 0:d.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=c};
_.r.onChildElementFocus=function(c){this.hasChevronButtons&&(c=c.target.closest("#contents > *"),this.contents.contains(c)&&(c.offsetLeft<this.horizontalOffset?this.previousClick():c.offsetLeft+c.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.r.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.hk("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.r.updateHorizontalOffset=function(){var c=this.getRichItemRenderers(),f=c.length;if(!_.F("web_rich_shelf_renderer_use_data_contents_killswitch")){var d,q;f=((d=this.data)==null?void 0:(q=d.contents)==null?void 0:q.length)||0}var Z;c=((Z=c[0])==null?void 0:Z.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>f?this.firstShownIndex=f-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*c};
_.r.isSlimMediaShelfRenderer=function(){var c,f,d,q=(d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB))==null?void 0:d.content;return!!(_.b(q,_.ZnH)||_.b(q,qUr)||_.b(q,_.yb)||_.b(q,Ef3))};
_.r.isGameCardShelf=function(){var c,f,d,q=(d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB))==null?void 0:d.content;return!!_.b(q,CBT)};
_.r.isGnomeShelf=function(){var c,f,d,q=(d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB))==null?void 0:d.content;return!!_.b(q,_.E3j)};
_.r.isMiniGameCardShelf=function(){var c,f,d,q=(d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB))==null?void 0:d.content;return!!_.b(q,tkO)||!!_.b(q,biu)};
_.r.hasGameBoxArtAvatarStyle=function(){var c;return((c=this.data)==null?void 0:c.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.r.hasRoundedGameBoxArtAvatarStyle=function(){var c;return((c=this.data)==null?void 0:c.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.r.isShortsShelf=function(){var c,f,d,q=(d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB))==null?void 0:d.content;return!!_.b(q,_.yb)||!!_.b(q,Ef3)};
_.r.isPostShelfRenderer=function(){var c,f,d,q=(d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB))==null?void 0:d.content;return!(!_.b(q,x0K)&&!_.b(q,oxy))};
_.r.isLumiereShelf=function(){var c,f,d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB);return!!_.b(d==null?void 0:d.content,Cp_)};
_.r.isLumiereShelfWithPosters=function(){var c,f,d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB),q;return((q=_.b(d==null?void 0:d.content,Cp_))==null?void 0:q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.r.isExpandOnHoverCardShelf=function(){var c,f,d,q=(d=_.b((c=this.data)==null?void 0:(f=c.contents)==null?void 0:f[0],_.JB))==null?void 0:d.content;return!!_.b(q,rCT)};
_.r.computeHasFeaturedBadge=function(){var c,f,d=_.b((c=this.data)==null?void 0:(f=c.badges)==null?void 0:f[0],_.nGT);return d?d.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.r.computeHasPaygatedFeaturedBadge=function(){var c,f,d=_.b((c=this.data)==null?void 0:(f=c.badges)==null?void 0:f[0],_.nGT);return d?(d==null?void 0:d.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.r.computeHeaderHidden=function(){var c,f,d,q,Z,M;return!((c=this.data)==null?0:c.icon)&&!((f=this.data)==null?0:f.title)&&!((d=this.data)==null?0:d.subtitle)&&!((q=this.data)==null?0:q.thumbnail)&&!((Z=this.data)==null?0:Z.badges)&&!((M=this.data)==null?0:M.menu)};
_.r.showCtaButton=function(){var c;return!((c=this.data)==null||!c.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.r.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.r.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.r.computeForce16By9ThumbnailAspectRatio=function(){var c,f;return((c=this.data)==null?void 0:(f=c.responsiveContainerConfiguration)==null?void 0:f.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.r.onSectionReactiveDismissal=function(c,f,d){var q,Z;var M=(q=this.data)==null?void 0:(Z=q.targetingContext)==null?void 0:Z.targetGroupId;this&&M&&f.targetGroupId&&M.includes(f.targetGroupId)?(q=this.rowIndex,c=q===void 0?!1:!(f.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&q<=c)):c=!1;c&&(this.hidden=d)};
_.ci.Object.defineProperties(uy.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var c=this.elementsPerRow;this.isPostShelfRenderer()?c=this.postsPerRow:this.isSlimMediaShelfRenderer()?c=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?c=this.slimItemsPerRow-1:this.isGameCardShelf()?c=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(c=this.miniGameCardsPerRow);return c}},
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 c;return!((c=this.data)==null||!c.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null||!c.previousButton)&&!((f=this.data)==null||!f.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 c;return((c=_.ql().resolve(_.MY).getCurrentPage())==null?void 0:c.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q;return!((c=this.data)==null?0:(f=c.thumbnail)==null?0:(d=f.accessibility)==null?0:(q=d.accessibilityData)==null?0:q.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
uy.prototype.onChildElementFocus=uy.prototype.onChildElementFocus;uy.prototype.handleRerenderDownloadsData=uy.prototype.handleRerenderDownloadsData;uy.prototype.onDataChange=uy.prototype.onDataChange;uy.prototype.onRowIndexChange=uy.prototype.onRowIndexChange;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.WA),_.D("design:type",Object)],uy.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],uy.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],uy.prototype,"ytdReduxBehavior",void 0);_.y([_.L({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.D("design:type",Object)],uy.prototype,"useResponsiveGrid",void 0);_.y([_.L(),_.D("design:type",Object)],uy.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Number)],uy.prototype,"standardUnitMinWidth",void 0);_.y([_.L({reflectToAttribute:!0,value:3}),_.D("design:type",Number)],uy.prototype,"elementsPerRow",void 0);_.y([_.L({value:3}),_.D("design:type",Number)],uy.prototype,"postsPerRow",void 0);_.y([_.L({value:6}),_.D("design:type",Number)],uy.prototype,"slimItemsPerRow",void 0);_.y([_.L({value:6}),_.D("design:type",Number)],uy.prototype,"gameCardsPerRow",void 0);
_.y([_.L({value:6}),_.D("design:type",Number)],uy.prototype,"miniGameCardsPerRow",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uy.prototype,"hidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uy.prototype,"standardShelfMargins",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uy.prototype,"isShowMoreHidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uy.prototype,"isExpanded",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uy.prototype,"isInnerShelf",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.D("design:type",Boolean)],uy.prototype,"isShorts",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.D("design:type",Boolean)],uy.prototype,"isLumiere",void 0);_.y([_.L({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.D("design:type",Boolean)],uy.prototype,"hasBoxArtThumbnailStyle",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.D("design:type",Boolean)],uy.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.D("design:type",Boolean)],uy.prototype,"hasFeaturedBadge",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.D("design:type",Boolean)],uy.prototype,"hasPaygatedFeaturedBadge",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.D("design:type",Boolean)],uy.prototype,"isHeaderHidden",void 0);_.y([_.L({selector:_.p_z}),_.D("design:type",Object)],uy.prototype,"allVideosCount",void 0);_.y([_.L({selector:$nY}),_.D("design:type",Object)],uy.prototype,"allPlaylistCount",void 0);_.y([_.L({selector:M3e}),_.D("design:type",Object)],uy.prototype,"haveSmartDownloadsCompleted",void 0);
_.y([_.L({selectorArgs:["entitySelectorType"],selector:function(c,f){if(_.F("kevlar_modern_downloads_page")&&f&&f!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var d=c.entities;switch(f){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":f=_.LC(d);c=Eo(f);var q=_.KC(f);d=_.JE(d);d=_.jU(A_z(q,d,f.length));return{contents:c,subtitle:d};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return d=_.LC(d),{contents:Eo(d)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return d=
_.zh(d),{contents:Eo(d)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return d=_.n2C(d),{contents:Eo(d)};default:_.u6(new _.KD("Error: entitySelectorType defined but not matched in selector.",c,f))}}}}),
_.D("design:type",Object)],uy.prototype,"entityDrivenRichShelfData",void 0);_.y([_.L({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.D("design:type",Boolean)],uy.prototype,"hasTopCtaButton",void 0);_.y([_.L({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.D("design:type",Boolean)],uy.prototype,"hasBottomCtaButton",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.D("design:type",Boolean)],uy.prototype,"force16By9ThumbnailAspectRatio",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uy.prototype,"isShowLessHidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uy.prototype,"restrictContentsOverflow",void 0);_.y([_.L({selector:_.Nlk}),_.D("design:type",Boolean)],uy.prototype,"inlinePreviewIsEnabled",void 0);
_.y([_.L({computed:"computeSizing(data)"}),_.D("design:type",String)],uy.prototype,"sizing",void 0);_.y([_.L(),_.D("design:type",Boolean)],uy.prototype,"typographyBump",void 0);_.y([_.L(),_.D("design:type",Number)],uy.prototype,"itemWidth",void 0);_.y([_.L(),_.D("design:type",Object)],uy.prototype,"firstShownIndex",void 0);_.y([_.L(),_.D("design:type",Object)],uy.prototype,"horizontalOffset",void 0);_.y([_.L(),_.D("design:type",Object)],uy.prototype,"atEnd",void 0);
_.y([_.AY("#contents"),_.D("design:type",HTMLElement)],uy.prototype,"contents",void 0);_.y([_.m5("data.rowIndex"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uy.prototype,"onRowIndexChange",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uy.prototype,"onDataChange",null);
_.y([_.m5("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uy.prototype,"handleRerenderDownloadsData",null);_.y([_.Ta("focusin"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],uy.prototype,"onChildElementFocus",null);_.y([_.L({reflectToAttribute:!0}),_.S("data","isHomePage"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],uy.prototype,"isTruncated",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],uy.prototype,"hideBottomDivider",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],uy.prototype,"hasChevronButtons",null);_.y([_.S("firstShownIndex"),_.D("design:type",Object),_.D("design:paramtypes",[])],uy.prototype,"previousButtonOverride",null);
_.y([_.S("atEnd"),_.D("design:type",Object),_.D("design:paramtypes",[])],uy.prototype,"nextButtonOverride",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],uy.prototype,"isHomePage",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],uy.prototype,"thumbnailAriaHidden",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],uy.prototype,"initiallyIsExpanded",null);
_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],uy.prototype,"entitySelectorType",null);_.y([_.v({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],uy);
_.Jj_=_.OD()(uy,"ytd-rich-shelf-renderer",function(){if(z7u===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);z7u=c}c=z7u;return c},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var aRT;_.g_(_.rA,"yt-badge-view-model",{props:{data:_.oM,class:_.oM,workaroundShortsIsThumbnailBadge:_.oM,modern:_.oM}});_.g_(O7O,"yt-slimline-survey-view-model",{props:{data:_.oM}});var vy=function(){var c=_.z.apply(this,arguments)||this;c.tileLottieAnimationRef={};c.backgroundLottieAnimationRef={};c.isOnHoverBehaviorForLottieEnabled=!0;c.useBiggerShowcaseImage=_.F("enable_desktop_search_bigger_thumbs");c.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return c};
_.K(vy,_.z);_.r=vy.prototype;_.r.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.r.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},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"}}}};
_.r.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var c=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);c!==this.hasTile&&this.set("hasTile",c);c=this.hasLogo(this.data)||!!this.data.badgeText;c!==this.hasMetadata&&this.set("hasMetadata",c);c=this.data.overflowButton?!1:c;c!==this.showLogoImage&&this.set("showLogoImage",c);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.r.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.r.currentColorChanged=function(){this.updateButtonPalette()};
_.r.computeBackgroundStyle=function(c){if(c&&this.data){var f=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var d=_.OV((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);d&&f.push('background-image: url("'+d+'");')}var q;((q=c.basicColorData)==null?void 0:q.backgroundColor)!==void 0&&f.push("background-color: "+_.WS(c.basicColorData.backgroundColor)+";");return f.join("")}};
_.r.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&this.set("isDarkTheme",c)};
_.r.getCurrentLogo=function(c,f){if(c)return f?c.darkLogoImage:c.lightLogoImage};
_.r.getCurrentStaticTileImage=function(c,f){if(this.hasStaticTile(c))return c.darkTileImage?f?c.darkTileImage:c.tileImage:c.tileImage};
_.r.computeTitleStyle=function(c){if(this.data&&this.data.title&&c&&c.basicColorData&&c.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.ya(c.basicColorData.foregroundTitleColor)+";"};
_.r.computeSubtitleStyle=function(c){if(this.data&&this.data.subtitle&&c&&c.basicColorData&&c.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.ya(c.basicColorData.foregroundBodyColor)+";"};
_.r.computeSupplementalStyle=function(c){if(this.data&&this.data.supplementalText&&c&&c.supplementalTextColor!==void 0)return c=_.ya(c.supplementalTextColor),"color:"+c+";--yt-endpoint-color:"+c+";--yt-endpoint-hover-color:"+c+";--yt-endpoint-visited-color:"+c+";--yt-formatted-string-bold-font-weight:700;"};
_.r.computeDismissIconStyle=function(c){var f,d;if((c==null?0:(f=c.dismissButtonColorData)==null?0:f.foregroundTitleColor)&&(c==null?0:(d=c.dismissButtonColorData)==null?0:d.backgroundColor))return"--yt-button-color:"+_.WS(c.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.WS(c.dismissButtonColorData.backgroundColor)+";"};
_.r.computeOverflowIconStyle=function(c){var f,d;if((c==null?0:(f=c.dismissButtonColorData)==null?0:f.foregroundTitleColor)&&(c==null?0:(d=c.dismissButtonColorData)==null?0:d.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.WS(c.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.WS(c.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.WS(c.dismissButtonColorData.foregroundTitleColor)+";"};
_.r.computeBannerStyle=function(c){return c?c.toLowerCase().replace(/_/g,"-"):""};
_.r.computeLocation=function(c){switch(c==null?void 0:c.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.r.shouldShowTileSection=function(c,f,d){return!this.shouldExpandLogo(c,f,d)&&f};
_.r.shouldShowExpandedLogoSection=function(c,f,d){return this.shouldExpandLogo(c,f,d)&&c!==void 0&&this.hasLogo(c)};
_.r.shouldExpandLogo=function(c,f,d){return c&&f?!1:d>=2};
_.r.hasStaticTile=function(c){return!(c==null||!c.tileImage)};
_.r.hasTileLottie=function(c){var f;return!!(c==null?0:(f=c.tileLottie)==null?0:f.url)};
_.r.hasLogo=function(c){return this.getCurrentLogo(c,this.isDarkTheme)!==void 0};
_.r.getLogoHeight=function(c){return this.logoWithPadding(c)?"26":"20"};
_.r.getExpandedLogoHeight=function(c){return this.logoWithPadding(c)?"31":"24"};
_.r.getLogoImageId=function(c){return this.logoWithPadding(c)?"logo-image-with-padding":"logo-image"};
_.r.getMaxTitleFontSize=function(c){return c.overrideTitleMaxFontSize?String(c.overrideTitleMaxFontSize):"36"};
_.r.hasBackgroundLottie=function(c){var f;return!!(c==null?0:(f=c.backgroundLottie)==null?0:f.url)};
_.r.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var c,f;(c=this.tileLottieAnimationRef)==null||(f=c.lottieEl)==null||f.play();var d,q;(d=this.backgroundLottieAnimationRef)==null||(q=d.lottieEl)==null||q.play()}};
_.r.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var c,f;(c=this.tileLottieAnimationRef)==null||(f=c.lottieEl)==null||f.pause();var d,q;(d=this.backgroundLottieAnimationRef)==null||(q=d.lottieEl)==null||q.pause()}};
_.r.pauseLottie=function(){var c,f;(c=this.tileLottieAnimationRef)==null||(f=c.lottieEl)==null||f.pause();var d,q;(d=this.backgroundLottieAnimationRef)==null||(q=d.lottieEl)==null||q.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.r.performPrimaryButtonAction=function(){var c,f,d;((c=this.data)==null?0:(f=c.primaryButton)==null?0:(d=f.buttonRenderer)==null?0:d.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.r.requestElementsPerRow=function(){_.CZ(this.hostElement,"yt-request-elements-per-row")};
_.r.updateButtonPalette=function(){if(this.data&&this.currentColorData){var c;((c=this.data.dismissButton)==null?0:c.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 f;if((f=this.data.primaryButton)==null?0:f.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 d;if((d=this.data.secondaryButton)==
null?0:d.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 q;((q=this.data.primaryButton)==null?0:q.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Z;((Z=this.data.secondaryButton)==null?0:Z.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.r.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var c=this.getTileLottieDataBasedOnTheme(),f,d;if(c.url!==((f=this.tileLottiePlayerProps)==null?void 0:(d=f.animationConfig)==null?void 0:d.path)){var q,Z;(q=this.tileLottieAnimationRef)==null||(Z=q.lottieEl)==null||Z.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=c.settings)==null?0:M.autoplay);var g,O;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(O=(g=c.settings)==null?void 0:g.autoplay)!=null?O:!1,loop:this.getLottieLoopValue(c.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof c.url==="string"?this.tileLottiePlayerProps.animationConfig.path=c.url:this.tileLottiePlayerProps.animationConfig.animationData=c.url}}};
_.r.getOverflowButton=function(c){return _.b(c.overflowButton,Lv_)};
_.r.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var c=this.getBackgroundLottieDataBasedOnTheme(),f,d;if(c.url!==((f=this.backgroundLottiePlayerProps)==null?void 0:(d=f.animationConfig)==null?void 0:d.path)){var q,Z;(q=this.backgroundLottieAnimationRef)==null||(Z=q.lottieEl)==null||Z.destroy();var M;this.isOnHoverBehaviorForLottieEnabled=!((M=c.settings)==null?0:M.autoplay);var g,O;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(O=(g=c.settings)==null?void 0:g.autoplay)!=null?O:!1,loop:this.getLottieLoopValue(c.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof c.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=c.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
c.url}}};
_.r.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var c;((c=this.tileLottieAnimationRef)==null?void 0:c.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var f;((f=this.backgroundLottieAnimationRef)==null?void 0:f.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.r.getTileLottieDataBasedOnTheme=function(){var c;if(this.isDarkTheme&&((c=this.data)==null?0:c.darkThemeTileLottie))return this.data.darkThemeTileLottie;var f;return((f=this.data)==null?0:f.tileLottie)?this.data.tileLottie:{}};
_.r.getBackgroundLottieDataBasedOnTheme=function(){var c;if(this.isDarkTheme&&((c=this.data)==null?0:c.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var f;return((f=this.data)==null?0:f.backgroundLottie)?this.data.backgroundLottie:{}};
_.r.onUpdateElementsPerRowAction=function(c){c&&this.elementsPerRow!==c&&(this.elementsPerRow=c)};
_.r.getLottieLoopValue=function(c){return c?c.loop!==void 0?c.loop:c.loopCount?c.loopCount-1:!0:!0};
_.r.logoWithPadding=function(c){var f,d,q;return(c=(f=this.getCurrentLogo(c,this.isDarkTheme))==null?void 0:(d=f.thumbnails)==null?void 0:(q=d[0])==null?void 0:q.height)&&c%31===0?!0:!1};
vy.prototype.currentColorChanged=vy.prototype.currentColorChanged;vy.prototype.themeChanged=vy.prototype.themeChanged;vy.prototype.dataChanged=vy.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],vy.prototype,"ytdDismissibleItemBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],vy.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],vy.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],vy.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],vy.prototype,"primaryButton",void 0);_.y([_.L(),_.D("design:type",Object)],vy.prototype,"secondaryButton",void 0);
_.y([_.L({reflectToAttribute:!0,value:3}),_.D("design:type",Number)],vy.prototype,"elementsPerRow",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],vy.prototype,"isDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],vy.prototype,"hasTile",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],vy.prototype,"hasMetadata",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],vy.prototype,"showLogoImage",void 0);_.y([_.L(),_.D("design:type",Object)],vy.prototype,"currentColorData",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.D("design:type",String)],vy.prototype,"bannerStyle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.D("design:type",String)],vy.prototype,"location",void 0);
_.y([_.L(),_.D("design:type",Object)],vy.prototype,"tileLottiePlayerProps",void 0);_.y([_.L(),_.D("design:type",Object)],vy.prototype,"tileLottieAnimationRef",void 0);_.y([_.L(),_.D("design:type",Object)],vy.prototype,"backgroundLottiePlayerProps",void 0);_.y([_.L(),_.D("design:type",Object)],vy.prototype,"backgroundLottieAnimationRef",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],vy.prototype,"useBiggerShowcaseImage",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],vy.prototype,"isHideEnclosingAction",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vy.prototype,"dataChanged",null);_.y([_.ba("isDarkTheme"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vy.prototype,"themeChanged",null);
_.y([_.ba("currentColorData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vy.prototype,"currentColorChanged",null);_.y([_.v({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],vy);
_.h(vy,"ytd-statement-banner-renderer",function(){if(aRT!==void 0)return aRT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return aRT=c},{mode:1});var VoT;var hA=function(){var c=_.z.apply(this,arguments)||this;c.isSearch=!1;c.hideShelfHeader=!1;c.engagementPanel=!1;c.disableMouseScroll=!0;c.useFloorScrolling=!0;c.modernTypography=_.F("web_modern_typography");return c};
_.K(hA,_.z);hA.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.HO("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.HO("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
hA.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
hA.prototype.onDataChanged=hA.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],hA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hA.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],hA.prototype,"hideShelfHeader",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],hA.prototype,"engagementPanel",void 0);_.y([_.L(),_.D("design:type",Object)],hA.prototype,"disableMouseScroll",void 0);_.y([_.L(),_.D("design:type",Object)],hA.prototype,"useFloorScrolling",void 0);_.y([_.L(),_.D("design:type",Object)],hA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],hA.prototype,"modernTypography",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],hA.prototype,"onDataChanged",null);_.y([_.v({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],hA);
_.h(hA,"ytd-reel-shelf-renderer",function(){if(VoT!==void 0)return VoT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return VoT=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var Xc_;var uZv;uZv=_.pp(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.vUO=_.CG(uZv);var h7_=_.dN(function(c){var f=c.data;c=c.useSmallFont;var d={},q={};return _.B("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.B(_.T,{cond:function(){return f().favicon},
then:function(Z){return _.B(_.jC,{data:Z,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.B("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.B(_.J9,{text:function(){return f().title},
className:_.FY("yt-channel-external-link-view-model-wiz__title",(d["yt-channel-external-link-view-model-wiz__title--title-small-font"]=c,d)),ellipsisTruncate:!0,userInput:!0}),_.B(_.J9,{text:function(){return f().link},
className:_.FY("yt-channel-external-link-view-model-wiz__link",(q["yt-channel-external-link-view-model-wiz__link--link-small-font"]=c,q)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Qb");
h7_.idomCompat=!0;_.g_(h7_,"yt-channel-external-link-view-model",{props:{data:_.oM,useSmallFont:_.oM}});_.w_("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var wP=function(){var c=_.z.apply(this,arguments)||this;c.revealButtonClass="button";c.businessEmailDisplayState="HIDE_SECTION";return c};
_.K(wP,_.z);_.r=wP.prototype;_.r.refit=function(){var c=this;_.Nh(function(){_.kt(c.hostElement,"yt-refit-popups-action")});
_.ol(this,function(){_.kt(c.hostElement,"yt-refit-popups-action")})};
_.r.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Dz(_.vUO),this.businessEmailDisplayState="CAPTCHA")};
_.r.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"};
_.r.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.r.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"}}}};
_.r.computeEmailHref=function(c){return"mailto:"+c};
_.r.computeSafeUrl=function(c){if(c)return _.XD(c)};
_.r.linkEndpoint=function(c){return _.b(c.onTap,_.Wh)};
_.r.linkEndpointToHref=function(c){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(c))};
_.r.onYtServiceRequestCompleted=function(c){var f;if((f=c.detail.data)==null?0:f.businessEmail)this.businessEmail=c.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var d;if((d=c.detail.data)==null?0:d.errorMessage)this.businessEmailErrorMessage=c.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.r.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var c=this.JSC$16135_captchaTextarea.value;if(c){c={recaptcha_response_token:c,channel_id:this.metadata.channelId};var f=_.b(this.metadata.onBusinessEmailRevealClickCommand,_.Wh);f&&this.ytComponentBehavior.resolveCommand(f,{form:c})}}};
_.r.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ci.Object.defineProperties(wP.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var c;return _.b((c=this.data)==null?void 0:c.metadata,lHy)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.b(this.metadata.businessEmailRevealButton,_.zx)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var c=new URL(this.metadata.canonicalChannelUrl);return c.host+c.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 _.b(this.metadata.learnMoreOnTap,_.Wh)}}});
wP.prototype.onYtServiceRequestCompleted=wP.prototype.onYtServiceRequestCompleted;wP.prototype.businessEmailMetadataChanged=wP.prototype.businessEmailMetadataChanged;wP.prototype.refit=wP.prototype.refit;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],wP.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("#g-recaptcha-response"),_.D("design:type",HTMLTextAreaElement)],wP.prototype,"JSC$16135_captchaTextarea",void 0);_.y([_.L(),_.D("design:type",Object)],wP.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],wP.prototype,"revealButtonClass",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],wP.prototype,"metadata",null);
_.y([_.S("metadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],wP.prototype,"revealButton",null);_.y([_.S("metadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],wP.prototype,"channelDisplayUrl",null);_.y([_.ba("metadata"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wP.prototype,"refit",null);_.y([_.S("metadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],wP.prototype,"formattedDescription",null);
_.y([_.S("metadata","learnMoreCommand"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],wP.prototype,"shouldRendereVerifiedPhoneStatus",null);_.y([_.S("metadata"),_.D("design:type",Object),_.D("design:paramtypes",[])],wP.prototype,"learnMoreCommand",null);_.y([_.L(),_.D("design:type",String)],wP.prototype,"businessEmailDisplayState",void 0);_.y([_.L(),_.D("design:type",String)],wP.prototype,"businessEmail",void 0);
_.y([_.L(),_.D("design:type",String)],wP.prototype,"businessEmailErrorMessage",void 0);_.y([_.ba("metadata"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wP.prototype,"businessEmailMetadataChanged",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],wP.prototype,"onYtServiceRequestCompleted",null);_.y([_.v({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],wP);
_.h(wP,"ytd-about-channel-renderer",function(){if(Xc_!==void 0)return Xc_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Xc_=c},{mode:1});var wcK;var yz=function(){return _.z.apply(this,arguments)||this};
_.K(yz,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yz.prototype,"data",void 0);_.y([_.v({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],yz);
_.h(yz,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(wcK!==void 0)return wcK;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return wcK=c},{mode:1});var yjF;var Wy=function(){return _.z.apply(this,arguments)||this};
_.K(Wy,_.z);Wy.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Wy.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Wy.prototype,"aligment",void 0);_.y([_.v({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Wy);
_.h(Wy,"ytd-channel-list-sub-menu-renderer",function(){if(yjF!==void 0)return yjF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return yjF=
c},{mode:1});var WmT;var D0=function(){return _.z.apply(this,arguments)||this};
_.K(D0,_.z);D0.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}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],D0.prototype,"data",void 0);_.y([_.v({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],D0);
_.h(D0,"ytd-channel-sub-menu-renderer",function(){if(WmT!==void 0)return WmT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return WmT=c},{mode:1});var D1j;var e7v;var eE=function(){var c=_.z.apply(this,arguments)||this;c.isCompact=!1;return c};
_.K(eE,_.z);_.ci.Object.defineProperties(eE.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var c,f;return((f=_.b((c=this.data)==null?void 0:c.endpoint,_.Ib))==null?void 0:f.target)==="TARGET_NEW_WINDOW"}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],eE.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],eE.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],eE.prototype,"isCompact",void 0);_.y([_.S("isCompact"),_.D("design:type",Number),_.D("design:paramtypes",[])],eE.prototype,"thumbnailWidth",null);
_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],eE.prototype,"openNewWindow",null);_.y([_.v({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],eE);
_.h(eE,"ytd-media-lockup-renderer",function(){if(e7v!==void 0)return e7v;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return e7v=c},{mode:1});var NQ3;var NG=function(){return _.z.apply(this,arguments)||this};
_.K(NG,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],NG.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],NG.prototype,"data",void 0);_.y([_.v({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],NG);
_.h(NG,"ytd-structured-description-channel-lockup-renderer",function(){if(NQ3!==void 0)return NQ3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return NQ3=c},{mode:1});var IRO;var IH=function(){var c=_.z.apply(this,arguments)||this;c.isCompact=!1;c.collections=_.F("web_modern_collections_v2");c.collectionsStackColor=_.F("modernize_structured_description_playlist_lockups_v2");return c};
_.K(IH,_.z);IH.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"}}};
_.ci.Object.defineProperties(IH.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q,Z,M;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(c=this.data)==null?void 0:(f=c.thumbnail)==null?void 0:f.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(d=this.data)==null?void 0:(q=d.thumbnail)==null?void 0:q.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Z=this.data)==null?void 0:(M=Z.thumbnail)==
null?void 0:M.vibrantColorPalette:void 0}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],IH.prototype,"componentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],IH.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],IH.prototype,"showSidePanelThumbnailOverlay",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IH.prototype,"isCompact",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],IH.prototype,"collections",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IH.prototype,"collectionsStackColor",void 0);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],IH.prototype,"twoLineTitle",null);
_.y([_.S("data","collections","collectionsStackColor"),_.D("design:type",Object),_.D("design:paramtypes",[])],IH.prototype,"collectionStack",null);_.y([_.v({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],IH);
_.h(IH,"ytd-structured-description-playlist-lockup-renderer",function(){if(IRO!==void 0)return IRO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return IRO=c},{mode:1});var P83;var Py=function(){return _.z.apply(this,arguments)||this};
_.K(Py,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Py.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Py.prototype,"data",void 0);_.y([_.v({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Py);
_.h(Py,"ytd-structured-description-video-lockup-renderer",function(){if(P83!==void 0)return P83;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return P83=c},{mode:2});var RH=function(){return _.z.apply(this,arguments)||this};
_.K(RH,_.z);
RH.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}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],RH.prototype,"data",void 0);_.y([_.v({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],RH);
_.h(RH,"ytd-compact-infocard-renderer",function(){if(D1j!==void 0)return D1j;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return D1j=c},{mode:1});var R7u;var Ue=function(){var c=_.z.apply(this,arguments)||this;c.useModernCollectionsV2=_.F("web_modern_collections_v2");return c};
_.K(Ue,_.z);Ue.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ci.Object.defineProperties(Ue.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"}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],Ue.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Ue.prototype,"ytdReduxBehavior",void 0);_.y([_.L({selector:_.eC}),_.D("design:type",Object)],Ue.prototype,"isGridViewEnabled",void 0);
_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ue.prototype,"watchFeedBigThumbs",null);_.y([_.S("isGridViewEnabled","data"),_.L({reflectToAttribute:!0,value:"168"}),_.D("design:type",String),_.D("design:paramtypes",[])],Ue.prototype,"thumbnailWidth",null);_.y([_.S("isGridViewEnabled","data"),_.L({reflectToAttribute:!0,value:"94"}),_.D("design:type",String),_.D("design:paramtypes",[])],Ue.prototype,"customThumbnailSize",null);
_.y([_.L(),_.D("design:type",Object)],Ue.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ue.prototype,"useModernCollectionsV2",void 0);_.y([_.v({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Ue);
_.h(Ue,"ytd-compact-playlist-renderer",function(){if(R7u!==void 0)return R7u;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return R7u=c},{mode:1});var U1H;var pf=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.roundedContainer=!0;c.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return c};
_.K(pf,_.z);_.r=pf.prototype;_.r.attached=function(){this.requestElementsPerRow()};
_.r.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"}}}};
_.r.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.r.computeViewStyle=function(c){return c.style?c.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.r.onUpdateElementsPerRowAction=function(c){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&c===1};
_.r.requestElementsPerRow=function(){_.CZ(this.hostElement,"yt-request-elements-per-row")};
pf.prototype.dataChanged=pf.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],pf.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],pf.prototype,"actionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],pf.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],pf.prototype,"hideThumbnail",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.D("design:type",String)],pf.prototype,"viewStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pf.prototype,"darkerDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pf.prototype,"roundedContainer",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pf.prototype,"dataChanged",null);_.y([_.v({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],pf);
_.h(pf,"ytd-compact-promoted-item-renderer",function(){if(U1H!==void 0)return U1H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return U1H=c},{mode:1});var pco;var xi=function(){var c=_.z.apply(this,arguments)||this;c.collections=_.F("web_modern_collections_v2");return c};
_.K(xi,_.z);xi.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
xi.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
xi.prototype.onYtNavigate=function(c,f){var d=this;if(f.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",f)){var q=this.get("watchEndpoint.videoId",f.endpoint),Z=_.kt(this.hostElement,"yt-get-current-video-id-action")[0];_.F("kevlar_mix_handle_first_endpoint_different")&&q&&Z&&q!==Z||(c.stopPropagation(),_.gy().getPlayerPromise().then(function(M){if(M.getPlayerState()===0&&d.data.secondaryNavigationEndpoint)var g=d.data.secondaryNavigationEndpoint;else{g=
Object.assign({},f.endpoint);var O=_.b(g.commandMetadata,_.jO);O&&(M=Math.floor(M.getCurrentTime()),O.url=_.p9(O.url,{t:M}),!_.F("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(O=_.b(g,_.pe)))&&(O.startTimeSeconds=M)}_.CZ(d.hostElement,"yt-navigate",{endpoint:g})}))}};
_.ci.Object.defineProperties(xi.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 c,f,d,q,Z,M;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(c=this.data)==null?void 0:(f=c.thumbnail)==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:(d=this.data)==null?void 0:(q=d.thumbnail)==null?void 0:q.vibrantColorPalette,darkColorPalette:(Z=this.data)==null?void 0:(M=Z.thumbnail)==null?void 0:M.darkColorPalette,experimentEnabled:this.collections}}}});
xi.prototype.onYtNavigate=xi.prototype.onYtNavigate;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.F4.YtEndpointBehavior),_.D("design:type",Object)],xi.prototype,"ytEndpointBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],xi.prototype,"ytdDismissibleItemBehavior",void 0);
_.y([_.Q(_.Ui),_.D("design:type",Object)],xi.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],xi.prototype,"ytdReduxBehavior",void 0);_.y([_.L({selector:_.eC}),_.D("design:type",Object)],xi.prototype,"isGridViewEnabled",void 0);_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],xi.prototype,"watchFeedBigThumbs",null);
_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",String),_.D("design:paramtypes",[])],xi.prototype,"thumbnailWidth",null);_.y([_.L(),_.D("design:type",Object)],xi.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],xi.prototype,"collections",void 0);_.y([_.S("data","collections"),_.D("design:type",Object),_.D("design:paramtypes",[])],xi.prototype,"collectionStack",null);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],xi.prototype,"onYtNavigate",null);_.y([_.v({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],xi);
_.h(xi,"ytd-compact-radio-renderer",function(){if(pco!==void 0)return pco;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return pco=c},{mode:1});var x1u;var oH=function(){return _.z.apply(this,arguments)||this};
_.K(oH,_.z);oH.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
oH.prototype.computeRendererStyle=function(c){return c.style?c.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.y([_.L(),_.D("design:type",Object)],oH.prototype,"data",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],oH.prototype,"rendererBehavior",void 0);_.y([_.L({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.D("design:type",String)],oH.prototype,"rendererStyle",void 0);_.y([_.v({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],oH);
_.h(oH,"ytd-compact-text-promo-renderer",function(){if(x1u!==void 0)return x1u;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return x1u=c},{mode:1});var oUF;var GS=function(){var c=_.z.apply(this,arguments)||this;c.isShortsStyle=!1;return c};
_.K(GS,_.z);_.r=GS.prototype;_.r.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"}}}};
_.r.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.CZ(this.hostElement,"yt-disable-lockup-interaction"):_.CZ(this.hostElement,"yt-enable-lockup-interaction"))};
_.r.isMetaBlockEmpty=function(c){return!c||!c.longBylineText&&!c.shortBylineText&&!c.shortViewCountText&&!c.viewCountText};
_.r.computeHasOneLineTitle=function(c){return this.forceOneLineTitle||!(c==null||!c.buttons)};
_.r.computeDisableInteraction=function(){var c;return!((c=this.data)==null?0:c.navigationEndpoint)};
_.r.hasSingularTopStandaloneBadge=function(){var c;return!((c=this.data)==null||!c.topStandaloneBadge)};
_.ci.Object.defineProperties(GS.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 c;return this.hasSingularTopStandaloneBadge()?[(c=this.data)==null?void 0:c.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var c;return this.shouldShowTopBadges?((c=this.data)==null?void 0:c.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
GS.prototype.disableInteractionChanged=GS.prototype.disableInteractionChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],GS.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],GS.prototype,"ytdLockupBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],GS.prototype,"ytdReduxBehavior",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.D("design:type",Boolean)],GS.prototype,"metaBlockEmpty",void 0);_.y([_.L({selector:_.eC}),_.D("design:type",Object)],GS.prototype,"isGridViewEnabled",void 0);_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],GS.prototype,"watchFeedBigThumbs",null);
_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",String),_.D("design:paramtypes",[])],GS.prototype,"thumbnailWidth",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],GS.prototype,"isShortsStyle",void 0);_.y([_.L(),_.D("design:type",Object)],GS.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.D("design:type",Boolean)],GS.prototype,"hasOneLineTitle",void 0);
_.y([_.L(),_.D("design:type",Boolean)],GS.prototype,"hideThumbnail",void 0);_.y([_.L(),_.D("design:type",Boolean)],GS.prototype,"forceOneLineTitle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.D("design:type",Boolean)],GS.prototype,"disableInteraction",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],GS.prototype,"musicMetadataVideoLockup",void 0);
_.y([_.m5("disableInteraction"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],GS.prototype,"disableInteractionChanged",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],GS.prototype,"shouldShowTopBadges",null);_.y([_.S("data"),_.D("design:type",Array),_.D("design:paramtypes",[])],GS.prototype,"topBadges",null);
_.y([_.S("shouldShowTopBadges","data"),_.D("design:type",Array),_.D("design:paramtypes",[])],GS.prototype,"inlineMetadataBadges",null);_.y([_.S("shouldShowTopBadges"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],GS.prototype,"shouldShowBadgesBelowMetadata",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],GS.prototype,"compactTitleClass",null);_.y([_.v({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],GS);
_.h(GS,"ytd-compact-video-renderer",function(){if(oUF!==void 0)return oUF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return oUF=c},{mode:_.lP("kevlar_poly_si_batch_j067")?1:2});var GQv;_.w_("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var cn=function(){return _.z.apply(this,arguments)||this};
_.K(cn,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],cn.prototype,"data",void 0);_.y([_.v({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],cn);
_.h(cn,"ytd-counterfactual-renderer",function(){if(GQv!==void 0)return GQv;var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return GQv=c},{mode:1});var cG_;var fA=function(){var c=_.z.apply(this,arguments)||this;c.hidden=!1;return c};
_.K(fA,_.z);fA.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.ql().resolve(_.ZM).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
fA.prototype.computeHidden=function(c){return!!c};
_.ci.Object.defineProperties(fA.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}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.D("design:type",Object)],fA.prototype,"hidden",void 0);_.y([_.S("data.label"),_.D("design:type",String),_.D("design:paramtypes",[])],fA.prototype,"label",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],fA.prototype,"value",null);
_.y([_.v({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],fA);
_.h(fA,"ytd-dropdown-item-renderer",function(){if(cG_!==void 0)return cG_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return cG_=c},{mode:1});var fX_;var dyH;var dv=function(){return _.z.apply(this,arguments)||this};
_.K(dv,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dv.prototype,"data",void 0);_.y([_.L({computed:"getSimpleString(data.label)"}),_.D("design:type",String)],dv.prototype,"label",void 0);_.y([_.v({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],dv);
_.h(dv,"ytd-navigation-dropdown-item-renderer",function(){if(dyH!==void 0)return dyH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return dyH=c},{mode:1});var j$=function(){var c=_.z.apply(this,arguments)||this;c.disabled=!1;c.value="";c.noLabelFloat=!1;c.noUnderline=!1;c.usePrimaryColor=!1;c.hasBackground=!1;c.verticalAlign="top";c.autosize=!1;c.minAutosizeWidth=100;c.autosizeFont="14px Roboto";return c};
_.K(j$,_.z);_.r=j$.prototype;_.r.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"}}}};
_.r.open=function(){this.inputEl.open()};
_.r.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.r.dataChanged=function(){this.reset()};
_.r.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("value-changed",this.value))};
_.r.stopPropagation=function(c){c.stopPropagation()};
_.r.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var c=this.canvas.getContext("2d");c&&(c.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(c.measureText(this.inputEl.value).width)+24)+"px")}};
_.r.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var c=0,f=this.data.entries.length;c<f;c++){var d=this.data.entries[c],q;for(q in d)if(d.hasOwnProperty(q)){var Z=d[q];if("isSelected"in Z&&Z.isSelected)return"stringValue"in Z?Z.stringValue||"":"int32Value"in Z?Z.int32Value||0:0}}return null};
_.r.updateValueFromBinding=function(c){this.value=c.detail.value};
_.ci.Object.defineProperties(j$.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 c=0,f=this.data.entries.length;c<f;c++){var d=this.data.entries[c],q;for(q in d)if(d.hasOwnProperty(q)){var Z=d[q];if("isSelected"in Z&&Z.isSelected&&"label"in Z)return this.ytRendererBehavior.getSimpleString(Z.label)}}return null}}});
j$.prototype.autoSizeLabel=j$.prototype.autoSizeLabel;j$.prototype.stopPropagation=j$.prototype.stopPropagation;j$.prototype.valueChangedForBinding=j$.prototype.valueChangedForBinding;j$.prototype.dataChanged=j$.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],j$.prototype,"ytRendererStamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],j$.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],j$.prototype,"disabled",void 0);_.y([_.L(),_.D("design:type",Object)],j$.prototype,"value",void 0);_.y([_.L(),_.D("design:type",Object)],j$.prototype,"noLabelFloat",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],j$.prototype,"noUnderline",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],j$.prototype,"theme",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],j$.prototype,"usePrimaryColor",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],j$.prototype,"hasBackground",void 0);_.y([_.L(),_.D("design:type",Object)],j$.prototype,"verticalAlign",void 0);_.y([_.L(),_.D("design:type",Object)],j$.prototype,"autosize",void 0);_.y([_.L(),_.D("design:type",Object)],j$.prototype,"minAutosizeWidth",void 0);_.y([_.L(),_.D("design:type",Object)],j$.prototype,"autosizeFont",void 0);
_.y([_.AY("#entries"),_.D("design:type",Object)],j$.prototype,"entries",void 0);_.y([_.AY("#input"),_.D("design:type",Object)],j$.prototype,"inputEl",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],j$.prototype,"dataChanged",null);_.y([_.ba("value"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],j$.prototype,"valueChangedForBinding",null);
_.y([_.Ta("iron-overlay-opened"),_.Ta("iron-overlay-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],j$.prototype,"stopPropagation",null);_.y([_.Ta("iron-select"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],j$.prototype,"autoSizeLabel",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],j$.prototype,"label",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],j$);
_.h(j$,"ytd-dropdown-renderer",function(){if(fX_!==void 0)return fX_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return fX_=c},{mode:1});var jsH;var qb=function(){var c=_.z.apply(this,arguments)||this;c.isConstrainedList=!1;return c};
_.K(qb,_.z);qb.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"}}}};
qb.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
qb.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
qb.prototype.computeViewAllHidden=function(c,f){return c||!f.viewAllEndpoint};
qb.prototype.fillRestIfNoShowMore=qb.prototype.fillRestIfNoShowMore;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],qb.prototype,"ytLazyListBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qb.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],qb.prototype,"isConstrainedList",void 0);_.y([_.ba("data","canShowMore"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qb.prototype,"fillRestIfNoShowMore",null);_.y([_.v({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],qb);
_.h(qb,"ytd-expanded-shelf-contents-renderer",function(){if(jsH!==void 0)return jsH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return jsH=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var qdK;var Zc=function(){return _.z.apply(this,arguments)||this};
_.K(Zc,_.z);Zc.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}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Zc.prototype,"data",void 0);_.y([_.v({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Zc);
_.h(Zc,"ytd-feed-channel-filter-header-renderer",function(){if(qdK!==void 0)return qdK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return qdK=c},{mode:1});var ZEO;var Mbu;var rG_;var Mb=function(){return _.z.apply(this,arguments)||this};
_.K(Mb,_.z);_.r=Mb.prototype;_.r.onClick=function(c){var f,d=(f=this.data)==null?void 0:f.sectionEndpoint;!_.qY(_.x0(c),this.hostElement,["A".toString()])&&d&&_.CZ(this.hostElement,"yt-navigate",{endpoint:d})};
_.r.computeHasSectionEndpoint=function(c){return(c==null?void 0:c.sectionEndpoint)!==void 0};
_.r.computeShowHeaderAsLink=function(c){return(c==null?void 0:c.header)!==void 0&&(c==null?void 0:c.sectionEndpoint)!==void 0};
_.r.computeShowSubheaderAsLink=function(c){return(c==null?void 0:c.subheader)!==void 0&&(c==null?void 0:c.sectionEndpoint)!==void 0&&(c==null?void 0:c.header)===void 0};
_.r.getHeaderAsLinkClass=function(c){var f=[],d;(c==null?0:(d=c.headerIcon)==null?0:d.iconType)&&f.push("header-link-active");return f.join(" ")};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Mb.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Mb.prototype,"data",void 0);
_.y([_.L({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Mb.prototype,"hasSectionEndpoint",void 0);_.y([_.L({computed:"computeShowHeaderAsLink(data)"}),_.D("design:type",Boolean)],Mb.prototype,"showHeaderAsLink",void 0);_.y([_.L({computed:"computeShowSubheaderAsLink(data)"}),_.D("design:type",Boolean)],Mb.prototype,"showSubheaderAsLink",void 0);_.y([_.v({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Mb);
_.h(Mb,"ytd-medical-panel-section-renderer",function(){if(rG_!==void 0)return rG_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return rG_=c},{mode:1});var rv=function(){var c=_.z.apply(this,arguments)||this;c.isExpanded=!1;c.roundedContainer=!0;c.skipRoundingTop=!1;c.toggleExpandableSection=function(){c.isExpanded=!c.isExpanded};
return c};
_.K(rv,_.z);
rv.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]]"}}}}}};
rv.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
rv.prototype.dataChanged=rv.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rv.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],rv.prototype,"isExpanded",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rv.prototype,"roundedContainer",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rv.prototype,"skipRoundingTop",void 0);_.y([_.L(),_.D("design:type",Object)],rv.prototype,"toggleExpandableSection",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rv.prototype,"dataChanged",null);_.y([_.v({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],rv);
_.h(rv,"ytd-medical-panel-content-renderer",function(){if(Mbu!==void 0)return Mbu;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Mbu=c},{mode:1});_.w_("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var CA=function(){var c=_.z.apply(this,arguments)||this;c.roundedContainer=!0;c.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");c.hasTitle=!1;c.linkIcon="OPEN_IN_NEW";c.isDismissed=!1;return c};
_.K(CA,_.z);
CA.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"}}}};
CA.prototype.computeHasTitle=function(c){return!(c==null||!c.title)};
CA.prototype.onClick=function(c){var f,d=(f=this.data)==null?void 0:f.headerEndpoint;!_.qY(_.x0(c),this.hostElement,["BUTTON".toString()])&&d&&this.ytComponentBehavior.resolveCommand(d)};
_.ci.Object.defineProperties(CA.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 c;return((c=this.data)==null?void 0:c.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:c.disableBottomDivider)||!((f=this.data)==null?0:f.title)}}});
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],CA.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],CA.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],CA.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],CA.prototype,"roundedContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],CA.prototype,"amsterdamEnabled",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.D("design:type",Object)],CA.prototype,"hasTitle",void 0);
_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.background"),_.D("design:type",Object),_.D("design:paramtypes",[])],CA.prototype,"background",null);_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.titleStyle"),_.D("design:type",Object),_.D("design:paramtypes",[])],CA.prototype,"titleStyle",null);
_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.S("data.titleStyle"),_.D("design:type",Object),_.D("design:paramtypes",[])],CA.prototype,"showLinkIcon",null);_.y([_.L(),_.D("design:type",String)],CA.prototype,"linkIcon",void 0);_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],CA.prototype,"hideDivider",null);
_.y([_.L({selectorArgs:["data.dismissStateEntityKey"],selector:function(c,f){c=_.Bb(c.entities,"dismissState",f);return(c==null?void 0:c.isDismissed)||(c==null?void 0:c.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(c==null?void 0:c.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.D("design:type",Object)],CA.prototype,"isDismissed",void 0);_.y([_.v({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],CA);
_.h(CA,"ytd-info-panel-container-renderer",function(){if(ZEO!==void 0)return ZEO;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ZEO=c},{mode:1});var CGv;_.w_("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var gv=function(){var c=_.z.apply(this,arguments)||this;c.modernTypography=_.F("web_modern_typography");return c};
_.K(gv,_.z);gv.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
gv.prototype.computeStyle=function(c){return c?c:""};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gv.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.D("design:type",String)],gv.prototype,"titleStyle",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],gv.prototype,"modernTypography",void 0);_.y([_.v({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],gv);
_.h(gv,"ytd-item-section-header-renderer",function(){if(CGv!==void 0)return CGv;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return CGv=c},{mode:1});var gLH;var kWO,OEo=function(){return kWO!==void 0?kWO:kWO=document.createElement("template")};
document.head.appendChild(OEo().content);var lXo;_.kF=new _.jk("VOTING_ANIMATION_CONTROLLER_TOKEN");var B0F=_.dN(function(c){var f=c.data;var d=_.xz("div"),q=_.xz("div");c=_.C(_.OT("VOTE_STATUS_NONE",void 0,"FVF7mc"));var Z=c.next().value,M=c.next().value,g=_.Ka(SsN,function(){var Y;return(Y=f())==null?void 0:Y.entityKey}),O=_.F("web_enable_voting_animation")||_.F("enable_music_web_cairo_voting_animation");
_.L9(function(){var Y;((Y=f().initialState)==null?0:Y.status)&&M(f().initialState.status)});
var l=function(){var Y,t,E=(t=(Y=f().initialState)==null?void 0:Y.votes)!=null?t:0,J;Y=(J=f().initialState)==null?void 0:J.status;return Y==="VOTE_STATUS_UPVOTED"?E-1:Y==="VOTE_STATUS_DOWNVOTED"?E+1:E},m=function(){return Z()==="VOTE_STATUS_UPVOTED"?l()+1:Z()==="VOTE_STATUS_DOWNVOTED"?l()-1:l()},H=function(Y){var t=Y?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
M(t);var E=m(),J=_.ql().resolve(_.dx(_.kF)),X=g();X&&(Y&&(X==null?0:X.upvoteDefaultButtonOnTap)?_.Ph(X.upvoteDefaultButtonOnTap,{form:{element:d.value},disableClickTracking:!0}):(X==null?0:X.upvoteToggledButtonOnTap)&&_.Ph(X.upvoteToggledButtonOnTap,{form:{element:d.value},disableClickTracking:!0}));var u;Y=(u=X==null?void 0:X.enableOptimisticReordering)!=null?u:f().enableOptimisticReordering;O&&J&&f().itemId&&Y&&ssK(J,f().itemId,E,t)},A=function(Y){var t=Y?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
M(t);var E=m(),J=_.ql().resolve(_.dx(_.kF)),X=g();X&&(Y&&(X==null?0:X.downvoteDefaultButtonOnTap)?_.Ph(X.downvoteDefaultButtonOnTap,{form:{element:q.value},disableClickTracking:!0}):(X==null?0:X.downvoteToggledButtonOnTap)&&_.Ph(X.downvoteToggledButtonOnTap,{form:{element:q.value},disableClickTracking:!0}));var u;Y=(u=X==null?void 0:X.enableOptimisticReordering)!=null?u:f().enableOptimisticReordering;O&&J&&f().itemId&&Y&&ssK(J,f().itemId,E,t)};
c={};c=_.FY("ytVotingViewModelVoteCount",(c.ytVotingViewModelVoteCountDisabled=function(){return f().isDisabled},c));
return _.B("voting-view-model",{class:"ytVotingViewModelHost"},_.B("div",{el:d},_.B(_.u7,{data:function(){var Y=_.b(f().upvoteButton,_.Jc);return{toggleButtonViewModel:Object.assign({},Y,{isToggled:Z()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(Y){return _.B(_.JL,{data:Y.data,
onToggle:H})}})),_.B("div",{class:c},function(){var Y,t,E;
return Z()==="VOTE_STATUS_UPVOTED"?(Y=f().initialState)==null?void 0:Y.compactVotesUpvoted:Z()==="VOTE_STATUS_DOWNVOTED"?(t=f().initialState)==null?void 0:t.compactVotesDownvoted:(E=f().initialState)==null?void 0:E.compactVotes}),_.B("div",{el:q},_.B(_.u7,{data:function(){var Y=_.b(f().downvoteButton,_.Jc);
return{toggleButtonViewModel:Object.assign({},Y,{isToggled:Z()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(Y){return _.B(_.JL,{data:Y.data,
onToggle:A})}})))},"Rb");_.g_(_.dN(function(c){var f=c.data;return _.B("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.B("div",{class:_.FY("ytEngagementBarViewModelEngagementBarWrapper",c.className)},_.B(_.u7,{data:function(){return f().actions}},{votingViewModel:B0F})))},"Sb"),"engagement-bar-view-model",{props:{data:_.oM,
className:_.oM}});var Oy=function(){var c=_.z.apply(this,arguments)||this;c.playlistVotingAnimationEnabled=_.F("web_enable_voting_animation");c.downloadProgress=0;c.transferState="TRANSFER_STATE_UNKNOWN";c.downloadState="DOWNLOAD_STATE_UNKNOWN";c.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";c.offlineVideoPolicyExpirationTimestamp=0;return c};
_.K(Oy,_.z);_.r=Oy.prototype;_.r.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"}}}};
_.r.canReorderChanged=function(){this.persistentDragHandle=_.F("kevlar_playlist_drag_handles")&&this.canReorder};
_.r.onDrag=function(){if(this.thumbnail){var c=_.r1(this.thumbnail).querySelector("yt-image");c&&(c.shouldRenderLazy=!1)}};
_.r.onMenuOverlayChanged=function(c,f){this.menuOpened=f};
_.r.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.r.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.r.onContentsTap=function(c){var f,d=(f=this.data)==null?void 0:f.serviceEndpoints;if(d&&d.length===1&&_.b(d[0],vNr)&&!_.qY(_.x0(c),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(d[0]);else{var q;(f=(q=this.data)==null?void 0:q.navigationEndpoint)&&_.F("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?iEK(_.ql().resolve(_.yN),f):(_.F7().playlistSuggestionsShelfActivation=
!0,_.T0u(_.ql().resolve(_.yN),f)):f&&!_.qY(_.x0(c),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.F("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.CZ(this.hostElement,"yt-navigate",{endpoint:f}):this.ytComponentBehavior.resolveCommand(f))}};
_.r.computeStyle=function(c){return c?c.toLowerCase().replace(/_/g,"-"):""};
_.r.computeThumbnailWidth=function(c){return c==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.r.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=wLM(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))}};
_.r.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.r.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.r.dataChanged=function(){if(this.data){var c,f,d,q=((c=this.downloadRenderData)==null?void 0:c.badges)&&((f=this.downloadRenderData)==null?void 0:f.badges)!==((d=this.data)==null?void 0:d.badges),Z,M,g;c=((Z=this.downloadRenderData)==null?void 0:Z.thumbnailOverlays)&&((M=this.downloadRenderData)==null?void 0:M.thumbnailOverlays)!==((g=this.data)==null?void 0:g.thumbnailOverlays);(!this.downloadRenderData||q||c)&&this.downloadStateChanged()}};
_.r.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var c,f,d=(c=this.data.menu)==null?void 0:(f=c.menuRenderer)==null?void 0:f.items;if(d)for(c=_.C(d),f=c.next();!f.done;f=c.next())if(f=f.value,d=void 0,_.b((d=f.menuServiceItemRenderer)==null?void 0:d.serviceEndpoint,_.hB)){var q=d=void 0,Z=void 0;f=(d=f)==null?void 0:(q=d.menuServiceItemRenderer)==null?void 0:(Z=q.serviceEndpoint)==null?void 0:Z.playlistEditEndpoint;Z=q=void 0;if(d=(q=f)==null?void 0:(Z=q.actions)==null?void 0:
Z[0])q=void 0,d.setVideoId=(q=this.data)==null?void 0:q.setVideoId;Z=q=d=void 0;if(f=(d=f)==null?void 0:(q=d.clientActions)==null?void 0:(Z=q[0])==null?void 0:Z.playlistRemoveVideosAction)d=void 0,f.setVideoIds=[(d=this.data)==null?void 0:d.setVideoId]}}};
_.ci.Object.defineProperties(Oy.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Oy.prototype.setVideoIdChanged=Oy.prototype.setVideoIdChanged;Oy.prototype.dataChanged=Oy.prototype.dataChanged;Oy.prototype.downloadStateChanged=Oy.prototype.downloadStateChanged;Oy.prototype.onMenuOverlayChanged=Oy.prototype.onMenuOverlayChanged;Oy.prototype.canReorderChanged=Oy.prototype.canReorderChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Oy.prototype,"ytdReduxBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],Oy.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],Oy.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Oy.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Oy.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Oy.prototype,"canReorder",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Oy.prototype,"menuOpened",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Oy.prototype,"handleIsHovered",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Oy.prototype,"persistentDragHandle",void 0);_.y([_.L(),_.D("design:type",Object)],Oy.prototype,"downloadRenderData",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.D("design:type",String)],Oy.prototype,"styleType",void 0);_.y([_.L({computed:"computeThumbnailWidth(data.style)"}),_.D("design:type",Number)],Oy.prototype,"thumbnailWidth",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],Oy.prototype,"isDownloads",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Oy.prototype,"playlistVotingAnimationEnabled",void 0);
_.y([_.L({selector:yR,selectorArgs:["data.videoId"]}),_.D("design:type",Object)],Oy.prototype,"downloadProgress",void 0);_.y([_.L(),_.D("design:type",Number)],Oy.prototype,"relativeDateReference",void 0);_.y([_.L({selector:_.hE,selectorArgs:["data.videoId"]}),_.D("design:type",Object)],Oy.prototype,"transferState",void 0);_.y([_.L({selector:gHr,selectorArgs:["data.videoId"]}),_.D("design:type",Object)],Oy.prototype,"downloadState",void 0);
_.y([_.L({selector:Rek,selectorArgs:["data.videoId"]}),_.D("design:type",Object)],Oy.prototype,"offlinePolicyAction",void 0);_.y([_.L({selector:UIN,selectorArgs:["data.videoId"]}),_.D("design:type",Object)],Oy.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.y([_.L({selector:xIN,selectorArgs:["data.videoId"]}),_.D("design:type",Object)],Oy.prototype,"entityInfo",void 0);_.y([_.L({selector:_.X5}),_.D("design:type",Boolean)],Oy.prototype,"miniplayerIsActive",void 0);
_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],Oy.prototype,"playlistVideoId",null);_.y([_.AY("#thumbnail"),_.D("design:type",Object)],Oy.prototype,"thumbnail",void 0);_.y([_.ba("canReorder"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Oy.prototype,"canReorderChanged",null);
_.y([_.Ta("yt-menu-overlay-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Boolean]),_.D("design:returntype")],Oy.prototype,"onMenuOverlayChanged",null);_.y([_.ba("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Oy.prototype,"downloadStateChanged",null);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Oy.prototype,"dataChanged",null);_.y([_.ba("data.setVideoId"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Oy.prototype,"setVideoIdChanged",null);_.y([_.v({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Oy);
_.h(Oy,"ytd-playlist-video-renderer",function(){if(lXo!==void 0)return lXo;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);c.content.insertBefore(OEo().content.cloneNode(!0),c.content.firstChild);return lXo=c},{mode:1});var my_;var lz=function(){return _.z.apply(this,arguments)||this};
_.K(lz,_.z);_.y([_.L(),_.D("design:type",Object)],lz.prototype,"data",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],lz.prototype,"rendererBehavior",void 0);_.y([_.v({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],lz);
_.h(lz,"ytd-premium-browse-footer-renderer",function(){if(my_!==void 0)return my_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return my_=c},{mode:1});var HEF;var sy=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return c};
_.K(sy,_.z);_.r=sy.prototype;_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.handleDarkModeToggledAction=function(c){this.isDarkTheme=c};
_.r.computeHeaderLogoThumbnail=function(c,f){if(c)return f?c.darkLogo:c.lightLogo};
_.r.computeHeaderLogoHeight=function(c,f){var d,q,Z;return(c=(d=this.computeHeaderLogoThumbnail(c,f))==null?void 0:(q=d.thumbnails)==null?void 0:(Z=q[0])==null?void 0:Z.height)&&c%31===0?"31":"24"};
_.r.computeHeaderLogoMarginBottom=function(c,f){return this.computeHeaderLogoHeight(c,f)==="24"?"0":"-7"};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],sy.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],sy.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],sy.prototype,"isDarkTheme",void 0);_.y([_.L({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.D("design:type",Object)],sy.prototype,"themeLogo",void 0);
_.y([_.L({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.D("design:type",String)],sy.prototype,"logoHeight",void 0);_.y([_.L({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.D("design:type",String)],sy.prototype,"logoMarginBottom",void 0);_.y([_.v({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],sy);
_.h(sy,"ytd-primetime-promo-header-renderer",function(){if(HEF!==void 0)return HEF;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return HEF=c},{mode:1});var AGy;var FIO=_.dN(function(c){var f=_.Ks(function(Z){var M;(M=c.onClick)==null||M.call(c,Z)}),d={},q={};
return _.B("yt-shelf-header-layout",{class:_.FY("shelf-header-layout-wiz",(d["shelf-header-layout-wiz--disable-horizontal-padding"]=c.disableHorizontalPadding,d["shelf-header-layout-wiz--disable-vertical-padding"]=c.disableVerticalPadding,d["shelf-header-layout-wiz--responsive"]=c.useResponsiveLayout,d["shelf-header-layout-wiz--narrow"]=function(){var Z,M;return((Z=c.useResponsiveLayout)==null?void 0:Z.call(c))&&((M=c.forceSmallLayout)==null?void 0:M.call(c))},d["shelf-header-layout-wiz--is-overlay"]=
c.isOverlay,d["shelf-header-layout-wiz--tappable"]=!!c.onClick,d)),
"on:click":f,tabindex:function(){var Z;return((Z=c.isInteractive)==null?0:Z.call(c))?0:void 0}},_.B(_.T,{cond:c.leadingIcon,
then:function(Z){return _.B("div",{class:"shelf-header-layout-wiz__leading-icon"},_.B(_.Qy,{icon:Z}))},
else:function(){return _.B(_.T,{cond:c.hasLeadingImage,then:function(){var Z,M={};return _.B("div",{class:_.FY("shelf-header-layout-wiz__leading-image",(M["shelf-header-layout-wiz__leading-image--circular-image"]=c.circularImage,M))},(Z=c.leadingImage)==null?void 0:Z.call(c))}})}}),_.B("div",{class:"shelf-header-layout-wiz__label-container"},_.B(_.T,{cond:c.hasSuperlabel,
then:function(){var Z;return _.B("div",{class:"shelf-header-layout-wiz__superlabel"},(Z=c.superlabel)==null?void 0:Z.call(c))}}),_.B("div",{class:"shelf-header-layout-wiz__title-row"},_.B(Yd3,{text:c.title,
className:_.FY("shelf-header-layout-wiz__title",(q["shelf-header-layout-wiz__title--small-title"]=c.forceSmallLayout,q)),tagLevel:c.tagLevel}),_.B(_.T,{cond:c.hasDetail,then:function(){var Z;return _.B("div",{class:"shelf-header-layout-wiz__detail"},(Z=c.detail)==null?void 0:Z.call(c))}})),_.B(_.T,{cond:c.hasSublabel,
then:function(){var Z;return _.B("div",{class:"shelf-header-layout-wiz__sublabel"},(Z=c.sublabel)==null?void 0:Z.call(c))}})),_.B(_.T,{cond:c.hasTrailingActions,
then:function(){var Z;return _.B("div",{class:"shelf-header-layout-wiz__trailing-actions"},(Z=c.trailingActions)==null?void 0:Z.call(c))}}))},"Tb");
FIO.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var Yd3=_.dN(function(c){var f=c.text;var d=c.className;var q=c.tagLevel;return _.B(_.n9,null,_.B(_.K9,{when:function(){return(q==null?void 0:q())===0}},function(){return _.B("h2",{class:d},f())}),_.B(_.K9,{when:function(){return(q==null?void 0:q())===1}},function(){return _.B("h3",{class:d},f())}),_.B(_.K9,{when:function(){return(q==null?void 0:q())===2}},function(){return _.B("h4",{class:d},f())}),_.B(_.E6,null,function(){return _.B("h2",{class:d},f())}))},"Ub");var KIO,tbH,bEO;_.Bn=_.dN(function(c){var f=c.className;var d=c.data;var q=c.disableHorizontalPadding;var Z=c.disableVerticalPadding;var M=c.forceSmallLayout;var g=c.useResponsiveLayout;c=c.isOverlay;return _.B("yt-section-header-view-model",{class:_.FY("ytSectionHeaderViewModelHost",f),style:_.$Z({"background-color":function(){return LMC(d().backgroundColor)?_.WS(LMC(d().backgroundColor)):void 0}})},_.B(FIO,{hasDetail:!1,
title:function(){return _.B(_.J9,{text:function(){return d().headline}})},
hasTitle:!0,sublabel:function(){return _.B(tbH,{data:d})},
hasSublabel:function(){return!!d().sublabel||!!d().bottomBadge},
superlabel:function(){return _.B(bEO,{data:d})},
hasSuperlabel:function(){return!!d().superlabel||!!d().topBadge},
leadingImage:function(){return _.B(KIO,{leadingAccessory:function(){return d().leadingAccessory}})},
hasLeadingImage:function(){return!!d().leadingAccessory},
trailingActions:function(){return _.B(_.u7,{data:function(){return d().trailingActions}},{flexibleActionsViewModel:_.XT})},
hasTrailingActions:function(){return!!d().trailingActions},
disableHorizontalPadding:q,disableVerticalPadding:Z,forceSmallLayout:M,useResponsiveLayout:g,isOverlay:c,isInteractive:function(){return!!_.DW(d().rendererContext)},
onClick:function(O){if(_.ec(d().rendererContext)){var l=_.DW(d().rendererContext);l&&_.eq(l,{form:{element:O.target,event:O}})}}}))},"Vb");
KIO=_.dN(function(c){var f=c.leadingAccessory;return _.B(_.qD,null,_.B(_.T,{cond:function(){var d;return(d=f().image)!=null?d:_.oe(f().themedImage)},
then:function(d){return _.B(_.jC,{data:d,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.B(_.T,{cond:function(){return _.b(f().avatar,_.Ie)},
then:function(d){return _.B(_.ag,{data:d})}}))},"Wb");
tbH=_.dN(function(c){var f=c.data;return _.B(_.qD,null,_.B(_.T,{cond:function(){return _.b(f().bottomBadge,V3F)},
then:function(d){var q={};return _.B(_.rA,{data:d,class:_.FY((q.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!d()&&!!f().sublabel},q))})}}),_.B(_.T,{cond:function(){return f().sublabel},
then:function(d){return _.B(_.J9,{text:d})}}))},"Xb");
bEO=_.dN(function(c){var f=c.data;return _.B(_.qD,null,_.B(_.T,{cond:function(){return _.b(f().topBadge,V3F)},
then:function(d){var q={};return _.B(_.rA,{data:d,class:_.FY((q.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!d()&&!!f().superlabel},q))})}}),_.B(_.T,{cond:function(){return f().superlabel},
then:function(d){return _.B(_.J9,{text:d})}}))},"Yb");_.g_(_.Bn,"yt-section-header-view-model",{props:{data:_.oM,className:_.oM,disableHorizontalPadding:_.oM,disableVerticalPadding:_.oM,forceSmallLayout:_.oM,useResponsiveLayout:_.oM,isOverlay:_.oM}});_.w_("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var iz=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return c};
_.K(iz,_.z);_.r=iz.prototype;_.r.attached=function(){this.requestElementsPerRow()};
_.r.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"}}}};
_.r.onDataChange=function(){var c=this;_.ol(this,function(){c.updateItemVisibility()})};
_.r.onUpdateElementsPerRowAction=function(c){c&&this.elementsPerRow!==c&&(this.elementsPerRow=c,this.updateItemVisibility())};
_.r.updateItemVisibility=function(){var c=this;this.data&&this.data.panels&&_.r1(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(f,d){f.hidden=d>c.elementsPerRow-1})};
_.r.requestElementsPerRow=function(){_.CZ(this.hostElement,"yt-request-elements-per-row")};
iz.prototype.onDataChange=iz.prototype.onDataChange;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],iz.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],iz.prototype,"actionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],iz.prototype,"data",void 0);_.y([_.L({value:3}),_.D("design:type",Number)],iz.prototype,"elementsPerRow",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],iz.prototype,"onDataChange",null);_.y([_.v({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],iz);
_.h(iz,"ytd-primetime-promo-renderer",function(){if(AGy!==void 0)return AGy;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return AGy=c},{mode:1});var ELy;var Tp=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return c};
_.K(Tp,_.z);Tp.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Tp.prototype.handleButtonRefreshAction=function(c){if(c=_.b(c,aDu))this.set("data.button",c.membershipButton),this.notifyPath("data.button")};
_.ci.Object.defineProperties(Tp.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:(f=c.avatars)==null?void 0:f.slice(0,8))||[]}}});
_.y([_.L(),_.D("design:type",Object)],Tp.prototype,"data",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Tp.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Tp.prototype,"rendererBehavior",void 0);_.y([_.S("data"),_.D("design:type",Array),_.D("design:paramtypes",[])],Tp.prototype,"avatars",null);
_.y([_.v({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Tp);
_.h(Tp,"ytd-recognition-shelf-renderer",function(){if(ELy!==void 0)return ELy;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ELy=c},{mode:1});var nL3;var $yT;var mQ=function(){var c=_.z.apply(this,arguments)||this;c.modernButtons=_.F("web_modern_buttons");return c};
_.K(mQ,_.z);_.r=mQ.prototype;
_.r.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]]"}}}}}};
_.r.dataChanged=function(){this.collapsed=!0};
_.r.computeVisibleItems=function(c,f){return c!==void 0&&c.items?f?c.items.slice(0,this.data.collapsedItemCount):c.items:[]};
_.r.computeHideShowMore=function(c,f,d){return c>=f||!d};
_.r.computeHideShowAll=function(c,f,d){return!(c&&f)||d};
_.r.onMoreClick=function(){this.collapsed=!1};
_.ci.Object.defineProperties(mQ.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:_.CD("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"}}});
mQ.prototype.dataChanged=mQ.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],mQ.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],mQ.prototype,"isSearch",void 0);
_.y([_.L({computed:"computeVisibleItems(data,collapsed)"}),_.D("design:type",Array)],mQ.prototype,"visibleItems",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],mQ.prototype,"collapsed",void 0);_.y([_.L({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.D("design:type",Boolean)],mQ.prototype,"hideShowMore",void 0);
_.y([_.L({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.D("design:type",Boolean)],mQ.prototype,"hideShowAll",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],mQ.prototype,"modernButtons",void 0);_.y([_.S("isSearch"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mQ.prototype,"typographyBump",null);
_.y([_.S("isSearch"),_.D("design:type",Object),_.D("design:paramtypes",[])],mQ.prototype,"lockupExperiments",null);_.y([_.S("isSearch"),_.D("design:type",String),_.D("design:paramtypes",[])],mQ.prototype,"thumbnailWidth",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mQ.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],mQ);
_.h(mQ,"ytd-vertical-list-renderer",function(){if($yT!==void 0)return $yT;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return $yT=c},{mode:1});var QsT=_.pp(["#"]);_.w_("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Hn=function(){var c=_.z.apply(this,arguments)||this;c.isConstrainedList=!1;c.modernTypography=_.F("web_modern_typography");return c};
_.K(Hn,_.z);_.r=Hn.prototype;
_.r.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"}}}};
_.r.computeThumbnailStyle=function(c){return c||""};
_.r.computePlaceAnnotationUnderTitle=function(){var c;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((c=this.data)==null?void 0:c.thumbnailStyle)||"")};
_.r.computeHrefWithDefault=function(c){return this.ytComponentBehavior.computeHref_(c)||_.G8k(QsT)};
_.r.computeIsPromoShelf=function(c){var f;return(c=c==null?void 0:(f=c[0])==null?void 0:f.metadataBadgeRenderer)?c.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.r.computePlaceBadgeBesideTitle=function(c){var f;return(c==null?0:(f=c[0])==null?0:f.metadataBadgeRenderer)?!this.computeIsPromoShelf(c):!1};
_.r.computeMenuIcon=function(c){return this.computeIsPromoShelf(c)?"yt-icons:more_vert":"yt-icons:more"};
_.r.onDataChange=function(){var c,f;((c=this.data)==null?0:(f=c.content)==null?0:f.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.r.onLockupRequested=function(c){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&c.detail&&c.detail.videoIds){for(var f=this.data.content.gridRenderer.items,d=new Set,q=_.C(c.detail.videoIds),Z=q.next();!Z.done;Z=q.next())d.add(Z.value);c.detail.returnValue=f.filter(function(M){return M.gridVideoRenderer&&M.gridVideoRenderer.videoId&&d.has(M.gridVideoRenderer.videoId)}).map(function(M){return M.gridVideoRenderer})}};
_.r.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Hn.prototype.onLockupRequested=Hn.prototype.onLockupRequested;Hn.prototype.onDataChange=Hn.prototype.onDataChange;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],Hn.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Hn.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.aJ),_.D("design:type",Object)],Hn.prototype,"ironResizableBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Hn.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Hn.prototype,"isSearch",void 0);_.y([_.L(),_.D("design:type",Object)],Hn.prototype,"isConstrainedList",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("kevlar_fluid_dismiss")}}),
_.D("design:type",Boolean)],Hn.prototype,"enableFluidDismiss",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.D("design:type",String)],Hn.prototype,"thumbnailStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Hn.prototype,"modernTypography",void 0);_.y([_.L({computed:"computeMenuIcon(data.badges)"}),_.D("design:type",String)],Hn.prototype,"menuIcon",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Hn.prototype,"onDataChange",null);_.y([_.Ta("yt-lockup-requested"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Hn.prototype,"onLockupRequested",null);_.y([_.v({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Hn);
_.h(Hn,"ytd-shelf-renderer",function(){if(nL3!==void 0)return nL3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return nL3=c},{mode:1});var Sdo;var AX=function(){return _.z.apply(this,arguments)||this};
_.K(AX,_.z);AX.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.ci.Object.defineProperties(AX.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],AX.prototype,"data",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],AX.prototype,"isPlaylist",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],AX.prototype,"isClipList",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],AX.prototype,"isPlaylistPageWithFilters",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],AX.prototype,"hasTitle",null);_.y([_.L(),_.S("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.D("design:type",Object),_.D("design:paramtypes",[])],AX.prototype,"isRightAligned",null);
_.y([_.v({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],AX);
_.h(AX,"ytd-sort-filter-header-renderer",function(){if(Sdo!==void 0)return Sdo;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Sdo=c},{mode:1});var LIK;var YF=function(){var c=_.z.apply(this,arguments)||this;c.enableRightArrowHidden=_.F("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return c};
_.K(YF,_.z);YF.prototype.attached=function(){var c=this;this.enableRightArrowHidden&&(this.JSC$16264_throttledOnResize=new _.Gx(function(){var f;(f=c.ytdHorizontalListBehavior)==null||f.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var f;
(f=c.JSC$16264_throttledOnResize)==null||f.fire()}),this.resizeObserver.observe(this.hostElement))};
YF.prototype.detached=function(){if(this.enableRightArrowHidden){var c;(c=this.resizeObserver)==null||c.disconnect();var f;(f=this.JSC$16264_throttledOnResize)==null||f.dispose()}};
YF.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]]"}}}}}};
YF.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.ci.Object.defineProperties(YF.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 c=[],f;((f=this.data)==null?0:f.creatorVideosButton)&&c.push(this.data.creatorVideosButton);var d;((d=this.data)==null?0:d.creatorAboutButton)&&c.push(this.data.creatorAboutButton);f=_.C(this.data.creatorCustomUrlButtons||[]);for(d=f.next();!d.done;d=f.next())c.push(d.value);return c}}},
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}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cm.YtdHorizontalListBehavior),_.D("design:type",Object)],YF.prototype,"ytdHorizontalListBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],YF.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],YF.prototype,"engagementPanel",void 0);
_.y([_.L(),_.D("design:type",Object)],YF.prototype,"enableRightArrowHidden",void 0);_.y([_.S("enableRightArrowHidden","atEnd"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],YF.prototype,"hideRightArrow",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],YF.prototype,"creatorCustomUrlButtons",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data","creatorCustomUrlButtons"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],YF.prototype,"showCreatorCustomUrlButtons",null);_.y([_.S("showCreatorCustomUrlButtons"),_.D("design:type",Number),_.D("design:paramtypes",[])],YF.prototype,"channelAvatarSize",null);_.y([_.v({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],YF);
_.h(YF,"ytd-video-description-infocards-section-renderer",function(){if(LIK!==void 0)return LIK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return LIK=c},{mode:_.lP("kevlar_poly_si_batch_j067")?1:2});var zXy;var Fn=function(){return _.z.apply(this,arguments)||this};
_.K(Fn,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Fn.prototype,"data",void 0);_.y([_.L({computed:"computeIcon_(data.infoIcon)"}),_.D("design:type",Object)],Fn.prototype,"infoIcon",void 0);_.y([_.v({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Fn);
_.h(Fn,"ytd-eom-settings-disclaimer-renderer",function(){if(zXy!==void 0)return zXy;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return zXy=c},{mode:1});var JGr;var tX=function(){return _.z.apply(this,arguments)||this};
_.K(tX,_.z);_.ci.Object.defineProperties(tX.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.suppressPaddingDisclaimer)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],tX.prototype,"componentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tX.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tX.prototype,"suppressPaddingDisclaimer",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],tX);
_.h(tX,"ytd-product-list-header-renderer",function(){if(JGr!==void 0)return JGr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return JGr=c},{mode:1});var aXK;var bz=function(){return _.z.apply(this,arguments)||this};
_.K(bz,_.z);bz.prototype.computeThumbnailStyle=function(c){if(c&&(c=_.ya(c)))return"background-color:"+c+";"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bz.prototype,"rendererBehaviors",void 0);_.y([_.L(),_.D("design:type",Object)],bz.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],bz);
_.h(bz,"ytd-hashtag-tile-renderer",function(){if(aXK!==void 0)return aXK;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return aXK=c},{mode:1});var Vby;var KA=function(){return _.z.apply(this,arguments)||this};
_.K(KA,_.z);KA.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}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],KA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],KA.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],KA);
_.h(KA,"ytd-sponsorships-alert-renderer",function(){if(Vby!==void 0)return Vby;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Vby=c},{mode:1});var XJ3;var Ey=function(){return _.z.apply(this,arguments)||this};
_.K(Ey,_.z);Ey.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.ci.Object.defineProperties(Ey.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"}}});
_.y([_.Q(_.WA),_.D("design:type",Object)],Ey.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],Ey.prototype,"ytdLockupBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ey.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.y([_.L({selector:_.eC}),_.D("design:type",Object)],Ey.prototype,"isGridViewEnabled",void 0);
_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ey.prototype,"watchFeedBigThumbs",null);_.y([_.S("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.D("design:type",String),_.D("design:paramtypes",[])],Ey.prototype,"thumbnailWidth",null);_.y([_.L(),_.D("design:type",Object)],Ey.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Ey);
_.h(Ey,"ytd-compact-movie-renderer",function(){if(XJ3!==void 0)return XJ3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return XJ3=c},{mode:1});var uK3;var vLT;var hX3=_.hk("HTML_DIR")==="rtl",nA=function(){var c=_.z.apply(this,arguments)||this;c.engagementPanel=!1;c.maxLines=2;c.expandButtonOffset=0;c.showExpandButton=!1;c.isTruncated=!1;c.isExpanded=!1;c.currentSnippetType=2;c.alwaysShowExpandButton=!1;c.JSC$16281_lastWidth=NaN;c.observer=null;c.left=0;c.right=0;c.mid=0;c.longestSnippetLength=0;c.isFinalSnippet=!1;c.isFirstMutation=!1;c.isResetMutation=!1;c.OVERFLOW_THRESHOLD=5;return c};
_.K(nA,_.z);_.r=nA.prototype;_.r.onClick=function(c){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.qY(_.x0(c)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var f;if((f=window.getSelection())==null||!f.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.r.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.r.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.r.updateTextOnSnippetTypeChange=function(){_.F("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.r.setUpBinarySearch=function(c){c=c*this.maxLines/8;this.left=0;var f,d;this.right=Math.min(c*2,(d=(f=this.simpleText)==null?void 0:f.length)!=null?d:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.r.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.r.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.u6(new _.KD("AttributedSnippet is empty when the description is not empty",this.text))};
_.r.mutationCallback=function(){if(this.observer!=null){var c=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var f=Math.floor(c*this.maxLines/8);this.setSnippetText(this.text,f);f!==0||this.attributedTextIsEmpty()||_.u6(new _.KD("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;c=c*this.maxLines/8;this.left=0;var d;this.right=Math.min(c*2,(d=(f=this.simpleText)==null?void 0:f.length)!=null?d: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)}}};
_.r.mutationObserve=function(c){var f=this;this.observer||(this.observer=new MutationObserver(function(){f.mutationCallback()}));
this.observer.observe(c,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.r.attached=function(){var c=this;_.ol(this,function(){c.resize()})};
_.r.isExpandedChanged=function(){_.CZ(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.r.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)};
_.r.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var c="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((hX3?"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",c);this.snippetContainer.style.setProperty("mask-image",
c)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(hX3?"right":"left",this.expandButtonOffset+"px")};
_.r.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.r.setSnippetText=function(c,f){c||(c={});if(_.Gu(c)){var d=xp(c,f);d.attachmentRuns||d.commandRuns||d.decorationRuns||d.styleRuns||d.alignment||d.lineBreakMode?this.attributedSnippetTextEl?(_.F("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=xp(c,f),this.attributedSnippetTextEl.headerRuns=esn(f,this.headerRuns)):this.attributedSnippetText={data:xp(c,f),headerRuns:esn(f,this.headerRuns)},this.currentSnippetType=0):_.u6(new _.KD("Tried to set snippet text when HTML element was null",
c)):(this.plainSnippetText.textContent=UD(c.content||"",f),this.currentSnippetType=2)}else{a:{d=zLN(c,f);if(d.runs){d=_.C(d.runs);for(var q=d.next();!q.done;q=d.next())if(q=q.value,q.bold||q.deemphasize||q.italics||q.strikethrough||q.textColor||q.navigationEndpoint||_.b(q,wN)){d=!0;break a}}d=!1}d?this.formattedSnippetText?(this.formattedSnippetText.text=zLN(c,f),this.currentSnippetType=1):_.u6(new _.KD("Tried to set snippet text when HTML element was null",c)):(this.plainSnippetText.textContent=
UD(_.xC(c),f),this.currentSnippetType=2)}};
_.r.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.r.attributedTextIsEmpty=function(){var c=this.text;if(!_.Gu(c))return!0;var f;return((f=c.content)==null?void 0:f.length)===0?!0:!1};
_.r.resize=function(c){if(this.snippetText){if(c===void 0?0:c)this.JSC$16281_lastWidth=NaN;var f=this.hostElement.offsetWidth;if(f!==this.JSC$16281_lastWidth&&!this.isExpanded)if(this.JSC$16281_lastWidth=f,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;c=0;var d,q;f=Math.min(f*this.maxLines/8*2,(q=(d=this.simpleText)==null?void 0:d.length)!=null?q:0)-1;for(d=0;c<=f;)q=Math.floor(c+(f-c)/2),this.setSnippetText(this.text,q),this.isOverflowing()?f=q-1:(c=q+1,d=q);this.setSnippetText(this.text,d);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.r.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.r.onExpandClick=function(){var c=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.F("inline_expander_reset_focus_killswitch")||_.ol(this,function(){var f;((f=_.ql().resolve(_.dx(_.lw)))==null?0:f.isKeyBoardInUse())&&_.UN(c.hostElement)});
_.CZ(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.r.onCollapseClick=function(){this.collapse();_.CZ(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.r.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.r.computeExpandButtonOffset=function(){var c=this.expandSizer;return c?hX3?c.offsetParent?c.offsetParent.offsetWidth-c.offsetWidth-c.offsetLeft:0:c.offsetLeft:0};
_.ci.Object.defineProperties(nA.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Gu(this.text)?this.text.content||"":_.xC(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 _.Gu(this.text)?!0:this.text&&_.F("web_replace_formatted_with_attributed_string")&&iMe(this.text)?(this.text=_.he(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}}});
nA.prototype.onTextChanged=nA.prototype.onTextChanged;nA.prototype.updateMaskAndExpandButtonOffset=nA.prototype.updateMaskAndExpandButtonOffset;nA.prototype.updateSnippetContainerMaxHeight=nA.prototype.updateSnippetContainerMaxHeight;nA.prototype.isExpandedChanged=nA.prototype.isExpandedChanged;nA.prototype.updateTextOnSnippetTypeChange=nA.prototype.updateTextOnSnippetTypeChange;nA.prototype.updateIsFormattedExpanded=nA.prototype.updateIsFormattedExpanded;nA.prototype.updateIsAttributedExpanded=nA.prototype.updateIsAttributedExpanded;
nA.prototype.onClick=nA.prototype.onClick;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],nA.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nA.prototype,"text",void 0);_.y([_.L(),_.D("design:type",Array)],nA.prototype,"headerRuns",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],nA.prototype,"engagementPanel",void 0);_.y([_.L(),_.D("design:type",Object)],nA.prototype,"maxLines",void 0);
_.y([_.L(),_.D("design:type",String)],nA.prototype,"expandLabel",void 0);_.y([_.L(),_.D("design:type",String)],nA.prototype,"collapseLabel",void 0);_.y([_.L(),_.D("design:type",Object)],nA.prototype,"expandCommand",void 0);_.y([_.L(),_.D("design:type",Object)],nA.prototype,"expandButtonOffset",void 0);_.y([_.S("text"),_.D("design:type",String),_.D("design:paramtypes",[])],nA.prototype,"simpleText",null);
_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],nA.prototype,"onClick",null);_.y([_.S("text","isExpanded"),_.D("design:type",Object),_.D("design:paramtypes",[])],nA.prototype,"expandedText",null);_.y([_.S("headerRuns","isExpanded"),_.D("design:type",Object),_.D("design:paramtypes",[])],nA.prototype,"expandedHeaderRuns",null);
_.y([_.S("text"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],nA.prototype,"hasAttributedStringText",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],nA.prototype,"showExpandButton",void 0);_.y([_.S("collapseLabel","isExpanded"),_.D("design:type",Object),_.D("design:paramtypes",[])],nA.prototype,"showCollapseButton",null);_.y([_.L(),_.D("design:type",Object)],nA.prototype,"isTruncated",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],nA.prototype,"isExpanded",void 0);_.y([_.L(),_.D("design:type",Boolean)],nA.prototype,"isAttributedExpanded",void 0);_.y([_.m5("isExpanded","hasAttributedStringText"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nA.prototype,"updateIsAttributedExpanded",null);_.y([_.L(),_.D("design:type",Boolean)],nA.prototype,"isFormattedExpanded",void 0);
_.y([_.m5("isExpanded","hasAttributedStringText"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nA.prototype,"updateIsFormattedExpanded",null);_.y([_.L(),_.D("design:type",Number)],nA.prototype,"currentSnippetType",void 0);_.y([_.S("currentSnippetType"),_.D("design:type",Object),_.D("design:paramtypes",[])],nA.prototype,"useAttributedSnippet",null);
_.y([_.S("currentSnippetType"),_.D("design:type",Object),_.D("design:paramtypes",[])],nA.prototype,"useFormattedSnippet",null);_.y([_.S("currentSnippetType"),_.D("design:type",Object),_.D("design:paramtypes",[])],nA.prototype,"usePlainSnippet",null);_.y([_.L(),_.D("design:type",Object)],nA.prototype,"alwaysShowExpandButton",void 0);_.y([_.m5("currentSnippetType"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nA.prototype,"updateTextOnSnippetTypeChange",null);
_.y([_.L(),_.D("design:type",Object)],nA.prototype,"attributedSnippetText",void 0);_.y([_.AY("#snippet"),_.D("design:type",HTMLElement)],nA.prototype,"snippetContainer",void 0);_.y([_.AY("#snippet-text"),_.D("design:type",HTMLElement)],nA.prototype,"snippetText",void 0);_.y([_.AY("#plain-snippet-text"),_.D("design:type",HTMLElement)],nA.prototype,"plainSnippetText",void 0);_.y([_.AY("#formatted-snippet-text"),_.D("design:type",Object)],nA.prototype,"formattedSnippetText",void 0);
_.y([_.AY("#attributed-snippet-text"),_.D("design:type",Object)],nA.prototype,"attributedSnippetTextEl",void 0);_.y([_.AY("#expand"),_.D("design:type",HTMLElement)],nA.prototype,"expandButton",void 0);_.y([_.AY("#expand-sizer"),_.D("design:type",HTMLElement)],nA.prototype,"expandSizer",void 0);_.y([_.ba("isExpanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nA.prototype,"isExpandedChanged",null);
_.y([_.m5("isExpanded","maxLines"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nA.prototype,"updateSnippetContainerMaxHeight",null);_.y([_.m5("isTruncated","showExpandButton","expandButtonOffset"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nA.prototype,"updateMaskAndExpandButtonOffset",null);
_.y([_.ba("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nA.prototype,"onTextChanged",null);_.y([_.v({is:"ytd-text-inline-expander",disableElementRegistration:!0})],nA);
_.h(nA,"ytd-text-inline-expander",function(){if(vLT===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);vLT=c}c=vLT;return c},{mode:2});var $F=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return c};
_.K($F,_.z);$F.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
$F.prototype.handleUpdateDescriptionAction=function(c){if(c=_.b(c,_.MIr))if(c.attributedDescription)this.set("data.attributedDescriptionBodyText",c.attributedDescription);else if(c.description){var f;((f=this.data)==null?0:f.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.he(c.description)):this.set("data.descriptionBodyText",c.description)}};
_.ci.Object.defineProperties($F.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null||!c.attributedDescriptionBodyText)||!((f=this.data)==null||!f.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null?0:c.collapsedLineCount){var f;return(f=this.data)==null?void 0:f.collapsedLineCount}c=_.rx("web_watch_description_collapsed_default_lines",12);if(_.F("ww_desc_line_page_size_ks"))return c;f=Math.round(_.KX().height*_.rx("web_watch_description_screen_height_percentage",.5)/20);return Math.max(f,c)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return(d=(c=this.data)==null?void 0:c.descriptionBodyText)!=null?d:(f=this.data)==null?void 0:f.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.sourceAttributions}}});
$F.prototype.panelContentVisibleChanged=$F.prototype.panelContentVisibleChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],$F.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],$F.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$F.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Boolean)],$F.prototype,"panelContentVisible",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],$F.prototype,"engagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],$F.prototype,"shortsPanel",void 0);_.y([_.AY("#inline-expander"),_.D("design:type",Object)],$F.prototype,"inlineExpander",void 0);
_.y([_.m5("panelContentVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$F.prototype,"panelContentVisibleChanged",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],$F.prototype,"hasDescriptionText",null);_.y([_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],$F.prototype,"collapsedLines",null);
_.y([_.S("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.D("design:type",Object),_.D("design:paramtypes",[])],$F.prototype,"descriptionText",null);_.y([_.S("data","data.headerRuns"),_.D("design:type",Object),_.D("design:paramtypes",[])],$F.prototype,"headerRuns",null);_.y([_.S("data","data.sourceAttributions"),_.D("design:type",Object),_.D("design:paramtypes",[])],$F.prototype,"sourceAttributions",null);
_.y([_.v({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],$F);
_.h($F,"ytd-expandable-video-description-body-renderer",function(){if(uK3!==void 0)return uK3;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return uK3=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var wJr;var yGK=_.dN(function(c){var f=c.data;return _.B("factoid-renderer",{class:"ytwFactoidRendererHost"},_.B("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return f().accessibilityText}},_.B("span",{class:"ytwFactoidRendererValue"},_.B(_.J9,{text:function(){return f().value}})),_.B("span",{class:"ytwFactoidRendererLabel"},_.B(_.J9,{text:function(){return f().label}}))))},"Zb");_.g_(yGK,"factoid-renderer",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;return _.B("upload-time-factoid-renderer",null,_.B(_.u7,{data:function(){return f().factoid}},{factoidRenderer:yGK}))},"$b"),"upload-time-factoid-renderer",{props:{data:_.Cs}});_.g_(_.dN(function(c){var f=c.data;return _.B("view-count-factoid-renderer",null,_.B(_.u7,{data:function(){return f().factoid}},{factoidRenderer:yGK}))},"ac"),"view-count-factoid-renderer",{props:{data:_.Cs}});var Qo=function(){var c=_.z.apply(this,arguments)||this;c.shortsPanel=!1;c.engagementPanel=!1;c.watchWhileSdp=_.F("shorts_desktop_watch_while_sdp");return c};
_.K(Qo,_.z);Qo.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"}}}}};
_.ci.Object.defineProperties(Qo.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var c;return(c=this.data)==null?void 0:c.channel}}});
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Qo.prototype,"componentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Qo.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Qo.prototype,"shortsPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Qo.prototype,"engagementPanel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Qo.prototype,"watchWhileSdp",void 0);_.y([_.S("shortsPanel","engagementPanel","data.channel"),_.D("design:type",Object),_.D("design:paramtypes",[])],Qo.prototype,"showChannelInfo",null);_.y([_.v({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Qo);
_.h(Qo,"ytd-video-description-header-renderer",function(){if(wJr!==void 0)return wJr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return wJr=c},{mode:1});var WI_;var S$=function(){return _.z.apply(this,arguments)||this};
_.K(S$,_.z);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],S$.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],S$.prototype,"noPadding",void 0);_.y([_.L(),_.D("design:type",Object)],S$.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],S$);
_.h(S$,"ytd-list-item-view-model",function(){if(WI_!==void 0)return WI_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return WI_=c},{mode:1});var Dy3;var eXH;var N0T;var IXO;var LA=function(){var c=_.z.apply(this,arguments)||this;c.adaptiveFullWidth=!1;c.modernButtons=_.F("web_modern_buttons");c.buttonOverrides={style:"call-to-action",type:"filled"};c.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return c};
_.K(LA,_.z);LA.prototype.handleSetTimestamp_=function(c){this.data&&this.data.shortUrl&&(_.r1(this.hostElement).querySelector("#share-url").value=c.isSet?_.I_(this.data.shortUrl,"t",c.timestamp):this.data.shortUrl)};
LA.prototype.handleSignalActionCopyShareUrl_=function(c,f){(_.F("killswitch_copy_link_target_check")||_.r1(this.hostElement).querySelector("#copy-button")===f)&&this.copyUrlToClipboard()};
LA.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.r1(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
LA.prototype.computeStyle_=function(c){return c?c.toLowerCase().replace(/_/g,"-"):""};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],LA.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],LA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.D("design:type",String)],LA.prototype,"rendererStyle",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],LA.prototype,"adaptiveFullWidth",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],LA.prototype,"modernButtons",void 0);_.y([_.L(),_.D("design:type",Object)],LA.prototype,"buttonOverrides",void 0);_.y([_.vj({is:"yt-copy-link-renderer",disableElementRegistration:!0})],LA);
_.h(LA,"yt-copy-link-renderer",function(){if(IXO===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;N0T===void 0&&(N0T=document.createElement("template"));var q=N0T;d.call(f,q.content.cloneNode(!0),c.content.firstChild);IXO=c}c=IXO;return c},{mode:2});_.w_("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var zp=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return c};
_.K(zp,_.z);_.r=zp.prototype;_.r.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.r.attached=function(){this.keyboardFocused=!1};
_.r.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var c=_.ql().resolve(_.dx(_.lw));c&&(this.keyboardFocused=c.isKeyBoardInUse())}};
_.r.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.r.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}};
_.r.onChange_=function(){if(this.data){var c=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;c&&this.ytComponentBehavior.resolveCommand(c);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.r.handleUpdateToggleAction_=function(c){(c=_.b(c,qK3))&&this.data&&c.targetId==this.data.targetId&&this.set("data.toggled",c.toggled)};
_.r.toBoolean_=function(c){return!!c};
_.r.reset=function(){};
_.r.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("data-changed",this.data))};
_.r.updateDataToggledFromBinding=function(c){this.set("data.toggled",c.detail.value)};
zp.prototype.dataChangedForBinding=zp.prototype.dataChangedForBinding;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],zp.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],zp.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],zp.prototype,"data",void 0);_.y([_.L({computed:"computeDescription_(data.*)"}),_.D("design:type",Object)],zp.prototype,"description_",void 0);_.y([_.L({value:function(){return!!_.ql().resolve(_.dx(_.lw))&&_.F("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.D("design:type",Boolean)],zp.prototype,"useKeyboardFocused",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],zp.prototype,"keyboardFocused",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zp.prototype,"dataChangedForBinding",null);_.y([_.vj({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],zp);
_.h(zp,"yt-toggle-form-field-renderer",function(){if(eXH===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Dy3===void 0&&(Dy3=document.createElement("template"));var q=Dy3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);eXH=c}c=eXH;return c},{mode:2});var PGr;var RXo;var JX=function(){var c=_.z.apply(this,arguments)||this;c.isDarkTheme=!1;c.isSearch=!1;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.noTopMargin=_.F("kevlar_watch_no_top_margin");c.maskFade=_.F("web_watch_chips_mask_fade");c.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 c};
_.K(JX,_.z);_.r=JX.prototype;_.r.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}}}}}};
_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.r.dataChanged=function(){var c=this.getSelectedIndex();if(c>0)this.selected=c;else{this.selected=0;var f,d;(f=this.ytScrollableChipCloudBehavior)==null||(d=f.reset)==null||d.call(f)}};
_.r.getSelectedIndex=function(){var c;if((c=this.data)==null||!c.chips)return-1;c=-1;for(var f,d=0;d<((f=this.data)==null?void 0:f.chips.length);d++){var q=void 0,Z=void 0;if((q=this.data)==null?0:(Z=q.chips[d].chipCloudChipRenderer)==null?0:Z.isSelected){c=d;break}}return c};
_.r.onResize=function(){var c=this.ytScrollableChipCloudBehavior;_.ol(c,c.setContainerWidthDiff);iy(this.ytScrollableChipCloudBehavior)};
_.r.onDarkModeToggledAction=function(c){this.isDarkTheme=c};
_.r.handleRelatedChipCommand=function(c,f){c=this.JSC$16308_chipsSelector.indexOf(f);c!==-1&&this.JSC$16308_chipsSelector.selectIndex(c)};
_.r.handleChipCloudChipSelectAction=function(c){c=this.JSC$16308_chipsSelector.indexOf(c);c>-1&&this.JSC$16308_chipsSelector.selectIndex(c)};
_.r.handleChipCloudChipDeselectAction=function(){var c=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16308_chipsSelector&&((c==null?0:c.continuationCommand)?_.OX(this.hostElement,[c]):(c==null?0:c.searchEndpoint)?this.ytComponentBehavior.resolveCommand(c):c&&_.ll(this.hostElement,[c],this.hostElement),this.JSC$16308_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.r.updateSelectedFromBinding=function(c){this.selected=c.detail.value};
JX.prototype.onResize=JX.prototype.onResize;JX.prototype.dataChanged=JX.prototype.dataChanged;JX.prototype.isSearchChanged=JX.prototype.isSearchChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],JX.prototype,"actionHandlerBehavior",void 0);
_.y([_.Q(_.aJ),_.D("design:type",Object)],JX.prototype,"ironResizableBehavior",void 0);_.y([_.Q(),_.D("design:type",By)],JX.prototype,"ytScrollableChipCloudBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],JX.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],JX.prototype,"data",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],JX.prototype,"selected",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JX.prototype,"isDarkTheme",void 0);_.y([_.L({value:160}),_.D("design:type",Number)],JX.prototype,"scrollDistance",void 0);_.y([_.L(),_.D("design:type",Object)],JX.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JX.prototype,"darkerDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JX.prototype,"noTopMargin",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JX.prototype,"maskFade",void 0);_.y([_.AY("#chips"),_.D("design:type",Object)],JX.prototype,"JSC$16308_chipsSelector",void 0);_.y([_.m5("isSearch"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JX.prototype,"isSearchChanged",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JX.prototype,"dataChanged",null);
_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JX.prototype,"onResize",null);_.y([_.vj({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],JX);
_.h(JX,"yt-chip-cloud-renderer",function(){if(RXo===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;PGr===void 0&&(PGr=document.createElement("template"));var q=PGr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);RXo=c}c=RXo;return c},{mode:2});var Uyv,pJv=function(){return Uyv!==void 0?Uyv:Uyv=document.createElement("template")};
document.head.appendChild(pJv().content);var xyK;var oLK=document.head,GWv=oLK.appendChild,cS_;if(xyK===void 0){var fxy=document.createElement("template");_.n(fxy,"");fxy.content.insertBefore(pJv().content.cloneNode(!0),fxy.content.firstChild);xyK=fxy}cS_=xyK;GWv.call(oLK,cS_.content);var d7r=_.dN(function(c){var f=c.data;return _.B("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.B("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.B("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.B(_.T,{cond:function(){return _.oe(f().image)},
then:function(d){return _.B("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.B(_.jC,{data:d,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.B("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.B(_.J9,{text:function(){return f().title}})),_.B("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.B(_.J9,{text:function(){return f().subtitle}})))),_.B(_.T,{cond:function(){var d;
return(d=f())==null?void 0:d.hasBottomDivider},
then:function(){return _.B("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"bc");var jmy=_.dN(function(c){var f=c.data;return _.B("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.B(_.u7,{data:function(){var d;return(d=f().offerPlanDetailsItem)!=null?d:[]}},{offerPlanDetailsItemViewModel:function(d){return _.B("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.B(d7r,{data:d.data}))}})),_.B("div",null,_.B(_.T,{cond:function(){return f().hasBottomDivider},
then:function(){return _.B("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.B("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.B("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"cc");var qGu=_.dN(function(c){var f=c.data;c=_.C(_.OT(!1,void 0,"SpEGQd"));var d=c.next().value,q=c.next().value,Z=_.Ks(function(){q(!d());return!1}),M=function(){var g;
return(g=f().offerPlanDetailsContainer)!=null?g:[]};
return _.B("lp-complex-offer-card-details-view-model",null,_.B("div",null,_.B(_.T,{cond:function(){return d()},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.B("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Z,"aria-expanded":d},_.B(_.J9,{text:function(){return f().expandedTitle}})),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.B(_.u7,{data:M},{offerPlanDetailsContainerViewModel:function(g){return _.B("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.B(jmy,{data:g.data}))}})),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.B(_.J9,{text:function(){return f().legalText}})))},
else:function(){return _.B("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Z,"aria-expanded":d},_.B(_.J9,{text:function(){return f().collapsedTitle}}),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.B(_.Qy,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"dc");var Z_K=_.dN(function(c){var f=c.data;return _.B("lp-complex-offer-card-option-view-model",null,_.B("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.B(_.T,{cond:function(){return f().topDividerText},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.B(_.J9,{text:function(){return f().topDividerText}}))))}}),_.B(_.T,{cond:function(){return f().description},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.B(_.J9,{text:function(){return f().description}}))}}),_.B(_.T,{cond:function(){return f().planPricingPrimary},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.B(_.J9,{text:function(){return f().planPricingPrimary}}))}}),_.B(_.T,{cond:function(){return f().planPricingSecondary},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.B(_.J9,{text:function(){return f().planPricingSecondary}}))}}),_.B(_.T,{cond:function(){return f().primaryButton},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.B(_.u7,{data:function(){return f().primaryButton}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"ec");var MVy=_.dN(function(c){var f=c.data;var d=function(){var M;return((M=f())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
c={};var q={},Z={};return _.B("ytm-lp-complex-offer-card-view-model",null,_.B("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.B("div",{class:_.FY((c.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=d,c),"ytmLpComplexOfferCardViewModelCardContainer")},_.B(_.T,{cond:function(){var M;return(M=f())==null?void 0:M.bannerText},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.B("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.B(_.J9,{text:function(){return f().bannerText}})))}}),_.B(_.T,{cond:function(){return _.oe(f().logo)},
then:function(M){var g={};return _.B("div",{class:_.FY((g.ytmLpComplexOfferCardViewModelLogoAlignLeft=d,g),"ytmLpComplexOfferCardViewModelLogo")},_.B(_.jC,{data:M,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.B("div",{class:_.FY((q.ytmLpComplexOfferCardViewModelTitleAlignLeft=d,q),"ytmLpComplexOfferCardViewModelTitle")},_.B(_.J9,{text:function(){return f().title}})),_.B(_.T,{cond:function(){var M;
return(M=f())==null?void 0:M.subtitle},
then:function(){var M={};return _.B("div",{class:_.FY((M.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=d,M),"ytmLpComplexOfferCardViewModelSubtitle")},_.B(_.J9,{text:function(){return f().subtitle}}))}}),_.B(_.T,{cond:function(){return f().planPricingPrimary},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.B(_.J9,{text:function(){return f().planPricingPrimary}}))}}),_.B(_.T,{cond:function(){return f().planPricingSecondary},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.B(_.J9,{text:function(){return f().planPricingSecondary}}))}}),_.B(_.T,{cond:function(){return f().purchaseButton},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.B(_.u7,{data:function(){return f().purchaseButton}},{buttonViewModel:function(M){return _.B(_.mN,{data:M.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.B(_.T,{cond:function(){var M;
return(M=f())==null?void 0:M.offerOptions},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.B(_.u7,{data:function(){return f().offerOptions}},{lpComplexOfferCardOptionViewModel:Z_K}))}}),_.B("div",{class:_.FY((Z.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=d,Z),"ytmLpComplexOfferCardViewModelLegalText")},_.B(_.J9,{text:function(){return f().legalText}})),_.B(_.T,{cond:function(){var M;
return(M=f())==null?void 0:M.offerCardDetails},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.B(_.u7,{data:function(){return f().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:qGu}))}}))))},"fc");var rSy=_.dN(function(c){var f=c.data;var d=function(){var g;return((g=f())==null?void 0:g.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
c={};var q={},Z={},M={};return _.B("ytm-lp-complex-offer-card-section-view-model",null,_.B("div",{class:_.FY("ytmLpComplexOfferCardSectionViewModelHost")},_.B("div",{class:_.FY((c.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=d,c),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.B("div",{class:_.FY((q.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=d,q),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.B("h2",{class:_.FY((Z.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
d,Z),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.B(_.J9,{text:function(){return f().title}}))),_.B(_.T,{cond:function(){var g;
return(g=f())==null?void 0:g.subtitle},
then:function(){var g={},O={};return _.B("div",{class:_.FY((g.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=d,g),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.B("div",{class:_.FY((O.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=d,O),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.B(_.J9,{text:function(){return f().subtitle}})))}}),_.B("div",{class:_.FY((M.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=d,M),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.B(_.u7,{data:function(){var g;
return(g=f().offerPlans)!=null?g:[]}},{lpComplexOfferCardViewModel:function(g){return _.B("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.B(MVy,{data:g.data}))}})))))},"gc");var CtF=_.dN(function(c){return _.B("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.B("div",{class:"ytLpCouponBannerViewModelIcon"},_.B(_.Qy,{icon:function(){return"price_tag"}})),_.B("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.B("div",{class:"ytLpCouponBannerViewModelContent"},_.B("div",{class:"ytLpCouponBannerViewModelHeading"},_.B(_.J9,{text:function(){var f;
return(f=c.data())==null?void 0:f.title}})),_.B("div",{class:"ytLpCouponBannerViewModelBody"},_.B(_.J9,{text:function(){var f;
return(f=c.data())==null?void 0:f.subtitle}})))))},"hc");
CtF.idomCompat=!0;_.aP=Zuj.getInstance();var g1O;g1O=_.dN(function(c){return _.B("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":c.shouldAriaHideContent},_.B("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:c.questionId},_.B(_.J9,{text:c.question})))},"ic");
_.kE3=_.dN(function(c){var f=c.data;var d=c.themeOverride;c=_.C(_.OT(!1,void 0,"ljTVPd"));var q=c.next().value,Z=c.next().value;c=_.Ks(function(){Z(!q());return!1});
var M=function(){return q()?"EXPAND_LESS":"EXPAND_MORE"},g=("faq-container"+_.Xl(_.aP)).toString(),O="faq-question-and-answers-section-question"+_.Xl(_.aP),l={},m={};
return _.B("faq-entry-view-model-c3",null,_.B("div",{class:_.FY("yt-lp-faq-entry-view-model",(l["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return d==null?void 0:d().useDarkTheme},l))},_.B("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":c,role:"button","aria-expanded":q,"aria-labelledby":O.toString(),"tab-index":"0"},_.B(g1O,{question:function(){return f().question},
questionId:O,shouldAriaHideContent:!0}),_.B(_.T,{cond:function(){return q()!==void 0},
then:function(){return _.B("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.B(_.Qy,{icon:M,ariaHidden:!0}),_.B("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.B("div",{class:_.FY("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(m["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!q()},m))},_.B("div",{id:g},_.B(_.bd,{each:function(){return f().answers||[]}},function(H){return _.B("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.B(_.J9,{text:H}))})))))},"jc");
_.kE3.idomCompat=!0;var O_o=_.dN(function(c){var f=c.data;var d=c.themeOverride;c={};return _.B("lp-faq-section-view-model-c3",null,_.B("div",{class:_.FY("yt-lp-faq-section-view-model",(c["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return f().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},c["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(d==null||!d().useDarkTheme)},c))},_.B("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.B(_.T,{cond:function(){return f().header},
then:function(q){return _.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.B(_.J9,{text:q}))}}),_.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.B(_.u7,{data:function(){return f().faqs}},{faqEntryViewModel:function(q){return _.B(_.kE3,{data:q.data,
themeOverride:d})}})),_.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.B(_.bd,{each:function(){return f().footers||[]}},function(q){return _.B(_.J9,{text:q})})),_.B(_.T,{cond:function(){return f().legal},
then:function(q){return _.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.B(_.J9,{text:q}))}}))))},"kc");
O_o.idomCompat=!0;var lxF=_.dN(function(c){var f=c.data;var d=c.themeOverride;_.L9(function(){var g=f().gtmId;g&&_.J$(g,_.hk("GL",""))});
var q={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var g,O,l;return(l=(g=f().logo)==null?void 0:(O=g.accessibilityData)==null?void 0:O.label)!=null?l:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Z=_.ql().resolve(_.dx(_.of)),M=function(){return Z&&Z()||(d==null?void 0:d().useDarkTheme)};
return _.B("lp-header-section-view-model",null,_.B("div",{class:function(){var g=f().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",O=f().marginType==="LP_SECTION_MARGIN_TYPE_TOP",l=d==null?void 0:d().useDarkTheme,m=["lp-header-section-view-model"];g&&m.push("lp-header-section-view-model--ptc-layout-type");O&&m.push("lp-header-section-view-model__lp-header-section-margin");l&&m.push("lp-header-section-view-model--premium-force-dark-mode");return m.join(" ")}},_.B(_.T,{cond:function(){return f().logo},
then:function(){return _.B("div",null,_.B(_.T,{cond:M,then:function(){return _.B(_.T,{cond:function(){var g;return(g=f().logo)==null?void 0:g.imageDark},
then:function(g){return _.B(_.jC,Object.assign({},{data:g},q))}})},
else:function(){return _.B(_.T,{cond:function(){var g;return(g=f().logo)==null?void 0:g.imageLight},
then:function(g){return _.B(_.jC,Object.assign({},{data:g},q))}})}}))}}),_.B(_.T,{cond:function(){return f().title},
then:function(g){return _.B("div",{class:"lp-header-section-view-model__lp-header-title"},_.B(_.J9,{text:g}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.B(_.T,{cond:function(){return f().subtitles},
then:function(g){return _.B(_.bd,{each:g},function(O){return _.B("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.B(_.J9,{text:O}))})}})),_.B(_.T,{cond:function(){return f().additionalInfo},
then:function(g){return _.B("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.B(_.J9,{text:g}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.B(_.T,{cond:function(){return f().primaryButton},
then:function(g){return _.B("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.B(_.u7,{data:g},{buttonViewModel:_.mN}))}}),_.B(_.T,{cond:function(){return f().secondaryButton},
then:function(g){return _.B("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.B(_.u7,{data:g},{buttonViewModel:_.mN}))}})),_.B(_.T,{cond:function(){return f().otherOffersInfo},
then:function(g){return _.B("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.B(_.J9,{text:g}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.B(_.T,{cond:function(){return f().billingInfo},
then:function(g){return _.B(_.bd,{each:g},function(O){return _.B("div",null,_.B(_.J9,{text:O}))})}}))))},"lc");
lxF.idomCompat=!0;var smr=_.dN(function(c){var f=c.data;var d=_.Ga(c.themeOverride,{useDarkTheme:!1});c={};c=_.FY("ytm-lp-headline-section-view-model",(c["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return d().useDarkTheme},c));
return _.B("lp-headline-section-view-model",null,_.B("div",{class:c},_.B("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.B(_.J9,{text:function(){return f().title}})),_.B(_.T,{cond:function(){return f().subtitle},
then:function(q){return _.B("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.B(_.J9,{text:q}))}})))},"mc");var BZy=_.dN(function(c){var f=c.data;var d=c.themeOverride;var q=_.ql().resolve(_.dx(_.of)),Z=function(){return q&&q()||(d==null?void 0:d().useDarkTheme)},M=function(){var m,H;
var A=Z()?(m=f().textBackgroundImage)==null?void 0:m.imageDark:(H=f().textBackgroundImage)==null?void 0:H.imageLight;return lon((A==null?void 0:A.sources)||[])},g=function(){var m,H;
return Z()?(m=f().featureImage)==null?void 0:m.imageDark:(H=f().featureImage)==null?void 0:H.imageLight},O=function(){return f().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},l=function(){var m,H;
return Z()?(m=f().logo)==null?void 0:m.imageDark:(H=f().logo)==null?void 0:H.imageLight};
return _.B("ytm-lp-large-feature-section-view-model",null,_.B("div",{class:function(){var m=f().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",H=f().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",A=(f().index||0)%2===1,Y=d==null?void 0:d().useDarkTheme,t=["yt-lp-large-feature-section-view-model"];m?t.push("yt-lp-large-feature-section-view-model--music-feature-type"):H?t.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):A||t.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
Y&&t.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return t.join(" ")}},_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.B(_.T,{cond:g,
then:function(){return _.B(_.jC,{data:function(){return g()},
alt:function(){var m,H,A;return(A=(m=f().featureImage)==null?void 0:(H=m.accessibilityData)==null?void 0:H.label)!=null?A:""},
contentMode:O})}})),_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var m;return((m=M())==null?0:m.url)?"background-image: url("+_.XD(M().url)+");":""}},_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.B(_.T,{cond:l,
then:function(){return _.B(_.jC,{data:function(){return l()},
alt:function(){var m,H,A;return(A=(m=f().logo)==null?void 0:(H=m.accessibilityData)==null?void 0:H.label)!=null?A:""},
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"})}}),_.B(_.T,{cond:function(){return f().eyebrowText},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.B(_.J9,{text:function(){return f().eyebrowText}}))}}),_.B(_.T,{cond:function(){return f().title},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.B(_.J9,{text:function(){return f().title}}))}}),_.B(_.T,{cond:function(){return f().subtitles},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.B(_.bd,{each:function(){return f().subtitles||[]}},function(m){return _.B(_.J9,{text:m})}))}})))))},"nc");
BZy.idomCompat=!0;var i_v=_.dN(function(c){return _.B("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.B("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.B(_.Qy,{icon:function(){var f;return(f=c.data())==null?void 0:f.iconType},
className:function(){var f;switch((f=c.data())==null?void 0:f.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 f;return((f=c.data())==null?void 0:f.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.B("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.B(_.J9,{text:function(){var f;
return(f=c.data())==null?void 0:f.text},
className:function(){var f;return((f=c.data())==null?void 0:f.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"oc");var TZF=_.dN(function(c){c=_.ch(c,{config:void 0,themeOverride:void 0});var f=c.data,d=c.config,q=c.themeOverride;c={};c=_.FY("ytm-lp-offer-card-option-view-model",(c["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var O;return(O=q())==null?void 0:O.useDarkTheme},c));
var Z=_.Ks(function(){var O,l;(O=d())==null||(l=O.handleRadioButtonClick)==null||l.call(O,f());return!1}),M=function(){var O;
return(O=d())==null?void 0:O.shouldDisplayRadioButton},g=function(){var O;
return(O=f().featureListItems)!=null?O:[]};
return _.B("ytm-lp-offer-card-option-view-model",null,_.B("div",{class:c,"on:click":_.Ks(function(){if(M()){var O,l;(O=d())==null||(l=O.handleRadioButtonClick)==null||l.call(O,f())}return!1})},_.B(_.T,{cond:M,
then:function(){return _.B("div",null,_.B("input",{type:"radio","on:click":Z,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var O;return!((O=d())==null||!O.isOptionSelected)}}))}}),_.B("div",null,_.B("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.B(_.J9,{text:function(){return f().eyebrowText}})),_.B("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.B(_.J9,{text:function(){return f().title}})),_.B("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.B(_.J9,{text:function(){return f().subtitle}})),_.B(_.T,{cond:function(){return g().length>0},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.B(_.u7,{data:g},{lpFeatureListItemViewModel:i_v}))}}),_.B("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.B(_.J9,{text:function(){return f().description}})))))},"pc");
TZF.idomCompat=!0;var m7K=_.dN(function(c){var f=c.data;var d=c.themeOverride;c=_.C(_.ns(function(){var M,g=(M=f().offerOptions)==null?void 0:M[0];return _.b(g,ABv)||{}}));
var q=c.next().value,Z=c.next().value;c={};return _.B("ytm-lp-offer-card-view-model",null,_.B("div",{class:_.FY("ytm-lp-offer-card-view-model",(c["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(d==null||!d().useDarkTheme)},c))},_.B("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.B(_.T,{cond:function(){return f().titleIconType},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.B(_.Qy,{icon:function(){var M;return((M=f().titleIconType)==null?void 0:M.toString())||""}}))}}),_.B("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.B(_.J9,{text:function(){return f().title}})),_.B(_.u7,{data:function(){return f().titleBadge}},{badgeViewModel:function(M){return _.B("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.B(_.rA,{data:M.data}))}})),_.B("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.B(_.u7,{data:function(){return f().offerOptions}},{lpOfferCardOptionViewModel:function(M){var g=M.data;
return _.B(_.qD,null,_.B("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.B(TZF,{data:g,config:function(){var O;return{shouldDisplayRadioButton:(f().offerOptions||[]).length>1,isOptionSelected:g().id===((O=q())==null?void 0:O.id),handleRadioButtonClick:function(l){return void Z(l)}}},
themeOverride:d}))}})),_.B("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.B(_.u7,{data:function(){var M;
return(M=q())==null?void 0:M.purchaseButtonOverride}},{buttonViewModel:_.mN}))))},"qc");
m7K.idomCompat=!0;var H_u=_.dN(function(c){var f=c.data;var d=c.themeOverride;c={};c=_.FY("ytm-lp-offer-card-section-view-model",(c["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var q;return d==null?void 0:(q=d())==null?void 0:q.useDarkTheme},c));
return _.B("ytm-lp-offer-card-section-view-model",null,_.B("div",{class:c},_.B(_.T,{cond:function(){return f().title!==void 0},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.B("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.B(_.J9,{text:function(){return f().title}})),_.B(_.T,{cond:function(){return f().subtitle},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.B(_.J9,{text:function(){return f().subtitle}}))}}))}}),_.B("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.B(_.u7,{data:function(){return f().offerCards}},{lpOfferCardViewModel:function(q){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.B(m7K,{data:q.data,
themeOverride:d}))}})),_.B(_.T,{cond:function(){return f().footer},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.B(_.J9,{text:function(){return f().footer}}))}})))},"rc");var ASr=_.dN(function(c){var f=c.data;return _.B("lp-offer-table-cell-content-view-model",null,_.B("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.B(_.n9,null,_.B(_.K9,{when:function(){return f().title}},function(){return _.B(_.J9,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return f().title}})}),_.B(_.K9,{when:function(){return f().subTitle}},function(){return _.B(_.J9,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return f().subTitle}})}),_.B(_.K9,{when:function(){return f().featureDescription}},function(){return _.B(_.J9,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return f().featureDescription}})}),_.B(_.K9,{when:function(){return f().description}},function(){return _.B(_.J9,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return f().description}})}),_.B(_.K9,{when:function(){return f().iconType}},function(){return _.B("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.B(_.Qy,{icon:function(){return f().iconType.toString()}}))}),_.B(_.K9,{when:function(){return f().purchaseButton}},function(){return _.B(_.u7,{data:function(){return f().purchaseButton}},{buttonViewModel:function(d){return _.B("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.B(_.mN,{data:d.data}))}})}),_.B(_.K9,{when:function(){return f().note}},function(){return _.B(_.J9,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return f().note}})}),_.B(_.K9,{when:function(){return f().featureDetail}},function(){return _.B(_.J9,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return f().featureDetail}})}),_.B(_.K9,{when:function(){return f().badge}},function(){return _.B(_.u7,{data:function(){return f().badge}},{badgeViewModel:_.rA})}))))},"sc");
ASr.idomCompat=!0;var YG_=_.dN(function(c){var f=c.data;return _.B("lp-offer-table-cell-view-model",null,_.B("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(f().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;"}}},_.B(_.u7,{data:function(){return f().contents}},{lpOfferTableCellContentViewModel:ASr})))},
"tc");
YG_.idomCompat=!0;var FBu=_.dN(function(c){var f=c.data;var d=c.lpTableIsFirstRow;var q=c.lpTableIsLastRow;var Z=function(){return(d==null?0:d())?"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"},M=function(){return(d==null?0:d())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(q==null?0:q())?"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 _.B("ytm-lp-offer-table-row-view-model",null,_.B("div",{class:"yt-lp-offer-table-row-view-model"},_.B(_.u7,{data:function(){return f().rowHeaderCell}},{lpOfferTableCellViewModel:function(g){return _.B("div",{class:Z},_.B(YG_,{data:g.data}))}}),_.B(_.u7,{data:function(){return f().contentCells}},{lpOfferTableCellViewModel:function(g){return _.B("div",{class:M},_.B(YG_,{data:g.data}))}})))},"uc");
FBu.idomCompat=!0;var tV_=_.dN(function(c){var f=c.data;var d=c.themeOverride;var q=_.ql().resolve(_.dx(_.of)),Z=function(){return _.b(f().logo,u4v)||{}};
c={};return _.B("ytm-lp-offer-table-section-view-model",null,_.B("div",{class:"yt-lp-offer-table-view-model"},_.B(_.T,{cond:function(){var M,g;return q&&q()||(d==null?0:d().useDarkTheme)?(M=Z())==null?void 0:M.imageDark:(g=Z())==null?void 0:g.imageLight},
then:function(M){return _.B(_.jC,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var g,O,l;return(l=(g=Z())==null?void 0:(O=g.accessibilityData)==null?void 0:O.label)!=null?l:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.B(_.J9,{text:function(){return f().title}})),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.B(_.J9,{text:function(){return f().subtitle}})),_.B(_.T,{cond:function(){return f().disclaimers},
then:function(M){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.B(_.bd,{each:M},function(g){return _.B("div",null,_.B(_.J9,{text:g}))}))}}),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.B(_.u7,{data:function(){return f().rows}},{lpOfferTableRowViewModel:function(M,g){return _.B(FBu,{data:M.data,
lpTableIsFirstRow:function(){return g()===0},
lpTableIsLastRow:function(){return g()===f().rows.length-1}})}})),_.B("div",{class:_.FY((c["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return f().hasFooterBackground},c))},_.B(_.T,{cond:function(){return f().footer},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.B(_.J9,{text:function(){return f().footer}}))}}),_.B(_.T,{cond:function(){return f().footerTitle},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.B(_.J9,{text:function(){return f().footerTitle}}))}}),_.B(_.T,{cond:function(){return f().footerDescription},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.B(_.J9,{text:function(){return f().footerDescription}}))}}))))},"vc");
tV_.idomCompat=!0;var b_K=_.dN(function(c){var f=c.data;var d=c.themeOverride;var q=_.ql().resolve(_.dx(_.of)),Z=function(){var O;return d==null?void 0:(O=d())==null?void 0:O.useDarkTheme},M=function(){var O,l;
return q&&q()||Z()?(O=f().image)==null?void 0:O.imageDark:(l=f().image)==null?void 0:l.imageLight};
c={};c=_.FY("ytm-lp-small-feature-section-view-model",(c["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=Z,c));var g=function(){var O,l,m;return(m=(O=f().image)==null?void 0:(l=O.accessibilityData)==null?void 0:l.label)!=null?m:""};
return _.B("ytm-lp-small-feature-section-view-model",{class:c},_.B(_.T,{cond:function(){return M()&&!t9k},
then:function(){return _.B("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.B(_.jC,{data:function(){return M()},
alt:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.B("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.B("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.B(_.T,{cond:function(){return f().title},
then:function(O){return _.B(_.J9,{text:O})}})),_.B("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.B(_.J9,{text:function(){return f().description}}))))},"wc");
b_K.idomCompat=!0;var KB_=_.dN(function(c){var f=c.data;var d=c.themeOverride;c={};return _.B("ytm-lp-small-feature-section-group-view-model",null,_.B("div",{class:_.FY("ytm-lp-small-feature-section-group-view-model",(c["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(d==null||!d().useDarkTheme)},c))},_.B("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.B(_.u7,{data:function(){return f().smallFeatures}},{lpSmallFeatureSectionViewModel:function(q){return _.B("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.B(b_K,{data:q.data,
themeOverride:d}))}}))))},"xc");
KB_.idomCompat=!0;_.g_(_.dN(function(c){var f=c.data;var d=function(){return f().forcedTheme==="USER_INTERFACE_THEME_DARK"},q=function(){return f().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Z=function(){var g="",O,l;
var m=_.ql().resolve(_.dx(_.of));m=d()||(m==null?0:m())?(O=f().themedImageViewModel)==null?void 0:O.imageDark:(l=f().themedImageViewModel)==null?void 0:l.imageLight;(O=lon((m==null?void 0:m.sources)||[]))&&O.url&&(g=q()?"background-image: linear-gradient(to bottom, transparent, "+(f().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.XD(O.url)+");":"background-image: url("+_.XD(O.url)+");");return g},M=function(){return{useDarkTheme:d()}};
c={};return _.B("yt-section-group-view-model",null,_.B("div",{class:_.FY("yt-lp-section-group-view-model",(c["yt-lp-section-group-view-model--premium-force-dark-mode"]=d,c["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return f().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},c))},_.B(_.T,{cond:function(){return Z().length},
then:function(){var g={};return _.B("div",{class:_.FY("yt-lp-section-group-view-model__bg-image",(g["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=q,g)),style:Z})}}),_.B("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.B(_.u7,{data:function(){return f().sections}},{lpFaqSectionViewModel:function(g){return _.B(O_o,{data:g.data,
themeOverride:M})},
lpHeaderSectionViewModel:function(g){return _.B(lxF,{data:g.data,themeOverride:M})},
lpHeadlineSectionViewModel:function(g){return _.B(smr,{data:g.data,themeOverride:M})},
lpLargeFeatureSectionViewModel:function(g){return _.B(BZy,{data:g.data,themeOverride:M})},
lpOfferCardSectionViewModel:function(g){return _.B(H_u,{data:g.data,themeOverride:M})},
lpComplexOfferCardSectionViewModel:function(g){return _.B(rSy,{data:g.data})},
lpOfferTableSectionViewModel:function(g){return _.B(tV_,{data:g.data,themeOverride:M})},
lpSmallFeatureSectionGroupViewModel:function(g){return _.B(KB_,{data:g.data,themeOverride:M})},
lpCouponBannerViewModel:function(g){return _.B(CtF,{data:g.data})}}))))},"yc"),"yt-section-group-view-model",{props:{data:_.oM}});var VSk=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Vo=_.dN(function(c){function f(){if(VSk.has(c.data().displayType)){var m=!q(),H;if((H=c.disableDeselection)==null||!H.call(c)||m){c.data().selected=m;H=Object.assign({},g(),{selected:m});O(H);var A;(A=c.callback)==null||A.call(c,H,m)}}}
var d=_.xz("chip-view-model"),q=function(){var m,H;return!!(((m=c.selected)==null?void 0:m.call(c))!==void 0?(H=c.selected)==null?0:H.call(c):g().selected)},Z=_.C(_.ns(c.data)),M=Z.next().value;
Z=Z.next().value;var g=M,O=Z,l=_.Ka(aQh,function(){return c.data().chipEntityKey||""});
return _.B("chip-view-model",{class:"ytChipViewModelHost",el:d},_.B(Zby,{data:function(){var m,H=Object.assign({},g(),{selected:q()}),A=l(),Y=(m=c.disableDeselection)==null?void 0:m.call(c);a:switch(H.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":m=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":m=3;break a;default:m=0}return{text:(A==null?void 0:A.text)||H.text,state:H.disabled?1:H.selected?0:2,type:m,onTap:XoY(H,d,f,Y),
accessibilityLabel:H.accessibilityLabel||H.text}}}))},"zc");
_.Vo.idomCompat={callbacks:{callback:!0}};_.E1F=_.dN(function(c){var f=_.Ka(J_l,function(){var g;return(g=c.data())==null?void 0:g.chipBarStateEntityKey}),d=function(){return c.data().disableDeselection},q=_.C(_.ns(function(){var g;
if(((g=f())==null?void 0:g.selectedIndex)!=void 0)return f().selectedIndex;var O,l;g=_.C(((O=c.data())==null?void 0:(l=O.chips)==null?void 0:l.entries())||[]);for(O=g.next();!O.done;O=g.next()){O=_.C(O.value);l=O.next().value;O=O.next().value;var m=void 0;if((m=_.b(O,_.IE))==null?0:m.selected)return l}return-1})),Z=q.next().value,M=q.next().value;
return _.B("chip-bar-view-model",{class:_.FY("ytChipBarViewModelHost",c.className),role:"tablist"},_.B(_.u7,{data:function(){return c.data().chips}},{chipViewModel:function(g,O){return _.B("div",{class:"ytChipBarViewModelChipWrapper"},_.B(_.Vo,{data:g.data,
selected:function(){return O()===Z()},
callback:function(l,m){l=!!m;m=O();M(l?m:-1);var H,A=(H=c.data())==null?void 0:H.chipBarStateEntityKey;A&&l&&_.oa(_.ER("chipBarStateEntity",A,{key:A,selectedIndex:m}))},
disableDeselection:c.disableDeselection||d}))}}))},"Ac");_.g_(_.E1F,"chip-bar-view-model",{props:{data:_.Cs,className:_.Cs,disableDeselection:_.Cs}});_.n1H=_.dN(function(c){var f=c.data;c={};return _.B("divider-view-model",{class:_.FY("divider-view-model-wiz",(c["divider-view-model-wiz__inset-thin-padding"]=function(){return f().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},c))},_.B("div",{class:_.FY("divider-view-model-wiz__base-divider",function(){return uaM(f().dividerStyle)}),
style:_.$Z({"background-color":function(){return f().backgroundColor?_.ya(f().backgroundColor):void 0}})}))},"Bc");
_.n1H.idomCompat=!0;_.g_(_.n1H,"divider-view-model",{props:{data:_.oM}});var $s=new Map,nO=new Map,woz=0,Q0;var PHn=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],poN={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var $7H,Qm_;$7H=function(c){return function(f){return function(){return(f==null?void 0:f())!==void 0?String(f())+c:void 0}}};
_.Xn=$7H("px");Qm_=$7H("s");var LBu=_.dN(function(c){function f(I){return function(){var R=t().numItemsPerGridRow,qN=I()*R;R=qN+R;var kl,BN;return(BN=(kl=q().contents)==null?void 0:kl.slice(qN,R))!=null?BN:[]}}
var d=_.ch(c,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),q=d.data,Z=d.layoutContainerWidth,M=d.shouldUseOwnContainerSize,g=d.marginSettings;d=_.C(_.OT(!0,void 0,"qgr2Je"));var O=d.next().value,l=d.next().value,m=function(){var I,R=(I=_.b(q().showMoreButton,_.zx))==null?void 0:I.trackingParams;R&&_.mZ(_.bP(),R);l(!1)},H=function(){var I,R=(I=_.b(q().showLessButton,_.zx))==null?void 0:I.trackingParams;
R&&_.mZ(_.bP(),R);l(!0)};
d=_.xz("grid-shelf-view-model");var A=_.oVl(d,{canHaveZeroSize:!1}),Y=function(){var I;return(I=q().contentAspectRatio)!=null?I:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},t=_.TZ(function(){var I=_.xv({containerWidth:M()&&A.width()>0?A.width()||Z():Z(),
sizing:"EXTRA_COMPACT",marginSettings:g(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:I.maxContainerWidth,numItemsPerGridRow:I.numItems,contentPadding:M()?I.margin:I.contentMargin,itemWidth:I.itemWidth,itemMargin:I.gutter/2}},void 0,"pqVdjc"),E=function(){if(q().enableVerticalExpansion){if(O())return J();
var I,R,qN=(R=(I=q().contents)==null?void 0:I.length)!=null?R:0;return Math.ceil(qN/t().numItemsPerGridRow)}return t().numItemsPerGridRow<=2?2:1},J=function(){var I;
return Math.ceil(((I=q().minCollapsedItemCount)!=null?I:1)/t().numItemsPerGridRow)},X=function(){return q().enableVerticalExpansion&&q().showLessButton&&!O()&&E()>J()},u=function(){var I,R;
return q().enableVerticalExpansion&&q().showMoreButton&&O()&&((R=(I=q().contents)==null?void 0:I.length)!=null?R:0)>t().numItemsPerGridRow*J()},W=function(){return!X()},p=function(){return!u()},N={};
return _.B("grid-shelf-view-model",{class:_.FY("ytGridShelfViewModelHost",c.className,(N.ytGridShelfViewModelHostHasBottomButton=function(){return X()||u()},N)),
el:d,style:_.$Z({"margin-left":(0,_.Xn)(function(){return t().contentPadding}),
"margin-right":(0,_.Xn)(function(){return t().contentPadding})})},_.B(_.T,{cond:function(){return _.b(q().header,U2H)},
then:function(I){return _.B(_.Bn,{data:I,disableHorizontalPadding:!0})}}),_.B("div",null,_.B(_.bd,{each:function(){return Array(E())}},function(I,R){return _.B(SGO,{className:c.className,
items:f(R),responsiveGridShelfLayout:t,contentAspectRatio:Y})})),_.B("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.B(_.u7,{data:function(){return q().showMoreButton}},{buttonViewModel:function(I){return _.B("div",{hidden:p},_.B(_.mN,{data:I.data,
onClick:m}))}}),_.B(_.u7,{data:function(){return q().showLessButton}},{buttonViewModel:function(I){return _.B("div",{hidden:W},_.B(_.mN,{data:I.data,
onClick:H}))}})))},"Cc");
LBu.idomCompat=!0;var SGO=_.dN(function(c){var f=c.items;var d=c.responsiveGridShelfLayout;var q=c.contentAspectRatio;c=c.className;var Z=_.xz("div");hLN(Z,function(){a:{var g=Z.value;for(var O=f(),l=[],m=0;m<O.length;m++){var H=_.b(O[m],Ef3);if(!H||H==null||!H.inlinePlayerData){g=null;break a}var A=g.children.item(m);if(!A){g=null;break a}l.push({thumbnailElement:A,videoData:H})}g={gridVideoPreviewData:{gridItems:l}}}return g});
var M=(0,_.Xn)(function(){return-d().itemMargin});
return _.B("div",{el:Z,class:_.FY("ytGridShelfViewModelGridShelfRow",c),style:_.$Z({"margin-left":M,"margin-right":M})},_.B(_.u7,{data:f,replacementWrapper:function(g){return _.B(zQT,{responsiveGridShelfLayout:d},g)}},{shortsLockupViewModel:function(g){return _.B(zQT,{responsiveGridShelfLayout:d},_.B(s6_,{data:g.data,
aspectRatio:function(){return q()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Dc"),zQT=_.dN(function(c){return _.B("div",{style:_.$Z({width:(0,_.Xn)(function(){return c.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+c.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},c.children)},"Ec");
LBu.idomCompat=!0;_.g_(LBu,"grid-shelf-view-model",{props:{data:_.oM,layoutContainerWidth:_.oM,shouldUseOwnContainerSize:_.oM,marginSettings:_.oM,className:_.oM}});_.JSo=_.dN(function(c){var f=_.C(_.OT(!1,void 0,"YYtxR")),d=f.next().value,q=f.next().value;f={};return _.B("yt-alert-banner-view-model",{class:_.FY("ytAlertBannerViewModelHost",c.className,function(){var Z;a:switch((Z=c.data())==null?void 0:Z.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Z="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Z="ytAlertBannerViewModelWarning";break a;default:Z="ytAlertBannerViewModelInformational"}return Z},(f.ytAlertBannerViewModelDismissed=
d,f.ytAlertBannerViewModelFullbleed=c.fullbleed,f.ytAlertBannerViewModelNarrow=c.narrow,f.ytAlertBannerViewModelIsInRichGrid=c.isInRichGrid,f))},_.B(_.T,{cond:function(){var Z;
return!((Z=c.data())==null?0:Z.hideIcon)},
then:function(){return _.B("div",{class:"ytAlertBannerViewModelIcon"},_.B(_.Qy,{icon:function(){return"info_circle"}}))}}),_.B("div",{class:"ytAlertBannerViewModelOuterContainer"},_.B("div",{class:"ytAlertBannerViewModelContainer"},_.B("div",{class:"ytAlertBannerViewModelContent"},_.B("div",{class:"ytAlertBannerViewModelHeading"},_.B(_.J9,{text:function(){var Z;
return(Z=c.data())==null?void 0:Z.heading}})),_.B("div",{class:"ytAlertBannerViewModelBody"},_.B(_.J9,{text:function(){var Z;
return(Z=c.data())==null?void 0:Z.body}})))),_.B(_.u7,{data:function(){var Z;
return(Z=c.data())==null?void 0:Z.actionButton}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.B(_.u7,{data:function(){var Z;
return(Z=c.data())==null?void 0:Z.dismissButton}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var M;((M=c.data())==null?0:M.disableLocalDismissBehavior)||q(!0)}})}}))},"Fc");_.g_(_.JSo,"yt-alert-banner-view-model",{props:{data:_.oM,fullbleed:_.oM,narrow:_.oM,isInRichGrid:_.oM,className:_.oM}});var Gzk=_.La({chipViewModel:_.Vo,buttonViewModel:_.mN});_.ZB(cln);var axF;axF=_.dN(function(c){var f=c.data;var d=c.callback;var q=c.enableSingleChipSelection;var Z=c.disableChipsScrollAnimation;var M=_.ob("div");c=_.C(_.OT(!0,void 0,"ULL8g"));var g=c.next().value,O=c.next().value;c=_.C(_.OT(!1,void 0,"cWhQn"));var l=c.next().value,m=c.next().value,H=!1,A=0;_.QJ(function(){O(E());m(J())});
c=_.C(_.ns(function(){var qN={};return f().autoselectedChipIndex!=null?(qN[f().autoselectedChipIndex]=!0,qN):{}}));
var Y=c.next().value,t=c.next().value,E=function(){var qN=M.value;return qN==null||qN.scrollLeft-1<=0},J=function(){var qN=M.value;
return qN==null?!1:qN.scrollLeft+1>=(qN==null?NaN:qN.scrollWidth)-(qN==null?NaN:qN.clientWidth)},X=function(){return f().isHorizontallyScrollable},u=function(qN){M.value!=null&&(_.hk("HTML_DIR")==="rtl"&&(qN=-qN),M.value.scrollBy({left:qN,
behavior:(Z==null?0:Z())?"instant":"smooth"}))},W=function(){u(-320)},p=function(){u(320)},N=_.Ks(function(qN){H=!0;
A=qN.clientX}),I=_.Ks(function(qN){if(H){qN=qN.clientX;
var kl=qN-A;A=qN;var BN;(BN=M.value)==null||BN.scrollBy({left:-kl})}}),R=_.Ks(function(){var qN=E(),kl=J();
qN!==g()&&O(qN);kl!==l()&&m(kl)});
du("pointerup",function(){H&&(H=!1)});
return _.B("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.B(_.k4,{contentId:function(){return f().contentId},
useModernStyle:!0},function(){var qN={},kl={};return _.B("div",null,_.B(_.T,{cond:function(){return f().title},
then:function(){return _.B("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.B("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return f().title}),_.B(_.u7,{data:function(){return f().overflowButton}},{buttonViewModel:_.mN}))}}),_.B("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.B(_.T,{cond:function(){return f().previousButton},
then:function(){var BN={};return _.B("div",{class:_.FY("ytChipsShelfViewModelLeftArrowContainer",(BN.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return g()},BN))},_.B(_.u7,{data:function(){return f().previousButton}},{buttonViewModel:function(tP){return _.B(_.mN,{data:tP.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:W})}}))}}),_.B("div",{el:M,
"on:pointerdown":N,"on:pointermove":I,"on:scroll":R,class:_.FY("ytChipsShelfViewModelChipsScrollContainer",(qN.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=X,qN))},_.B("div",{class:_.FY("ytChipsShelfViewModelChipsContainer",(kl.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=X,kl.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,kl)),role:"tablist"},_.B(_.u7,{data:function(){return f().contents}},{chipViewModel:function(BN,tP){return _.B("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.B(_.Vo,{data:BN.data,
callback:function(EC,AP){var eM=tP();if(q==null?0:q()){var ue={};t((ue[eM]=AP,ue))}else ue={},t(Object.assign({},Y(),(ue[eM]=AP,ue)));d==null||d(EC,AP,eM)},
disableDeselection:q,selected:function(){return!!Y()[tP()]}}))}}))),_.B(_.T,{cond:function(){return f().nextButton},
then:function(){var BN={};return _.B("div",{class:_.FY("ytChipsShelfViewModelRightArrowContainer",(BN.ytChipsShelfViewModelRightArrowContainerIsHidden=l,BN))},_.B(_.u7,{data:function(){return f().nextButton}},{buttonViewModel:function(tP){return _.B(_.mN,{data:tP.data,
className:"ytChipsShelfViewModelRightArrow",onClick:p})}}))}})))}))},"Gc");
_.VVy=_.F("enable_chips_shelf_view_model_fully_reactive")?axF:_.bS(cln,{callbacks:{callback:!0}});axF.idomCompat={callbacks:{callback:!0}};_.g_(_.VVy,"chips-shelf-view-model",{props:{data:_.oM,callback:_.Cs,enableSingleChipSelection:_.oM,disableChipsScrollAnimation:_.oM}});var XIH=_.dN(function(c){c=_.ch(c,{disabled:!1});var f=c.active,d=c.disabled;c={};c=_.FY("ytSwitchShapeTrack",(c.ytSwitchShapeTrackActive=function(){return f()},c.ytSwitchShapeTrackDisabled=function(){return d()},c));
var q={};q=_.FY("ytSwitchShapeKnob",(q.ytSwitchShapeKnobActive=function(){return f()},q));
return _.B("switch-shape",{class:"ytSwitchShapeHost"},_.B("div",{class:c}),_.B("div",{class:q}))},"Hc");var uAj=_.dN(function(c){var f=_.ch(c,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),d=f.data;c=f.className;var q=f.handleOnTapEventInParent,Z=f.parentActive;f=_.C(_.ns(function(){var A;return(A=Z())!=null?A:d().switchedOnByDefault||!1}));
var M=f.next().value,g=f.next().value,O=function(){return d().isDisabled},l=_.xz("button");
f=_.Ks(function(A){return A.key==="Enter"?(A.preventDefault(),l.value.click(),!1):!0});
var m=_.Ks(function(A){if(d().handleOnTapEventInParent||q())return!0;if(O())return!1;dqr(d(),M(),A);g(!M());return!1}),H={};
H=_.FY("ytSwitchButtonViewModelButton",(H.ytSwitchButtonViewModelTappable=function(){return!O()},H));
return _.B("switch-button-view-model",{class:_.FY("ytSwitchButtonViewModelHost",c)},_.B("button",{el:l,class:H,"on:click":m,"on:keydown":f,"aria-label":function(){return M()?d().a11yLabelSwitchedOn:d().a11yLabelSwitchedOff},
"aria-checked":M,"aria-disabled":O,role:"switch"},_.B(XIH,{active:M,disabled:O})))},"Ic");var v1T=_.dN(function(c){var f=c.data;var d=c.isLeading;var q=c.hideSelectionTextChevron;var Z=c.isToggled;var M=function(){return d()?f().leadingImage:f().trailingImage},g=function(){a:switch(f().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var H="expand_more";
break a;default:H="chevron_right"}return H};
c={};var O=_.FY("yt-list-item-view-model-wiz__image-container",(c["yt-list-item-view-model-wiz__leading"]=d,c["yt-list-item-view-model-wiz__trailing"]=function(){return!d()},c)),l=_.FY("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
c={};var m=_.FY("yt-list-item-view-model-wiz__accessory",(c["yt-list-item-view-model-wiz__leading"]=d,c["yt-list-item-view-model-wiz__trailing"]=function(){return!d()},c));
return _.B(_.T,{cond:function(){var H=f(),A=d();return!!(A&&(H.leadingImage||H.leadingAccessory)||!A&&(H.trailingImage||H.trailingButton||H.trailingButtons||H.selectionText))},
then:function(){return _.B(_.qD,null,_.B(_.T,{cond:M,then:function(H){return _.B("div",{class:O,"aria-hidden":"true"},_.B(_.jC,{data:H,alt:"",preserveWidth:!0,preserveHeight:!0,className:l,isToggled:Z}))}}),_.B(_.T,{cond:function(){return d()&&f().leadingAccessory},
then:function(){return _.B("div",{class:O},_.B(_.u7,{data:function(){return f().leadingAccessory}},{avatarViewModel:function(H){return _.B(_.ag,{data:H.data,
avatarButtonCustomClassName:l})},
collectionThumbnailViewModel:function(H){return _.B(rV3,{data:H.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.B(_.T,{cond:function(){return!d()&&f().trailingButton},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__button-container"},_.B(_.u7,{data:function(){return f().trailingButton}},{buttonViewModel:function(H){return _.B(_.mN,{data:H.data,
className:m})}}))}}),_.B(_.T,{cond:function(){var H;
return!d()&&((H=f().trailingButtons)==null?void 0:H.buttons)},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__button-container"},_.B(_.u7,{data:function(){var H;return(H=f().trailingButtons)==null?void 0:H.buttons}},{buttonViewModel:function(H){return _.B(_.mN,{data:H.data,
className:m})},
accountLinkButtonViewModel:function(H){return _.B(f6y,{data:H.data,className:m})},
switchButtonViewModel:function(H){return _.B(uAj,{data:H.data,className:m})},
subscribeButtonViewModel:function(H){return _.B(_.aQ,{data:H.data,isOverlay:!1,animateWidth:!1,className:m})},
toggleButtonViewModel:function(H){return _.B(_.JL,{data:H.data,className:m})}}))}}),_.B(_.T,{cond:function(){return!d()&&!!f().selectionText},
then:function(){return _.B(_.qD,null,_.B(_.J9,{text:function(){return f().selectionText},
className:_.FY("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.B(_.T,{cond:function(){return!(q==null?0:q())},
then:function(){return _.B(_.Qy,{icon:g,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Jc");var hQr=_.dN(function(c){var f=c.data;return _.B(_.T,{cond:function(){return f().title||f().subtitle},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.B(_.T,{cond:function(){return f().title},
then:function(d){return _.B("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.B(_.J9,{text:d,className:"yt-list-item-view-model-wiz__title"}))}}),_.B(_.T,{cond:function(){return f().subtitle},
then:function(d){return _.B(_.J9,{text:d,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Kc");var uz=_.dN(function(c){var f=c.data;var d=c.hideSelectionTextChevron;var q=c.TrailingAccessory;var Z=c.isToggled;var M=c.disabled;var g=c.isSelectItem;var O=c.isCompact;var l=c.inPopup;var m=c.disableHorizontalPadding;c=c.isTappableWithoutSelect;var H={};return _.B("div",{class:_.FY("yt-list-item-view-model-wiz__label",(H["yt-list-item-view-model-wiz__container"]=function(){return!(g==null?0:g())},H["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!f().isDisabled||!(M==null||
!M())},H["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!f().subtitle},H["yt-list-item-view-model-wiz__container--compact"]=O,H["yt-list-item-view-model-wiz__container--tappable"]=c,H["yt-list-item-view-model-wiz__container--in-popup"]=l,H["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(m==null?void 0:m())&&!(g==null?0:g())},H))},_.B(v1T,{data:f,
isLeading:!0,hideSelectionTextChevron:d,isToggled:Z}),_.B(hQr,{data:f}),_.B(_.T,{cond:function(){return!!q},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__trailing"},q&&_.B(q,null))},
else:function(){return _.B(v1T,{data:f,isLeading:!1,hideSelectionTextChevron:d,isToggled:Z})}}))},"Lc");var ySy=_.dN(function(c){var f=_.ch(c,{checked:!1});c=f.name;var d=f.onChange,q=f.onClick,Z=f.checked,M=f.labelRenderable,g=f.hasLeadingLabel,O=f.labelClass,l=f.isCompact,m=f.selectElementClass;f=f.disableHorizontalPadding;var H="checkbox"+_.Xl(_.aP),A=_.Ks(function(E){q==null||q(E);return!1}),Y=_.Ks(function(E){d==null||d(E);
return!1}),t={};
return _.B("checkbox-shape",null,_.B("label",{class:_.FY("checkbox-shape-wiz",O,(t["checkbox-shape-wiz--compact"]=l,t["checkbox-shape-wiz--disable-horizontal-padding"]=f,t))},_.B("input",{class:"checkbox-shape-wiz__input",id:H,checked:Z,name:c,type:"checkbox","prop:checked":Z,"on:change":Y,"on:click":A}),_.B(_.T,{cond:function(){return!(g==null?0:g())},
then:function(){return _.B(wIO,{isLeading:!0,selectElementClass:m})}}),_.B(_.T,{cond:function(){return!!M},
then:function(){return _.B("div",{class:"checkbox-shape-wiz__label"},M==null?void 0:M())}}),_.B(_.T,{cond:g,
then:function(){return _.B(wIO,{isLeading:!1,selectElementClass:m})}})))},"Mc");
ySy.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var wIO=_.dN(function(c){var f=c.selectElementClass;c={};return _.B("div",{class:_.FY("checkbox-shape-wiz__checkbox",f,(c["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(f==null?0:f())},c)),
"aria-hidden":"true"},_.B(_.Qy,{icon:_.F("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.B(_.Qy,{icon:_.F("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Nc");_.vn=_.dN(function(c){var f=c.name;var d=c.onChange;var q=c.onClick;var Z=c.checked;var M=c.labelRenderable;var g=c.useCheckIcon;var O=c.hasLeadingLabel;var l=c.labelClass;var m=c.isCompact;var H=c.selectElementClass;var A=c.ariaLabel;c=c.className;var Y="radio"+_.Xl(_.aP),t=_.xz("input"),E=_.Ks(function(R){t.value.checked=!(Z==null||!Z());d==null||d(R);return!1}),J=_.Ks(function(R){q==null||q(R);
return!1}),X=_.Ks(function(R){_.F("enable_ios_webview_radio_button_responsiveness")&&(R.preventDefault(),t.value.click())}),u=_.C(_.OT(!1,void 0,"nXiHX")),W=u.next().value,p=u.next().value;
u=_.Ks(function(){var R;((R=_.ql().resolve(_.dx(_.lw)))==null?0:R.isKeyBoardInUse())&&p(!0)});
var N=_.Ks(function(){p(!1)}),I={};
return _.B("radio-shape",{class:_.FY("radio-shape-wiz",c)},_.B("input",{el:t,class:"radio-shape-wiz__input",id:Y,"prop:checked":Z,name:f,type:"radio","on:change":E,"on:click":J,"aria-label":A,"on:focusin":u,"on:focusout":N}),_.B("label",{class:_.FY("radio-shape-wiz__label-container",l,(I["radio-shape-wiz--compact"]=m,I["radio-shape-wiz__label-container--keyboard-focused"]=W,I)),for:Y,"on:click":X},_.B(_.T,{cond:function(){return!(O==null?0:O())},
then:function(){return _.B(WBF,{checked:Z,useCheckIcon:g,isLeading:!0,selectElementClass:H})}}),_.B(_.T,{cond:function(){return!!M},
then:function(){return _.B("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(A==null?0:A())?"true":"false"}},M==null?void 0:M())}}),_.B(_.T,{cond:O,
then:function(){return _.B(WBF,{checked:Z,useCheckIcon:g,isLeading:!1,selectElementClass:H})}})))},"Oc");
_.vn.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var WBF=_.dN(function(c){var f=c.useCheckIcon;var d=c.selectElementClass;c=function(){return(f==null?0:f())?"CHECK":_.F("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var q={};return _.B("div",{class:_.FY("radio-shape-wiz__radio",d,(q["radio-shape-wiz__radio--check-icon"]=f,q["radio-shape-wiz__radio--radio-default-style"]=function(){return!(d==null?0:d())},q)),
"aria-hidden":"true"},_.B(_.Qy,{icon:c}),_.B(_.Qy,{icon:c,active:function(){return!(f==null?0:f())}}))},"Pc");_.hX=_.dN(function(c){var f=c.data;var d=c.isMenuItem;var q=c.isCompact;var Z=c.onTap;var M=c.trailingAccessory;var g=c.hideSelectionTextChevron;var O=c.disabled;var l=c.inPopup;var m=c.disableHorizontalPadding;var H=c.isOverlay;c=c.isToggled;var A=_.N5(function(kl){a:{var BN=f();if((BN==null?0:BN.entitySelectorType)&&(BN==null?0:BN.entityKey))switch(BN.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":kl=_.Tmz(kl,BN.entityKey);kl=kl==null?void 0:
kl.value;BN=!1;kl==="CAPTIONS_UNAVAILABLE"&&(BN=!0,kl="");kl=Object.assign({},!!kl&&{selectionText:{content:kl}},!!kl&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:BN});break a;default:kl={}}else kl={}}return kl}),Y=function(){return _.F("enable_web_shorts_captions_language_command")?Object.assign({},f(),A()):f()},t=function(){return!(Y().isSelected===void 0||!Y().selectionStyle||Y().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},E=function(){return(_.ec(Y().rendererContext)||
Z)&&!t()},J={},X=_.FY("yt-list-item-view-model-wiz__container",(J["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.ec(Y().rendererContext)||t()},J["yt-list-item-view-model-wiz__container--compact"]=q,J["yt-list-item-view-model-wiz__container--in-popup"]=l,J["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(m==null?void 0:m())&&t()},J)),u=function(){return Y().leadingImage||Y().leadingAccessory},W=_.FY("yt-list-item-view-model-wiz__image-container",
function(){return u()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
J=_.Ks(function(kl){return void(Z==null?void 0:Z(kl))});
var p=_.UZk(),N=_.C(_.OT(!1,void 0,"iQppzc")),I=N.next().value,R=N.next().value,qN={data:Y,hideSelectionTextChevron:g,TrailingAccessory:M,isToggled:c,disabled:O,isSelectItem:t,isCompact:q,inPopup:l,disableHorizontalPadding:m,isTappableWithoutSelect:E};M={};return _.B("yt-list-item-view-model",{el:_.Z7(_.NY(function(){return Y().rendererContext}),gg4(function(){return E==null?void 0:E()},{focusin:function(){var kl;
((kl=_.ql().resolve(_.dx(_.lw)))==null?0:kl.isKeyBoardInUse())&&R(!0)},
focusout:function(){R(!1)}})),
class:_.FY("yt-list-item-view-model-wiz",(M["yt-list-item-view-model-wiz--is-overlay"]=H,M["yt-list-item-view-model-wiz--keyboard-focused"]=I,M)),role:function(){return(d==null?0:d())?"menuitem":"listitem"},
tabindex:function(){var kl=E();return Z||kl?0:void 0},
"on:keydown":p,"on:click":J},_.B(_.T,{cond:t,then:function(){return _.B(_.n9,null,_.B(_.K9,{when:function(){return Y().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.B(ySy,{labelRenderable:function(){return _.B(uz,Object.assign({},qN))},
isCompact:q,checked:function(){return Y().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:X,selectElementClass:W,disableHorizontalPadding:m})}),_.B(_.K9,{when:function(){return Y().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.B(_.vn,{labelRenderable:function(){return _.B(uz,Object.assign({},qN))},
isCompact:q,checked:function(){return Y().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:X,selectElementClass:W})}),_.B(_.K9,{when:function(){return Y().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.B(_.vn,{labelRenderable:function(){return _.B(uz,Object.assign({},qN))},
isCompact:q,checked:function(){return Y().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:X,selectElementClass:W,useCheckIcon:!0})}),_.B(_.E6,null,function(){return _.B(uz,Object.assign({},qN))}))},
else:function(){return _.B(uz,Object.assign({},qN))}}))},"Qc");
_.hX.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.D7H=_.dN(function(c){var f=c.data;var d=c.onTap;var q=c.onSwitch;var Z=c.overrideDisabled;c=c.disableHorizontalPadding;var M=_.C(_.ns(function(){var A;return((A=qtY(H()))==null?void 0:A.switchedOnByDefault)||!1})),g=M.next().value,O=M.next().value;
M=_.C(_.OT(!1,void 0,"ZHBkbb"));var l=M.next().value,m=M.next().value,H=function(){var A;if(!(A=f().switchButton)){var Y=f();A=Z==null?void 0:Z();Y={switchOnCommand:Y.switchOnCommand,switchOffCommand:Y.switchOffCommand,switchedOnByDefault:Y.switchedOnByDefault,isDisabled:Y.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:Y.a11yLabelSwitchedOn,a11yLabelSwitchedOff:Y.a11yLabelSwitchedOff};A!==void 0&&(Y.isDisabled=A);A={switchButtonViewModel:Y}}return A};
return _.B("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.B(_.hX,{data:function(){return{title:f().title,subtitle:f().attributedSubtitle,leadingImage:f().leadingImage,leadingAccessory:f().leadingAccessory,isDisabled:f().isDisabled}},
onTap:function(A){var Y=qtY(H());!Y||Y.isDisabled||f().ignoreTapUntilCommandCompletes&&l()||(d==null||d(A),dqr(Y,g(),A,f().ignoreTapUntilCommandCompletes,m),O(!g()),q==null||q(g()))},
trailingAccessory:function(){return _.B(_.u7,{data:H},{switchButtonViewModel:function(A){return _.B(uAj,{data:A.data,parentActive:g,handleOnTapEventInParent:!!d})}})},
disableHorizontalPadding:c}))},"Rc");var eQF=_.dN(function(c){var f=_.C(_.ns(function(){var Z,M;return!!((Z=c.data())==null?0:(M=Z.initialState)==null?0:M.isToggled)})),d=f.next().value,q=f.next().value;
f=_.Ks(function(){q(!d())});
return _.B("toggleable-list-item-view-model",{el:_.Z7(_.NY(function(){return c.data().rendererContext})),
class:_.FY("toggleableListItemViewModelHost",c.className),"on:click":f},_.B(_.T,{cond:function(){if(d()){var Z=c.data().toggledListItem;Z=_.b(Z,_.$v)}else Z=c.data().defaultListItem,Z=_.b(Z,_.$v);return Z},
then:function(Z){return _.B(_.hX,{data:Z,isToggled:d,ariaLabel:function(){var M=d()?c.data().toggledListItem:c.data().defaultListItem,g;M=(g=_.b(M,_.$v))==null?void 0:g.rendererContext;var O;return(O=_.b(M,_.Kz))==null?void 0:O.label},
ariaPressed:function(){return d()}})}}))},"Sc");var NZ3=_.HO("DOWNLOAD",{},"Download"),Ix_=_.HO("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),PtT=_.HO("RETRY",{},"Retry"),RQu=_.HO("PAUSE_DOWNLOADING",{},"Pause downloading"),U7T=_.HO("RESUME_DOWNLOAD",{},"Resume download"),ZUz={text:NZ3,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},S4={text:Ix_,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},CZk={text:PtT,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Mmk={text:RQu,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},rll={text:U7T,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var pI_=_.dN(function(c){var f=function(){var O=c.data();O=_.DW(O.rendererContext);var l;return(l=_.b(O,_.tc))==null?void 0:l.videoId},d=_.N5(function(O){var l=f(),m=OUk(c.data());
return l?_.hE(O,l):m?_.wW(O,m):"TRANSFER_STATE_UNKNOWN"}),q=_.Ka(_.CKM,f),Z=_.N5(function(O){return _.fVG(O,f(),OUk(c.data()))}),M=function(){return kgY(d(),q(),_.DW(c.data().rendererContext),!!OUk(c.data()))},g=function(){return Z()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.B("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:g},_.B(_.T,{cond:function(){return!g()},
then:function(){return _.B(_.T,{cond:M,then:function(O){return _.B(_.bd,{each:O},function(l){return _.B(_.hX,{data:l,isCompact:c.isCompact,isMenuItem:c.isMenuItem,inPopup:c.inPopup,disableHorizontalPadding:c.disableHorizontalPadding})})}})}}))},"Tc");
pI_.idomCompat=!0;_.x7j=_.dN(function(c){var f=c.data;var d=c.isCompact;var q=c.hideSelectionTextChevron;var Z=c.inPopup;var M=c.isOverlay;var g=c.disableHorizontalPadding;var O=function(){return lyl(f())&&(Z==null?void 0:Z())};
c={};return _.B("yt-list-view-model",{class:_.FY("yt-list-view-model-wiz",(c["yt-list-view-model-wiz--kaios-spat-nav"]=t9k&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",c["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return iUr(f())},c)),
role:function(){return O()?"menu":"list"},
style:_.$Z({"max-height":function(){var l,m=(l=f())==null?void 0:l.visibleElementCount;if(m)return iUr(f())?(m+.5)*48+"px":(m+.5)*40+"px"}})},_.B(_.u7,{data:function(){return f().listItems}},{listItemViewModel:function(l){return _.B(_.hX,{data:l.data,
isMenuItem:O,isCompact:d,hideSelectionTextChevron:q,inPopup:Z,isOverlay:M,disableHorizontalPadding:g})},
toggleableListItemViewModel:function(l){return _.B(eQF,{data:l.data})},
downloadListItemViewModel:function(l){return _.B(pI_,{data:l.data,isMenuItem:O,isCompact:d,inPopup:Z,disableHorizontalPadding:g})},
switchListItemViewModel:function(l){return _.B(_.D7H,{data:l.data,disableHorizontalPadding:g})}}))},"Uc");
_.x7j.idomCompat=!0;var o1F=_.dN(function(c){var f=c.data;var d=c.isOverlay;c={};return _.B("yt-course-perks-view-model",{class:_.FY("ytwCoursePerksViewModelHost",(c.ytwCoursePerksViewModelHostOverlay=d,c))},_.B("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.B(_.J9,{text:function(){return f().title}})),_.B("div",null,_.B(_.T,{cond:function(){return f().perks},
then:function(q){return _.B(_.x7j,{data:function(){return{listItems:q()}},
isCompact:!0,isOverlay:d})}})))},"Vc");_.g_(o1F,"yt-course-perks-view-model",{props:{data:_.Cs,isOverlay:_.Cs}});_.g_(_.dN(function(c){var f=c.data;return _.B("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.B("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.B(_.J9,{text:function(){return f().title}})),_.B("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.B(_.J9,{text:function(){return f().progressSummary}})),_.B("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.B("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.$Z({width:function(){return f().progressPercentage*100+"%"}})})))},"Wc"),"yt-course-progress-view-model",{props:{data:_.oM}});var GE_=_.dN(function(c){var f={};return _.B("yt-progress-view-model",{class:_.FY("ytwProgressViewModelHost",(f.ytwProgressViewModelHostOverlay=_.Ga(c.isOverlay,!1),f))},_.B(_.T,{cond:function(){return c.data().progressSummary},
then:function(d){return _.B("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.B(_.J9,{text:d}))}}),_.B("div",{class:"ytwProgressViewModelHostProgressContainer"},_.B(_.T,{cond:function(){return c.data().leadingLabel},
then:function(d){return _.B("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.B(_.J9,{text:d}))}}),_.B("div",{class:"ytwProgressViewModelHostProgressBar"},_.B("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(c.data().progressPercentage||0)*100+"%"}}))))},"Xc");var wv=_.dN(function(c){var f=c.starNumber;var d=c.data;var q=function(){var Z;return((Z=d())==null?void 0:Z.rating)||0};
return _.B(_.T,{cond:function(){return f()},
then:function(Z){return _.B(_.n9,null,_.B(_.K9,{when:function(){return q()>=Z()-.25}},function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.Qy,{icon:"STAR_FILLED"}))}),_.B(_.K9,{when:function(){return q()>=Z()-.75}},function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.Qy,{icon:"STAR_HALF"}))}),_.B(_.E6,null,function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.Qy,{icon:"STAR_BORDER"}))}))}})},"Yc"),cgy=_.dN(function(c){c=c.data;
return _.B("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.B(wv,{starNumber:1,data:c}),_.B(wv,{starNumber:2,data:c}),_.B(wv,{starNumber:3,data:c}),_.B(wv,{starNumber:4,data:c}),_.B(wv,{starNumber:5,data:c}))},"Zc");_.g_(_.dN(function(c){var f=_.ch(c,{}).data;return _.B("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.B("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.B(_.J9,{text:function(){var d;return(d=f())==null?void 0:d.title}})),_.B("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.B(_.T,{cond:function(){return f().starProgressViewModels},
then:function(d){return _.B("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.B(_.u7,{data:d},{progressViewModel:GE_}))}}),_.B("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.B("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.B(_.J9,{text:function(){var d;
return(d=f())==null?void 0:d.averageRatingLabel}})),_.B(_.T,{cond:function(){return f().zeroStateText},
then:function(d){return _.B("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.B(_.J9,{text:d}))}}),_.B(_.T,{cond:function(){return f().starRatingViewModel},
then:function(d){return _.B("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.B(_.u7,{data:d},{starRatingViewModel:cgy}))}}),_.B("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.B(_.J9,{text:function(){var d;
return(d=f())==null?void 0:d.totalRatingsCountLabel}})))))},"$c"),"yt-course-ratings-view-model",{props:{data:_.Cs}});var fIj;fIj={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"}};_.dr_=_.dN(function(c){var f=_.xz("yt-learning-journey-loader-view-model"),d=_.Yv();_.QJ(function(){requestAnimationFrame(function(){var Z;(Z=d.lottieEl)==null||Z.addEventListener("DOMLoaded",function(){var M;(M=c.onLottieLoaded)==null||M.call(c)})});
var q=c.data().browseEndpoint;q&&_.Ph(q)});
return _.B("yt-learning-journey-loader-view-model",{class:_.FY("learningJourneyLoaderViewModelHost",c.className),"data-target-id":function(){var q;return((q=c.data)==null?void 0:q.call(c).targetId)||""},
el:f},_.B(_.gT,{className:_.FY("learningJourneyLoaderViewModelLoader",c.className),animationName:function(){return fIj.animationConfig.name},
data:fIj,animationRef:d}))},"ad");_.g_(_.dr_,"yt-learning-journey-loader-view-model",{props:{data:_.oM,className:_.Cs,onLottieLoaded:_.Cs}});var mql=new Set,TIk=null;_.jIF=_.dN(function(c){var f=null,d=null,q=null,Z=function(){return c.data()},M=function(){var u=Z();
var W=_.ql().resolve(_.dx(_.of));u=W!=null&&W()?u.darkThemeColorPalette:u.lightThemeColorPalette;return{primaryTextColor:z6(u,0),secondaryTextColor:z6(u,1),optionColor:z6(u,2),backgroundColor:z6(u,3),videoBackgroundColor:z6(u,4)}},g=function(){return!!M().optionColor},O=_.C(_.OT(-1,void 0,"Tkfl2e")),l=O.next().value,m=O.next().value,H=function(u){return l()===u},A=function(u){return Z().correctAnswerIndex===u},Y=function(){return l()!==-1},t=function(){return l()===Z().correctAnswerIndex},E=_.Ks(function(){m(-1);
return!1}),J=function(){var u=Y(),W=t();
return u?W?264685:264684:264683},X=function(u){return t()&&A(u)};
return _.B("learning-journey-quiz-view-model",{class:_.FY("learningJourneyQuizViewModelHost",c.className),style:_.$Z({background:function(){return M().backgroundColor}})},_.B(_.T,{cond:function(){return!!Z().video},
then:function(){return _.B("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.$Z({background:function(){return M().videoBackgroundColor}})},_.B(_.u7,{data:function(){return Z().video}},{lockupViewModel:function(u){return _.B(_.s7,{data:u.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.B("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.B("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.B("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.B(_.T,{cond:function(){return!!Z().aiGeneratedQuizLabel},
then:function(){return _.B("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.B(_.J9,{text:function(){return Z().aiGeneratedQuizLabel}}))}}),_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.$Z({"align-items":function(){return Z().overflowMenu?"start":"center"}})},_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.$Z({"min-height":function(){return Z().overflowMenu?"48px":"26px"}})},_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Z7(function(u){_.LO(J(),u,f,function(W){f=W})}),
style:_.$Z({color:function(){return M().primaryTextColor}}),
"client-ve-type":J},_.B(_.J9,{text:function(){var u=Z(),W=Y(),p=t();return W&&u.quizType!=="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"?p?u.successTitle:u.failureTitle:u.questionHeaderText}}))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.B(_.T,{cond:Y,
then:function(){return _.B("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Z7(function(u){_.LO(264687,u,d,function(W){d=W})}),
"on:click":E,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.B("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.$Z({fill:function(){return M().primaryTextColor}})},_.B("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"})))}}),
_.B(_.u7,{data:function(){return Z().overflowMenu}},{buttonViewModel:function(u){return _.B(_.mN,{data:u.data})}}))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Z7(function(u){_.LO(264688,u,q,function(W){q=W})}),
style:_.$Z({color:function(){return M().secondaryTextColor}}),
"client-ve-type":264688},_.B(_.J9,{text:function(){var u=Z();return Y()?u.explanationText:u.questionSubheaderText}}))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.B(_.bd,{each:function(){return Z().optionsData||[]}},function(u,W){var p={};
return _.B("div",{class:_.FY("learningJourneyQuizViewModelHostQuizOptions",(p.learningJourneyQuizViewModelHostQuizHover=function(){return!Y()},p.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return X(W())},p.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!t()&&H(W())},p.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return Y()&&!H(W())},p.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=g,p)),
"on:click":_.Ks(function(){if(Y())return!1;m(W());return!1}),
style:_.$Z({background:function(){var N=W();return Y()&&H(N)?"":g()?M().optionColor:"transparent"}}),
role:"button","aria-disabled":Y,"tab-index":"0","client-ve-type":264686},_.B(_.T,{cond:Y,then:function(){var N={};return _.B("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var I=W();return A(I)?"0 0 24 24":"0 -960 960 960"},
class:_.FY("learningJourneyQuizViewModelHostQuizOptionIcon",(N.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return X(W())},N)),
style:_.$Z({fill:function(){return M().primaryTextColor}})},_.B("path",{d:function(){var I=W();
return A(I)?"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"}}))}}),_.B(_.J9,{text:u.optionText}))})))))},"bd");
_.jIF.idomCompat=!0;_.g_(_.jIF,"learning-journey-quiz-view-model",{props:{data:_.oM,className:_.oM}});var q$_=_.dN(function(c){var f=c.data;return _.B("yt-suspense-view-model",{class:_.FY("ytSuspenseViewModelHost")},_.B(_.u7,{data:function(){var d;return(d=f().config)==null?void 0:d.contents}},{lockupViewModel:_.s7}))},"cd");var Zwv=_.dN(function(c){var f=_.ch(c,{palette:void 0,isLastItem:!1}),d=f.palette,q=f.isLastItem,Z=function(){return c.data().isHighlighted},M=function(){var l;
return AlN((l=d())==null?void 0:l.iconDisabledColor)},g=function(){var l;
return AlN((l=d())==null?void 0:l.primaryTitleColor)},O=function(){var l;
return AlN((l=d())==null?void 0:l.secondaryTitleColor)};
f={};return _.B("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Z7(_.NY(function(){return c.data().rendererContext}))},_.B(_.u7,{data:function(){return c.data().thumbnail}},{thumbnailViewModel:_.fQ}),_.B("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.B("div",{class:_.FY("ytMacroMarkerListItemViewModelTimeDescription",(f.ytMacroMarkerListItemViewModelHighlighted=Z,f)),
style:_.$Z({"background-color":function(){return Z()?g():M()},
color:function(){return Z()?"":O()}})},_.B(_.J9,{text:function(){return c.data().timestamp}})),_.B("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.$Z({"background-color":function(){return q()?"transparent":M()}})}),_.B("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Z()?g():O())}},_.B(_.J9,{text:function(){return c.data().title}}))))},"dd");_.yo=_.dN(function(c){function f(MN){W("transform:translateX("+(_.hk("HTML_DIR")==="rtl"?"":"-")+MN+"px)")}
function d(MN){return Math.min(Math.max(MN,0),u()-qN())}
function q(){var MN=I()+EC();return Z()?(Math.round(qN()/MN)||1)*MN:0}
var Z=function(){return c.data().items||[]},M=function(){return c.data().previousButton},g=function(){return c.data().nextButton},O=function(){var MN,qH;
return(qH=(MN=c.disableArrows)==null?void 0:MN.call(c))!=null?qH:!1},l=function(){var MN;
return!((MN=c.forceNarrowLayout)==null||!MN.call(c))},m=_.TZ(function(){var MN;
return!((MN=c.centerAlignItems)==null||!MN.call(c))&&u()<=qN()},void 0,"DL81uf"),H=_.xz("horizontal-shelf-view-model"),A=_.xz("div"),Y=_.C(_.OT(0,void 0,"xZFppf")),t=Y.next().value,E=Y.next().value;
Y=_.C(_.OT(0,void 0,"pH9gvd"));var J=Y.next().value,X=Y.next().value,u=J;J=_.C(_.OT("",void 0,"oYcWy"));Y=J.next().value;var W=J.next().value;J=_.C(_.OT(0,void 0,"lI6NJb"));var p=J.next().value,N=J.next().value,I=p;J=_.C(_.OT(0,void 0,"yPqhW"));p=J.next().value;var R=J.next().value,qN=p;J=_.C(_.OT(!1,void 0,"u4CvOe"));var kl=J.next().value,BN=J.next().value;J=_.C(_.OT(0,void 0,"oQOBbe"));p=J.next().value;var tP=J.next().value,EC=p;J=_.C(_.OT(0,void 0,"fCqgxd"));var AP=J.next().value,eM=J.next().value;
J=_.C(_.OT("50%",void 0,"kjP5ke"));var ue=J.next().value,BH=J.next().value,J3=function(){var MN,qH=(MN=c.data())==null?void 0:MN.responsiveContainerConfiguration,br,YS;return qH?p3G(qH==null?void 0:qH.responsiveSize):(YS=(br=c.sizing)==null?void 0:br.call(c))!=null?YS:"STANDARD"};
J=_.TZ(function(){return!O()&&t()>0},void 0,"oVCO3d");
p=_.TZ(function(){return!O()&&t()<u()-qN()},void 0,"MQ6Gb");
var lr=function(){E(d(t()-q()));f(t())},xl=function(){E(d(t()+q()));
f(t())},Tv=function(){H.value!==null&&$_()},ir;
_.L9(function(){$_();window.ResizeObserver?(ir=new ResizeObserver(_.Ko(Tv,0)),ir.observe(H.value)):window.addEventListener("resize",Tv)});
_.Q4(function(){if(window.ResizeObserver){var MN;(MN=ir)==null||MN.disconnect()}else window.removeEventListener("resize",Tv)});
var $_=function(){var MN=H.value.clientWidth,qH=c.includeMargin!==void 0?c.includeMargin():!1,br;var YS=c.hasPeek!==void 0?c.hasPeek():!((br=c.data())==null||!br.hasPeek);MN=_.xv({containerWidth:MN,hasPeek:YS,sizing:J3(),marginSettings:qH?l()?4:1:0});tP(MN.gutter);eM(MN.margin);N(MN.itemWidth);BN(MN.maxContainerWidth<528||l());R(MN.maxContainerWidth);Z()&&X((MN.itemWidth+MN.gutter)*Z().length-MN.gutter);if(Z()){var Y_;if(((Y_=c.thumbnailAspectRatio)==null?void 0:Y_.call(c))!==void 0){var eu;BH(I()/
Rbe((eu=c.thumbnailAspectRatio)==null?void 0:eu.call(c))/2+"px")}else BH("50%")}},AH={},U3={};
return _.B("horizontal-shelf-view-model",{class:_.FY("ytwHorizontalShelfViewModelHost",c.className),el:H},_.B(_.T,{cond:function(){var MN;return c.data().header&&!((MN=c.horizontalShelfExperiments)==null?0:MN.call(c).hideHeader)},
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.$Z({width:function(){return qN()+"px"},
padding:function(){return"0 "+AP()+"px"}})},_.B(_.u7,{data:function(){return c.data().header}},{sectionHeaderViewModel:function(MN){return _.B(_.Bn,{data:MN.data,
disableHorizontalPadding:!0,forceSmallLayout:kl,useResponsiveLayout:!0})}}))}}),_.B("div",{class:_.FY("ytwHorizontalShelfViewModelOuterContainer",(AH.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return m()},AH)),
style:_.$Z({"margin-top":function(){var MN,qH=c.data().header&&!((MN=c.horizontalShelfExperiments)==null?0:MN.call(c).hideHeader),br;return(((br=c.ensureMarginTop)==null?0:br.call(c))&&!qH?12:0)+"px"}})},_.B("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.$Z({width:function(){return qN()+"px"},
padding:function(){return"0 "+AP()+"px"},
overflow:function(){return O()?"auto":"hidden"}})},_.B("div",{class:_.FY("ytwHorizontalShelfViewModelItems",(U3.ytwHorizontalShelfViewModelCenterAlignItems=function(){return m()},U3)),
el:A,style:Y},_.B(_.u7,{data:Z},{macroMarkerListItemViewModel:function(MN,qH){return _.B("div",{style:_.$Z({width:function(){return I()+"px"},
"margin-right":function(){return(qH()===Z().length-1?0:EC())+"px"}})},_.B(Zwv,{data:MN.data,
palette:_.Ga(c.palette),isLastItem:function(){return qH()===Z().length-1}}))},
lockupViewModel:function(MN,qH){var br=MN.data;return _.B("div",{style:_.$Z({width:function(){return I()+"px"},
"margin-right":function(){return(qH()===Z().length-1?0:EC())+"px"}})},_.B(_.s7,{data:br,
containerType:4,sizing:J3,protectBackground:c.protectBackground,thumbnailFixedWidth:function(){return Ytz(br())+"px"},
thumbnailTargetWidth:function(){return Ytz(br())}}))},
suspenseViewModel:function(MN,qH){return _.B("div",{style:_.$Z({width:function(){return I()+"px"},
"margin-right":function(){return(qH()===Z().length-1?0:EC())+"px"}})},_.B(q$_,{data:MN.data}))}}))),_.B(_.T,{cond:J,
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.$Z({top:function(){return ue()}})},_.B(_.u7,{data:M},{buttonViewModel:function(MN){return _.B(_.mN,{data:MN.data,
onClick:lr})}}))}}),_.B(_.T,{cond:p,
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.$Z({top:function(){return ue()}})},_.B(_.u7,{data:g},{buttonViewModel:function(MN){return _.B(_.mN,{data:MN.data,
onClick:xl})}}))}})))},"ed");
_.yo.idomCompat=!0;var MTr=_.dN(function(c){var f=function(){return c.data().targetId||""},d=function(){var J;
return((J=c.data())==null?void 0:J.expansionEntityKey)||""},q=_.Ka(_.Tmz,d),Z=!0,M=function(){var J;
return((J=q())==null?void 0:J.value)===f()},g=function(J){_.oa(_.ER("stringEntity",d(),{key:d(),
value:J?f():""}))};
_.QJ(function(){Z=!1;c.data().isExpanded&&g(!0)});
var O=function(){if(M()){var J=!0;c.onCollapse!==void 0&&(J=c.onCollapse());J&&g(!1)}else g(!0)},l=_.Ks(O),m=function(){var J;
return(((J=c.accordionStyle)==null?void 0:J.call(c))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},H=_.xz("div"),A=function(){var J,X;
return(X=(J=_.b(c.data().rendererContext,_.Kz))==null?void 0:J.label)!=null?X:""},Y=function(){var J,X;
return{disabled:(J=c.hideIfNotExpanded)==null?void 0:J.call(c),ariaHidden:(X=c.hideIfNotExpanded)==null?void 0:X.call(c)}},t={},E={};
return _.B("yt-accordion-item-view-model",{class:_.FY("ytAccordionItemViewModelHost",c.className,(t.ytAccordionItemViewModelExpanded=function(){return M()},t.ytAccordionItemViewModelHidden=function(){var J;
return(J=c.hideIfNotExpanded)==null?void 0:J.call(c)},t.ytAccordionItemViewModelMini=m,t)),
"data-target-id":f},_.B("div",{class:"ytAccordionItemViewModelContainer"},_.B("div",{class:"ytAccordionItemViewModelLeftSection","on:click":l,title:A,"aria-hidden":function(){var J;return(J=c.hideIfNotExpanded)==null?void 0:J.call(c)}},_.B(_.J9,{text:function(){return c.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:A})),_.B("div",{class:"ytAccordionItemViewModelRightSection"},_.B(_.u7,{data:function(){return M()?c.data().expandButton:c.data().collapseButton}},{buttonViewModel:function(J){return _.B(_.mN,{data:J.data,
className:"ytAccordionItemViewModelToggleButton",onClick:O,buttonOverrides:Y})}}))),_.B("div",{class:"ytAccordionItemViewModelContainer"},_.B("div",{class:_.FY("ytAccordionItemViewModelContent",(E.ytAccordionItemViewModelExpandedSubtitle=function(){return M()},E)),
el:H,style:_.$Z({"max-height":function(){return Z?"auto":M()?H.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!M()}},_.B(_.T,{cond:function(){return!m()},
then:function(){return _.B(_.J9,{text:function(){return c.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.B(_.u7,{data:function(){return c.data().content}},{horizontalShelfViewModel:function(J){return _.B(_.yo,{data:J.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"fd");_.rgu=_.dN(function(c){var f=_.C((0,_.LxH)(c.data)).next().value,d=function(){return c.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},q=function(){return d()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Z=_.C(_.OT(!0,void 0,"FVec2e")),M=Z.next().value,g=Z.next().value,O=function(){return q()&&M()},l=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){g(!M())}}},m=_.Ks(function(){f().onTitleTap&&_.Ph(f().onTitleTap||{})});
Z={};return _.B("yt-accordion-view-model",{class:_.FY("ytAccordionViewModelHost",(Z.ytAccordionViewModelMinimized=function(){return O()},Z)),
"data-target-id":function(){return c.data().targetId||""}},_.B(_.T,{cond:function(){return q()||!!f().title},
then:function(){return _.B("div",{class:"ytAccordionViewModelHeader"},_.B("div",{class:"ytAccordionViewModelTitleSection"},_.B("div",{class:"ytAccordionViewModelTitleWrapper"},_.B(_.T,{cond:function(){return!!c.data().headerIcon},
then:function(){return _.B(_.Qy,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var H;return(H=c.data().headerIcon)==null?void 0:H.iconType}})}}),_.B("div",{class:"ytAccordionViewModelTitle",
"on:click":m},_.B(_.J9,{className:"ytAccordionViewModelTitleText",text:function(){return f().title}})))),_.B("div",{class:"ytAccordionViewModelButtonSection"},_.B(_.T,{cond:q,
then:function(){return _.B(_.iw,{data:l,iconName:function(){return O()?"chevron_down":"chevron_collapse"}})}})))}}),_.B("div",{class:"ytAccordionViewModelContent"},_.B(_.u7,{data:function(){return f().contents}},{accordionItemViewModel:function(H){return _.B(MTr,{data:H.data,
className:"ytAccordionViewModelRow",accordionStyle:d,hideIfNotExpanded:O,onCollapse:function(){return q()?(g(!0),!1):!0}})}})),_.B("div",null,_.B(_.T,{cond:function(){return!q()&&(!!f().disclaimerFooter||!!f().footer)},
then:function(){return _.B("div",{class:"ytAccordionViewModelFooter"},_.B(_.J9,{text:function(){return f().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.B(_.u7,{data:function(){return c.data().footer}},{flexibleActionsViewModel:function(H){return _.B(_.XT,{data:H.data,
layout:0})}}))}})))},"gd");_.g_(_.rgu,"yt-accordion-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=null,d=null,q,Z=(q=_.ql().resolve(_.dx(_.of)))==null?void 0:q(),M=_.C(_.OT(!1,void 0,"EVXQGb"));q=M.next().value;var g=M.next().value;M=_.C(_.OT(!0,void 0,"W9FIJf"));var O=M.next().value,l=M.next().value,m=_.xz("textarea",function(X){_.LO(264503,X,f,function(u){f=u})}),H=function(X){g(!0);
X={learningJourneyFormData:{query:X}};_.Ph(c.data().searchEndpoint||{},{form:{formData:X}});return!1},A=_.Ks(function(X){X.target.closest("button-view-model")&&g(!0)});
M=_.Ks(function(){l(m.value.value.length===0)});
var Y=_.Ks(function(X){if(X.key==="Enter"&&!X.shiftKey&&!O()){var u=X.target;X.preventDefault();H(u.value)}}),t={},E={},J={};
return _.B("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.B("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.B(_.jC,{data:function(){return c.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.B("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.B("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.B("div",{class:_.FY("ytLearningJourneyZeroStateSearchBar",(t.ytLearningJourneyZeroStateSearchBarDark=Z,t))},_.B("textarea",{class:_.FY("ytLearningJourneyZeroStateTextInput",(E.ytLearningJourneyZeroStateTextInputDark=Z,E)),el:m,"on:keyup":M,"on:keydown":Y,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.B("div",{class:_.FY("ytLearningJourneyZeroStateSearchButtonContainer",(J.ytLearningJourneyZeroStateSearchButtonContainerDark=Z,J))},_.B(_.mN,{data:function(){return _.b(c.data().searchButton,_.zx)},
className:"search-button",onClick:function(){return H(m.value.value)},
buttonOverrides:function(){return{disabled:O(),style:Z?"mono-inverse":"mono",size:"XL"}}}))),_.B(_.T,{cond:function(){return!!c.data().errorBanner},
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Z7(function(X){_.LO(264617,X,d,function(u){d=u})})},_.B(_.u7,{data:function(){return c.data().errorBanner}},{alertBannerViewModel:function(X){return _.B(_.JSo,{data:X.data,
"client-ve-type":264617})}}))}})),_.B(_.T,{cond:q,
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.B(_.u7,{data:function(){return c.data().loader}},{learningJourneyLoaderViewModel:function(X){return _.B(_.dr_,{data:X.data})}}))},
else:function(){return _.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.B(_.T,{cond:function(){return!!c.data().learningJourneyShelf},
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.B("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return c.data().learningJourneySectionTitle}),_.B(_.u7,{data:function(){return c.data().learningJourneyShelf}},{horizontalShelfViewModel:function(X){return _.B(_.yo,{data:X.data,
centerAlignItems:!0})}}))}}),_.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.B("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return c.data().suggestedJourneySectionTitle}),_.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":A},_.B(_.u7,{data:function(){return c.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(X){return _.B(_.XT,{data:X.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"hd"),"yt-learning-journey-zero-state",{props:{data:_.oM}});var CAv=_.dN(function(c){var f=c.data;return _.B("ytvl-live-leaderboard-item-action-content-view-model",{class:_.FY("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.B(_.J9,{text:function(){var d;return(d=f())==null?void 0:d.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.B(_.u7,{data:function(){return f().actionButton}},{buttonViewModel:function(d){return _.B(_.mN,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:d.data})}}))},"id");var gJO=_.dN(function(c){var f=c.data;return _.B("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.FY("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.B(_.J9,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var d;return(d=f())==null?void 0:d.displayName},
ellipsisTruncate:!0}),_.B(_.u7,{data:function(){return f().badge}},{buttonViewModel:function(d){return _.B(_.mN,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:d.data})}}))},"jd");_.g_(_.dN(function(c){var f=c.data;return _.B("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.B("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.B(_.J9,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var d;return(d=f())==null?void 0:d.rank}})),_.B("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.B(_.u7,{data:function(){return f().avatar}},{avatarViewModel:_.ag})),_.B("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.B(_.u7,{data:function(){return f().content}},{liveLeaderboardItemChannelContentViewModel:gJO,
liveLeaderboardItemActionContentViewModel:CAv})),_.B(_.J9,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var d;return(d=f())==null?void 0:d.points}}))},"kd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;return _.B("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.B(_.J9,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var d,q;return(d=f())==null?void 0:(q=d.ranking)==null?void 0:q.rank}}),_.B("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.B(_.u7,{data:function(){return f().avatar}},{avatarViewModel:_.ag})),_.B(_.J9,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var d,q;return(d=f())==null?void 0:(q=d.channelContent)==null?void 0:q.channelName}}),_.B(_.J9,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var d;return(d=f())==null?void 0:d.points}}))},"ld"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.oM}});var kTv=_.dN(function(c){c=_.ch(c,{wrapper:!1}).wrapper;return _.B(_.T,{cond:c,then:function(){return _.B("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.B("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.B("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"md");
kTv.idomCompat=!0;var Owo=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],lIv=_.dN(function(c){var f=c.data;var d=_.Z7(),q=_.TZ(function(){return f().command},void 0,"o6t5Yb");
_.$k(function(){q()&&_.eq(q(),{form:{element:d.value}})},"qIHWLc");
return _.B("div",{el:d,class:"YtQrCodeRendererHostContainer"},_.B(_.T,{cond:function(){return f().qrCodeImage},
then:function(Z){return _.B(_.jC,{data:Z,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.B(_.T,{cond:function(){return f().spinner},
then:function(){return _.B(kTv,null)}})}}),_.B(_.T,{cond:function(){return f().label},
then:function(Z){return _.B(_.J9,{text:Z,className:"YtQrCodeRendererHostLabel"})}}),_.B(_.T,{cond:function(){return f().labels},
then:function(Z){return _.B("div",{class:"YtQrCodeRendererHostLabels"},_.B(_.bd,{each:Z},function(M){return _.B(_.J9,{text:M})}))}}))},"od");_.g_(_.dN(function(c){var f=c.data;var d=_.TZ(function(){return f().qrEntityKey},void 0,"joYCxd"),q=_.TZ(function(){return f().deleteEntityOnDismiss},void 0,"x3yAde"),Z=_.TZ(function(){return f().command},void 0,"dJe1Re"),M=_.Ka(Jzk,d);
c=_.TZ(function(){return f().qrCodeImage},void 0,"qM5dZe");
var g=_.TZ(function(){return f().style&&Owo.includes(f().style)},void 0,"CaNEkf"),O=_.qd({visibilityCallback:function(l){l&&Z()&&_.eq(Z())},
showOption:{calledOnce:!0,state:"visible"}});_.L9(function(){_.Q4(function(){q()&&d()&&_.xE().dispatch(_.ER("qrCodeEntity",d()))})});
return _.B("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Z7(O)},_.B(_.T,{cond:g,then:function(){return _.B(_.T,{cond:M,then:function(l){return _.B(lIv,{data:l})}})}}),_.B(_.T,{cond:c,
then:function(l){return _.B(_.jC,{data:l,alt:""})}}))},"nd"),"yt-qr-code-renderer",{props:{data:_.oM}});_.sI_=_.dN(function(c){var f=c.data;var d=c.topbarOffset;var q,Z=((q=_.ql().resolve(_.dx(_.of)))==null?void 0:q())||!1;return _.B("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var M=f();var g,O,l=Z?(g=M.config)==null?void 0:g.darkThemeBackgroundColor:(O=M.config)==null?void 0:O.lightThemeBackgroundColor;M=l?_.ya(l):void 0;M="background-color: "+M+";";d!==void 0&&(M+="top: -"+d()+"px;");return M},
"aria-hidden":!0},_.B(_.T,{cond:function(){var M,g,O;return!!((M=f().backgroundImageConfig)==null?0:(g=M.image)==null?0:(O=g.sources)==null?0:O.length)},
then:function(){return _.B(_.jC,{data:function(){var M;return(M=f().backgroundImageConfig)==null?void 0:M.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.B("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+FSl(Z,f().gradientColorConfig)+";"}}))},"pd");
_.sI_.idomCompat=!0;var Wn=_.dN(function(c){var f=c.className;var d=c.data;var q=c.isOverlay;var Z=c.maxLinesOverride;var M=c.useMediumText;var g=function(){return d().alwaysShowTruncationText},O=function(){return d().truncationText},l=function(){return M!==void 0&&M()?"medium":"small"},m=function(){return q!==void 0&&q()?"overlay":"default"},H=function(){var E,J;
return(J=(E=_.b(d().rendererContext,_.Kz))==null?void 0:E.label)!=null?J:""};
c=_.C(_.OT(!1,void 0,"xVwzHf"));var A=c.next().value,Y=c.next().value;c=_.Ks(function(){d().expandOnTap&&Y(!A());return!1});
var t={};return _.B("yt-description-preview-view-model",{el:_.Z7(_.NY(function(){return d().rendererContext})),
class:_.FY("yt-description-preview-view-model-wiz",f,(t["yt-description-preview-view-model-wiz--clickable"]=function(){var E;return!((E=_.b(d().rendererContext,Mpk))==null||!E.onTap)},t["yt-description-preview-view-model-wiz--is-overlay"]=q,t)),
"on:click":c},_.B(_.T,{cond:function(){return d().description},
then:function(E){return _.B(_.T,{cond:A,then:function(){var J={};return _.B("div",{class:_.FY("yt-description-preview-view-model-wiz__description",(J["yt-description-preview-view-model-wiz__description--medium-text"]=M,J))},_.B(_.J9,{text:E}))},
else:function(){return _.B(Liu,{text:E,alwaysShowTruncationText:g,truncationText:O,maxLines:function(){var J;return(J=Z==null?void 0:Z())!=null?J:d().maxLines},
textStyle:m,accessibilityLabel:H,textSize:l})}})}}))},"qd");
Wn.idomCompat=!0;var Bsj=_.dN(function(c){var f=c.data;var d=c.isOverlay;return _.B("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.B("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.B(_.u7,{data:function(){return f().header}},{sectionHeaderViewModel:function(q){return _.B(_.Bn,{data:q.data,
isOverlay:d})}})),_.B("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.B(_.u7,{data:function(){return f().channelInfoButtons}},{flexibleActionsViewModel:_.XT})),_.B("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.B(_.u7,{data:function(){return f().description}},{descriptionPreviewViewModel:function(q){return _.B(Wn,{data:q.data,
isOverlay:d})}})))},"rd");
Bsj.idomCompat=!0;var iwT=_.dN(function(c){var f=c.data;var d={};return _.B("factoid-view-model",{class:_.FY("ytwFactoidViewModelHost",(d.ytwFactoidViewModelHostOverlay=c.isOverlay,d))},_.B(_.J9,{text:function(){return f().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.B(_.J9,{text:function(){return f().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"sd");
iwT.idomCompat=!0;var Tsj=_.dN(function(c){var f=c.data;var d=c.isOverlay;return _.B("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.B(_.u7,{data:function(){return f().factoids}},{factoidViewModel:function(q){return _.B(iwT,{data:q.data,
isOverlay:d})}}))},"td");
Tsj.idomCompat=!0;_.mrF=_.dN(function(c){var f=c.data;var d=c.isOverlay;return _.B("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.B(_.u7,{data:function(){return f().items}},{channelInfoViewModel:function(q){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(Bsj,{data:q.data,
isOverlay:d}))},
coursePerksViewModel:function(q){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(o1F,{data:q.data,isOverlay:d}))},
descriptionPreviewViewModel:function(q){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(Wn,{data:q.data,isOverlay:d}))},
factoidsRowViewModel:function(q){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(Tsj,{data:q.data,isOverlay:d}))},
progressViewModel:function(q){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(GE_,{data:q.data,isOverlay:d}))}}))},"ud");var Hwv=_.dN(function(c){return _.B("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.B(_.u7,{data:function(){return c.data().content}},{courseMetadataViewModel:function(f){return _.B(_.mrF,{data:f.data,
isOverlay:c.isOverlay})},
progressViewModel:function(f){return _.B(GE_,{data:f.data})}}))},"vd");var AgK=_.dN(function(c){var f=c.data;c=c.className;var d=function(){var Z;return _.ec((Z=f())==null?void 0:Z.rendererContext)},q={};
q=(q["dynamic-text-view-model-wiz"]=!0,q["dynamic-text-view-model-wiz--tappable"]=function(){return d()},q);
return _.B("yt-dynamic-text-view-model",{el:_.Z7(_.NY(function(){var Z;return(Z=f())==null?void 0:Z.rendererContext})),
role:function(){return d()?"link":void 0},
tabindex:function(){return d()?0:void 0},
class:_.FY(c,q)},_.B("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var Z,M,g;return(g=(M=_.b((Z=f())==null?void 0:Z.rendererContext,_.Kz))==null?void 0:M.label)!=null?g:""}},_.B(_.J9,{text:function(){return f().text},
userInput:!0})))},"wd");
AgK.idomCompat=!0;_.Dc=_.dN(function(c){var f=c.data;var d=c.isPositionRelative;var q=_.bUM("(max-width: 527.9px)"),Z=function(){var M,g;return(g=(M=f())==null?void 0:M.style)!=null?g:"IMAGE_BANNER_STYLE_FULL_BLEED"};
c={};return _.B("yt-image-banner-view-model",{el:_.Z7(_.NY(function(){var M;return(M=f())==null?void 0:M.rendererContext})),
class:_.FY((c["yt-image-banner-view-model-wiz"]=!0,c["yt-image-banner-view-model-wiz--inset"]=function(){return KS4(Z())},c["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.LL(!0)&&!(d==null?0:d())},c["yt-image-banner-view-model-wiz--small-inset"]=function(){return KS4(Z())&&q()},c["yt-image-banner-view-model-wiz--tappable"]=function(){var M;
return _.ec((M=f())==null?void 0:M.rendererContext)},c))},_.B(_.T,{cond:function(){var M;
return(M=f())==null?void 0:M.image},
then:function(){return _.B(_.jC,{data:function(){return f().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.B(_.u7,{data:function(){var M;
return(M=f())==null?void 0:M.overlays}},{thumbnailHoverOverlayViewModel:J6}))},"xd");
_.Dc.idomCompat=!0;var Y$K;Y$K=_.dN(function(c){var f=c.condition;var d=c.content;return _.B(_.T,{cond:f,then:function(){return _.B("div",{class:"page-header-view-model-wiz__scroll-container"},d())},
else:function(){return d()}})},"yd");
_.FVu=_.dN(function(c){var f=c.data;var d=c.noPadding;var q=c.enableBanner;var Z=c.cinematicContainerTopbarOffset;var M=c.allowCinematicContainerOverflow;var g=c.displayAsSidebar;var O=c.displayAsPanel;var l=c.alwaysUseMediumTextDescription;var m=EMG(),H=function(){return!!f().image||!!f().animatedImage},A=function(){return!!f().background},Y=function(){return(g==null?0:g())||(O==null?0:O())?1:m()},t=function(){return Y()===1},E=function(){return t()||Y()===2},J=function(){return Y()===4},X=function(){var AP=
f();
var eM=!!f().heroImage;var ue=Y(),BH=nMC(f()),J3=g==null?void 0:g(),lr=!AP.metadata,xl;if(xl=eM?_.b(AP.heroImage,XLT):_.b(AP.animatedImage||AP.image,XLT)){AP=xl.style;var Tv=xl.layoutMode;if(Tv!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(xl=ksN(gNz(xl)),eM)eM=tmG(ue,AP,Tv,xl,J3);else b:if(lr)eM=ue===1?{size:48}:{size:72};else switch(ue){case 1:eM={size:72};break b;case 2:eM={size:120};break b;default:eM=BH<4?{size:120}:{size:160}}else eM=void 0}else eM={size:0};return eM};
c={};c=_.FY((c["page-header-view-model-wiz"]=!0,c["page-header-view-model-wiz--no-padding"]=function(){return!(d==null||!d())},c["page-header-view-model-wiz--small-top-padding"]=function(){return t()&&!f().actions&&!(O==null?0:O())||Y()===2&&!(H()||f().heroImage)},c["page-header-view-model-wiz--small-bottom-padding"]=function(){return E()&&!f().actions&&!(O==null?0:O())},c["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(M==null?0:M())},c["page-header-view-model-wiz--display-as-sidebar"]=
g,c));
var u={},W=_.FY((u["page-header-view-model-wiz__page-header-headline"]=!0,u["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var AP;return(AP=X())==null?void 0:AP.allowFullWidth},u)),p=function(){var AP;
return E()&&!((AP=X())==null?0:AP.allowFullWidth)},N=function(){return t()&&(!!f().heroImage||H())&&nMC(f())>0},I=function(){return N()&&(O==null?void 0:O())};
u={};var R=_.FY((u["page-header-view-model-wiz__page-header-title"]=!0,u["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!N()},u["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return N()&&!I()},u["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=I,u["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=A,u));
u={};var qN=_.FY((u["page-header-view-model-wiz__page-header-headline-image"]=!0,u["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!f().heroImage&&E()},u));
u={};var kl=_.FY((u["page-header-view-model-wiz__page-header-banner-container"]=q,u["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var AP;return(q==null?void 0:q())&&((AP=_.b(f().banner,_.vHv))==null?void 0:AP.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},u));
u={};var BN=_.FY((u["page-header-view-model-wiz__page-header-content-metadata"]=!0,u["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=A,u));u={};var tP=_.FY((u["page-header-view-model-wiz__page-header-flexible-actions"]=!0,u["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!f().metadata||E()},u["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!E()},u));
u={};var EC=_.FY((u["page-header-view-model-wiz__page-header-attribution"]=!0,u["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=A,u));return _.B("yt-page-header-view-model",{class:c},_.B(_.T,{cond:A,then:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-background"},_.B(_.u7,{data:function(){return f().background}},{cinematicContainerViewModel:function(AP){return _.B(_.sI_,{data:AP.data,
topbarOffset:Z})}}))}}),_.B(Y$K,{condition:function(){return!(g==null||!g())},
content:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-content"},_.B(_.T,{cond:function(){return(q==null?void 0:q())&&f().banner},
then:function(){return _.B("div",{class:kl},_.B(_.u7,{data:function(){return f().banner}},{imageBannerViewModel:_.Dc}))}}),_.B("div",{class:W},_.B(_.T,{cond:H,
then:function(){return _.B(_.u7,{data:function(){var AP;if(!(AP=f().animatedImage)){AP=f();if(H()){var eM=AP=Object.assign({},AP),ue=Y(),BH=nMC(f()),J3=eM.image,lr=_.b(J3,uQy),xl=lr==null?void 0:lr.avatar,Tv=_.b(xl,_.Ie);if(J3&&xl&&Tv){switch(ue){case 1:Tv.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Tv.avatarImageSize="AVATAR_SIZE_XXL";break;default:BH<4?Tv.avatarImageSize="AVATAR_SIZE_XXL":Tv.avatarImageSize="AVATAR_SIZE_XXXL"}_.F("web_enable_sink_page_header_view_model")&&(_.vh(xl,_.Ie,Object.assign({},
Tv)),lr.avatar=Object.assign({},xl),_.vh(J3,uQy,Object.assign({},lr)),eM.image=Object.assign({},J3))}}AP=AP.image}return AP}},{contentPreviewImageViewModel:function(AP){return _.B(_.CQ,{data:AP.data,
className:qN,imageSizeConfig:X})},
decoratedAvatarViewModel:function(AP){return _.B(_.VV,{data:AP.data,className:qN})}})}}),_.B(_.T,{cond:function(){return!!f().heroImage&&!p()},
then:function(){return _.B(_.u7,{data:function(){return f().heroImage}},{contentPreviewImageViewModel:function(AP){return _.B(_.CQ,{data:AP.data,
className:qN,imageSizeConfig:X})}})}}),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.T,{cond:function(){return!!f().heroImage&&p()},
then:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.B(_.u7,{data:function(){return f().heroImage}},{contentPreviewImageViewModel:function(AP){return _.B(_.CQ,{data:AP.data,
className:qN,imageSizeConfig:X})}}))}}),_.B(_.u7,{data:function(){return f().title}},{dynamicTextViewModel:function(AP){return _.B(AgK,{data:AP.data,
className:R})}}),_.B(_.u7,{data:function(){return f().metadata}},{contentMetadataViewModel:function(AP){return _.B(_.gA,{data:AP.data,
layout:function(){return t()?1:0},
className:BN,isOverlay:A,useMediumText:J})}}),_.B(_.T,{cond:function(){return f().description&&!t()},
then:function(){return _.B(_.u7,{data:function(){return f().description}},{descriptionPreviewViewModel:function(AP){return _.B(Wn,{data:AP.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:A,maxLinesOverride:function(){return t()?void 0:1},
useMediumText:function(){return(l==null?void 0:l())||J()}})}})}}),_.B(_.T,{cond:function(){return f().attribution&&!E()},
then:function(){return _.B(_.u7,{data:function(){return f().attribution}},{attributionViewModel:function(AP){return _.B(i7K,{data:AP.data,
className:EC,useMediumText:J})}})}}),_.B(_.T,{cond:function(){return f().actions&&!E()},
then:function(){return _.B(_.u7,{data:function(){return f().actions}},{flexibleActionsViewModel:function(AP){return _.B(_.XT,{data:AP.data,
layout:function(){return $qM(Y())},
className:tP})}})}}))),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.T,{cond:function(){return f().description&&t()},
then:function(){return _.B(_.u7,{data:function(){return f().description}},{descriptionPreviewViewModel:function(AP){return _.B(Wn,{data:AP.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:A,maxLinesOverride:function(){return t()?void 0:1},
useMediumText:function(){return(l==null?void 0:l())||J()}})}})}}),_.B(_.T,{cond:function(){return f().attribution&&E()},
then:function(){return _.B(_.u7,{data:function(){return f().attribution}},{attributionViewModel:function(AP){return _.B(i7K,{data:AP.data,
className:EC,useMediumText:J})}})}}),_.B(_.T,{cond:function(){return f().actions&&E()},
then:function(){return _.B(_.u7,{data:function(){return f().actions}},{flexibleActionsViewModel:function(AP){return _.B(_.XT,{data:AP.data,
layout:function(){return $qM(Y())},
className:tP})}})}})),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.u7,{data:function(){return f().bottomMetadataFlexibleContainer}},{flexibleContainer:function(AP){return _.B(Hwv,{data:AP.data,
isOverlay:A})}})))}}))},"zd");
_.FVu.idomCompat=!0;_.g_(_.dN(function(c){var f=_.C(_.OT(!1,void 0,"j5qbkc")),d=f.next().value,q=f.next().value;return _.B("yt-official-card-view-model",{class:_.FY("ytOfficialCardViewModelHost",c.className),style:_.$Z({"background-color":function(){var Z,M=LMC((Z=c.data())==null?void 0:Z.backgroundColor);return M?_.WS(M):void 0}})},_.B(_.u7,{data:function(){return c.data().header}},{pageHeaderViewModel:function(Z){return _.B(_.FVu,{data:Z.data,
noPadding:!0})}}),_.B(_.u7,{data:function(){return c.data().contents}},{horizontalShelfViewModel:function(Z){return _.B(_.yo,{data:Z.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.B(_.T,{cond:d,
then:function(){return _.B("div",{class:"ytOfficialCardViewModelExpandedContent"},_.B(_.u7,{data:function(){return c.data().expandedContents}},{horizontalShelfViewModel:function(Z){return _.B(_.yo,{data:Z.data,
sizing:"MINI"})}}),_.B("div",{class:"ytOfficialCardViewModelCollapseButton"},_.B(_.u7,{data:function(){return c.data().collapseButton}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
onClick:function(){q(!d())}})}})))},
else:function(){return _.B("div",{class:"ytOfficialCardViewModelExpandButton"},_.B(_.u7,{data:function(){return c.data().expandButton}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
onClick:function(){q(!d())}})}}))}}))},"Ad"),"yt-official-card-view-model",{props:{data:_.oM,
className:_.oM}});var QtY=_.La({buttonViewModel:_.mN});_.ZB(StG);_.m$(StG,"ytw-search-friction-view-model",{propNames:["data"]});_.e$=_.dN(function(c){var f=_.xz("markdown-div"),d,q=(d=_.ql().resolve(_.dx(_.of)))==null?void 0:d();_.$k(function(){var Z=f.value;var M=new J33,g=new Map(M.JSC$9243_sanitizerTable.globalAttributePolicies);g.set("style",{policyAction:4});M.JSC$9243_sanitizerTable=new E5(M.JSC$9243_sanitizerTable.allowedElements,M.JSC$9243_sanitizerTable.elementPolicies,M.JSC$9243_sanitizerTable.allowedGlobalAttributes,g,M.JSC$9243_sanitizerTable.globallyAllowedAttributePrefixes);var O=["data-time"];if(O===void 0)g=
new Set(M.JSC$9243_sanitizerTable.globallyAllowedAttributePrefixes),g.add("data-"),M.JSC$9243_sanitizerTable=new E5(M.JSC$9243_sanitizerTable.allowedElements,M.JSC$9243_sanitizerTable.elementPolicies,M.JSC$9243_sanitizerTable.allowedGlobalAttributes,M.JSC$9243_sanitizerTable.globalAttributePolicies,g);else{g=new Set(M.JSC$9243_sanitizerTable.allowedGlobalAttributes);O=_.C(O);for(var l=O.next();!l.done;l=O.next()){l=l.value;if(l.indexOf("data-")!==0)throw Error("ma`"+l);g.add(l)}M.JSC$9243_sanitizerTable=
new E5(M.JSC$9243_sanitizerTable.allowedElements,M.JSC$9243_sanitizerTable.elementPolicies,g,M.JSC$9243_sanitizerTable.globalAttributePolicies,M.JSC$9243_sanitizerTable.globallyAllowedAttributePrefixes)}g=new Set(M.JSC$9243_sanitizerTable.allowedGlobalAttributes);g.add("class");M.JSC$9243_sanitizerTable=new E5(M.JSC$9243_sanitizerTable.allowedElements,M.JSC$9243_sanitizerTable.elementPolicies,g,M.JSC$9243_sanitizerTable.globalAttributePolicies,M.JSC$9243_sanitizerTable.globallyAllowedAttributePrefixes);
_.G8(Z,_.$Hj(M.build(),z6C(c.text())));Jlk(f.value)},"nk5Hce");
d={};return _.B("div",null,_.B("markdown-div",{class:_.FY("ytwMarkdownDivHost",(d.ytwMarkdownDivDark=q,d.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var Z;return((Z=c.isSmallText)==null?void 0:Z.call(c))||!1},d.ytwMarkdownDivHostWrapCodeBlocks=function(){var Z;
return((Z=c.wrapCodeBlocks)==null?void 0:Z.call(c))||!1},d.ytwMarkdownDivHostEnableDefaultStyling=function(){var Z;
return!((Z=c.disableDefaultStyling)==null?0:Z.call(c))},d)),
el:f}))},"Bd");
_.e$.idomCompat=!0;var tT3=_.dN(function(c){var f=c.imageData;var d=_.Ga(c.isInList,!1),q=function(){return d()?{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 _.B("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.B(_.T,{cond:function(){return f().image},
then:function(Z){return _.B(_.jC,{data:Z,alt:function(){return q().alt},
contentMode:function(){return q().contentMode},
targetWidth:function(){return q().targetWidth},
targetHeight:function(){return q().targetHeight},
className:function(){return q().className}})}}),_.B("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.B("div",{class:_.FY("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.B(_.J9,{text:function(){return f().title}})),_.B(_.bd,{each:function(){var Z;
return(Z=f().description)!=null?Z:[]}},function(Z){return _.B("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.B(Nb,{content:Z}))})))},"Cd"),bwK=_.dN(function(c){var f=c.list;
var d=function(){var q;return(q=f().items)!=null?q:[]};
return _.B("div",{class:"ytwGenAiRichTextViewModelListContent"},_.B(_.T,{cond:function(){return f().title},
then:function(q){return _.B("div",{class:_.FY("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.B(_.J9,{text:q}))}}),_.B(_.T,{cond:function(){return f().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.B("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.B(_.bd,{each:d},function(q){return _.B("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.B(Nb,{content:q,isInList:!0}))}))}}),_.B(_.T,{cond:function(){return f().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.B("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.B(_.bd,{each:d},function(q){return _.B("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.B(Nb,{content:q,isInList:!0}))}))}}),_.B(_.T,{cond:function(){return f().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.B("div",{class:"ytwGenAiRichTextViewModelImageList"},_.B(_.bd,{each:d},function(q){return _.B("div",{class:"ytwGenAiRichTextViewModelListItem"},_.B(Nb,{content:q,isInList:!0}))}))}}))},"Dd"),KVF=_.dN(function(c){var f=c.table;
return _.B("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.B("thead",null,_.B("tr",null,_.B(_.bd,{each:function(){var d,q;return(q=(d=f().header)==null?void 0:d.cells)!=null?q:[]}},function(d){return _.B("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.B(_.bd,{each:function(){return d.contents}},function(q){return _.B(Nb,{content:q})}))}))),_.B("tbody",null,_.B(_.bd,{each:function(){var d;
return(d=f().rows)!=null?d:[]}},function(d){return _.B("tr",null,_.B(_.bd,{each:function(){return d.cells}},function(q){return _.B("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.B(_.bd,{each:function(){return q.contents}},function(Z){return _.B(Nb,{content:Z})}))}))})))},"Ed"),Nb=_.dN(function(c){var f=c.content;
var d=_.Ga(c.isInList,!1),q=function(){var Z,M;return(M=(Z=f().contentBlock)==null?void 0:Z.contents)!=null?M:[]};
return _.B("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.B(_.T,{cond:function(){return f().text},
then:function(Z){return _.B(_.J9,{className:"ytwGenAiRichTextViewModelText",text:Z})}}),_.B(_.T,{cond:function(){return f().image},
then:function(Z){return _.B(tT3,{imageData:Z,isInList:d})}}),_.B(_.T,{cond:function(){return f().list},
then:function(Z){return _.B(bwK,{list:Z})}}),_.B(_.T,{cond:function(){return f().contentBlock},
then:function(){return _.B("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.B(_.bd,{each:q},function(Z){return _.B(Nb,{content:Z,isInList:!1})}))}}),_.B(_.T,{cond:function(){return f().table},
then:function(Z){return _.B(KVF,{table:Z})}}))},"Fd"),EJ_=_.dN(function(c){var f={};
f=_.tp("ytwGenAiRichTextViewModelHost",(f.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.CD("search_overview_link_style")),f));return _.B("gen-ai-rich-text-view-model",{class:f},_.B(Nb,{content:function(){return c.data().content}}))},"Gd");_.ZB(ayN);_.ZB(a9);_.nJ3=_.dN(function(c){var f=c.data;var d=function(){var J;return((J=f().loadingUi)!=null?J:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},q=function(){return f().isLoading&&(d()==="UNSPECIFIED"||d()==="GHOST_CARD")},Z=function(){return!f().isLoading},M=function(){return!!f().content&&!f().contents},g=function(){return!!f().contents},O=function(){return!!f().nextQueryButtons},l=function(){return f().isLoading&&d()==="INVISIBLE"},m=function(){var J,X;
return(X=(J=f().headerIcon)==null?void 0:J.iconType)!=null?X:""},H=function(){var J;
return(J=f().content)!=null?J:""},A=function(){return!!f().sourcesSection},Y,t=!((Y=_.ql().resolve(_.dx(_.of)))==null||!Y()),E=_.TZ(function(){var J=[],X=f().contents;
if(X)for(var u=0;u<X.length;u++){var W=_.b(X&&X[u],NFu);W&&J.push(W)}return J},void 0,"ycU97e");
_.L9(function(){f().isLoading||_.V_("so_re",void 0,"search_overview_answer")});
return _.B("ytd-overview-answer-view-model",{class:function(){var J={};J=(J.ytdOverviewAnswerViewModelHost=!0,J.ytdOverviewAnswerViewModelDarkBackground=t&&!l(),J.ytdOverviewAnswerViewModelLightBackground=!t&&!l(),J);return _.tp(J)}},_.B(_.T,{cond:function(){return!l()},
then:function(){return _.B(_.qD,null,_.B("h2",null,_.B("div",{class:"ytdOverviewAnswerViewModelHeader"},_.B(_.T,{cond:m,then:function(J){return _.B("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.B(_.Qy,{icon:J}))}}),_.B("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.B("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return f().headerText}),_.B("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.B(_.J9,{text:function(){return f().headerSubtext}}))))),_.B(_.T,{cond:q,
then:function(){return ayN()}}),_.B(_.T,{cond:Z,
then:function(){return _.B(_.qD,null,_.B(_.T,{cond:M,then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelText"},_.B(_.e$,{text:H,isSmallText:!0}))}}),_.B(_.T,{cond:g,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelRichText"},_.B(_.bd,{each:E},function(J){return _.B(EJ_,{data:J})}))}}),_.B(_.T,{cond:O,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.B(_.u7,{data:function(){return f().nextQueryButtons}},{buttonViewModel:function(J){return _.B(_.mN,{data:J.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.yo}))}}),_.B("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.B("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.B(_.T,{cond:function(){return!!_.b(f().likeButtonViewModel,_.uq)&&!!_.b(f().dislikeButtonViewModel,_.XL)},
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.B(_.vP,{data:function(){return _.b(f().likeButtonViewModel,_.uq)},
disableIconAnimation:!0}),_.B(_.u9,{data:function(){return _.b(f().dislikeButtonViewModel,_.XL)}}))}})),_.B(_.T,{cond:function(){var J;
return(J=f().sourcesSection)==null?void 0:J.headerText},
then:function(J){return _.B("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.B(_.J9,{text:J}))}})),_.B(_.T,{cond:A,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelSources"},_.B(_.u7,{data:function(){var J;return(J=f().sourcesSection)==null?void 0:J.sourcesShelf}},{buttonViewModel:_.mN,
horizontalShelfViewModel:function(J){return _.B(_.yo,{data:J.data,includeMargin:!0,hasPeek:!0})}}))}}),_.B(_.T,{cond:function(){return f().disclaimerText},
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.B(_.J9,{text:function(){return f().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Hd");var $r_=_.dN(function(c){var f=c.data;var d=c.active;var q=_.xz("transcript-segment-view-model");_.$k(function(){var Z,M,g,O=((Z=_.ql().resolve(_.dx(_.of)))==null?0:Z())?(M=f())==null?void 0:M.darkThemeColorPalette:(g=f())==null?void 0:g.lightThemeColorPalette;O&&(O.additiveBackground&&q.value.style.setProperty("--timestamp-active-background-color",_.WS(O.additiveBackground)),O.textSecondary&&q.value.style.setProperty("--timestamp-active-color",_.ya(O.textSecondary)))},"KHcbwb");
c={};return _.B("transcript-segment-view-model",{class:_.FY("ytwTranscriptSegmentViewModelHost",(c.ytwTranscriptSegmentViewModelHostActive=d,c.ytwTranscriptSegmentViewModelHostModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),c)),el:q},_.B(_.T,{cond:function(){var Z;return(Z=f())==null?void 0:Z.timestamp},
then:function(Z){var M={};return _.B("div",{class:_.FY("ytwTranscriptSegmentViewModelTimestamp",(M.ytwTranscriptSegmentViewModelTimestampActive=d,M))},Z)}}),_.B(_.J9,{text:function(){var Z,M,g;
return(g=(Z=f())==null?void 0:Z.attributedText)!=null?g:{content:(M=f())==null?void 0:M.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Id");var QIT=_.dN(function(c){var f=c.data;return _.B("div",{class:"yt-video-attributes-section-view-model__header"},_.B("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return f().headerTitle}),_.B(_.T,{cond:function(){return f().headerSubtitle},
then:function(){return _.B("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return f().headerSubtitle})}}))},"Jd"),S$y=_.dN(function(c){function f(J){return Math.max(Math.min(J,0),m()-O())}
var d=c.data;var q;c=_.xz("div",function(J){var X=function(){H(J.clientWidth)};
X();window.ResizeObserver&&(q=new ResizeObserver(X),q.observe(J))});
var Z=_.xz("div",function(J){l(J.scrollWidth)}),M=_.C(_.OT(0,void 0,"Y8rd0c")),g=M.next().value;
M=M.next().value;var O=g,l=M;M=_.C(_.OT(0,void 0,"kDvR6b"));g=M.next().value;M=M.next().value;var m=g,H=M;g=_.C(_.OT(0,void 0,"Kit3De"));var A=g.next().value,Y=g.next().value;_.Q4(function(){var J;(J=q)==null||J.disconnect()});
var t=function(){Y(f(A()+m()))},E=function(){Y(f(A()-m()))};
return _.B("yt-video-attributes-section-view-model",null,_.B("div",{class:"yt-video-attributes-section-view-model"},_.B(_.T,{cond:function(){return d().headerTitle},
then:function(){return _.B(QIT,{data:d})}}),_.B("div",{class:_.FY("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:c},_.B("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.$Z({transform:function(){var J=A();_.hk("HTML_DIR")==="rtl"&&(J*=-1);return"translateX("+J+"px)"}}),
el:Z},_.B(_.u7,{data:function(){return d().videoAttributeViewModels}},{videoAttributeViewModel:aCF}))),_.B(_.u7,{data:function(){return d().footerButton}},{buttonViewModel:function(J){return _.B(_.mN,{data:J.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.B(_.T,{cond:function(){return A()<0&&d().previousButton},
then:function(){return _.B("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.B(_.u7,{data:function(){return d().previousButton}},{buttonViewModel:function(J){return _.B(_.mN,{data:J.data,
onClick:t})}}))}}),_.B(_.T,{cond:function(){return A()>m()-O()&&d().nextButton},
then:function(){return _.B("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.B(_.u7,{data:function(){return d().nextButton}},{buttonViewModel:function(J){return _.B(_.mN,{data:J.data,
onClick:E})}}))}})))},"Kd");
S$y.idomCompat=!0;var LVy=_.dN(function(c){var f=c.data;var d=c.active;var q={},Z={};return _.B("timeline-item-view-model",{class:_.FY("ytwTimelineItemViewModelHost",(q.ytwTimelineItemViewModelHostChapterChild=c.chapterChild,q.ytwTimelineItemViewModelModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),q))},_.B("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.B("div",{class:_.FY("ytwTimelineItemViewModelTimestamp",(Z.ytwTimelineItemViewModelTimestampActive=
d,Z))},function(){return f().timestamp})),_.B("div",{class:"ytwTimelineItemViewModelContentItems"},_.B(_.u7,{data:function(){return f().contentItems}},{transcriptSegmentViewModel:function(M){return _.B($r_,{data:M.data,
active:d})},
videoAttributesSectionViewModel:S$y})))},"Ld");var zku=_.dN(function(c){var f=c.data;c={};return _.B("timeline-chapter-view-model",{class:_.FY("ytwTimelineChapterViewModelHost")},_.B("div",{class:_.FY("ytwTimelineChapterViewModelTitle",(c.ytwTimelineChapterViewModelModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),c))},function(){return f().title}),_.B(_.u7,{data:function(){return f().contents}},{timelineItemViewModel:function(d){return _.B(LVy,{data:d.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(d){return _.B(S$y,{data:d.data})}}))},"Md");var Jg3=_.dN(function(c){var f=c.data;var d=_.xz("macro-markers-panel-item-view-model"),q=_.Ka(_.$4N,function(){var M;return(M=f().markersEngagementPanelSyncEntityKey)!=null?M:""}),Z=function(){var M;
return((M=q())==null?void 0:M.activeItemIndex)===f().index};
c=_.Ks(function(M){var g,O,l,m,H;return _.k(function(A){if(A.nextAddress==1)return M.stopPropagation(),_.W9(_.yH(M),d.value,["A".toString(),"BUTTON".toString()])?A.return():(g=_.D9(f().onTap))?A.yield(_.H9(),2):A.return();O=A.yieldResult;m=(l=_.b(g,_.pe))==null?void 0:l.startTimeSeconds;m===void 0||(H=O)!=null&&H.seekTo(m,!0);_.Fm(A)})});
return _.B("macro-markers-panel-item-view-model",{class:_.FY("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Z}),el:d,"on:click":c,tabindex:0},_.B(_.u7,{data:function(){var M;return(M=f())==null?void 0:M.item}},{timelineChapterViewModel:function(M){return _.B(zku,{data:M.data,
active:Z})},
timelineItemViewModel:function(M){return _.B(LVy,{data:M.data,active:Z})},
videoAttributeViewModel:aCF}))},"Nd");
Jg3.idomCompat=!0;_.g_(Jg3,"macro-markers-panel-item-view-model",{props:{data:_.oM}});_.g_(S$y,"yt-video-attributes-section-view-model",{props:{data:_.oM}});var aIH=_.dN(function(c){var f=function(){var d,q,Z;return(Z=(d=c.data().leadingLogoAccessibility)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label)!=null?Z:""};
return _.B("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.B(_.T,{cond:function(){return c.data().leadingLogo},
then:function(d){return _.B(_.jC,{className:"ytwFantasySectionHeaderViewModelLogo",data:d,alt:f})}}),_.B("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.B(_.J9,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return c.data().title}}),_.B(_.J9,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return c.data().subtitle}})),_.B(_.u7,{data:function(){return c.data().trailingButton}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Od");var VTK=_.dN(function(c){var f={};f=_.FY("ytwFantasyTeamViewModelHost",(f.ytwFantasyTeamViewModelCompact=function(){var Z;return!((Z=c.compact)==null||!Z.call(c))},f.ytwFantasyTeamViewModelUser=function(){return c.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},f.ytwFantasyTeamViewModelOpponent=function(){return c.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},f));
var d=function(){var Z,M,g;return(g=(Z=c.data().teamLogoAccessibility)==null?void 0:(M=Z.accessibilityData)==null?void 0:M.label)!=null?g:""},q=_.Ka(SvN,function(){return c.data().teamEntityKey});
return _.B("ytw-fantasy-team-view-model",{class:f},_.B(_.T,{cond:function(){return c.data().teamLogo},
then:function(Z){return _.B(_.jC,{className:"ytwFantasyTeamViewModelLogo",data:Z,alt:d})}}),_.B("div",{class:"ytwFantasyTeamViewModelMetadata"},_.B("div",{class:"ytwFantasyTeamViewModelHeader"},_.B(_.J9,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Z;return(Z=q())==null?void 0:Z.score}}),_.B(_.Qy,{icon:function(){var Z;
return(Z=q())==null?void 0:Z.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.B(_.J9,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Z;return(Z=q())==null?void 0:Z.projectedScore}})),_.B(_.J9,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return c.data().primaryText}}),_.B(_.J9,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return c.data().secondaryText}}),_.B(_.J9,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return c.data().tertiaryText}})),_.B(_.J9,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Z;return(Z=q())==null?void 0:Z.score}}))},"Pd");_.g_(_.dN(function(c){return _.B("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.B("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.B(_.u7,{data:function(){return c.data().summaryHeader}},{fantasySectionHeaderViewModel:aIH})),_.B(_.u7,{data:function(){return c.data().userTeam}},{fantasyTeamViewModel:VTK}),_.B(_.u7,{data:function(){return c.data().opponentTeam}},{fantasyTeamViewModel:VTK}))},"Qd"),"fantasy-league-summary-view-model",{props:{data:_.oM}});var X4H=_.dN(function(c){var f=_.ch(c,{shape:{},useCustomTabRenderable:!1}),d=f.shape;f=f.useCustomTabRenderable;var q=c.customTabRenderable,Z=function(){return d().disabled},M=function(){return d().selected},g=function(){return d().title},O=function(){return d().icon},l=_.xz("yt-tab-shape");
c=_.Ks(function(A){var Y;if(!Z()&&((Y=d().aTagConfig)==null?0:Y.onclick))d().aTagConfig.onclick(A);return!1});
var m=_.Ks(function(A){if(A.key==="Enter"||A.key==="ArrowUp"||A.key==="ArrowDown")A.preventDefault(),l.value.click();return!1}),H={};
return _.B("yt-tab-shape",{class:_.FY("yt-tab-shape-wiz",function(){return d().className},(H["yt-tab-shape-wiz__tab--last-tab"]=function(){return d().isLastTab},H["yt-tab-shape-wiz--host-disabled"]=Z,H["yt-tab-shape-wiz--host-clickable"]=!q,H)),
role:q?void 0:"tab","aria-selected":M!=null?M:!1,"aria-disabled":Z,tabindex:q?void 0:0,"on:click":c,"on:keydown":m,el:l,"tab-identifier":function(){return d().identifier},
"tab-title":g},_.B(_.T,{cond:f,then:function(){return q()},
else:function(){var A={},Y={};return _.B(_.qD,null,_.B("div",{class:_.FY("yt-tab-shape-wiz__tab",(A["yt-tab-shape-wiz__tab--tab-selected"]=M,A))},_.B(_.T,{cond:O,then:function(t){return _.B(_.Qy,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return t().iconType}})}}),g),_.B("div",{class:_.FY("yt-tab-shape-wiz__tab-bar",(Y["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=M,Y))}))}}))},"Rd");
X4H.idomCompat={callbacks:{customTabRenderable:!0}};_.vJK=_.dN(function(c){var f=c.shape;c=_.C(_.OT(48,void 0,"r9IBlb"));var d=c.next().value,q=c.next().value;c=_.C(_.OT(0,void 0,"Bd7rmd"));var Z=c.next().value,M=c.next().value,g=function(){return f().tabs},O=_.xz("yt-tab-group-shape"),l=function(){var m,H;
return(H=(m=g())==null?void 0:m.findIndex(function(A){return A.selected}))!=null?H:-1};
_.L9(function(){var m=O.value.querySelectorAll("yt-tab-shape"),H=l()>-1?m[l()]:void 0;_.a7.addJob(function(){q((H==null?void 0:H.getBoundingClientRect().width)||0)},8,0)});
_.$k(function(){var m=l(),H=_.a7.addJob(function(){var A,Y=((A=O.value)==null?void 0:A.querySelectorAll("yt-tab-shape"))||[],t;q(((t=m>-1?Y[m]:void 0)==null?void 0:t.getBoundingClientRect().width)||0);for(t=A=0;t<m;t++)A+=Y[t].offsetWidth+24;_.hk("HTML_DIR")==="rtl"&&(A=-A);M(A)},8,0);
_.Q4(function(){_.a7.cancelJob(H)})},"EHixkc");
c={};return _.B("yt-tab-group-shape",{class:_.FY("yt-tab-group-shape-wiz",(c["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return f().isOverflowHidden},c)),
el:O},_.B(_.T,{cond:g,then:function(m){return _.B(_.qD,null,_.B("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.B(_.bd,{each:m},function(H,A){return _.B(X4H,{shape:function(){return Object.assign({},H,{isLastTab:A()===m().length-1})},
customTabRenderable:H.customTabRenderable,useCustomTabRenderable:!!H.customTabRenderable})})),_.B(uVo,{width:d,
sliderOffset:Z}))}}))},"Sd");
_.vJK.idomCompat=!0;var uVo=_.dN(function(c){var f=_.Ga(c.sliderOffset,0),d=c.width;return _.B("div",{class:"yt-tab-group-shape-wiz__slider",style:_.$Z({width:function(){return d()+"px"},
transform:function(){return"translateX("+f()+"px)"}})})},"Td");var hk_=_.dN(function(c){var f=function(){var M,g,O;return(O=(M=c.data().playerLogoAccessibility)==null?void 0:(g=M.accessibilityData)==null?void 0:g.label)!=null?O:""},d=_.Ka(Lsk,function(){return c.data().playerEntityKey}),q={};
q=_.FY("ytwFantasyPlayerViewModelHost",(q.ytwFantasyPlayerViewModelPlaying=function(){var M;return!((M=d())==null||!M.isPlayerPlaying)},q.ytwFantasyPlayerViewModelOnField=function(){var M;
return((M=d())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},q.ytwFantasyPlayerViewModelRedZone=function(){var M;
return((M=d())==null?void 0:M.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},q));
var Z=function(){var M,g,O,l=((M=_.ql().resolve(_.dx(_.of)))==null?0:M())?(g=c.data().playerLogoBackgroundColor)==null?void 0:g.darkTheme:(O=c.data().playerLogoBackgroundColor)==null?void 0:O.lightTheme;return l===void 0?"":_.WS(l)};
return _.B("ytw-fantasy-player-view-model",{class:q},_.B(_.T,{cond:function(){return c.data().playerLogo},
then:function(M){return _.B("div",{class:"ytwFantasyPlayerViewModelLogo"},_.B("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.B(_.jC,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.$Z({"background-color":Z}),data:M,alt:f})),_.B("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.B(_.Qy,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.B("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.B("div",{class:"ytwFantasyPlayerViewModelHeader"},_.B(_.J9,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var M;return(M=c.data())==null?void 0:M.playerNameText}}),_.B(_.J9,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var M;return(M=c.data())==null?void 0:M.playerDescriptionText}})),_.B("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.B(_.J9,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=d())==null?void 0:M.gamePeriodText}}),_.B(_.J9,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=c.data())==null?void 0:M.opponentTeamText}}),_.B(_.J9,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var M;return(M=d())==null?void 0:M.gameStatusText}}),_.B(_.J9,{className:_.FY("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var M;return(M=d())==null?void 0:M.playerStatusText}})),_.B("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.B(_.J9,{text:function(){var M;
return(M=d())==null?void 0:M.playerStatsText}}))),_.B(_.J9,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var M;return(M=d())==null?void 0:M.fantasyScore}}))},"Ud");var w4o=_.dN(function(c){return _.B("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.B(_.T,{cond:function(){return c.data().players},
then:function(f){return _.B(_.u7,{data:f},{fantasyPlayerViewModel:hk_})}}))},"Vd");var yg3=_.dN(function(c){var f=_.C(_.ns(function(){var Z;return(Z=c.data().selectedTabIdentifierKey)!=null?Z:""})),d=f.next().value,q=f.next().value;
_.QJ(function(){var Z;(Z=c.setSelectedTabSignal)==null||Z.call(c,d)});
return _.B("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.B("div",{class:"ytTabbedViewModelTabGroup"},_.B(_.vJK,{shape:function(){var Z=c.data(),M=[],g={tabs:M};if(!Z.tabs)return g;Z=_.C(Z.tabs);for(var O=Z.next(),l={};!O.done;l={tabViewModel:void 0},O=Z.next())if(l.tabViewModel=_.b(O.value,jNF),l.tabViewModel){var m=O=void 0;M.push({aTagConfig:{onclick:function(H){return function(){var A;q((A=H.tabViewModel.tabIdentifier)!=null?A:"")}}(l)},
identifier:l.tabViewModel.tabIdentifier,selected:d()===l.tabViewModel.tabIdentifier,title:(m=(O=l.tabViewModel.title)==null?void 0:O.content)!=null?m:""})}return g}})),_.B(_.u7,{data:function(){var Z,M=_.C((Z=c.data().tabs)!=null?Z:[]);
for(Z=M.next();!Z.done;Z=M.next())if((Z=_.b(Z.value,jNF))&&Z.tabIdentifier===d())return Z.content}},{fantasyRosterViewModel:w4o}))},"Wd");_.g_(_.dN(function(c){var f=_.C(Vmr()),d=f.next().value,q=f.next().value;return _.B("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.B(_.J9,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return c.data().title}}),_.B(_.T,{cond:function(){return c.data().tabbedViewModel},
then:function(Z){return _.B(_.u7,{data:Z},{tabbedViewModel:function(M){return _.B(yg3,{data:M.data,setSelectedTabSignal:q})}})}}),_.B(_.T,{cond:function(){var Z,M=(Z=_.b(c.data().tabbedViewModel,qau))==null?void 0:Z.tabs;
Z=_.b(M==null?void 0:M[0],jNF);M=_.b(M==null?void 0:M[1],jNF);var g=Z==null?void 0:Z.tabIdentifier;if(d()===g){var O,l;if(!((O=_.b(Z==null?void 0:Z.content,pfK))==null?0:(l=O.players)==null?0:l.length))return c.data().noUserTeamPlayersText}else{var m,H;if(!((m=_.b(M==null?void 0:M.content,pfK))==null?0:(H=m.players)==null?0:H.length))return c.data().noOpponentTeamPlayersText}},
then:function(Z){return _.B(_.J9,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Z})}}))},"Xd"),"ytw-fantasy-matchup-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){return _.B("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.B(_.J9,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return c.data().title}}),_.B(_.T,{cond:function(){return c.data().matchupTeamPairs},
then:function(f){return _.B(_.bd,{each:f,keyBy:"INDEX"},function(d){return _.B("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.B(_.u7,{data:function(){return[d().firstTeam,d().secondTeam]}},{fantasyTeamViewModel:function(q){return _.B(VTK,{data:q.data,
compact:!0})}}))})}}))},"Yd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=function(){var Z,M,g;return(g=(Z=c.data().userLogoAccessibility)==null?void 0:(M=Z.accessibilityData)==null?void 0:M.label)!=null?g:""},d=function(){var Z,M,g;
return(g=(Z=c.data().opponentLogoAccessibility)==null?void 0:(M=Z.accessibilityData)==null?void 0:M.label)!=null?g:""},q=_.Ka(QqG,function(){return c.data().entityKey});
return _.B("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.B("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.B(_.T,{cond:function(){return c.data().userLogo},
then:function(Z){return _.B(_.jC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Z,alt:f})}}),_.B("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.B(_.J9,{text:function(){return c.data().title}})),_.B(_.T,{cond:function(){return c.data().opponentLogo},
then:function(Z){return _.B(_.jC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Z,alt:d})}})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.B("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.B(_.J9,{text:function(){var Z;
return(Z=q())==null?void 0:Z.userWinNumberLabel}})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.B("div",{class:_.FY("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.$Z({flex:function(){var Z,M;return(M=(Z=q())==null?void 0:Z.userWinNumber)!=null?M:50}})}),_.B("div",{class:_.FY("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.$Z({flex:function(){var Z,M;return(M=(Z=q())==null?void 0:Z.opponentWinNumber)!=null?M:50}})})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.B(_.J9,{text:function(){var Z;
return(Z=q())==null?void 0:Z.opponentWinNumberLabel}}))))},"Zd"),"fantasy-win-probability-view-model",{props:{data:_.oM}});var WVo={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},DrH=_.dN(function(c){return _.B(_.u7,{data:c.button},{buttonViewModel:function(f){return _.B(_.mN,{data:f.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"$d"),ekj=_.dN(function(c){return _.B("ytd-backstage-locked-post-view-model",{class:_.FY("ytdBackstageLockedPostViewModelHost",c.className)},_.B("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.B("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.B(_.u7,
{data:function(){return c.data().authorAvatar}},{decoratedAvatarViewModel:_.VV})),_.B("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.B("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.B(_.J9,{text:function(){return c.data().authorText}})),_.B("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.B(_.J9,{text:function(){return c.data().publishedTimeText}}),_.B(_.u7,{data:function(){return c.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(f){return _.B(HVr,
{data:f.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.B("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.B(_.J9,{text:function(){return c.data().contentText}})),_.B(_.n9,null,_.B(_.K9,{when:function(){return c.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.B("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.B(_.jC,{data:WVo,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.B(_.J9,{text:function(){return c.data().lockedText}}))}),_.B(_.K9,{when:function(){return c.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.B("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.B("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.B(_.jC,{data:WVo,
alt:""})),_.B(_.J9,{text:function(){return c.data().lockedText}}))})),_.B("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.B(DrH,{button:function(){return c.data().likeButton}}),_.B("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return c.data().voteCountA11y}},_.B(_.J9,{text:function(){return c.data().voteCount}})),_.B(DrH,{button:function(){return c.data().dislikeButton}}),_.B(DrH,{button:function(){return c.data().commentButton}}),_.B("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return c.data().commentCountA11y}},_.B(_.J9,{text:function(){return c.data().commentCount}}))))},"ae");
ekj.idomCompat=!0;_.g_(ekj,"ytd-backstage-locked-post-view-model",{props:{data:_.oM,className:_.oM}});_.w_("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var IP=function(){var c=_.z.apply(this,arguments)||this;c.darkerPanels=_.F("web_watch_darker_panels");c.commentsHidePanelButton=!1;c.isWatchGrid=!1;c.continuationShowButton=!1;c.isSearch=!1;c.isConstrainedList=!1;c.isWatch=!1;c.eligibleToSwitchToGrid=!1;c.useBigThumbs=!1;c.notSticky=!1;c.epRestyle=!1;c.isCarouselInFeed=!0;c.topSpacingZero=!1;c.continuationIsInitialLoad=!0;c.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");c.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");
c.mastheadHeight=0;c.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};c.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return c};
_.K(IP,_.z);_.r=IP.prototype;_.r.updateLockupContainerTypes=function(c){if(this.eligibleToSwitchToGrid){var f;(f=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||f.forEach(function(d){d.containerType=c})}};
_.r.getItemsPath=function(){return"data.contents"};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.r.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")}}};
_.r.created=function(){};
_.r.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.r.handleIntersect=function(c){this.notSticky=c[0].intersectionRatio===1};
_.r.attached=function(){var c=this;document.addEventListener("scroll",_.ia(this,this.updateHeaderState));var f;this.mastheadHeight=((f=document.querySelector("ytd-masthead"))==null?void 0:f.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(d){c.handleIntersect(d)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){c.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.r.detached=function(){document.removeEventListener("scroll",_.ia(this,this.updateHeaderState));var c;(c=this.intersectionObserver)==null||c.disconnect();var f;(f=this.resizeObserver)==null||f.disconnect()};
_.r.updated=function(c){c.has("data")&&this.updateHeaderState()};
_.r.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(TAO(!this.notSticky))};
_.r.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var c=_.r1(this.hostElement).querySelector("ytd-comments-header-renderer");c&&(c.hidePanelButton=this.commentsHidePanelButton)}};
_.r.onRetrieveLocation=function(c,f){this.containsComments()&&(this.firstCommentsLoaded=f.hasComments=!0)};
_.r.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.r.onLoadReloadContinuation=function(c,f){var d=this;c.stopPropagation();this.isReloading=!0;_.CZ(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(q){var Z=_.ql().resolve(_.Xw);q=f(q);Z.postData(q).then(function(M){d.onReloadContinuationData(M)})}})};
_.r.onReloadContinuationData=function(c){if(c=this.get("response.continuationContents.itemSectionContinuation",c)||this.get("response.contents.itemSectionRenderer",c)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",c)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",c))this.set("data.contents",c.contents||c.results),c.header&&this.set("data.header",c.header),this.set("data.continuations",
c.continuations||[]);this.isReloading=!1};
_.r.computeContentsClass=function(c){return c?"reloading":""};
_.r.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.r.computeSectionIdentifier=function(c){return c==null?void 0:c.sectionIdentifier};
_.r.computeFitContainer=function(c){return(c==null?void 0:c.sectionIdentifier)==="youchat-item-section"};
_.r.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.F("kevlar_disable_comments_auto_load")};
_.r.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.r.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.r.computeHasDestinationShelfRenderer=function(c){var f,d;return!!(c==null?0:(f=c.contents)==null?0:(d=f[0])==null?0:d.destinationShelfRenderer)};
_.r.computeHasSectionGroupViewModel=function(c){var f,d;return!!(c==null?0:(f=c.contents)==null?0:(d=f[0])==null?0:d.sectionGroupViewModel)};
_.r.computeHasQrCodeRenderer=function(c){var f,d;return!!(c==null?0:(f=c.contents)==null?0:(d=f[0])==null?0:d.qrCodeRenderer)};
_.r.computeStaticCommentsHeader=function(c){return c&&this.containsComments()};
_.r.computeEpRestyle=function(c){return _.F("web_ep_restyling")&&c&&this.containsComments()};
_.r.computeIsContinuationCommentSection=function(c){return(c==null?void 0:c.targetId)==="shorts-engagement-panel-comments-section"||(c==null?void 0:c.targetId)==="comments-section"||(c==null?void 0:c.targetId)==="engagement-panel-comments-section"};
_.r.computeSuppressPaddingDisclaimer=function(){var c,f,d,q;return!!((c=this.data)==null?0:(f=c.contents)==null?0:(d=f[0])==null?0:(q=d.productListHeaderRenderer)==null?0:q.suppressPaddingDisclaimer)};
_.r.computeHeaderStyle=function(c){switch(c==null?void 0:c.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.r.dataChanged=function(){this.firstCommentsLoaded=!1};
_.r.observeDataContentsLength=function(){var c,f;((c=this.data)==null?0:(f=c.contents)==null?0:f.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.r.onYtDismissibleItemDismissedChange=function(c){this._setItemDismissed(c.type==="yt-dismissible-item-dismissed")};
_.r.triggerContinuations=function(){for(var c=_.r1(this.hostElement).querySelector("#continuations").children,f=0;f<c.length;f++)c[f].trigger()};
_.r.triggerInitialContinuations=function(){for(var c=_.r1(this.hostElement).querySelector("#continuations").children,f=0;f<c.length;f++)c[f].triggerIfNotPreviouslyTriggered()};
_.r.handleYtItemSectionContinuation=function(c,f){var d;f&&((d=this.data)==null?void 0:d.sectionIdentifier)!==f||(this.set("data.continuations",[c]),this.triggerContinuations())};
_.r.handleYtItemSectionReplace=function(c,f){var d;f&&((d=this.data)==null?void 0:d.sectionIdentifier)!==f||(this.set("data.contents",c),this.set("data.continuations",[]))};
_.r.computeUseHeightHack=function(c){return c&&!_.F("kevlar_disable_height_hack")};
_.r.computeTopSpacingZero=function(c){return c};
_.r.continuationShowButtonChanged=function(){var c=_.r1(this.hostElement).querySelector("ytd-continuation-item-renderer");c&&(c.showButton=this.continuationShowButton)};
_.r.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("data-changed",this.data))};
_.ci.Object.defineProperties(IP.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 c,f,d;return!!((c=this.data)==null?0:(f=c.contents)==null?0:(d=f[0])==null?0:d.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q,Z,M,g;return!!((c=this.data)==null?0:(f=c.contents)==null?0:(d=f[0])==null?0:(q=d.shelfRenderer)==null?0:(Z=q.content)==null?0:(M=Z.gridRenderer)==null?0:(g=M.targetId)==null?0:g.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return!!((c=this.data)==null?0:(f=c.contents)==null?0:(d=f[0])==null?0:d.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return!!((c=this.data)==null?0:(f=c.contents)==null?0:(d=f[0])==null?0:d.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.CD("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(){}}});
IP.prototype.dataChangedForBinding=IP.prototype.dataChangedForBinding;IP.prototype.continuationShowButtonChanged=IP.prototype.continuationShowButtonChanged;IP.prototype.onYtDismissibleItemDismissedChange=IP.prototype.onYtDismissibleItemDismissedChange;IP.prototype.observeDataContentsLength=IP.prototype.observeDataContentsLength;IP.prototype.dataChanged=IP.prototype.dataChanged;IP.prototype.onServiceRequestCompleted=IP.prototype.onServiceRequestCompleted;IP.prototype.onLoadReloadContinuation=IP.prototype.onLoadReloadContinuation;
IP.prototype.onRetrieveLocation=IP.prototype.onRetrieveLocation;IP.prototype.commentsHidePanelButtonChanged=IP.prototype.commentsHidePanelButtonChanged;IP.prototype.dispatchChipBarIsSticky=IP.prototype.dispatchChipBarIsSticky;IP.prototype.updateLockupContainerTypes=IP.prototype.updateLockupContainerTypes;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],IP.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],IP.prototype,"ytLazyListBehavior",void 0);_.y([_.Q(_.RF.YtNextContinuationBehavior),_.D("design:type",Object)],IP.prototype,"ytNextContinuationBehavior",void 0);
_.y([_.Q(_.PX),_.D("design:type",Object)],IP.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],IP.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],IP.prototype,"ytdReduxBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IP.prototype,"darkerPanels",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Boolean)],IP.prototype,"engagementPanel",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"commentsHidePanelButton",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"isWatchGrid",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"continuationShowButton",void 0);_.y([_.L({computed:"computeIsContinuationCommentSection(data)"}),_.D("design:type",Boolean)],IP.prototype,"continuationIsCommentsSection",void 0);
_.y([_.L({value:!0}),_.D("design:type",Boolean)],IP.prototype,"autoFill",void 0);_.y([_.L(),_.D("design:type",Boolean)],IP.prototype,"continuationDisablePrescanVisibility",void 0);_.y([_.L(),_.D("design:type",Boolean)],IP.prototype,"isReloading",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"isSearch",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"isConstrainedList",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"isWatch",void 0);
_.y([_.L(),_.D("design:type",Object)],IP.prototype,"eligibleToSwitchToGrid",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"useBigThumbs",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IP.prototype,"notSticky",void 0);_.y([_.L({selector:_.eC}),_.D("design:type",Object)],IP.prototype,"isGridViewEnabled",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.D("design:type",Object)],IP.prototype,"epRestyle",void 0);_.y([_.S("isWatch"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],IP.prototype,"hideShortsShelfHeader",null);_.y([_.S("isSearch","isWatch"),_.D("design:type",String),_.D("design:paramtypes",[])],IP.prototype,"thumbnailWidth",null);
_.y([_.S("isSearch","containerWidth"),_.D("design:type",Object),_.D("design:paramtypes",[])],IP.prototype,"thumbnailTargetWidth",null);_.y([_.S("isSearch","isWatch"),_.D("design:type",String),_.D("design:paramtypes",[])],IP.prototype,"sizing",null);_.y([_.S("isWatch","isGridViewEnabled","useBigThumbs","data"),_.L({reflectToAttribute:!0}),_.D("design:type",Number),_.D("design:paramtypes",[])],IP.prototype,"lockupContainerType",null);
_.y([_.m5("lockupContainerType","data"),_.D("design:type",Function),_.D("design:paramtypes",[Number]),_.D("design:returntype")],IP.prototype,"updateLockupContainerTypes",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],IP.prototype,"pageSubtype",void 0);_.y([_.L({computed:"computeContainerWidth()"}),_.D("design:type",Number)],IP.prototype,"containerWidth",void 0);_.y([_.L(),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],IP.prototype,"isPlaylist",null);
_.y([_.L(),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],IP.prototype,"isClipList",null);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"isCarouselInFeed",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],IP.prototype,"isPlaylistVideoContainer",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],IP.prototype,"isSearchFrictionPage",null);
_.y([_.L({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.D("design:type",Boolean)],IP.prototype,"useHeightHack",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.D("design:type",Object)],IP.prototype,"topSpacingZero",void 0);_.y([_.L({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.D("design:type",Boolean)],IP.prototype,"showButton",void 0);
_.y([_.L(),_.D("design:type",Boolean)],IP.prototype,"firstCommentsLoaded",void 0);_.y([_.L(),_.D("design:type",Object)],IP.prototype,"continuationIsInitialLoad",void 0);_.y([_.L({reflectToAttribute:!0,readOnly:!0}),_.D("design:type",Boolean)],IP.prototype,"itemDismissed",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.D("design:type",String)],IP.prototype,"sectionIdentifier",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.D("design:type",String)],IP.prototype,"fitContainer",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.D("design:type",Boolean)],IP.prototype,"hasDestinationShelfRenderer",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.D("design:type",Boolean)],IP.prototype,"staticCommentsHeader",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IP.prototype,"enableSqueezebackPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IP.prototype,"enableAnchoredPanel",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.D("design:type",Boolean)],IP.prototype,"hasSectionGroupViewModel",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.D("design:type",Boolean)],IP.prototype,"hasQrCodeRenderer",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.D("design:type",Boolean)],IP.prototype,"suppressDisclaimerSeparator",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.D("design:type",String)],IP.prototype,"headerStyle",void 0);
_.y([_.S("isSearch"),_.D("design:type",Object),_.D("design:paramtypes",[])],IP.prototype,"lockupExperiments",null);_.y([_.S("isSearch"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],IP.prototype,"typographyBump",null);_.y([_.AY("#header"),_.D("design:type",HTMLElement)],IP.prototype,"header",void 0);_.y([_.m5("notSticky"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IP.prototype,"dispatchChipBarIsSticky",null);
_.y([_.m5("commentsHidePanelButton"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IP.prototype,"commentsHidePanelButtonChanged",null);_.y([_.Ta("yt-retrieve-location"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],IP.prototype,"onRetrieveLocation",null);
_.y([_.Ta("yt-load-reload-continuation"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Function]),_.D("design:returntype")],IP.prototype,"onLoadReloadContinuation",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IP.prototype,"onServiceRequestCompleted",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IP.prototype,"dataChanged",null);
_.y([_.ba("data.contents.length"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IP.prototype,"observeDataContentsLength",null);_.y([_.Ta("yt-dismissible-item-dismissed"),_.Ta("yt-dismissible-item-undismissed"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],IP.prototype,"onYtDismissibleItemDismissedChange",null);
_.y([_.m5("continuationShowButton"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IP.prototype,"continuationShowButtonChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IP.prototype,"dataChangedForBinding",null);_.y([_.v({is:"ytd-item-section-renderer",disableElementRegistration:!0})],IP);
_.h(IP,"ytd-item-section-renderer",function(){if(gLH!==void 0)return gLH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return gLH=c},{mode:1});var Nsv;var vMh=_.pC(_.HO("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var IIv={},u_r=(IIv[0]={title:_.jU(_.HO("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jU(_.HO("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:fC("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},IIv[1]={title:_.jU(_.HO("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:fC("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},IIv);_.w_("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Pn=function(){var c=_.z.apply(this,arguments)||this;c.allVideosCount=0;c.allPlaylistCount=0;c.isOnline=!1;c.shouldRenderDownloadsBanner=!1;c.shouldRenderDownloadsBannerUpsell=!1;c.hasOptedIntoSmartDownloads=!1;c.areAllSmartDownloadsDeleted=!1;c.smartDownloadsCompleted=!1;return c};
_.K(Pn,_.z);Pn.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Pn.prototype.attached=function(){this.downloadsToRenderChanged()};
Pn.prototype.detached=function(){this.set("renderableData",{})};
Pn.prototype.downloadsToRenderChanged=function(){var c=_.Gh().getState().entities,f=_.LC(c),d=_.F("kevlar_playlist_dl_page_killswitch")?u7r(c):_.zh(c),q=_.S8N(c),Z=_.aKM(c),M=_.KC(f);c=_.JE(c);this.set("renderableData",wzz(d,f,q,Z,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,M,c))};
Pn.prototype.downloadsToRenderChanged=Pn.prototype.downloadsToRenderChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],Pn.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Pn.prototype,"renderableData",void 0);_.y([_.L({selector:_.p_z}),_.D("design:type",Object)],Pn.prototype,"allVideosCount",void 0);_.y([_.L({selector:$nY}),_.D("design:type",Object)],Pn.prototype,"allPlaylistCount",void 0);_.y([_.L({selector:_.vb}),_.D("design:type",Object)],Pn.prototype,"isOnline",void 0);_.y([_.L({selector:_.jMk}),_.D("design:type",Object)],Pn.prototype,"shouldRenderDownloadsBanner",void 0);
_.y([_.L({selector:_.r$e}),_.D("design:type",Object)],Pn.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.y([_.L({selector:_.q2k}),_.D("design:type",Object)],Pn.prototype,"hasOptedIntoSmartDownloads",void 0);_.y([_.L({selector:_.ZtN}),_.D("design:type",Object)],Pn.prototype,"areAllSmartDownloadsDeleted",void 0);_.y([_.L({selector:M3e}),_.D("design:type",Object)],Pn.prototype,"smartDownloadsCompleted",void 0);
_.y([_.ba("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Pn.prototype,"downloadsToRenderChanged",null);_.y([_.v({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Pn);
_.h(Pn,"ytd-offline-item-section-renderer",function(){if(Nsv!==void 0)return Nsv;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Nsv=c},
{mode:1});var PA_;var RkH;var RP=function(){return _.z.apply(this,arguments)||this};
_.K(RP,_.z);
RP.prototype.onDataChanged=function(){if(this.JSC$16546_lastData){var c=this.getFilterClass(this.JSC$16546_lastData.status);c&&this.hostElement.classList.remove(c)}var f;(c=this.getFilterClass((f=this.data)==null?void 0:f.status))&&this.hostElement.classList.add(c);c==="selected"?_.r1(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.r1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");c==="disabled"?_.r1(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.r1(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16546_lastData=this.data};
RP.prototype.getFilterClass=function(c){switch(c){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
RP.prototype.onDataChanged=RP.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],RP.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],RP.prototype,"onDataChanged",null);_.y([_.v({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],RP);
_.h(RP,"ytd-search-filter-renderer",function(){if(RkH!==void 0)return RkH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return RkH=c},{mode:_.lP("kevlar_poly_si_batch_j075")?1:2});var Uy=function(){return _.z.apply(this,arguments)||this};
_.K(Uy,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Uy.prototype,"data",void 0);_.y([_.v({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Uy);
_.h(Uy,"ytd-search-filter-group-renderer",function(){if(PA_!==void 0)return PA_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return PA_=c},{mode:_.lP("kevlar_poly_si_batch_j075")?1:2});var Ur3;var pA=function(){return _.z.apply(this,arguments)||this};
_.K(pA,_.z);pA.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Ty());this.isCollapsed=!this.isCollapsed};
pA.prototype.navigateToAboutTheseResultsPage=function(){var c=ah("https://www.youtube.com/howyoutubeworks/product-features/search/");c?_.PU(window,c,"_blank"):_.yJ(Error("Qh"))};
pA.prototype.dataChanged=function(){this.isCollapsed=!0};
pA.prototype.computeShowBottomBorder=function(){var c,f,d;return!!((c=this.data)==null?0:(f=c.button)==null?0:f.toggleButtonRenderer)||!((d=this.data)==null||!d.aboutTheseResultsButton)};
pA.prototype.dataChanged=pA.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.D("design:type",Boolean)],pA.prototype,"showBottomBorder",void 0);_.y([_.L(),_.D("design:type",Boolean)],pA.prototype,"renderCollapsibleMenu",void 0);
_.y([_.L(),_.D("design:type",Boolean)],pA.prototype,"isCollapsed",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pA.prototype,"dataChanged",null);_.y([_.v({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],pA);
_.h(pA,"ytd-search-sub-menu-renderer",function(){if(Ur3!==void 0)return Ur3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Ur3=c},{mode:1});var p43;var xrj=new _.jk("SECTION_LIST_RENDERER_TOKEN");var oJu;var xF=function(){return _.z.apply(this,arguments)||this};
_.K(xF,_.z);xF.prototype.computeStyle=function(c){return c?c.toLowerCase().replace(/_/g,"-"):""};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xF.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.D("design:type",String)],xF.prototype,"headerStyle",void 0);_.y([_.v({is:"ytd-text-header-renderer",disableElementRegistration:!0})],xF);
_.h(xF,"ytd-text-header-renderer",function(){if(oJu!==void 0)return oJu;var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return oJu=c},{mode:1});var GTT;var oP=function(){return _.z.apply(this,arguments)||this};
_.K(oP,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],oP.prototype,"data",void 0);_.y([_.v({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],oP);
_.h(oP,"ytd-minor-moment-header-renderer",function(){if(GTT!==void 0)return GTT;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return GTT=c},{mode:1});var cFH;var Gp=function(){return _.z.apply(this,arguments)||this};
_.K(Gp,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Gp.prototype,"data",void 0);_.y([_.v({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Gp);
_.h(Gp,"ytd-minor-moment-setting-alert-renderer",function(){if(cFH!==void 0)return cFH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return cFH=c},{mode:1});var f1T;var dwj;var cT=function(){var c=_.z.apply(this,arguments)||this;c.booleanSettingById=!1;c.smartDownloadsEnabledVE=_.m_(128287);c.smartDownloadsDisabledVE=_.m_(128286);c.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return c};
_.K(cT,_.z);_.r=cT.prototype;_.r.attachSmartDownloadsSettingVes=function(){var c;this.activeVeForLogging||((c=this.data)==null?void 0:c.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.B_(_.bP(),this.smartDownloadsEnabledVE),_.B_(_.bP(),this.smartDownloadsDisabledVE))};
_.r.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.CZ(this.hostElement,"yt-settings-switch-ready")};
_.r.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.r.onSwitchChange=function(c){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(c=_.oV(c).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.F("kevlar_settings_switch_resolve_command_killswitch")?_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(c)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.r.handleUpdateSettingsSwitch=function(c){(c=_.b(c,T3y))&&this.data&&this.data.id===c.id&&this.set("data.enabled",!!c.enabled)};
_.r.onToggleSettingsSwitch=function(c,f){this.data&&this.data.id===c&&this.set("data.enabled",f!=null?f:!this.data.enabled)};
_.r.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.jY.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.r.maybeLogSmartDownloadsSettingVisibility=function(){var c=_.X2(),f;c&&((f=this.data)==null?void 0:f.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Ic(c,[this.smartDownloadsEnabledVE]),_.PO(c,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Ic(c,[this.smartDownloadsDisabledVE]),_.PO(c,[this.smartDownloadsEnabledVE])))};
_.r.maybeLogSmartDownloadsSettingClick=function(){var c;((c=this.data)==null?void 0:c.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.TG(_.bP(),this.activeVeForLogging)};
_.r.updateDataEnabledFromBinding=function(c){this.set("data.enabled",c.detail.value)};
_.ci.Object.defineProperties(cT.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var c=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!c&&(c=this.ytRendererBehavior.getSimpleString(this.data.title));return c}}});
cT.prototype.dataChanged=cT.prototype.dataChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],cT.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],cT.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],cT.prototype,"ytComponentBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],cT.prototype,"data",void 0);_.y([_.L({selector:function(c,f){if(Object.keys(c==null?void 0:c.entities).length)switch(f){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return v2k(c.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.D("design:type",Object)],cT.prototype,"booleanSettingById",void 0);_.y([_.L(),_.D("design:type",aS)],cT.prototype,"activeVeForLogging",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],cT.prototype,"toggleAriaLabel",null);_.y([_.ba("data"),_.ba("booleanSettingById"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],cT.prototype,"dataChanged",null);
_.y([_.v({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],cT);
_.h(cT,"ytd-settings-switch-renderer",function(){if(dwj!==void 0)return dwj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return dwj=c},{mode:1});var fM=function(){return _.z.apply(this,arguments)||this};
_.K(fM,_.z);fM.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}}}}};
_.ci.Object.defineProperties(fM.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var c=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(c+=" remove-left-margin");this.data.extraBottomSpace&&(c+=" extra-bottom-space");return c}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fM.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],fM.prototype,"contentsClassName",null);_.y([_.v({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],fM);
_.h(fM,"ytd-minor-moment-setting-section-renderer",function(){if(f1T!==void 0)return f1T;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return f1T=c},{mode:1});var j3o;var dH=function(){return _.z.apply(this,arguments)||this};
_.K(dH,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],dH.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dH.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],dH);
_.h(dH,"ytd-empty-product-details-renderer",function(){if(j3o!==void 0)return j3o;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return j3o=c},{mode:1});var q0v;var ZNu;var jx=function(){var c=_.z.apply(this,arguments)||this;c.expanded=!0;return c};
_.K(jx,_.z);jx.prototype.getBadgeRowClass=function(c,f,d){for(var q=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),Z=q.next();!Z.done;Z=q.next())Z.value.onShow();c=c.selected;return d?c!==-1?c===f?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(c!==void 0?c:0)===f?"badge-line":"badge-hidden"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],jx.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],jx.prototype,"expanded",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],jx);
_.h(jx,"ytd-sponsorships-loyalty-badges-renderer",function(){if(ZNu!==void 0)return ZNu;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ZNu=c},{mode:1});var M0O;var qX=function(){var c=_.z.apply(this,arguments)||this;c.expanded=!0;return c};
_.K(qX,_.z);qX.prototype.getContainerClasses=function(c,f){c=c?"expanded":"collapsed";f&&(c+=" item");return c};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qX.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],qX.prototype,"expanded",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],qX);
_.h(qX,"ytd-sponsorships-perk-renderer",function(){if(M0O!==void 0)return M0O;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return M0O=c},{mode:1});var rFj;var ZF=function(){var c=_.z.apply(this,arguments)||this;c.expanded=!0;return c};
_.K(ZF,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ZF.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],ZF.prototype,"expanded",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],ZF);
_.h(ZF,"ytd-sponsorships-perks-renderer",function(){if(rFj!==void 0)return rFj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return rFj=c},{mode:1});var MX=function(){var c=_.z.apply(this,arguments)||this;c.isCollapsed=!1;return c};
_.K(MX,_.z);MX.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
MX.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
MX.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var c;this.expandCollapseButton=_.b((c=this.data)==null?void 0:c.expandButton,_.WQ)}else{var f;this.expandCollapseButton=_.b((f=this.data)==null?void 0:f.collapseButton,_.WQ)}};
MX.prototype.updateExpandCollapseButton=MX.prototype.updateExpandCollapseButton;MX.prototype.onDataChanged=MX.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],MX.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MX.prototype,"isCollapsed",void 0);_.y([_.L(),_.D("design:type",Object)],MX.prototype,"expandCollapseButton",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MX.prototype,"onDataChanged",null);_.y([_.ba("data","isCollapsed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MX.prototype,"updateExpandCollapseButton",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],MX);
_.h(MX,"ytd-sponsorships-expandable-perks-renderer",function(){if(q0v!==void 0)return q0v;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return q0v=c},{mode:1});var Cbj;var rH=function(){return _.z.apply(this,arguments)||this};
_.K(rH,_.z);rH.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],rH.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rH.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],rH);
_.h(rH,"ytd-sponsorships-actionable-message-renderer",function(){if(Cbj!==void 0)return Cbj;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Cbj=c},{mode:1});var grK;var CM=function(){return _.z.apply(this,arguments)||this};
_.K(CM,_.z);_.r=CM.prototype;_.r.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.r.getExpansionIcon=function(c){return c?"COLLAPSE":"EXPAND"};
_.r.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.r.computeMessageContainerStyle=function(c){var f=c.expandableItems?" style-clickable":"";return c.messageContainerStyle?c.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+f:"style-unspecified"+f};
_.r.isSinglePerk=function(c){return!!c.messageContainerStyle&&(c.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||c.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.r.onExpandedChanged=function(){var c=this;if(this.expanded)for(var f=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),d=f.next();!d.done;d=f.next())d.value.onShow();_.ol(this,function(){_.CZ(c.hostElement,"yt-refit")})};
_.r.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
CM.prototype.onDataChanged=CM.prototype.onDataChanged;CM.prototype.onExpandedChanged=CM.prototype.onExpandedChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],CM.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],CM.prototype,"expanded",void 0);
_.y([_.m5("expanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CM.prototype,"onExpandedChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CM.prototype,"onDataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],CM);
_.h(CM,"ytd-sponsorships-expandable-message-renderer",function(){if(grK!==void 0)return grK;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return grK=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var kbj;var gH=function(){return _.z.apply(this,arguments)||this};
_.K(gH,_.z);gH.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"}}}}};
gH.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.b(this.data.endButton,_.WQ).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
gH.prototype.onDataChanged=gH.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gH.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gH.prototype,"onDataChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],gH);
_.h(gH,"ytd-sponsorships-heading-renderer",function(){if(kbj!==void 0)return kbj;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return kbj=c},{mode:1});var ONu;var ka=function(){return _.z.apply(this,arguments)||this};
_.K(ka,_.z);_.y([_.L(),_.D("design:type",Object)],ka.prototype,"data",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],ka);
_.h(ka,"ytd-sponsorships-links-renderer",function(){if(ONu!==void 0)return ONu;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ONu=c},{mode:1});var l1_;var OF=function(){return _.z.apply(this,arguments)||this};
_.K(OF,_.z);_.r=OF.prototype;_.r.onDataChanged=function(){if(this.data&&this.data.expandableItems){var c;(c=_.r1(this.hostElement).querySelector("tp-yt-paper-button"))==null||c.setAttribute("role","button")}else{var f;(f=_.r1(this.hostElement).querySelector("tp-yt-paper-button"))==null||f.removeAttribute("role")}};
_.r.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.r.getExpansionIcon=function(c){return c?"COLLAPSE":"EXPAND"};
_.r.getTileClasses=function(c){return c?"tile expandable-tile":"tile"};
_.r.getButtonDisabled=function(c){return c?void 0:""};
OF.prototype.onDataChanged=OF.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],OF.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],OF.prototype,"expanded",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],OF.prototype,"onDataChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],OF);
_.h(OF,"ytd-sponsorships-list-tile-renderer",function(){if(l1_!==void 0)return l1_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return l1_=c},{mode:1});var s3j;var Bju;var l3=function(){return _.z.apply(this,arguments)||this};
_.K(l3,_.z);l3.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],l3.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],l3);
_.h(l3,"ytd-sponsorships-promotion-renderer",function(){if(Bju!==void 0)return Bju;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Bju=c},{mode:1});var iNr;var sF=function(){return _.z.apply(this,arguments)||this};
_.K(sF,_.z);sF.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],sF.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],sF);
_.h(sF,"ytd-sponsorships-purchase-option-renderer",function(){if(iNr!==void 0)return iNr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return iNr=c},{mode:1});var TjK;var mwo;var HNH=function(){return _.z.apply(this,arguments)||this};
_.K(HNH,_.z);_.y([_.L(),_.D("design:type",Object)],HNH.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],HNH);
_.h(HNH,"ytd-ypc-offer-promo-renderer",function(){if(mwo!==void 0)return mwo;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return mwo=c},{mode:1});var BT=function(){return _.z.apply(this,arguments)||this};
_.K(BT,_.z);_.r=BT.prototype;
_.r.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"}}}}};
_.r.expansionCTA=function(c,f){return c&&(f?c.collapseCallToAction:c.expansionCallToAction)};
_.r.getExpansionIcon=function(c){return c?"COLLAPSE":"EXPAND"};
_.r.expansionCallToActionTap=function(){var c=this;this.expanded=!this.expanded;_.ol(this,function(){_.CZ(c.hostElement,"yt-refit")})};
_.r.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var c,f=(c=this.data)==null?void 0:c.onVisible;f&&this.ytComponentBehavior.resolveCommand(f)};
_.r.computeDisplayTitle=function(c){return!(!c||this.titledisplaystatus!=="show")};
_.r.computeDisplaySeparator=function(){return!1};
_.r.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
BT.prototype.onDataChanged=BT.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],BT.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],BT.prototype,"data",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],BT.prototype,"expanded",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],BT.prototype,"purchaseButtonClicked",void 0);_.y([_.L({reflectToAttribute:!0,value:"show"}),_.D("design:type",String)],BT.prototype,"titledisplaystatus",void 0);_.y([_.L({computed:"computeDisplayTitle(data.title)"}),_.D("design:type",Boolean)],BT.prototype,"displayTitle",void 0);
_.y([_.L({computed:"computeDisplaySeparator(data)"}),_.D("design:type",Boolean)],BT.prototype,"displaySeparator",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],BT.prototype,"onDataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],BT);
_.h(BT,"ytd-sponsorships-tier-renderer",function(){if(TjK!==void 0)return TjK;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return TjK=c},{mode:2});var i3=function(){return _.z.apply(this,arguments)||this};
_.K(i3,_.z);
i3.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"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],i3.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],i3);
_.h(i3,"ytd-sponsorships-management-renderer",function(){if(s3j!==void 0)return s3j;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return s3j=c},{mode:1});var AFH;var Tw=function(){return _.z.apply(this,arguments)||this};
_.K(Tw,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Tw.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Tw);
_.h(Tw,"ytd-open-in-native-app-view-model",function(){if(AFH!==void 0)return AFH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return AFH=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var Y0u;var FkF;var t0T=_.pp(["top-"]),bNu=_.pp(["bottom-"]),Kk3=_.pp(["left-"]),Er3=_.pp(["right-"]),nrK={},$wF=function(c,f,d){c.removeAttribute("top-"+d);c.removeAttribute("bottom-"+d);c.removeAttribute("left-"+d);c.removeAttribute("right-"+d);f&&(f.top&&_.ck([_.j5(t0T)],c,"top-"+d,f.top),f.bottom&&_.ck([_.j5(bNu)],c,"bottom-"+d,f.bottom),f.left&&_.ck([_.j5(Kk3)],c,"left-"+d,f.left),f.right&&_.ck([_.j5(Er3)],c,"right-"+d,f.right))};
nrK.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(c){var f,d=_.r1((f=this.hostElement)!=null?f:this),q;f=this.cardItemBoxBehaviorMarginTargetId&&d?d.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(q=this.hostElement)!=null?q:this;$wF(f,c,"margin")},
cardItemContainerPaddingChanged_:function(c){var f,d=_.r1((f=this.hostElement)!=null?f:this),q;f=this.cardItemBoxBehaviorPaddingTargetId&&d?d.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(q=this.hostElement)!=null?q:this;$wF(f,c,"padding")}}];var mz={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 Q3O;var S03;var HT=function(){return _.z.apply(this,arguments)||this};
_.K(HT,_.z);HT.prototype.textColorChanged_=function(){this.hostElement.style.color=mz[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
HT.prototype.textColorChanged_=HT.prototype.textColorChanged_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(nrK.YtCardItemBoxBehavior),_.D("design:type",Object)],HT.prototype,"ytCardItemBoxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],HT.prototype,"data",void 0);_.y([_.m5("data.textColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],HT.prototype,"textColorChanged_",null);
_.y([_.vj({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],HT);
_.h(HT,"yt-card-item-text-renderer",function(){if(S03===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Q3O===void 0&&(Q3O=document.createElement("template"));var q=Q3O;d.call(f,q.content.cloneNode(!0),c.content.firstChild);S03=c}c=S03;return c},{mode:2});var LkK;var zou;var AZ=function(){return _.z.apply(this,arguments)||this};
_.K(AZ,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],AZ.prototype,"data",void 0);_.y([_.vj({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],AZ);
_.h(AZ,"yt-card-item-badge-renderer",function(){if(zou===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;LkK===void 0&&(LkK=document.createElement("template"));var q=LkK;d.call(f,q.content.cloneNode(!0),c.content.firstChild);zou=c}c=zou;return c},{mode:2});var JFH;var a1u;var Ya=function(){return _.z.apply(this,arguments)||this};
_.K(Ya,_.z);Ya.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ya.prototype,"data",void 0);_.y([_.vj({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Ya);
_.h(Ya,"yt-card-item-text-collection-renderer",function(){if(a1u===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;JFH===void 0&&(JFH=document.createElement("template"));var q=JFH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);a1u=c}c=a1u;return c},{mode:2});var V0u;var X0j;var Fx=function(){return _.z.apply(this,arguments)||this};
_.K(Fx,_.z);Fx.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]]"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Fx.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Number)],Fx.prototype,"iconSize",void 0);_.y([_.vj({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Fx);
_.h(Fx,"yt-card-item-text-with-button-renderer",function(){if(X0j===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;V0u===void 0&&(V0u=document.createElement("template"));var q=V0u;d.call(f,q.content.cloneNode(!0),c.content.firstChild);X0j=c}c=X0j;return c},{mode:2});var tZ=function(){return _.z.apply(this,arguments)||this};
_.K(tZ,_.z);tZ.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],tZ.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tZ.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],tZ);
_.h(tZ,"ytd-commerce-cart-summary-line-item-renderer",function(){if(FkF!==void 0)return FkF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return FkF=c},{mode:1});_.w_("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var b3=function(){var c=_.z.apply(this,arguments)||this;c.hidden=!1;return c};
_.K(b3,_.z);_.r=b3.prototype;_.r.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"}}}}};
_.r.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.r.updateSummary=function(){var c=this.commerceCartCheckoutButtonEntity,f;if(((f=this.data)==null?0:f.cartButton)&&c.checkoutSummaryText){var d,q=V0((d=this.data)==null?void 0:d.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+q+".cardItemTextRenderer.text",Xd(c.checkoutSummaryText));if(c.checkoutDetailText){var Z;d=V0((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",Xd(c.checkoutDetailText))}if(c.checkoutAdditionalMetadataText){var M;
Z=V0((M=this.data)==null?void 0:M.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",Xd(c.checkoutAdditionalMetadataText))}}else c.estimatedTotalPrice&&(M=V0((q=this.data)==null?void 0:q.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",Xd(c.estimatedTotalPrice)))};
_.r.updateIsHidden=function(){var c,f=(c=this.commerceCartCheckoutButtonEntity)==null?void 0:c.isHidden;f!==void 0&&(this.hidden=f)};
_.r.updateCheckoutButton=function(){var c,f=(c=this.commerceCartCheckoutButtonEntity)==null?void 0:c.isDisabled;f!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",f);var d;c=(d=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:d.innertubeCommand;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",c);var q;d=(q=this.commerceCartCheckoutButtonEntity)==null?void 0:q.checkoutButtonText;d!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:d})};
b3.prototype.entityChanged=b3.prototype.entityChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],b3.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],b3.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],b3.prototype,"fullWidth",void 0);_.y([_.L(),_.D("design:type",Object)],b3.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],b3.prototype,"compact",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b3.prototype,"hidden",void 0);
_.y([_.L({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:eCM}),_.D("design:type",Object)],b3.prototype,"commerceCartCheckoutButtonEntity",void 0);_.y([_.m5("commerceCartCheckoutButtonEntity","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],b3.prototype,"entityChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],b3);
_.h(b3,"ytd-commerce-cart-checkout-button-renderer",function(){if(Y0u!==void 0)return Y0u;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Y0u=c},{mode:2});var uF_;_.vrT={};
_.vrT.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",_.ia(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.ia(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(c){!this.tappableItemBehaviorTapEnabled||c.keyCode!==13&&c.keyCode!==32||c.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var c=this.data.onTap;c.ypcGetCartEndpoint?(_.OX(this.hostElement,[c]),this.tappableItemBehaviorTapEnabled=!1):c.ypcOffersEndpoint?_.OX(this.hostElement,[c]):_.ll(this.hostElement,[c],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(c){this.tappableItemBehaviorTapEnabled=!!c},
tappableItemBehaviorOnTapEnabledChanged_:function(){var c=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(c.setAttribute("tabIndex",0),c.setAttribute("role","button")):(c.removeAttribute("tabIndex"),c.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(c){c.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var hov;var w0v;var KM=function(){return _.z.apply(this,arguments)||this};
_.K(KM,_.z);KM.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.yy("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.yy("sharingToggleButtonAndDefaultButton")}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],KM.prototype,"data",void 0);_.y([_.vj({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],KM);
_.h(KM,"yt-card-item-actions-renderer",function(){if(w0v===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;hov===void 0&&(hov=document.createElement("template"));var q=hov;d.call(f,q.content.cloneNode(!0),c.content.firstChild);w0v=c}c=w0v;return c},{mode:2});var yFH;var Wkj;var Dwu;var eoO;var Njj;var I13;var EF=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return c};
_.K(EF,_.z);EF.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
EF.prototype.handleDarkModeToggledAction_=function(c){this.isDarkTheme_=c};
EF.prototype.computeThemeImage_=function(c,f){if(!c||!c.imageLight)return!1;this.isCircular_=c.isCircular;c.imageWidth&&(this.hostElement.style.width=c.imageWidth+"px");c.imageHeight&&(this.hostElement.style.height=c.imageHeight+"px");c.borderWidth&&(this.image.style.borderWidth=c.borderWidth+"px",this.image.style.borderStyle="solid");c.borderColor&&(this.image.style.borderColor=_.WS(c.borderColor));return f&&c.imageDark?c.imageDark:c.imageLight};
EF.prototype.computeThemeIcon_=function(c){var f,d;if(!(c==null?0:(f=c.themedIcon)==null?0:(d=f.icon)==null?0:d.iconType))return!1;this.icon.style.color=mz[c.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(c.imageWidth||18)+"px";this.icon.style.height=(c.imageHeight||18)+"px";return _.Tu(c.themedIcon.icon.iconType)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(nrK.YtCardItemBoxBehavior),_.D("design:type",Object)],EF.prototype,"ytCardItemBoxBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],EF.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],EF.prototype,"data",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],EF.prototype,"fit",void 0);_.y([_.L(),_.D("design:type",Boolean)],EF.prototype,"isDarkTheme_",void 0);_.y([_.L({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.D("design:type",Object)],EF.prototype,"themeImage_",void 0);_.y([_.L({computed:"computeThemeIcon_(data)"}),_.D("design:type",Object)],EF.prototype,"themeIcon_",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Object)],EF.prototype,"isCircular_",void 0);
_.y([_.AY("#image"),_.D("design:type",Object)],EF.prototype,"image",void 0);_.y([_.AY("#icon"),_.D("design:type",Object)],EF.prototype,"icon",void 0);_.y([_.vj({is:"yt-themed-image-renderer",disableElementRegistration:!0})],EF);
_.h(EF,"yt-themed-image-renderer",function(){if(I13===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Njj===void 0&&(Njj=document.createElement("template"));var q=Njj;d.call(f,q.content.cloneNode(!0),c.content.firstChild);I13=c}c=I13;return c},{mode:2});var nM=function(){return _.z.apply(this,arguments)||this};
_.K(nM,_.z);nM.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"}}}}};
nM.prototype.computeImagePlacement_=function(c){return c||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nM.prototype,"data",void 0);_.y([_.L({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.D("design:type",String)],nM.prototype,"imagePlacement",void 0);
_.y([_.vj({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],nM);
_.h(nM,"yt-card-item-text-with-image-renderer",function(){if(eoO===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Dwu===void 0&&(Dwu=document.createElement("template"));var q=Dwu;d.call(f,q.content.cloneNode(!0),c.content.firstChild);eoO=c}c=eoO;return c},{mode:2});var $a=function(){return _.z.apply(this,arguments)||this};
_.K($a,_.z);$a.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"}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$a.prototype,"data",void 0);_.y([_.vj({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],$a);
_.h($a,"yt-card-item-error-renderer",function(){if(Wkj===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;yFH===void 0&&(yFH=document.createElement("template"));var q=yFH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Wkj=c}c=Wkj;return c},{mode:2});var Pbu;var RoT;_.w_("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Q8=function(){return _.z.apply(this,arguments)||this};
_.K(Q8,_.z);_.r=Q8.prototype;
_.r.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"}}}}};
_.r.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.r.backgroundColorChanged_=function(){var c,f=(c=this.data)==null?void 0:c.backgroundColor;c=mz[f||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.r1(this.hostElement).querySelector("#main-content").style.backgroundColor=c};
_.r.headerPromoBackgroundColorChanged_=function(){var c,f=(c=this.data)==null?void 0:c.headerPromoBackgroundColor;c=mz[f||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.r1(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=c};
_.r.errorRendererVisibilityChanged_=function(){var c=this.isExpanded_,f;this.isErrorRendererVisible_=!((f=this.data)==null||!f.errorRenderer)&&!c};
_.r.onYtToggleButton_=function(c,f){this.isExpanded_=f.toggled};
Q8.prototype.onYtToggleButton_=Q8.prototype.onYtToggleButton_;Q8.prototype.errorRendererVisibilityChanged_=Q8.prototype.errorRendererVisibilityChanged_;Q8.prototype.headerPromoBackgroundColorChanged_=Q8.prototype.headerPromoBackgroundColorChanged_;Q8.prototype.backgroundColorChanged_=Q8.prototype.backgroundColorChanged_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(nrK.YtCardItemBoxBehavior),_.D("design:type",Object)],Q8.prototype,"ytCardItemBoxBehavior",void 0);_.y([_.Q(_.vrT.YtTappableItemBehavior),_.D("design:type",Object)],Q8.prototype,"ytTappableItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Q8.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Q8.prototype,"isExpanded_",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],Q8.prototype,"isErrorRendererVisible_",void 0);_.y([_.m5("data.backgroundColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Q8.prototype,"backgroundColorChanged_",null);_.y([_.m5("data.headerPromoBackgroundColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Q8.prototype,"headerPromoBackgroundColorChanged_",null);
_.y([_.m5("data.errorRenderer","isExpanded_"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Q8.prototype,"errorRendererVisibilityChanged_",null);_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[Event,Object]),_.D("design:returntype")],Q8.prototype,"onYtToggleButton_",null);_.y([_.vj({is:"yt-card-item-renderer",disableElementRegistration:!0})],Q8);
_.h(Q8,"yt-card-item-renderer",function(){if(RoT===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Pbu===void 0&&(Pbu=document.createElement("template"));var q=Pbu;d.call(f,q.content.cloneNode(!0),c.content.firstChild);RoT=c}c=RoT;return c},{mode:2});_.w_("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Sx=function(){var c=_.z.apply(this,arguments)||this;c.hidden=!1;return c};
_.K(Sx,_.z);_.r=Sx.prototype;_.r.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.r.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.r.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var c,f=(c=this.commerceCartHeaderEntity)==null?void 0:c.isHidden;f!==void 0&&(this.hidden=f)}};
_.r.updateTitle=function(){var c=this.commerceCartHeaderEntity.isDisabled,f,d,q=(d=_.b((f=this.data)==null?void 0:f.item,zxT))==null?void 0:d.headingRenderer;q&&(f=V0(q,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+f+".0.cardItemTextRenderer.textColor",c?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.r.updateSummaryText=function(){var c=this.commerceCartHeaderEntity;if(this.compact){var f,d,q=(d=_.b((f=this.data)==null?void 0:f.item,zxT))==null?void 0:d.headingRenderer;q&&(f=V0(q,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+f+".1.cardItemTextRenderer.text",c.shortHeaderSummaryText?Xd(c.shortHeaderSummaryText):c.headerSummaryText?Xd(c.headerSummaryText):""))}else{var Z;if(f=(Z=_.b((q=this.data)==null?void 0:q.item,zxT))==null?void 0:Z.additionalInfoRenderer)f=V0(f,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+f+".text",c.headerSummaryText?Xd(c.headerSummaryText):"")}};
_.r.updateCheckoutButton=function(){var c=this.commerceCartHeaderEntity,f,d,q=(d=_.b((f=this.data)==null?void 0:f.item,zxT))==null?void 0:d.additionalInfoRenderer;f=V0(q,"buttonRenderer");var Z;d=(Z=this.commerceCartHeaderEntity)==null?void 0:Z.isButtonDisabled;var M;Z=(M=this.commerceCartHeaderEntity)==null?void 0:M.isButtonHidden;d!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+f+".buttonRenderer.isDisabled",d);Z!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Z);var g;c=(g=c.checkoutButtonCommand)==null?void 0:g.innertubeCommand;c!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+f+".buttonRenderer.command",c)};
Sx.prototype.entityChanged=Sx.prototype.entityChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],Sx.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Sx.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Sx.prototype,"compact",void 0);_.y([_.L({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(c,f){return _.Bb(c.entities,"commerceCartHeaderEntity",f)}}),
_.D("design:type",Object)],Sx.prototype,"commerceCartHeaderEntity",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Sx.prototype,"hidden",void 0);_.y([_.m5("commerceCartHeaderEntity","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Sx.prototype,"entityChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Sx);
_.h(Sx,"ytd-commerce-cart-header-renderer",function(){if(uF_!==void 0)return uF_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return uF_=c},{mode:1});var Uwv;var p0v=_.Ko(function(c,f){var d;return(d=c.onChangeCallback)==null?void 0:d.call(c,f)},1E3),xw_=_.dN(function(c){var f=c.data;
var d=c.iconMinus;c=c.iconPlus;var q=function(){return!!f().disabled},Z=_.C(_.OT(0,void 0,"r56zNb")),M=Z.next().value,g=Z.next().value;
Z={};Z=_.FY("yt-spec-quantity-incrementer-shape__icon",(Z["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return q()||M()===(f().onRemoveCommand?0:1)},Z));
var O={};O=_.FY("yt-spec-quantity-incrementer-shape__icon",(O["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return M()>=f().maxValue||q()},O));
var l={};l=_.FY("yt-spec-quantity-incrementer-shape__text",(l["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return M()>f().maxValue},l["yt-spec-quantity-incrementer-shape__text--text-disabled"]=q,l));
var m=_.Ks(function(){if(M()===1){var A,Y;(Y=(A=f()).onRemoveCommand)==null||Y.call(A)}A=M()>f().maxValue?f().maxValue:M()-1;g(A);p0v(f(),A);return!1}),H=_.Ks(function(){if(M()===f().maxValue)return!1;
var A=M()+1;g(A);p0v(f(),A);return!1});
_.QJ(function(){g(f().value)});
return _.B("quantity-incrementer-shape",null,_.B("div",{class:"yt-spec-quantity-incrementer-shape"},_.B("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return M()===(f().onRemoveCommand?0:1)||q()},
"aria-label":function(){return M()!==1?f().minusLabel:f().minimumReachedLabel},
"on:click":m},_.B(_.z3,{model:{circular:!0}}),_.B("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.B("div",{class:Z},d()))),_.B("div",{class:l},M),_.B("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return M()>=f().maxValue||q()},
"aria-label":function(){return M()!==f().maxValue?f().plusLabel:f().maximumReachedLabel},
"on:click":H},_.B(_.z3,{model:{circular:!0}}),_.B("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.B("div",{class:O},c())))))},"be");_.g_(_.dN(function(c){function f(){d().onRemoveCommand&&_.Ph(d().onRemoveCommand)}
var d=c.data;var q=_.Ka(zpP,function(){return d().quantityIncrementerEntityKey});
return _.B("yt-quantity-incrementer-view-model",null,_.B(xw_,{data:function(){var Z=d(),M;var g=q()?!((M=q())==null||!M.disabled):!1;var O;M=q()?(O=q())==null?void 0:O.quantity:d().quantity;return Dqk(Z,g,f,M)},
iconMinus:function(){return _.B(_.Qy,{icon:"BAR_HORIZONTAL",className:_.tp("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.B(_.Qy,{icon:"ADD",className:_.tp("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"ce"),"yt-quantity-incrementer-view-model",{props:{data:_.oM}});var LM=function(){var c=_.z.apply(this,arguments)||this;c.compact=!1;c.hasQuantityIncrementer=!1;return c};
_.K(LM,_.z);LM.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"}}}};
LM.prototype.computeHasQuantityIncrementer=function(){var c;return!!_.b((c=this.data)==null?void 0:c.picker,Xxj)};
LM.prototype.onLabelClick=function(){var c;(c=this.dropdownEl)==null||c.open()};
_.y([_.AY("ytd-dropdown-renderer"),_.D("design:type",Object)],LM.prototype,"dropdownEl",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],LM.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],LM.prototype,"quantityColor",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],LM.prototype,"compact",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.D("design:type",Object)],LM.prototype,"hasQuantityIncrementer",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],LM);
_.h(LM,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Uwv!==void 0)return Uwv;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Uwv=c},{mode:1});var oro;var Gb3;var zw=function(){return _.z.apply(this,arguments)||this};
_.K(zw,_.z);zw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zw.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
zw.prototype.updateTitle=function(){var c=this.disabledCartItemEntity;c.disableActionName&&this.set("data.title",Xd(c.disableActionName))};
zw.prototype.updateButton=function(){var c,f=(c=this.disabledCartItemEntity.undoCommand)==null?void 0:c.innertubeCommand;f!==void 0&&(this.set("data.actionButton.buttonRenderer.command",f),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
zw.prototype.entityChanged=zw.prototype.entityChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],zw.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(c,f){return _.Bb(c.entities,"disabledCartItemEntity",f)}}),
_.D("design:type",Object)],zw.prototype,"disabledCartItemEntity",void 0);_.y([_.L(),_.D("design:type",Object)],zw.prototype,"data",void 0);_.y([_.m5("disabledCartItemEntity","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zw.prototype,"entityChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],zw);
_.h(zw,"ytd-disabled-cart-item-renderer",function(){if(Gb3!==void 0)return Gb3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Gb3=c},{mode:1});_.w_("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var JZ=function(){var c=_.z.apply(this,arguments)||this;c.compact=!1;c.hidden=!1;c.errorHidden=!1;c.noOnTap=!1;return c};
_.K(JZ,_.z);_.r=JZ.prototype;
_.r.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"}}}};
_.r.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.r.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var c=this.firstButtonElement;c.alignByText=!0;c.iconAlignByText=!0}};
_.r.computeNoOnTap=function(c){return!c};
_.r.updateQuantityColor=function(){if(this.pickerElement){var c,f=(c=this.commerceCartItemEntity)==null?void 0:c.quantityColor;this.pickerElement.quantityColor=f}};
_.r.updateTotalPriceColor=function(){var c,f=(c=this.commerceCartItemEntity)==null?void 0:c.totalPriceColor;if(f){var d;c=_.b((d=this.data)==null?void 0:d.quantityPicker,a$H);if(d=_.b(c==null?void 0:c.price,JL3))d.textColor=f}};
_.r.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var c,f=(c=this.commerceCartItemEntity)==null?void 0:c.isHidden;f!==void 0&&(this.hidden=f)}};
_.r.updateHideErrorMessage=function(){var c,f=(c=this.commerceCartItemEntity)==null?void 0:c.hideErrorMessage;f!==void 0&&(this.errorHidden=f)};
_.r.updateQuantity=function(){var c=this,f,d=(f=this.commerceCartItemEntity)==null?void 0:f.quantity,q;f=(q=this.commerceCartItemEntity)==null?void 0:q.totalPrice;if(d){this.updateTotalPriceColor();this.updateQuantityColor();var Z;q=_.b((Z=this.data)==null?void 0:Z.quantityPicker,a$H);if(Z=_.b(q==null?void 0:q.price,JL3))Z.text=f?{simpleText:f.content}:void 0;if(f=_.b(q==null?void 0:q.picker,Xxj))f.quantity=d;var M;if(Z=(M=_.b(q==null?void 0:q.picker,uL_))==null?void 0:M.entries){M=!1;f=void 0;Z=
_.C(Z);for(q=Z.next();!q.done;q=Z.next())q=q.value,q.dropdownItemRenderer&&(f||(f=q.dropdownItemRenderer),q.dropdownItemRenderer.isSelected=!1,d===q.dropdownItemRenderer.int32Value&&(M=!0,q.dropdownItemRenderer.isSelected=!0));!M&&f&&(f.isSelected=!0)}_.ol(this,function(){var g;c.set("data.quantityPicker",_.zV.unsafeClone((g=c.data)==null?void 0:g.quantityPicker))})}};
JZ.prototype.onYtRendererstamperFinished=JZ.prototype.onYtRendererstamperFinished;JZ.prototype.entityChanged=JZ.prototype.entityChanged;_.y([_.L(),_.D("design:type",Object)],JZ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JZ.prototype,"compact",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],JZ.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],JZ.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(c,f){return _.Bb(c.entities,"commerceCartItemEntity",f)}}),
_.D("design:type",Object)],JZ.prototype,"commerceCartItemEntity",void 0);_.y([_.L(),_.D("design:type",Object)],JZ.prototype,"quantityPicker",void 0);_.y([_.L(),_.D("design:type",Object)],JZ.prototype,"compactQuantityPicker",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JZ.prototype,"hidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],JZ.prototype,"errorHidden",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.D("design:type",Object)],JZ.prototype,"noOnTap",void 0);_.y([_.AY("ytd-commerce-cart-item-quantity-picker-renderer"),_.D("design:type",Object)],JZ.prototype,"pickerElement",void 0);_.y([_.AY("yt-button-renderer"),_.D("design:type",Element)],JZ.prototype,"firstButtonElement",void 0);
_.y([_.m5("commerceCartItemEntity","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JZ.prototype,"entityChanged",null);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JZ.prototype,"onYtRendererstamperFinished",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],JZ);
_.h(JZ,"ytd-commerce-cart-item-renderer",function(){if(oro!==void 0)return oro;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return oro=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var cn_;var ffu;var aD=function(){return _.z.apply(this,arguments)||this};
_.K(aD,_.z);aD.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}}}}}};
aD.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
aD.prototype.updateCheckoutLineItems=function(){var c,f=(c=this.commerceCartCheckoutButtonEntity)==null?void 0:c.checkoutLineItems;f&&(c=f.map(function(d){a:{var q=d.price,Z=d.description;switch(d.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":d={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Xd(Z),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:Xd(q),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:d={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Xd(Z),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:Xd(q),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 d}),this.set("data.summaryLineItems",c))};
aD.prototype.updateIsHidden=function(){var c,f=(c=this.commerceCartCheckoutButtonEntity)==null?void 0:c.isHidden;f!==void 0&&(this.hostElement.hidden=f)};
aD.prototype.entityChanged=aD.prototype.entityChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],aD.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],aD.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],aD.prototype,"data",void 0);_.y([_.L({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:eCM}),_.D("design:type",Object)],aD.prototype,"commerceCartCheckoutButtonEntity",void 0);_.y([_.m5("commerceCartCheckoutButtonEntity","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],aD.prototype,"entityChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],aD);
_.h(aD,"ytd-commerce-cart-summary-renderer",function(){if(ffu!==void 0)return ffu;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ffu=c},{mode:1});var dE_={};dE_.InjectBehavior=[ZlP.InjectBehavior];var jRH;var qHO;var V8=function(){return _.z.apply(this,arguments)||this};
_.K(V8,_.z);
V8.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:_.yy("menuRenderer")}}};
V8.prototype.onMenuTap=function(c){c.stopPropagation()};
_.ci.Object.defineProperties(V8.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 c,f;return!(((c=this.data)==null||!c.sectionHeading)&&((f=this.data)==null?void 0:f.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var c,f;return!(((c=this.data)==null||!c.image)&&((f=this.data)==null?void 0:f.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var c,f;return!(((c=this.data)==null||!c.menu)&&((f=this.data)==null?void 0:f.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.vrT.YtTappableItemBehavior),_.D("design:type",Object)],V8.prototype,"ytTappableItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],V8.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data.accessibilityData"),_.D("design:type",String),_.D("design:paramtypes",[])],V8.prototype,"ariaLabel",null);_.y([_.S("data.sectionHeading","data.layout"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],V8.prototype,"sectionHeadingVisible",null);_.y([_.S("data.image","data.layout"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],V8.prototype,"imageVisible",null);
_.y([_.S("data.menu","data.layout"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],V8.prototype,"menuVisible",null);_.y([_.vj({is:"yt-activity-item-renderer",disableElementRegistration:!0})],V8);
_.h(V8,"yt-activity-item-renderer",function(){if(qHO===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;jRH===void 0&&(jRH=document.createElement("template"));var q=jRH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);qHO=c}c=qHO;return c},{mode:2});var Z4r;var MGT;var rn3;var CLH;var Xx=function(){return _.z.apply(this,arguments)||this};
_.K(Xx,_.z);
Xx.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"}}}}};
Xx.prototype.backgroundColorChanged_=function(){var c,f=(c=this.data)==null?void 0:c.backgroundColor;this.hostElement.style.backgroundColor=mz[f||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Xx.prototype.backgroundColorChanged_=Xx.prototype.backgroundColorChanged_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Xx.prototype,"data",void 0);
_.y([_.m5("data.backgroundColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Xx.prototype,"backgroundColorChanged_",null);_.y([_.vj({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Xx);
_.h(Xx,"yt-offer-item-upsell-renderer",function(){if(CLH===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;rn3===void 0&&(rn3=document.createElement("template"));var q=rn3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);CLH=c}c=CLH;return c},{mode:2});_.w_("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var u3=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};c.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return c};
_.K(u3,_.z);_.r=u3.prototype;
_.r.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:_.yy("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.r.computeContainerStyle_=function(c){return c};
_.r.computeContainerIsHidden_=function(c){return c&&!!c.isHidden};
_.r.computeShowSpinner_=function(c,f){return c&&f==="in-progress"};
_.r.computeShowMoreContentsButton_=function(c,f,d,q,Z){return!(!(q&&q.length||Z&&Z.length&&d)||!c||f)};
_.r.onToggleButton_=function(c){var f=this;c.stopPropagation();this.isExpanded_=c.detail&&c.detail.toggled;var d,q;this.isExpanded_&&!this.data.continuationSection.length&&((d=this.data)==null?0:(q=d.continuation)==null?0:q.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.CZ(this.hostElement,"yt-load-next-continuation",function(Z){return f.getContinuationUrl_(f.data.continuation.onClickContinuationData,Z)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.OX(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.r.onShowMoreContentsButtonClicked_=function(c){var f=this;c.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.CZ(this.hostElement,"yt-load-next-continuation",function(d){return f.getContinuationUrl_(f.data.continuations[0].nextContinuationData,d)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.OX(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.r.getContinuationUrl_=function(c,f){var d=c.continuation;c=c.clickTrackingParams;var q=_.X2();c&&q&&_.Rc(q,_.Q1(c));return _.p9(f,{continuation:d})};
_.r.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var c=_.r1(this.hostElement).querySelector("#continuation-section");c&&(c=c.querySelectorAll("ytmusic-item-section-renderer"))&&c.forEach(function(f){return f.classList.add("memberships-and-purchases")})};
_.r.dataChanged_=function(){var c;this.isExpanded_=!((c=this.data)==null||!c.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.r.updateCardOnClickCommand_=function(c){c=_.b(c,byH);var f,d;this.data&&((f=this.data)==null?0:f.targetId)&&c&&c.targetId===((d=this.data)==null?void 0:d.targetId)&&c.onClickCommand&&(this.data.onClickCommand=c.onClickCommand,this.isOnClickCommand_=!0)};
_.r.backgroundColorChanged_=function(){var c,f=(c=this.data)==null?void 0:c.backgroundColor;this.hostElement.style.backgroundColor=mz[f||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
u3.prototype.backgroundColorChanged_=u3.prototype.backgroundColorChanged_;u3.prototype.dataChanged_=u3.prototype.dataChanged_;u3.prototype.nextContinuationDataUpdated_=u3.prototype.nextContinuationDataUpdated_;u3.prototype.onToggleButton_=u3.prototype.onToggleButton_;_.y([_.Q(_.PX),_.D("design:type",Object)],u3.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.RF.YtNextContinuationBehavior),_.D("design:type",Object)],u3.prototype,"ytNextContinuationBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.y([_.Q(dE_.InjectBehavior),_.D("design:type",Object)],u3.prototype,"injectBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],u3.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],u3.prototype,"compact",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],u3.prototype,"isExpanded_",void 0);_.y([_.L({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.D("design:type",String)],u3.prototype,"containerStyle_",void 0);_.y([_.L({value:"not-started"}),_.D("design:type",String)],u3.prototype,"continuationStatus_",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.D("design:type",Boolean)],u3.prototype,"showSpinner_",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],u3.prototype,"isOnClickCommand_",void 0);_.y([_.L({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.D("design:type",Boolean)],u3.prototype,"showMoreContentsButton_",void 0);
_.y([_.L({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(c,f){return!f||c.entities?null:_.Bb(c.entities,"cardItemContainerEntity",f)}}),
_.D("design:type",Object)],u3.prototype,"cardItemContainerEntity_",void 0);_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],u3.prototype,"onToggleButton_",null);_.y([_.Ta("yt-next-continuation-data-updated"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],u3.prototype,"nextContinuationDataUpdated_",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],u3.prototype,"dataChanged_",null);_.y([_.m5("data.backgroundColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],u3.prototype,"backgroundColorChanged_",null);_.y([_.vj({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],u3);
_.h(u3,"yt-card-item-container-renderer",function(){if(MGT===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Z4r===void 0&&(Z4r=document.createElement("template"));var q=Z4r;d.call(f,q.content.cloneNode(!0),c.content.firstChild);MGT=c}c=MGT;return c},{mode:2});var vT=function(){return _.z.apply(this,arguments)||this};
_.K(vT,_.z);vT.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"}}}};
vT.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
vT.prototype.computeLoadingHidden=function(){var c;return!((c=this.commerceCartPageStateEntity)==null?0:c.cartActionInProgress)};
vT.prototype.updateNotification=function(){var c,f=(c=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:c.summaryText;f&&this.set("data.cartNotification",Xd(f))};
vT.prototype.notificationEntityChanged=vT.prototype.notificationEntityChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],vT.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],vT.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],vT.prototype,"data",void 0);_.y([_.L({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(c,f){return _.Bb(c.entities,"commerceCartExpandableNotificationEntity",f)}}),
_.D("design:type",Object)],vT.prototype,"commerceCartExpandableNotificationEntity",void 0);_.y([_.L({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(c,f){return _.Bb(c.entities,"commerceCartPageStateEntity",f)}}),
_.D("design:type",Object)],vT.prototype,"commerceCartPageStateEntity",void 0);_.y([_.AY("#spinner"),_.D("design:type",HTMLElement)],vT.prototype,"spinner",void 0);_.y([_.m5("commerceCartExpandableNotificationEntity","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vT.prototype,"notificationEntityChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],vT);
_.h(vT,"ytd-commerce-cart-renderer",function(){if(cn_!==void 0)return cn_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return cn_=c},{mode:1});var gm_;var hZ=function(){var c=_.z.apply(this,arguments)||this;c.bigImage=!1;return c};
_.K(hZ,_.z);_.ci.Object.defineProperties(hZ.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.placeholderImageUrl}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hZ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],hZ.prototype,"bigImage",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],hZ.prototype,"placeholderImageUrl",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],hZ);
_.h(hZ,"ytd-empty-product-shelf-renderer",function(){if(gm_!==void 0)return gm_;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return gm_=c},{mode:1});var kM_;var wH=function(){var c=_.z.apply(this,arguments)||this;c.itemStyle="link-item";c.watchMetadataRefresh=!1;c.skinnyMode=!1;c.metaPanel=!1;c.inStructuredDescription=!1;c.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};c.updateOnResizeDebouncer=null;return c};
_.K(wH,_.z);_.r=wH.prototype;_.r.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.r.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"}}}}};
_.r.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.r.attachVEs=function(c){c.trackingParams&&_.bP().graftServerVe(c.trackingParams)};
_.r.handleUpdateMerchShelfAction=function(c){var f=this,d=_.b(c.updateMerchandiseShelfAction.merchandiseShelf,_.jJH);d&&(d.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){f.attachVEs(d);f.data=d},Number(d.renderDelayMs))):(this.attachVEs(d),this.data=d))};
_.r.updateOnResize=function(){if(this.JSC$16714_scrollContainer!==void 0&&this.JSC$16714_scrollContainer.clientWidth!==0&&this.items!==void 0){var c=this.JSC$16714_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-c));this.ytdHorizontalListBehavior.reposition_();var f;switch((f=this.data)==null?void 0:f.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var d,
q;((d=this.data)==null?void 0:(q=d.items)==null?void 0:q.length)===1?this.itemStyle="cta-item":this.itemStyle=c>=740?"large-item":"small-item"}}};
_.r.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.OP(this.updateOnResizeDebouncer,_.GN.after(100),this.updateOnResize)};
wH.prototype.debouncedUpdateOnResize=wH.prototype.debouncedUpdateOnResize;wH.prototype.dataChanged=wH.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cm.YtdHorizontalListBehavior),_.D("design:type",Object)],wH.prototype,"ytdHorizontalListBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],wH.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],wH.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wH.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wH.prototype,"itemStyle",void 0);_.y([_.L({value:6}),_.D("design:type",Number)],wH.prototype,"initialCount",void 0);
_.y([_.L({value:"data.items"}),_.D("design:type",String)],wH.prototype,"itemsPath",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wH.prototype,"watchMetadataRefresh",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wH.prototype,"skinnyMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wH.prototype,"metaPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wH.prototype,"inStructuredDescription",void 0);
_.y([_.AY("#items"),_.D("design:type",HTMLDivElement)],wH.prototype,"items",void 0);_.y([_.AY("#scroll-container"),_.D("design:type",HTMLDivElement)],wH.prototype,"JSC$16714_scrollContainer",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wH.prototype,"dataChanged",null);_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wH.prototype,"debouncedUpdateOnResize",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],wH);
_.h(wH,"ytd-merch-shelf-renderer",function(){if(kM_!==void 0)return kM_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return kM_=c},{mode:2});var O4K;var y8=function(){var c=_.z.apply(this,arguments)||this;c.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 c};
_.K(y8,_.z);_.r=y8.prototype;
_.r.addBackstagePostAction=function(c){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(c=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",c))&&(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:c}):this.set("data.contents",[{backstagePostThreadRenderer:c}]))};
_.r.addBackstageCommentAction=function(c){var f=this.get("addBackstageCommentAction.parentId",c);c=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",c);if(f&&c){f=this.postIdToIndices(f);for(var d=0;d<f.length;d++){var q=f[d];if(q<0)break;q="data.contents."+q+".backstagePostThreadRenderer.comments";this.get(q)&&(this.get(q+".backstageCommentsRenderer.contents")&&this.push(q+".backstageCommentsRenderer.contents",{commentThreadRenderer:c}),this.get(q+".backstageCommentsRenderer.teaserContents")?
this.push(q+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:c}):this.set(q+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:c}]))}}};
_.r.addBackstageReplyAction=function(c){var f=this.get("addBackstageReplyAction.parentId",c);c=this.get("addBackstageReplyAction.renderer.commentRenderer",c);f&&c&&this.setCreatorReply(f,c)};
_.r.banAuthorAction=function(c){var f=this.get("banAuthorAction.commentId",c);f&&(c=this.get("banAuthorAction.parentCommentId",c)||this.getParentPostId(f),this.removeFromStream(f,c))};
_.r.hideReportedCommentAction=function(c){var f=this.get("hideReportedCommentAction.commentId",c);f&&((c=this.get("hideReportedCommentAction.parentCommentId",c))||(c=this.getParentPostId(f)),this.removeFromStream(f,c))};
_.r.replaceBackstageCommentAction=function(c){var f=this.get("replaceBackstageCommentAction.commentId",c),d=this.get("replaceBackstageCommentAction.parentId",c);c=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",c);if(f&&d&&c){d=this.postIdToIndices(d);for(var q=0;q<d.length;q++){var Z=d[q];if(Z<0)break;var M=this.commentIdToIndex(f,Z,!1);if(M>=0){var g=this.get("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M+".commentThreadRenderer.replies.commentRepliesRenderer");
g&&(c.replies={commentRepliesRenderer:g});this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",M,1,{commentThreadRenderer:c})}M=this.commentIdToIndex(f,Z,!0);if(M>=0){if(g=this.get("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(M+".commentThreadRenderer.replies.commentRepliesRenderer")))c.replies={commentRepliesRenderer:g};this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
M,1,{commentThreadRenderer:c})}}}};
_.r.replaceBackstagePostAction=function(c){var f=this.get("replaceBackstagePostAction.itemId",c);if(f){f=this.postIdToIndices(f);for(var d=0;d<f.length;d++){var q=f[d];if(q<0)break;var Z=this.getPostRendererType(q),M=this.get("replaceBackstagePostAction.renderer."+Z,c);if(!M&&Z!=="sharedPostRenderer")break;var g=!1;M||(g=!0,M=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",c));if(!M)break;var O={};g?(_.vh(O,U0H,M),this.set("data.contents."+q+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
O)):(_.vh(O,new _.fi(Z),M),this.set("data.contents."+q+".backstagePostThreadRenderer.post",O))}}};
_.r.replaceBackstageReplyAction=function(c){var f=this.get("replaceBackstageReplyAction.replyId",c),d=this.get("replaceBackstageReplyAction.parentId",c);c=this.get("replaceBackstageReplyAction.renderer.commentRenderer",c);f&&c&&d&&this.setCreatorReply(d,c)};
_.r.removeCommentAction=function(c){var f=this.get("removeCommentAction.commentId",c);if(f){var d=this.get("removeCommentAction.parentCommentId",c);d&&this.get("removeCommentAction.isCreatorReply",c)?this.setCreatorReply(d,void 0):(d||(d=this.getParentPostId(f)),this.removeFromStream(f,d))}};
_.r.setCreatorReply=function(c,f){var d=this.getParentPostId(c);if(d){d=this.postIdToIndices(d);for(var q=0;q<d.length;q++){var Z=d[q];if(Z<0)break;var M=this.commentIdToIndex(c,Z,!1);if(M>=0){var g="data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+M;M=g+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";g+=".commentThreadRenderer.replies";f==void 0?(this.set(g,{}),this.set(M,!1)):(this.set(g,{commentRepliesRenderer:{teaserContents:[{commentRenderer:f}]}}),
this.set(g+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(M,!0))}M=this.commentIdToIndex(c,Z,!0);M>=0&&(M="data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+M,Z=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",M+=".commentThreadRenderer.replies",f==void 0?(this.set(M,{}),this.set(Z,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:f}]}}),this.set(Z,!0)))}}};
_.r.removeFromStream=function(c,f){if(f){f=this.postIdToIndices(f);for(var d=0;d<f.length;d++){var q=f[d];if(q<0)break;var Z=this.commentIdToIndex(c,q,!1);Z>=0&&this.splice("data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Z,1);Z=this.commentIdToIndex(c,q,!0);Z>=0&&this.splice("data.contents."+q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Z,1);q="data.contents."+q+".backstagePostThreadRenderer.post.backstagePostRenderer";
Z=q+".backstageAttachment.pollRenderer.votedCommentId";this.get(Z)===c&&(this.set(Z,null),this.set(q+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(f=this.postIdToIndices(c).reverse(),d=0;d<f.length;d++){q=f[d];if(q<0)break;Z=this.getPostRendererType(q);var M=this.get("backstagePostThreadRenderer.post."+Z,this.data.contents[q]);M.postId===c?this.splice("data.contents",q,1):Z==="sharedPostRenderer"&&this.set("data.contents."+q+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);M.scheduledPublishTimeSec&&_.gS(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.r.postIdToIndices=function(c){for(var f=[],d=0;d<this.data.contents.length;d++){var q=this.getPostRendererType(d);this.get("backstagePostThreadRenderer.post."+q+".postId",this.data.contents[d])===c&&f.push(d);if(q==="sharedPostRenderer"){var Z=this.get("backstagePostThreadRenderer.post."+q+".originalPost.backstagePostRenderer.postId",this.data.contents[d]);q=this.get("backstagePostThreadRenderer.post."+q+".originalPost.postRenderer.postId",this.data.contents[d]);Z!==c&&q!==c||f.push(d)}}return f};
_.r.commentIdToIndex=function(c,f,d){if(f<0)return-1;var q,Z,M,g,O=_.b((q=this.data)==null?void 0:(Z=q.contents)==null?void 0:(M=Z[f])==null?void 0:(g=M.backstagePostThreadRenderer)==null?void 0:g.comments,P4_);return(f=d?O==null?void 0:O.teaserContents:O==null?void 0:O.contents)&&f.length?f.findIndex(function(l){return _.b(l,Qpu).comment.commentRenderer.commentId===c}):-1};
_.r.getParentPostId=function(c){c=c.split(".");if(c[1])return c[0]};
_.r.getPostRendererType=function(c){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[c])?"sharedPostRenderer":"backstagePostRenderer"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],y8.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],y8.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-backstage-items"})],y8);
_.h(y8,"ytd-backstage-items",function(){if(O4K!==void 0)return O4K;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return O4K=
c},{mode:1});var lf_;var sRu={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},WT=function(){var c=_.z.apply(this,arguments)||this;c.disablePrescanVisibility=!0;c.canScheduleJobs=!0;c.engagementPanel=!1;c.hidePanelButton=!1;c.isWatchGrid=!1;c.hasShownSubscribersOnlyDisclaimer=!1;c.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","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 c};
_.K(WT,_.z);_.r=WT.prototype;_.r.created=function(){this.initCommentsCsi_()};
_.r.contentsChanged_=function(){var c;(c=this.data)!=null&&c.contents&&this.tickForCommentsTimer_("cml")};
_.r.headerChanged_=function(){var c;(c=this.data)!=null&&c.header&&this.tickForCommentsTimer_("cmhl")};
_.r.initCommentsCsi_=function(){_.ac("wn_comments");var c=_.X2();c&&_.JQ({clientScreenNonce:c},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.r.createCommentAction_=function(c){c=_.zV.unsafeClone(c);var f,d;if(c=(f=_.b(c,ACu))==null?void 0:(d=f.contents)==null?void 0:d.commentThreadRenderer){var q,Z,M,g,O,l;!this.isBackstage&&((q=this.data)==null?0:(Z=q.header)==null?0:(M=Z.commentsHeaderRenderer)==null?0:(g=M.createRenderer)==null?0:(O=g.commentSimpleboxRenderer)==null?0:(l=O.zeroStep)==null?0:l.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var m,
H,A;this.isBackstage&&_.b((m=this.data)==null?void 0:(H=m.header)==null?void 0:(A=H.commentsHeaderRenderer)==null?void 0:A.zeroStateMessage,p1H)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(c)}};
_.r.doReplyInsert_=function(c,f,d,q){q?this.splice(c,q,0,f):this.push(c,f)};
_.r.getRepliesPath_=function(c){return"data.contents."+c+".commentThreadRenderer.replies"};
_.r.getRepliesContentsPath_=function(c,f){c=this.getRepliesPath_(c);return f?c+".commentRepliesRenderer.teaserContents":c+".commentRepliesRenderer.contents"};
_.r.showSubscribersOnlyDisclaimer_=function(c){(c=c.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(c))&&(_.gS(this.hostElement,"yt-open-popup-action",[c,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.r.createCommentReplyAction_=function(c){c=_.zV.unsafeClone(c);var f=_.b(c,YAO);if(c=f==null?void 0:f.contents){var d=this.commentIdToIndex_(f==null?void 0:f.parentCommentId);if(!(d<0)){var q=this.getRepliesPath_(d);if(this.get(q)){f=f.replyToCommentId;q=this.getRepliesContentsPath_(d,!1);if(this.get(q)){var Z=this.get(q).length,M=q+"."+(Z-1)+".continuationItemRenderer";this.get(M+".button")?(M=this.replyIdToIndex_(f,d,!1),this.doReplyInsert_(q,c,M,Z-1)):this.get(M)||(Z=this.replyIdToIndex_(f,d,
!1),this.doReplyInsert_(q,c,Z,null))}q=this.getRepliesContentsPath_(d,!0);this.get(q)?(d=this.replyIdToIndex_(f,d,!0),(!f||d>=0)&&this.doReplyInsert_(q,c,d,null)):this.set(q,[c])}else this.set(q,{commentRepliesRenderer:{teaserContents:[c]}})}}};
_.r.hideReportedCommentAction_=function(c){var f=_.b(c,yCy);if(c=f==null?void 0:f.commentId)f=this.get("parentCommentId",f),c=c.replace("#","."),f||(f=this.getParentCommentId_(c)),this.remove_(c,f)};
_.r.getParentCommentId_=function(c){c=c.split(".");if(c[1])return c[0]};
_.r.removeCommentAction_=function(c){var f=_.b(c,EoH);if(c=f==null?void 0:f.commentId)f=f==null?void 0:f.parentCommentId,c=c.replace("#","."),f||(f=this.getParentCommentId_(c)),this.remove_(c,f)};
_.r.pinCommentAction_=function(c){c=_.zV.unsafeClone(c);var f=_.b(c,KJr);f!=null&&f.commentId&&(c=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",c))&&(this.remove_(f.commentId),this.insert_(c,!0))};
_.r.unpinCommentAction_=function(c){c=_.zV.unsafeClone(c);c=_.b(c,noo);if(c!=null&&c.commentId){var f,d,q=(f=c.actionResult)==null?void 0:(d=f.update)==null?void 0:d.commentThreadRenderer;q&&(this.remove_(c.commentId),this.insert_(q))}};
_.r.banAuthorAction_=function(c){var f=_.b(c,HFH);f!=null&&f.commentId&&(c=f.parentCommentId,f=f.commentId.replace("#","."),c||(c=this.getParentCommentId_(f)),this.remove_(f,c))};
_.r.commentIdToIndex_=function(c){var f;return c&&(f=this.data)!=null&&f.contents?this.data.contents.findIndex(function(d){d=d.commentThreadRenderer;var q;return c===((d==null?void 0:d.commentViewModel)&&((q=_.b(d.commentViewModel,VWr))==null?void 0:q.commentId))}):-1};
_.r.insert_=function(c,f){f=f===void 0?!1:f;var d,q;if((d=this.data)==null?0:(q=d.contents)==null?0:q.some(function(M){return!!M.commentThreadRenderer}))for(d=0,q=this.data.contents.length;d<q;d++){var Z=this.data.contents[d].commentThreadRenderer;
if(sRu[c.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=sRu[Z.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){f&&sRu[c.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===sRu[Z.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",d,1,{commentThreadRenderer:c}):this.splice("data.contents",d,0,{commentThreadRenderer:c});break}}else this.set("data.contents",[{commentThreadRenderer:c}])};
_.r.doReplyRemove_=function(c,f,d){c=this.replyIdToIndex_(c,f,d);c<0||(f=this.getRepliesContentsPath_(f,d),this.splice(f,c,1))};
_.r.remove_=function(c,f){f=this.commentIdToIndex_(f);f<0?(f=this.commentIdToIndex_(c),f<0||this.splice("data.contents",f,1)):(this.doReplyRemove_(c,f,!1),this.doReplyRemove_(c,f,!0))};
_.r.replyIdToIndex_=function(c,f,d){if(f<0)return-1;f=this.getRepliesContentsPath_(f,d);f=this.get(f);if(!f||!f.length)return-1;d=0;for(var q=f.length;d<q;d++){var Z=void 0,M=void 0;if(((Z=f[d])==null?void 0:(M=Z.commentViewModel)==null?void 0:M.commentId)===c)return d}return-1};
_.r.tickForCommentsTimer_=function(c){_.Xt(c,void 0,"wn_comments")};
_.r.reloadComments_=function(c){c=_.b(c,JCy);_.b(c==null?void 0:c.command,_.Pr)&&_.OX(this.hostElement,[c==null?void 0:c.command])};
_.ci.Object.defineProperties(WT.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return!!((c=this.data)==null?0:(f=c.header)==null?0:(d=f.commentsHeaderRenderer)==null?0:d.isBackstageContent)}}});
_.ci.Object.defineProperties(WT,{template:{configurable:!0,enumerable:!0,get:function(){if(lf_===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);lf_=c}c=lf_;return c}}});
WT.prototype.showSubscribersOnlyDisclaimer_=WT.prototype.showSubscribersOnlyDisclaimer_;WT.prototype.headerChanged_=WT.prototype.headerChanged_;WT.prototype.contentsChanged_=WT.prototype.contentsChanged_;_.y([_.Q(_.fg),_.D("design:type",Object)],WT.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.CMe.YtHostElementBehavior),_.D("design:type",Object)],WT.prototype,"ytHostElementBehavior",void 0);
_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",Function)],WT.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],WT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],WT.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],WT.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data.header.commentsHeaderRenderer.isBackstageContent"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],WT.prototype,"isBackstage",null);_.y([_.L(),_.D("design:type",Object)],WT.prototype,"disablePrescanVisibility",void 0);_.y([_.L(),_.D("design:type",Object)],WT.prototype,"canScheduleJobs",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],WT.prototype,"engagementPanel",void 0);
_.y([_.L(),_.D("design:type",Object)],WT.prototype,"hidePanelButton",void 0);_.y([_.L(),_.D("design:type",Object)],WT.prototype,"isWatchGrid",void 0);_.y([_.L(),_.D("design:type",Object)],WT.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.y([_.m5("data.contents"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],WT.prototype,"contentsChanged_",null);
_.y([_.m5("data.header"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],WT.prototype,"headerChanged_",null);_.y([_.Ta("yt-show-subscribers-only-disclaimer"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],WT.prototype,"showSubscribersOnlyDisclaimer_",null);_.y([_.v({is:"ytd-comments"})],WT);var DF=function(){return _.Fj.apply(this,arguments)||this};
_.K(DF,_.Fj);_.r=DF.prototype;_.r.bindIf=function(c,f,d){return c?f:d};
_.r.bindIfDefined=function(c,f){return c!==void 0?c:f};
_.r.booleanString=function(c){return(!!c).toString()};
_.r.equals=function(){for(var c=_.hv.apply(0,arguments),f=c[0],d=1;d<c.length;d++)if(f!=c[d])return!1;return!0};
_.r.isGreaterThan=function(c,f){return c>f};
_.r.isLessThan=function(c,f){return c<f};
_.r.logicalAND=function(){for(var c=_.hv.apply(0,arguments),f=!!c[0],d=1;d<c.length;d++)f=f&&!!c[d];return f};
_.r.logicalOR=function(){for(var c=_.hv.apply(0,arguments),f=!!c[0],d=1;d<c.length;d++)f=f||!!c[d];return f};
_.r.toBool=function(c){return!!c};
DF.prototype.toBool=DF.prototype.toBool;DF.prototype.logicalOR=DF.prototype.logicalOR;DF.prototype.logicalAND=DF.prototype.logicalAND;DF.prototype.isLessThan=DF.prototype.isLessThan;DF.prototype.isGreaterThan=DF.prototype.isGreaterThan;DF.prototype.equals=DF.prototype.equals;DF.prototype.booleanString=DF.prototype.booleanString;DF.prototype.bindIfDefined=DF.prototype.bindIfDefined;DF.prototype.bindIf=DF.prototype.bindIf;_.y([_.tY()],DF);_.B5T=[DF.prototype];var i4u;var T5F;var ex=function(){return _.z.apply(this,arguments)||this};
_.K(ex,_.z);ex.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
ex.prototype.onBackIconTap_=function(){window.history.back()};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ex.prototype,"data",void 0);_.y([_.vj({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],ex);
_.h(ex,"yt-header-with-back-renderer",function(){if(T5F===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;i4u===void 0&&(i4u=document.createElement("template"));var q=i4u;d.call(f,q.content.cloneNode(!0),c.content.firstChild);T5F=c}c=T5F;return c},{mode:2});var mE3;var H4j;var NX=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(NX,_.z);_.r=NX.prototype;_.r.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.r.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&(this.isDarkTheme=c,this.setUrl())};
_.r.dataChanged=function(){var c=this;if(this.data){var f=this.setUrl();f&&_.jj({destination:window,iframe:this.iframe,origin:_.vSj(f.toString()),channelName:"yt-iframe",onMessage:function(d){(d=c.getCommunicationCommand(d.data))&&c.ytComponentBehavior.resolveCommand(d)},
onEstablished:function(){}})}};
_.r.setUrl=function(){if(this.data&&this.data.iframeUrl){var c=_.Vm(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(c)return _.NS(this.iframe,c),c}};
_.r.getCommunicationCommand=function(c){var f;if((f=this.data)!=null&&f.onCommunicationCommandsMap){f=this.data.onCommunicationCommandsMap.find(function(Z){return Z.key===c});
if(f==null?0:f.value)return f==null?void 0:f.value;try{var d=BTj(_.pr(c)),q=this.data.onCommunicationCommandsMap.find(function(Z){return Z.key===(d==null?void 0:d.getMethodName())});
if(q==null?0:q.value)return q==null?void 0:q.value}catch(Z){}}};
NX.prototype.dataChanged=NX.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],NX.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],NX.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],NX.prototype,"data",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],NX.prototype,"isDarkTheme",void 0);_.y([_.AY("#iframe"),_.D("design:type",HTMLIFrameElement)],NX.prototype,"iframe",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],NX.prototype,"dataChanged",null);_.y([_.vj({is:"yt-iframe-renderer",disableElementRegistration:!0})],NX);
_.h(NX,"yt-iframe-renderer",function(){if(H4j===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;mE3===void 0&&(mE3=document.createElement("template"));var q=mE3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);H4j=c}c=H4j;return c},{mode:2});_.ID=function(c){_.ES.call(this);this.callback=c;this.bezier=new QfO(0,0,.4,0,.2,1,1,1);this.delay=new _.js(this.next,window,this);this.JSC$16758_animating=!1;_.ln(this,this.delay)};
_.K(_.ID,_.ES);_.ID.prototype.isAnimating=function(){return this.JSC$16758_animating};
_.ID.prototype.start=function(c,f,d){this.config={from:c,to:f,duration:d,startTime:(0,_.qR)()};this.JSC$16758_animating=!0;this.next()};
_.ID.prototype.stop=function(){this.delay.stop();this.JSC$16758_animating=!1;this.config=void 0};
_.ID.prototype.next=function(){if(this.config){var c=this.config,f=c.from,d=c.to,q=c.duration;c=c.startTime;var Z=(0,_.qR)()-c;c=this.bezier;q=Lt3(c,Z/q);if(q==0)c=c.y0;else if(q==1)c=c.y3;else{Z=no(c.y0,c.y1,q);var M=no(c.y1,c.y2,q);c=no(c.y2,c.y3,q);Z=no(Z,M,q);M=no(M,c,q);c=no(Z,M,q)}c=_.uk(c,0,1);this.callback(f+(d-f)*c);c<1?this.delay.start():this.JSC$16758_animating=!1}};_.PT=new _.jk("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var AnF={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Flr=function(c,f,d,q){_.ES.call(this);this.JSC$16769_miniAppId=c;this.localReleaseId=f;this.derivedDeviceInterface=d;this.isForeground=q;this.JSC$16769_playNonceResolver=new _.BS;this.playPingTimerId=NaN;this.playPingIntervalMs=_.rx("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.rx("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.F("enable_displaying_ppn");this.JSC$16769_miniAppClientDataProvider=_.ql().resolve(_.PT);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;YHH(this);var Z=setTimeout(function(){_.u6(new _.KD("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16769_playNonceResolver.promise.then(function(){clearTimeout(Z)})};
_.K(Flr,_.ES);var b4j=function(c,f){c.JSC$16769_playNonceResolver.resolve(f!=null?f:Ji(8));c.enableDisplayingPpn&&tGj(c).then(function(d){c.JSC$16769_miniAppClientDataProvider.clientData.set("post_play_nonce",d)})},tGj=function(c){return _.k(function(f){return f.nextAddress==1?f.yield(c.JSC$16769_playNonceResolver.promise,2):f.return(f.yieldResult)})},YHH=function(c){var f,d;
_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$16769_playNonceResolver.promise,2);f=q.yieldResult;d={miniAppInfo:{externalPostId:c.JSC$16769_miniAppId,localReleaseId:c.localReleaseId,postPlayNonce:f,derivedDeviceInterface:c.derivedDeviceInterface}};_.JQ(d);_.Fm(q)})},Emr=function(c){c.state!==0?_.u6(new _.KD("[MiniAppPlayLogger] recordPlayStart failed with state "+AnF[c.state])):(c.state=1,RD(c,"ma_cl"),UF(c,"PLAY_EVENT_TYPE_PLAY_START"),Kl3(c))},nmy=function(c){c.isForeground=!1;
UF(c,"PLAY_EVENT_TYPE_PLAY_PAUSE")},$Ej=function(c){c.state!==1&&c.state!==2?_.u6(new _.KD("[MiniAppPlayLogger] recordPlayEnd failed with state "+AnF[c.state])):(c.state=3,window.clearInterval(c.playPingTimerId),c.playPingTimerId=NaN,MgG(),UF(c,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},QR_=function(c,f){c.state===2&&c.gameReady&&(c.firstClickRecorded?Date.now()-c.clickRecordedMs<c.playClickIntervalMs||(c.clickRecordedMs=Date.now(),UF(c,"PLAY_EVENT_TYPE_PLAY_CLICK")):f&&(RD(c,"ma_fua"),UF(c,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),c.firstClickRecorded=!0,c.clickRecordedMs=Date.now()))};
Flr.prototype.logError=function(c){var f=this,d;_.k(function(q){if(q.nextAddress==1)return c.metadata.externalPostId=f.JSC$16769_miniAppId,d=c.metadata,q.yield(Promise.race([f.JSC$16769_playNonceResolver.promise,new Promise(function(Z){setTimeout(function(){Z("")},3E4)})]),2);
d.postPlayNonce=q.yieldResult;c.metadata.localReleaseId=f.localReleaseId;c.loggingError.level="WARNING";_.VO(c.loggingError,c.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:c.metadata});_.Fm(q)})};
var SHH=function(c,f,d,q){var Z,M,g,O,l,m;_.k(function(H){if(H.nextAddress==1)return H.yield(c.JSC$16769_playNonceResolver.promise,2);Z=H.yieldResult;M={externalPostId:c.JSC$16769_miniAppId,localReleaseId:c.localReleaseId,postPlayNonce:Z,sdkVersion:d,api:f};q!==void 0&&(M.networkRequestsMeasurement={networkRequests:_.qx(q,1),cachedRequests:_.qx(q,2),transferredBytes:_.qx(q,3)},(g=q)==null?0:_.tr(g,fz,6))&&(M.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((O=_.TD(q,
fz,6))==null?void 0:Xv(O,1))||"0",cacheHits:((l=_.TD(q,fz,6))==null?void 0:Xv(l,2))||"0",cachedBytes:((m=_.TD(q,fz,6))==null?void 0:Xv(m,3))||"0"});_.JN("miniAppSdkUsage",M);_.Fm(H)})},zF3=function(c,f,d){var q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W;
_.k(function(p){if(p.nextAddress==1)return p.yield(c.JSC$16769_playNonceResolver.promise,2);q=p.yieldResult;Z={externalPostId:c.JSC$16769_miniAppId,localReleaseId:c.localReleaseId,postPlayNonce:q,sdkVersion:d,measurementWindow:{startTimestampMs:String(zK(f,1)),endTimestampMs:String(zK(f,2))},frameRate:{averageFrameTimeDeltaMs:Jr(f,3),averageFrameIdleTimeMs:Jr(f,4)}};_.tr(f,dF,5)&&(Z.networkRequests={networkRequests:(M=gF(f))==null?void 0:_.qx(M,1),cachedRequests:(g=gF(f))==null?void 0:_.qx(g,2),transferredBytes:(O=
gF(f))==null?void 0:_.qx(O,3),sameOriginStatusCodeToCounts:Ll_((l=gF(f))==null?void 0:$Qe(l,4)),crossOriginStatusCodeToCounts:Ll_((m=gF(f))==null?void 0:$Qe(m,5))},(H=gF(f))==null?0:_.tr(H,fz,6))&&(Z.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((A=gF(f))==null?void 0:(Y=_.TD(A,fz,6))==null?void 0:Xv(Y,1))||"0",cacheHits:((t=gF(f))==null?void 0:(E=_.TD(t,fz,6))==null?void 0:Xv(E,2))||"0",cachedBytes:((J=gF(f))==null?void 0:(X=_.TD(J,fz,6))==null?void 0:Xv(X,3))||"0"});_.tr(f,
eHy,7)&&(Z.gameCapture={averageFrameTimeDeltaMs:(u=_.TD(f,eHy,7))==null?void 0:Jr(u,1),averageFrameIdleTimeMs:(W=_.TD(f,eHy,7))==null?void 0:Jr(W,2)});_.JN("miniAppPerformanceMetrics",Z);_.Fm(p)})},JnT=function(c,f){var d,q;
return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(c.JSC$16769_playNonceResolver.promise,2);d=Z.yieldResult;q={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:c.JSC$16769_miniAppId,postPlayNonce:d,miniAppReleaseId:c.localReleaseId},derivedDeviceInterface:c.derivedDeviceInterface,adTriggerType:f,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.JN("miniAppAdEvent",q);_.Fm(Z)})};
Flr.prototype.disposeInternal=function(){_.ES.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var UF=function(c,f,d,q){d=d===void 0?{}:d;q=q===void 0?!1:q;var Z,M,g,O;_.k(function(l){if(l.nextAddress==1)return Z=c.isForeground,M=c.beforeReady,l.yield(c.JSC$16769_playNonceResolver.promise,2);g=l.yieldResult;O={externalPostId:c.JSC$16769_miniAppId,localReleaseId:c.localReleaseId,derivedDeviceInterface:c.derivedDeviceInterface,postPlayNonce:g,type:f};d.sequenceGroup=g;O.playState=M?"PLAY_STATE_NOT_READY":Z?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.JN("miniAppPlayEvent",O,
d);q&&_.ab();_.Fm(l)})},RD=function(c,f){var d;
_.k(function(q){if(q.nextAddress==1)return d=(0,_.qR)(),q.yield(c.JSC$16769_playNonceResolver.promise,2);_.V_(f,d);_.Fm(q)})},Kl3=function(c){isNaN(c.playPingTimerId)&&(c.playPingTimerId=_.lF(function(){c.state!==1&&c.state!==2?_.u6(new _.KD("[MiniAppPlayLogger] reportPlayPing failed with state "+AnF[c.state])):UF(c,"PLAY_EVENT_TYPE_PLAY_PING")},c.playPingIntervalMs))},Ll_=function(c){return Array.from(c.entries()).map(function(f){var d=_.C(f);
f=d.next().value;d=d.next().value;return{key:f,value:d}})};var afj=function(){},VGy=function(c,f){c.showMiniAppAdCommand=f.showMiniAppAdCommand;
c.isEmbeddedInWebview=f.isEmbeddedInWebview;c.playLogger=f.playLogger},uRo=function(c,f){var d;
return _.k(function(q){if(q.nextAddress==1){if(!c.showMiniAppAdCommand||!c.isEmbeddedInWebview)return q.return(X$_(c,f));c.adResolver=new _.BS;var Z=new Vb;d=_.rR(Z,3,f);wB(c.showMiniAppAdCommand,Y4K(d));return q.yield(c.adResolver.promise,2)}return q.return(q.yieldResult)})};
afj.prototype.onAdFinished=function(c){c=F8u(c);var f;(f=this.adResolver)==null||f.resolve(c)};
var X$_=function(c,f){var d;return _.k(function(q){if(q.nextAddress==1)q=q.yield((d=c.playLogger)==null?void 0:JnT(d,pzk(f)),2);else{var Z=q.return;var M=new YJv;M=_.rR(M,1,2);q=Z.call(q,M)}return q})};var vm3=new _.jk("INNERTUBE_MANAGER_TOKEN");var hFF=function(){this.callbacks={}};
hFF.prototype.initialize=function(c){var f=this;this.callbacks=c;window.youtubewebview?window.youtubewebview.onmessage=function(d){w$v(f,d)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(d){w$v(f,d)})};
var w$v=function(c,f){if(f.data)try{var d=BTj(f.data);if(_.TC(_.Fv(d,1))!=null){var q=BEv(_.aW(d,2));switch(d.getMethodName()){case "yt-mini-app-load-audio-state":var Z,M;(M=(Z=c.callbacks).onAudioStateLoaded)==null||M.call(Z,_.LS(q,FX(q,aE,1)));break;case "yt-mute-mini-app":var g,O;(O=(g=c.callbacks).onMuteMiniApp)==null||O.call(g);break;case "yt-unmute-mini-app":var l,m;(m=(l=c.callbacks).onUnmuteMiniApp)==null||m.call(l);break;case "yt-playable-exit":var H,A;(A=(H=c.callbacks).onExit)==null||A.call(H);
break;case "yt-post-play-nonce":var Y,t;(t=(Y=c.callbacks).onPostPlayNonceReceived)==null||t.call(Y,uf(q,2,aE));break;case "yt-confirm-exit-mini-app":var E,J;(J=(E=c.callbacks).confirmExitMiniApp)==null||J.call(E);break;case "yt-confirm-exit-mini-app-edu":var X,u;(u=(X=c.callbacks).confirmExitMiniAppEdu)==null||u.call(X);break;case "yt-benchmarking-response":var W,p;(p=(W=c.callbacks).onNativeBenchmarkingMessageReceived)==null||p.call(W,uf(q,2,aE));break;case "yt-mini-app-load-3p-consent-state":var N,
I;(I=(N=c.callbacks).multiplayer3pAckStateLoaded)==null||I.call(N,_.LS(q,FX(q,aE,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var R,qN;(qN=(R=c.callbacks).exitMiniAppSeenStateLoaded)==null||qN.call(R,_.LS(q,FX(q,aE,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var kl,BN;(BN=(kl=c.callbacks).onNavigateToNewMiniApp)==null||BN.call(kl);break;case "yt-game-data-available":var tP,EC;(EC=(tP=c.callbacks).onGameDataAvailable)==null||EC.call(tP,uf(q,2,aE));break;case "yt-pause-mini-app":var AP,
eM;(eM=(AP=c.callbacks).onPauseMiniApp)==null||eM.call(AP);break;case "yt-resume-mini-app":var ue,BH;(BH=(ue=c.callbacks).onResumeMiniApp)==null||BH.call(ue);break;case "yt-playable-ad-finished":var J3,lr;(lr=(J3=c.callbacks).onAdFinished)==null||lr.call(J3,uf(q,2,aE))}}else _.u6(Error("Rh"))}catch(xl){_.VO(Error("Sh"))}else _.u6(Error("Th"))};var oMk=function(c){this.rpcErrorCode=c};var pM=function(c,f,d){this.intervalMs=c;this.apiFunc=f;this.type=d;this.schedulerReady=!0};
pM.prototype.call=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1){if(f.type!==1&&c===f.cachedValue)return q.return();f.pendingApiRequestResolver||(f.pendingApiRequestResolver=new _.BS);d=f.pendingApiRequestResolver.promise;f.cachedValue=c;return q.yield(yno(f),2)}return q.return(d)})};
pM.prototype.flush=function(c){c=c===void 0?!1:c;var f=this;return _.k(function(d){return f.cachedValue===void 0?d.return():d.yield(f.apiFunc(f.cachedValue,c),0)})};
var yno=function(c){var f,d,q;return _.k(function(Z){switch(Z.nextAddress){case 1:if(!c.schedulerReady||!c.pendingApiRequestResolver)return Z.return();c.schedulerReady=!1;f=c.pendingApiRequestResolver;c.pendingApiRequestResolver=void 0;_.iY(Z,2);if(c.cachedValue===void 0){Z.jumpTo(4);break}return Z.yield(c.apiFunc(c.cachedValue),5);case 5:d=Z.yieldResult,f.resolve(d);case 4:_.Pq(Z,3);break;case 2:q=_.Yw(Z),f.reject(q);case 3:setTimeout(function(){return _.k(function(M){c.schedulerReady=!0;return M.yield(yno(c),
0)})},c.intervalMs),_.Fm(Z)}})};var fPG=window.location.origin+"/miniapp_cloudsaves",GgG=[400,401],Wlj=_.rx("cloud_save_game_data_rate_limit_ms",3E3),N5K=function(c){var f=this;this.JSC$16813_miniAppId=c;this.loadAttempts=0;this.cloudSaveIntervalMs=Wlj;this.initialDownloadDataSucceeded=!1;this.JSC$16813_playNonceResolver=new _.BS;this.scottyUploadRateLimiter=new pM(this.cloudSaveIntervalMs,function(d,q){return DEr(f,d,q)},2);
this.downloadDataPromise=eFu(this);this.downloadDataPromise.then(function(){f.initialDownloadDataSucceeded=!0}).catch(function(){})},Ifu=function(c,f){f.then(function(d){return c.JSC$16813_playNonceResolver.resolve(d)})},PLo=function(c){return _.k(function(f){return c.cachedData===void 0?f.return(c.downloadDataPromise):f.return(c.cachedData)})},RF_=function(c,f){return _.k(function(d){c.cachedData=f;
if(!c.initialDownloadDataSucceeded)throw Error("Uh");return d.yield(c.scottyUploadRateLimiter.call(f),0)})},UE3=function(){return new Promise(function(c){setTimeout(c,1E3,"")})},p$u=function(c,f){var d,q;
return _.k(function(Z){if(Z.nextAddress==1)return d=c.JSC$16813_miniAppId,Z.yield(Promise.race([c.JSC$16813_playNonceResolver.promise,UE3()]),2);q={"X-YouTube-MiniAppId":d,"X-YouTube-PostPlayNonce":Z.yieldResult};"DELEGATED_SESSION_ID"in _.VJ&&vtk(f,q);return Z.return(q)})},DEr=function(c,f,d){d=d===void 0?!1:d;
return _.k(function(q){return xqP()?_.F("enable_cloud_save_error_popup_after_retry")?q.return(new Promise(function(Z,M){var g,O,l,m,H;return _.k(function(A){switch(A.nextAddress){case 1:g=0,O=!0,m=l=null;case 2:if(!(O&&g++<2)){A.jumpTo(4);break}_.iY(A,5);return A.yield(xE3(c,f,d),7);case 7:l=A.yieldResult;O=l.ok?!1:!GgG.includes(l.status);_.Pq(A,2);break;case 5:m=H=_.Yw(A);O=c1k(m);A.jumpTo(2);break;case 4:l?l.ok?(xa(c,Wlj),Z()):(xa(c,c.cloudSaveIntervalMs*2),M(Error("Vh`"+String(l.status),{cause:{rpcErrorCode:l.status}}))):
(xa(c,c.cloudSaveIntervalMs*2),M(m||Error("Wh"))),_.Fm(A)}})})):q.return(new Promise(function(Z,M){var g,O;
return _.k(function(l){if(l.nextAddress==1){if(c.JSC$16813_miniAppId==="")return M(Error("Xh")),l.return();_.iY(l,2);return l.yield(xE3(c,f,d),4)}if(l.nextAddress!=2)return g=l.yieldResult,g.ok?(xa(c,Wlj),Z()):(xa(c,c.cloudSaveIntervalMs*2),M(Error("Vh`"+String(g.status),{cause:{rpcErrorCode:g.status}}))),_.Pq(l,0);O=_.Yw(l);xa(c,c.cloudSaveIntervalMs*2);M(O);_.Fm(l)})})):q.return()})},xE3=function(c,f,d){d=d===void 0?!1:d;
var q,Z,M;return _.k(function(g){if(g.nextAddress==1)return q=_.$S((new TextEncoder).encode(f)),Z=dcr(),g.yield(p$u(c,Z),2);M=g.yieldResult;return g.return(fetch(Z,{method:"POST",body:new Blob([q]),headers:M,keepalive:d}))})},eFu=function(c){var f,d;
return _.k(function(q){if(q.nextAddress==1){if(!xqP())return q.return("");if(c.JSC$16813_miniAppId==="")throw Error("Xh");if(c.loadAttempts>2)return q.return(c.downloadDataPromise);_.iY(q,2);return q.yield(om_(c),4)}if(q.nextAddress!=2)return f=q.yieldResult,q.return(f);d=_.Yw(q);if(c1k(d)&&++c.loadAttempts<2)return q.return(eFu(c));throw d;})},om_=function(c){var f,d,q,Z,M;
return _.k(function(g){switch(g.nextAddress){case 1:return _.iY(g,2),f=dcr(),g.yield(p$u(c,f),4);case 4:return d=g.yieldResult,g.yield(fetch(f,{method:"GET",headers:d}),5);case 5:return q=g.yieldResult,q.ok?g.yield(q.text(),6):g.return(Promise.reject(Error("Yh`"+String(q.status),{cause:new oMk(q.status)})));case 6:return Z=g.yieldResult,g.return((new TextDecoder).decode(_.pr(Z)));case 2:return M=_.Yw(g),g.return(Promise.reject(M))}})},xa=function(c,f){c.cloudSaveIntervalMs=f;
c.scottyUploadRateLimiter.intervalMs=c.cloudSaveIntervalMs};
N5K.prototype.flush=function(){var c=this;return _.k(function(f){return c.initialDownloadDataSucceeded?f.yield(c.scottyUploadRateLimiter.flush(!0),0):f.return()})};var GMj=rF(MB(1),qB(1)),c7o=rF(MB(1),qB(3)),oD=function(c){this.callbacks=c};
_.r=oD.prototype;_.r.onAudioToggled=function(c,f){(f===void 0||f)&&_.iK("yt-mini-app-is-audio-enabled",c,2592E3)};
_.r.onPause=function(){this.onAudioToggled(!1,!1)};
_.r.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.r.returnNativeBenchmarkingMessage=function(){};
_.r.sendGameData=function(){};
_.r.sendStartGameFrameCapture=function(){};
var jje=function(c,f,d){this.callbacks=c;var q=this;this.sdkVersion=new _.BS;this.channel=new W2C(_.jj({destination:window,iframe:f,origin:(new URL(d.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Z=Gw;var M=MB(5);var g=new L8_;g=_.hr(g,1,1E4);M=_.iX(M,4,hHT,g);Z(q,M);q.onAudioToggled(q.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){q.sdkVersion.resolve("")},1E4)};
_.K(jje,oD);_.r=jje.prototype;_.r.onAudioToggled=function(c,f){oD.prototype.onAudioToggled.call(this,c,f===void 0?!0:f);f=Gw;var d=MB(2),q=new QW_;c=_.C1(q,1,c);c=_.iX(d,3,hHT,c);f(this,c)};
_.r.onPause=function(){oD.prototype.onPause.call(this);Gw(this,MB(3))};
_.r.onResume=function(){oD.prototype.onResume.call(this);Gw(this,MB(4))};
_.r.returnNativeBenchmarkingMessage=function(c){var f=Gw,d=MB(6);var q=qB(_.tr(c,po,1)?1:2);c=_.tr(c,po,1)?c:null;q=_.iX(q,5,Zj,c);f(this,rF(d,q))};
_.r.sendGameData=function(c){var f=Gw,d=MB(7);c=_.iX(d,5,hHT,c);f(this,c)};
_.r.sendStartGameFrameCapture=function(){Gw(this,MB(9))};
var cM=function(c,f,d){var q,Z,M;return _.k(function(g){if(g.nextAddress==1)return q=c.callbacks,Z=q.onSdkCalled,M=f,g.yield(c.sdkVersion.promise,2);Z.call(q,M,g.yieldResult,d);_.Fm(g)})};
jje.prototype.onMessage=function(){var c=this;return NMM(kf,function(f){var d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R,qN,kl,BN,tP,EC,AP,eM,ue,BH,J3,lr,xl,Tv,ir,$_,AH,U3,MN,qH,br,YS,Y_,eu,fT,Gv;return _.k(function(Cj){switch(Cj.nextAddress){case 1:if(!RH3(f.data))return _.u6(Error("Zh")),Cj.return();d=_.VQ(f.data,1);_.F("enable_iframe_message_get_type_via_fields")&&(q=f.data,d=Z=_.VQ(q,1));switch(d){case 8:if(f.data.hasMetadata()){var dJ=c.sdkVersion,BD=dJ.resolve;var E3=f.data.getMetadata();E3=_.aW(E3,
1);BD.call(dJ,E3);clearTimeout(c.sdkVersionTimeoutId)}break;case 6:return Cj.jumpTo(2);case 16:if(!_.bf(f.data,W8o,14,OB))return Cj.return();M=_.vg(f.data,W8o,14,OB);(O=(g=c.callbacks).onGameFrameReceived)==null||O.call(g,M);return Cj.return();case 17:if(!_.bf(f.data,yry,15,OB))return Cj.return();(m=(l=c.callbacks).onGameAudioReceived)==null||m.call(l,_.vg(f.data,yry,15,OB));return Cj.return();case 1:if(dJ=_.vg(f.data,a2_,2,OB))switch(_.VQ(dJ,1)){case 1:c.callbacks.onFirstFrameReady();if(_.F("enable_network_request_logging_on_game_events")&&
_.tr(dJ,dF,4)){cM(c,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.TD(dJ,dF,4));break}cM(c,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(E3=(BD=c.callbacks).onGameReady)==null||E3.call(BD);if(_.F("enable_network_request_logging_on_game_events")&&_.tr(dJ,dF,4)){cM(c,"MINI_APP_SDK_API_GAME_READY",_.TD(dJ,dF,4));break}cM(c,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.bf(dJ,jw,3,V7T))c.callbacks.onResourceLoaded(_.vg(dJ,jw,3,V7T))}return Cj.return();case 3:return Cj.jumpTo(3);case 4:return Cj.jumpTo(4);
case 2:return Cj.jumpTo(5);case 9:return Cj.jumpTo(6);case 10:return c.callbacks.onClick(),Cj.return();case 5:return Cj.jumpTo(7);case 11:if(!_.bf(f.data,G0,9,OB))return Cj.return();H=_.vg(f.data,G0,9,OB);(Y=(A=c.callbacks).onBenchmarkingMessageReceived)==null||Y.call(A,H);dJ=f.reply;BD=MB(1);E3=qB(1);var Lj=new G0;var tH=new Uint8Array(lqr(H,FX(H,bST,6))|0);Lj=TP(Lj,5,bST,_.Su(tH,!1));E3=_.iX(E3,5,Zj,Lj);dJ.call(f,rF(BD,E3));return Cj.return();case 12:return Cj.jumpTo(8);case 13:return Cj.jumpTo(9);
case 15:if(!_.F("enable_open_yt_content"))return f.reply(c7o),Cj.return();if(!_.bf(f.data,wg_,12,OB))return f.reply(rF(MB(1),qB(2))),Cj.return();dJ=_.vg(f.data,wg_,12,OB);t=_.aW(dJ,1);c.callbacks.onOpenYTContent(t);f.reply(GMj);return Cj.return();case 14:return Cj.jumpTo(10);default:return Cj.return()}Cj.jumpTo(0);break;case 2:if(!_.bf(f.data,Cz,5,OB))return Cj.return();BD=f.data;dJ=FX(BD,OB,5);BD=BD.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=JHz(BD,BD[_.MH]|0,Cz,dJ)||Cz[VuY]||(Cz[VuY]=
XHC(Cz));dJ=_.db(E,cQ,1,_.jQ());J=_.C(dJ);X=J.next();case 12:if(X.done){Cj.jumpTo(14);break}u=X.value;W=new _.KD;W.level=_.VQ(u,2)===1?"WARNING":"ERROR";p=ZRe(u.getSource());return Cj.yield(c.sdkVersion.promise,15);case 15:N={source:p,sdkVersion:Cj.yieldResult};_.oK(_.Fv(u,6))!=null?(W.message=u.getMessage(),W.stack=_.aW(u,5),N.sdkErrorType=MiN(_.VQ(u,6)),_.oK(_.Fv(u,7))!=null&&(N.sdkApi=r1z(_.VQ(u,7)))):W.stack=void 0;R=I=void 0;(R=(I=c.callbacks).onError)==null||R.call(I,{loggingError:W,metadata:N});
X=J.next();Cj.jumpTo(12);break;case 14:return Cj.return();case 3:return _.iY(Cj,16),dJ=Cj.yield,BD=c.callbacks,E3=BD.onSave,Lj=_.vg(f.data,SJH,4,OB),Lj=_.aW(Lj,1),dJ.call(Cj,E3.call(BD,Lj),18);case 18:f.reply(GMj);_.Pq(Cj,17);break;case 16:return qN=_.Yw(Cj),kl=y0,BN=qN,tP=c.callbacks,EC="MINI_APP_SDK_API_SAVE_DATA",Cj.yield(c.sdkVersion.promise,19);case 19:kl(BN,tP,EC,Cj.yieldResult),f.reply(c7o);case 17:return Cj.yield(cM(c,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Cj.return();case 4:return _.iY(Cj,
21),Cj.yield(c.callbacks.onLoad(),23);case 23:AP=Cj.yieldResult;dJ=f.reply;BD=MB(1);E3=qB(1);Lj=new SJH;Lj=_.b5(Lj,1,AP);E3=_.iX(E3,3,Zj,Lj);dJ.call(f,rF(BD,E3));_.Pq(Cj,22);break;case 21:return eM=_.Yw(Cj),ue=y0,BH=eM,J3=c.callbacks,lr="MINI_APP_SDK_API_LOAD_DATA",Cj.yield(c.sdkVersion.promise,24);case 24:ue(BH,J3,lr,Cj.yieldResult),f.reply(c7o);case 22:return Cj.yield(cM(c,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Cj.return();case 5:_.iY(Cj,26);c.callbacks.onSendHighScore(V2(_.vg(f.data,
I2H,3,OB).getValue()));f.reply(rF(MB(1),qB(1)));_.Pq(Cj,27);break;case 26:return xl=_.Yw(Cj),Tv=y0,ir=xl,$_=c.callbacks,AH="MINI_APP_SDK_API_SEND_SCORE",Cj.yield(c.sdkVersion.promise,28);case 28:Tv(ir,$_,AH,Cj.yieldResult),f.reply(c7o);case 27:return Cj.yield(cM(c,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Cj.return();case 6:if(!_.bf(f.data,Pf_,8,OB)){Cj.jumpTo(30);break}dJ=Cj.yield;BD=_.vg(f.data,Pf_,8,OB);BD=_.VQ(BD,1);return dJ.call(Cj,cM(c,r1z(BD)),30);case 30:return Cj.return();case 7:return dJ=
f.reply,BD=MB(1),E3=qB(1),Lj=c.callbacks.getLanguage(),E3=TP(E3,4,Zj,lC(Lj)),dJ.call(f,rF(BD,E3)),Cj.yield(cM(c,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Cj.return();case 8:if(!_.bf(f.data,Nn3,10,OB))return Cj.return();U3=_.vg(f.data,Nn3,10,OB);MN=c.callbacks;qH=MN.onSdkPerformanceUpdate;return Cj.yield(c.sdkVersion.promise,33);case 33:return qH.call(MN,U3,Cj.yieldResult),Cj.return();case 9:dJ=f.data;BD=FX(dJ,OB,11);if(_.TC(_.Fv(dJ,BD))==null)return f.reply(rF(MB(1),qB(2))),Cj.return();
br=uf(f.data,11,OB);c.callbacks.onShareInviteCode(br);f.reply(GMj);return Cj.yield(cM(c,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Cj.return();case 10:if(_.bf(f.data,$6y,13,OB)){Cj.jumpTo(35);break}return Cj.yield(c.callbacks.onShowMiniAppAd(2),36);case 36:return YS=Cj.yieldResult,f.reply(rF(MB(1),uv_(YS))),Cj.yield(cM(c,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Cj.return();case 35:dJ=_.vg(f.data,$6y,13,OB);a:switch(_.VQ(dJ,1)){case 1:dJ={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:dJ={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:dJ={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Y_=dJ;eu=Y_.adType;fT=Y_.sdkApi;dJ=Cj.yield;BD=c.callbacks;E3=BD.onShowMiniAppAd;Lj=_.vg(f.data,$6y,13,OB);Lj=_.aW(Lj,2);return dJ.call(Cj,E3.call(BD,eu,Lj||void 0),38);case 38:return Gv=Cj.yieldResult,f.reply(rF(MB(1),uv_(Gv))),Cj.yield(cM(c,fT),39);case 39:return Cj.return()}})})};
var Gw=function(c,f){_.k(function(d){c.channel.send(f);_.Fm(d)})},WZ=function(c,f,d){this.callbacks=c;
var q=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;c=DSN(f,(new URL(d.toString())).origin);this.gameSnacks=new qCo(c);this.gameSnacks.page.onReady(function(){q.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){q.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Z,M;(M=(Z=q.callbacks).onGameReady)==null||M.call(Z)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Z,M){try{q.callbacks.onSendHighScore(M)}catch(g){y0(g,q.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Z,M){var g;return _.k(function(O){if(O.nextAddress==1)return _.iY(O,2),O.yield(q.callbacks.onSave(q.decoder.decode(M)),4);if(O.nextAddress!=2)return _.Pq(O,0);g=_.Yw(O);y0(g,q.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return O.return()})});
this.gameSnacks.storage.onLoad(function(){var Z,M;return _.k(function(g){if(g.nextAddress==1)return _.iY(g,2),g.yield(q.callbacks.onLoad(),4);if(g.nextAddress!=2)return Z=g.yieldResult,g.return(q.encoder.encode(Z));M=_.Yw(g);y0(M,q.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return g.return(q.encoder.encode(""))})});
this.gameSnacks.init()};
_.K(WZ,oD);WZ.prototype.onAudioToggled=function(c,f){oD.prototype.onAudioToggled.call(this,c,f===void 0?!0:f);var d;(d=this.gameSnacks)==null||d.audio.update(c)};
WZ.prototype.onPause=function(){oD.prototype.onPause.call(this);var c;(c=this.gameSnacks)==null||c.game.pause()};
WZ.prototype.onResume=function(){oD.prototype.onResume.call(this);var c;(c=this.gameSnacks)==null||c.game.resume()};var fq3=COn,diu=_.dN(function(c){var f=c.data;var d=c.loadingProgress;c=_.C(_.OT("",void 0,"LYYTdd"));var q=c.next().value,Z=c.next().value;c=_.C(_.OT(!1,void 0,"K0waae"));var M=c.next().value,g=c.next().value,O=[],l=function(){return"transform: scaleX("+(_.LL(d)||0)+")"},m=null,H=function(){return f()&&m!==null&&m!==void 0?m:m=f().showAnniversaryAnimation?6:fq3()};
_.$k(function(){var E;if(f().timeOutMessages&&((E=f().timeOutMessages)==null?0:E.length)){m=null;E=_.C(O);for(var J=E.next();!J.done;J=E.next())clearTimeout(J.value);O.length=0;gTk(f().timeOutMessages,O,Z,g)}},"BNu9j");
var A=function(){return!!f().persistentErrorMessageTitle},Y=function(){return d!==void 0},t=function(){return f().title};
return _.B("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var E,J=(E=f().backgroundImage)==null?void 0:E.sources,X;return(J==null?0:J.length)?"background-image: url("+((X=J[0])==null?void 0:X.url)+")":
""}}),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.B(_.T,{cond:function(){return!A()},
then:function(){var E={};return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.B(_.gT,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+H()},
data:function(){var J="loading_animation_"+H();return{animationConfig:{name:J,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+J+".json",loop:!0,autoplay:!0}}}})),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.B(_.T,{cond:t,
then:function(){return _.B("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},t)}}),_.B("p",{class:_.FY("mini-app-splash-screen-view-model-wiz__timeout-message",(E["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return M()},E)),
"aria-live":"polite"},q),_.B(_.T,{cond:Y,then:function(){return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.B("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:l}))}})))}}),_.B(_.T,{cond:A,
then:function(){return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.B("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return f().persistentErrorMessageTitle}),_.B(_.T,{cond:function(){return!!f().persistentErrorMessageDescription},
then:function(){return _.B("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return f().persistentErrorMessageDescription})}}))}})))},"de");var jB3=new _.jk("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var q1u=pL;pL=function(c){function f(d){if(d){var q,Z;(q=d.__spec)==null||(Z=q.didUnmount)==null||Z.call(q);for(q=0;q<d.childNodes.length;q++)f(d.childNodes[q])}}
q1u==null||q1u(c);af(function(){for(var d=0;d<c.length;d++)f(c[d])})};var ZHv=_.dN(function(c){var f=c.data;var d=c.score;var q=c.formattedScore;var Z=c.onScoreChanged;var M=c.isEmbeddedInWebview;var g=_.ob("yt-mini-app-score-button-view-model"),O=function(){var t;return _.b(f==null?void 0:(t=f())==null?void 0:t.buttonViewModel,_.zx)},l=function(){var t;
return(d==null?void 0:d())||Number(f==null?void 0:(t=f())==null?void 0:t.lastScore)||0},m=function(){var t;
return(q==null?void 0:q())||((t=O())==null?void 0:t.title)||""},H,A=1;
if(c=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))c=Number(c),A=isNaN(c)?1:c/100;_.$k(function(){Z==null||Z(l());var t;var E=_.D9((t=O())==null?void 0:t.onTap);if(E){t=_.b(E,n23);var J,X,u;t=_.b(t==null?void 0:(J=t.panelLoadingStrategy)==null?void 0:(X=J.inlineContent)==null?void 0:(u=X.dialogViewModel)==null?void 0:u.customContent,Fpy)}else t=void 0;if(J=t)J.score=m()},"KZFi5e");
c=_.Ks(function(){var t,E,J=f==null?void 0:(t=f())==null?void 0:(E=t.loggingDirectives)==null?void 0:E.trackingParams;J&&_.mZ(_.ql().resolve(_.z1),J);return!1});
_.L9(function(){if(g.value){var t=g.value.querySelector("button"),E=O();t&&E&&kqG(t,E);du("yt-share-playable-with-high-score",function(){var J=l().toString(),X=f==null?void 0:f().onShareHighScoreCommand,u=f==null?void 0:f().highScoreShareClientParamIdentifier,W=M==null?void 0:M();X&&(W?(u=new BlO,J=_.b5(u,2,J),wB(X,J.JSC$12259_serializeBinary())):u&&(_.ql().resolve(jB3).clientParams.set(u,{miniAppClientParams:{highScore:J}}),IyC(X,!1)))})}});
var Y=function(){var t=O();t&&(d==null?0:d())&&t.accessibilityText&&(t.accessibilityText=t.accessibilityText.replace(H,m()));H=m();return{numberValue:l(),numberText:m(),heightPx:36,fontSizeMultiplier:A,shouldAnimate:!(d==null||!d())&&!0}};
return _.B("yt-mini-app-score-button-view-model",{class:function(){var t={};return _.tp("mini-app-score-button-view-model-wiz",(t["mini-app-score-button-view-model-wiz--is-visible"]=l()!==0,t))},
el:g,"on:click":c},p1(!1,function(){return _.B("span",{style:"display:none;"},l)}),_.B(_.u7,{data:function(){var t;
return f==null?void 0:(t=f())==null?void 0:t.buttonViewModel}},{buttonViewModel:function(t){return _.B(_.mN,{data:t.data,
animatedTextProps:Y})}}))},"ee");var kJH=_.dN(function(c){var f,d=(f=_.T7("yt-mini-app-is-theater-mode-enabled"))!=null?f:!1,q=_.F("enable_playable_container_save_button"),Z=_.F("enable_play_next_destination_page_in_toolbar");f={};return _.B("ytm-mini-app-top-bar-view-model",null,_.B("div",{class:_.FY("yt-mini-app-top-bar-view-model",(f["yt-mini-app-top-bar-view-model--mobile"]=!1,f["yt-mini-app-top-bar-view-model--desktop"]=!0,f))},_.B("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.B(_.T,{cond:function(){var M;
return!!c.data().backButtonEdu&&!((M=c.isExitMiniAppSeen)==null?0:M.call(c))},
then:function(){return _.B(_.u7,{data:function(){return c.data().backButtonEdu}},{buttonViewModel:_.mN})},
else:function(){return _.B(_.u7,{data:function(){return c.data().backButton}},{buttonViewModel:_.mN})}}),_.B(_.T,{cond:function(){return c.data().viewAllButton&&!0},
then:function(){return _.B(_.u7,{data:function(){return c.data().viewAllButton}},{buttonViewModel:_.mN})}}),_.B(_.T,{cond:function(){return c.data().title&&!0},
then:function(){return _.B("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return c.data().title})}})),_.B("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.B(_.T,{cond:function(){var M;
return(M=c.isDesktopPlayPage)==null?void 0:M.call(c)},
then:function(){return _.B(_.qD,null,_.B(MfH,{highScoreButton:function(){return c.data().highScoreButton},
score:c.score,formattedScore:c.formattedScore,onScoreChanged:c.onScoreChanged,isEmbeddedInWebview:c.isEmbeddedInWebview}),_.B(r7y,{enableSaveButton:function(){return _.LL(q)},
saveButton:function(){return c.data().saveButton},
isSaved:c.isSaved,onSaveToggled:function(){return c.onSaveToggled}}),_.B(CU_,{menuButton:function(){return c.data().menuButton}}))},
else:function(){return _.B(_.T,{cond:function(){return!1},
then:function(){return _.B(_.u7,{data:function(){return c.data().playPageButton}},{buttonViewModel:function(M){return _.B(_.mN,{data:M.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.B(MfH,{highScoreButton:function(){return c.data().highScoreButton},
score:c.score,formattedScore:c.formattedScore,onScoreChanged:c.onScoreChanged,isEmbeddedInWebview:c.isEmbeddedInWebview})}})}})),_.B("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.B(_.u7,{data:function(){return c.data().muteButton}},{toggleButtonViewModel:function(M){var g=M.data;
return _.B(_.JL,{data:function(){var O,l;return Object.assign({},g(),{isToggled:(l=(O=c.isAudioEnabled)==null?void 0:O.call(c))!=null?l:!0})},
onToggle:c.onAudioToggled,useOutlinedIcon:!0})}}),_.B(_.u7,{data:function(){return c.data().theatreModeButton}},{toggleButtonViewModel:function(M){var g=M.data;
return _.B("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.B(_.JL,{data:function(){return Object.assign({},g(),{isToggled:d})},
useOutlinedIcon:!0}))}}),_.B(gPr,{fullscreenButton:function(){return c.data().fullscreenButton}}),_.B(_.T,{cond:function(){return _.LL(Z)&&c.data().viewAllButton&&!1},
then:function(){return _.B(_.u7,{data:function(){return c.data().viewAllButton}},{buttonViewModel:_.mN})}}),_.B(_.T,{cond:function(){var M;
return!((M=c.isDesktopPlayPage)==null?0:M.call(c))},
then:function(){return _.B(_.qD,null,_.B(r7y,{enableSaveButton:function(){return _.LL(q)},
saveButton:function(){return c.data().saveButton},
isSaved:c.isSaved,onSaveToggled:function(){return c.onSaveToggled}}),_.B(CU_,{menuButton:function(){return c.data().menuButton}}))}}))))},"fe");
kJH.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var CU_=_.dN(function(c){return _.B(_.u7,{data:c.menuButton},{buttonViewModel:_.mN})},"ge"),r7y=_.dN(function(c){var f=c.enableSaveButton;
var d=c.saveButton;var q=c.isSaved;var Z=c.onSaveToggled;return _.B(_.T,{cond:function(){return f()&&!(d==null||!d())},
then:function(){return _.B(_.u7,{data:function(){var M=_.b(d==null?void 0:d(),_.Jc),g;return{toggleButtonViewModel:Object.assign({},M,{isToggled:(g=q==null?void 0:q())!=null?g:!(M==null||!M.isToggled)})}}},{toggleButtonViewModel:function(M){return _.B(_.JL,{data:M.data,
onToggle:Z})}})}})},"he"),MfH=_.dN(function(c){var f=c.highScoreButton;
var d=c.score;var q=c.formattedScore;var Z=c.onScoreChanged;var M=c.isEmbeddedInWebview;return _.B(_.u7,{data:f},{miniAppScoreButtonViewModel:function(g){return _.B(ZHv,{data:g.data,score:d,formattedScore:q,onScoreChanged:Z,isEmbeddedInWebview:M})}})},"ie"),gPr=_.dN(function(c){c=c.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.B(_.qD,null):_.B(_.u7,{data:c},{buttonViewModel:_.mN})},"je");_.OH3=new _.jk("DESKTOP_CURRENT_PAGE");var miO=_.dN(function(c){var f=c.data;var d=_.F("force_active_time_logging_webview"),q=!1,Z=new hFF,M=void 0,g=void 0,O=_.ql().resolve(vm3),l=new afj,m=void 0,H=void 0,A=[],Y=void 0,t=void 0,E=!1,J=!1,X=!1,u=!1,W=new _.BS,p=_.ql().resolve(jB3),N=_.ql().resolve(_.PT),I=_.ql().resolve(_.dx(FT)),R,qN=(R=_.ql().resolve(_.dx(_.OH3)))==null?void 0:R.getCurrentPage(),kl=!1,BN=0,tP=function(PN){PN.preventDefault();return PN.returnValue=""},EC;
c=_.C(_.OT(!((EC=_.T7("yt-mini-app-is-audio-enabled"))!=null&&!EC),void 0,"cGaEvf"));var AP=c.next().value,eM=c.next().value,ue;EC=_.C(_.OT(!((ue=_.T7("exit-mini-app-seen-state"))==null||!ue),void 0,"DctXGe"));var BH=EC.next().value,J3=EC.next().value;ue=_.C(_.OT(!1,void 0,"pU1jdd"));var lr=ue.next().value,xl=ue.next().value;ue=_.C(_.OT(void 0,void 0,"ldLqDf"));var Tv=ue.next().value,ir=ue.next().value;ue=_.C(_.OT(void 0,void 0,"mdofE"));var $_=ue.next().value,AH=ue.next().value;ue=_.C(_.OT(!0,void 0,
"T1gxCf"));var U3=ue.next().value,MN=ue.next().value;ue=_.C(_.OT(!1,void 0,"gxt7wf"));var qH=ue.next().value,br=ue.next().value;ue=_.C(_.OT(void 0,void 0,"yqLV6d"));var YS=ue.next().value,Y_=ue.next().value;ue=_.C(_.OT(0,void 0,"l6CrGf"));var eu=ue.next().value,fT=ue.next().value,Gv=_.xz("mini-app-container-view-model"),Cj=function(){return f().isEmbeddedInWebview},dJ=function(){return f().hasPlayNextShelf};
du("yt-page-type-changed",function(PN){if(_.F("enable_is_mini_app_page_active_bugfix"))PN.detail.newPageSubtype==="mini_app"&&PN.detail.newPageType==="ytd-browse"||!U3()||Lj();else if(PN=_.hAN()==="mini_app",PN!==U3())if(MN(PN),PN){var iC;PN=(iC=f().playableId)==null?void 0:iC.toString();PN!==void 0&&window.location.href.includes(PN)&&!J&&(u=!0,BD(),A3.value&&QM(A3.value))}else PN||Lj()});
du("yt-action",function(PN){PN.detail.actionName==="yt-engagement-panel-visible-changed"&&PN.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&PN.detail.args[2]==="PAmini_app_panel"&&Lj();_.F("enable_is_mini_app_page_active_bugfix")?PN.detail.actionName==="yt-history-load"&&!U3()&&(qN==null?0:qN.active)?(MN(!0),BD(),A3.value&&QM(A3.value)):PN.detail.actionName==="yt-history-load"&&U3()&&!f().isEmbeddedInWebview&&KG():U3()&&PN.detail.actionName==="yt-history-load"&&(u?u=!1:f().isEmbeddedInWebview||
KG())});
_.Q4(function(){E3()});
_.$k(function(){BD()},"PiwKsd");
var BD=function(){var PN=f().playableId,iC=f().localReleaseId,PD=f().derivedDeviceInterface;if(J)_.u6(new _.KD("[MiniAppContainerViewModel] onEnter was called more than once"));else{J=!0;M=new Flr(PN,iC,PD,document.visibilityState==="visible");Emr(M);g=new N5K(PN);lqj(O,PN);VGy(l,{showMiniAppAdCommand:f().showMiniAppAdCommand,isEmbeddedInWebview:f().isEmbeddedInWebview,playLogger:M});bCN()&&(t=document.body.style.backgroundColor,_.w4(document.body,"background-color","black"));zf();Kj();W=new _.BS;
if(f().isEmbeddedInWebview){if(PN=(new URLSearchParams(window.location.search)).get("postPlayNonce"))b4j(M,PN),kl=!0;Z.initialize({onAudioStateLoaded:function(Ur){sr(Ur)},
onMuteMiniApp:function(){sr(!1)},
onUnmuteMiniApp:function(){sr(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Ur){kl||(b4j(M,Ur),kl=!0)},
confirmExitMiniApp:function(){var Ur,l5,rk;return _.k(function(Av){if(Av.nextAddress==1)return f().confirmExitMiniAppCommand?Av.yield(Promise.race([W.promise,Promise.resolve(!1)]),2):Av.return();(Ur=Av.yieldResult)?!f().confirmExitMiniAppCommandEdu||(rk=(l5=BH)==null?void 0:l5())!=null&&rk?EM(f().confirmExitMiniAppCommand):(EM(f().confirmExitMiniAppCommandEdu),_.iK("exit-mini-app-seen-state","true",2592E6)):EM(f().closeMiniAppCommand);_.Fm(Av)})},
onNativeBenchmarkingMessageReceived:function(Ur){Ur=E9v(_.IPl(Ur));if(_.bf(Ur,_.vZ,3,t7T)){var l5=_.vg(Ur,_.vZ,3,t7T),rk=PZk();var Av=V2(rk.getSeconds())-V2(l5.getSeconds());l5=_.qx(rk,2)-_.qx(l5,2);Av<0&&l5>0?(Av+=1,l5-=1E9):Av>0&&l5<0&&(--Av,l5+=1E9);Av=(new po).setSeconds(Av);Av=_.p3(Av,2,_.cD(l5),0);_.BU(Ur,1,Av)}var Bj;(Bj=H)==null||Bj.returnNativeBenchmarkingMessage(Ur)},
multiplayer3pAckStateLoaded:function(Ur){KG(Ur)},
exitMiniAppSeenStateLoaded:function(Ur){f().confirmExitMiniAppCommandEdu&&J3(Ur)},
onNavigateToNewMiniApp:function(){EM(f().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Ur){Ur=new URLSearchParams(Ur);var l5=void 0;Ur.has("invite_code")&&(l5=new Jr3,Ur=Ur.get("invite_code"),l5=_.b5(l5,1,Ur));if(Ur=l5){var rk;(rk=H)==null||rk.sendGameData(Ur)}},
onPauseMiniApp:function(){q=!0;tH()},
onResumeMiniApp:function(){q=!0;Ol()},
onAdFinished:function(Ur){l.onAdFinished(Ur)}});
f().showMultiplayer3pConsentDialogCommand||W.resolve(!0);EM(f().onContainerReadyCommand)}else b4j(M),W.resolve(!0);Ifu(g,tGj(M));tGj(M).then(function(Ur){Ur={miniAppPlayData:{postPlayNonce:Ur}};var l5,rk=(l5=f().loggingDirectives)==null?void 0:l5.trackingParams;rk&&_.bP().stateChanged(rk,Ur)});
PN=f().showSignInDialogCommand;!xqP()&&PN&&(_.iK("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),EM(PN));f().confirmExitMiniAppCommand&&I&&(PN=e6N(f().confirmExitMiniAppCommand))&&(I.customConfirmationCommand=PN)}},E3=function(){t&&_.w4(document.body,"background-color",t);
E=!1;Y&&Y.release();g.flush().catch(function(PN){_.u6(PN)});
O.flush().catch(function(PN){_.u6(PN)});
$Ej(M);uX();H=void 0;sBr(p)},Lj=function(){MN(!1);
E3();xl(!1);Y_(void 0);ir(void 0);AH(void 0);BN=0;fT(0);J=!1},tH=function(){var PN;
(PN=H)==null||PN.onPause();Y&&Y.release();g.flush().catch(function(iC){_.u6(iC)});
O.flush().catch(function(iC){_.u6(iC)});
nmy(M)},Ol=function(){var PN;
(PN=H)==null||PN.onResume();Kj();PN=M;PN.isForeground=!0;UF(PN,"PLAY_EVENT_TYPE_PLAY_RESUME")},sr=function(PN){var iC;
(iC=H)==null||iC.onAudioToggled(PN);eM(PN)},KG=function(PN){f().showMultiplayer3pConsentDialogCommand&&(f().isEmbeddedInWebview&&PN!==void 0&&W.resolve(PN),!PN&&_.hAN()==="mini_app"&&EM(f().showMultiplayer3pConsentDialogCommand))},pZ=function(){var PN,iC,PD,Ur;
return _.k(function(l5){if(l5.nextAddress==1){!f().isLivestream||f().disableVideoCapture||(PN=H)!=null&&PN.sendStartGameFrameCapture();iC=(new URL(window.location.href)).searchParams;if(iC.has("invite_code")){var rk=new Jr3,Av=iC.get("invite_code");PD=_.b5(rk,1,Av);(Ur=H)==null||Ur.sendGameData(PD)}lr()||(xl(!0),rk=M,rk.state!==1?_.u6(new _.KD("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+AnF[rk.state])):(_.gx("mini_app_ids_without_game_ready").includes(rk.JSC$16769_miniAppId)&&(rk.gameReady=
!0),rk.state=2,rk.beforeReady=!1,RD(rk,"ma_ffr"),UF(rk,"PLAY_EVENT_TYPE_PLAY_READY")));return l5.yield(W.promise,2)}EM(f().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();f().isEmbeddedInWebview||KG();_.Fm(l5)})},NH=function(){var PN=M;
PN.gameReady=!0;RD(PN,"ma_gr")},aG=function(PN){var iC;
return _.k(function(PD){if(PD.nextAddress==1)return _.iY(PD,2),PD.yield(RF_(g,PN),4);if(PD.nextAddress!=2)return _.Pq(PD,0);iC=_.Yw(PD);EM(f().showSavingErrorPopupCommand);throw iC;})},eF=function(){var PN,iC;
return _.k(function(PD){if(PD.nextAddress==1)return _.iY(PD,2),PD.yield(PLo(g),4);if(PD.nextAddress!=2)return PN=PD.yieldResult,PD.return(PN);iC=_.Yw(PD);EM(f().showLoadingErrorDialogCommand);throw iC;})},T8=function(PN){M.logError(PN)},jZ=function(PN,iC,PD){SHH(M,PN,iC,PD)},Zg=function(PN,iC){zF3(M,PN,iC)},tw=function(){!d&&f().isEmbeddedInWebview||_.qu();
QR_(M,!0);E||(window.addEventListener("beforeunload",tP,{capture:!0}),E=!0)},LD=function(PN){var iC,PD,Ur,l5,rk,Av,Bj;
return _.k(function(Pg){if(Pg.nextAddress==1)return O&&(!m||m<PN)&&PN>0?Pg.yield(BcO(O,PN),3):Pg.jumpTo(0);iC=Pg.yieldResult;PD=_.C(iC);Ur=PD.next().value;l5=PD.next().value;rk=Ur;Av=l5;((Bj=rk)==null?0:Bj.displayString)&&Av&&(ir(Av),AH(rk.displayString));_.Fm(Pg)})},Mz=function(PN){var iC=f().onBenchmarkingMessageReceivedCommand;
if(iC){var PD=PZk();_.iX(PN,3,t7T,PD);wB(iC,n93(PN))}},zP=function(PN){var iC=f().onGameFrameReceivedCommand;
if(iC){var PD=new Vb;var Ur=new TE_;var l5=zK(PN,1);Ur=_.b6(Ur,1,l5);PN=_.aW(PN,2);PN=_.b5(Ur,2,PN);PD=_.BU(PD,2,PN);wB(iC,Y4K(PD))}},nr=function(PN){var iC=f().onGameAudioDataReceivedCommand;
if(iC){var PD=new Vb;var Ur=new Hi3;PN=_.aW(PN,1);Ur=_.b5(Ur,1,PN);PD=_.BU(PD,4,Ur);wB(iC,Y4K(PD))}},vN=function(){var PN=new URLSearchParams(window.location.search);
if(f().isEmbeddedInWebview&&PN&&PN.get("override_hl")==="true"&&PN.get("hl"))return PN.get("hl");PN=document.documentElement.lang;return PN!==""?PN:_.D8},NN=function(PN){var iC=f().onShareInviteCodeCommand;
if(iC)if(f().isEmbeddedInWebview){var PD=new BlO;PN=_.b5(PD,1,PN);wB(iC,Tl3(PN))}else PD=f().inviteCodeShareClientParamIdentifier,p.clientParams.set(PD,{miniAppClientParams:{inviteCode:PN}}),EM(iC)},Fy=function(PN){var iC,PD,Ur;
return _.k(function(l5){if(l5.nextAddress==1)return iC=f().onMiniAppOpenYtContentRequested,O&&_.F("enable_open_yt_content")&&iC?l5.yield(iH3(O,PN),3):l5.jumpTo(0);PD=l5.yieldResult;if(PD==="OK")if(f().isEmbeddedInWebview){var rk=new lnj;Ur=TP(rk,2,aE,lC(PN));wB(iC,iir(Ur))}else N.clientData.set("video_id",PN),EM(iC);_.Fm(l5)})},Or=function(PN){BN+=_.qx(PN,3);
PN=Math.min(Math.log(1+BN/15E6*9)/Math.log(10),.99);fT(PN);z8(PN)},z8=_.Ko(function(PN){var iC=f().updateLoadingProgressCommand;
if(iC){var PD=new lnj;PN=TP(PD,3,aE,_.DO(PN));wB(iC,iir(PN))}},100),bC=function(PN){return uRo(l,PN)},Kj=function(){var PN,iC;
((PN=_.bE4())==null?void 0:(iC=PN.wakeLock)==null?void 0:iC.request)!=null&&_.bE4().wakeLock.request("screen").then(function(PD){Y=PD}).catch(function(){})},A3=_.ob("iframe");
_.$k(function(){f().isSupportedCountry&&(xqP()||_.F("enable_sign_in_promo")||!f().showSignInDialogCommand?A3.value&&QM(A3.value):EM(f().onMiniAppReadyCommand))},"XK60ib");
var Vq=function(){return _.B("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return lr()?0:-1},
el:A3})},QM=function(PN,iC){iC=iC===void 0?!1:iC;
var PD=HH();PD&&(iC||PD.toString()!==PN.getAttribute("src"))&&(H=qnP(f().source,{isAudioEnabled:AP,onFirstFrameReady:pZ,onGameReady:NH,onSave:aG,onLoad:eF,onError:T8,onSdkCalled:jZ,onSdkPerformanceUpdate:Zg,onClick:tw,onSendHighScore:LD,onBenchmarkingMessageReceived:Mz,getLanguage:vN,onShareInviteCode:NN,onResourceLoaded:Or,onOpenYTContent:Fy,onShowMiniAppAd:bC,onGameFrameReceived:zP,onGameAudioReceived:nr},PN,PD),nx(PN,"load",function(){RD(M,"ma_il");nx(PN,"load",function(){QM(PN,!0)})}),_.NS(PN,
PD))},HH=function(){var PN=f().url;
if(PN&&(PN=_.Vm(PN),PN!==null)){if(f().source&&f().source==="MINI_APP_SOURCE_GAMESNACKS")PN=_.gk(PN,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.F("enable_origin_query_parameter_bugfix")){var iC=_.Lp(_.bBe(PN.toString()));iC=new URLSearchParams(iC||"");iC.set("origin",window.location.origin);iC=iC.toString();PN=_.Kq(PN).toString();PN=_.bX(aOO.exec(PN)[0]+(iC.trim()?"#"+iC:""))}return PN}},I8=function(){var PN={};
PN=_.FY("yt-mini-app-container-view-model__loading-screen",(PN["yt-mini-app-container-view-model__loading-screen--fade-out"]=lr,PN));var iC=function(){return lr()?1:eu()};
return _.B("div",{class:PN},_.B(_.u7,{data:function(){return f().splashScreen}},{miniAppSplashScreenViewModel:function(PD){return _.B(diu,{data:PD.data,
loadingProgress:iC})}}))},zf=function(){A=[];
A.push(_.Lx(window,"visibilitychange",function(){X||q&&Cj()||(document.visibilityState==="visible"?Ol():tH())}));
A.push(_.Lx(window,"pagehide",function(){E3()}));
A.push(_.Lx(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Gv.value.dispatchEvent(new Event("tap"))},0)}));
A.push(_.Lx(Gv.value,"pointerdown",function(){QR_(M,!1)},!0));
A.push(_.Lx(Gv.value,"pause",function(){X=!0;tH()}));
A.push(_.Lx(Gv.value,"play",function(){X=!1;Ol()}));
A.push(_.Lx(Gv.value,"exit",function(){E3()}));
var PN=navigator.keyboard,iC=PN&&PN.lock;A.push(_.Lx(window,Poy,function(){br(UL_());UL_()?(f().hasPlayNextShelf&&uP("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),pu("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),iC&&PN.lock(["Escape"])):(f().hasPlayNextShelf&&pu("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),uP("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),iC&&PN.unlock())}));
f().showMultiplayer3pConsentDialogCommand&&A.push(_.Lx(window,"yt-playables-ack-3p-data-usage",function(){Tc3(O)}));
f().confirmExitMiniAppCommandEdu&&A.push(_.Lx(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.iK("exit-mini-app-seen-state","true",2592E6)}));
f().onGameAudioDataReceivedCommand&&A.push(_.Lx(window,"message",function(PD){PD=PD.event_;var Ur,l5=(Ur=A3.value)==null?void 0:Ur.src;if(l5&&PD.origin===(new URL(l5)).origin&&PD.data&&PD.data.type==="GAME_AUDIO"&&PD.data.audio&&PD.data.audio.length>0)if(_.F("enable_sending_unwrapped_game_audio_as_serialized_metadata"))UqP(f().onGameAudioDataReceivedCommand,PD.data.audio);else{var rk=new FileReader;rk.onload=function(){var Av=new Vb;var Bj=new Hi3;Bj=_.b5(Bj,1,rk.result);Av=_.BU(Av,4,Bj);wB(f().onGameAudioDataReceivedCommand,
Y4K(Av))};
rk.readAsDataURL(new Blob([PD.data.audio]))}}))},uX=function(){A.forEach(function(PN){$p(PN)});
window.removeEventListener("beforeunload",tP,{capture:!0})},EM=function(PN){PN&&IyC(PN,f().isEmbeddedInWebview||!1)},pu=function(PN,iC){PN=_.C(Gv.value.getElementsByClassName(PN));
for(var PD=PN.next();!PD.done;PD=PN.next())PD.value.classList.add(iC)},uP=function(PN,iC){PN=_.C(Gv.value.getElementsByClassName(PN));
for(var PD=PN.next();!PD.done;PD=PN.next())PD.value.classList.remove(iC)};
return function(){var PN={};PN=_.FY("yt-mini-app-container-view-model",(PN["yt-mini-app-container-view-model--desktop"]=!0,PN["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return f().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},PN["yt-mini-app-container-view-model--ios-web-view"]=bCN(),PN["yt-mini-app-container-view-model--no-top-bar"]=function(){return!f().topBar},PN["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return f().hasPlayNextShelf},PN["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return f().hasPlayNextShelf},PN["yt-mini-app-container-view-model--show-peek-below"]=function(){return!qH()&&f().hasPlayNextShelf},PN));
var iC={};iC=_.FY("yt-mini-app-container-view-model__content",(iC["yt-mini-app-container-view-model__content--desktop-content"]=!0,iC["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return f().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},iC["yt-mini-app-container-view-model--desktop-play-page"]=function(){return f().hasPlayNextShelf},iC));
return _.B("mini-app-container-view-model",{el:Gv},_.B("div",{class:PN},_.B(_.T,{cond:function(){return f().topBar&&!qH()},
then:function(){return _.B(_.u7,{data:function(){return f().topBar}},{miniAppTopBarViewModel:function(PD){return _.B(kJH,{data:PD.data,
isAudioEnabled:AP,onAudioToggled:function(Ur){sr(Ur)},
score:Tv,formattedScore:$_,onScoreChanged:function(Ur){m=Ur},
isEmbeddedInWebview:Cj,isSaved:YS,onSaveToggled:function(Ur){Y_(Ur)},
isExitMiniAppSeen:BH,isDesktopPlayPage:dJ})}})}}),_.B("div",{class:iC},_.B(_.T,{cond:U3,
then:function(){return Vq()}}),_.B(_.T,{cond:function(){return!f().isEmbeddedInWebview},
then:function(){return I8()}}))))}()},"ke");
miO.idomCompat=!0;_.g_(miO,"mini-app-container-view-model",{props:{data:_.oM}});var HHv=_.dN(function(c){var f=c.data;return _.B("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.B("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Ks(function(){var d=f().onTap;d&&_.Ph(d)})},_.B(_.T,{cond:function(){return f().icon},
then:function(d){return _.B(_.Qy,{icon:function(){return d().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.B("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return f().title})))},"le");
HHv.idomCompat=!0;var A7r=_.dN(function(c){var f=_.xz("div"),d=_.C(_.OT(void 0,void 0,"kFCJ0c")),q=d.next().value,Z=d.next().value;d=_.C(_.OT(void 0,void 0,"PIPgWd"));var M=d.next().value,g=d.next().value;d=_.C(_.OT(void 0,void 0,"rV66ob"));var O=d.next().value,l=d.next().value,m=function(){var u=q();return u!==void 0?Math.abs(u):void 0},H=function(){var u=m();
return u===void 0||u<=3},A=function(){var u=m();
var W=M(),p=O();u=u!==void 0&&W!==void 0&&p!==void 0?W-p-u:void 0;return u===void 0||u<=3},Y=function(u){f.value&&f.value.scrollBy({top:0,
left:(_.hk("HTML_DIR")==="rtl"?-1:1)*u*f.value.clientWidth,behavior:"smooth"})},t=function(){var u;
Z((u=f.value)==null?void 0:u.scrollLeft);var W;g((W=f.value)==null?void 0:W.scrollWidth);var p;l((p=f.value)==null?void 0:p.clientWidth)},E=function(){Y(-.5)},J=function(){Y(.5)};
d=_.Ks(function(){t()});
_.QJ(function(){t();if(f.value){var u=new ResizeObserver(t);u.observe(f.value);_.Q4(function(){u.disconnect()})}});
var X={};return _.B("yt-sponsorships-scrollable-shelf",{class:_.FY("ytdSponsorshipsScrollableShelfHost",c.className)},_.B("div",{class:_.FY("ytdSponsorshipsScrollableShelfContent",(X.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return c.data().previousButton&&c.data().nextButton&&!H()&&!A()},X.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return c.data().previousButton&&!H()&&A()},X.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return c.data().nextButton&&
H()&&!A()},X)),
el:f,"on:scroll":d},c.children),_.B(_.T,{cond:function(){return!H()},
then:function(){return _.B(_.u7,{data:function(){return c.data().previousButton}},{buttonViewModel:function(u){return _.B(_.mN,{data:u.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:E})}})}}),_.B(_.T,{cond:function(){return!A()},
then:function(){return _.B(_.u7,{data:function(){return c.data().nextButton}},{buttonViewModel:function(u){return _.B(_.mN,{data:u.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:J})}})}}))},"me");
A7r.idomCompat=!0;var FWH=_.dN(function(c){var f=c.data;c={};return _.B("yt-sponsorships-hub",{class:_.FY("ytdSponsorshipsHubHost",(c.ytdSponsorshipsHubHostIndented=function(){return f().indented},c))},_.B("div",{class:"ytdSponsorshipsHubHeader"},_.B("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.B("div",{class:"ytdSponsorshipsHubAvatar"},_.B(_.u7,{data:function(){return f().avatar}},{avatarViewModel:_.ag})),_.B(_.T,{cond:function(){return f().badgeImage},
then:function(d){return _.B("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.B("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.B("div",{class:"ytdSponsorshipsHubBadge"},_.B(_.jC,{data:d,targetWidth:24,targetHeight:24,alt:""}))))}})),_.B("div",{class:"ytdSponsorshipsHubDetails"},_.B("div",{class:"ytdSponsorshipsHubTierName"},function(){return f().tierName}),_.B("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return f().membershipType}),_.B("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return f().membershipDurationOrExpiry})),_.B("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.B(_.u7,{data:function(){return f().manageButton}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.B(_.u7,{data:function(){return f().actionMenuButton}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.B("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return f().perksTitle}),_.B(A7r,{data:function(){return{previousButton:f().previousPerkButton,
nextButton:f().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.B("div",{class:"ytdSponsorshipsHubPerkCards"},_.B(_.u7,{data:function(){return f().perkCards}},{sponsorshipsHubPerkCardViewModel:HHv}),_.B(_.T,{cond:function(){return f().viewAllPerksButton},
then:function(d){return _.B(Y1u,{data:d})}}))))},"ne");
FWH.idomCompat=!0;var Y1u=_.dN(function(c){var f=c.data;return _.B("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.B(_.u7,{data:function(){return f().button}},{buttonViewModel:_.mN}),_.B("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.B("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return f().title}),_.B("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return f().subtitle})))},"oe");
Y1u.idomCompat=!0;_.g_(FWH,"yt-sponsorships-hub",{props:{data:_.oM}});_.tfH=_.dN(function(c){var f=c.data;return _.B("yt-dual-avatar-view-model",{class:_.FY("ytDualAvatarViewModelHost",c.className),style:_.$Z({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var d;return((d=f().badgeCutoutRadius)!=null?d:14)+"px"}})},_.B("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.B(_.u7,{data:function(){return f().startAvatar}},{avatarViewModel:_.ag}),_.B(_.u7,{data:function(){return f().endAvatar}},{avatarViewModel:_.ag})),_.B(_.u7,{data:function(){return f().badge}},
{contentPreviewImageViewModel:function(d){return _.B("div",{class:"ytDualAvatarViewModelBadge"},_.B(_.CQ,{data:d.data}))}}))},"pe");
_.tfH.idomCompat=!0;var KWu=_.dN(function(c){var f=c.data;var d,q=!((d=_.ql().resolve(_.dx(_.of)))==null||!d());c=_.TZ(function(){var H,A,Y=q?(H=f().header)==null?void 0:H.backgroundColorDarkMode:(A=f().header)==null?void 0:A.backgroundColorLightMode;if(Y!==void 0)return _.WS(Y)},void 0,"UX2G6c");
d=_.TZ(function(){var H,A;return q?(H=f().header)==null?void 0:H.backgroundImagePart1Dark:(A=f().header)==null?void 0:A.backgroundImagePart1Light},void 0,"GPAi1d");
var Z=_.TZ(function(){var H,A;return q?(H=f().header)==null?void 0:H.backgroundImagePart2Dark:(A=f().header)==null?void 0:A.backgroundImagePart2Light},void 0,"nboJld"),M=_.TZ(function(){return _.hk("HTML_DIR")==="rtl"},void 0,"LGJceb"),g=_.xz("yt-sponsorships-perks-list"),O=!1,l=function(){var H=g.value;
if(H&&!O){var A,Y=(A=H.parentElement)==null?void 0:A.parentElement;if(Y)for(H=H.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),A=0;A<H.length;++A){var t=H[A];if(t instanceof HTMLElement){Y.scrollTo({top:t.offsetTop+t.clientHeight/2-Y.clientHeight/2,behavior:"smooth"});O=!0;break}}}};
_.L9(function(){var H=g.value;if(H){var A=new ResizeObserver(l);A.observe(H);_.Q4(function(){A.disconnect()})}});
var m={};return _.B("yt-sponsorships-perks-list",{el:g,class:_.FY("ytdSponsorshipsPerksListHost",(m.ytdSponsorshipsPerksListHorizontalPadding=function(){return f().horizontalPaddingEnabled},m))},_.B("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.B("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.$Z({"background-color":c})},_.B("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.B(_.T,{cond:d,then:function(H){var A={};return _.B("div",{class:_.FY((A.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=q,A.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!q,A.ytdSponsorshipsPerksListFlipped=M,A))},_.B(_.jC,{data:H,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.B("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.B(_.T,{cond:Z,
then:function(H){var A={};return _.B("div",{class:_.FY((A.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=q,A.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!q,A.ytdSponsorshipsPerksListFlipped=M,A))},_.B(_.jC,{data:H,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.B("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.B(_.u7,{data:function(){var H;
return(H=f().header)==null?void 0:H.dualAvatar}},{dualAvatarViewModel:_.tfH})))),_.B("div",{class:"ytdSponsorshipsPerksListBody"},_.B("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return f().title}),_.B(_.T,{cond:function(){return f().perks},
then:function(H){return _.B(_.bd,{each:H},function(A,Y){var t={};return _.B("div",{class:_.FY("ytdSponsorshipsPerksListPerkContainer",(t.ytdSponsorshipsPerksListSelectedPerk=function(){var E=Y(),J=f().selectedPerkIndex;return E===J},t))},_.B(_.T,{cond:function(){return Y()>0},
then:function(){return _.B("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.B("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.B(_.T,{cond:function(){return A.icon},
then:function(E){return _.B(_.Qy,{icon:function(){return E().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.B("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.B("div",{class:"ytdSponsorshipsPerksListPerkTitle"},A.title),_.B("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.B(_.J9,{text:A.description})),_.B(_.T,{cond:function(){return A.instructions},
then:function(){var E,J;return _.B("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.B("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(E=A.instructions)==null?void 0:E.title),_.B("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.B(_.J9,{text:(J=A.instructions)==null?void 0:J.text})))}}))),_.B(_.T,{cond:function(){return A.emoji},
then:function(E){return _.B("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.B(_.bd,{each:function(){return E()}},function(J){return _.B(_.jC,{data:J,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.B(bH3,{data:A}))})}})))},"qe");
KWu.idomCompat=!0;var bH3=_.dN(function(c){var f=c.data;var d=function(g,O){return g===O},q=function(){var g=f();
g=_.b(g==null?void 0:g.badgesShelf,Y8_);return g!==void 0&&g!==null?g:{previousButton:{},nextButton:{}}},Z=_.ob("div"),M=function(){var g=Z.value;
if(g){var O=g.parentElement;if(O){g=g.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var l=0;l<g.length;++l){var m=g[l];if(m instanceof HTMLElement){O.scrollTo({left:m.offsetLeft+m.clientWidth/2-O.clientWidth/2,behavior:"instant"});break}}}}};
_.L9(function(){var g=Z.value;if(g){var O=new ResizeObserver(M);O.observe(g);_.Q4(function(){O.disconnect()})}});
return _.B("div",null,_.B(_.T,{cond:function(){return f().badges},
then:function(g){return _.B(A7r,{data:q},_.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Z},_.B(_.bd,{each:function(){return g()}},function(O,l){var m={},H={},A={};
return _.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.B(_.T,{cond:function(){return l()>0},
then:function(){return _.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.B("div",{class:_.FY("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(m.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return d(l(),f().currentBadgeIndex)},m.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!d(l(),f().currentBadgeIndex)},m))},_.B("div",{class:_.FY("ytdSponsorshipsPerksListLoyaltyBadge",(H.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return d(l(),
f().currentBadgeIndex)},H.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!d(l(),f().currentBadgeIndex)},H))},_.B(_.T,{cond:function(){return O.image},
then:function(Y){var t={};return _.B("div",{class:_.FY((t.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return d(l(),f().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!d(l(),f().currentBadgeIndex)},t))},_.B(_.jC,{data:Y,
alt:""}))}})),_.B("div",{class:_.FY("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(A.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return d(l(),f().currentBadgeIndex)},A))},O.title)))})))}}))},"re");
bH3.idomCompat=!0;_.g_(KWu,"yt-sponsorships-perks-list",{props:{data:_.oM}});_.g_(_.dN(function(c){return _.B("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.B(_.T,{cond:function(){return c.data().image},
then:function(f){return _.B(_.jC,{className:"ytwFantasyEmptyStateViewModelImage",data:f,ariaHidden:!0,alt:""})}}),_.B(_.J9,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return c.data().title}}),_.B(_.J9,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return c.data().subtitle}}),_.B(_.u7,{data:function(){return c.data().primaryButton}},{buttonViewModel:function(f){return _.B(_.mN,{data:f.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"se"),"ytw-fantasy-empty-state-view-model",{props:{data:_.oM}});var EPK;var ORM=_.La({buttonRenderer:_.pd});_.ZB(lPk);var nPu=_.dN(function(c){var f=c.data;var d=c.uniqueId;var q=c.overrides;c=_.TZ(function(){var Z,M=((Z=f().timedAnimationData)==null?void 0:Z.animationTiming)||[];return{uniqueId:d(),timings:M,experimentEnabled:M.length>0,enabled:M.length>0}},void 0,"xqyfv");
return _.B("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.B(DL,{settings:c},_.B(_.u7,{data:function(){return f().buttonRenderer}},{buttonRenderer:function(Z){return _.B(_.pd,{data:Z.data,
buttonOverrides:q})}})))},"te"),$ir=_.F("web_enable_sink_timed_animation_button_renderer")?nPu:lPk,QBo=_.F("web_enable_sink_timed_animation_button_renderer")?nPu:_.bS(lPk);
nPu.idomCompat=!0;_.F("web_enable_sink_timed_animation_button_renderer")?_.g_(QBo,"timed-animation-button-renderer",{props:{data:_.oM,uniqueId:_.oM,overrides:_.oM}}):_.m$($ir,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var fK=function(){var c=_.z.apply(this,arguments)||this;c.hideJoinButtonBeforeSubscribed=_.F("hide_join_button_before_subscribed");c.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return c};
_.K(fK,_.z);_.r=fK.prototype;_.r.hasShowDialogCommand=function(c){return!!_.b(c,n23)};
_.r.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"}}}};
_.r.updateJoinButtonOverrides=function(){var c,f;(c=_.r1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(f=c.polymerController)==null||f.set("overrides",this.joinButtonOverrides);if(c=_.r1(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))c.overrides=this.joinButtonOverrides};
_.r.handleButtonRefreshAction=function(c){if(c=_.b(c,aDu))this.set("data.membershipButton",c.membershipButton),this.notifyPath("data.membershipButton")};
_.r.onYtServiceRequestError=function(c){_.fO(this.hostElement,c.detail.error.message)};
_.r.onKeydown=function(c){if(c.key==="Enter"){var f;(f=this.data)!=null&&f.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.r.handleUnsubscribeAction=function(){var c,f,d;((c=this.data)==null?void 0:(f=c.membershipButton)==null?void 0:(d=f.buttonRenderer)==null?void 0:d.style)==="STYLE_PRIMARY"&&_.r1(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.ci.Object.defineProperties(fK.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.subscriptionStateEntity)==null||!c.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var c,f=(c=this.data)==null?void 0:c.membershipButton,d;c=(f==null?void 0:f.buttonRenderer)||_.b(f==null?void 0:(d=f.timedAnimationButtonRenderer)==null?void 0:d.buttonRenderer,_.WQ);return(c==null?void 0:c.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(c==null?void 0:c.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(c==null?void 0:c.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var c;if(this.hasShowDialogCommand((c=this.data)==null?void 0:c.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var c;if(this.hasShowDialogCommand((c=this.data)==null?void 0:c.navigationEndpoint))return"button"}}});
fK.prototype.onYtServiceRequestError=fK.prototype.onYtServiceRequestError;fK.prototype.updateJoinButtonOverrides=fK.prototype.updateJoinButtonOverrides;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],fK.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],fK.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],fK.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.X$),_.D("design:type",Object)],fK.prototype,"ironButtonState",void 0);_.y([_.L(),_.D("design:type",Object)],fK.prototype,"data",void 0);_.y([_.S("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.D("design:type",Object),_.D("design:paramtypes",[])],fK.prototype,"hideJoin",null);
_.y([_.L(),_.D("design:type",String)],fK.prototype,"subscribeKey",void 0);_.y([_.L({selectorArgs:["subscribeKey"],selector:hCe}),_.D("design:type",Object)],fK.prototype,"subscriptionStateEntity",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],fK.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.y([_.S("subscriptionStateEntity"),_.L({reflectToAttribute:!0}),_.D("design:type",Object),_.D("design:paramtypes",[])],fK.prototype,"subscribed",null);
_.y([_.S("subscribed","data.membershipButton"),_.D("design:type",Object),_.D("design:paramtypes",[])],fK.prototype,"joinButtonOverrides",null);_.y([_.S("data.navigationEndpoint"),_.D("design:type",Object),_.D("design:paramtypes",[])],fK.prototype,"channelNameTabIndex",null);_.y([_.S("data.navigationEndpoint"),_.D("design:type",Object),_.D("design:paramtypes",[])],fK.prototype,"channelNameRole",null);
_.y([_.m5("joinButtonOverrides"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fK.prototype,"updateJoinButtonOverrides",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],fK.prototype,"onYtServiceRequestError",null);_.y([_.v({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],fK);
var S1_=_.OD()(fK,"ytd-video-owner-renderer",function(){if(EPK===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);EPK=c}c=EPK;return c},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.g_(_.dN(function(c){var f=c.data;var d;c=_.C(_.OT(!((d=_.T7("yt-mini-app-is-theater-mode-enabled"))==null||!d),void 0,"CtFFDf"));var q=c.next().value,Z=c.next().value;d=_.C(_.OT(!1,void 0,"pRgDfb"));var M=d.next().value,g=d.next().value;_.L9(function(){var m=_.Lx(window,Poy,function(){g(UL_())});
_.Q4(function(){$p(m)})});
var O;d=(O=_.ql().resolve(_.dx(xrj)))!=null?O:function(){return _.B("div",null)};
_.pW("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Z(!0);_.iK("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.pW("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Z(!1);_.iK("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
O={};c={};var l={};return _.B("mini-app-play-page-renderer",{class:_.FY("miniAppPlayPageRendererHost",(O.miniAppPlayPageRendererHostDetailsView=function(){return!q()},O))},_.B("div",{class:_.FY("miniAppPlayPageRendererGameContainer",(c.miniAppPlayPageRendererGameContainerDetailsView=function(){return!q()},c))},_.B(_.u7,{data:function(){return f().containerViewModel}},{miniAppContainerViewModel:miO}),_.B(_.T,{cond:function(){return f().channel&&f().subscribeButton},
then:function(){var m={};return _.B("div",{class:_.FY("miniAppPlayPageRendererChannelContainer",(m.miniAppPlayPageRendererHideVisibility=function(){return M()},m))},_.B(_.u7,{data:function(){return f().channel}},{videoOwnerRenderer:function(H){return _.B(S1_,{data:H.data})}}),_.B(_.u7,{data:function(){return f().subscribeButton}},{subscribeButtonViewModel:function(H){return _.B(_.aQ,{data:H.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.B(_.T,{cond:function(){return!q()&&f().description},
then:function(){var m={};return _.B("div",{class:_.FY("miniAppPlayPageRendererMiniAppDescriptionWrapper",(m.miniAppPlayPageRendererHideVisibility=function(){return M()},m))},_.B("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return f().description}))}})),_.B("div",{class:_.FY("miniAppPlayPageRendererPlayNextContainer",(l.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!q()},l.miniAppPlayPageRendererHideVisibility=function(){return M()},l))},_.B(_.u7,{data:function(){return f().sectionList}},
{sectionListRenderer:d})))},"ue"),"mini-app-play-page-renderer",{props:{data:_.oM}});var dp=function(){var c=_.z.apply(this,arguments)||this;c.isSearch=!1;c.isConstrainedList=!1;c.hasChipsBar=!1;c.inReplyPanel=!1;c.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"}};c.monitorScroll=!0;c.SCROLL_ANIMATION_DURATION_MS=300;c.nextContinuation={continuationType:"sectionListContinuation"};return c};
_.K(dp,_.z);_.r=dp.prototype;
_.r.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(c){switch(c.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}}}}};
_.r.created=function(){var c=this;this.JSC$16909_scrollAnimation=new _.ID(function(f){c.hostElement.scrollTop=f})};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.r.getItemsPath=function(){return"data.contents"};
_.r.replacePrimaryContent=function(c){this.set("data.contents",c)};
_.r.computeHasSortFilter=function(c){return!!c&&!!c.sortFilterSubMenuRenderer};
_.r.computeShouldScrollInPanel=function(c){var f;return!!(c==null?0:(f=c.scrollPaneStyle)==null?0:f.scrollable)};
_.r.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.g1(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.r.scrollToTop=function(){this.hostElement.scrollTop=0};
_.r.scrollToItemSection=function(c){if(c=this.getItemByIdentifier(c))c=this.getScrollPositionForItem(c),this.hostElement.scrollTop!==c&&this.JSC$16909_scrollAnimation.start(this.hostElement.scrollTop,c,this.SCROLL_ANIMATION_DURATION_MS)};
_.r.getItemByIdentifier=function(c){var f=this.contents.querySelectorAll("ytd-item-section-renderer");if(f&&f.length!==0){var d=Array.from(f).findIndex(function(q){return q.sectionIdentifier===c});
return f[d===-1?0:d]}};
_.r.getScrollPositionForItem=function(c){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===c)return 0;c=_.u5(c).y+this.hostElement.scrollTop-_.u5(this.hostElement).y;return Math.min(c,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.ci.Object.defineProperties(dp.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.targetId)==="browse-feedFEclips"}}});
dp.prototype.onScroll=dp.prototype.onScroll;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],dp.prototype,"ytLazyListBehavior",void 0);_.y([_.Q(_.RF.YtNextContinuationBehavior),_.D("design:type",Object)],dp.prototype,"ytNextContinuationBehavior",void 0);
_.y([_.Q(_.B5T),_.D("design:type",Object)],dp.prototype,"ytBooleanLogicBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],dp.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dp.prototype,"data",void 0);_.y([_.L({value:2}),_.D("design:type",Number)],dp.prototype,"initialCount",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],dp.prototype,"autoFill",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.D("design:type",Boolean)],dp.prototype,"hasSortFilter",void 0);_.y([_.L({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.D("design:type",Boolean)],dp.prototype,"hideBottomSeparator",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.D("design:type",Boolean)],dp.prototype,"shouldScrollInPanel",void 0);
_.y([_.L(),_.D("design:type",Object)],dp.prototype,"isSearch",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],dp.prototype,"isConstrainedList",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],dp.prototype,"responsiveSizing",void 0);_.y([_.L(),_.D("design:type",Object)],dp.prototype,"hasChipsBar",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],dp.prototype,"pageSubtype",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],dp.prototype,"engagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],dp.prototype,"liveChatEngagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],dp.prototype,"inReplyPanel",void 0);_.y([_.AY("#action-button"),_.D("design:type",HTMLElement)],dp.prototype,"actionButton",void 0);_.y([_.L(),_.D("design:type",Object)],dp.prototype,"scrollUpButtonData",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],dp.prototype,"engagementPanelDropdown",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],dp.prototype,"engagementPanelDialog",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],dp.prototype,"isClipList",null);_.y([_.AY("#contents"),_.D("design:type",HTMLElement)],dp.prototype,"monitorScrollElement",void 0);_.y([_.AY("#contents"),_.D("design:type",HTMLElement)],dp.prototype,"contents",void 0);
_.y([_.Ta("scroll"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],dp.prototype,"onScroll",null);_.y([_.v({is:"ytd-section-list-renderer",disableElementRegistration:!0})],dp);
var LW_=_.OD()(dp,"ytd-section-list-renderer",function(){if(p43===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);p43=c}c=p43;return c},{mode:1});var zlo;var J7H;var aq_;var Vf3;var j1=function(){return _.z.apply(this,arguments)||this};
_.K(j1,_.z);j1.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
j1.prototype.onLikeButtonClick=function(c){c.stopPropagation();c.preventDefault()};
_.ci.Object.defineProperties(j1.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)!=null&&c.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)})}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],j1.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],j1.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],j1.prototype,"ytRendererStamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],j1.prototype,"data",void 0);
_.y([_.L({selectorArgs:["data.likeStatusEntityKey"],selector:IT}),_.D("design:type",Object)],j1.prototype,"likeStatusEntity",void 0);_.y([_.S("data","likeStatusEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],j1.prototype,"likeButtonRenderer",null);_.y([_.v({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],j1);
_.h(j1,"ytd-slim-metadata-toggle-button-renderer",function(){if(Vf3!==void 0)return Vf3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return Vf3=c},{mode:1});var qW=function(){var c=_.z.apply(this,arguments)||this;c.minimizePipBreakages=_.F("web_pip_minimize_breakages");c.showEqualizer=_.F("web_enable_playlist_video_lockup_equalizer");c.watchColorUpdate=_.F("kevlar_watch_color_update");c.actionMap={};return c};
_.K(qW,_.z);_.r=qW.prototype;_.r.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"}}}};
_.r.computeEditableClass=function(c){return c&&c.menu?"editable":""};
_.r.computeSelected=function(c){return!(c==null||!c.selected)};
_.r.computeUseColorPalette=function(c){return!!((c==null?0:c.lightColorPalette)&&(c==null?0:c.darkColorPalette))};
_.r.computeLargerPlaylistThumbs=function(c,f){return _.F("web_enable_playlist_bigger_thumbnails")&&!f};
_.r.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.r.onYtServiceRequestSent=function(c,f){f.endpoint&&this.isHideEnclosingAction(f.endpoint)&&!this.selected&&Ug_(_.P_(),this.data.videoId)};
_.r.isHideEnclosingAction=function(c){var f=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",c);c=this.get("likeEndpoint.status",c)==="INDIFFERENT";return f||c};
_.r.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.r.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.ci.Object.defineProperties(qW.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 c;return!!(this.withinMiniplayer&&((c=this.data)==null?0:c.actionButtons))}}});
qW.prototype.onYtServiceRequestSent=qW.prototype.onYtServiceRequestSent;qW.prototype.canReorderChanged=qW.prototype.canReorderChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],qW.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Ui),_.D("design:type",Object)],qW.prototype,"ytdLockupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qW.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],qW.prototype,"withinMiniplayer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],qW.prototype,"minimizePipBreakages",void 0);_.y([_.L({computed:"computeSelected(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],qW.prototype,"selected",void 0);
_.y([_.L({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],qW.prototype,"useColorPalette",void 0);_.y([_.L({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.D("design:type",Boolean)],qW.prototype,"largerPlaylistThumbs",void 0);_.y([_.L(),_.D("design:type",Object)],qW.prototype,"showEqualizer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],qW.prototype,"canReorder",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],qW.prototype,"touchPersistentDragHandle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],qW.prototype,"handleIsHovered",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],qW.prototype,"watchColorUpdate",void 0);_.y([_.L(),_.D("design:type",String),_.D("design:paramtypes",[])],qW.prototype,"reorderIcon",null);
_.y([_.S("largerPlaylistThumbs"),_.D("design:type",Number),_.D("design:paramtypes",[])],qW.prototype,"thumbnailWidth",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],qW.prototype,"showActionButtons",null);_.y([_.ba("canReorder"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qW.prototype,"canReorderChanged",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],qW.prototype,"onYtServiceRequestSent",null);_.y([_.v({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],qW);
_.h(qW,"ytd-playlist-panel-video-renderer",function(){if(aq_!==void 0)return aq_;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return aq_=c},{mode:2});var Zo=function(){return _.z.apply(this,arguments)||this};
_.K(Zo,_.z);Zo.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Zo.prototype,"data",void 0);_.y([_.v({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Zo);
_.h(Zo,"ytd-playlist-panel-supported-items",function(){if(J7H!==void 0)return J7H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return J7H=
c},{mode:1});RBv=!0;k63("\\P{N}");var sjh;var Xmj=_.HO("END_OF_PLAYLIST",void 0,"End of playlist"),uzr=_.HO("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),MW=function(){var c=_.z.apply(this,arguments)||this;c.minimizePipBreakages=_.F("web_pip_minimize_breakages");c.updatedCoursePanel=_.F("move_three_dot_menu_to_playlist_panel_header_for_courses");c.hideHeaderText=!1;c.useColorPalette=!1;c.collapsed=!1;c.collapsedPreServerOverride="not_tracked";c.isHovered=!1;c.modernPanels=_.F("kevlar_watch_modern_panels");
c.expandLabel=_.HO("MINIPLAYER_EXPAND_LABEL");c.collapseLabel=_.HO("MINIPLAYER_COLLAPSE_LABEL");c.isFloating=!1;c.metaPanel=!1;c.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};c.currentIndex=void 0;return c};
_.K(MW,_.z);_.r=MW.prototype;
_.r.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"}}}};
_.r.created=function(){this.scrollThrottle=new _.Gx(this.onThrottledScroll,1E3,this)};
_.r.onMouseEnter=function(){this.isHovered=!0};
_.r.onMouseLeave=function(){this.isHovered=!1};
_.r.computeOverflowMenuData=function(c){return c&&c.menu?c.menu:null};
_.r.computeCollapsible=function(c){return!c};
_.r.computeHasPlaylistButtons=function(c){return!(!c||!c.playlistButtons)};
_.r.computeHasSeparateSaveButton=function(c){return!(!c||!c.saveButton)};
_.r.computeHasToolbarButton=function(c,f){return!(!c||!(f||c.saveButton||c.menu))};
_.r.computePlaylistType=function(c){if(c&&c.playlistId)return c.playlistId.substring(0,4)};
_.r.computeCanReorder=function(c){return c?c.playlistId&&c.playlistId.startsWith("TLPQ")?!0:!!c.isEditable&&!c.isInfinite:!1};
_.r.attached=function(){var c=this;try{_.ql().resolve(_.W_).setPlaylistComponent(this.hostElement)}catch(f){if(_.F("kevlar_park_on_playlist_token_killswitch"))throw f;_.eY().parkOrScheduleJob(function(){_.ql().resolve(_.W_).setPlaylistComponent(c.hostElement)},2,"ci")}_.M9(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.r.detached=function(){_.rS(this.hostElement)};
_.r.computeTrailingIcon=function(c,f,d){return d?f?"yt-icons:collapse":"yt-icons:close":f?"yt-icons:expand":_.F("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.r.computeIndexMessage=function(c,f){return TLC(c+1)+" / "+TLC(f)};
_.r.onRenderStamperFinished=function(){if(this.scrollForStampDom){var c=!0;this.isHovered&&(c=!1);if(this.collapsed||this.hidden)c=!1;c&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.r.collapseChanged=function(){var c=this;this.collapsed||(_.X8(this.ytTaskEmitterBehavior.getTaskManager(),function(){c.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.r.hiddenChanged=function(){var c=this;this.hidden||_.X8(this.ytTaskEmitterBehavior.getTaskManager(),function(){c.scrollToCurrentVideo()})};
_.r.setupReordering=function(){var c=_.r1(this.hostElement).querySelector("#items");nIu?_.EAK(this.ytReorderableBehavior,c,c,"playlist-drag-handle"):_.EAK(this.ytReorderableBehavior,c,c)};
_.r.scrollToCurrentVideo=function(){var c=this;_.a7.addJob(function(){var f=_.r1(c.hostElement).querySelector("#items");if(f){f.style.setProperty("padding-bottom","");var d=_.r1(c.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(d){f=d.parentElement||_.Sj(document);var q=f||_.Sj(document);var Z=_.u5(d),M=_.u5(q),g=_.Kcy(q);if(q==_.Sj(document)){var O=Z.x-q.scrollLeft;Z=Z.y-q.scrollTop}else O=Z.x-M.x-g.left,Z=Z.y-M.y-g.top;d=Yro(d);M=q.clientHeight-
d.height;g=q.scrollLeft;var l=q.scrollTop;g+=O-(q.clientWidth-d.width)/2;q=new _.a8(g,l+(Z-M/2));f.scrollLeft=q.x;f.scrollTop=q.y}}},8)};
_.r.dataChanged=function(){var c=this;_.KeK(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.ol(this,function(){_.Em(c.ytTaskEmitterBehavior.getTaskManager(),function(){c.ytRendererBehavior.markDirty();c.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.r.onFullBleedPlayerChanged=function(){_.F("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.r.onFullscreenChanged=function(){_.F("web_watch_imax_theater_mode")||_.F("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.r.updateNowPlayingOverlay=function(){_.F("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.r.onPlaylistLockupNowPlaying=function(c,f){f&&(this.activeNowPlayingRenderer=f);this.updateNowPlayingOverlay()};
_.r.onScroll=function(){this.scrollThrottle.fire()};
_.r.onThrottledScroll=function(){var c=this;_.Em(this.ytTaskEmitterBehavior.getTaskManager(),function(){c.ytRendererBehavior.markDirty()})};
_.r.onToggleExpanded=function(c){!this.collapsible||c&&(_.oV(c).tagName==="A"||_.qY(_.x0(c),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.r.setCollapsed=function(c){this.collapsible&&(this.collapsed=c,_.kt(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.r.handleCollapsedFromData=function(c){if(c){var f=c.playlistPanelCollapseState;f==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||f==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),f=f==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==f&&this.setCollapsed(f)):this.currentPlaylistId!==c.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(f=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==f&&this.setCollapsed(f),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=c.playlistId}};
_.r.handleDrop=function(c){var f=c.currDragItem;c=f.data.playlistSetVideoId;var d=_.Xk(f.parentNode.childNodes,f),q=void 0;d>0&&(q=f.parentNode.childNodes[d-1].data.playlistSetVideoId);f=_.P_();if(f.responsePlaylistData&&f.responsePlaylistData.contents){var Z=dsn(c,f.responsePlaylistData);f.responsePlaylistData=(0,_.zV.unsafeClone)(f.responsePlaylistData);Lhr(f.responsePlaylistData.contents,Z,d);f.queueProxy?KHT(f.queueProxy,Z,d,c,q):f.playlistProxy&&KHT(f.playlistProxy,Z,d,c,q);_.RX(f,_.U8(f,f.response?
f.response.autoplayRenderer:void 0))}};
_.r.handleDarkModeChange=function(c){c!==this.isDarkTheme&&(this.isDarkTheme=c)};
_.r.colorPaletteChanged=function(){var c,f=((c=this.data)==null?void 0:c.contents)||[],d;c=_.C(f);for(f=c.next();!f.done;f=c.next()){f=f.value;var q=void 0;if((q=f.playlistPanelVideoRenderer)==null?0:q.selected){c=f.playlistPanelVideoRenderer;q=f=void 0;(d=this.isDarkTheme?(f=c)==null?void 0:f.darkColorPalette:(q=c)==null?void 0:q.lightColorPalette)&&_.vr(this.hostElement,d);break}}this.useColorPalette=!!d};
_.ci.Object.defineProperties(MW.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null||!c.playlistId)&&!((f=this.data)==null||!f.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var c=_.ql().resolve(_.dx(_.W_)),f;if(((f=this.data)==null?0:f.contents)&&(c==null?0:c.hasAutoplayData())){var d;if(((d=this.playlistLoopStateEntity)==null?void 0:d.state)==="PLAYLIST_LOOP_STATE_ONE"){if(c=this.data.currentIndex,c!==void 0){var q,Z;var M=(q=this.data.contents[c])==null?void 0:(Z=q.playlistPanelVideoRenderer)==null?void 0:Z.title}}else{var g,O=(g=_.b(c.getAutoplayEndpoint(),_.pe))==null?void 0:g.videoId,l,m;M=(l=this.data.contents.find(function(H){var A;
return((A=H.playlistPanelVideoRenderer)==null?void 0:A.videoId)===O}))==null?void 0:(m=l.playlistPanelVideoRenderer)==null?void 0:m.title}return M}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)!=null&&c.nextVideoLabel?this.nextVideoTitle?_.xC(this.data.nextVideoLabel)+":":Xmj:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var c;if(((c=this.data)==null?0:c.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.F("web_mix_long_byline_from_data"))return _.pC(uzr);var f;return(f=this.data)==null?void 0:f.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q=(c=this.data)==null?void 0:(f=c.playlistButtons)==null?void 0:(d=f.menuRenderer)==null?void 0:d.topLevelButtons;if(q)for(c=_.C(q),f=c.next();!f.done;f=c.next())if(f=f.value,f.playlistLoopButtonRenderer)return f.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var c;return!!(this.collapsed&&((c=this.data)==null?0:c.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.F("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
MW.prototype.colorPaletteChanged=MW.prototype.colorPaletteChanged;MW.prototype.onPlaylistLockupNowPlaying=MW.prototype.onPlaylistLockupNowPlaying;MW.prototype.updateNowPlayingOverlay=MW.prototype.updateNowPlayingOverlay;MW.prototype.onFullscreenChanged=MW.prototype.onFullscreenChanged;MW.prototype.onFullBleedPlayerChanged=MW.prototype.onFullBleedPlayerChanged;MW.prototype.dataChanged=MW.prototype.dataChanged;MW.prototype.hiddenChanged=MW.prototype.hiddenChanged;MW.prototype.collapseChanged=MW.prototype.collapseChanged;
MW.prototype.onRenderStamperFinished=MW.prototype.onRenderStamperFinished;MW.prototype.onMouseLeave=MW.prototype.onMouseLeave;MW.prototype.onMouseEnter=MW.prototype.onMouseEnter;_.y([_.Q(_.aJ),_.D("design:type",Object)],MW.prototype,"ironResizableBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(teH.YtPlaylistPanelBehavior),_.D("design:type",Object)],MW.prototype,"ytPlaylistPanelBehavior",void 0);_.y([_.Q(_.jI.YtTaskEmitterBehavior),_.D("design:type",Object)],MW.prototype,"ytTaskEmitterBehavior",void 0);_.y([_.Q(_.nAr),_.D("design:type",Object)],MW.prototype,"ytReorderableBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],MW.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],MW.prototype,"ytdReduxBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],MW.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],MW.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],MW.prototype,"autoplayData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],MW.prototype,"withinMiniplayer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MW.prototype,"minimizePipBreakages",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MW.prototype,"updatedCoursePanel",void 0);_.y([_.L({computed:"setMenuData_(data)"}),_.D("design:type",Object)],MW.prototype,"menuRendererData",void 0);_.y([_.L({computed:"computeOverflowMenuData(data)"}),_.D("design:type",Object)],MW.prototype,"overflowMenuDataTopRow",void 0);_.y([_.L({computed:"computeOverflowMenuData(data)"}),_.D("design:type",Object)],MW.prototype,"overflowMenuData",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MW.prototype,"hideHeaderText",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MW.prototype,"useColorPalette",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.D("design:type",Boolean)],MW.prototype,"collapsible",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MW.prototype,"collapsed",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],MW.prototype,"hidden",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.D("design:type",Boolean)],MW.prototype,"hasPlaylistButtons",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.D("design:type",Boolean)],MW.prototype,"hasSeparateSaveButton",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.D("design:type",Boolean)],MW.prototype,"hasToolbar",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.D("design:type",String)],MW.prototype,"playlistType",void 0);_.y([_.L(),_.D("design:type",Object)],MW.prototype,"isHovered",void 0);_.y([_.L({selectorArgs:["playlistLoopStateEntityKey"],selector:_.NaY}),_.D("design:type",Object)],MW.prototype,"playlistLoopStateEntity",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MW.prototype,"modernPanels",void 0);_.y([_.L({value:56}),_.D("design:type",Number)],MW.prototype,"scrollMargin",void 0);_.y([_.L({computed:"computeCanReorder(data)"}),_.D("design:type",Boolean)],MW.prototype,"canReorder",void 0);_.y([_.L(),_.D("design:type",Object)],MW.prototype,"expandLabel",void 0);_.y([_.L(),_.D("design:type",Object)],MW.prototype,"collapseLabel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MW.prototype,"isFloating",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MW.prototype,"metaPanel",void 0);_.y([_.L({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.D("design:type",String)],MW.prototype,"trailingIcon",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],MW.prototype,"isDarkTheme",void 0);
_.y([_.L({selector:_.X5}),_.D("design:type",Boolean)],MW.prototype,"miniplayerIsActive",void 0);_.y([_.L({selector:function(c){return c.watch.playerState}}),
_.D("design:type",Number)],MW.prototype,"playerState",void 0);_.y([_.L({selector:_.D7}),_.D("design:type",Boolean)],MW.prototype,"isFullscreen",void 0);_.y([_.L({selector:_.Wr}),_.D("design:type",Boolean)],MW.prototype,"isTheaterMode",void 0);_.y([_.L(),_.D("design:type",Object)],MW.prototype,"activeNowPlayingRenderer",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],MW.prototype,"moveThreeDotMenuToTopRow",null);
_.y([_.S("data","autoplayData","playlistLoopStateEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],MW.prototype,"nextVideoTitle",null);_.y([_.S("data","nextVideoTitle"),_.D("design:type",String),_.D("design:paramtypes",[])],MW.prototype,"nextVideoLabel",null);_.y([_.S("collapsed"),_.D("design:type",String),_.D("design:paramtypes",[])],MW.prototype,"buttonAriaLabel",null);
_.y([_.S("data","playlistId","longBylineText"),_.D("design:type",Object),_.D("design:paramtypes",[])],MW.prototype,"mixLongByLine",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],MW.prototype,"playlistLoopStateEntityKey",null);_.y([_.Ta("mouseenter"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"onMouseEnter",null);
_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"onMouseLeave",null);_.y([_.L({reflectToAttribute:!0}),_.S("data","collapsed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],MW.prototype,"showNextVideoHeader",null);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"onRenderStamperFinished",null);
_.y([_.m5("collapsed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"collapseChanged",null);_.y([_.m5("hidden"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"hiddenChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"dataChanged",null);
_.y([_.S("isTheaterMode","isFullscreen"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],MW.prototype,"isFullBleedPlayer",null);_.y([_.m5("isTheaterMode","isFullscreen"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"onFullBleedPlayerChanged",null);_.y([_.m5("isFullscreen"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"onFullscreenChanged",null);
_.y([_.m5("playerState","miniplayerIsActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"updateNowPlayingOverlay",null);_.y([_.Ta("yt-playlist-lockup-now-playing-active"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],MW.prototype,"onPlaylistLockupNowPlaying",null);
_.y([_.m5("data","isDarkTheme"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MW.prototype,"colorPaletteChanged",null);_.y([_.v({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],MW);
_.vPF=_.OD()(MW,"ytd-playlist-panel-renderer",function(){if(zlo===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);zlo=c}c=zlo;return c},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var hl3;var rp=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_button_rework");return c};
_.K(rp,_.z);rp.prototype.computeShouldButtonBeVertical=function(c,f){return c||f};
rp.prototype.onYtServiceRequestSent=function(c,f){(c=_.b(f.endpoint,_.e4))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.ER("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:c.status})):this.handleLikeEndpoint(c))};
rp.prototype.computelikeStatusEntityKey=function(c){return c==null?void 0:c.likeStatusEntityKey};
rp.prototype.handleLikeEndpoint=function(c){c.status==="LIKE"?this.JSC$16934_ytdDislikeToggleButtonRenderer.toggle(!1):c.status==="DISLIKE"?this.JSC$16934_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16934_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16934_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.ci.Object.defineProperties(rp.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var c;return YnG(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(c=this.likeStatusEntity)==null?void 0:c.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var c;if(this.data&&((c=this.data)==null||!c.hideDislikeButton)){var f;return YnG(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(f=this.likeStatusEntity)==null?void 0:f.likeStatus)}}}});
rp.prototype.onYtServiceRequestSent=rp.prototype.onYtServiceRequestSent;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],rp.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rp.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],rp.prototype,"vertical",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],rp.prototype,"textTransform",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],rp.prototype,"useShortsIcon",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],rp.prototype,"underIconLabel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rp.prototype,"modern",void 0);_.y([_.L({value:"left"}),_.D("design:type",String)],rp.prototype,"buttonTooltipPosition",void 0);
_.y([_.L(),_.D("design:type",Object)],rp.prototype,"overrides",void 0);_.y([_.AY("#like-button"),_.D("design:type",Object)],rp.prototype,"JSC$16934_ytdLikeToggleButtonRenderer",void 0);_.y([_.AY("#dislike-button"),_.D("design:type",Object)],rp.prototype,"JSC$16934_ytdDislikeToggleButtonRenderer",void 0);_.y([_.S("data","likeStatusEntity.likeStatus","useShortsIcon"),_.D("design:type",Object),_.D("design:paramtypes",[])],rp.prototype,"likeButton",null);
_.y([_.S("data","likeStatusEntity.likeStatus","useShortsIcon"),_.D("design:type",Object),_.D("design:paramtypes",[])],rp.prototype,"dislikeButton",null);_.y([_.L({computed:"computelikeStatusEntityKey(data)"}),_.D("design:type",String)],rp.prototype,"likeStatusEntityKey",void 0);_.y([_.L({selectorArgs:["likeStatusEntityKey"],selector:IT}),_.D("design:type",Object)],rp.prototype,"likeStatusEntity",void 0);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],rp.prototype,"onYtServiceRequestSent",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],rp);
var wmo=_.OD()(rp,"ytd-like-button-renderer",function(){if(hl3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);hl3=c}c=hl3;return c},{mode:1});_.y73={};
_.y73.YtConditionalRendererBehavior=[_.P.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(c,f){var d=this,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:if(!f)return d.hidden=!0,d.showSpinner=!1,M.return();if((q=c)==null?0:(Z=q.visibilityCondition)==null?0:Z.mode)switch(c.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return M.jumpTo(5);default:return M.jumpTo(6)}d.showSpinner=
!1;d.hidden=!0;return M.yield(d.shouldShow_(c),4);case 4:d.hidden=!M.yieldResult;M.jumpTo(0);break;case 5:return M.yield(d.shouldShow_(c),8);case 8:d.showSpinner=M.yieldResult;d.hidden=!1;M.jumpTo(0);break;case 6:return d.showSpinner=!1,M.yield(d.shouldShow_(c),9);case 9:d.hidden=!M.yieldResult,_.Fm(M)}})},
shouldShow_:function(c){return c&&c.supportedDatas&&c.supportedDatas.rendererVisibilityConditionData&&c.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(c.supportedDatas.rendererVisibilityConditionData.showIf):c&&c.visibilityCondition&&c.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(c.visibilityCondition.showIf):c&&c.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(c.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(c){switch(c){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(c){switch(c){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var c=_.gS(this.hostElement,"yt-get-mdx-status");return c.length==1&&c[0].connected},
isLocationPermissionGranted_:function(){var c;return _.k(function(f){return f.nextAddress==1?navigator.permissions?f.yield(navigator.permissions.query({name:"geolocation"}),3):f.jumpTo(2):f.nextAddress!=2?(c=f.yieldResult,f.return(Promise.resolve(c.state==="granted"))):f.return(Promise.resolve(!1))})}}];var WWo=function(c,f){f=f===void 0?{}:f;var d=function(q){var Z=document.createElement(c),M;var g=(M=Z.polymerController)!=null?M:Z;pyr(Z,g,q,f);return Z};
d.debugName=c+" (CoW wrapped)";return d}("yt-icon"),Dir=_.F("web_bypass_polymer_yt_icon")&&_.F("kevlar_use_wil_icons")?_.dN(function(c){var f=c.icon;
var d=c.active;var q=c.className;var Z=c.style;var M=c.dataSelected;var g=c.dataDisabled;var O=c.role;var l=c.themeOverride;var m=c.animateIcon;var H=c.ariaHidden;var A=c.ariaExpanded;var Y=c.ariaLabel;var t=c.tabindex;var E=c.id;var J=c.iconFilter;var X=function(){var p=f==null?void 0:f(),N=null,I=void 0;p&&(p=naF(p),p=EFY(p),p.length&&(N=p[1],I=p[0]));return{iconName:N,iconSetName:I}},u=function(){return $XO(X().iconName,d==null?void 0:d(),void 0,void 0,X().iconSetName,_.ql().resolve(_.mt))},W=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:J==null?void 0:J()}};
return _.B(_.T,{cond:m,then:function(){return _.B(WWo,{icon:f,active:d,className:q,style:Z,dataSelected:M,dataDisabled:g,role:O,themeOverride:l,ariaHidden:H,ariaExpanded:A,ariaLabel:Y,tabindex:t,id:E,iconFilter:J})},
else:function(){return _.B(_.T,{cond:u,then:function(p){return _.B("span",{class:_.FY("ytIconWrapperHost",q),role:O,"aria-label":Y,"aria-hidden":H,tabindex:function(){return isNaN(Number(t==null?void 0:t()))?void 0:Number(t==null?void 0:t())},
id:E,style:Z},_.B(IYP,{data:p,options:W}))}})}})},"ve"):WWo;var elF=function(c){var f=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];NNC();_.fu("ytglobal.ytUtilActivityCallback_",function(){_.kt(c,"yt-user-activity")});
new j_(function(){return f.JSC$16949_onMouseMove});
document.addEventListener("scroll",function(){return f.onScroll});
window.addEventListener("resize",function(){return f.onResize})},Nc_=function(c,f,d){f in c.eventJobIds||(d=_.zd().addLowPriorityJob(function(){_.qu();
delete c.eventJobIds[f]},d),c.eventJobIds[f]=d)};
elF.prototype.onScroll=function(c){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):c.target===document&&Nc_(this,"scroll",200)};
elF.prototype.onResize=function(){Nc_(this,"resize",200)};
elF.prototype.JSC$16949_onMouseMove=function(){Nc_(this,"mousemove",100)};
_.qe=function(c){c.scrollEventsToIgnore+=1;c.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){c.scrollEventsToIgnore--},500))};var IqF=function(c){this.element=c;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
IqF.prototype.showFeedbackDialog=function(c,f,d,q){var Z=PU3();if(!Z)return!1;var M=zMl();M.productId=Z;f&&(M.flow="submit",M.report={description:f});d&&(PU3()==="59"?M.callback=_.WC(function(){_.JN("userFeedbackEvent",{});d()}):M.callback=_.WC(d));
M.bucket=q||_.hk("GOOGLE_FEEDBACK_BUCKET","Other");Rl3(M);c=Ui3(this,"GFEEDBACK",c);try{_.tju(M,c)}catch(g){return _.yJ(g),!1}return!0};
IqF.prototype.showHelpDialog=function(c,f,d){var q=this,Z=PU3();if(!Z)return!1;var M={helpCenterPath:"/youtube",productData:Ui3(this,"GUIDED_HELP",d)};Rl3(M);var g=zMl();g.context=c||M.productData.context||"default";g.defaultHelpArticleId=f;g.enableSendFeedback=!0;(_.D5("gapi.load")||function(O,l){return l()})("client",function(){try{var O=fa3(Z,M);
if(_.F("web_always_load_chat_support")&&!q.chatSupportLoaded)try{O.JSC$9920_loadChatSupport(g),q.chatSupportLoaded=!0}catch(l){}O.startHelp(g)}catch(l){_.yJ(l)}})};
var PU3=function(){var c=_.hk("GOOGLE_FEEDBACK_PRODUCT_ID");c||_.yJ(Error("ci"));return c},Rl3=function(c){c&&(c.locale=_.F("kevlar_help_use_locale")?_.hk("INNERTUBE_CONTEXT_HL","en"):_.hk("HTML_LANG","en"))},Ui3=function(c,f,d){var q=c.productData;
delete q.origin;q.device=_.TY();var Z;a:{if(Z=document.createElement("canvas")){var M=Z.getContext("experimental-webgl",{stencil:!0});if(M){var g=M.getExtension("WEBGL_debug_renderer_info");if(g){Z=M.getParameter(g.UNMASKED_RENDERER_WEBGL);break a}}if(M=Z.getContext("webgl")){Z=M.getParameter(M.RENDERER);break a}}Z=null}q.gpu=Z;q.isSDC=!!_.hk("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Z=_.hk("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.zV.extend(q,Z);_.Snn(f,q);_.LXz(q);(c=_.kt(c.element,"yt-get-autonav-pause-debug-state"))&&
c.length&&(q.autonav_pause_state=c[0]);c=_.Yc();q.browser_resolution=c.width+"\u00d7"+c.height+"@"+(window.devicePixelRatio||1)+"x";d&&_.zV.extend(q,d);return q};
IqF.prototype.resetProductData=function(){this.productData={}};var pmy=function(c){this.feedbackManager=new IqF(c)};
pmy.prototype.showFeedbackDialog=function(c,f,d,q){return this.feedbackManager.showFeedbackDialog(c,f,d,q)};
pmy.prototype.showHelpDialog=function(c,f,d){return this.feedbackManager.showHelpDialog(c,f,d)};var xi_=function(){this.baseUrl="";this.aTag=document.createElement("a")},SvH=function(c,f,d){d=d===void 0?{}:d;
d.pbj||(d.pbj=1);d=_.QeN(f,d);c.baseUrl&&d&&!_.x5(d)[1]&&!_.ow(d)&&(f=c.baseUrl,rz(f,"/")&&(f=f.slice(0,-1)),_.Z4(d,"/")&&(d=d.slice(1)),d=f+"/"+d);_.yM(c.aTag,ah(d||""));return c.aTag.href};
xi_.prototype.fetchData=function(c){return _.bRC(c)};
xi_.prototype.postData=function(c,f){var d={method:"POST"};if(f){for(var q=_.C(Object.keys(f)),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var M=f[Z];_.Ik(M)&&(f[Z]=JSON.stringify(M))}d.postParams=f}return _.bRC(c,d)};
_.Lsy=function(c,f,d,q,Z){c=SvH(c,f,d);if(!c)throw q=Error("di"),Object.assign(q,{params:f}),q;return _.bRC(c,Z,q)};
xi_.prototype.requestDataForServiceEndpoint=function(c,f){if(_.b(c,_.JyN))return this.fetchData("/getAccountSwitcherEndpoint");f=f||{};var d=_.b(c,UBv);d?f.se=d.base64EncodedServiceEndpoint:f.sej=JSON.stringify(c);(d=_.X2())&&_.F("enable_service_ajax_csn")&&(f.csn=d);f.theme=_.LX();_.b(c,LOM)&&_.hk("DELEGATION_CONTEXT")&&(f.delegation_context=JSON.stringify(_.hk("DELEGATION_CONTEXT")));d=null;for(var q in c)if(rz(q,"Endpoint")||rz(q,"Command")){d=q;break}if(!d){var Z=Error("ei");Object.assign(Z,{params:c});
_.Evk(Z,"WARNING");return new _.i6(function(g,O){O(Z)})}q={name:d};
var M;(d=(M=_.b(c,_.Ti))==null?void 0:M.signal)&&(q.signal=d);(M=_.Rw(window.location.href))&&M.internalcountrycode&&(q.internalcountrycode=M.internalcountrycode);M="/service_ajax";_.F("debug_forward_web_query_parameters")&&(M=_.WnC(M,window.location.search));M=_.p9(M,q);c.clickTrackingParams&&_.cO(M,{itct:c.clickTrackingParams});return this.postData(M,f)};_.oPF=new _.jk("GFEEDBACK_TOKEN");var GJH;var cIF;var fAj;var dFF;var CK=function(){var c=_.z.apply(this,arguments)||this;c.compact=!1;return c};
_.K(CK,_.z);CK.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
CK.prototype.computeHasIcon_=function(c){return!!c};
CK.prototype.isSignInIcon_=function(c){return c=="yt-icons:prompted_sign_in"};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.y73.YtConditionalRendererBehavior),_.D("design:type",Object)],CK.prototype,"ytConditionalRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],CK.prototype,"data",void 0);
_.y([_.L({computed:"computeIcon_(data.icon)"}),_.D("design:type",Object)],CK.prototype,"icon_",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.D("design:type",Boolean)],CK.prototype,"hasIcon_",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.D("design:type",Boolean)],CK.prototype,"signInIcon_",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],CK.prototype,"compact",void 0);
_.y([_.vj({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],CK);
_.h(CK,"yt-player-error-message-renderer",function(){if(dFF===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;fAj===void 0&&(fAj=document.createElement("template"));var q=fAj;d.call(f,q.content.cloneNode(!0),c.content.firstChild);dFF=c}c=dFF;return c},{mode:2});var j4H;var qhT;var gp=function(){return _.z.apply(this,arguments)||this};
_.K(gp,_.z);gp.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gp.prototype.computeIcon_=function(c){return c?"yt-icons:"+c.iconType.toLowerCase():"error_outline"};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gp.prototype,"data",void 0);_.y([_.L({computed:"computeIcon_(data.icon)"}),_.D("design:type",Object)],gp.prototype,"icon_",void 0);_.y([_.vj({is:"yt-player-kav-renderer",disableElementRegistration:!0})],gp);
_.h(gp,"yt-player-kav-renderer",function(){if(qhT===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;j4H===void 0&&(j4H=document.createElement("template"));var q=j4H;d.call(f,q.content.cloneNode(!0),c.content.firstChild);qhT=c}c=qhT;return c},{mode:2});var ViY=_.pp(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.g_(_.dN(function(c){var f=_.xz("div"),d=_.C(_.OT(0,void 0,"yt0wE")),q=d.next().value,Z=d.next().value;d=_.C(_.OT(null,void 0,"CnFp5"));var M=d.next().value,g=d.next().value;_.L9(function(){XYk(f.value,Z,g);f.value.scrollIntoView()});
d=uqr.bind(null,c.data,q);du("resize",function(){var O=M();if(q()===1&&O!==null){var l;(l=window.grecaptcha)==null||l.reset(O)}});
return _.B("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.B("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.B("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var O,l;return(O=c.data().accessibility)==null?void 0:(l=O.accessibilityData)==null?void 0:l.label}),_.B(_.J9,{text:d,
className:_.FY("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.B("div",{el:f,class:"ytwPlayerCaptchaViewModelGridItem"})))},"we"),"yt-player-captcha-view-model",{props:{data:_.Cs}});var vTN=!1;_.Zvy=_.dN(function(c){var f=c.data;return _.B("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.B(_.T,{cond:function(){return f().icon},
then:function(d){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.B(_.jC,{data:d,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.B(_.T,{cond:function(){return f().title},
then:function(d){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.B(_.J9,{text:d}))}}),_.B(_.T,{cond:function(){return f().description},
then:function(d){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.B(_.J9,{text:d}))}}),_.B(_.u7,{data:function(){return f().primaryButton}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.B(_.u7,{data:function(){return f().secondaryButton}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"xe");
_.Zvy.idomCompat=!0;var MdF=_.dN(function(c){var f=c.data;_.R9();return _.B("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.B("div",{class:"player-interstitial-renderer-wiz__scrim"},_.B(_.u7,{data:function(){return f().content}},{interstitialViewModel:_.Zvy})))},"ye");
MdF.idomCompat=!0;_.g_(MdF,"yt-player-interstitial-renderer",{props:{data:_.oM}});var ky=function(){var c=_.z.apply(this,arguments)||this;c.noBackground=!1;c.compact=!1;c.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return c};
_.K(ky,_.z);ky.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"}}}};
ky.prototype.onUpdatePlayerErrorMessageCommand_=function(c){if(_.b(c,gfH)){var f;if(c=(f=_.b(c,gfH))==null?void 0:f.newPlayerErrorMessageRenderer)this.data=c}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ky.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ky.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],ky.prototype,"status",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ky.prototype,"noBackground",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ky.prototype,"compact",void 0);_.y([_.vj({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],ky);
var rIO=_.OD()(ky,"yt-playability-error-supported-renderers",function(){if(cIF===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;GJH===void 0&&(GJH=document.createElement("template"));var q=GJH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);cIF=c}c=cIF;return c},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var hMN=void 0,y1k=void 0;var eMz=new wur;var C$3=function(c){this.store=c;this.xAB=new _.DxT},HNN=function(c,f,d){var q,Z;
if(!(Z=((q=f.playabilityStatus)==null?void 0:q.status)!=="OK")){c=c.store;var M;Z=f.offlineState&&((M=f.videoDetails)==null?0:M.videoId)?_.F("enable_pl_r_c_cd")?cue(c.getState().entities,f.videoDetails.videoId):!!$IG(c.getState().entities,f.videoDetails.videoId):!1}if(Z)return!0;Z=UcP(f);if(Z===1){if(_.F("ab_v_vid_sig")){var g,O=(g=f.videoDetails)==null?void 0:g.videoId;if(!O||!d||O!==d){var l;f=new _.KD("282054944_vid",{rWm:d,qu2:(l=f.videoDetails)==null?void 0:l.videoId});_.VO(f)}}return!0}vqr=
0;var m,H;l=(O=f.auxiliaryUi)==null?void 0:(m=O.messageRenderers)==null?void 0:(H=m.bkaEnforcementMessageViewModel)==null?void 0:H.displayType;if(Z!==3&&(l==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||l==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;l={reason:_.jU(_.HO("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.F("ks_something_wrong_learn_more")?CHk("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.jU(_.HO("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:_.jU("282054944")};gYH(f,{playerErrorMessageRenderer:l});return!1},AFN=function(c,f){if(fbC(f)){_.HS(1,!0);
var d=(d=fbC(f))&&_.wYN()?d:void 0;d?(gYH(f,{enforcementMessageViewModel:d}),c.xAB.increment("IN_PLAYER"),_.HS(5)):(c.xAB.increment("SKIP_DISPLAY"),_.HS(2))}},gYH=function(c,f){c.playabilityStatus=Object.assign({},c.playabilityStatus,{status:"ERROR",
errorScreen:f});c.videoDetails=void 0};
C$3.prototype.handleResponse=function(c,f){if(c.playabilityStatus){var d,q,Z,M=(f==null?void 0:(d=f.innerTubeRequest)==null?void 0:d.videoId)||(f==null?void 0:(q=f.innerTubeRequest)==null?void 0:(Z=q.playerRequest)==null?void 0:Z.videoId);HNN(this,c,M)&&AFN(this,c)}};
C$3[dE]=[Cp];var Tjk=new _.jk("ADBLOCK_DETECTION_SERVICE_TOKEN");var o9=function(c){this.pwp=c};
o9.prototype.bindInnertubeChallengeFetcher=function(c){this.pwp.bicf(c)};
o9.prototype.registerChallengeFetchedCallback=function(c){this.pwp.bcr(c)};
o9.prototype.getLatestChallengeResponse=function(){return this.pwp.blc()};var klv;klv=_.pp(["https://static.doubleclick.net/instream/ad_status.js"]);_.OvF=_.CG(klv);var ivO;_.Oq=function(c,f,d){var q=this;this.network=c;this.options=f;this.networkStatusManager=d;this.ue=null;if(f.useBotguardEverywhere){var Z=new _.BS;this.ue=Z.promise;_.dz.ytAtRC&&_.QH(_.a7,function(){var M,g;return _.k(function(O){if(O.nextAddress==1){if(!_.dz.ytAtRC)return O.return();M=lAj(null);return O.yield(q.ju(M),2)}g=O.yieldResult;_.dz.ytAtRC&&_.dz.ytAtRC(JSON.stringify(g));_.Fm(O)})});
cje().then(function(M){var g,O,l,m;return _.k(function(H){if(H.nextAddress==1)return M.bindInnertubeChallengeFetcher(function(A){return q.ju(lAj(A))}),H.yield(S6M(),2);
g=H.yieldResult;O=M.getLatestChallengeResponse();l=O.challenge;if(!l)throw Error("fi");m={challenge:l,z2:xs(l),vm:g,bgChallenge:new Uo};Z.resolve(m);M.registerChallengeFetchedCallback(function(A){A=A.challenge;if(!A)throw Error("gi");A={challenge:A,z2:xs(A),vm:g,bgChallenge:new Uo};q.ue=Promise.resolve(A)});
_.Fm(H)})})}else f.preload&&s4j(this,new Promise(function(M){_.Em(_.a7,function(){M(BMH(q))},0)}))};
ivO=function(c){var f={preload:!0,useBotguardEverywhere:!0},d=!1;if(typeof f==="boolean")var q={preload:f};else typeof f==="undefined"?q={preload:!0}:(q=f,d=!!f.gYG);f=d?void 0:new _.I7;_.Oq.instance=new _.Oq(c,q,f);return _.Oq.instance};
_.Oq.prototype.lpd=function(){var c=this;return _.k(function(f){return f.nextAddress==1?f.yield(Promise.race([c.ue,null]),2):f.return(!!f.yieldResult)})};
_.Oq.prototype.tYY=function(c,f,d){var q=this,Z,M,g;return _.k(function(O){q.ue===null&&s4j(q,BMH(q));Z=!1;M={};g=function(){var l,m,H;return _.k(function(A){switch(A.nextAddress){case 1:return A.yield(q.ue,2);case 2:l=A.yieldResult;M.challenge=l.challenge;if(!l.vm){"c1a"in l.z2&&(M.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");A.jumpTo(3);break}m=Object.assign({},{c:l.challenge,e:c},f);_.iY(A,4);Z=!0;return A.yield(l.vm.snapshot({hI:m}),6);case 6:(H=A.yieldResult)?M.webResponse=H:M.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Pq(A,3);break;case 4:_.Yw(A),M.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(c==="ENGAGEMENT_TYPE_PLAYBACK"){var Y=l.z2,t={};if(Y.c6a){var E=Number(_.hk("DCLKSTAT",0));t.reportingStatus=String(Number(Y.c)^(isNaN(E)?0:E))}Y.c6b&&(t.broadSpectrumDetectionResult=String(Number(Y.c)^Number(_.hk("CATSTAT",0))));M.adblockReporting=t}return A.return(M)}})};
return O.return(Promise.race([g(),TMK(d,function(){var l=Object.assign({},M);Z&&(l.error="ATTESTATION_ERROR_VM_TIMEOUT");return l})]))})};
var lAj=function(c){var f={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};c&&(f.interpreterHash=c);return f},BMH=function(c,f){f=f===void 0?0:f;
var d,q,Z,M,g,O,l,m,H,A,Y,t;return _.k(function(E){switch(E.nextAddress){case 1:d=lAj(eRH().gVv);if(_.F("att_fet_ks"))return _.iY(E,7),E.yield(c.ju(d),9);_.iY(E,4);return E.yield(mFo(c,d),6);case 6:g=E.yieldResult;Z=g.qDm;M=g.bSm;q=g;_.Pq(E,3);break;case 4:return _.Yw(E),_.u6(Error("hi`"+f)),HvO(c,864E5),E.return({challenge:"",z2:{},vm:void 0,bgChallenge:void 0});case 9:q=E.yieldResult;if(!q)throw Error("ii");if(!q.challenge)throw Error("ji");Z=q.challenge;M=xs(Z);if("c1a"in M&&(!q.bgChallenge||!q.bgChallenge.program))throw Error("ki");
_.Pq(E,3);break;case 7:O=_.Yw(E);_.u6(O);f++;if(f>=5)return _.u6(Error("hi`"+f)),HvO(c,864E5),E.return({challenge:"",z2:{},vm:void 0,bgChallenge:void 0});l=1E3*Math.pow(2,f-1)+Math.random()*1E3;return E.return(new Promise(function(J){_.Em(_.a7,function(){J(BMH(c,f))},l)}));
case 3:m=GqG(M);HvO(c,m*1E3);H=void 0;if(!("c1a"in M&&q.bgChallenge)){E.jumpTo(10);break}A=oTn(q.bgChallenge);_.iY(E,11);return E.yield(IgO(eRH(),A),13);case 13:_.Pq(E,12);break;case 11:return Y=_.Yw(E),_.u6(Y),E.return({challenge:Z,z2:M,vm:H,bgChallenge:A});case 12:return _.iY(E,14),H=new _.up({challenge:A,evG:{qJ:"aGIf"}}),E.yield(H.yaP,16);case 16:_.Pq(E,10);break;case 14:t=_.Yw(E),_.u6(t),H=void 0;case 10:return E.return({challenge:Z,z2:M,vm:H,bgChallenge:A})}})};
_.Oq.prototype.ju=function(c){var f=this,d;return _.k(function(q){d=f.networkStatusManager;if(!d||d.isNetworkAvailable())return q.return(f.network.ju(c));_.ul("att_pna",void 0,"attestation_challenge_fetch");return q.return(new Promise(function(Z){d.listenOnce("publicytnetworkstatus-online",function(){f.network.ju(c).then(Z)})}))})};
var AI_=function(c){if(!c)throw Error("ii");if(!c.challenge)throw Error("ji");var f=c.challenge,d=xs(f);if("c1a"in d&&(!c.bgChallenge||!c.bgChallenge.program))throw Error("ki");return Object.assign({},c,{qDm:f,bSm:d})},mFo=function(c,f){var d,q,Z,M,g;
return _.k(function(O){switch(O.nextAddress){case 1:d=void 0,q=0,Z={};case 2:if(!(q<5)){O.jumpTo(4);break}if(!(q>0)){O.jumpTo(5);break}Z.v4G=1E3*Math.pow(2,q-1)+Math.random()*1E3;return O.yield(new Promise(function(l){return function(m){_.Em(_.a7,function(){m(void 0)},l.v4G)}}(Z)),5);
case 5:return _.iY(O,7),O.yield(c.ju(f),9);case 9:return M=O.yieldResult,O.return(AI_(M));case 7:d=g=_.Yw(O),g instanceof Error&&_.u6(g);case 8:q++;Z={v4G:void 0};O.jumpTo(2);break;case 4:throw d;}})},s4j=function(c,f){c.ue=f},YhH=function(c){var f,d,q;
return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(Promise.race([c.ue,null]),2);f=Z.yieldResult;var M=BMH(c);c.ue=M;(d=f)==null||(q=d.vm)==null||q.dispose();_.Fm(Z)})},HvO=function(c,f){var d=Date.now()+f,q=function(){var Z;
return _.k(function(M){Z=d-Date.now();return Z<1E3?M.yield(YhH(c),0):(_.Em(_.a7,q,Math.min(Z,6E4)),M.jumpTo(0))})};
q()},TMK=function(c,f){return new Promise(function(d){_.Em(_.a7,function(){d(f())},c)})};var F2H=function(){};
F2H.prototype.processContext=function(c){var f=_.Oq.instance;if(!f)return _.xf();var d=MoG(c);return d?new pz(f.tYY(d,jzN(c),500).then(function(q){var Z;(c==null?0:(Z=c.innerTubeRequest)==null?0:Z.context)||(c.innerTubeRequest.context={});Z=c.innerTubeRequest.context;Z.request||(Z.request={});Z.request.attestationResponseData=q})):_.xf()};var tdF=function(c){this.innertubeTransportService=c};
tdF.prototype.ju=function(c){_.ul("att_fsr",void 0,"attestation_challenge_fetch");return _.y9(this.innertubeTransportService,c,_.cS(_.ktu)).then(function(f){_.ul("att_frr",void 0,"attestation_challenge_fetch");return f})};_.bvF=function(c){this.innertubeTransportService=c};var K2u=new _.jk("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var EYO=function(){},$F_=function(c,f,d,q,Z){var M=_.hk("YPC_MB_URL");
_.D1r(M).then(function(){nYK(M,c,f,d,q,Z)})},nYK=function(c,f,d,q,Z,M){try{var g=payments.business.integration,O=payments.business.integration.Style.create().withMaterialDesignStyle(),l=g.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.F("enable_window_constrained_buy_flow_dialog")&&(l=l.usingPopupStyle("windowConstrained"));M&&(l=l.usingCloseCallback(M));var m=d?d:_.hk("YPC_GB_LANGUAGE"),H=_.hk("SESSION_INDEX");g.bootstrap.fromPaymentsUrl(c);g.bootstrap.asMashupMode(l).usingGaiaIndex(H).usingLocale(m).usingStyle(O).usingDefaultActivityStatusChangeHandler().inStandaloneContext(g.standaloneContextAuthId.forGaia()).purchaseManager(f,function(A){q&&q(A)}).load(void 0,Z)}catch(A){throw Z&&Z(A),_.VO(A),A;
}};var Q4o=new _.jk("PURCHASE_MANAGER_TOKEN");var Shu=function(){var c=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return c.videos},
getContinuationsPresent:function(){return c.continuationsPresent},
setVideos:function(f){c.videos=f},
getRecommendedVideos:function(){return c.recommendedVideos},
setRecommendedVideos:function(f){c.recommendedVideos=f}}};
Shu.prototype.addVideos=function(c){c&&(this.videos=c.filter(function(f){return!!_.C8Y(f)}).map(function(f){var d=_.C8Y(f);
a:{var q;if(f.playlistVideoRenderer&&((q=f.playlistVideoRenderer)==null?0:q.voteSortTiebreaker))var Z=f.playlistVideoRenderer.voteSortTiebreaker;else{if(_.b(f,c5)){var M;if(q=(Z=_.b(f,c5))==null?void 0:(M=Z.playlistItemData)==null?void 0:M.voteSortTiebreaker){Z=q;break a}}Z=""}}return{itemId:d,videoId:_.Ob4(f),voteCount:_.lRk(f),voteSortTiebreaker:Z}}),this.continuationsPresent=!!_.b(c[c.length-1],_.jJ))};
var L2_=function(c,f){return c.videos.findIndex(function(d){return d.itemId===f})},zTF=function(c,f){return c.recommendedVideos.findIndex(function(d){return d.itemId===f})},JIv=function(c){c={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:c}}}}};_.ql().resolve(_.ZM).resolveCommand(c)};var aA3=function(){Shu.apply(this,arguments)};
_.K(aA3,Shu);
var ssK=function(c,f,d,q){if(!c.parentElem)throw Error("pi");var Z=L2_(c,f);Z===-1&&(Z=zTF(c,f),Z=Z!==-1?Z+c.videos.length:-1);if(Z===-1)throw Error("qi");var M=Z>=c.videos.length?c.recommendedVideos[Z-c.videos.length]:c.videos[Z];M.voteCount=d;M.voteSortTiebreaker=Date.now().toString();Z>=c.videos.length?c.recommendedVideos.splice(Z-c.videos.length,1):c.videos.splice(Z,1);var g=c.videos;for(var O=0,l=g.length-1;O<=l;){var m=Math.floor((O+l)/2);if(g[m].voteCount<M.voteCount)l=m-1;else if(g[m].voteCount>M.voteCount)O=
m+1;else{a:{var H=M.voteSortTiebreaker;var A=g[m].voteSortTiebreaker;if(H.length!==A.length)H=H.length>A.length;else{for(var Y=0;Y<H.length;Y++){var t=H.charCodeAt(Y),E=A.charCodeAt(Y);if(t>E){H=!0;break a}if(t<E)break}H=!1}}H?l=m-1:O=m+1}}g=O;if(g===-1)throw Error("ri");c.videos.splice(g,0,M);Z!==g&&Vdj(c,Z,g,f,d,q)},Vdj=function(c,f,d,q,Z,M){var g,O=(g=c.parentElem)==null?void 0:g.children,l=Math.min(f,d),m=Math.max(f,d);
if(O)for(g=l;g<=m;g++)O[g].style.viewTransitionName="item-"+String(g);document.startViewTransition(function(){if(c.parentElem){var H=c.parentElem.children;if(!(!H||f<0||f>=H.length||d<0||d>=H.length)){var A=H[f];if(A){A.remove();c.showRefreshPill=d>=c.videos.length-1&&c.continuationsPresent;if(!c.showRefreshPill){H=H[d]||null;var Y;(Y=c.parentElem)==null||Y.insertBefore(A,H)}_.CZ(c.parentElem,"yt-update-video-data-voting-animation",{toIdx:d,itemId:q,newVoteCount:Z,voteStatus:M,hideItem:c.showRefreshPill})}}}}).finished.then(function(){if(O)for(var H=
l;H<=m;H++)O[H].style.viewTransitionName="";
if(c.showRefreshPill)JIv(_.HO("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var A;if(A=H=(A=c.parentElem)==null?void 0:A.children[d])A=H.getBoundingClientRect(),H=A.bottom,A=!(A.top>=0&&H<=c.clientHeight);A&&(A=_.AQ(f>d?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(f-d)),JIv(A))}})};var vYF=function(c,f){var d=this;c?this.innertubeTransportServicePromise=Promise.resolve(c):f&&(this.innertubeTransportServicePromise=f(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new pM(3E3,function(q){return Xl3(d,q)},0);
this.validateMiniAppVideoIdRateLimiter=new pM(3E3,function(q){return ug_(d,q)},1)},lqj=function(c,f){c.JSC$17061_miniAppId=f;
c.reportMiniAppValueRateLimiter=new pM(3E3,function(d){return Xl3(c,d)},0);
c.validateMiniAppVideoIdRateLimiter=new pM(3E3,function(d){return ug_(c,d)},1)},BcO=function(c,f){var d;
return _.k(function(q){if(q.nextAddress==1)return q.yield(c.reportMiniAppValueRateLimiter.call(f),2);d=q.yieldResult;return q.return([d,f])})},Xl3=function(c,f){var d,q,Z,M,g,O,l;
return _.k(function(m){switch(m.nextAddress){case 1:return m.yield(c.innertubeTransportServicePromise,2);case 2:return d=m.yieldResult,q=_.cS(T93),Z=Date.now(),M={externalPostId:c.JSC$17061_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Z/1E3),nanos:Math.round(Z%1E3*1E6)},intValue:""+f}},_.iY(m,3),m.yield(_.y9(d,M,q),5);case 5:g=m.yieldResult;_.Pq(m,4);break;case 3:throw O=_.Yw(m),O;case 4:if(g){if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("si`"+
g.errorMetadata.status);if(l=g.userStatResult)return m.return(l);throw Error("ti");}throw Error("ui");}})},Tc3=function(c){var f,d,q,Z,M;
_.k(function(g){switch(g.nextAddress){case 1:return g.yield(c.innertubeTransportServicePromise,2);case 2:return f=g.yieldResult,d=_.cS(T93),q={externalPostId:c.JSC$17061_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.iY(g,3),g.yield(_.y9(f,q,d),5);case 5:Z=g.yieldResult;_.Pq(g,4);break;case 3:throw M=_.Yw(g),M;case 4:if(Z==null)throw Error("ui");if("error"in Z&&Z.error)throw Z.error;if(Z.errorMetadata)throw Error("si`"+Z.errorMetadata.status);_.Fm(g)}})};
vYF.prototype.flush=function(){var c=this;return _.k(function(f){return f.nextAddress==1?f.yield(c.reportMiniAppValueRateLimiter.flush(),2):f.yield(c.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var iH3=function(c,f){return _.k(function(d){return d.nextAddress==1?d.yield(c.validateMiniAppVideoIdRateLimiter.call(f),2):d.return(d.yieldResult)})},ug_=function(c,f){var d,q,Z,M,g,O;
return _.k(function(l){switch(l.nextAddress){case 1:return l.yield(c.innertubeTransportServicePromise,2);case 2:return d=l.yieldResult,q=_.cS(C9r),Z={videoId:f},_.iY(l,3),l.yield(_.y9(d,Z,q),5);case 5:M=l.yieldResult;_.Pq(l,4);break;case 3:throw g=_.Yw(l),g;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("si`"+M.errorMetadata.status);if(O=M.playabilityStatus)return l.return(O.status);throw Error("vi");}throw Error("ui");}})};
vYF[dE]=[_.dx(_.uo),_.dx(wX_)];var hTT=function(){this.clientData=new Map};
hTT.prototype.getData=function(c){return this.clientData.get(c)};var wl_=function(c){this.store=c};
wl_.prototype.handleResponse=function(c){(c=_.b(c.frameworkUpdates,dy))&&_.AE(c,this.store)};
wl_[dE]=[_.WL];var yIo=new _.jk("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var W23={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 DFr=new _.jk("ICON_SET_TOKEN"),eTy=new _.jk("ICON_URL_PROVIDER_TOKEN"),NMu=new _.jk("PREFETCH_ICONS_TOKEN"),IAy=new _.jk("ICON_MAP_FN_TOKEN");var lv={},P$K=(lv.ACCESS_TIME="clock",lv.ACCOUNT_BOX="person_account",lv.ACCOUNT_BOX_CAIRO="person_account_cairo",lv.ACCOUNT_CIRCLE="person_circle",lv.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",lv.ACCOUNT_LINKED="account_link_success",lv.ACCOUNT_UNLINKED="account_link",lv.ADD_FRIEND="people",lv.ADD_MODERATOR="shield_add",lv.ADD_TO_LIBRARY="bookmark",lv.ADD_TO_PLAYLIST="add",lv.ADD_TO_QUEUE_TAIL="list_queue",lv.ADD_TO_REMOTE_QUEUE="list_music",lv.ADD_TO_WATCH_LATER="clock",lv.ADD_VIDEO_LINK="film_strip_add",
lv.ALERT_WARN_RED="alert_triangle",lv.ARROW_BACK="arrow_left",lv.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",lv.ARROW_DROP_DOWN="chevron_down",lv.ARROW_DROP_UP="chevron_up",lv.ARROW_FORWARD="arrow_right",lv.AUDIOTRACK="audio",lv.AUTO_AWESOME="sparkle",lv.AVATAR_ANONYMOUS="person_circle",lv.AVATAR_LOGGED_OUT="person_circle",lv.BACK="arrow_left",lv.BAR_CHART="bar_graph",lv.BLOCK="slash_circle_left",lv.BLOCK_USER="slash_circle_left",lv.BOOKMARK_BORDER="bookmark",lv.BREAKING_NEWS_ALT_1="article_alert",
lv.BROADCAST_CAIRO="podcast_cairo",lv.BUG_REPORT="bug",lv.CAMERA_ALT="camera",lv.CAMPAIGN="megaphone",lv.CANCEL="x_circle",lv.CAPTIONS="closed_caption",lv.CAST_OUTLINE="chromecast",lv.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",lv.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",lv.CHAT="message_bubble_left",lv.CHAT_BUBBLE="message_bubble_empty",lv.CHAT_SPARK="spark_message_bubble_left",lv.CHECK_BOX_OUTLINE_BLANK="box_empty",lv.CHECK_CIRCLE_OUTLINE="check_circle",lv.CHECK_CIRCLE_THICK="check_circle",lv.CLARIFY=
"article_clarify",lv.CLOSED_CAPTION_SELECTED="closed_caption",lv.CLOSE="x_mark",lv.CLOUD_UPLOAD="cloud_arrow_up",lv.COLLAPSE="chevron_up",lv.COLLAPSE_CAIRO="chevron_up_cairo",lv.COLLECTION="layers",lv.COLOR_LENS="palette",lv.COMMENT="message_bubble_right",lv.CONSENT_SHIELD="person_shield",lv.CONTENT_CUT="scissors",lv.CONTENT_CUT_CAIRO="scissors_cairo",lv.COURSE=_.F("web_enable_course_icon_update")?"creator_academy":"lightbulb",lv.COURSE_CAIRO=_.F("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",lv.CREATION_LIVE="radar_live",lv.CREATION_POST="box_pencil",lv.CREATION_UPLOAD="my_videos",lv.CREATION_UPLOAD_RED="upload",lv.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",lv.CREATOR_STUDIO="youtube_studio",lv.DASHBOARD="grid_asymmetrical",lv.DELETE="trash_can",lv.DELETE_SWEEP="trash_can",lv.DESKTOP="laptop",lv.DISLIKE="thumb_down",lv.DISLIKE_SELECTED="thumb_down",lv.DISMISSAL="x_mark",lv.DISMISS_QUEUE="list_remove",lv.DONE_ALL="check_double",lv.DOWN_ARROW="arrow_down",lv.DO_NOT_DISTURB=
"slash_circle_left",lv.DRAFT="paper_corner_folded",lv.DRAG_HANDLE="bars_2",lv.EDIT="pencil",lv.EMOJI="face_very_happy",lv.EMOJI_FLAGS="flag",lv.EMOJI_OBJECTS="lightbulb",lv.EMOJI_PEOPLE="face_very_happy",lv.EMOJI_RECENT="clock",lv.EMPTY_HEART="heart",lv.EMPTY_LIKE="thumb_up",lv.ERROR_BLACK="alert_circle",lv.ERROR_OUTLINE="alert_circle",lv.EXIT_APP="arrow_in",lv.EXIT_TO_APP="arrow_in",lv.EXPAND="chevron_down",lv.EXPAND_ALL="chevron_expand",lv.EXPAND_CAIRO="chevron_down_cairo",lv.EXPAND_LESS="chevron_up",
lv.EXPAND_MORE="chevron_down",lv.EXPLORE="compass",lv.EXPLORE_DESTINATION="compass",lv.EXTERNAL_LINK="open_new",lv.FAB_UPLOAD="upload",lv.FACE_HAPPY_OUTLINE="face_happy",lv.FACT_CHECK="article_check",lv.FASHION_LOGO="fashion",lv.FASHION_LOGO_CAIRO="fashion_cairo",lv.FAVORITE="heart",lv.FEEDBACK="message_bubble_alert",lv.FEEDBACK_CAIRO="message_bubble_alert_cairo",lv.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",lv.FILL_ARROW_SOLID_UP_16="arrow_solid_up",lv.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
lv.FILTER="menu_filter",lv.FIRST_PAGE="chevron_first",lv.FLAG="flag",lv.FULL_HEART="heart",lv.GAME_CONSOLE_DPAD="game_console_dpad",lv.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",lv.GAMING_LOGO="gaming",lv.GAMING_LOGO_CAIRO="gaming_cairo",lv.GO_TO_PAGE="arrow_right",lv.GROUPS="people_group",lv.HAPPY="face_happy",lv.HEALTH_AND_SAFETY="shield_plus",lv.HELP="question_circle",lv.HELP_CAIRO="question_circle_cairo",lv.HELP_OUTLINE="question_circle",lv.HIDE="slash_circle_left",lv.IMAGE="image",
lv.INFINITY_ICON="infinity",lv.INFO="info_circle",lv.INFO_OUTLINE="info_circle",lv.INSERT_CHART="bar_graph_box_vertical",lv.INSERT_CHART_OUTLINED="bar_graph_box_vertical",lv.INSERT_PHOTO="image",lv.KEEP="pin",lv.KEEP_OFF="pin_off",lv.KEYBOARD="keyboard",lv.KEYBOARD_ARROW_DOWN="chevron_down",lv.KEYBOARD_ARROW_UP="chevron_up",lv.KIDS_BLOCK="slash_circle_left",lv.LANGUAGE="globe",lv.LAST_PAGE="chevron_last",lv.LAUNCH="open_new",lv.LEARNING="lightbulb",lv.LEARNING_CAIRO="lightbulb_cairo",lv.LIBRARY_ADD=
TQG("library_add"),lv.LIBRARY_OUTLINE="library",lv.LIBRARY_REMOVE=TQG(),lv.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",lv.LIKES_PLAYLIST="thumb_up",lv.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",lv.LIKE="thumb_up",lv.LIKE_SELECTED="thumb_up",lv.LIVE="radar_live",lv.LIVE_CAIRO="radar_live_cairo",lv.LIVE_UNLISTED="link",lv.LOCATION_ON="location_point",lv.LOCATION_PIN="location_point",lv.LOOP="arrow_repeat",lv.LOOP_ACTIVE="arrow_repeat",lv.LOOP_ONE="arrow_repeat_1",lv.LOOP_ONE_ACTIVE="arrow_repeat_1",lv.MEH=
"face_meh",lv.MEMBERS_ONLY_MODE_OFF="message_bubble_left",lv.MESSAGE="message_bubble_left",lv.MICROPHONE_ON="mic",lv.MIX="youtube_mix",lv.MONETIZATION_ON="dollar_sign_circle",lv.MONEY_FILL="dollar_sign_container",lv.MONEY_FILL_JPY="yen_sign_container",lv.MONEY_HEART="dollar_sign_heart",lv.MORE_HORIZ="overflow_horizontal",lv.MORE_VERT="overflow_vertical",lv.MUSIC="audio",lv.MUSIC_CAIRO="audio_cairo",lv.MUSIC_NOTE_SYMBOL="music",lv.MUSIC_SHUFFLE="arrow_shuffle",lv.MY_CHANNEL="person_circle",lv.MY_LOCATION=
"location_point",lv.NEWS_STORY="news",lv.NEXT="chevron_right",lv.NOTIFICATIONS="bell",lv.NOTIFICATIONS_ACTIVE="bell_on",lv.NOTIFICATIONS_CAIRO="bell_cairo",lv.NOTIFICATIONS_DONE_CHECKMARK="check",lv.NOTIFICATIONS_INBOX="bell",lv.NOTIFICATIONS_NONE="bell",lv.NOTIFICATIONS_OFF="bell_off",lv.NOT_INTERESTED="slash_circle_left",lv.OFFICIAL_ARTIST_BADGE="audio",lv.OFFLINE_CLOUD="cloud_off",lv.OFFLINE_DOWNLOAD="download",lv.OFFLINE_DOWNLOAD_CAIRO="download_cairo",lv.OFFLINE_PAUSE="pause",lv.OPEN_IN_NEW=
"open_new",lv.OUTLINE_ADJUST="adjust",lv.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",lv.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",lv.OUTLINE_BAG="bag",lv.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",lv.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",lv.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",lv.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",lv.PAID="dollar_sign",lv.PAUSE_OUTLINED="pause",lv.PAYMENT="credit_card",lv.PERSON_RADAR_FILLED="person_radar",lv.PHONE_DOWNLOAD="mobile_download",
lv.PLAYABLES_LOGO="tic_tac_toe",lv.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",lv.PLAYLISTS="list_play_arrow",lv.PLAYLISTS_CAIRO="list_play_arrow_cairo",lv.PLAYLIST_ADD=TQG("list_add"),lv.PLAYLIST_ADD_CHECK=TQG("list_check"),lv.PLAYLIST_PLAY="list_play_arrow",lv.PLAY_ALL="play_arrow",lv.PLAY_CIRCLE="play_arrow_circle",lv.PLAY_OUTLINED="play_arrow_circle",lv.PRIVACY_INFO="shield",lv.PRIVACY_PRIVATE="lock",lv.PRIVACY_PUBLIC="earth",lv.PRIVACY_UNLISTED="link",lv.PROMOTE="megaphone",lv.PURCHASES="price_tag",
lv.PURCHASE_SUPER_CHAT="super_chat",lv.PURCHASE_SUPER_STICKER="super_sticker",lv.QUESTION_ANSWER="message_bubble_question",lv.QUEUE_PLAY_LAST="list_queue_last",lv.QUEUE_PLAY_NEXT="list_play_arrow",lv.REMIX_FILLED="youtube_shorts_remix",lv.REMOVE="bar_circle",lv.REMOVE_CIRCLE="bar_circle",lv.REMOVE_CIRCLE_OUTLINE="bar_circle",lv.REMOVE_DONE="check_double_off",lv.REMOVE_FROM_HISTORY="bar_circle",lv.REMOVE_FROM_PLAYLIST="bar_circle",lv.REMOVE_MODERATOR="shield_off",lv.REPLAY="arrow_circle",lv.REPLAY_10=
"skip_back_10",lv.REPORT_PROBLEM="alert_triangle",lv.SAD="face_sad",lv.SAVE_PLAYLIST="bookmark",lv.SCHEDULE="clock",lv.SCHOOL="creator_academy",lv.SCREEN_FULLSCREEN="screen_full",lv.SEARCH_HISTORY="arrow_time",lv.SELL="price_tag",lv.SETTINGS="gear",lv.SETTINGS_CAIRO="gear_cairo",lv.SETTINGS_LIGHT="gear",lv.SETTINGS_MATERIAL="gear",lv.SHARE_ARROW="share",lv.SHIELD_WITH_AVATAR="person_shield",lv.SHOPPING_BAG="bag",lv.SHOPPING_BAG_CAIRO="bag_cairo",lv.SHOPPING_CART="cart",lv.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
lv.SHORTS_DISLIKE="youtube_shorts_thumb_down",lv.SHORTS_LIKE="youtube_shorts_thumb_up",lv.SHORTS_SHARE="youtube_shorts_share",lv.SHUFFLE="arrow_shuffle",lv.SLOW_MODE_OFF="message_bubble_left",lv.SOCIAL="people",lv.SORT="menu_sort",lv.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",lv.SPEED_1X="1x",lv.SPEED_1_POINT_2X="1_point_2x",lv.SPEED_1_POINT_5X="1_point_5x",lv.SPEED_1_POINT_8X="1_point_8x",lv.SPEED_2X="2x",lv.SPEED_POINT_2X="point_2x",lv.SPEED_POINT_8X="point_8x",lv.SPONSORSHIP_STAR=_.F("web_sponsorship_star_icon_killswitch")?
"memberships":"star_circle",lv.STAFF_PICK="spotlight",lv.START_DVR="add",lv.STAR_BORDER="star",lv.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",lv.STICKER_EMOTICON="face_happy",lv.STOP_DVR="stop",lv.SUBSCRIBE="youtube_logo_icon",lv.SUBSCRIBE_PLUS="add_cairo",lv.SUBSCRIPTION_MANAGER="gear",lv.SUPERVISOR_ACCOUNT="people",lv.SUPER_CHAT_FOR_GOOD="hands_heart",lv.SWAP_HORIZ="arrow_swap_horizontal",lv.SWITCH_ACCOUNTS="person_account",lv.TAB_ACCOUNT="person",lv.TAB_ACTIVITY="bell",lv.TAB_BOOKMARK="bookmark",
lv.TAB_EXPLORE="compass",lv.TAB_HOME="home",lv.TAB_HOME_CAIRO="home_cairo",lv.TAB_INBOX="mail",lv.TAB_LIKED="thumb_up",lv.TAB_MUSIC_PREMIUM="youtube_music",lv.TAB_SHORTS="youtube_shorts",lv.TAB_SHORTS_CAIRO="youtube_shorts_cairo",lv.TAB_SUBSCRIPTIONS="subscriptions",lv.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",lv.TAB_TRENDING="fire",lv.TIMER="stopwatch",lv.TRAILER="youtube_originals",lv.TRENDING="fire",lv.TRENDING_CAIRO="fire_cairo",lv.TRENDING_UP="rating_up",lv.TROPHY="trophy",lv.TROPHY_CELEBRATIONS=
"fireworks",lv.TUNE="adjust",lv.UNBLOCK_USER="bar_circle",lv.UNLIMITED="youtube_logo_icon",lv.UNPLUGGED_LIVE_GUIDE="radar_live",lv.UNPLUGGED_SPORTS="eye_off",lv.UPLOADS="library",lv.UP_ARROW="arrow_up",lv.VERTICAL_ALIGN_BOTTOM="download",lv.VERY_HAPPY="face_very_happy",lv.VERY_SAD="face_very_sad",lv.VIDEOGAME_ASSET="gaming",lv.VIDEOS="play_arrow_circle",lv.VIDEO_CALL="video_camera_add",lv.VIDEO_LIBRARY_WHITE="library",lv.VIDEO_YOUTUBE="youtube_logo_icon",lv.VIEW_LIST="list_view",lv.VIEW_LIST_CAIRO=
"list_view_cairo",lv.VISIBILITY="eye",lv.VISIBILITY_OFF="eye_off",lv.VOLUME_MUTE="volume_off",lv.VOLUME_UP="volume_on",lv.WALLPAPER="image",lv.WARNING="alert_triangle",lv.WATCH_HISTORY="arrow_time",lv.WATCH_HISTORY_CAIRO="arrow_time_cairo",lv.WATCH_LATER="clock",lv.WATCH_LATER_CAIRO="clock_cairo",lv.WATCH_RELATED_MIX="youtube_mix",lv.WHAT_TO_WATCH="home",lv.YOUTUBE_MUSIC_MONOCHROME="youtube_music",lv.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",lv.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
lv.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",lv.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",lv.YT_OUTLINE_MUSIC_24="music",lv);var sq={},RTy=(sq.ACCESS_TIME="clock",sq.ACCOUNT_BOX="person_square",sq.ACCOUNT_BOX_CAIRO="person_square",sq.ACCOUNT_CIRCLE="person_circle",sq.ACCOUNT_CIRCLE_CAIRO="person_circle",sq.ACCOUNT_LINKED="account_link",sq.ACCOUNT_UNLINKED="account_link",sq.ADD_CIRCLE="add_circle",sq.ADD_CIRCLE_OUTLINE="add_circle",sq.ADD_FRIEND="person_child",sq.ADD_MODERATOR="shield_add",sq.ADD_TO_LIBRARY="bookmark",sq.ADD_TO_PLAYLIST="add",sq.ADD_TO_QUEUE_TAIL="queue",sq.ADD_TO_REMOTE_QUEUE="playlist_audio",sq.ADD_TO_WATCH_LATER=
"clock",sq.ADD_VIDEO_LINK="film_strip_add",sq.ADMIN_PANEL_SETTINGS="person_gear",sq.ALERT_WARN_RED="alert_triangle",sq.ALIGN_LEFT="text_align_left",sq.ARROWS_ALERT="arrow_split_alert",sq.ARROW_BACK="arrow_left",sq.ARROW_CIRCLE="arrow_counterclockwise",sq.ARROW_CIRCLE_PLAY="replay",sq.ARROW_CIRCLE_RIGHT="arrow_clockwise",sq.ARROW_DIAGONAL="arrow_up_left",sq.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",sq.ARROW_DROP_DOWN="triangle_down",sq.ARROW_DROP_UP="triangle_up",sq.ARROW_FORWARD="arrow_right",sq.ARROW_PAUSE=
"pause_history",sq.ARROW_UNDO="undo",sq.ARTICLE="text_page",sq.ARTICLE_ALERT="text_page_alert",sq.ARTICLE_CHECK="text_page_check",sq.ARTICLE_CLARIFY="text_page_info",sq.AUDIOTRACK="audio",sq.AUDIO_BADGE="audio_badge",sq.AUDIO_SURROUND="surround_sound",sq.AUTO_AWESOME="sparkles",sq.AVATAR_ANONYMOUS="person_circle",sq.AVATAR_LOGGED_OUT="person_circle",sq.BACK="arrow_left",sq.BAR_CHART="chart_bar",sq.BAR_CIRCLE="minus_circle",sq.BAR_HORIZONTAL="minus",sq.BLOCK="circle_slash",sq.BLOCK_USER="circle_slash",
sq.BOOKMARK_BORDER="bookmark",sq.BOX_OPEN_CHECK="quiz",sq.BOX_PENCIL="square_pencil",sq.BOX_STACK_3="square3_stack",sq.BREAKING_NEWS_ALT_1="text_page_alert",sq.BROADCAST="podcast",sq.BROADCAST_CAIRO="podcast",sq.BUG_REPORT="bug",sq.CAMERA_ALT="camera",sq.CAMPAIGN="megaphone",sq.CANCEL="x_circle",sq.CAPTIONS="closed_captions",sq.CAST_ICON="chromecast",sq.CAST_OUTLINE="chromecast",sq.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",sq.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",sq.CHAT="text_bubble",
sq.CHAT_BUBBLE="bubble",sq.CHECK_BOX="check_square",sq.CHECK_BOX_OUTLINE_BLANK="square",sq.CHECK_CIRCLE_FILLED="check_circle",sq.CHECK_CIRCLE_OUTLINE="check_circle",sq.CHECK_CIRCLE_THICK="check_circle",sq.CHECK_DOUBLE="check_done",sq.CHECK_DOUBLE_OFF="check_done_slash",sq.CHEVRON_LEFT="chevron_left",sq.CHEVRON_RIGHT="chevron_right",sq.CHEVRON_RIGHT_CAIRO="chevron_right",sq.CIRCLES_OVERLAP="account_link",sq.CLAPPERBOARD_CAIRO="clapperboard",sq.CLARIFY="text_page_info",sq.CLOCK_ARROWS="clock_split",
sq.CLOCK_ARROWS_ALERT="clock_split_alert",sq.CLOSED_CAPTION="closed_captions",sq.CLOSED_CAPTION_SELECTED="closed_captions",sq.CLOSE="x",sq.CLOUD_UPLOAD="cloud_arrow_up",sq.COLLAPSE="chevron_up",sq.COLLAPSE_CAIRO="chevron_up",sq.COLLECTION="square3d_stack",sq.COLOR_LENS="paint_palette",sq.COMMENT="text_bubble",sq.CONSENT_SHIELD="person_shield",sq.CONTENT_CUT="scissors",sq.CONTENT_CUT_CAIRO="scissors",sq.COURSE="graduation_cap",sq.COURSE_CAIRO="graduation_cap",sq.CREATION_LIVE="live",sq.CREATION_POST=
"square_pencil",sq.CREATION_UPLOAD="video",sq.CREATION_UPLOAD_RED="upload",sq.CREATOR_ACADEMY="graduation_cap",sq.CREATOR_STUDIO="youtube_studio",sq.DARK_THEME="theme",sq.DELETE="trash_can",sq.DELETE_SWEEP="trash_can",sq.DESKTOP="laptop",sq.DISLIKE="thumb_down",sq.DISLIKE_SELECTED="thumb_down",sq.DISMISSAL="x",sq.DISMISS_QUEUE="playlist_x",sq.DOGFOOD="pawprint",sq.DOLLAR_SIGN="dollar_sign_circle",sq.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",sq.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",sq.DOWN_ARROW=
"arrow_down",sq.DO_NOT_DISTURB="circle_slash",sq.DRAFT="document",sq.DRAG_HANDLE="equal",sq.EARTH="globe",sq.EDIT="pencil",sq.EMOJI="face_very_happy",sq.EMOJI_FLAGS="flag",sq.EMOJI_OBJECTS="lightbulb",sq.EMOJI_PEOPLE="face_very_happy",sq.EMOJI_RECENT="clock",sq.EMPTY_HEART="heart",sq.EMPTY_LIKE="thumb_up",sq.ERROR_BLACK="alert_circle",sq.ERROR_OUTLINE="alert_circle",sq.ERROR_WHITE="alert_circle",sq.EXIT_APP="arrow_in",sq.EXIT_TO_APP="arrow_in",sq.EXPAND="chevron_down",sq.EXPAND_ALL="chevron_expand",
sq.EXPAND_CAIRO="chevron_down",sq.EXPAND_LESS="chevron_up",sq.EXPAND_MORE="chevron_down",sq.EXPLORE="compass",sq.EXPLORE_DESTINATION="compass",sq.EXTERNAL_LINK="arrow_up_right",sq.EYE_OFF="eye_slash",sq.FAB_UPLOAD="upload",sq.FACE_HAPPY_OUTLINE="face_happy",sq.FACE_MEH="face_neutral",sq.FACT_CHECK="text_page_check",sq.FASHION_LOGO="fashion",sq.FASHION_LOGO_CAIRO="fashion",sq.FAVORITE="thumb_up",sq.FEEDBACK="alert_bubble",sq.FEEDBACK_CAIRO="alert_bubble",sq.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
sq.FILL_ARROW_SOLID_UP_16="arrow_solid_up",sq.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",sq.FLAG_CAIRO="flag",sq.FLASH_OFF="flash_slash",sq.FLASH_ON="flash",sq.FULL_HEART="heart",sq.GAMING_LOGO="gaming",sq.GAMING_LOGO_CAIRO="gaming",sq.GO_TO_PAGE="arrow_right",sq.GROUPS="person3",sq.HAND_SWIPE_LEFT="gesture_swipe_left",sq.HAND_SWIPE_RIGHT="gesture_swipe_right",sq.HAPPY="face_happy",sq.HEALTH_AND_SAFETY="shield_health",sq.HEART_BOX="heart_cube",sq.HELP="help_circle",sq.HELP_CAIRO="help_circle",
sq.HELP_OUTLINE="help_circle",sq.HIDE="circle_slash",sq.INCOGNITO_CAIRO="incognito",sq.INFINITY_ICON="infinity",sq.INFO="info_circle",sq.INFO_OUTLINE="info_circle",sq.INSERT_CHART="chart_bar_square",sq.INSERT_CHART_OUTLINED="chart_bar_square",sq.INSERT_PHOTO="image",sq.KEEP="pin",sq.KEEP_OFF="pin_slash",sq.KEYBOARD="keyboard",sq.KEYBOARD_ARROW_DOWN="chevron_down",sq.KEYBOARD_ARROW_UP="chevron_up",sq.KIDS_BLOCK="circle_slash",sq.LANGUAGE="globe",sq.LAUNCH="arrow_up_right",sq.LEARNING="lightbulb",sq.LEARNING_CAIRO=
"lightbulb",sq.LIBRARY_ADD="bookmark",sq.LIBRARY_IMAGE="image_stack",sq.LIBRARY_MUSIC="audio_square_stack",sq.LIBRARY_OUTLINE="play_square_stack",sq.LIBRARY_REMOVE="bookmark",sq.LIBRARY_SAVED="check_square_stack",sq.LIKES_PLAYLIST="thumb_up",sq.LIKES_PLAYLIST_CAIRO="thumb_up",sq.LIKE="thumb_up",sq.LIKE_SELECTED="thumb_up",sq.LIST_QUEUE="queue",sq.LIVE_CAIRO="live",sq.LIVE_UNLISTED="link",sq.LOCATION_ON="location_pin",sq.LOCATION_PIN="location_pin",sq.LOCATION_POINT="location_pin",sq.LOOP="repeat",
sq.LOOP_ACTIVE="repeat",sq.LOOP_ONE="repeat1",sq.LOOP_ONE_ACTIVE="repeat1",sq.MEET="google_meet",sq.MEH="face_neutral",sq.MEMBERSHIPS="memberships",sq.MEMBERS_ONLY_MODE_OFF="text_bubble",sq.MENU_FILTER="filter",sq.MESSAGE="text_bubble",sq.MESSAGE_BUBBLE_GEAR="bubble_gear",sq.MESSAGE_BUBBLE_LEFT="text_bubble",sq.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",sq.MESSAGE_BUBBLE_OVERLAP="bubble_stack",sq.MESSAGE_BUBBLE_QUESTION="help_bubble",sq.MICROPHONE_ON="mic",sq.MONETIZATION_ON="dollar_sign_circle",
sq.MONEY_FILL="dollar_sign_rectangle",sq.MONEY_FILL_JPY="yen_sign_rectangle",sq.MONEY_HAND="dollar_sign_circle_hand",sq.MONEY_HEART="dollar_sign_heart",sq.MOON_Z="sleep_timer",sq.MORE_HORIZ="overflow_horizontal",sq.MORE_VERT="overflow_vertical",sq.MUSIC="audio",sq.MUSIC_CAIRO="audio",sq.MUSIC_EXPLICIT_BADGE="explicit",sq.MUSIC_NEW_RELEASE="audio_badge",sq.MUSIC_NOTE_SYMBOL="audio",sq.MUSIC_SCISSORS="audio_scissors",sq.MUSIC_SHUFFLE="shuffle",sq.MY_CHANNEL="person_circle",sq.MY_LOCATION="location_pin",
sq.MY_VIDEOS="video",sq.MY_VIDEOS_CAIRO="video",sq.NEWS_CAIRO="news",sq.NEWS_STORY="news",sq.NEXT="chevron_right",sq.NOTE_ADD="bubble_pencil",sq.NOTIFICATIONS="bell",sq.NOTIFICATIONS_ACTIVE="bell_waves",sq.NOTIFICATIONS_CAIRO="bell",sq.NOTIFICATIONS_DONE_CHECKMARK="check",sq.NOTIFICATIONS_INBOX="bell",sq.NOTIFICATIONS_NONE="bell",sq.NOTIFICATIONS_OFF="bell_slash",sq.NOT_INTERESTED="circle_slash",sq.OFFICIAL_ARTIST_BADGE="audio",sq.OFFLINE_CLOUD="cloud_slash",sq.OFFLINE_DOWNLOAD="download",sq.OFFLINE_DOWNLOAD_CAIRO=
"download",sq.OFFLINE_PAUSE="pause",sq.OPEN_IN_NEW="arrow_up_right",sq.OUTLINE_ADJUST="adjust",sq.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",sq.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",sq.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",sq.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",sq.OUTLINE_BAG="bag",sq.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",sq.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",sq.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",sq.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",sq.PAID=
"dollar_sign_circle",sq.PAUSE_OUTLINED="pause",sq.PAYMENT="credit_card",sq.PEOPLE="person_child",sq.PEOPLE_2="person2_rectangle",sq.PEOPLE_GROUP="person3",sq.PEOPLE_NOTE="bubble_asterisk",sq.PERSON_2="person2",sq.PERSON_ACCOUNT="person_square_stack",sq.PERSON_MINUS="person_x",sq.PERSON_MUSIC="person_audio",sq.PERSON_RADAR="person_waves",sq.PERSON_RADAR_FILLED="person_waves",sq.PERSON_SETTING="person_gear",sq.PHONE="phone",sq.PHONE_DOWNLOAD="mobile_arrow_down",sq.PICTURE_IN_PICTURE="picture_in_picture",
sq.PLAYABLES_LOGO="playables",sq.PLAYABLES_LOGO_CAIRO="playables",sq.PLAYLISTS="playlist",sq.PLAYLISTS_CAIRO="playlist",sq.PLAYLIST_ADD_CHECK="bookmark",sq.PLAY_ALL="play",sq.PLAY_ARROW="play",sq.PLAY_ARROW_CIRCLE="play_circle",sq.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",sq.PLAY_CIRCLE="play_circle",sq.PLAY_OUTLINED="play_circle",sq.PODCAST_ADD="podcast_add",sq.PODCAST_CHECK="podcast_check",sq.PRIVACY_INFO="shield_x",sq.PRIVACY_PRIVATE="lock",sq.PRIVACY_PUBLIC="globe",sq.PRIVACY_UNLISTED=
"link",sq.PROMOTE="megaphone",sq.PURCHASES="price_tag",sq.PURCHASE_SUPER_CHAT="super_chat",sq.PURCHASE_SUPER_STICKER="super_sticker",sq.QUESTION_ANSWER="help_bubble",sq.QUESTION_CIRCLE="help_circle",sq.QUEUE_PLAY_LAST="queue_last",sq.QUEUE_PLAY_NEXT="playlist",sq.QUOTATION_MARK="quote",sq.RADAR_LIVE="live",sq.REMOVE="minus_circle",sq.REMOVE_CIRCLE="minus_circle",sq.REMOVE_CIRCLE_OUTLINE="minus_circle",sq.REMOVE_FROM_HISTORY="minus_circle",sq.REMOVE_FROM_PLAYLIST="minus_circle",sq.REMOVE_MODERATOR=
"shield_slash",sq.REPLAY="arrow_counterclockwise",sq.REPLAY_10="skip10_back",sq.REPLAY_ARROW="replay",sq.REPORT_PROBLEM="alert_triangle",sq.RSS_OFF="rss_slash",sq.SAD="face_sad",sq.SAVE_PLAYLIST="bookmark",sq.SCHEDULE="clock",sq.SCHOOL="graduation_cap",sq.SCREEN_DEFAULT="player_default",sq.SCREEN_FULLSCREEN="player_full_enter",sq.SCREEN_LIGHT="ambient_mode",sq.SCREEN_ROTATION="rotate_portrait",sq.SCREEN_SWITCH="player_switch",sq.SCREEN_THEATRE="player_theater",sq.SEARCH_CAIRO="search",sq.SEARCH_HISTORY=
"history",sq.SELL="price_tag",sq.SETTINGS="gear",sq.SETTINGS_CAIRO="gear",sq.SETTINGS_LIGHT="gear",sq.SETTINGS_MATERIAL="gear",sq.SETTINGS_REMOTE="remote_waves",sq.SHARE="share",sq.SHARE_ARROW="share",sq.SHARE_CAIRO="share",sq.SHIELD="shield_x",sq.SHIELD_OFF="shield_slash",sq.SHIELD_WITH_AVATAR="person_shield",sq.SHOPPING_BAG="bag",sq.SHOPPING_BAG_CAIRO="bag",sq.SHOPPING_CART="cart",sq.SHORTS_COMMENT="text_bubble",sq.SHORTS_DISLIKE="thumb_down",sq.SHORTS_LIKE="thumb_up",sq.SHORTS_SHARE="share",sq.SKIP_FORWARD_30=
"skip30_forward",sq.SLASH_CIRCLE_RIGHT="circle_slash",sq.SLOW_MODE="bubble_slow",sq.SLOW_MODE_OFF="text_bubble",sq.SOCIAL="person_child",sq.SPARKLE="sparkles",sq.SPARK_IMAGE="image_spark",sq.SPARK_RADAR="spark_waves",sq.SPARK_VIDEO="video_spark",sq.SPEAKER_GROUP="speaker_stack",sq.SPEAKER_OFF="speaker_slash",sq.SPEED_1X="n1x",sq.SPEED_1_POINT_2X="n1point2x",sq.SPEED_1_POINT_5X="n1point5x",sq.SPEED_1_POINT_8X="n1point8x",sq.SPEED_2X="n2x",sq.SPONSORSHIP_STAR="memberships",sq.SPORTS="basketball",sq.SPOTLIGHT=
"spotlight",sq.STAFF_PICK="spotlight",sq.START_DVR="add",sq.STAR_BORDER="star",sq.STAR_CIRCLE_RIBBON="memberships_gift",sq.STAR_HALF="star_half_filled",sq.STAR_SHOOTING="hype",sq.STICKER="sticker",sq.STICKER_EMOTICON="face_happy",sq.STOP_DVR="stop",sq.SUBSCRIBE="youtube",sq.SUBSCRIBE_PLUS="add",sq.SUBSCRIPTION_MANAGER="gear",sq.SUPERSTAR="super_star",sq.SUPERVISOR_ACCOUNT="person_child",sq.SUPER_CHAT_FOR_GOOD="hands_heart",sq.SWAP_HORIZ="arrow_swap_horizontal",sq.SWITCH_ACCOUNTS="person_square_stack",
sq.TAB_ACCOUNT="person",sq.TAB_ACTIVITY="bell",sq.TAB_BOOKMARK="bookmark",sq.TAB_EXPLORE="compass",sq.TAB_HOME="home",sq.TAB_HOME_CAIRO="home",sq.TAB_INBOX="mail",sq.TAB_LIKED="thumb_up",sq.TAB_MUSIC_PREMIUM="youtube_music",sq.TAB_SHORTS="shorts",sq.TAB_SHORTS_CAIRO="shorts",sq.TAB_SUBSCRIPTIONS="subscriptions",sq.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",sq.TAB_TRENDING="trending",sq.TARGET="target",sq.TARGET_ADD="target_add",sq.TEMPLATE_ADD="template_add",sq.TEXT="font",sq.TIMER="stopwatch",sq.TRENDING_CAIRO=
"trending",sq.TRENDING_UP="arrow_trend_up",sq.TROPHY_CAIRO="trophy",sq.TROPHY_CELEBRATIONS="fireworks",sq.TROPHY_STAR="star_trophy",sq.TUNE="adjust",sq.TV_OFF="tv_slash",sq.UNBLOCK_USER="minus_circle",sq.UNFAVORITE="thumb_down",sq.UNLIMITED="youtube",sq.UNPLUGGED_LIVE_GUIDE="live",sq.UNPLUGGED_SPORTS="eye_slash",sq.UPLOADS="play_square_stack",sq.UP_ARROW="arrow_up",sq.VERTICAL_ALIGN_BOTTOM="chevron_down_end",sq.VERTICAL_ALIGN_TOP="chevron_up_end",sq.VERY_HAPPY="face_very_happy",sq.VERY_SAD="face_very_sad",
sq.VIDEOS="play_circle",sq.VIDEO_CALL="video_camera_add",sq.VIDEO_LIBRARY_WHITE="play_square_stack",sq.VIDEO_QUALITY_4K="n4k",sq.VIDEO_QUALITY_8K="n8k",sq.VIDEO_YOUTUBE="youtube",sq.VIEW_LIST_CAIRO="view_list",sq.VIEW_MODULE="view_column3_row2",sq.VISIBILITY="eye",sq.VISIBILITY_OFF="eye_slash",sq.VOLUME_DOWN="volume_min",sq.VOLUME_MUTE="volume_mute",sq.VOLUME_OFF="volume_mute",sq.VOLUME_STABLE="stable_volume",sq.VOLUME_UP="volume_max",sq.WALLPAPER="image",sq.WARNING="alert_triangle",sq.WATCH_HISTORY=
"history",sq.WATCH_HISTORY_CAIRO="history",sq.WATCH_LATER="clock",sq.WATCH_LATER_CAIRO="clock",sq.WATCH_RELATED_MIX="mix",sq.WHAT_TO_WATCH="home",sq.YOUTUBE_LINKED_TV="tv_mobile",sq.YOUTUBE_MUSIC_MONOCHROME="youtube_music",sq.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",sq.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",sq.YOUTUBE_SHORTS_ARROW_UP="arrow_up",sq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",sq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",sq.YOUTUBE_SHORTS_OUTLINE_24="shorts",
sq);var UFy={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 plH={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 xFr={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"},BM=function(c){this.iconUrlProvider=c};
BM.prototype.resolveIcon=function(c,f){var d=xFr[c.iconName.toUpperCase()];d&&(c.iconName=d);var q=c.iconName;q=q.replace(/-/g,"_");c=Object.assign({},c,{iconName:this.mapIconTypeToStandardName(q,!!d)||q.toLowerCase()});if(_.F("enable_web_delhi_icons")||d){var Z;return BQC(plH,c,((Z=this.iconUrlProvider)==null?void 0:Z.getYtStandardUrl)||Hbh,f)}var M;return BQC(UFy,c,((M=this.iconUrlProvider)==null?void 0:M.getYtStandardUrl)||m1M,f)};
BM.prototype.mapIconTypeToStandardName=function(c,f){return _.F("enable_web_delhi_icons")||f?RTy[c.toUpperCase()]:P$K[c.toUpperCase()]};
BM[dE]=[_.dx(eTy)];var oY_=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),Glj=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),cPC=function(c){this.urlProvider=this.iconUrlProvider=c};
_.K(cPC,BM);
cPC.prototype.resolveIcon=function(c,f){c.iconName==="youtube_logo"&&(c.iconName="yt-logo-updated");if(c.iconName==="youtube_premium_logo"||c.iconName==="youtube_red_logo")c.iconName="yt-logo-red-updated";var d=Object.assign({},c);c.iconName==="menu"&&(_.F("enable_web_delhi_icons")||(d.iconName="bars_3"),d.iconStyle="youtube_outline");c.iconSetName==="socialNetworksRound"&&(c.iconName==="mail"&&(d.iconName="email"),c.iconName==="embed"&&(d.iconSize=60));c.iconName==="more"&&(d.iconName="overflow_horizontal");
c.iconName==="fullscreen"&&(d.iconName="screen_full");c.iconName==="premium_standalone"&&(d.iconName="premium_standalone_cairo");_.F("enable_connect_icon_update_web")&&c.iconName==="account_linked"&&(d.iconName="circles_overlap_check",d.iconStyle="youtube_fill");_.F("enable_connect_icon_update_web")&&c.iconName==="account_unlinked"&&(d.iconName="circles_overlap",d.iconStyle="youtube_outline");oY_.has(c.iconName)&&(d.iconStyle="youtube_fill");_.F("enable_web_delhi_icons")&&(c.iconName==="playlist_add"&&
(d.iconName="bookmark"),c.iconName==="offline_pin"&&(d.iconName="arrow_down_circle",d.iconStyle="youtube_fill"),Glj.has(c.iconName)&&(d.iconName+="_updated"));c=Object.assign({},d,{iconName:(BM.prototype.mapIconTypeToStandardName.call(this,d.iconName)||d.iconName).toLowerCase()});var q;return(c=BQC(W23,c,((q=this.urlProvider)==null?void 0:q.getUrl)||AjG,f))?c:BM.prototype.resolveIcon.call(this,d,f)};
cPC[dE]=[_.dx(eTy)];_.f4S=1;var iv=function(c,f){this.JSC$17092_commandHandler=c;this.innertubeTransportService=f};
_.K(iv,DT);iv.prototype.resolveCommand=function(c,f){var d=this,q,Z,M;return _.k(function(g){return(q=_.b(c,nxH))?g.return(dNi(d,q,(Z=f)==null?void 0:(M=Z.form)==null?void 0:M.element)):g.return()})};
var dNi=function(c,f,d){f={profileCardContext:f.profileCardContext,profileOwnerExternalChannelId:f.profileOwnerExternalChannelId};var q=_.cS(Iso);return _.y9(c.innertubeTransportService,f,q).then(function(Z){if(!Z)throw new _.KD("GetProfileCard failed");if(Z=Z.popupCommand){c.JSC$17092_commandHandler.resolveCommand(Z,{form:{element:d}});_.s8(_.bP(),66557);Z=Z==null?void 0:Z.clickTrackingParams;var M=_.V5();Z&&M&&_.bP().graftServerVe(Z,M)}})};
iv[dE]=[_.ZM,_.uo];var TO=function(){};
_.K(TO,DT);TO.prototype.resolveCommand=function(c){var f,d;return _.k(function(q){f=_.b(c,Vjj);if(!f)return q.return();d=Number(f.enableDelayedPacfLoggingTvMs);if(isNaN(d)){var Z=iM();Tev(Z,f,0)}else Tev(iM(),f,d);_.Fm(q)})};_.mr=function(){};
_.K(_.mr,DT);
_.mr.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m;return _.k(function(H){q=_.b(c,X1H);M=(Z=f.form)==null?void 0:Z.element;O=(g=M)==null?void 0:g.closest("ytd-enforcement-message-view-model");if(!q||!O)return H.return();d.allowAdsAction||(l=q.fundingChoiceInstructionPageUrl,d.allowAdsAction=new q6r(window,_.Vm(l)));var A=d.allowAdsAction;A.wallElement=O;A.allowAdsPopup.style.setProperty("display","flex","important");var Y=A.scrollManager;Y.originalBodyOverflow=Y.JSC$9944_domHelper.JSC$9268_document_.body.style.overflow;Y.JSC$9944_domHelper.JSC$9268_document_.body.style.overflow=
"hidden";A.wallElement.style.setProperty("display","none","important");iLr(A.accessibilityManager,A.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((m=d.allowAdsAction.allowAdsPopup)&&m instanceof HTMLElement)for(A=_.C(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Y=A.next();!Y.done;Y=A.next()){var t=_.C(Y.value);Y=t.next().value;t=t.next().value;m.style.setProperty(Y,t)}_.Fm(H)})};
_.mr.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var HM=function(){};
_.K(HM,DT);HM.prototype.resolveCommand=function(c){var f;return _.k(function(d){f=_.b(c,q8K);if(!f)return d.return();_.JZz(c);_.Fm(d)})};var AJ=function(c){this.JSC$17107_commandHandler=c};
_.K(AJ,DT);
AJ.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m;return _.k(function(H){if(H.nextAddress==1){d=_.b(c,aGO);if((q=d)==null||!q.text||!navigator.clipboard)return H.return();_.iY(H,2);return H.yield(navigator.clipboard.writeText(d.text),4)}if(H.nextAddress!=2){if(!d.successActions||d.successActions.length===0)return H.return();Z=_.C(d.successActions);for(M=Z.next();!M.done;M=Z.next())g=M.value,f.JSC$17107_commandHandler.resolveCommand(g);return _.Pq(H,0)}_.Yw(H);if(!d.failureActions||d.failureActions.length===
0)return H.return();O=_.C(d.failureActions);for(l=O.next();!l.done;l=O.next())m=l.value,f.JSC$17107_commandHandler.resolveCommand(m);_.Fm(H)})};
AJ[dE]=[_.ZM];var Yy=function(c){this.JSC$17111_commandHandler=c};
_.K(Yy,DT);
Yy.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y;return _.k(function(t){switch(t.nextAddress){case 1:q=_.b(c,O5j);if(!q)return t.return();_.iY(t,2);if(!q.imageBytes&&!q.imageUrl)throw Error("wi");if(!q.imageUrl){if(q.imageBytes){M=q.imageBytes;g=M.replace(/-/g,"+").replace(/_/g,"/");var E=toN(g);Z=_.vU(E)}t.jumpTo(4);break}return t.yield(fetch(q.imageUrl),5);case 5:return O=t.yieldResult,t.yield(O.blob(),6);case 6:l=t.yieldResult,Z=_.vU(l);case 4:A=(m=f)==null?void 0:(H=m.form)==
null?void 0:H.element;Y=document.createElement("a");_.yM(Y,Z);A.appendChild(Y);Y.download="";Y.click();A.removeChild(Y);URL.revokeObjectURL(_.Lq(Z));q.successCommand&&d.JSC$17111_commandHandler.resolveCommand(q.successCommand);_.Pq(t,0);break;case 2:_.Yw(t),q.errorCommand&&d.JSC$17111_commandHandler.resolveCommand(q.errorCommand),_.Fm(t)}})};
Yy[dE]=[_.ZM];var FG=function(c){this.store=c};
_.K(FG,DT);FG.prototype.resolveCommand=function(c){var f=this,d,q,Z;return _.k(function(M){q=(d=_.b(c,_.DKF))==null?void 0:d.entityBatchUpdate;if(!q)return M.jumpTo(0);Z=Object.assign({},q,{mutations:[].concat(_.LT(q.mutations||[]))});return M.yield(_.AE(Z,f.store),0)})};var jki=function(c){this.JSC$17118_commandHandler=c;this.feedbackDialogMap=new Map};
jki.prototype.openDialog=function(c,f){(c=this.feedbackDialogMap.get(c))&&this.JSC$17118_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:c}},f)};
jki[dE]=[_.ZM];var tJ=new _.jk("FEEDBACK_CONTROLLER_TOKEN");var bv=new _.jk("APP_STORE_TOKEN");var KK=function(c,f){this.store=c;this.controller=f};
_.K(KK,DT);KK.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N;return _.k(function(I){if(I.nextAddress==1){q=_.b(c,_.Xb);if(M=(Z=q)==null?void 0:Z.contentId)for(O=_.C(((g=q)==null?void 0:g.actions)||[]),l=O.next();!l.done;l=O.next())m=l.value,qCJ(d,m,M);Y=(H=f)==null?void 0:(A=H.form)==null?void 0:A.element;return I.yield(_.OX(Y,[c,{impression:(t=f)==null?void 0:t.disableClickTracking}]).catch(function(){}),2)}E=I.yieldResult;
((J=E)==null?0:(X=J.data)==null?0:(u=X.feedbackResponses)==null?0:u.length)&&(p=(W=E.data.feedbackResponses[0])==null?void 0:W.followUpDialog)&&M&&(N=d.controller)!=null&&N.feedbackDialogMap.set(M,p);_.Fm(I)})};
var qCJ=function(c,f,d){var q=_.b(f,_.BO);if(q){q=_.C(q.commands||[]);for(var Z=q.next();!Z.done;Z=q.next())qCJ(c,Z.value,d)}_.b(f,_.nz)&&c.store.dispatch(_.ER("commandEntity",Brk(d),{key:d,command:f}));_.b(f,JqH)&&c.store.dispatch(_.ER("commandEntity",Brk(d),{key:d,command:f}))};
KK[dE]=[bv,tJ];var Eq=function(c){this.controller=c};
_.K(Eq,DT);Eq.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g;return _.k(function(O){q=_.b(c,_.e_);M=(Z=q)==null?void 0:Z.targetId;if(((g=q)==null?void 0:g.signal)!=="TELL_US_WHY"||!M)return O.return();d.controller.openDialog(M,f);_.Fm(O)})};
Eq[dE]=[tJ];var nK=function(c){this.store=c};
_.K(nK,DT);nK.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m;return _.k(function(H){q=_.b(c,q$l);M=(Z=q)==null?void 0:Z.contentId;l=(g=f)==null?void 0:(O=g.form)==null?void 0:O.element;m=_.OX(l,[c]);M&&d.undo(M);return H.yield(m,0)})};
nK.prototype.undo=function(c){this.store.dispatch(_.ER("commandEntity",Brk(c),{key:c,command:void 0}))};
nK[dE]=[bv];var $y=function(c){this.JSC$17133_commandHandler=c};
_.K($y,DT);$y.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m;return _.k(function(H){d=_.b(c,Zir);q=d.flowStateKey;Z=d.validationFailureCommand;M=d.submitValidFormCommand;g=CyN(_.fp,[q||""]);O=_.b(g,rWT);((l=O)==null?0:l.isValid)&&M&&f.JSC$17133_commandHandler.resolveCommand(M);((m=O)==null?0:m.isValid)||!Z||f.JSC$17133_commandHandler.resolveCommand(Z);_.Fm(H)})};
$y[dE]=[_.ZM];var Q3=function(c){this.innertubeTransportService=c};
_.K(Q3,DT);Q3.prototype.resolveCommand=function(c,f){var d=this,q;return _.k(function(Z){return Z.yield(_.G3(d.innertubeTransportService,c,(q=f)==null?void 0:q.form).then(function(M){var g,O;f==null||(g=f.commandController)==null||(O=g.onSuccess)==null||O.call(g,c,M)},function(M){var g,O;
f==null||(g=f.commandController)==null||(O=g.onServerError)==null||O.call(g,c,M)}),0)})};
Q3[dE]=[_.uo];var S1=function(){};
_.K(S1,DT);S1.prototype.resolveCommand=function(c){var f,d,q,Z;return _.k(function(M){if(f=_.b(c,_.tIj)){if(d=f.gtmId)q=_.hk("GL",""),_.J$(d,q);(Z=f.gtmData)&&_.aM(Z)}_.Fm(M)})};var LK=function(c,f){this.innertubeTransportService=c;this.JSC$17144_actionRouter=f};
_.K(LK,DT);LK.prototype.resolveCommand=function(c){var f=this,d,q;return _.k(function(Z){d=_.b(c,jp3);if(!d)return Z.return();q=d.command;if(!q)return Z.return();f.JSC$17144_actionRouter.triggerAction("yt-insert-rich-section-action",d);return Z.yield(_.G3(f.innertubeTransportService,q,{disableCache:!0}),0)})};
LK[dE]=[_.uo,dl];Km4.bind(null,ez);var Zrc=Km4.bind(null,JtF);nUC.bind(null,ez);var MMJ=nUC.bind(null,JtF);Qz4.bind(null,ez);var rPi=Qz4.bind(null,JtF);var zO=function(){};
_.K(zO,DT);
zO.prototype.resolveCommand=function(c){var f,d,q,Z,M,g,O,l,m,H;return _.k(function(A){f=_.b(c,WJT);if(!f)return A.return();q=((d=f.operations)==null?void 0:d.operations)||[];Z=_.C(q);for(M=Z.next();!M.done;M=Z.next())if(g=M.value,g.insertItemSectionContent){var Y=g.insertItemSectionContent,t=Y.contents||[];Y.insertByPositionInSection?Zrc(Y.insertByPositionInSection.sectionTargetId,t,Y.insertByPositionInSection.position):Y.insertByRelativePositionInSection&&Y.insertByRelativePositionInSection.sectionTargetId&&Y.insertByRelativePositionInSection.itemTargetId&&
MMJ(Y.insertByRelativePositionInSection.sectionTargetId,Y.insertByRelativePositionInSection.itemTargetId,t,Y.insertByRelativePositionInSection.relativePosition)}else g.replaceSection?(Y=g.replaceSection,t={},Y.replaceByTargetId?t=Y.replaceByTargetId:Y.replaceByGroupId&&(t={targetId:Y.replaceByGroupId.groupId,newContent:Y.replaceByGroupId.newContent,undoKey:""}),t.newContent&&X6_(t.targetId,{continuationItems:[t.newContent]})):g.removeItem?(Y=g.removeItem,Y.removeByTargetId&&Y.sectionTargetId&&rPi(Y.sectionTargetId,
Y.removeByTargetId.targetIds||[])):g.removeSection&&(g.removeSection.removeByTargetId?(O=void 0,CeF(((O=g.removeSection)==null?void 0:O.removeByTargetId.targetIds)||[])):g.removeSection.removeByGroupId&&(l=void 0,CeF(((l=g.removeSection)==null?void 0:l.removeByGroupId.groupIds)||[])));H=((m=f.operations)==null?void 0:m.scrollConfig)||{};gli(H);_.Fm(A)})};
var CeF=function(c){c=_.C(c);for(var f=c.next();!f.done;f=c.next())X6_(f.value,{continuationItems:[]})},gli=function(c){if(c.scrollToItem){var f=c.scrollToItem.item||{},d=f.itemTargetId;
f=f.sectionTargetId;if(d&&f){var q=document.querySelector("[data-target-id="+f+"]"),Z=q==null?void 0:q.querySelector("[data-target-id="+d+"]");q&&Z&&setTimeout(function(){var M=Z.offsetTop-q.offsetTop,g;if(((g=c.scrollToItem)==null?void 0:g.scrollPosition)==="SCROLL_POSITION_CENTER")M-=q.offsetHeight/2,M+=Z.offsetHeight/2;else{var O;((O=c.scrollToItem)==null?void 0:O.scrollPosition)==="SCROLL_POSITION_END"&&(M-=q.offsetHeight,M+=Z.offsetHeight)}q.scroll({top:M,behavior:"smooth"})},100)}}};var JJ=new _.jk("CLIENT_NAME_TOKEN");var kYq=new _.jk("DEFAULT_STORE_EXPIRATION_TOKEN");var mwz=new _.jk("CLIENT_LOCATION_SERVICE_TOKEN");var aC=function(c,f,d){this.clientName=c||_.hk("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=f||_.aV.getInstance();this.JSC$17172_commandHandler=d||_.Hh.instance};
_.K(aC,DT);aC.prototype.resolveCommand=function(c){var f=this,d,q;return _.k(function(Z){q=(d=_.b(c,x_K))==null?void 0:d.onComplete;f.clientLocationService.clearLocationPlayabilityToken(f.clientName);q&&f.JSC$17172_commandHandler.resolveCommand(q);_.Fm(Z)})};
aC[dE]=[JJ,mwz,_.ZM];var V3=function(c){this.innertubeTransportService=c};
_.K(V3,DT);V3.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g;return _.k(function(O){M=(q=f)==null?void 0:(Z=q.form)==null?void 0:Z.element;return O.yield(_.G3(d.innertubeTransportService,c,(g=f)==null?void 0:g.form).then(function(l){Nwn(M,new CustomEvent("yt-service-request-completed"),{data:l},_.hk("openPopupConfig"))}),0)})};
V3[dE]=[_.uo];var XG=function(){};
_.K(XG,DT);XG.prototype.resolveCommand=function(c){var f,d;return _.k(function(q){f=_.b(c,Oir);d=document.querySelector("mini-app-container-view-model");if(!f||!d)return q.return();f.isPlaying?d.dispatchEvent(new Event("play")):d.dispatchEvent(new Event("pause"));_.Fm(q)})};var uv=function(){};
_.K(uv,DT);uv.prototype.resolveCommand=function(c){var f,d,q,Z,M,g,O;return _.k(function(l){f=_.b(c,TTo);if((d=f)==null||!d.paramKeys)return l.return();q=f.paramKeys;Z=_.DU(window.location.href);M=_.C(q);for(g=M.next();!g.done;g=M.next())O=g.value,Z.JSC$9976_queryData_.remove(O);window.history.replaceState(window.history.state,document.title,Z.toString());_.Fm(l)})};var OrC=function(){this.dropdownMap=new Map};_.l4q=new _.jk("DROPDOWN_CONTROLLER_TOKEN");var vM=function(c){this.controller=c};
_.K(vM,DT);vM.prototype.resolveCommand=function(c){var f=this,d,q,Z,M;return _.k(function(g){d=_.b(c,pLF);if(!d)return g.return();q=d;Z=q.dropdownId;M=q.selectedOptionIndex;if(Z===void 0||M===void 0)return g.return();var O=f.controller.dropdownMap.get(Z);O&&O(M);_.Fm(g)})};
vM[dE]=[_.l4q];var hJ=function(c){this.controller=c};
_.K(hJ,DT);hJ.prototype.resolveCommand=function(c){var f=this,d;return _.k(function(q){return(d=_.b(c,gXu))?q.yield(f.controller.closeDialog(),0):q.return()})};
hJ[dE]=[_.z9];var wp=function(c){this.controller=c};
_.K(wp,DT);wp.prototype.resolveCommand=function(c){var f=this,d,q;return _.k(function(Z){d=_.b(c,IuK);if(!d)return Z.return();var M,g=d.panelIdentifier||((M=d.identifier)==null?void 0:M.tag);if(!g)throw Error("xi");return(q=g)?Z.yield(f.controller.hidePanel(q),0):Z.jumpTo(0)})};
wp[dE]=[_.SD];var y3=function(c,f){this.innertubeTransportService=c;this.controller=f};
_.K(y3,DT);y3.prototype.resolveCommand=function(c){var f=this,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return d=_.b(c,P0j),(q=d)!=null&&q.panelId?g.yield(f.controller.getReloadContinuation(d.panelId),2):g.return();if(g.nextAddress!=3)return(Z=g.yieldResult)?g.yield(_.G3(f.innertubeTransportService,c,{continuation:Z}),3):g.return();M=g.yieldResult;return g.yield(f.controller.updatePanel(d.panelId,M.content,!1),0)})};
y3[dE]=[_.uo,_.SD];var WM=function(c,f,d){this.innertubeTransportService=c;this.JSC$17208_screenManager=f;this.JSC$17208_commandHandler=d};
_.K(WM,DT);
WM.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1){d=_.b(c,_.u$o);if(!d)return l.return();if(d.commands)for(q=_.C(d.commands),Z=q.next();!Z.done;Z=q.next())M=Z.value,f.JSC$17208_commandHandler.resolveCommand(M,{disableClickTracking:!0});g=_.Q1(c.clickTrackingParams);_.s8(f.JSC$17208_screenManager,21760,g,{layer:7,parentLayer:0});return l.yield(_.G3(f.innertubeTransportService,c),2)}O=l.yieldResult;if(!O)return l.return();f.JSC$17208_screenManager.graftServerVe(O.trackingParams,g,
7);_.Fm(l)})};
WM[dE]=[_.uo,_.z1,_.ZM];var Do=new _.jk("PANEL_LOADING_STRATEGY_TOKEN");var e1=function(c,f){this.controller=c;this.panelLoadingStrategy=f};
_.K(e1,DT);
e1.prototype.resolveCommand=function(c,f){var d=this,q,Z,M;return _.k(function(g){q=_.b(c,n23);if((Z=q)==null||!Z.panelLoadingStrategy)return g.return();M=function(O){var l,m,H,A,Y,t,E,J,X;return _.k(function(u){m=_.b((l=O.dialogViewModel)==null?void 0:l.header,x23);H={viewModel:O.dialogViewModel};A={};if(E=_.F("web_enable_dialog_header_label")?(Y=m)==null?void 0:(t=Y.headline)==null?void 0:t.content:void 0)A.ariaLabel=E;q.dismissOnBackgroundTap===!1&&(A.isModal=!0);return O.dialogViewModel?u.yield(d.controller.openDialog(H,
(J=f)==null?void 0:(X=J.form)==null?void 0:X.element,A),0):u.return()})};
return g.yield(d.panelLoadingStrategy.execute({command:c,data:q.panelLoadingStrategy,renderFn:M,createScreenConfig:{layer:4}}),0)})};
e1[dE]=[_.z9,Do];var NW=function(c,f,d){this.innertubeTransportService=c;this.controller=f;this.JSC$17228_screenManager=d};
_.K(NW,DT);
NW.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y,t,E;return _.k(function(J){switch(J.nextAddress){case 1:q=_.b(c,_.VN);if(!q)return J.return();var X,u=q.panelIdentifier||((X=q.identifier)==null?void 0:X.tag);if(!u)throw Error("xi");Z=u;return J.yield(d.controller.isVisible(Z,!0),2);case 2:if((M=J.yieldResult)&&q.blockIfPanelOpen)return J.return();l=(O=(g=d.controller).getPanelContent)==null?void 0:O.call(g,Z);if(!(X=l))if(q){var W;X=((W=q.globalConfiguration)==null?void 0:
W.initialState)||q.engagementPanel;if(W=!X)W=!!(q==null?0:(u=q.engagementPanelPresentationConfigs)==null?0:u.engagementPanelPopupPresentationConfig);W&&(X=_.SEC(q.panelIdentifier,q.identifier))}else X=void 0;m=X;H=q.engagementPanelPresentationConfigs;A=q.engagementPanelExtras;return J.yield(d.controller.showPanel(Z,m,H,A,(Y=f)==null?void 0:(t=Y.form)==null?void 0:t.element),3);case 3:if(!q.globalConfiguration){J.jumpTo(0);break}_.s8(d.JSC$17228_screenManager,32633);return J.yield(_.G3(d.innertubeTransportService,
c),5);case 5:return E=J.yieldResult,d.JSC$17228_screenManager.graftServerVe(E.trackingParams),J.yield(d.controller.updatePanel(Z,E.content,!0,A,void 0,E.updatePanelContinuationData),0)}})};
NW[dE]=[_.uo,_.SD,_.z1];var IC=function(c,f){this.controller=c;this.panelLoadingStrategy=f};
_.K(IC,DT);IC.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l;return _.k(function(m){q=_.b(c,_.na);if((Z=q)==null||!Z.panelLoadingStrategy)return m.return();O=skr(d.controller,(M=f)==null?void 0:(g=M.form)==null?void 0:g.element);l=function(H){return _.k(function(A){return H.sheetViewModel?A.yield(d.controller.openSheet({viewModel:H.sheetViewModel},O),0):A.return()})};
return m.yield(d.panelLoadingStrategy.execute({command:c,data:q.panelLoadingStrategy,renderFn:l,createScreenConfig:{layer:0}}),0)})};
IC[dE]=[_.Lm,Do];var PM=function(c,f){this.controller=c;this.JSC$17236_commandHandler=f};
_.K(PM,DT);PM.prototype.resolveCommand=function(c,f){var d=this,q,Z,M;return _.k(function(g){if(g.nextAddress==1){q=_.b(c,xMu);var O=_.b(q.showCommand,_.VN),l,m,H=(m=O==null?void 0:O.panelIdentifier)!=null?m:O==null?void 0:(l=O.identifier)==null?void 0:l.tag;if(!H)throw Error("yi");Z=H;return g.yield(d.controller.isVisible(Z),2)}return(M=g.yieldResult)?g.yield(d.controller.hidePanel(Z),0):g.yield(d.JSC$17236_commandHandler.resolveCommand(q.showCommand,f),0)})};
PM[dE]=[_.SD,_.ZM];var RC=function(c,f,d){this.innertubeTransportService=c;this.controller=f;this.JSC$17239_screenManager=d};
_.K(RC,DT);
RC.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R,qN;return _.k(function(kl){switch(kl.nextAddress){case 1:return q=d=_.b(c,o$u),Z=q.targetPanelIdentifier,M=q.contentSourcePanelIdentifier,g=q.globalConfiguration,((O=Z)==null?0:O.tag)&&((l=M)==null?0:l.tag)?g?kl.yield(f.controller.showPanel(Z.tag,_.SEC(Z.tag,Z),void 0,void 0,void 0),5):kl.yield((Y=(A=f.controller).getPanel)==null?void 0:Y.call(A,M.tag),4):kl.return();case 4:t=kl.yieldResult;m=(E=t)==null?
void 0:(X=(J=E).getPanelContent)==null?void 0:X.call(J);kl.jumpTo(3);break;case 5:return kl.yield(_.G3(f.innertubeTransportService,c),6);case 6:u=kl.yieldResult,((W=u)==null?0:W.trackingParams)&&f.JSC$17239_screenManager.graftServerVe(u.trackingParams),m=(p=u)==null?void 0:p.content,H=(N=u)==null?void 0:N.updatePanelContinuationData;case 3:if(R=(I=m)==null?void 0:I.engagementPanelSectionListRenderer)return kl.yield(f.controller.showPanel(Z.tag,void 0,void 0,void 0,void 0,{content:R.content,secondaryHeaderContent:(qN=
R.header)!=null?qN:{},targetId:R.targetId},H),0);kl.jumpTo(0)}})};
RC[dE]=[_.uo,_.SD,_.z1];var Uq=function(){};
_.K(Uq,DT);var BzH=function(c){var f;return _.k(function(d){f=_.hk("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;c.JSC$17245_mainAppPlayer=new Gt(f);document.addEventListener("yt-page-data-updated",c.JSC$17245_pauseOnNavigation.bind(c));_.Fm(d)})};
Uq.prototype.JSC$17245_pauseOnNavigation=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1)return f=c.JSC$17245_mainAppPlayer,q.yield(f.api,2);d=q.yieldResult;d.pauseVideo();_.Fm(q)})};
var irF=function(c,f,d){var q;return _.k(function(Z){q=c.JSC$17245_mainAppPlayer;return Z.yield(q.loadVideoWithPlayerVars({videoId:f,audio_only:"1",player_params:d}),0)})};
Uq.prototype.pauseVideo=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1)return f=c.JSC$17245_mainAppPlayer,q.yield(f.api,2);d=q.yieldResult;d.pauseVideo();_.Fm(q)})};
Uq.prototype.playVideo=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1)return f=c.JSC$17245_mainAppPlayer,q.yield(f.api,2);d=q.yieldResult;d.playVideo();_.Fm(q)})};
var TzJ=function(c){var f,d;return _.k(function(q){if(q.nextAddress==1)return f=c.JSC$17245_mainAppPlayer,q.yield(f.api,2);d=q.yieldResult;d.mute();_.Fm(q)})},mNJ=function(c){var f,d;
return _.k(function(q){if(q.nextAddress==1)return f=c.JSC$17245_mainAppPlayer,q.yield(f.api,2);d=q.yieldResult;d.unMute();_.Fm(q)})},Hrq=function(c,f){return _.k(function(d){switch(d.nextAddress){case 1:switch(f){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return d.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return d.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return d.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return d.jumpTo(5)}d.jumpTo(0);break;case 2:return d.yield(c.playVideo(),7);case 7:d.jumpTo(0);break;case 3:return d.yield(c.pauseVideo(),8);case 8:d.jumpTo(0);break;case 4:return d.yield(TzJ(c),9);case 9:d.jumpTo(0);break;case 5:return d.yield(mNJ(c),10);case 10:d.jumpTo(0)}})};
Uq.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m,H,A,Y;return _.k(function(t){return t.nextAddress==1?(d=_.b(c,Mny),((q=d)==null?0:q.newPlaybackParams)||((Z=d)==null?0:Z.controlAction)?f.JSC$17245_mainAppPlayer?t.jumpTo(2):t.yield(BzH(f),2):t.return()):((M=d)==null?0:M.newPlaybackParams)?(l=(g=d)==null?void 0:(O=g.newPlaybackParams)==null?void 0:O.externalVideoId,Y=(A=(m=d)==null?void 0:(H=m.newPlaybackParams)==null?void 0:H.playerParams)!=null?A:"",l?t.yield(irF(f,l,Y),0):t.return()):
t.yield(Hrq(f,d.controlAction),0)})};var pK=function(c){this.JSC$17252_commandHandler=c};
_.K(pK,DT);
pK.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1)return(d=_.b(c,rR3))?l.yield(_.H9(),2):l.return();q=l.yieldResult;if(!q)return l.return();var m=q,H=(Z=d)==null?void 0:Z.languageCode,A=(M=d)==null?void 0:M.isAutoTranslated;m.getVideoData&&_.z7M(m).length&&((H=aRh(m,H,A))?m.setOption("captions","track",H):(m.setOption("captions","stickyLoading",{}),m.setOption("captions","track",{})));g=q.isSubtitlesOn()?_.HO("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.HO("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");O=_.dD(g);f.JSC$17252_commandHandler.resolveCommand(O);_.Fm(l)})};
pK[dE]=[_.ZM];var xy=function(c,f){this.shortsPlayerPromise=c;this.JSC$17256_commandHandler=f};
_.K(xy,DT);
xy.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m;return _.k(function(H){if(H.nextAddress==1)return(d=_.b(c,K3u))?H.yield(f.shortsPlayerPromise,2):H.return();q=H.yieldResult;var A=Voh(q);A!=null&&A.length||(q.loadModule("captions"),A=Voh(q));Z=A;if((M=Z)==null||!M.length)return g=_.HO("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),O=_.dD(g),f.JSC$17256_commandHandler.resolveCommand(O),H.return();q.toggleSubtitles();l=q.isSubtitlesOn()?_.HO("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.HO("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");m=_.dD(l);f.JSC$17256_commandHandler.resolveCommand(m);_.Fm(H)})};
xy[dE]=[_.g4F,_.ZM];var oC=function(c){this.JSC$17259_actionRouter=c;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(f,d){f.triggerAction("yt-dismiss-shopping-timely-shelf-action",d)}]])};
_.K(oC,DT);oC.prototype.resolveCommand=function(c){var f=this,d,q,Z;return _.k(function(M){d=_.b(c,kyu);if((q=d)==null||!q.overlayId)return M.return();Z=f.dismissPlayerOverlayActions.get(d.overlayId);if(!Z)throw Error("zi`"+d.overlayId);Z(f.JSC$17259_actionRouter,d);_.Fm(M)})};
oC[dE]=[dl];var GO=function(c){this.JSC$17263_playerPromise=c};
_.K(GO,DT);GO.prototype.resolveCommand=function(c){var f=this,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return(d=_.b(c,UM3))?g.yield(f.JSC$17263_playerPromise,2):g.return();q=g.yieldResult;Z=q.getVideoData().video_id;d.videoId===Z&&(M=Number(d.offsetFromVideoStartMilliseconds),M>=0&&q.seekTo(M/1E3));_.Fm(g)})};
GO[dE]=[_.sR];var APS=_.sx("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),cG=function(c){this.store=c};
_.K(cG,DT);
var YCr=function(c){var f,d,q,Z;return _.k(function(M){if(M.nextAddress==1)return f=_.hk("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,d=_.hk("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,q=f||d,c.JSC$17267_mainAppPlayer=new Gt(q),M.yield(c.JSC$17267_mainAppPlayer.api,2);Z=M.yieldResult;Z.addEventListener("onStateChange",c.JSC$17267_playerStateChangeListener.bind(c));document.addEventListener("yt-page-data-updated",c.JSC$17267_pauseOnNavigation.bind(c));window.addEventListener("state-navigatestart",
c.JSC$17267_pauseOnNavigation.bind(c));_.Fm(M)})};
cG.prototype.JSC$17267_playerStateChangeListener=function(c){switch(c){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"}FhQ(this)};
var FhQ=function(c){c.store.dispatch(_.ER("sfvAudioItemCurrentlyPlayingEntity",APS,{key:APS,externalVideoId:c.externalVideoId,sfvAudioItemPlaybackState:c.playbackState,nowPlayingEntityValue:c.nowPlayingEntityValue}))};
cG.prototype.JSC$17267_pauseOnNavigation=function(){var c=this,f,d,q,Z;return _.k(function(M){if(M.nextAddress==1){if(!c.JSC$17267_mainAppPlayer){var g=new _.KD("Error: mainAppPlayer is unavailable",c.JSC$17267_mainAppPlayer);_.VO(g);return M.return()}return M.yield(c.JSC$17267_mainAppPlayer.api,2)}f=M.yieldResult;q=(d=f)==null?void 0:d.getPlayerState();q!==1||(Z=f)!=null&&Z.pauseVideo();_.Fm(M)})};
cG.prototype.playVideo=function(c,f,d){var q=this,Z,M;return _.k(function(g){if(g.nextAddress==1)return g.yield((Z=q.JSC$17267_mainAppPlayer)==null?void 0:Z.api,2);M=g.yieldResult;if(!q.JSC$17267_mainAppPlayer||!M){var O=new _.KD("Error: mainAppPlayer is unavailable",q.JSC$17267_mainAppPlayer);_.VO(O);return g.return()}return g.yield(q.JSC$17267_mainAppPlayer.loadVideoWithPlayerVars({videoId:q.externalVideoId,audio_only:"1",start:c/1E3,end:c/1E3+f,player_params:d}),0)})};
cG.prototype.pauseVideo=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1){if(!c.JSC$17267_mainAppPlayer){var Z=new _.KD("Error: mainAppPlayer is unavailable",c.JSC$17267_mainAppPlayer);_.VO(Z);return q.return()}return q.yield(c.JSC$17267_mainAppPlayer.api,2)}f=q.yieldResult;(d=f)==null||d.pauseVideo();_.Fm(q)})};
cG.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N;return _.k(function(I){if(I.nextAddress==1)return d=_.b(c,YBH),Z=(q=d)==null?void 0:q.nowPlayingEntityValue,g=(M=d)==null?void 0:M.externalVideoId,A=Number((H=(O=d)==null?void 0:(l=O.defaultStartPoints)==null?void 0:(m=l[0])==null?void 0:m.offsetMs)!=null?H:"0"),u=Number((X=(Y=d)==null?void 0:(t=Y.defaultStartPoints)==null?void 0:(E=t[0])==null?void 0:(J=E.duration)==null?void 0:J.seconds)!=null?X:"15"),N=(p=
(W=d)==null?void 0:W.playerParams)!=null?p:"",Z&&g?f.JSC$17267_mainAppPlayer?I.jumpTo(2):I.yield(YCr(f),2):I.return();if(I.nextAddress!=6){if(f.nowPlayingEntityValue&&Z===f.nowPlayingEntityValue)return f.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?I.yield(f.pauseVideo(),0):I.yield(f.playVideo(A,u,N),0);f.externalVideoId=g;f.nowPlayingEntityValue=Z;f.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return I.yield(f.playVideo(A,u,N),6)}FhQ(f);return I.jumpTo(0)})};
cG[dE]=[Cp];var fJ=function(c){this.JSC$17287_commandHandler=c};
_.K(fJ,DT);fJ.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1)return(q=_.b(c,C0r))?l.yield(_.H9(),2):l.return();Z=l.yieldResult;if(!Z)return l.return();(M=wck(Z))?d.JSC$17287_commandHandler.resolveCommand(M,f):(g=_.HO("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),O=_.dD(g),d.JSC$17287_commandHandler.resolveCommand(O));_.Fm(l)})};
fJ[dE]=[_.ZM];var dV=function(c){this.JSC$17290_playerPromise=c};
_.K(dV,DT);dV.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g;return _.k(function(O){if(O.nextAddress==1){d=_.b(c,pd3);if(!d)return O.return();q=d.overlayRenderer;return q?(Z=_.b(q,OyH))?O.yield(f.JSC$17290_playerPromise,3):O.jumpTo(0):O.return()}M=O.yieldResult;M.renderChapterSeekingAnimation(1,_.xC(Z.text),(g=Z.icon)==null?void 0:g.iconType);_.Fm(O)})};
dV[dE]=[_.sR];var jN=function(c){this.store=c};
_.K(jN,DT);
jN.prototype.resolveCommand=function(c){var f=this,d,q,Z;return _.k(function(M){if(M.nextAddress==1){d=_.b(c,rMO);if(!d)return M.return();q="";(Z=f.store.getState().collabInviteLink)&&d.id===Z.playlistId?q=Z.inviteLinkURL:d.shortUrl&&(q=d.shortUrl);return q?M.yield(navigator.clipboard.writeText(q),3):M.jumpTo(0)}var g={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.HO("COPY_LINK_SUCCESS_TOAST")}}}}};_.ql().resolve(_.ZM).resolveCommand(g);_.Fm(M)})};
jN[dE]=[bv];var q4=function(c,f){this.innertubeTransportService=c;this.JSC$17300_commandHandler=f};
_.K(q4,DT);q4.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y;return _.k(function(t){if(t.nextAddress==1)return(q=_.b(c,_.NB))?t.yield(_.G3(d.innertubeTransportService,c,(Z=f)==null?void 0:Z.form),2):t.return();(M=t.yieldResult)&&M.errorMetadata&&(g=M,O=_.dD(g.error.message),d.JSC$17300_commandHandler.resolveCommand(O));l=M;if((m=l)==null?0:m.actions)for(H=_.C(l.actions),A=H.next();!A.done;A=H.next())Y=A.value,d.JSC$17300_commandHandler.resolveCommand(Y);_.Fm(t)})};
q4[dE]=[_.uo,_.ZM];var ZY=function(){};
_.K(ZY,DT);ZY.prototype.resolveCommand=function(c){var f;return _.k(function(d){f=_.b(c,xUF);if(!f)return d.return();(new kF3(f)).show();_.Fm(d)})};_.M4=new _.jk("PLAYLIST_EDIT_CONTROLLER_TOKEN");var rV=function(c,f,d,q){this.store=c;this.innertubeTransportService=f;this.controller=d;this.JSC$17308_commandHandler=q};
_.K(rV,DT);
rV.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R,qN,kl,BN,tP,EC,AP;return _.k(function(eM){if(eM.nextAddress==1){q=_.b(c,_.hB);if(!q)return eM.return();if(q.clientActions){Z=_.C(q.clientActions);for(M=Z.next();!M.done;M=Z.next())g=M.value,d.JSC$17308_commandHandler.resolveCommand(g);var ue,BH=f==null?void 0:(ue=f.form)==null?void 0:ue.element;BH&&_.CZ(BH,"yt-dismissible-item-action",q.clientActions)}return eM.yield(_.G3(d.innertubeTransportService,c,(O=
f)==null?void 0:O.form),2)}if(l=eM.yieldResult)l.errorMetadata?(m=l,H=_.dD(m.error.message),d.JSC$17308_commandHandler.resolveCommand(H),"error"in l&&((A=f)==null?0:(Y=A.commandController)==null?0:Y.onServerError)&&((t=f)==null||(E=t.commandController)==null||E.onServerError(c,l))):(J=f)==null||(X=J.commandController)==null||(W=(u=X).onSuccess)==null||W.call(u,c,l);p=l;((N=p)==null?0:N.collaborationInviteLink)&&q.playlistId&&(_.F("web_enable_invite_collaborators_link")||_.F("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
d.store.dispatch(_.CC({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:q.playlistId,inviteLinkUrl:p.collaborationInviteLink}}));((I=p)==null?0:I.redirectEndpoint)&&d.JSC$17308_commandHandler.resolveCommand(p.redirectEndpoint);((R=p)==null?0:(qN=R.newHeader)==null?0:qN.playlistHeaderRenderer)?tMi(d.controller,p.newHeader.playlistHeaderRenderer):((kl=p)==null?0:(BN=kl.newHeader)==null?0:BN.musicEditablePlaylistDetailHeaderRenderer)&&tMi(d.controller,p.newHeader.musicEditablePlaylistDetailHeaderRenderer);
d.controller.playlistVideoListElement&&((tP=p)==null?0:(EC=tP.playlistEditResults)==null?0:(AP=EC[0])==null?0:AP.playlistEditVideoAddedResultData)&&((BH=d.controller.playlistVideoListElement)==null||BH.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:p.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Fm(eM)})};
rV[dE]=[bv,_.uo,_.M4,_.ZM];var CJ=function(c,f){this.controller=c;this.JSC$17318_commandHandler=f};
_.K(CJ,DT);CJ.prototype.resolveCommand=function(c,f){var d=this,q,Z,M;return _.k(function(g){q=_.b(c,CJ3);d.controller.showRefreshPill&&((Z=q)==null?0:Z.command)&&(d.JSC$17318_commandHandler.resolveCommand((M=q)==null?void 0:M.command,f),d.controller.showRefreshPill=!1);_.Fm(g)})};
CJ[dE]=[_.kF,_.ZM];var gV=function(c,f){this.store=c;this.JSC$17322_commandHandler=f||_.Hh.instance};
_.K(gV,DT);gV.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y;return _.k(function(t){q=_.b(c,F6y);Z=d.store.getState().radioButtonGroup;if((M=q)==null?0:M.command)d.JSC$17322_commandHandler.resolveCommand((g=q)==null?void 0:g.command,f);else if(Z&&((O=q)==null?void 0:O.formId)===Z.currentFormId)for(l=Object.values(Z.commandsMap),m=_.C(l),H=m.next();!H.done;H=m.next())A=H.value,(Y=_.D9(A))&&d.JSC$17322_commandHandler.resolveCommand(Y,f);_.Fm(t)})};
gV[dE]=[_.WL];var kj=new _.jk("USER_PREFS");var Ov=function(c){this.JSC$17327_prefCookie=c};
_.K(Ov,DT);Ov.prototype.resolveCommand=function(c){var f=this,d;return _.k(function(q){(d=_.b(c,DU3))&&typeof d.useListView==="boolean"&&(_.tQ(0,155,d.useListView),f.JSC$17327_prefCookie.save());_.Fm(q)})};
Ov[dE]=[kj];var lQ=function(c){this.JSC$17331_prefCookie=c};
_.K(lQ,DT);lQ.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g;return _.k(function(O){d=_.b(c,Go_);if((q=d)==null||!q.gl)return O.return();Z=d.gl;M={persist_gl:"1",gl:Z};f.JSC$17331_prefCookie.set("gl",Z);f.JSC$17331_prefCookie.save();g=NJ3(M);_.IV(g);_.Fm(O)})};
lQ[dE]=[kj];var sv=function(c){this.JSC$17335_prefCookie=c};
_.K(sv,DT);sv.prototype.resolveCommand=function(c){var f=this,d,q;return _.k(function(Z){d=_.b(c,ker);if(!d)return Z.return();q=!1;d.flagNum&&typeof d.value==="boolean"?(_.tQ(0,d.flagNum,d.value),q=!0):d.key&&typeof d.stringValue==="string"&&(f.JSC$17335_prefCookie.set(d.key,d.stringValue),q=!0);q&&f.JSC$17335_prefCookie.save();_.Fm(Z)})};
sv[dE]=[kj];var BG=new _.jk("PREF_STORAGE_PROMISE_TOKEN");var iQ=function(c){this.JSC$17339_prefStoragePromise=c};
_.K(iQ,DT);iQ.prototype.resolveCommand=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1)return(d=_.b(c,lk_))?Z.yield(f.JSC$17339_prefStoragePromise,2):Z.return();q=Z.yieldResult;return q===void 0||d.key===void 0||d.value===void 0?Z.return():Z.yield(q.set(d.key,d.value),0)})};
iQ[dE]=[BG];var br3=function(c){this.innertubeTransportService=c};
_.K(br3,DT);br3.prototype.resolveCommand=function(c,f){var d=this,q,Z;return _.k(function(M){(q=_.b(c,_.e1K))&&q&&q.isFirstRequest&&(_.ac("search_overview_answer"),_.V_("so_rq",void 0,"search_overview_answer"));return M.yield(_.G3(d.innertubeTransportService,c,(Z=f)==null?void 0:Z.form),0)})};
br3[dE]=[_.uo];var KhS=function(){};
_.K(KhS,DT);
KhS.prototype.resolveCommand=function(c){var f,d,q,Z,M,g,O,l,m;return _.k(function(H){f=_.b(c,R9j);if((d=f)==null?0:d.sectionIdentifier){if(f.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Z=(q=document.getElementsByTagName(f.sectionIdentifier))==null?void 0:q.item(0))Z.scrollIntoView({behavior:"smooth"}),(M=uNY(Z))&&M.focus({preventScroll:!0});return H.return()}g=document.querySelector("[section-identifier="+f.sectionIdentifier+"]");O=document.querySelector("[section-identifier="+f.referenceSectionIdentifier+
"]");if(!g)return H.return();l=f.verticalScrollOffsetDp?f.verticalScrollOffsetDp:0;O&&(l-=O.offsetTop);window.scrollTo({top:g.offsetTop+l,behavior:"smooth"});(m=uNY(g))&&m.focus({preventScroll:!0})}_.Fm(H)})};var Tj=function(c){this.JSC$17351_commandHandler=c};
_.K(Tj,DT);
Tj.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l;return _.k(function(m){if(m.nextAddress==1){d=_.b(c,lKo);if(!d||!d.imageBytes||!navigator.clipboard)return m.return();if(d.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.VO(Error("Bi")),m.return();_.iY(m,2);Z=(q=d)==null?void 0:q.imageBytes;M=Z.replace(/-/g,"+").replace(/_/g,"/");g=toN(M);O={};l=[new ClipboardItem((O[g.type]=g,O))];return m.yield(navigator.clipboard.write(l),4)}if(m.nextAddress!=2)return d.successCommand&&
f.JSC$17351_commandHandler.resolveCommand(d.successCommand),_.Pq(m,0);_.Yw(m);d.errorCommand&&f.JSC$17351_commandHandler.resolveCommand(d.errorCommand);_.Fm(m)})};
Tj[dE]=[_.ZM];var ms=function(c,f){this.innertubeTransportService=c;this.JSC$17355_commandHandler=f};
_.K(ms,DT);ms.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1)return(q=_.b(c,sX3))?l.yield(_.G3(d.innertubeTransportService,c,(Z=f)==null?void 0:Z.form),2):l.return();(M=l.yieldResult)&&M.errorMetadata&&q.onFailureCommand&&d.JSC$17355_commandHandler.resolveCommand(q.onFailureCommand);g=M;((O=g)==null?0:O.shareCommand)&&d.JSC$17355_commandHandler.resolveCommand(g.shareCommand,f);_.Fm(l)})};
ms[dE]=[_.uo,_.ZM];var HG=function(){};
_.K(HG,DT);HG.prototype.resolveCommand=function(c){var f,d;return _.k(function(q){f=_.b(c,Z03);if(!f||!navigator.share)return q.return();d={url:f.url};try{return q.return(navigator.share(d))}catch(Z){}_.Fm(q)})};var Az=function(){};
_.K(Az,DT);Az.prototype.resolveCommand=function(){return _.k(function(c){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Fm(c)})};var Yj=function(c){this.JSC$17365_navigationConfirmationService=c};
_.K(Yj,DT);Yj.prototype.resolveCommand=function(){var c=this;return _.k(function(f){c.JSC$17365_navigationConfirmationService.cancelPendingNavigation();_.Fm(f)})};
Yj[dE]=[FT];var Fp=function(c){this.JSC$17368_screenManager=c};
_.K(Fp,DT);Fp.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m;return _.k(function(H){Z=(q=f.form)==null?void 0:q.event;g=(M=f.form)==null?void 0:M.element;if(!Z)throw new _.KD("Event not passed in when resolving command");O=_.C(Z.composedPath());for(l=O.next();!l.done;l=O.next())if(m=l.value,m.tagName==="YT-COPY-LINK-RENDERER")return m.copyUrlToClipboard(),g&&_.ps(d.JSC$17368_screenManager,g),H.return();_.Fm(H)})};
Fp[dE]=[_.z1];var tz=function(){this.JSC$17372_miniAppClientDataProvider=_.ql().resolve(_.PT)};
_.K(tz,DT);tz.prototype.resolveCommand=function(){var c=this,f,d;return _.k(function(q){if(c.JSC$17372_miniAppClientDataProvider.clientData.has("video_id")){var Z=c.JSC$17372_miniAppClientDataProvider,M=Z.clientData.get("video_id");M&&Z.clientData.delete("video_id");f="https://youtube.com/watch?v="+M;d=ah(f);if(d===void 0)throw Error("Ci`"+f);_.PU(window,d)}_.Fm(q)})};var bQ=function(){};
_.K(bQ,DT);bQ.prototype.resolveCommand=function(){return _.k(function(c){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Fm(c)})};var KJ=function(){};
_.K(KJ,DT);KJ.prototype.resolveCommand=function(){var c;return _.k(function(f){if(f.nextAddress==1)return f.yield(_.kyM(window.document.documentElement),2);(c=document.querySelector("mini-app-container-view-model iframe"))&&c.focus();_.Fm(f)})};var Ev=function(c){this.JSC$17379_navigationConfirmationService=c};
_.K(Ev,DT);
Ev.prototype.resolveCommand=function(){var c=this;return _.k(function(f){var d=c.JSC$17379_navigationConfirmationService,q=_.ql().resolve(_.$H),Z;if(((Z=d.navigateParams)==null?void 0:Z.data)!==void 0){var M;_.Aa_(q,d.navigateParams.endpoint,d.navigateParams.data,(M=d.navigateParams.navigationType)!=null?M:1,d.navigateParams.tempData,d.navigateParams.isMiniplayer,void 0,!0);d.navigateParams=void 0;d.customConfirmationCommand=void 0}else d.navigateParams&&(q.navigate(d.navigateParams.endpoint,d.navigateParams.reload,
d.navigateParams.params,d.navigateParams.tempData,d.navigateParams.requestType,d.navigateParams.createScreenConfig,!0),d.navigateParams=void 0,d.customConfirmationCommand=void 0);_.Fm(f)})};
Ev[dE]=[FT];var nJ=function(){};
_.K(nJ,DT);nJ.prototype.resolveCommand=function(){return _.k(function(c){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Fm(c)})};var QB=function(c){this.JSC$17384_prefStorage=c};
_.K(QB,DT);QB.prototype.resolveCommand=function(){var c=this,f,d;return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(c.JSC$17384_prefStorage,2);case 2:return(f=q.yieldResult)?q.yield(f.set("sfvle",!1),3):q.return();case 3:return q.yield(f.set("sfvles",!0),4);case 4:d=_.Ft(),_.tQ(0,203,!1),_.tQ(0,204,!0),d.save(),_.Fm(q)}})};
QB[dE]=[BG];var SN=function(c){this.JSC$17387_prefStorage=c};
_.K(SN,DT);SN.prototype.resolveCommand=function(){var c=this,f,d;return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(c.JSC$17387_prefStorage,2);case 2:return(f=q.yieldResult)?q.yield(f.set("sfvle",!0),3):q.return();case 3:return q.yield(f.set("sfvles",!0),4);case 4:d=_.Ft(),_.tQ(0,203,!0),_.tQ(0,204,!0),d.save(),_.Fm(q)}})};
SN[dE]=[BG];_.ElH=new _.jk("SNACKBAR_CONTROLLER_TOKEN");_.nlp=new _.jk("SHOULD_SHOW_PIVOT_BAR_TOKEN");var LJ=function(c){this.controller=c};
_.K(LJ,DT);LJ.prototype.resolveCommand=function(c){var f=this,d;return _.k(function(q){d=_.b(c,E2u);if(!d)return q.return();var Z=f.controller;Z.closeSnackbarFn&&Z.closeSnackbarFn();_.Fm(q)})};
LJ[dE]=[_.ElH];var zj=function(c,f){this.controller=c;this.sheetController=f};
_.K(zj,DT);zj.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l;return _.k(function(m){q=_.b(c,$I_);if(!q)return m.return();g=skr(d.sheetController,(Z=f)==null?void 0:(M=Z.form)==null?void 0:M.element);O=_.b(q.content,IV3);if(!O)return m.return();var H=d.controller,A=O,Y=(l=q.animationStyle)!=null?l:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(H.showSnackbarFn)H.showSnackbarFn({snackbarViewModel:A,animationStyle:Y,durationMs:q.durationSeconds*1E3,target:g});else throw Error("lj");_.Fm(m)})};
zj[dE]=[_.ElH,_.Lm];var Jz=function(){};
_.K(Jz,DT);Jz.prototype.resolveCommand=function(c){var f;return _.k(function(d){f=_.b(c,O03);if(!f||typeof f.key!=="string"||typeof f.value!=="string")return d.return();window.localStorage.setItem(f.key,f.value);_.Fm(d)})};var aq=function(c){this.store=c};
_.K(aq,DT);aq.prototype.resolveCommand=function(c){var f=this,d;return _.k(function(q){d=_.b(c,jIn);if(!d||!d.stepId||!d.token)return q.return();f.store.dispatch(OQK({stepId:d.stepId,token:d.token,isSelected:!1}));_.Fm(q)})};
aq[dE]=[bv];var VB=function(c,f,d){this.innertubeTransportService=c;this.store=f;this.JSC$17406_screenManager=d};
_.K(VB,DT);
VB.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I,R,qN,kl;return _.k(function(BN){d=_.b(c,qAj);if(!d||(q=d.stepIds)==null||!q.length)return BN.return();Z=f.store.getState().talkToRecs;M=[];g=[];O=_.C(d.stepIds);for(l=O.next();!l.done;l=O.next())for(m=l.value,H=void 0,(A=(H=Z.stepStates[m])==null?void 0:H.userQuery)&&g.push({userQuery:A.userQuery,userQueryToken:A.token}),Y=void 0,t=(Y=Z.stepStates[m])==null?void 0:Y.selectionStates,E=_.C(Object.entries(t)),J=
E.next();!J.done;J=E.next())X=J.value,u=_.C(X),W=u.next().value,p=u.next().value,N=W,I=p,I.isSelected&&M.push(N);R={selectedChipTokens:M,userQueries:g,submittedStepIds:d.stepIds};qN={browseTalk2recsFormData:R};d.browseEndpoint?(kl=c,_.vh(kl,_.Fw,d.browseEndpoint)):d.command&&(kl=d.command);return kl?BN.yield(_.G3(f.innertubeTransportService,kl,{formData:qN,disableCache:!0}).then(function(tP){(tP==null?0:tP.trackingParams)&&f.JSC$17406_screenManager.graftServerVe(tP==null?void 0:tP.trackingParams)}),
0):BN.return()})};
VB[dE]=[_.uo,bv,_.z1];var Xp=function(c){this.store=c};
_.K(Xp,DT);Xp.prototype.resolveCommand=function(c){var f=this,d;return _.k(function(q){d=_.b(c,drG);if(!d||!d.stepId||!d.token)return q.return();f.store.dispatch(OQK({stepId:d.stepId,token:d.token,isSelected:!0}));_.Fm(q)})};
Xp[dE]=[bv];var uQ=function(c){this.store=c};
_.K(uQ,DT);uQ.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O;return _.k(function(l){q=_.b(c,ZFj);if(!q||!q.stepId||!q.userQueryToken)return l.return();O=(g=(Z=f)==null?void 0:(M=Z.form)==null?void 0:M.userQuery)!=null?g:"";d.store.dispatch(_.CC({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:q.stepId,userQueryToken:q.userQueryToken,userQuery:O}}));_.Fm(l)})};
uQ[dE]=[bv];_.$Nq=new _.jk("TIMELY_ACTIONS_CONTROLLER_TOKEN");var vG=function(c){this.controller=c};
_.K(vG,DT);vG.prototype.resolveCommand=function(c){var f=this,d,q,Z,M;return _.k(function(g){d=_.b(c,NhO);if(!d)return g.return();q=d;Z=q.id;M=q.isVisible;if(Z===void 0||M===void 0)return g.return();var O;(O=f.controller.timelyActionsMap.get(Z))==null||O(Z,M);_.Fm(g)})};
vG[dE]=[_.$Nq];var QkC=function(){this.timelyActionsMap=new Map};var hz=function(c){this.JSC$17433_commandHandler=c};
_.K(hz,DT);hz.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g;return _.k(function(O){d=_.b(c,_.EB);if(!d)return O.return();M=(q=d.item)==null?void 0:(Z=q.notificationTextRenderer)==null?void 0:Z.successResponseText;if(!M)return O.return();g=_.fX(M);f.JSC$17433_commandHandler.resolveCommand(g);_.Fm(O)})};
hz[dE]=[_.ZM];var wV=function(c,f){this.innertubeTransportService=c;this.JSC$17438_playerApiPromise=f};
_.K(wV,DT);
wV.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m,H;return _.k(function(A){if(A.nextAddress==1)return A.yield(f.JSC$17438_playerApiPromise,2);d=A.yieldResult;q=d.getOption("captions","track");Z=Object.assign({},_.b(c,_.JM_));(g=(M=d.getVideoData())==null?void 0:M.video_id)?Z.externalVideoId=g:_.eZ(Error("Di"));if((O=q)==null?0:O.languageCode)Z.languageCode=q.languageCode;if((l=q)==null?0:l.kind)Z.kind=q.kind;if((m=q)==null?0:m.name)Z.name=q.name;H=Object.assign({},c,{getTranscriptEndpoint:Z});return A.yield(_.G3(f.innertubeTransportService,
H),0)})};
wV[dE]=[_.uo,_.sR];var yB=function(){};
_.K(yB,DT);yB.prototype.resolveCommand=function(c){var f,d,q,Z,M,g,O,l;return _.k(function(m){f=_.b(c,YKF);if((d=f)==null||!d.paramKeyValuePairs)return m.return();q=window.location.href;Z=_.C(f.paramKeyValuePairs);for(M=Z.next();!M.done;M=Z.next())g=M.value,g.key&&g.value&&(O={},q=_.U6(q,(O[g.key]=g.value,O)));l=_.ql().resolve(_.HP);_.mD(l,q);_.Fm(m)})};var WG=function(c,f){this.JSC$17445_commandHandler=c;this.innertubeTransportService=f};
_.K(WG,DT);
WG.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p;return _.k(function(N){switch(N.nextAddress){case 1:return(M=(q=f)==null?void 0:(Z=q.form)==null?void 0:Z.element)&&_.I9(M),g=_.Ft().get("hl"),O="",_.iY(N,2),N.yield(e7Y(g),4);case 4:O=N.yieldResult;_.Pq(N,3);break;case 2:return _.Yw(N),M&&_.PZ(M),_.VO(Error("Fi"),"ERROR"),N.return();case 3:l=_.b(c,ALK);if(!l)return M&&_.PZ(M),N.return();(A=(m=l.commerceActionConfig)==null?void 0:(H=m.commandLifeCycleConfig)==null?
void 0:H.onStartCommand)&&d.JSC$17445_commandHandler.resolveCommand(A);return N.yield(_.G3(d.innertubeTransportService,c,{client_data:{paymentsClientToken:{token:O}}}),5);case 5:(Y=N.yieldResult)?(M&&_.PZ(M),((X=Y)==null?0:X.command)&&d.JSC$17445_commandHandler.resolveCommand(Y.command),(p=(u=l.commerceActionConfig)==null?void 0:(W=u.commandLifeCycleConfig)==null?void 0:W.onSuccessCommand)&&d.JSC$17445_commandHandler.resolveCommand(p)):(M&&_.PZ(M),_.VO(Error("Gi")),(J=(t=l.commerceActionConfig)==
null?void 0:(E=t.commandLifeCycleConfig)==null?void 0:E.onFailureCommand)&&d.JSC$17445_commandHandler.resolveCommand(J)),_.Fm(N)}})};
WG[dE]=[_.ZM,_.uo];var DY=function(c,f,d){this.store=c;this.JSC$17461_commandHandler=f;this.innertubeTransportService=d};
_.K(DY,DT);
DY.prototype.resolveCommand=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A;return _.k(function(Y){q=_.b(c,Yau);Z=q.googlePaymentPayload;q.onStartCommand&&d.JSC$17461_commandHandler.resolveCommand(q.onStartCommand);M=Z.encryptedPurchaseParams;g=Z.ypcLogWalletAnalyticDataEndpoint;O=q.serializedTransactionFlowLoggingParams;l=Z.serializedPaymentsClientParams;m=q.ypcCujContext;A=P8C(d.innertubeTransportService,(H=f)==null?void 0:H.form,M,g,O,l,m);return Y.return(A.then(function(t){NQP(f==null?void 0:f.form,
!1);var E=d.store,J=d.JSC$17461_commandHandler,X=t.integratorData;X==null||X===""||t.error!=null?(String(t.error)==="-1"&&q.onDismissCommand?J.resolveCommand(q.onDismissCommand):String(t.error)!=="-1"&&q.onFailureCommand&&J.resolveCommand(q.onFailureCommand),String(t.error)!=="-1"&&String(t.error)!=="132"&&_.VO(Error("Hi"),"ERROR")):(q.googlePaymentEntityKey&&E.dispatch(_.ER("commerceAcquisitionClientPayloadEntity",q.googlePaymentEntityKey,{key:q.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:X,
fundsGuaranteeCallbackClientData:t.integratorClientCallbackData}}})),q.onSuccessCommand&&J.resolveCommand(q.onSuccessCommand));_.sX()},function(t){NQP(f==null?void 0:f.form,!1);
_.VO(t,"ERROR");q.onFailureCommand&&d.JSC$17461_commandHandler.resolveCommand(q.onFailureCommand)}))})};
DY[dE]=[Cp,_.ZM,_.uo];var eN=function(c,f){this.JSC$17465_commandHandler=c;this.purchaseManager=f};
_.K(eN,DT);
eN.prototype.resolveCommand=function(c){var f=this,d,q,Z,M,g,O,l,m,H;return _.k(function(A){d=_.b(c,FNr);((q=d)==null?0:(Z=q.commandLifeCycleConfig)==null?0:Z.onStartCommand)&&f.JSC$17465_commandHandler.resolveCommand(d.commandLifeCycleConfig.onStartCommand);if(!((M=d)==null?0:(g=M.googlePaymentPurchaseManagerPayload)==null?0:g.securePayloadBytes))return _.VO(Error("Ii"),"ERROR"),A.return();O=Fq_(_.pr(d.googlePaymentPurchaseManagerPayload.securePayloadBytes));l=_.Ft().get("hl");m=_.c9();$F_(O.serialize(),
l,function(Y){m.resolve(Y)},function(Y){m.reject(Y)},m.resolve);
H=m.promise;return A.return(H.then(function(Y){if(Y)if(Y==null?0:Y.errorCode){_.VO(Error("Ji`"+Y.errorCode),"ERROR");var t,E;((t=d)==null?0:(E=t.commandLifeCycleConfig)==null?0:E.onFailureCommand)&&f.JSC$17465_commandHandler.resolveCommand(d.commandLifeCycleConfig.onFailureCommand)}else if(Y==null?0:Y.isCancelled){var J,X;((J=d)==null?0:(X=J.commandLifeCycleConfig)==null?0:X.onCancelCommand)&&f.JSC$17465_commandHandler.resolveCommand(d.commandLifeCycleConfig.onCancelCommand)}else{var u,W;((u=d)==
null?0:(W=u.commandLifeCycleConfig)==null?0:W.onSuccessCommand)&&f.JSC$17465_commandHandler.resolveCommand(d.commandLifeCycleConfig.onSuccessCommand)}},function(Y){_.VO(Y,"ERROR");
var t,E;((t=d)==null?0:(E=t.commandLifeCycleConfig)==null?0:E.onFailureCommand)&&f.JSC$17465_commandHandler.resolveCommand(d.commandLifeCycleConfig.onFailureCommand)}))})};
eN[dE]=[_.ZM,Q4o];var SCF=function(c,f){this.JSC$17473_commandHandler=c;this.commandAllowlistOverride=f;var d;this.commandAllowlist=(d=this.commandAllowlistOverride)!=null?d:fa};
SCF.prototype.handleResponse=function(c,f,d){var q,Z=f==null?void 0:(q=f.config)==null?void 0:q.command;if(!Z||this.commandAllowlist.some(function(M){return!!_.b(Z,M)})){f=void 0;
d!==void 0&&(f={form:{element:d}});c.onResponseReceivedCommand&&this.JSC$17473_commandHandler.resolveCommand(c.onResponseReceivedCommand,f);c.onResponseReceivedAction&&this.JSC$17473_commandHandler.resolveCommand(c.onResponseReceivedAction,f);c.onResponseReceivedEndpoint&&this.JSC$17473_commandHandler.resolveCommand(c.onResponseReceivedEndpoint,f);c.command&&this.JSC$17473_commandHandler.resolveCommand(c.command,f);if(c.onResponseReceivedCommands)for(d=_.C(c.onResponseReceivedCommands),q=d.next();!q.done;q=
d.next())this.JSC$17473_commandHandler.resolveCommand(q.value,f);if(c.onResponseReceivedActions)for(d=_.C(c.onResponseReceivedActions),q=d.next();!q.done;q=d.next())this.JSC$17473_commandHandler.resolveCommand(q.value,f);if(c.onResponseReceivedEndpoints)for(d=_.C(c.onResponseReceivedEndpoints),q=d.next();!q.done;q=d.next())this.JSC$17473_commandHandler.resolveCommand(q.value,f);if(c.actions)for(c=_.C(c.actions),d=c.next();!d.done;d=c.next())this.JSC$17473_commandHandler.resolveCommand(d.value,f)}};
SCF[dE]=[_.ZM,_.dx(uUN)];var Lh3=new _.jk("INNERTUBE_TOKEN_SERVICE");var zGD=new _.jk("SCHEDULER_TOKEN");var JP3=function(c){this.scheduler=c;c={};this.tokenMap=(c.app={},c.user={},c)};
JP3.prototype.handleResponse=function(c,f){if(!f)throw Error("Ki");var d;if(c=(d=c.responseContext)==null?void 0:d.innertubeTokenJar){if(c.appTokens){var q,Z,M;d=(q=f.innerTubeRequest.context)==null?void 0:(Z=q.request)==null?void 0:(M=Z.innertubeTokenJar)==null?void 0:M.appTokens;a4q(this,c.appTokens,this.tokenMap.app,d)}if(c.userTokens){var g,O,l;f=(g=f.innerTubeRequest.context)==null?void 0:(O=g.request)==null?void 0:(l=O.innertubeTokenJar)==null?void 0:l.userTokens;a4q(this,c.userTokens,this.tokenMap.user,
f)}}};
JP3.prototype.processContext=function(c){c.request||(c.request={});var f=Object.keys(this.tokenMap.app).length,d=Object.keys(this.tokenMap.user).length;if(f||d)c.request.innertubeTokenJar={},f&&(c.request.innertubeTokenJar.appTokens=[].concat(_.LT(Object.values(this.tokenMap.app).flat()))),d&&(c.request.innertubeTokenJar.userTokens=[].concat(_.LT(Object.values(this.tokenMap.user).flat())))};
var a4q=function(c,f,d,q){f=_.C(f);for(var Z=f.next(),M={};!Z.done;M={token$jscomp$138:void 0},Z=f.next()){M.token$jscomp$138=Z.value;if(M.token$jscomp$138.type===void 0)throw new _.KD("InnerTube token has no type",M.token$jscomp$138);if(M.token$jscomp$138.clearTokens)d[M.token$jscomp$138.type]=[];else if(M.token$jscomp$138.value!==void 0){d[M.token$jscomp$138.type]||(d[M.token$jscomp$138.type]=[]);if(q!==void 0&&q.length){Z=_.C(q);for(var g=Z.next(),O={};!g.done;O={requestToken:void 0},g=Z.next())O.requestToken=
g.value,g=d[M.token$jscomp$138.type].findIndex(function(l){return function(m){return m===l.requestToken||(0,_.zV.equals)(m,l.requestToken)}}(O)),g>-1&&d[M.token$jscomp$138.type].splice(g,1)}d[M.token$jscomp$138.type].push(M.token$jscomp$138);
M.token$jscomp$138.maxAgeSeconds&&Number(M.token$jscomp$138.maxAgeSeconds)>0&&c.scheduler.addLowPriorityJob(function(l){return function(){var m=d[l.token$jscomp$138.type].indexOf(l.token$jscomp$138);m>-1&&d[l.token$jscomp$138.type].splice(m,1)}}(M),Number(M.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.KD("InnerTube token has no value",M.token$jscomp$138);
}};
JP3[dE]=[zGD];var VMC=new _.jk("LOCAL_INNERTUBE_ROUTER_TOKEN"),XNH=new _.jk("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var N4=function(c){this.serviceMap=c};
N4.prototype.shouldPreferLocalResponse=function(c,f){return(c=uki(this,c))?c.shouldPreferLocalResponse(f):!1};
N4.prototype.localInnertubeResponse=function(c,f){var d=this,q;return _.k(function(Z){return(q=uki(d,c))?Z.return(q.localInnertubeResponse(f)):Z.return(Promise.reject(Error("Li")))})};
N4.prototype.canProvideFallbackResponse=function(c,f){return(c=uki(this,c))?c.canProvideFallbackResponse(f):!1};
N4.prototype.localFallbackInnertubeResponse=function(c,f){var d=this,q;return _.k(function(Z){return(q=uki(d,c))?Z.return(q.localFallbackInnertubeResponse(f)):Z.return(Promise.reject(Error("Li")))})};
var uki=function(c,f){f=_.Bq(f);return f?(c=c.serviceMap[f])?c:null:null};
N4[dE]=[XNH];var np=function(){};
np.prototype.shouldPreferLocalResponse=function(){return!1};
np.prototype.localInnertubeResponse=function(){return _.k(function(c){return c.return(Promise.reject(Error("Mi")))})};
np.prototype.canProvideFallbackResponse=function(){return!0};
np.prototype.localFallbackInnertubeResponse=function(){var c,f,d;return _.k(function(q){c=KO("CLOSE_POPUP");f={openPopupAction:U1N()};d={actions:[c,f]};return q.return(d)})};var Pth=function(c,f){this.JSC$17523_upliftPromise=c;this.store=f};
_.r=Pth.prototype;_.r.shouldPreferLocalResponse=function(c){var f=c.videoId,d;if(d=f)d=cue(this.store.getState().entities,c.videoId);return d&&fKN(this.store.getState().entities,f)?x1M(this.store.getState().entities,c.playlistId):!1};
_.r.localInnertubeResponse=function(c){var f=this,d;return _.k(function(q){return(d=f.getPlayerResponse(c))?q.return(Promise.resolve(d)):q.return(Promise.reject(Error("Ni")))})};
_.r.canProvideFallbackResponse=function(c){return!!c.videoId};
_.r.localFallbackInnertubeResponse=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(f.JSC$17523_upliftPromise,2);d=f.getPlayerResponse(c);var Z;d?Z=q.return(Promise.resolve(d)):Z=nC(f.store.getState().entities,c.videoId)?q.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.jU(_.HO("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:gVk()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
q.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.jU(_.HO("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:CHk()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Z})};
_.r.getPlayerResponse=function(c){return $IG(this.store.getState().entities,c.videoId)};var E_=function(c,f){this.localPlayerService=c;this.localWatchNextService=f};
E_.prototype.shouldPreferLocalResponse=function(c){var f=c.playerRequest;c=c.watchNextRequest;return!!(f&&this.localPlayerService.shouldPreferLocalResponse(f)&&c&&this.localWatchNextService.shouldPreferLocalResponse(c))};
E_.prototype.localInnertubeResponse=function(c){var f=this,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1){d=c.playerRequest;q=c.watchNextRequest;if(!d||!q)throw new _.KD("Missing streaming request",c);return g.yield(f.localPlayerService.localInnertubeResponse(d),2)}if(g.nextAddress!=3)return Z=g.yieldResult,g.yield(f.localWatchNextService.localInnertubeResponse(q),3);M=g.yieldResult;return g.return({playerResponse:Z,watchNextResponse:M})})};
E_.prototype.canProvideFallbackResponse=function(c){var f=c.playerRequest;c=c.watchNextRequest;return!!(f&&this.localPlayerService.canProvideFallbackResponse(f)&&c&&this.localWatchNextService.canProvideFallbackResponse(c))};
E_.prototype.localFallbackInnertubeResponse=function(c){var f=this,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return d=c.playerRequest,q=c.watchNextRequest,d&&q?g.yield(f.localPlayerService.localFallbackInnertubeResponse(d),2):g.return(Promise.reject(new _.KD("Missing streaming request",c)));if(g.nextAddress!=3)return Z=g.yieldResult,g.yield(f.localWatchNextService.localFallbackInnertubeResponse(q),3);M=g.yieldResult;return g.return({playerResponse:Z,watchNextResponse:M})})};var AK=function(c){this.JSC$17533_persistentStorePromiseAccessor=c};
AK.prototype.shouldPreferLocalResponse=function(){return!1};
AK.prototype.localInnertubeResponse=function(){return _.k(function(c){return c.return(Promise.reject(Error("Oi")))})};
AK.prototype.canProvideFallbackResponse=function(){return!0};
AK.prototype.localFallbackInnertubeResponse=function(){var c=this,f,d;return _.k(function(q){return q.nextAddress==1?q.yield(c.JSC$17533_persistentStorePromiseAccessor(),2):q.nextAddress!=3?(f=q.yieldResult)?q.yield(f.get("service:guide:fallback"),3):q.return(Promise.reject(Error("Pi"))):(d=q.yieldResult)&&_.Mo(d)?q.return(oUn(_.Mo(d))):q.return(Promise.reject(Error("Qi")))})};var $R=function(){};
$R.prototype.shouldPreferLocalResponse=function(){return!1};
$R.prototype.localInnertubeResponse=function(){return _.k(function(c){return c.return(Promise.reject(Error("Ri")))})};
$R.prototype.canProvideFallbackResponse=function(){return!0};
$R.prototype.localFallbackInnertubeResponse=function(){var c,f,d;return _.k(function(q){c=KO("CLOSE_POPUP");f={openPopupAction:U1N()};d={actions:[c,f]};return q.return(d)})};var H5=function(){this.urlMap=vlJ;this.fallbackCommand=_.tu};
H5.prototype.shouldPreferLocalResponse=function(c){return(c=c.url)?!!hGr(this,c):!1};
H5.prototype.localInnertubeResponse=function(c){var f=this,d;return _.k(function(q){return(d=c.url)?q.return(wNS(c,hGr(f,d))):q.return(Promise.reject(Error("Si")))})};
H5.prototype.canProvideFallbackResponse=function(){return!0};
H5.prototype.localFallbackInnertubeResponse=function(c){var f=this,d,q,Z,M,g,O,l;return _.k(function(m){d=c.url;if(!d)return m.return(wNS(c,f.fallbackCommand));if(q=hGr(f,d))return m.return(wNS(c,q));Z=void 0;M=_.Bq(d);M==="/watch"&&(g=_.y2(d,"v"))&&(l=(O=_.y2(d,"list"))!=null?O:void 0,Z=_.dW(g,l));Z||(Z=f.fallbackCommand);return m.return(wNS(c,Z))})};
var hGr=function(c,f){if(f)return c.urlMap[_.NT(f)]},wNS=function(c,f){f&&c.parentTrackingParams&&(f.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:c.parentTrackingParams}},f.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:f})};var YR=function(c,f,d){this.JSC$17543_upliftPromise=c;this.store=f;this.JSC$17543_persistentStorePromiseAccessor=d};
YR.prototype.shouldPreferLocalResponse=function(){return!1};
YR.prototype.localInnertubeResponse=function(){return _.k(function(c){return c.return(Promise.reject(Error("Ti")))})};
YR.prototype.canProvideFallbackResponse=function(){return!0};
YR.prototype.localFallbackInnertubeResponse=function(){var c=this;return _.k(function(f){return f.return(yPq(c))})};
var yPq=function(c){var f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(Zh(c.JSC$17543_upliftPromise,c.store),2);f=q.yieldResult;d={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[pcz(f)]}}}};return q.return(WhD(c,d))})},WhD=function(c,f){var d,q;
return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(c.JSC$17543_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return d=Z.yieldResult,Z.yield(rO(d),3);q=Z.yieldResult;return Z.return({responseContext:{},contents:f,topbar:q})})};var Td=function(c,f,d){this.JSC$17550_upliftPromise=c;this.store=f;this.JSC$17550_persistentStorePromiseAccessor=d};
Td.prototype.shouldPreferLocalResponse=function(c){var f=c.videoId;return f&&cue(this.store.getState().entities,f)&&fKN(this.store.getState().entities,f)?x1M(this.store.getState().entities,c.playlistId):!1};
Td.prototype.localInnertubeResponse=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1)return(d=c.videoId)?Z.yield(f.JSC$17550_upliftPromise,2):Z.return(Promise.reject(Error("Ui")));if(Z.nextAddress!=3)return Z.yield(DNp(f,c,d),3);q=Z.yieldResult;return Z.return(eGC(f,q,d))})};
Td.prototype.canProvideFallbackResponse=function(c){return c.videoId?!0:!1};
Td.prototype.localFallbackInnertubeResponse=function(c){var f=this,d,q,Z,M;return _.k(function(g){switch(g.nextAddress){case 1:return(d=c.videoId)?g.yield(f.JSC$17550_upliftPromise,2):g.return(Promise.reject(Error("Ui")));case 2:return g.yield(DNp(f,c,d),3);case 3:q=g.yieldResult;if(nC(f.store.getState().entities,d)){g.jumpTo(4);break}return g.yield(Zh(f.JSC$17550_upliftPromise,f.store),5);case 5:return Z=g.yieldResult,g.return(NzJ(q,Z));case 4:return cue(f.store.getState().entities,d)&&fKN(f.store.getState().entities,
d)?g.return(eGC(f,q,d)):(M={title:_.jU(_.HO("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:gVk()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},g.return(NzJ(q,M)))}})};
var DNp=function(c,f,d){var q,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1)return q=f.playlistId,Z=_.dW(d,q),l.yield(c.JSC$17550_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3)return M=l.yieldResult,l.yield(rO(M),3);g=l.yieldResult;O={responseContext:{},currentVideoEndpoint:Z,topbar:g};return l.return(O)})},eGC=function(c,f,d){if(c=nC(c.store.getState().entities,d)){var q;
d=c.videoEntity;var Z,M={title:q$(d.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Z8((q=d.localizedStrings)==null?void 0:q.viewCount),viewCount:_.Z8((Z=d.localizedStrings)==null?void 0:Z.viewCount)}}};d.publishedTimestampMillis&&(M.dateText=_.Z8(m2N(new Date(Number(d.publishedTimestampMillis)))));q={videoPrimaryInfoRenderer:M};Z=c.videoEntity;c=c.channelEntity;c={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:q$(_.HO("SHOW_MORE",void 0,"Show more")),
showLessText:q$(_.HO("SHOW_LESS",void 0,"Show less")),description:Z.formattedDescription,owner:{videoOwnerRenderer:{title:q$(c.title),thumbnail:c.avatar}}}};f.contents={twoColumnWatchNextResults:{results:{results:{contents:[q,c]}}}}}return f},NzJ=function(c,f){c.contents={singleColumnWatchNextResults:{results:{results:{contents:[pcz(f)]}}}};
return c};var Kp=function(c,f,d){this.JSC$17555_upliftPromise=c;this.store=f;this.JSC$17555_persistentStorePromiseAccessor=d};
Kp.prototype.shouldPreferLocalResponse=function(){return!1};
Kp.prototype.localInnertubeResponse=function(){return _.k(function(c){return c.return(Promise.reject(Error("Vi")))})};
Kp.prototype.canProvideFallbackResponse=function(){return!0};
Kp.prototype.localFallbackInnertubeResponse=function(){var c=this,f,d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:return M.yield(c.JSC$17555_persistentStorePromiseAccessor(),2);case 2:return f=M.yieldResult,M.yield(rO(f),3);case 3:return d=M.yieldResult,q={responseContext:{},topbar:d},M.yield(c.JSC$17555_upliftPromise,4);case 4:return M.yield(Zh(c.JSC$17555_upliftPromise,c.store),5);case 5:return Z=M.yieldResult,q.watchStatus={backgroundPromoRenderer:Z},M.return(q)}})};var I4c=new _.jk("ENDPOINT_MAP");var Pe3=function(){var c=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return c.sequenceMap}}},iJK=function(c,f,d){var q,Z=(q=f.config)==null?void 0:q.sequenceStrategy;
if(!Z)return d();c.sequenceMap.has(Z.sequenceKey)||c.sequenceMap.set(Z.sequenceKey,[]);c=c.sequenceMap.get(Z.sequenceKey);switch(Z.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return RGF(c,f,d);case "REQUEST_SEQUENCE_TYPE_REPLACE":return UNi(c,f,d);default:throw new _.KD("Request could not be sequenced",f);}},RGF=function(c,f,d){var q,Z,M;
return _.k(function(g){c.length>0?(Z=c[c.length-1],q=Z.responsePromise.then(function(){return d()})):q=d();
M={request:f,responsePromise:q};c.push(M);pN3(c,M);return g.return(M.responsePromise)})},UNi=function(c,f,d){d=d();
if(c.length>0)for(var q=_.C(c),Z=q.next();!Z.done;Z=q.next())Z.value.responsePromise=d;var M={request:f,responsePromise:d};c.push(M);pN3(c,M);return Promise.resolve().then(function(){return c.indexOf(M)>0?M.responsePromise.then(function(g){return Object.assign({},g,{sequenceMetaData:{skipProcessing:!0}})}):M.responsePromise})},pN3=function(c,f){f.responsePromise.then(function(){var d=c.indexOf(f);
d>-1&&c.splice(d,1)})};var xN3=new _.jk("REQUEST_SEQUENCING");var Iq=function(){};
_.K(Iq,BL);Iq.prototype.getApiPaths=function(){return[]};
Iq.prototype.getExtension=function(c){return _.b(c,Kb3)};
Iq.prototype.JSC$12990_buildRequest=function(c,f){c.recaptchaToken=f.recaptchaToken};
Iq.prototype.getApiUrl=function(){return"/das_captcha"};var PG=function(){};
_.K(PG,BL);PG.prototype.getApiPaths=function(){return msH};
PG.prototype.getExtension=function(c){return _.b(c,GUO)};
PG.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.createBackstagePostParams&&(c.createBackstagePostParams=f.createBackstagePostParams);d.comment_text&&(c.commentText=d.comment_text);if(d.attached_video_id)c.videoAttachment={videoId:d.attached_video_id};else if(d.image_poll_options)c.pollAttachmentData={options:d.image_poll_options};else if(d.poll_options)c.pollAttachment={choices:d.poll_options};else if(d.quiz_options)c.quizAttachmentData={options:d.quiz_options};else if(d.image_blob_id)c.imageAttachment=
{encryptedBlobId:d.image_blob_id},d.source_video_id&&(c.imageAttachment.sourceExternalVideoId=d.source_video_id),d.image_preview_coordinates&&(c.imageAttachment.previewCoordinates=JSON.parse(d.image_preview_coordinates));else if(d.images_data)c.imagesAttachment={imagesData:d.images_data};else if(d.clip_external_video_id!==void 0||d.clip_offset_ms!==void 0||d.clip_duration_ms!==void 0){var q,Z,M,g,O;c.clipAttachment={externalVideoId:(M=d.clip_external_video_id)!=null?M:"",offsetMs:(g=(q=d.clip_offset_ms)==
null?void 0:q.toString())!=null?g:"",durationMs:(O=(Z=d.clip_duration_ms)==null?void 0:Z.toString())!=null?O:""}}else d.shared_post_id&&(c.sharedPostAttachment={postId:d.shared_post_id});d.tagged_video_id&&(c.postCreationData={taggedVideoId:d.tagged_video_id});d.access_restrictions&&(typeof d.access_restrictions==="number"&&(f=d.access_restrictions,c.accessRestrictions={restriction:f!==1&&f===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof d.access_restrictions==="string"&&
(c.accessRestrictionsParams=d.access_restrictions));d.scheduled_publish_time_sec&&(c.scheduledPublishTimeSec=d.scheduled_publish_time_sec.toString())};var Rq=function(){};
_.K(Rq,BL);Rq.prototype.getApiPaths=function(){return KRK};
Rq.prototype.getExtension=function(c){return _.b(c,Hz3)};
Rq.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.decorateMessageParams&&(c.params=f.decorateMessageParams);d.text&&(c.text=d.text)};var Uv=function(){};
_.K(Uv,BL);Uv.prototype.getApiPaths=function(){return Nt_};
Uv.prototype.getExtension=function(c){return _.b(c,cCT)};
Uv.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;d.video_id&&(c.videoId=d.video_id)};var pJ=function(){};
_.K(pJ,BL);pJ.prototype.getApiPaths=function(){return pAj};
pJ.prototype.getExtension=function(c){return _.b(c,_.Ti)};
pJ.prototype.JSC$12990_buildRequest=function(c,f,d){d.suggestions_query&&(c.input=d.suggestions_query)};var xj=function(){};
_.K(xj,BL);xj.prototype.getApiPaths=function(){return QQ3};
xj.prototype.getExtension=function(c){return _.b(c,fHv)};
xj.prototype.JSC$12990_buildRequest=function(c,f,d){d.comment_text!==void 0&&(c.commentText=d.comment_text);d.scheduled_publish_time_sec&&(c.scheduledPublishTimeSec=d.scheduled_publish_time_sec.toString());c.updateBackstagePostParams=f.updateBackstagePostParams};var oq=function(){};
_.K(oq,BL);oq.prototype.getApiPaths=function(){return G6};
oq.prototype.getExtension=function(c){return _.b(c,_.Pr)};
oq.prototype.JSC$12990_buildRequest=function(c,f,d){d.formData&&(c.formData=d.formData);f.token?c.continuation=f.token:f.continuationTokenKey&&(d=_.Gh().getState(),f=_.Bb(d.entities,"continuationTokenEntity",f.continuationTokenKey))&&(c.continuation=String(f.continuationToken))};
var olr=function(){};
_.K(olr,BL);_.r=olr.prototype;_.r.getApiPaths=function(){return G6};
_.r.getExtension=function(c){return _.b(c,_.Fw)};
_.r.isNavigationCommand=function(){return!0};
_.r.JSC$12997_getStoreKey=function(c){if((c=this.getExtension(c))&&c.browseId){var f={browseId:c.browseId};c.browseEndpointContextSupportedConfigs&&(f.browseEndpointContextSupportedConfigs=JSON.stringify(c.browseEndpointContextSupportedConfigs));c.params&&(f.params=c.params);c.query&&(f.query=c.query);return _.Uc("browse",f)}};
_.r.JSC$12990_buildRequest=function(c,f,d){f.browseId&&(c.browseId=f.browseId);f.params&&(c.params=f.params);f.query&&(c.query=f.query);d.formData?c.formData=d.formData:f.formData&&(c.formData=f.formData);f.browseId==="FEsubscriptions"&&_.Ft().getFlag(155)&&(c.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");f.browseId==="SPaccount_playback"&&(d=_.Ft(),c.formData||(c.formData={}),c.formData.accountSettingsFormData={flagCaptionsDefaultOff:d.getFlag(65),flagAutoCaptionsDefaultOn:d.getFlag(66),
flagDisableInlinePreview:d.getFlag(186),flagAudioDescriptionDefaultOn:d.getFlag(198)});if(f.browseId==="FEwhat_to_watch"){d=_.Ft();var q=d.getFlag(196);d.getFlag(197)&&(c.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:q}}})}f.browseId==="FEwhat_to_watch"&&(f=_.Ft().getFlag(186),c.inlineSettingStatus=f?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.r.getRequestConfig=function(c,f){f=f===void 0?{}:f;var d={};if(c=this.JSC$12997_getStoreKey(c,f))d.storeStrategy={storeKey:c,disableCache:f.disableCache};_.F("web_log_browse_ticks_ks")||(d.requestTick="br_s",d.responseTick="br_r");return d};var Gj=function(){};
_.K(Gj,BL);Gj.prototype.getApiPaths=function(){return Og_};
Gj.prototype.getExtension=function(c){return _.b(c,SKK)};
Gj.prototype.JSC$12990_buildRequest=function(c,f,d){c.legacyYoutubeChannelUsername=d.legacyYouTubeChannelUsername||"";c.legacyYoutubeChannelPassword=d.legacyYouTubeChannelPassword||""};var cp=function(){};
_.K(cp,BL);cp.prototype.getApiPaths=function(){return HmT};
cp.prototype.getExtension=function(c){return _.b(c,goy)};
cp.prototype.JSC$12990_buildRequest=function(c,f,d){d.recaptcha_response_token&&(c.recaptchaResponseToken=d.recaptcha_response_token);d.channel_id&&(c.channelId=d.channel_id)};var fP=function(){};
_.K(fP,BL);fP.prototype.getApiPaths=function(){return Sju};
fP.prototype.getExtension=function(c){return _.b(c,iFu)};
fP.prototype.JSC$12990_buildRequest=function(c,f,d){f.externalChannelId&&(c.externalChannelId=f.externalChannelId);d.handle&&(c.handleUpdate={handle:d.handle},f.handleEditSource&&(c.handleUpdate.handleEditSource=f.handleEditSource))};var dw=function(){};
_.K(dw,BL);dw.prototype.getApiPaths=function(){return abT};
dw.prototype.getExtension=function(c){return _.b(c,voF)};
dw.prototype.JSC$12990_buildRequest=function(c,f,d){f.request&&(c.channelId=f.request.channelId);var q;if(d==null?0:(q=d.uploadDefaults)==null?0:q.emojiReactionSet)c.uploadDefaultsRequest||(c.uploadDefaultsRequest={}),c.uploadDefaultsRequest.emojiReactionSet=d.uploadDefaults.emojiReactionSet};var ja=function(){};
_.K(ja,BL);ja.prototype.getApiPaths=function(){return uT3};
ja.prototype.getExtension=function(c){return _.b(c,koo)};
ja.prototype.JSC$12990_buildRequest=function(c,f,d){f.externalChannelId&&(c.externalChannelId=f.externalChannelId);f.channelHandleEntityKey&&(c.channelHandleEntityKey=f.channelHandleEntityKey);f.handleEditSource&&(c.handleEditSource=f.handleEditSource);d.handle?c.handle=d.handle:d.name&&(c.name=d.name)};var qJ=function(){};
_.K(qJ,BL);qJ.prototype.getApiPaths=function(){return BtH};
qJ.prototype.getExtension=function(c){return _.b(c,ofT)};
qJ.prototype.JSC$12990_buildRequest=function(c,f){f.actions?c.actions=f.actions:f.action&&(c.actions=[f.action])};var ZN=function(){};
_.K(ZN,BL);ZN.prototype.getApiPaths=function(){return igj};
ZN.prototype.getExtension=function(c){return _.b(c,_.Pr)};
ZN.prototype.JSC$12990_buildRequest=function(c,f){f.token&&(c.continuation=f.token)};var MJ=function(){};
_.K(MJ,BL);MJ.prototype.getApiPaths=function(){return DsF};
MJ.prototype.getExtension=function(c){return _.b(c,_.Pr)};
MJ.prototype.JSC$12990_buildRequest=function(c,f){c.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";f.token&&(c.fetchCommentsParams={continuation:f.token})};var rw=function(){};
_.K(rw,BL);rw.prototype.getApiPaths=function(){return YiF};
rw.prototype.getExtension=function(c){return _.b(c,xBy)};
rw.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.createReplyParams&&(c.createReplyParams=f.createReplyParams);f.commentText&&(c.commentText=_.xC(f.commentText));d.comment_text&&(c.commentText=d.comment_text);d.image_blob_id&&(c.imageAttachment={encryptedBlobId:d.image_blob_id});d.botguard_response&&(c.botguardResponse=d.botguard_response)};
_.ci.Object.defineProperties(rw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CP=function(){};
_.K(CP,BL);CP.prototype.getApiPaths=function(){return FRH};
CP.prototype.getExtension=function(c){return _.b(c,_.pQF)};
CP.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.createCommentParams&&(c.createCommentParams=f.createCommentParams);f.commentText&&(c.commentText=_.xC(f.commentText));f.videoPositionMention&&(c.videoPositionMention=f.videoPositionMention);f.sources&&(c.sources=f.sources);d.comment_text&&(c.commentText=d.comment_text);d.attached_video_id?c.videoAttachment={videoId:d.attached_video_id}:d.poll_options?c.pollAttachment={choices:d.poll_options}:d.image_blob_id?c.imageAttachment=
{encryptedBlobId:d.image_blob_id}:d.shared_post_id&&(c.sharedPostAttachment={postId:d.shared_post_id});d.access_restrictions&&typeof d.access_restrictions==="number"&&(f=d.access_restrictions,c.accessRestrictions={restriction:f!==1&&f===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});d.botguard_response&&(c.botguardResponse=d.botguard_response)};
_.ci.Object.defineProperties(CP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gw=function(){};
_.K(gw,BL);gw.prototype.getApiPaths=function(){return LDH};
gw.prototype.getExtension=function(c){return _.b(c,cur)};
gw.prototype.JSC$12990_buildRequest=function(c,f,d){f.commentText&&(c.replyText=_.xC(f.commentText));d.comment_text&&(c.replyText=d.comment_text);c.updateReplyParams=f.updateReplyParams};
_.ci.Object.defineProperties(gw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kW=function(){};
_.K(kW,BL);kW.prototype.getApiPaths=function(){return zmo};
kW.prototype.getExtension=function(c){return _.b(c,G2O)};
kW.prototype.JSC$12990_buildRequest=function(c,f,d){f.commentText&&(c.commentText=_.xC(f.commentText));d.comment_text&&(c.commentText=d.comment_text);c.updateCommentParams=f.updateCommentParams};
_.ci.Object.defineProperties(kW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O9=function(){};
_.K(O9,BL);O9.prototype.getApiPaths=function(){return J23};
O9.prototype.getExtension=function(c){return _.b(c,aHu)};
O9.prototype.JSC$12990_buildRequest=function(c,f){f.settings&&(c.settings=f.settings)};var lD=function(){};
_.K(lD,BL);lD.prototype.getApiPaths=function(){return XA_};
lD.prototype.getExtension=function(c){return _.b(c,OFK)};
lD.prototype.JSC$12990_buildRequest=function(c,f){f.channelCreationToken&&(c.channelCreationToken=f.channelCreationToken);f.source&&(c.source=f.source)};var s9=function(){};
_.K(s9,BL);s9.prototype.getApiPaths=function(){return Axu};
s9.prototype.getExtension=function(c){return _.b(c,B7v)};
s9.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;if(d.name&&(d.given_name||d.family_name))c=new _.KD("channel creation cannot set both GAIA and YouTube names",f),_.VO(c);else{if(f.zeroStepChannelCreationParams){if(!d.comment_text){c=new _.KD("zero_step_create_comment_params but no zero_step_texts",f);_.VO(c);return}c.zeroStepChannelCreationParams=f.zeroStepChannelCreationParams;c.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(c.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
d.comment_text,d.botguard_response&&(c.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=d.botguard_response))}c.channelCreationToken=f.channelCreationToken;d.given_name&&(c.givenName=d.given_name);d.family_name&&(c.familyName=d.family_name);f.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(c.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(d.name||d.handle||d.avatar_url||d.encryptedBlobId||d.isNameChanged!==void 0||d.isHandleChanged!==void 0||d.isDefaultProfilePhoto!==
void 0||d.obakeImageSource)c.overrideChannelCreationParams={},d.name&&(c.overrideChannelCreationParams.name=d.name),d.handle&&(c.overrideChannelCreationParams.handle=d.handle),d.avatar_url&&(c.overrideChannelCreationParams.avatarUrl=d.avatar_url),d.encryptedBlobId&&(c.overrideChannelCreationParams.blobEncryptionId=d.encryptedBlobId),d.enableIdentityForAllChannelCreationDialog&&(d.encryptedBlobId?c.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
d.isDefaultProfilePhoto!==void 0&&(c.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=d.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),d.isNameChanged!==void 0&&(c.overrideChannelCreationParams.identityForAllChannelCreationNameTag=d.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),d.isHandleChanged!==
void 0&&(c.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=d.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),d.obakeImageSource&&(c.overrideChannelCreationParams.obakeImageSourceType=d.obakeImageSource))}};var Bp=function(){};
_.K(Bp,BL);Bp.prototype.getApiPaths=function(c){return(c=this.getExtension(c))&&c.status==="DISLIKE"?Q0T:c&&c.status==="INDIFFERENT"?sQ_:fb3};
Bp.prototype.getExtension=function(c){return _.b(c,_.e4)};
Bp.prototype.JSC$12990_buildRequest=function(c,f){f.target&&(c.target=f.target);if(f=this.getParams(f))c.params=f};
Bp.prototype.getParams=function(c){switch(c==null?void 0:c.status){case "DISLIKE":return c.dislikeParams;case "INDIFFERENT":return c.removeLikeParams;default:return c==null?void 0:c.likeParams}};var iD=function(){};
_.K(iD,BL);iD.prototype.getApiPaths=function(){return bmy};
iD.prototype.getExtension=function(c){return _.b(c,MY_)};
iD.prototype.JSC$12990_buildRequest=function(c,f){f.settingItemId&&(c.settingItemId=f.settingItemId);f.stringValue!=null&&f.stringValue!==void 0?c.newValue={stringValue:f.stringValue}:f.intValue?c.newValue={intValue:f.intValue}:f.boolValue!==null&&f.boolValue!==void 0?c.newValue={boolValue:f.boolValue}:(c=new _.KD("Unknown value type for SetSettingEndpoint.",f),_.VO(c))};var T$=function(){};
_.K(T$,BL);T$.prototype.getApiPaths=function(){return EQ_};
T$.prototype.getExtension=function(c){return _.b(c,b5j)||void 0};
T$.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.channelIds&&(c.channelIds=f.channelIds);f.siloName&&(c.siloName=f.siloName);f.params&&(c.params=f.params);d.botguardResponse&&(c.botguardResponse=d.botguardResponse);d.feature&&(c.clientFeature=d.feature)};
_.ci.Object.defineProperties(T$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var m7=function(){};
_.K(m7,BL);m7.prototype.getApiPaths=function(){return $eu};
m7.prototype.getExtension=function(c){return _.b(c,ruH)||void 0};
m7.prototype.JSC$12990_buildRequest=function(c,f){f.channelIds&&(c.channelIds=f.channelIds);f.siloName&&(c.siloName=f.siloName);f.params&&(c.params=f.params)};
_.ci.Object.defineProperties(m7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Hp=function(c){this.shareClientParamsProvider=c};
_.K(Hp,BL);Hp.prototype.getApiPaths=function(){return qEe};
Hp.prototype.getExtension=function(c){return _.b(c,XK_)||_.b(c,_.u$o)||_.b(c,VgH)};
Hp.prototype.JSC$12990_buildRequest=function(c,f){f.serializedShareEntity&&(c.serializedSharedEntity=f.serializedShareEntity);if(f.clientParamIdentifier){var d;if((d=this.shareClientParamsProvider)==null?0:d.clientParams.has(f.clientParamIdentifier)){d=this.shareClientParamsProvider;f=f.clientParamIdentifier;var q=d.clientParams.get(f);q&&d.clientParams.delete(f);c.clientParams=q}}};
Hp[dE]=[jB3];var A0=function(){};
_.K(A0,BL);A0.prototype.getApiPaths=function(){return C2O};
A0.prototype.getExtension=function(c){return _.b(c,wf_)};
A0.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var YW=function(){};
_.K(YW,BL);YW.prototype.getApiPaths=function(){return Siy};
YW.prototype.getExtension=function(c){return _.b(c,ulK)};
YW.prototype.JSC$12990_buildRequest=function(c,f){f.dismissal&&(c.items=[f.dismissal])};
_.ci.Object.defineProperties(YW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FP=function(){};
_.K(FP,BL);FP.prototype.getApiPaths=function(){return GtH};
FP.prototype.getExtension=function(c){return _.b(c,_.Xb)||void 0};
FP.prototype.JSC$12990_buildRequest=function(c,f,d){c.feedbackTokens=[];f.feedbackToken&&c.feedbackTokens.push(f.feedbackToken);if(f=f.cpn||d.cpn)c.feedbackContext={cpn:f};c.isFeedbackTokenUnencrypted=!!d.is_feedback_token_unencrypted;c.shouldMerge=!1;d.extra_feedback_tokens&&(c.shouldMerge=!0,c.feedbackTokens=c.feedbackTokens.concat(d.extra_feedback_tokens))};
_.ci.Object.defineProperties(FP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var t0=function(){};
_.K(t0,BL);t0.prototype.getApiPaths=function(){return GtH};
t0.prototype.getExtension=function(c){return _.b(c,_.Ti)};
t0.prototype.JSC$12990_buildRequest=function(c,f,d){d.feedback_tokens&&(c.feedbackTokens=d.feedback_tokens,c.shouldMerge=!0)};
_.ci.Object.defineProperties(t0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bD=function(){};
_.K(bD,BL);bD.prototype.getApiPaths=function(){return GtH};
bD.prototype.getExtension=function(c){return _.b(c,q$l)};
bD.prototype.JSC$12990_buildRequest=function(c,f){f.undoToken&&(c.feedbackTokens=[f.undoToken]);f.isUndoTokenUnencrypted&&(c.isFeedbackTokenUnencrypted=f.isUndoTokenUnencrypted)};
_.ci.Object.defineProperties(bD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KP=function(){};
_.K(KP,BL);KP.prototype.getApiPaths=function(){return vQK};
KP.prototype.getExtension=function(c){return _.b(c,ako)};
KP.prototype.JSC$12990_buildRequest=function(c,f){f.nextEndpoint&&_.b(f.nextEndpoint,_.Ib)?c.nextEndpoint={urlEndpoint:_.b(f.nextEndpoint,_.Ib)}:f.nextEndpoint&&_.b(f.nextEndpoint,_.pe)&&(c.nextEndpoint={watchEndpoint:_.b(f.nextEndpoint,_.pe)});f.setRacy&&(c.setRacy=f.setRacy);f.setControvercy&&(c.setControvercy=f.setControvercy)};var E9=function(c){this.JSC$17736_storeWithEntities=c};
_.K(E9,BL);E9.prototype.getApiPaths=function(){return ztr};
E9.prototype.getExtension=function(c){return _.b(c,q4o)};
E9.prototype.JSC$12990_buildRequest=function(c,f){f.flowId&&(c.flowId=f.flowId);f.targetId&&(c.targetId=f.targetId);f.continuation&&(c.continuation=f.continuation);var d=f.flowStateEntityKey;if(f.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&d&&this.JSC$17736_storeWithEntities){var q;if(f=(q=this.JSC$17736_storeWithEntities.getState())==null?void 0:q.entities)if(q=_.kC(d).entityType,q=_.Bb(f,q,d))c.flowState=q,c.flowStateEntityKey=d}};
_.ci.Object.defineProperties(E9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
E9[dE]=[Cp];var GYp=function(){};
_.K(GYp,BL);_.r=GYp.prototype;_.r.getApiPaths=function(){return oqO};
_.r.JSC$12997_getStoreKey=function(){return _.Uc("guide")};
_.r.getRequestConfig=function(){var c=this.JSC$12997_getStoreKey(),f;c&&(f={storeStrategy:{storeKey:c}});return f};
_.r.isNavigationCommand=function(){return!0};
_.r.getExtension=function(c){return _.b(c,_.Ti)};
_.r.JSC$12990_buildRequest=function(c){c.fetchLiveState=!0};var nP=function(){};
_.K(nP,BL);nP.prototype.getApiPaths=function(){return lsj};
nP.prototype.getExtension=function(c){return _.b(c,Pqy)};
nP.prototype.JSC$12990_buildRequest=function(){};var $W=function(){};
_.K($W,BL);$W.prototype.getApiPaths=function(){return s0o};
$W.prototype.getExtension=function(c){return _.b(c,R1H)};
$W.prototype.JSC$12990_buildRequest=function(){};var QP=function(){};
_.K(QP,BL);QP.prototype.getApiPaths=function(){return rx_};
QP.prototype.getExtension=function(c){return _.b(c,_.Pr)};
QP.prototype.JSC$12990_buildRequest=function(c,f){f.token&&(c.continuation=f.token);var d,q;c==null||(d=c.context)==null||(q=d.user)==null||delete q.onBehalfOfUser};
QP.prototype.getRequestConfig=function(c){var f={},d;if(((d=this.getExtension(c))==null?void 0:d.sessionIndex)!==void 0){var q;f={authStrategy:{sessionIndex:(q=this.getExtension(c))==null?void 0:q.sessionIndex}}}return f};var Sa=function(){};
_.K(Sa,BL);Sa.prototype.JSC$12990_getRequest=function(c){var f=this.getExtension(c),d=c="";if(f==null?0:f.popup)c="true";if(f==null?0:f.disableSignout)d="true";f={};return{input:"/getAccountSwitcherEndpoint",requestShell:RS("/getAccountSwitcherEndpoint","GET",(f["X-YouTube-Delegation-Context"]=_.hk("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),f["X-YouTube-Account-Switcher-Popup"]=c,f["X-YouTube-Account-Switcher-Disable-Signout"]=d,f)),innerTubeRequest:{}}};
Sa.prototype.getApiPaths=function(){return[]};
Sa.prototype.getExtension=function(c){return _.b(c,_.JyN)};
Sa.prototype.JSC$12990_buildRequest=function(){};var LP=function(){};
_.K(LP,BL);LP.prototype.JSC$12990_getRequest=function(c){var f="/cross_account_channel_transfer";(c=this.getExtension(c))&&(f=m9e(f,{target_session:c.targetSessionIndex,source_rapt:c.sourceRapt,rapt:c.targetRapt}));return{input:f,requestShell:RS(f,"GET"),innerTubeRequest:{}}};
LP.prototype.getApiPaths=function(){return[]};
LP.prototype.getExtension=function(c){return _.b(c,Lb3)};
LP.prototype.JSC$12990_buildRequest=function(){};var z$=function(){};
_.K(z$,BL);z$.prototype.getApiPaths=function(){return Jxv};
z$.prototype.isNavigationCommand=function(){return!0};
z$.prototype.getExtension=function(c){return _.b(c,_.Ti)};
z$.prototype.JSC$12990_buildRequest=function(c){var f=_.Ft().get("gsml","");f&&(c.safetyModeLockerObfuscatedGaiaId=f);c.userInterfaceTheme=_.LX(!0);_.zX()?c.deviceTheme="DEVICE_THEME_SELECTED":_.YjN()?c.deviceTheme="DEVICE_THEME_SUPPORTED":c.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var J0=function(){};
_.K(J0,BL);J0.prototype.getApiPaths=function(){return rx_};
J0.prototype.getExtension=function(c){return _.b(c,z8_)};
J0.prototype.JSC$12990_buildRequest=function(c,f){if(f&&f.requestType&&(c.requestType=f.requestType,f.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||f.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var d=f.nextUrl;d&&(_.AQP(d)||cq(d))&&(c.nextNavendpoint={urlEndpoint:{url:d}})}f&&f.channelSwitcherQuery&&(c.channelSwitcherQuery=f.channelSwitcherQuery);f&&f.triggerChannelCreation&&(c.triggerChannelCreation=f.triggerChannelCreation);var q;if(f==null?0:(q=f.contentOwnerConfig)==
null?0:q.externalContentOwnerId)c.contentOwnerConfig=f.contentOwnerConfig;c.callCircumstance=f&&f.requestType&&f.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Z,M;f=c==null?void 0:(Z=c.context)==null?void 0:(M=Z.user)==null?void 0:M.onBehalfOfUser;if(f!==void 0){c.obfuscatedSelectedGaiaId=f;var g,O;c==null||(g=c.context)==null||(O=g.user)==null||delete O.onBehalfOfUser}var l,m;if(Z=c==null?void 0:(l=c.context)==null?void 0:(m=l.user)==null?
void 0:m.serializedDelegationContext)c.selectedSerializedDelegationContext=Z};var ad=function(){};
_.K(ad,BL);ad.prototype.getApiPaths=function(){return gqH};
ad.prototype.getExtension=function(c){return _.b(c,v$y)};
ad.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var VP=function(){};
_.K(VP,BL);VP.prototype.getApiPaths=function(){return HgH};
VP.prototype.getExtension=function(c){return _.b(c,_.oXy)};
VP.prototype.JSC$12990_buildRequest=function(c,f){if(f=f.createBroadcastRequest)c.useMasks=f.useMasks,c.broadcastType=f.broadcastType,c.broadcastSource=f.broadcastSource,c.broadcastMetadata=f.broadcastMetadata,c.broadcastMetadataMask=f.broadcastMetadataMask,c.videoMetadata=f.videoMetadata,c.videoMetadataMask=f.videoMetadataMask,c.liveChatSettingsUpdate=f.liveChatSettingsUpdate,c.liveChatSettingsUpdateMask=f.liveChatSettingsUpdateMask,c.cloneVideoId=f.cloneVideoId,c.cloneWithOverrides=f.cloneWithOverrides,
c.targetEntity=f.targetEntity,c.scheduledRedirectMetadata=f.scheduledRedirectMetadata};var XP=function(){};
_.K(XP,BL);XP.prototype.getApiPaths=function(){return tt3};
XP.prototype.getExtension=function(c){return _.b(c,InK)};
XP.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.params&&(c.params=f.params);d.questionText&&(c.questionText=d.questionText);d.optionText&&d.optionText.length>0&&(c.optionText=d.optionText)};var uD=function(){};
_.K(uD,BL);uD.prototype.getApiPaths=function(){return Eqy};
uD.prototype.getExtension=function(c){return _.b(c,eOo)};
uD.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var vp=function(){};
_.K(vp,BL);vp.prototype.getApiPaths=function(){return vqj};
vp.prototype.getExtension=function(c){return _.b(c,waT)};
vp.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var h0=function(){};
_.K(h0,BL);h0.prototype.getApiPaths=function(){return wAH};
h0.prototype.getExtension=function(c){return _.b(c,yW_)};
h0.prototype.JSC$12990_buildRequest=function(c,f,d){f.params&&(c.params=f.params);f.continuation&&(c.continuation=f.continuation);d.currentPlayerState&&d.currentPlayerState.playerOffsetMs&&(c.currentPlayerState={playerOffsetMs:d.currentPlayerState.playerOffsetMs.toString()})};var ww=function(){};
_.K(ww,BL);ww.prototype.getApiPaths=function(){return yxy};
ww.prototype.getExtension=function(c){return _.b(c,hOj)};
ww.prototype.JSC$12990_buildRequest=function(c,f,d){f.params&&(c.params=f.params);d.continuation&&(c.continuation=d.continuation);"hidden"in d&&(c.webClientInfo={isDocumentHidden:d.hidden});d.isInvalidationTimeoutRequest&&(c.isInvalidationTimeoutRequest=d.isInvalidationTimeoutRequest);d.invalidationPayload&&(f=v33(_.pr(fD(d.invalidationPayload))),c.invalidationPayloadLastPublishAtUsec=Xv(f,2));d.reloadActionPanel&&(c.reloadActionPanel=d.reloadActionPanel);d.fullReload&&(c.fullReload=d.fullReload);
d.currentPlayerState&&(c.currentPlayerState=d.currentPlayerState)};var yP=function(){};
_.K(yP,BL);yP.prototype.getApiPaths=function(){return der};
yP.prototype.getExtension=function(c){return _.b(c,NEo)};
yP.prototype.JSC$12990_buildRequest=function(c,f){c.params=f.params};var Wp=function(){};
_.K(Wp,BL);Wp.prototype.getApiPaths=function(){return ht3};
Wp.prototype.getExtension=function(c){return _.b(c,cBH)};
Wp.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var DN=function(){};
_.K(DN,BL);DN.prototype.getApiPaths=function(){return WRr};
DN.prototype.getExtension=function(c){return _.b(c,fjy)};
DN.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var ea=function(){};
_.K(ea,BL);ea.prototype.getApiPaths=function(){return jQv};
ea.prototype.getExtension=function(c){return _.b(c,PBT)};
ea.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var NJ=function(){};
_.K(NJ,BL);NJ.prototype.getApiPaths=function(){return Zmy};
NJ.prototype.getExtension=function(c){return _.b(c,ROO)};
NJ.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var G$=function(){};
_.K(G$,BL);G$.prototype.getApiPaths=function(){return B9v};
G$.prototype.getExtension=function(c){return _.b(c,ysr)};
G$.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var cF=function(){};
_.K(cF,BL);cF.prototype.getApiPaths=function(){return FDv};
cF.prototype.getExtension=function(c){return _.b(c,_.U_r)};
cF.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.params&&(c.params=f.params);d.client_message_id&&(c.clientMessageId=d.client_message_id);d.recaptcha_token&&(c.recaptchaToken=d.recaptcha_token);d.rich_message&&d.rich_message.text_segments?(f=d.rich_message.text_segments.map(function(q){var Z={};q.text&&(Z.text=q.text);q.emoji_id&&(Z.emojiId=q.emoji_id);return Z}),c.richMessage={textSegments:f}):d.message&&(c.message=d.message);
d.currentPlayerState&&(c.currentPlayerState=d.currentPlayerState)};var fk=function(){};
_.K(fk,BL);fk.prototype.getApiPaths=function(){return tD_};
fk.prototype.getExtension=function(c){return _.b(c,pa_)};
fk.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var dm=function(){};
_.K(dm,BL);dm.prototype.getApiPaths=function(){return nQ3};
dm.prototype.getExtension=function(c){return _.b(c,o3v)};
dm.prototype.JSC$12990_buildRequest=function(c,f,d){f.isUserInitiated&&(c.isUserInitiated=f.isUserInitiated);f.initiationSource&&(c.initiationSource=f.initiationSource);d.locationInfo&&(c.context.client.locationInfo=d.locationInfo)};var jH=function(){};
_.K(jH,BL);jH.prototype.getApiPaths=function(){return qjy};
jH.prototype.getExtension=function(c){return _.b(c,Gyj)};
jH.prototype.JSC$12990_buildRequest=function(c,f,d){f.metadataUpdateRequest&&(f=f.metadataUpdateRequest,c.encryptedVideoId=f.encryptedVideoId,f.liveChat&&(f=f.liveChat,c.liveChat||(c.liveChat={}),f.performAsExternalChannelId&&(c.liveChat.performAsExternalChannelId=f.performAsExternalChannelId),f.source&&(c.liveChat.source=f.source)));var q;if(d==null?0:(q=d.liveChat)==null?0:q.liveChatSettings)c.liveChat||(c.liveChat={}),d=d.liveChat.liveChatSettings,c.liveChat.newLiveChatSettings=d,c.liveChat.newLiveChatSettingsMask||
(c.liveChat.newLiveChatSettingsMask={}),d.emojiReactionSet&&(c.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var qm=function(){};
_.K(qm,BL);qm.prototype.getApiPaths=function(){return XP3};
qm.prototype.getExtension=function(c){return _.b(c,_.Cj_)};
qm.prototype.JSC$12990_buildRequest=function(c,f,d){d.continuation?c.continuation=d.continuation:f.videoId&&(c.videoId=f.videoId);d.clientParams&&(c.clientParams=d.clientParams)};var Zt=function(){};
_.K(Zt,BL);Zt.prototype.getApiPaths=function(){return DsF};
Zt.prototype.getExtension=function(c){return _.b(c,_.vQ)};
Zt.prototype.JSC$12990_buildRequest=function(c,f){c.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";c.fetchCommentsParams={};f.videoId&&(c.fetchCommentsParams.encryptedVideoId=f.videoId);f.postId&&(c.fetchCommentsParams.postId=f.postId);f.externalChannelId&&(c.fetchCommentsParams.externalChannelId=f.externalChannelId);f.linkedCommentId&&(c.fetchCommentsParams.linkedCommentId=f.linkedCommentId);(0,_.zV.isEmpty)(c.fetchCommentsParams)&&delete c.fetchCommentsParams};var Mm=function(){};
_.K(Mm,BL);Mm.prototype.getApiPaths=function(){return G6};
Mm.prototype.JSC$12990_buildRequest=function(c){c.browseId="FEnotifications_inbox"};
Mm.prototype.getExtension=function(c){return _.b(c,_.Ti)};var rm=function(){};
_.K(rm,BL);rm.prototype.getApiPaths=function(){return DsF};
rm.prototype.JSC$12990_buildRequest=function(c,f){f.signal==="GET_NOTIFICATIONS_MENU"&&(c.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");f.ctoken&&(c.ctoken=f.ctoken)};
var c3i=function(){};
_.K(c3i,rm);c3i.prototype.getExtension=function(c){return _.b(c,_.Ti)};
var fOS=function(){};
_.K(fOS,rm);fOS.prototype.getExtension=function(c){return _.b(c,L6_)};var Ck=function(){};
_.K(Ck,BL);Ck.prototype.getApiPaths=function(){return UsT};
Ck.prototype.getExtension=function(c){return _.b(c,_.Ti)};
Ck.prototype.JSC$12990_buildRequest=function(){};var gm=function(){};
_.K(gm,BL);gm.prototype.getApiPaths=function(){return MDF};
gm.prototype.getExtension=function(c){return _.b(c,jXK)||void 0};
gm.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params);f.secondaryParams&&(c.secondaryParams=f.secondaryParams)};var kB=function(){};
_.K(kB,BL);kB.prototype.getApiPaths=function(){return r2r};
kB.prototype.getExtension=function(c){return _.b(c,hio)};
kB.prototype.JSC$12990_buildRequest=function(c,f){f.undo&&(c.undo=f.undo);f.serializedOptOut&&(c.serializedOptOut=f.serializedOptOut);f.serializedRecordInteractionsRequest&&(c.serializedRecordInteractionsRequest=f.serializedRecordInteractionsRequest)};var OY=function(){};
_.K(OY,BL);OY.prototype.getApiPaths=function(){return k93};
OY.prototype.getExtension=function(c){return _.b(c,wKF)};
OY.prototype.JSC$12990_buildRequest=function(c,f){f.serializedInteractionsRequest&&(c.serializedRecordNotificationInteractionsRequest=f.serializedInteractionsRequest)};var lN=function(){};
_.K(lN,BL);lN.prototype.getApiPaths=function(){return Zbk};
lN.prototype.getExtension=function(c){return _.b(c,yye)};
lN.prototype.JSC$12990_buildRequest=function(c,f,d){f=f===void 0?{}:f;d=d===void 0?{}:d;f.videoId?c.videoId=f.videoId:f.playlistId&&(c.playlistId=f.playlistId);var q,Z=(q=f.offlineWebClientEligibility)!=null?q:d.offlineWebClientEligibility;Z&&(c.offlineWebClientEligibility=Z);var M;if(q=(M=f.preferredFormatType)!=null?M:d.preferredFormatType)c.preferredFormatType=q;var g;if(M=(g=f.lastOfflineQualitySettingsSavedMs)!=null?g:d.lastOfflineQualitySettingsSavedMs)c.lastOfflineQualitySettingsSavedMs=M;
f.params&&(c.params=f.params)};var sY=function(){};
_.K(sY,BL);sY.prototype.getApiPaths=function(){return f5};
sY.prototype.getExtension=function(c){return _.b(c,_.Pr)};
sY.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.token&&(c.continuation=f.token);d.formData&&(c.formData=d.formData)};var BF=function(){};
_.K(BF,BL);BF.prototype.getApiPaths=function(){return f5};
BF.prototype.getExtension=function(c){return _.b(c,P0j)};
BF.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;c.continuation=d.continuation};var iN=function(){};
_.K(iN,BL);iN.prototype.getApiPaths=function(){return f5};
iN.prototype.getExtension=function(c){return _.b(c,_.VN)};
iN.prototype.JSC$12990_buildRequest=function(c,f){var d,q=f.panelIdentifier||((d=f.identifier)==null?void 0:d.tag);q&&(c.panelId=q);var Z;if((Z=f.globalConfiguration)==null?0:Z.params){var M;c.params=(M=f.globalConfiguration)==null?void 0:M.params}};
_.ci.Object.defineProperties(iN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TI=function(){};
_.K(TI,BL);TI.prototype.getApiPaths=function(){return f5};
TI.prototype.getExtension=function(c){return _.b(c,n23)};
TI.prototype.JSC$12990_buildRequest=function(c,f){f.panelLoadingStrategy&&dyN(c,f.panelLoadingStrategy)};var mO=function(){};
_.K(mO,BL);mO.prototype.getApiPaths=function(){return f5};
mO.prototype.getExtension=function(c){return _.b(c,xA3)};
mO.prototype.JSC$12990_buildRequest=function(c,f){f.loadingStrategy&&dyN(c,f.loadingStrategy)};var HF=function(){};
_.K(HF,BL);HF.prototype.getApiPaths=function(){return f5};
HF.prototype.getExtension=function(c){return _.b(c,_.na)};
HF.prototype.JSC$12990_buildRequest=function(c,f){f.panelLoadingStrategy&&dyN(c,f.panelLoadingStrategy)};var Ay=function(){};
_.K(Ay,BL);Ay.prototype.getApiPaths=function(){return f5};
Ay.prototype.getExtension=function(c){return _.b(c,o$u)};
Ay.prototype.JSC$12990_buildRequest=function(c,f){var d,q=(d=f.contentSourcePanelIdentifier)==null?void 0:d.tag;q&&(c.panelId=q);var Z;if((Z=f.globalConfiguration)==null?0:Z.params){var M;c.params=(M=f.globalConfiguration)==null?void 0:M.params}};var YB=function(){};
_.K(YB,BL);YB.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
YB.prototype.getExtension=function(c){return _.b(c,G0F)};
YB.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var FU=function(){};
_.K(FU,BL);FU.prototype.getApiPaths=function(){return VD_};
FU.prototype.getExtension=function(c){return _.b(c,dBy)};
FU.prototype.JSC$12990_buildRequest=function(c,f){f.externalChannelId&&(c.externalChannelId=f.externalChannelId);f.superChatAction&&(c.superChatAction=f.superChatAction);f.superStickersAction&&(c.superStickersAction=f.superStickersAction)};var ty=function(){};
_.K(ty,BL);ty.prototype.getApiPaths=function(){return asH};
ty.prototype.getExtension=function(c){return _.b(c,Ij3)||_.b(c,Dmk)};
ty.prototype.JSC$12990_buildRequest=function(c,f){f.videoIds?c.videoIds=f.videoIds:f.videoId&&(c.videoIds=[f.videoId]);f.playlistId&&(c.playlistId=f.playlistId);f.params&&(c.params=f.params);c.excludeWatchLater=!1};var bN=function(){};
_.K(bN,BL);bN.prototype.getApiPaths=function(){return bgH};
bN.prototype.getExtension=function(c){return _.b(c,_.NB)};
bN.prototype.JSC$12990_buildRequest=function(c,f,d){d.create_playlist_title?c.title=d.create_playlist_title:f.title&&(c.title=f.title);if(d.create_playlist_privacy_status&&typeof d.create_playlist_privacy_status==="number"){a:{var q=d.create_playlist_privacy_status;if(q!==0){if(q===1){q="PUBLIC";break a}if(q===2){q="UNLISTED";break a}}q="PRIVATE"}c.privacyStatus=q}else f.privacyStatus&&(c.privacyStatus=f.privacyStatus);d.create_playlist_description&&(c.description=d.create_playlist_description);f.videoIds&&
(c.videoIds=f.videoIds);f.params&&(c.params=f.params);f.sourcePlaylistId&&(c.sourcePlaylistId=f.sourcePlaylistId)};var Kk=function(){};
_.K(Kk,BL);Kk.prototype.getApiPaths=function(){return nq_};
Kk.prototype.getExtension=function(c){return _.b(c,fKH)};
Kk.prototype.JSC$12990_buildRequest=function(c,f){c.playlistId=f.playlistId};var EY=function(){};
_.K(EY,BL);EY.prototype.getApiPaths=function(){return et_};
EY.prototype.getExtension=function(c){return _.b(c,JsF)};
EY.prototype.JSC$12990_buildRequest=function(c,f){f.playlistId&&(c.playlistId=f.playlistId);f.params&&(c.params=f.params)};var nk=function(){};
_.K(nk,BL);nk.prototype.getApiPaths=function(){return gQ3};
nk.prototype.getExtension=function(c){return _.b(c,_.hB)||void 0};
nk.prototype.JSC$12990_buildRequest=function(c,f){f.actions&&(c.actions=f.actions);f.params&&(c.params=f.params);f.playlistId&&(c.playlistId=f.playlistId)};var $B=function(){};
_.K($B,BL);_.r=$B.prototype;_.r.getApiPaths=function(){return Om_};
_.r.getExtension=function(c){return _.b(c,_.EO)};
_.r.JSC$12990_buildRequest=function(c,f){f.videoId&&(c.playerRequest={videoId:f.videoId},f.playerParams&&(c.playerRequest.params=f.playerParams),f.racyCheckOk&&(c.playerRequest.racyCheckOk=!!f.racyCheckOk),f.contentCheckOk&&(c.playerRequest.contentCheckOk=!!f.contentCheckOk));f.params&&(c.params=f.params);f.inputType&&(c.inputType=f.inputType);c.disablePlayerResponse=!0};
_.r.getRequestConfig=function(c){var f;(c=this.JSC$12997_getStoreKey(c))&&(f={storeStrategy:{storeKey:c}});_.F("web_log_reels_ticks")&&(f=f||{},f.requestTick="r_wrs",f.responseTick="r_wrr");return f};
_.r.JSC$12997_getStoreKey=function(c){c=this.getExtension(c);if(_.F("shorts_controller_retrieve_seedless_sequence_v2")){if((c==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Uc("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.F("web_shorts_prefetch_service_enabled")&&c!=null&&c.videoId){var f={videoId:c.videoId};c.params&&(f.params=c.params);return _.Uc("reel_item_watch",f)}};var Qi=function(){};
_.K(Qi,BL);_.r=Qi.prototype;_.r.getApiPaths=function(){return lbT};
_.r.getExtension=function(c){return _.b(c,_.EO)};
_.r.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;c.sequenceParams=f.sequenceParams;var q;((q=d)==null?0:q.contentPlaybackContext)&&_.F("web_shorts_prefetch_service_enabled")&&(c.playbackContext={contentPlaybackContext:d.contentPlaybackContext})};
_.r.JSC$12997_getStoreKey=function(c){if(_.F("web_enable_delay_shorts_sequence_call")||_.F("shorts_controller_retrieve_seedless_sequence_v2"))if(c=this.getExtension(c),c==null?0:c.sequenceParams)return _.Uc("reel_watch_sequence",{sequenceParams:c.sequenceParams})};
_.r.getRequestConfig=function(c){c=this.JSC$12997_getStoreKey(c);var f;c&&(f={storeStrategy:{storeKey:c}});_.F("reel_watch_sequence_request_log_ticks")&&(f=f||{},f.requestTick="r_wsrs",f.responseTick="r_wsrr",f.processorTick="r_wsrp");return f};
var SH=function(){};
_.K(SH,BL);SH.prototype.getApiPaths=function(){return lbT};
SH.prototype.getExtension=function(c){return _.b(c,_.Pr)};
SH.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.token&&(c.continuation=f.token);var q;((q=d)==null?0:q.contentPlaybackContext)&&_.F("web_shorts_prefetch_service_enabled")&&(c.playbackContext={contentPlaybackContext:d.contentPlaybackContext})};
SH.prototype.getRequestConfig=function(c){c=this.JSC$12997_getStoreKey(c);var f;c&&(f={storeStrategy:{storeKey:c}});_.F("reel_watch_sequence_request_log_ticks")&&(f=f||{},f.requestTick="r_wsrs",f.responseTick="r_wsrr",f.processorTick="r_wsrp");return f};var Lk=function(){};
_.K(Lk,BL);Lk.prototype.getApiPaths=function(){return LR_};
Lk.prototype.getExtension=function(c){return _.b(c,_.j$r)};
Lk.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.flagAction&&(c.action=f.flagAction);f.flagRequestType&&(c.flagRequestType=f.flagRequestType);f.additionalDetailCheckboxChecked&&(c.additionalDetailCheckboxChecked=f.additionalDetailCheckboxChecked);f.legalCheckboxChecked&&(c.legalCheckboxChecked=f.legalCheckboxChecked);f={};d.flag_issue_type!==void 0&&(f.issue=d.flag_issue_type);d.flag_affiliation!==void 0&&(f.affiliation=d.flag_affiliation);d.flag_full_name&&(f.fullName=d.flag_full_name);
Object.keys(f).length&&(c.legalReportDetails=f);if(d.flag_description||d.text)c.userComments=d.flag_description||d.text;f={};d.minutes!==void 0&&d.seconds!==void 0&&(f.minutes=d.minutes,f.seconds=d.seconds);d.vss_id&&(f.vssId=d.vss_id);Object.keys(f).length&&(c.videoReportDetails=f);f={};d.video_ids&&(f.videoIds=d.video_ids);d.impersonated_channel_url&&(f.impersonatedChannelUrl=d.impersonated_channel_url);Object.keys(f).length&&(c.channelAbuseReportDetails=f)};
_.ci.Object.defineProperties(Lk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zI=function(){};
_.K(zI,BL);zI.prototype.getApiPaths=function(){return uWo};
zI.prototype.getExtension=function(c){return _.b(c,Q$_)};
zI.prototype.JSC$12990_buildRequest=function(c,f){f.blockedForKidsContent&&(c.blockedForKidsContent=f.blockedForKidsContent)};var Jy=function(){};
_.K(Jy,BL);Jy.prototype.getApiPaths=function(){return imo};
Jy.prototype.getExtension=function(c){return _.b(c,WOG)};
Jy.prototype.JSC$12990_buildRequest=function(c,f,d){c.params=f.params;d.impersonated_channel_url&&(c.impersonatedChannelUrl=d.impersonated_channel_url)};var ay=function(){};
_.K(ay,BL);ay.prototype.getApiPaths=function(){return c2u};
ay.prototype.getExtension=function(c){return _.b(c,_.S4K)};
ay.prototype.JSC$12990_buildRequest=function(c,f){f.items&&(c.items=f.items);f.kidGaiaId&&(c.kidGaiaId=f.kidGaiaId)};var Vi=function(){};
_.K(Vi,BL);Vi.prototype.getApiPaths=function(){return VtH};
Vi.prototype.getExtension=function(c){return _.b(c,_.e1K)};
Vi.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params);f.targetId&&(c.targetId=f.targetId)};var XU=function(){};
_.K(XU,BL);XU.prototype.getApiPaths=function(){return A2o};
XU.prototype.getExtension=function(c){return _.b(c,zIH)};
XU.prototype.JSC$12990_buildRequest=function(c,f){f.externalVideoId&&(c.externalVideoId=f.externalVideoId);f.query&&(c.query=f.query);f.sourceTimelines&&(c.sourceTimelines=f.sourceTimelines)};var uN=function(){};
_.K(uN,BL);uN.prototype.getApiPaths=function(){return YjH};
uN.prototype.getExtension=function(c){return _.b(c,_.Pr)||void 0};
uN.prototype.JSC$12990_buildRequest=function(c,f){f.token&&(c.continuation=f.token)};
_.dHq=function(){};
_.K(_.dHq,BL);_.r=_.dHq.prototype;_.r.getApiPaths=function(){return YjH};
_.r.getExtension=function(c){return _.b(c,_.th)||void 0};
_.r.isNavigationCommand=function(){return!0};
_.r.JSC$12997_getStoreKey=function(c,f){f=f===void 0?{}:f;if(!f.disableCache&&(c=this.getExtension(c))&&c.query)return f={query:c.query},c.params&&(f.params=c.params),_.Uc("search",f)};
_.r.JSC$12990_buildRequest=function(c,f,d){f.query&&(c.query=f.query);f.params&&(c.params=f.params);if(!_.F("web_forward_suggest_stats_killswitch")){var q=_.b(f,E$_);q&&(c.suggestStats=q)}var Z;!_.F("kevlar_searchbox_stats_killswitch")&&((Z=d.tempData)==null?0:Z.gs_l)&&!_.b(f,E$_)&&(c.webSearchboxStatsUrl="/search?oq="+(d.tempData.oq||"")+"&gs_l="+d.tempData.gs_l);var M;if((M=d.tempData)==null?0:M.entityMid)f=c.suggestionSearchParams||{},f.entityMid=d.tempData.entityMid,c.suggestionSearchParams=f;
_.F("enable_desktop_vdcbg_components")&&(d=_.Ft().getFlag(186),c.inlineSettingStatus=d?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.r.getRequestConfig=function(c,f){f=f===void 0?{}:f;c=this.JSC$12997_getStoreKey(c,f);var d;c&&(d={storeStrategy:{storeKey:c}});_.F("web_log_search_ticks_ks")||(d=d||{},d.requestTick="sr_s",d.responseTick="sr_r");return d};var vF=function(){};
_.K(vF,BL);vF.prototype.getApiPaths=function(){return P2j};
vF.prototype.getExtension=function(c){return _.b(c,sX3)};
vF.prototype.JSC$12990_buildRequest=function(c,f){f.serializedGetSharingProviderDataParams&&(c.serializedGetSharingProviderDataParams=f.serializedGetSharingProviderDataParams)};var hy=function(){};
_.K(hy,BL);hy.prototype.getApiPaths=function(){return Rty};
hy.prototype.getExtension=function(c){return _.b(c,oG3)};
hy.prototype.JSC$12990_buildRequest=function(c,f){f.endpoint&&(c.endpoint=f.endpoint);f.action&&(c.action=f.action)};var wm=function(){};
_.K(wm,BL);wm.prototype.getApiPaths=function(){return $sK};
wm.prototype.getExtension=function(c){return _.b(c,dIr)};
wm.prototype.JSC$12990_buildRequest=function(c,f){c.videoId=f.videoId;f.scheduledRedirectMetadataSourceVideoId&&(c.scheduledRedirectMetadata={sourceVideoId:f.scheduledRedirectMetadataSourceVideoId})};var yi=function(){};
_.K(yi,BL);yi.prototype.getApiPaths=function(){return KDO};
yi.prototype.getExtension=function(c){return _.b(c,_.f$o)};
yi.prototype.JSC$12990_buildRequest=function(c,f){c.params=f.params;c.correctionText=f.correctionText};var WF=function(){};
_.K(WF,BL);WF.prototype.getApiPaths=function(){return d1l};
WF.prototype.getExtension=function(c){return _.b(c,_.JM_)};
WF.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params);c.searchQuery=f.searchQuery;c.languageCode=f.languageCode;c.kind=f.kind;c.name=f.name;c.externalVideoId=f.externalVideoId};var Dt=function(){};
_.K(Dt,BL);Dt.prototype.getApiPaths=function(){return wPO};
Dt.prototype.getExtension=function(c){return _.b(c,iyH)};
Dt.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.params=f.params)};var eH=function(c){this.JSC$18007_storeWithEntities=c};
_.K(eH,BL);eH.prototype.getApiPaths=function(){return Tt3};
eH.prototype.getExtension=function(c){return _.b(c,mjj)||_.b(c,ALK)};
eH.prototype.JSC$12990_buildRequest=function(c,f,d){d.client_data&&(c.clientData=d.client_data);if(f.commerceActionConfig){var q=f.commerceActionConfig;f=q.actionId;q=q.commerceActionParams;f&&(c.actionId=f);q&&(c.commerceActionParams=q)}else{var Z=f.actionId,M=f.commerceActionParams;d=f.entityKeys;Z&&(c.actionId=Z);M&&(c.commerceActionParams=M);var g;f=(q=this.JSC$18007_storeWithEntities)==null?void 0:(g=q.getState())==null?void 0:g.entities;if(d&&f){q=[];g=_.C(d);for(d=g.next();!d.done;d=g.next())if(Z=
d.value,d=_.kC(Z).entityType,Z=_.Bb(f,d,Z))M={},q.push((M[d]=Z,M));c.entityMutationPayloads=q}}};
eH.prototype.getRequestConfig=function(c){var f,d=(f=_.b(c,mjj))==null?void 0:f.requestSequenceType;if(d&&c.clickTrackingParams&&d!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:c.clickTrackingParams,sequenceType:d}}};
eH[dE]=[Cp];var Nm=function(){};
_.K(Nm,BL);Nm.prototype.getApiPaths=function(){return y2v};
Nm.prototype.getExtension=function(c){return _.b(c,_.vdv)};
Nm.prototype.JSC$12990_buildRequest=function(c,f){f.feedbackData&&(c.feedbackData=f.feedbackData);f.params&&(c.itemParams=f.params)};
_.ci.Object.defineProperties(Nm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Iy=function(){};
_.K(Iy,BL);Iy.prototype.getApiPaths=function(){return WDK};
Iy.prototype.getExtension=function(c){return _.b(c,hx3)};
Iy.prototype.JSC$12990_buildRequest=function(c,f,d){d.payments_payload&&(c.paymentsPayload=d.payments_payload);d.offer_params&&(c.offerParams=d.offer_params);f.transactionParams&&(c.transactionParams=f.transactionParams)};var PF=function(){};
_.K(PF,BL);PF.prototype.getApiPaths=function(){return Dev};
PF.prototype.getExtension=function(c){return _.b(c,_.wxH)};
PF.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.buybucketParams&&(c.buybucketData={params:f.buybucketParams},f.stickerParams?c.buybucketData.stickerParams=f.stickerParams:(d.rich_chat_message?c.buybucketData.richChatMessage=d.rich_chat_message:d.chat_message_text&&(c.buybucketData.chatMessageText=d.chat_message_text),d.purchase_price_micros&&(c.buybucketData.purchasePriceMicros=d.purchase_price_micros.toString())));f.donationAmountMicros&&(c.tipAmountMicros=f.donationAmountMicros,
f.tipParams&&(c.tipParams=f.tipParams));f.offerParams&&(c.offerParams=f.offerParams);f.productData&&(c.productData=f.productData);f.transactionParams&&(c.transactionParams=f.transactionParams)};var Ry=function(){};
_.K(Ry,BL);Ry.prototype.getApiPaths=function(){return emT};
Ry.prototype.getExtension=function(c){return _.b(c,Dj_)};
Ry.prototype.JSC$12990_buildRequest=function(c,f){f.updateFopParams&&(c.updateFopParams=f.updateFopParams)};var UY=function(){};
_.K(UY,BL);UY.prototype.getApiPaths=function(){return N9K};
UY.prototype.getExtension=function(c){return _.b(c,_.qC)};
UY.prototype.JSC$12990_buildRequest=function(c,f){f.couponCode&&(c.couponCode=f.couponCode);f.params&&(c.itemParams=f.params)};var pk=function(){};
_.K(pk,BL);pk.prototype.getApiPaths=function(){return Ibj};
pk.prototype.getExtension=function(c){return _.b(c,_.Hyu)};
pk.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;f.params&&(c.params=f.params);d.ctk&&(c.clientToken=d.ctk)};var xB=function(c){this.JSC$18042_storeWithEntities=c};
_.K(xB,BL);xB.prototype.getApiPaths=function(){return P9u};
xB.prototype.getExtension=function(c){return _.b(c,_.PQ)};
xB.prototype.JSC$12990_buildRequest=function(c,f,d){d.purchase_price_micros&&(c.productData={pdgData:{purchasePriceMicros:d.purchase_price_micros.toString()}},d.rich_chat_message&&(c.productData.pdgData.richChatMessage=d.rich_chat_message),d.currency_code&&(c.productData.pdgData.currencyCode=d.currency_code));f.transactionParams&&(c.transactionParams=f.transactionParams);f.clientLocationContext&&(c.clientLocationContext=f.clientLocationContext);d.payments_payload&&(c.paymentsPayload=d.payments_payload);
d.funds_guarantee_callback_client_data&&(c.fundsGuaranteeCallbackClientData=d.funds_guarantee_callback_client_data);var q,Z;d=(q=this.JSC$18042_storeWithEntities)==null?void 0:(Z=q.getState())==null?void 0:Z.entities;if(f.entityKeys&&d){q=[];f=_.C(f.entityKeys);for(Z=f.next();!Z.done;Z=f.next()){var M=Z.value;Z=_.kC(M).entityType;if(M=_.Bb(d,Z,M)){var g={};q.push((g[Z]=M,g))}}c.entityMutationPayloads=q}};
xB[dE]=[Cp];var oy=function(){};
_.K(oy,BL);oy.prototype.getApiPaths=function(){return RmF};
oy.prototype.getExtension=function(c){return _.b(c,yLO)};
oy.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;d.backend_analytics&&(c.serializedBackendAnalyticsEvent=d.backend_analytics);f.offerParams&&(c.offerParams=f.offerParams)};var GI=function(){};
_.K(GI,BL);GI.prototype.getApiPaths=function(){return N9K};
GI.prototype.getExtension=function(c){return _.b(c,vNr)};
GI.prototype.JSC$12990_buildRequest=function(c,f){f.params&&(c.itemParams=f.params)};var cE=function(){};
_.K(cE,BL);cE.prototype.getApiPaths=function(){return UeF};
cE.prototype.getExtension=function(c){return _.b(c,_.KNj)};
cE.prototype.JSC$12990_buildRequest=function(c,f,d){d.resume_time_ms&&(c.resumeTimeMs=d.resume_time_ms);f.pauseParams&&(c.pauseParams=f.pauseParams)};var fB=function(){};
_.K(fB,BL);fB.prototype.getApiPaths=function(){return pPF};
fB.prototype.getExtension=function(c){return _.b(c,_.WNu)};
fB.prototype.JSC$12990_buildRequest=function(c,f,d){d=d===void 0?{}:d;d.c&&(c.redeemCode=d.c);d.rd&&(c.riskData=d.rd);d.ctk&&(c.clientToken=d.ctk)};var da=function(){};
_.K(da,BL);da.prototype.getApiPaths=function(){return xeo};
da.prototype.getExtension=function(c){return _.b(c,_.Ed3)};
da.prototype.JSC$12990_buildRequest=function(c,f){f.resumeParams&&(c.resumeParams=f.resumeParams)};var je=function(c,f){this.clientName=c;this.defaultExpirationDelayMs=f};
je.prototype.put=function(c,f){var d=this,q;return _.k(function(Z){q=Object.assign({},f.data);q.key=c;q.clientName=d.clientName;q.expireTimestampMs===void 0&&(q.expireTimestampMs=(Math.round((0,_.qR)())+d.defaultExpirationDelayMs).toString());return Z.return(d.putInternal(c,q))})};
je[dE]=[JJ,kYq];var jKp=function(){je.apply(this,arguments);this.JSC$18072_responseStore=new Map};
_.K(jKp,je);_.r=jKp.prototype;_.r.get=function(c){var f=this;return _.k(function(d){return d.return(i9(f,c))})};
_.r.putInternal=function(c,f){var d=this,q,Z,M;return _.k(function(g){q=d.defaultExpirationDelayMs;f.expireTimestampMs&&(q=Number(f.expireTimestampMs)-Math.round((0,_.qR)()),Z=_.rx("mweb_override_response_store_expiration_ms"),Z>0&&Z<q&&(q=Z));M=setTimeout(function(){d.remove(c)},q);
d.JSC$18072_responseStore.set(c,{entryData:f,timer:M});_.Fm(g)})};
_.r.remove=function(c){var f=this;return _.k(function(d){q3D(f,c);_.Fm(d)})};
_.r.removeAll=function(){var c=this;return _.k(function(f){c.JSC$18072_responseStore.forEach(function(d){clearTimeout(d.timer)});
c.JSC$18072_responseStore.clear();_.Fm(f)})};
_.r.has=function(c){return!!this.JSC$18072_responseStore.get(c)};
_.r.getKeys=function(){return this.JSC$18072_responseStore.keys()};
var i9=function(c,f){if(c=c.JSC$18072_responseStore.get(f))return new _.BP(c.entryData)},q3D=function(c,f){var d=c.JSC$18072_responseStore.get(f);
d&&(clearTimeout(d.timer),c.JSC$18072_responseStore.delete(f))};var jsN;var MbM=function(c,f,d){je.call(this,c,f);this.token=d};
_.K(MbM,je);_.r=MbM.prototype;_.r.get=function(c){var f=this,d,q;return _.k(function(Z){return Z.nextAddress==1?Z.yield(ZE4(f.token),2):Z.nextAddress!=3?(d=Z.yieldResult,Z.yield(d.get("ResponseStore",[c,f.clientName]),3)):(q=Z.yieldResult)?Z.return(new _.BP(q)):Z.return(void 0)})};
_.r.putInternal=function(c,f){var d=this,q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(ZE4(d.token),2);q=Z.yieldResult;return Z.yield(q.put("ResponseStore",f),0)})};
_.r.remove=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(ZE4(f.token),2);d=q.yieldResult;return q.return(d.delete("ResponseStore",[c,f.clientName]))})};
_.r.removeAll=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return d.yield(ZE4(c.token),2);f=d.yieldResult;return d.yield(tRv(f,IDBKeyRange.only(c.clientName)),0)})};
_.r.has=function(){throw Error("Wi");};_.qp=new _.jk("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Zji=function(c){var f;this.stateTagsData=(f=c.responseContext)==null?void 0:f.stateTags},MuG=function(c){var f;
return((f=c.stateTagsData)==null?void 0:f.stateTagsModified)||[]};var r3D;r3D=function(c){this.JSC$18085_responseStore=c};
_.No=function(c,f,d){if(!_.F("state_tags_killswitch")){var q=new Zji(f);if(MuG(q).length>0){var Z=c.JSC$18085_responseStore.getKeys();Z=_.C(Z);for(var M=Z.next();!M.done;M=Z.next()){M=M.value;var g=i9(c.JSC$18085_responseStore,M);if(g){var O=_.Mo(g);a:{var l=void 0;g=MuG(q);O=((l=(new Zji(O)).stateTagsData)==null?void 0:l.relevantStateTags)||[];l=_.C(O);for(O=l.next();!O.done;O=l.next())if(O=O.value,O.stateTag!=null&&g.includes(O.stateTag)&&O.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){g=
!0;break a}g=!1}g&&q3D(c.JSC$18085_responseStore,M)}}}}var m;q=(m=f.responseContext)==null?void 0:m.maxAgeSeconds;d&&q&&Number(q)>0&&(f=i7(f,q),c.JSC$18085_responseStore.put(d,new _.BP(f)))};
r3D.prototype.handleResponse=function(c,f){if(!f)throw Error("Xi");var d,q;f=(d=f.config)==null?void 0:(q=d.storeStrategy)==null?void 0:q.storeKey;_.No(this,c,f)};
r3D[dE]=[_.sj];_.s3r=new _.jk("STORE_RESPONSE_PROCESSOR_TOKEN");var CrC=function(c){this.JSC$18088_responseStore=c};
CrC.prototype.handleResponse=function(c,f){if(f.input.match(_.cS(lbT))){var d;if(c==null?0:(d=c.entries)==null?0:d.length)for(c=_.C(c.entries),f=c.next();!f.done;f=c.next()){d=f.value.command;var q=void 0;f=(q=_.b(d,_.EO))==null?void 0:q.unserializedPrefetchData;if(!d||!f)break;q=(new $B).JSC$12997_getStoreKey(d);var Z=_.b(f,$B3),M=void 0,g=void 0,O=void 0,l=_.rx("web_shorts_prefetch_service_ttl_seconds")>0?_.rx("web_shorts_prefetch_service_ttl_seconds"):Number((O=(M=Z)==null?void 0:(g=M.responseContext)==
null?void 0:g.maxAgeSeconds)!=null?O:3600);q&&l>0&&(Z=i7(Z,l),this.JSC$18088_responseStore.put(q,new _.BP(Z)));d=(new A$).JSC$12997_getStoreKey(d);f=_.b(f,Oz3);M=Z=q=void 0;g=_.rx("web_shorts_prefetch_service_ttl_seconds")>0?_.rx("web_shorts_prefetch_service_ttl_seconds"):Number((M=(q=f)==null?void 0:(Z=q.responseContext)==null?void 0:Z.maxAgeSeconds)!=null?M:3600);d&&g>0&&(f=i7(f,g),this.JSC$18088_responseStore.put(d,new _.BP(f)))}}};
CrC[dE]=[_.sj];var g_i=function(c){this.innertubeTransportService=c};
g_i[dE]=[_.uo];var kv3=new _.jk("SUBMIT_API_SERVICE_TOKEN");var Zi=function(){this.scheduler=_.zd()},OjH;
Zi.prototype.pause=function(){throw Error("Yi");};
Zi.prototype.resume=function(){throw Error("Yi");};
Zi.prototype.queue=function(c){var f=this,d=_.c9(),q=_.Em(this.scheduler,function(){try{var Z;if(_.Hh.instance)var M=_.Hh.instance;else{var g=new _.KD("Error: Unexpected uninitialized CommandHandler.");_.VO(g);M=void 0}(Z=M)==null||Z.resolveCommand(c.command);d.resolve()}catch(O){d.reject(O)}});
d.promise.thenCatch(function(Z){Z instanceof _.NC&&f.scheduler.cancelJob(q)});
return d.promise};
Zi.prototype.queueAll=function(c){var f=new Map;c=_.C(c);for(var d=c.next();!d.done;d=c.next())d=d.value,f.set(d.id,this.queue(d));return f};var sKH=function(c,f){var d=this;this.taskModel=c;this.onTaskCancelledCallback=f;this.resolver=_.c9();c=c.proto.prefetchConfig;if(!c)throw Error("Zi");if(!c.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(q){q instanceof _.NC&&(lO3(d,d.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),d.onTaskCancelledCallback(d.taskModel.id,d.jobId),d.tick("pcc"));
throw q;});
this.timerName=this.taskModel.id;_.ac(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
sKH.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 lO3=function(c,f){_.JQ({prefetchInfo:{cancellationReason:f}},c.timerName)};
sKH.prototype.tick=function(c){_.V_(c,void 0,this.timerName)};var ra=function(){var c=this;this.scheduler=_.zd();this.maxInflightTasks=_.rx("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.rx("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new NN3;this.onTaskCancelled=function(f,d){d&&c.scheduler.cancelJob(d);Bo3(c,f);Mp(c,3)}},ijG=function(){ra.instance||(ra.instance=new ra);
return ra.instance};
ra.prototype.pause=function(){this.prefetchCoordinatorState=0};
ra.prototype.resume=function(){Mp(this,0)};
ra.prototype.queue=function(c){c=ToH(this,c);Mp(this,1);return c};
ra.prototype.queueAll=function(c){var f=new Map;c=_.C(c);for(var d=c.next();!d.done;d=c.next())d=d.value,f.set(d.id,ToH(this,d));Mp(this,1);return f};
var ToH=function(c,f){var d=c.allPrefetchTasks.get(f.id);if(d)return d.cancellablePromise;try{var q=new sKH(f,c.onTaskCancelled)}catch(M){return _.Je(M)}d=q;d.tick("pcq");var Z={prefetchInfo:{taskId:d.taskModel.id,isPrefetch:!0,fetchAction:d.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:d.taskModel.command.clickTrackingParams}};d.taskModel.csn&&(Z.clientScreenNonce=d.taskModel.csn);_.JQ(Z,d.timerName);c.allPrefetchTasks.set(f.id,q);c.drainingHeap.insert(-q.getPriority(),q);return q.cancellablePromise},
Mp=function(c,f){c.prefetchCoordinatorState===f&&(c.prefetchCoordinatorState=2,mHp(c))},mHp=function(c){for(var f={};c.prefetchCoordinatorState!==0;f={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(c.inflightPrefetchTasks.size>=c.maxInflightTasks){c.prefetchCoordinatorState=3;break}f.prefetchTask$jscomp$1=c.drainingHeap.remove();if(!f.prefetchTask$jscomp$1){c.prefetchCoordinatorState=1;break}f.taskId$jscomp$3=f.prefetchTask$jscomp$1.taskModel.id;if(c.allPrefetchTasks.has(f.taskId$jscomp$3)){var d=-1;c.coordinatorTimeoutMs>0&&(d=_.Em(c.scheduler,function(q){return function(){CB(c,q.taskId$jscomp$3,Error("aj"))}}(f),c.coordinatorTimeoutMs));
c.inflightPrefetchTasks.set(f.taskId$jscomp$3,d);if(!c.JSC$18106_commandHandler){if(!_.Hh.instance){CB(c,f.taskId$jscomp$3,Error("bj"));continue}c.JSC$18106_commandHandler=_.Hh.instance}a:switch(f.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":d=1;break a;default:d=0}f.prefetchTask$jscomp$1.jobId=c.scheduler.addJob(function(q){return function(){q.prefetchTask$jscomp$1.tick("pcr");try{c.JSC$18106_commandHandler.resolveCommand(q.prefetchTask$jscomp$1.taskModel.command)||
CB(c,q.taskId$jscomp$3,Error("cj"))}catch(Z){CB(c,q.taskId$jscomp$3,Z)}}}(f),d,0)}}},HjH=function(c,f){(f=Bo3(c,f))!=null&&(f.resolver.resolve(),f.tick("pce"));
Mp(c,3)},CB=function(c,f,d){(f=Bo3(c,f,d))!=null&&(f.resolver.reject(d),f.tick("pcc"),lO3(f,"CANCELLATION_REASON_ERROR"),Math.random()<=_.rx("prefetch_coordinator_error_logging_sampling_rate")&&(d=new _.KD("Prefetch Command failed.",f.taskModel.id,d.message),_.VO(d)));
Mp(c,3)},Bo3=function(c,f,d){var q=c.allPrefetchTasks.get(f);
q?((d=c.inflightPrefetchTasks.get(f))&&d!==-1&&c.scheduler.cancelJob(d),c.inflightPrefetchTasks.delete(f),c.allPrefetchTasks.delete(f)):_.u6(new _.KD("Unexpected missing prefetch task when deleting task.",f,d==null?void 0:d.message));return q};var A3q=function(c,f,d,q,Z){this.id=c;this.triggerOn=f;this.cancelOn=d;this.command=q;this.proto=Z};
_.ci.Object.defineProperties(A3q.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Y3G=function(){this.JSC$18111_prefetchCoordinator=ijG();OjH||(OjH=new Zi);this.defaultCoordinator=OjH},FT3;
Y3G.getInstance=function(){FT3||(FT3=new Y3G);return FT3};
Y3G.prototype.get=function(c){switch(c){case 0:return this.JSC$18111_prefetchCoordinator;default:return this.defaultCoordinator}};var kA=function(){this.coordinatorSupplier=Y3G.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},KTQ=function(c){var f=_.X2()||void 0,d=Object.keys(tup)[0];
if(d){var q=c.taskIdByTriggerId.get(d);if(q!=null){c.taskIdByTriggerId.delete(d);d=[];q=_.C(q);for(var Z=q.next();!Z.done;Z=q.next())if(Z=c.tasks.get(Z.value))f!=="UNDEFINED_CSN"&&(Z.csn=f),d.push(Z);d=gLN(d);f=[];d=_.C(d);for(q=d.next();!q.done;q=d.next()){Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;q=c.coordinatorSupplier.get(q).queueAll(Z);q=_.C(q);var M=q.next();for(Z={};!M.done;Z={taskId$jscomp$9:void 0},M=q.next()){var g=_.C(M.value);M=g.next().value;g=g.next().value;Z.taskId$jscomp$9=
M;M=g;f.push(Z.taskId$jscomp$9);c.queuedPromisesByTask.set(Z.taskId$jscomp$9,_.QS(M,function(O){return function(){bjJ(c,O.taskId$jscomp$9)}}(Z)))}}}}else _.u6(new _.KD("Unexpected malformed TriggerEvent."))};
kA.prototype.trigger=function(c,f){var d=this,q=this.tasks.get(c);if(!q||this.queuedPromisesByTask.has(c))return!1;E_F(this,c,q.triggerOn);f!=="UNDEFINED_CSN"&&(q.csn=f);f=this.coordinatorSupplier.get(q.taskType).queue(q);this.queuedPromisesByTask.set(c,_.QS(f,function(){bjJ(d,c)}));
return!0};
kA.prototype.cancel=function(c){var f=this.queuedPromisesByTask.get(c);if(f)f.cancel();else return bjJ(this,c)};
var bjJ=function(c,f){c.queuedPromisesByTask.delete(f);var d=c.tasks.get(f);if(!d)return!1;c.tasks.delete(f);E_F(c,f,d.triggerOn);(d=CGY(d.cancelOn))&&(c=c.taskIdByCancelId.get(d))&&c.delete(f);return!0},E_F=function(c,f,d){(d=Object.keys(d)[0])&&(c=c.taskIdByTriggerId.get(d))&&c.delete(f)};var tup={taskRegistered:{}},OZ=function(){kA.instance||(kA.instance=new kA);this.JSC$18120_taskManager=kA.instance};
_.K(OZ,DT);
OZ.prototype.resolveCommand=function(c){var f=this,d,q;return _.k(function(Z){d=_.b(c,KZ3);if((q=d)==null||!q.tasks){var M=new _.KD("RegisterTasksCommand is missing tasks.");_.VO(M);return Z.return()}M=f.JSC$18120_taskManager;for(var g=_.C(d.tasks),O=g.next();!O.done;O=g.next())if(O=O.value,O=O.id&&O.triggerOn&&O.cancelOn&&O.command?new A3q(O.id,O.triggerOn,O.cancelOn,O.command,O):void 0,O){var l=Object.keys(O.triggerOn)[0];if(l){var m=CGY(O.cancelOn);m?(M.tasks.set(O.id,O),M.taskIdByTriggerId.has(l)||M.taskIdByTriggerId.set(l,
new Set),M.taskIdByTriggerId.get(l).add(O.id),M.taskIdByCancelId.has(m)||M.taskIdByCancelId.set(m,new Set),M.taskIdByCancelId.get(m).add(O.id)):_.u6(new _.KD("Unexpected malformed cancelOn field."))}else _.u6(new _.KD("Unexpected malformed triggerOn field."))}else _.u6(new _.KD("Unexpected malformed Task proto."));KTQ(f.JSC$18120_taskManager);_.Fm(Z)})};var n_q={},$H3=(n_q.rendered={priority:0,callback:function(){var c={};c.numCpu=navigator.hardwareConcurrency;var f={};f.ramGb=_.dz.navigator.deviceMemory;var d={staticContext:{}};f.ramGb&&kW4(f.ramGb)&&(d.staticContext.memoryTotalKbytes=(f.ramGb*1048576).toString());c.numCpu&&kW4(c.numCpu)&&(d.staticContext.cpuCores=c.numCpu);if(_.F("web_enable_adaptive_appl_signal")){c={};f=_.vO("rses_dpj");var q=_.vO("rsef_dpj");f&&f>0&&q&&q>0&&(f=Math.ceil(q-f),f>0&&(c.loadLatency=f));c.loadLatency&&kW4(c.loadLatency)&&
(d.appL=c.loadLatency.toString())}_.JN("applicationStarted",d)}},n_q);var QKC=new _.jk("WINDOW_ON_ERROR"),S3p=new _.jk("ERROR_WEIGHT_MAPS"),LTC=new _.jk("INIT_ERROR");var z_3={},J3H=(z_3.initialized={priority:10,callback:function(c){c.injector.resolve(LTC)()}},z_3);var aOp=function(){},VuC=function(){var c=_.D5("meta_logger_impl");
c||(c=new aOp,_.fu("meta_logger_impl",c));return c},XHr=function(){VuC().csiSubscriptionKey=saP("meta_logging_csi_event",function(c){var f=c.timerName;
if(c=c.timelineData){_.ac(f,{startTime:c.startTime},f);c.infos&&_.JQ(c.infos,f);for(var d=_.C(Object.keys(c.ticks)),q=d.next();!q.done;q=d.next())q=q.value,_.V_(q,c.ticks[q],f)}})};
aOp.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&T1N(this.csiSubscriptionKey)};var uyQ={},v_p=(uyQ.initialized={priority:10,callback:function(){XHr()}},uyQ);var h_C=function(c,f){this.innertubeClientName=c;this.JSC$18136_prefCookie=f};
h_C.prototype.record=function(){if(_.F("web_li_record_binary_eval_tick")){var c=_.vO("rsef_dpj");var f=_.vO("rses_dpj");c=c!==void 0&&f!==void 0?Math.round(c-f):void 0;if(c!==void 0&&c>0){f=_.T7(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var d=this.poolSize;if(!(f.valuesSeen>=1E9)){if(f.valuesSample.length<d)f.valuesSample.push(c);else{var q=Math.floor(Math.random()*(f.valuesSeen+1));q<d&&(f.valuesSample[q]=c)}f.valuesSeen+=1}_.iK(this.storagePrefix+"-"+this.innertubeClientName,
f,2592E3);c=f.valuesSample;f=OEz(c);c=c.length<this.poolSize?void 0:f<400?1:f<1700?2:3;c!==void 0&&(this.JSC$18136_prefCookie.set(this.cookiePrefix+this.innertubeClientName,c),this.JSC$18136_prefCookie.save())}}else _.m1(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18136_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18136_prefCookie.save()};
h_C[dE]=[JJ,kj];var wHG=function(){h_C.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.K(wHG,h_C);var y3J=new _.jk("PAGE_LOAD_TIME_TOKEN");var WTi=function(c){this.signal=c;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;c.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Em(_.a7,this.disableLoggingAndSendPayload,1E4)};
WTi.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.a7.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),DH3(this))};
var DH3=function(c){var f=_.V5();if(f){var d={webClientComponentsData:{components:Array.from(c.ids,function(q){return{id:q}})}};
c.ids.clear();_.bP().visualElementStateChanged(f,d)}};var e_r=new _.jk("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var lu=function(c,f){this.JSC$18165_storeWithEntities=c;this.JSC$18165_commandHandler=f;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
lu.prototype.start=function(){this.JSC$18165_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
lu.prototype.observeDownloadingEntities=function(){var c=_.UBY(this.JSC$18165_storeWithEntities.getState().entities).map(function(q){return pQn(q)});
if(c.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var f={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:kzP()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.jU(_.HO("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18165_commandHandler.resolveCommand(f)}this.downloadingEntities=c}else if(this.downloadingEntities.length){var d=R1N(this.JSC$18165_storeWithEntities.getState().entities).map(function(q){return pQn(q)});
this.downloadingEntities.filter(function(q){return d.includes(q)}).length&&(c={openPopupAction:R7M()},this.JSC$18165_commandHandler.resolveCommand(c));
this.downloadingEntities=[]}};
lu[dE]=[Cp,_.ZM];var NoG;_.sZ=function(c,f,d,q,Z,M,g,O){this.JSC$18168_playerApiPromise=c;this.JSC$18168_commandHandler=f;this.JSC$18168_screenManager=d;this.offlineWebClientEligibility=q;this.JSC$18168_prefStorage=Z;this.JSC$18168_actionRouter=M;this.entityTypeMap=g;this.JSC$18168_persistentStorePromiseAccessor=O;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
NoG=function(){var c=_.ql().resolve(_.sZ),f;_.k(function(d){if(d.nextAddress==1)return c.downloadFailureListenerBound?d.return():d.yield(c.JSC$18168_playerApiPromise,2);f=d.yieldResult;f.addEventListener("onOfflineOperationFailure",function(q){if(q.failureReason&&q.entityKey&&q.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(q.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Z=_.kC(q.entityKey).entityId;Z&&c.JSC$18168_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Z)}else if(_.F("kevlar_woffle")){Z=c.JSC$18168_commandHandler;var M=Z.resolveCommand;q=q.failureReason;var g=_.HO("TRANSFER_FAILED",void 0,"Download failed");q==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(g=_.HO("STORAGE_FULL",void 0,"Storage full"));M.call(Z,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.jU(g),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
c.downloadFailureListenerBound=!0;_.Fm(d)})};
_.sZ.prototype.deleteVideo=function(c,f){var d=this,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return g.yield(d.JSC$18168_playerApiPromise,2);q=g.yieldResult;M={offlineLoggingData:{offlineDeleteReason:(Z=f)!=null?Z:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return g.yield(q.queueOfflineAction(c,d.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",M),0)})};
_.sZ.prototype.pauseVideoDownload=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(f.JSC$18168_playerApiPromise,2);d=q.yieldResult;d.pauseVideoDownload(c);_.Fm(q)})};
_.sZ.prototype.resumeVideoDownload=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(f.JSC$18168_playerApiPromise,2);d=q.yieldResult;return q.yield(d.resumeVideoDownload(c),0)})};
_.sZ[dE]=[_.sR,_.ZM,_.z1,e_r,BG,dl,Gn3,HL];var IOr=new _.jk("DOWNLOAD_STATE_STORE_TOKEN");var PrH=function(c,f){this.JSC$18188_persistentStorePromiseAccessor=c;this.store=f;this.upliftCompletionResolver=new _.BS},pHJ=function(){var c=_.ql().resolve(R_3),f;
_.k(function(d){switch(d.nextAddress){case 1:if(c.upliftImplPromise)return d.return(c.upliftImplPromise);_.iY(d,2);c.upliftImplPromise=UH3(c);return d.yield(c.upliftImplPromise,4);case 4:c.upliftCompletionResolver.resolve();_.Pq(d,3);break;case 2:throw f=_.Yw(d),c.upliftCompletionResolver.reject(f),f;case 3:return d.return(c.upliftImplPromise)}})},UH3=function(c){var f,d,q;
return _.k(function(Z){switch(Z.nextAddress){case 1:return _.wi("LOGGED_IN")?Z.yield(c.JSC$18188_persistentStorePromiseAccessor(),2):Z.return();case 2:f=Z.yieldResult;if(!f)return _.V_("vdeur"),Z.return();_.V_("vdeus");_.iY(Z,3);return Z.yield(xH3(f),5);case 5:d=Z.yieldResult;c.store.dispatch(ajG(d));f.observe(function(M){VwG(c.store,M)});
_.Pq(Z,4);break;case 3:throw q=_.Yw(Z),_.V_("vdeur"),q;case 4:_.V_("vdeuc"),_.Fm(Z)}})},xH3=function(c){var f;
return _.k(function(d){if(d.nextAddress==1)return d.yield(HEn(c),2);f=d.yieldResult;return d.return(f.reduce(function(q,Z){if(!Z.data||!Z.key||!Z.entityType)return q;q[Z.entityType]||(q[Z.entityType]={});q[Z.entityType][Z.key]=Z.data;return q},{}))})};
PrH[dE]=[HL,_.WL];var R_3;R_3=new _.jk("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.BE=new _.jk("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var iu=function(c,f){this.JSC$18191_persistentStorePromiseAccessor=c;this.transportService=f};
iu.prototype.refresh=function(){var c=this,f,d,q,Z;return _.k(function(M){if(M.nextAddress==1)return _.wi("LOGGED_IN")?M.yield(c.JSC$18191_persistentStorePromiseAccessor(),2):M.return();if(M.nextAddress!=3)return(f=M.yieldResult)?M.yield(cGG(f),3):M.return();if((d=M.yieldResult)&&!(Number(d.data.refreshTimestampMs||0)<(0,_.qR)()))return M.return();q={browseId:"SPaccount_downloads"};Z=_.cS(G6);_.y9(c.transportService,q,Z).then(function(g){var O;if(f&&(g==null?void 0:(O=g.responseContext)==null?void 0:
O.maxAgeSeconds)!==0){var l;O=(g==null?void 0:(l=g.responseContext)==null?void 0:l.maxAgeSeconds)||604800;l=String(Math.floor((0,_.qR)())+O*1E3);f.put("service:downloads_settings:fallback",new _.BP({innertubeResponse:g,refreshTimestampMs:l}))}});
_.Fm(M)})};
iu[dE]=[_.qp,_.uo];var Tk=function(c,f){this.JSC$18195_playerPromise=c;this.store=f;this.started=!1};
Tk.prototype.start=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return c.started?d.return():d.yield(c.JSC$18195_playerPromise,2);f=d.yieldResult;f.addEventListener("onOrchestrationBecameLeader",c.updateIsLeader.bind(c,!0));f.addEventListener("onOrchestrationLostLeader",c.updateIsLeader.bind(c,!1));if(f.isOrchestrationLeader)c.updateIsLeader(f.isOrchestrationLeader());else{var q=new _.KD("Function isOrchestrationLeader is undefined",{"player.isReady":f.isReady(),"player.playVideo":f.playVideo?
"defined":"undefined"});_.VO(q);c.updateIsLeader(!1)}c.started=!0;_.Fm(d)})};
Tk.prototype.updateIsLeader=function(c){this.store.dispatch(_.CC({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:c}}))};
Tk[dE]=[_.sR,_.WL];var o_i=function(c,f){this.networkStatusManager=c;this.JSC$18198_prefStoragePromise=f;this.redirectsToPreload=["https://youtube.com"]},GvF=function(){var c=_.ql().resolve(o_i),f,d,q,Z,M,g;
_.k(function(O){switch(O.nextAddress){case 1:return O.yield(c.JSC$18198_prefStoragePromise,2);case 2:f=O.yieldResult;if(!(d=f)){O.jumpTo(3);break}return O.yield(f.get("yt-redirect-prefetch-id"),4);case 4:d=O.yieldResult;case 3:if(d||!c.networkStatusManager.isNetworkAvailable())return O.return();q={cache:"reload",redirect:"manual"};Z=_.C(c.redirectsToPreload);M=Z.next();case 5:if(M.done){if(!f){O.jumpTo(0);break}return O.yield(f.set("yt-redirect-prefetch-id",!0,86400),0)}g=M.value;_.iY(O,8);return O.yield(_.dz.fetch(g,
q),10);case 10:_.Pq(O,6);break;case 8:_.Yw(O);case 6:M=Z.next(),O.jumpTo(5)}})};var me=function(c){c?(this.container=c,this.containerWasInjected=!0):this.containerWasInjected=!1};
me.prototype.openDialog=function(c,f,d){var q=this,Z;return _.k(function(M){(Z=q.container)==null||Z.openDialog(c,f,d);_.Fm(M)})};
me.prototype.closeDialog=function(){var c=this,f;return _.k(function(d){(f=c.container)==null||f.closeDialog();_.Fm(d)})};
me.prototype.isDialogOpen=function(){var c=this,f,d;return _.k(function(q){return q.return((d=(f=c.container)==null?void 0:f.isDialogOpen())!=null?d:!1)})};
me[dE]=[_.dx(WG3)];_.cHq=new _.jk("POPUP_CONTROLLER_TOKEN");var fpH=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
fpH.prototype.registerPanel=function(c,f){if(c){this.panelMap.set(c,f);var d=this.pendingPanelResolvers.get(c);d&&(d.resolve(f),this.pendingPanelResolvers.delete(c))}};
fpH.prototype.getPanel=function(c){var f=this,d;return _.k(function(q){return(d=f.panelMap.get(c))?q.return(d):q.return(dQD(f,c))})};
var dQD=function(c,f){var d,q;return _.k(function(Z){if(d=c.pendingPanelResolvers.get(f))return Z.return(d.promise);q=new _.BS;c.pendingPanelResolvers.set(f,q);return Z.return(q.promise)})},jGD=function(c){fpH.call(this);
var f=this;this.popupController=c;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return f.panelMap.size}}};
_.K(jGD,fpH);_.r=jGD.prototype;_.r.getReloadContinuation=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(f.getPanel(c),2);d=q.yieldResult;return q.return(d.getReloadContinuation())})};
_.r.showPanel=function(c,f,d,q,Z,M,g){var O=this,l,m,H,A;return _.k(function(Y){if(Y.nextAddress==1){g&&O.updatePanelContinuationDatas.set(c,g);if((l=d)==null?0:(m=l.engagementPanelPopupPresentationConfig)==null?0:m.popupType){H=d.engagementPanelPopupPresentationConfig.popupType;Z===void 0&&(Z=document.body);var t=Y.return,E=O.popupController,J=E.openPopup;a:switch(H){case "PANEL_POPUP_TYPE_DIALOG":var X="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":X="DROPDOWN";break a;default:throw Error("ej`"+
H);}return t.call(Y,J.call(E,c,f,X,Z))}return Y.yield(O.getPanel(c),2)}A=Y.yieldResult;(f||M)&&A.updatePanel(f,!1,q,M);A.showPanel(q);_.Fm(Y)})};
_.r.hidePanel=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(f.getPanel(c),2);d=q.yieldResult;d.hidePanel();f.popupController.closePopup(c);_.Fm(q)})};
_.r.isVisible=function(c,f){var d=this,q;return _.k(function(Z){if(Z.nextAddress==1)return f&&!d.panelMap.has(c)?Z.return(!1):Z.yield(d.getPanel(c),2);q=Z.yieldResult;return Z.return(q.isVisible())})};
_.r.updatePanel=function(c,f,d,q,Z,M){d=d===void 0?!1:d;var g=this,O;return _.k(function(l){if(l.nextAddress==1){if(!f&&!Z)return l.return();M&&g.updatePanelContinuationDatas.set(c,M);return l.yield(g.getPanel(c),2)}O=l.yieldResult;O.updatePanel(f,d,q,Z);_.Fm(l)})};
_.r.registerPanelContent=function(c,f){c&&this.panelContentMap.set(c,f)};
_.r.unregisterPanelContent=function(c){this.panelContentMap.delete(c)};
_.r.getPanelContent=function(c){return this.panelContentMap.get(c)};
_.r.getUpdatePanelContinuationData=function(c){return this.updatePanelContinuationDatas.get(c)};
jGD[dE]=[_.cHq];var HE=function(c,f){this.innertubeTransportService=c;this.JSC$18214_screenManager=f},qrr=function(c){var f;
return!((f=c.panelLoadingStrategy)==null||!f.requestTemplate)};
HE.prototype.makeRequest=function(c){var f=this,d,q;return _.k(function(Z){switch(Z.nextAddress){case 1:if(!qrr(f)){Z.jumpTo(2);break}_.iY(Z,3);return Z.yield(_.G3(f.innertubeTransportService,c),5);case 5:return d=Z.yieldResult,d?Z.return(d.content):(_.VO(Error("fj")),Z.return(void 0));case 3:q=_.Yw(Z),_.VO(q);case 2:return Z.return(void 0)}})};
HE.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
HE.prototype.execute=function(c){var f=this,d,q,Z,M,g,O,l,m,H,A;return _.k(function(Y){if(Y.nextAddress==1){d=c;q=d.data;Z=d.fallbackVe;M=d.parentVe;g=d.createScreenConfig;O=d.renderFn;l=d.command;f.panelLoadingStrategy=q;var t,E,J=((t=f.panelLoadingStrategy)==null?0:t.screenVe)?(E=f.panelLoadingStrategy)==null?void 0:E.screenVe:Z;J&&_.s8(f.JSC$18214_screenManager,J,M,g);return(m=f.getContent())?Y.yield(O(m),2):Y.jumpTo(2)}return Y.nextAddress!=4?qrr(f)?Y.yield(f.makeRequest(l),4):Y.return():(A=H=
Y.yieldResult)?Y.yield(O(A),0):Y.return()})};
HE[dE]=[_.uo,_.z1];var AO=function(){};
AO.prototype.getContainer=function(){return _.q9()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
AO.prototype.openSheet=function(c,f){var d=this,q,Z,M,g,O,l;return _.k(function(m){switch(m.nextAddress){case 1:return q={stack:[],error:void 0,hasError:!1},_.iY(m,2,3),Z=x6,m.yield(d.isSheetOpen(),5);case 5:M=m.yieldResult;xwl(q,KwC(Z));if(M){if(f&&d.currentTarget===f)return(g=d.getContainer())==null||g.closeSheet(),m.return();d.pendingData={data:c,target:skr(d,f)};return m.return()}c.viewModel&&(c={viewModel:c.viewModel});(O=d.getContainer())==null||O.openSheet(c,f);d.currentTarget=f;case 3:_.m0(m);
orz(q);_.AD(m,0);break;case 2:l=_.Yw(m),q.error=l,q.hasError=!0,m.jumpTo(3)}})};
AO.prototype.closeSheet=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return d.yield((f=c.getContainer())==null?void 0:f.closeSheet(),2);if(d.nextAddress!=4)return c.currentTarget=void 0,c.pendingData?d.yield(c.openSheet(c.pendingData.data,c.pendingData.target),4):d.jumpTo(0);c.pendingData=void 0;_.Fm(d)})};
AO.prototype.isSheetOpen=function(){var c=this,f,d;return _.k(function(q){return q.return((d=(f=c.getContainer())==null?void 0:f.isSheetOpen())!=null?d:!1)})};
var skr=function(c,f){if(!_.F("web_parent_target_for_sheets"))return f;var d,q;return(q=(d=c.getContainer())==null?void 0:d.getParentTarget(f))!=null?q:f};var gO=window.documentPictureInPicture;var LIk=_.pp(["dark"]),zXk=_.pp(["system-icons"]),JGe=_.pp(["typography"]),aXk=_.pp(["lang"]),Vbk=_.pp(["style"]),nLP=_.pp(["dir"]),$yh=_.pp(["rounded-container"]),Qsh=_.pp(["style"]),uKP=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],YA=function(c){this.JSC$18226_clientRoot=c;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
YA.prototype.openWindow=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1)return window.documentPictureInPicture&&_.Qn()&&!f.currentPipWindow?Z.yield((d=gO?gO:null)==null?void 0:d.requestWindow(c),2):Z.return(!1);if(Z.nextAddress!=3){q=Z.yieldResult;if(!q)return Z.return(!1);q.addEventListener("pagehide",function(){Z3H(f)});
q.addEventListener("resize",f.handlePipWindowResize);f.pipWindowResizeDelay=new _.js(function(){f.currentPipWindow&&_.gS(f.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.AT(f.currentPipWindow.innerWidth,f.currentPipWindow.innerHeight)])},q);
XJP(q);hXC(q);return Z.yield(ELk(q),3)}if(!tbN())return Z.return(!1);f.currentPipWindow=q;f.JSC$18226_eventForwarder=vLh(q,f.JSC$18226_clientRoot);f.pipWindowResizeDelay.start();return Z.return(!0)})};
YA.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Z3H=function(c){if(c.currentPipWindow){var f,d;(f=gO?gO:null)==null||(d=f.window)==null||d.close();c.currentPipWindow.removeEventListener("resize",c.handlePipWindowResize);var q;(q=c.pipWindowResizeDelay)==null||q.dispose();c.pipWindowResizeDelay=void 0;var Z;(Z=c.JSC$18226_eventForwarder)==null||Z.stop();c.JSC$18226_eventForwarder=void 0;f=_.C(c.onCloseCallbacks);for(d=f.next();!d.done;d=f.next())d=d.value,d();c.onCloseCallbacks=[];c.currentPipWindow=null}};
YA.prototype.getWindow=function(){return this.currentPipWindow};
var MFC=function(c,f){var d;(d=c.onCloseCallbacks)==null||d.push(f)};
YA.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Qn()};
_.ci.Object.defineProperties(YA.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
YA[dE]=[Civ];var rHH=new _.jk("PICTURE_IN_PICTURE_CONTROLLER");var wJe=function(c,f){this.lengthY=this.lengthX=0;this.lengthX=f.x-c.x;this.lengthY=f.y-c.y};var CC3=function(){},tMi=function(c,f){var d;
(d=c.headerElement)==null||d.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:f}))};var gSr=function(){};
gSr.prototype.openPopup=function(c,f,d,q){var Z=this,M;return _.k(function(g){if(!Z.container)return g.return();M={openPopupAction:{popup:f,popupType:d,uniqueId:c}};return g.return(Z.container.handleOpenPopupAction(M,q))})};
gSr.prototype.closePopup=function(c){this.container&&this.container.closePopup(c)};var kCC=function(){this.openTunnels=new Map},SZC=function(c,f,d){if(IX4(d)){var q=_.y2(d,"gclid");
d={handleEvent:function(O){f&&!f.closed&&typeof f.postMessage==="function"&&O&&O.origin&&O.source===f&&O.data&&O.data.action==="gcl_setup"&&f.postMessage(Object.assign({},{action:"gcl_transfer"},q&&{gclid:q},{gadSource:2}),O.origin)}};
for(var Z=_.C(c.openTunnels),M=Z.next();!M.done;M=Z.next()){var g=_.C(M.value);M=g.next().value;g=g.next().value;if(M.closed)try{window.removeEventListener("message",g),c.openTunnels.delete(M)}catch(O){_.VO(O)}}f&&c.openTunnels.size<15&&(c.openTunnels.set(f,d),window.addEventListener("message",d))}};var O33=function(){this.clientParams=new Map},sBr=function(c){for(var f=_.C(c.clientParams.keys()),d=f.next();!d.done;d=f.next())d=d.value,d.startsWith("yt-mini-app-share")&&c.clientParams.delete(d)};var lpS=function(c,f){_.ES.call(this);var d=this;this.shortsController=c;this.storeWithShorts=f;c=_.bj(this.storeWithShorts,_.g8M,function(q){if(q){var Z,M=(Z=d.shortsController.getRoot())==null?void 0:Z.getPlayer(),g;(Z=(g=d.shortsController.alternativePlayerContainerElement)==null?void 0:g.getPlayerContainer())&&(M==null||M.appendTo(Z))}else{var O;g=(O=d.shortsController.alternativePlayerContainerElement)==null?void 0:O.getPlayerContainer().querySelector("#player");Z=d.shortsController.activeIndex;
(O=(M=d.shortsController.getRoot())==null?void 0:M.querySelector('ytd-reel-video-renderer[id="'+Z+'"] #player-container'))&&(g==null||g.appendTo(O,void 0,!0))}});
this.addOnDisposeCallback(c)};
_.K(lpS,_.ES);var F6=function(c,f,d,q,Z){var M=this;this.storeWithShorts=c;this.ephemeralResponseStore=f;this.store=d;this.innertubeTransportService=q;this.innertubeTransportLoader=Z;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.N5(_.so);this.isShortsPipActive=_.N5(_.BZ);this.nextReelVe=_.m_(56921);this.prevReelVe=_.m_(56922);this.backButtonVe=_.m_(22156);this.TEST_ONLY={getActiveModules:function(){return M.activeModules}}},sGH=function(c){c.unsubscribeFromStore=
_.bj(c.storeWithShorts,_.CEG,function(f){c.initOrDisposeActiveModules(f);
!f&&c.storeWithShorts.getState().shorts.isFullscreen&&(_.Zr(document.documentElement),c.storeWithShorts.dispatch(_.ZQj(!1)))});
c.initOrDisposeActiveModules(_.CEG(c.storeWithShorts.getState()))},MrH,rUr,BJ3;
F6.prototype.initOrDisposeActiveModules=function(c){c?this.activeModules.push(new lpS(this,this.storeWithShorts)):(_.cu(this.activeModules),this.activeModules.length=0)};
F6.prototype.registerRootElement=function(c){this.rootElement=c;sGH(this)};
F6.prototype.getRoot=function(){return this.rootElement};
F6.prototype.setActiveIndex=function(c){this.activeIndex=c};
_.cUv=function(c,f){var d,q,Z,M,g,O,l;return _.k(function(m){switch(m.nextAddress){case 1:return d=new $B,(q=d.JSC$12997_getStoreKey(f))&&c.ephemeralResponseStore.has(q)?m.yield(c.ephemeralResponseStore.get(q),7):m.yield(BJ3(c,f),4);case 4:Z=m.yieldResult;if(!q){m.jumpTo(3);break}M=i7(Z,3600);return m.yield(c.ephemeralResponseStore.put(q,new _.BP(M)),3);case 7:Z=(g=m.yieldResult)==null?void 0:_.Mo(g);case 3:return((O=Z)==null?0:O.replacementEndpoint)&&(l=_.b(Z.replacementEndpoint,_.EO))&&Z.sequenceContinuation&&
(l.sequenceParams=Z.sequenceContinuation),m.return(Z)}})};
MrH=function(c,f){f=(new Qi).JSC$12997_getStoreKey(f);return!!f&&c.ephemeralResponseStore.has(f)};
rUr=function(c,f,d){var q,Z,M,g,O;_.k(function(l){if(l.nextAddress==1){q=new Qi;Z=q.JSC$12997_getStoreKey(f);if(!Z)return l.return();if(d.reelWatchSequenceResponse)return M=i7(d.reelWatchSequenceResponse,3600),c.ephemeralResponseStore.put(Z,new _.BP(M)),l.jumpTo(0);if(!c.ephemeralResponseStore.has(Z))return l.jumpTo(0);O=d;return l.yield(c.ephemeralResponseStore.get(Z),4)}O.reelWatchSequenceResponse=(g=l.yieldResult)==null?void 0:_.Mo(g);_.Fm(l)})};
BJ3=function(c,f){var d=d===void 0?{}:d;var q,Z,M;return _.k(function(g){switch(g.nextAddress){case 1:if(c.innertubeTransportService){q=c.innertubeTransportService;g.jumpTo(2);break}if(!c.innertubeTransportLoader){_.yJ(Error("hj"));g.jumpTo(2);break}return g.yield(c.innertubeTransportLoader(),4);case 4:q=g.yieldResult;case 2:return g.yield((Z=q)==null?void 0:_.G3(Z,f,d),5);case 5:return M=g.yieldResult,g.return(M)}})};
_.ci.Object.defineProperties(F6.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
F6[dE]=[NG3,_.sj,Cp,_.dx(_.uo),_.dx(wX_)];_.i3D=new _.jk("STORAGE_MANAGER_TOKEN");var RXz=["touchmove","scroll"];var oLk={onSpanEnd:function(c){if(c.parent==null){var f=c.name;_.ac(f);xyk(c,f)}}};var TJC=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},mQc;
TJC.prototype.enqueue=function(c,f){f===1?this.currentPersistentToast=c:this.queue.push(c);this.openToast()};
TJC.prototype.openToast=function(){var c;(c=this.currentToast)!=null&&c.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.tO=new _.jk("TOAST_MANAGER_TOKEN");var H3G=new _.jk("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var AHc=new _.jk("VIEW_TRANSITION_COORDINATOR_TOKEN");var YrJ=function(c){this.config=c;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;c=_.C(c.transitionConfigs);for(var f=c.next();!f.done;f=c.next())f=_.C(f.value).next().value,this.transitionTasksMap.set(f,[])};
YrJ.prototype.registerElement=function(c,f,d){d=d===void 0?!1:d;for(var q=_.C(Object.keys(f)),Z=q.next(),M={};!Z.done;M={viewTransitionName:void 0},Z=q.next()){Z=Z.value;M.viewTransitionName=f[Z];var g=this.elementTasksMap.get(c),O=void 0;if((O=g)==null?0:O.has(Z)){_.XX(new _.KD("Element already registered for transition",c.tagName,Z));break}g=g||new Map;g.set(Z,{beforeTransition:function(l){return function(){c.style.viewTransitionName=l.viewTransitionName}}(M),
afterTransition:function(){c.style.viewTransitionName&&(c.style.viewTransitionName="")},
runOnce:d});this.elementTasksMap.set(c,g)}};
_.UR=function(c,f){var d=c.elementTasksMap.get(f);d&&(d.clear(),d.size===0&&c.elementTasksMap.delete(f))};
YrJ[dE]=[H3G];var FcC;_.tFC=_.dN(function(c){return _.B("basic-content-view-model",{class:_.FY("ytBasicContentViewModelHost",_.Ga(c.className))},_.B(_.T,{cond:function(){return c.data().headline},
then:function(f){return _.B("div",{class:"ytBasicContentViewModelHeadline"},_.B(_.J9,{text:f}))}}),_.B(_.bd,{each:function(){return c.data().paragraphs||[]},
keyBy:"INDEX"},function(f){return _.B("div",{class:"ytBasicContentViewModelParagraph"},_.B(_.T,{cond:function(){var d=f();return!!(d.header||d.customHeader||d.headline)},
then:function(){return _.B(FcC,{paragraph:f})}}),_.B(_.T,{cond:function(){return f().asset||f().text},
then:function(){return _.B("div",{class:"ytBasicContentViewModelParagraphContent"},_.B(_.T,{cond:function(){return f().asset},
then:function(d){return _.B("div",{class:"ytBasicContentViewModelParagraphAsset"},_.B(_.u7,{data:d},{contentPreviewImageViewModel:_.CQ}))}}),_.B(_.T,{cond:function(){return f().text},
then:function(d){return _.B("div",{class:"ytBasicContentViewModelParagraphText"},_.B(_.J9,{text:d}))}}))}}))}))},"ze");
FcC=_.dN(function(c){var f=c.paragraph;return _.B(_.qD,null,_.B(_.T,{cond:function(){return f().headline},
then:function(d){return _.B(_.J9,{text:d,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.B(_.u7,{data:function(){return f().header||f().customHeader}},{sectionHeaderViewModel:function(d){return _.B(_.Bn,{data:d.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ae");var Kci=_.dN(function(c){var f=_.xz("yt-expandable-metadata-header-view-model"),d=_.Ks(function(q){if(!_.W9(_.yH(q),f.value,["A".toString(),"BUTTON".toString()])){var Z;(Z=c.expandedCallback)==null||Z.call(c,!1)}});
return _.B("yt-expandable-metadata-header-view-model",{el:f,class:"ytExpandableMetadataHeaderViewModelHost"},_.B(_.T,{cond:function(){return c.expanded()},
then:function(){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":d},_.B("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.B(_.T,{cond:function(){return c.data().expandedTitleImage},
then:function(q){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.B(_.jC,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:q}))}}),_.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.B(_.J9,{text:function(){return c.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.B(_.J9,{text:function(){return c.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.B(_.J9,{text:function(){return c.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.B("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.B(_.u7,{data:function(){return c.data().infoButton}},{buttonViewModel:_.mN}),_.B(_.u7,{data:function(){return c.data().collapseButton}},{buttonViewModel:function(q){return _.B(_.mN,{data:q.data,
onClick:function(){var Z;(Z=c.expandedCallback)==null||Z.call(c,!1)}})}})))},
else:function(){return _.B(b33,Object.assign({},c))}}))},"Be"),ESq=_.dN(function(c){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.B(_.T,{cond:function(){return c.data().collapsedLabelImage},
then:function(f){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.B(_.jC,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:f,alt:""}))}}),_.B(_.J9,{text:function(){return c.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ce"),b33=_.dN(function(c){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Ks(function(){var f;return void((f=c.expandedCallback)==null?void 0:f.call(c,!0))})},_.B("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.B(_.T,{cond:function(){return c.data().collapsedImage},
then:function(f){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.B(_.jC,{width:16,height:16,data:f,alt:""}))}}),_.B(_.T,{cond:function(){return c.data().showLeadingCollapsedLabel},
then:function(){return _.B(ESq,Object.assign({},c))}}),_.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.B(_.J9,{text:function(){return c.data().collapsedTitle}}))),_.B("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.B(_.T,{cond:function(){return!c.data().showLeadingCollapsedLabel},
then:function(){return _.B(ESq,Object.assign({},c))}}),_.B(_.u7,{data:function(){return c.data().infoButton}},{buttonViewModel:_.mN}),_.B(_.u7,{data:function(){return c.data().expandButton}},{buttonViewModel:function(f){return _.B(_.mN,{data:f.data,
onClick:function(){var d;(d=c.expandedCallback)==null||d.call(c,!0)}})}})))},"De");_.nSJ=_.dN(function(c){var f=_.C(_.ns(function(){return c.data().initiallyExpanded})),d=f.next().value,q=f.next().value,Z,M=(Z=_.ql().resolve(_.dx(_.of)))==null?void 0:Z(),g=function(){var O=c.data().colorData;
if(O)return M?O==null?void 0:O.darkColorPalette:O==null?void 0:O.lightColorPalette};
return _.B("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.$Z({"background-color":function(){var O=g();return(O==null?0:O.section2Color)?_.WS(O.section2Color):""}})},_.B(_.u7,{data:function(){return c.data().header}},{expandableMetadataHeaderViewModel:function(O){return _.B(Kci,{data:O.data,
expanded:function(){return!!d()},
expandedCallback:function(l){q(l)}})}}),_.B(_.T,{cond:function(){return d()},
then:function(){return _.B("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.B(_.u7,{data:function(){return c.data().expandedContent}},{horizontalShelfViewModel:function(O){return _.B(_.yo,{data:O.data,
includeMargin:!0,forceNarrowLayout:!0,palette:g})},
videoSummaryContentViewModel:function(O){return _.B(V93,{data:O.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(O){return _.B(_.s7,{data:O.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(O){return _.B(_.tFC,{data:O.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.B(_.u7,{data:function(){return c.data().expandedBottomButtons}},{buttonViewModel:function(O){return _.B("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.B(_.mN,{data:O.data}))}}))}}))},"Ee");var $QC=_.dN(function(c){var f=c.text;var d=c.marqueeSpacing;var q=c.scrollDelay;var Z=c.scrollDuration;var M=c.enableMarqueeScroll;c=c.large;var g=_.C(_.OT(!1,void 0,"kfNqfd")),O=g.next().value,l=g.next().value,m=_.C(_.OT(0,void 0,"bYgZbf"));g=m.next().value;var H=m.next().value,A=_.xz("marquee-scroll");m=_.xz("div");var Y=_.xz("span"),t=_.ql().resolve(_.cr);_.$k(function(){if(M()){var X=Y.value.getBoundingClientRect().width,u=A.value.getBoundingClientRect().width;if(X>u){var W=(t==="ltr"?-1:1)*
(X+(d?d():16));Promise.resolve().then(function(){l(!0);H(W)})}}},"giRlme");
var E={},J={};return _.B("marquee-scroll",{class:_.FY("ytMarqueeScrollHost",(E.ytMarqueeScrollHostLarge=c,E)),el:A},_.B("div",{id:"marquee-scroll-inner-container",class:_.FY("ytMarqueeScrollInnerContainer",(J.ytMarqueeScrollAnimationEnabled=function(){return O()},J)),
el:m,style:_.$Z({gap:d?(0,_.Xn)(d):"16px","animation-duration":Z?Qm_(Z):"16s","animation-delay":q?Qm_(q):"3s","--marquee-translate":(0,_.Xn)(g)})},_.B("span",{el:Y,dir:"auto"},_.B(_.J9,{text:f,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.B(_.T,{cond:O,then:function(){return _.B("span",{"aria-hidden":"true",dir:"auto"},_.B(_.J9,{text:f,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fe");_.QGD=_.dN(function(c){var f=c.data;var d=c.overlayDensity;c=_.Ks(function(){f().onTapCommand&&_.Ph(f().onTapCommand);return!1});
var q=_.UZk(),Z=function(){return(d==null?void 0:d())===1?22:16},M={};
return _.B("reel-sound-metadata-view-model",{class:_.FY("ytReelSoundMetadataViewModelHost",(M.ytReelSoundMetadataViewModelHostLarge=function(){return(d==null?void 0:d())===1},M)),
"on:click":c,tabindex:0,role:"button","on:keydown":q},_.B("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.B(_.T,{cond:function(){return f().musicIcon},
then:function(g){return _.B(_.jC,{data:g,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Z})}}),_.B("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.B($QC,{text:function(){return f().soundMetadata},
enableMarqueeScroll:function(){return!!f().enableMarqueeScroll},
large:function(){return(d==null?void 0:d())===1}}))))},"Ge");var Src,Lc3,bu,VFc,uiq,apC,wDQ,h3q;Src=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Lc3=_.rx("wil_icon_max_concurrent_fetches",Infinity);
bu=function(c,f,d){var q=this;this.iconSet=c;this.appDirection=f;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.dz.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;c=function(){q.cacheStorageAvailable&&(q.cacheStorageAsync=_.dz.caches.open("yt-icons").then(function(M){return q.cacheStorageSync=M}).catch(function(){q.cacheStorageAvailable=!1}))};
d=(d==null?void 0:d())||{};d=_.C(Object.entries(d));for(f=d.next();!f.done;f=d.next()){var Z=_.C(f.value);f=Z.next().value;Z=Z.next().value;Z=mf(Z);z33(Z);this.iconCache[f]=Z.cloneNode(!0)}this.isPurging=JHJ(this);this.isPurging instanceof Promise?this.isPurging.then(c):c()};
_.enP=function(c,f){var d=c.resolveIcon(f);return d?c.renderingMode===1?apC(c,d,c.renderingMode):(f=c.iconCache[d.url])?(f=f.cloneNode(!0),VFc(c,f),apC(c,d,c.renderingMode,f)):_.XDQ(c,d).then(function(q){var Z=q?0:1;VFc(c,q);return apC(c,d,Z,q)}):(_.XX(new _.KD("Icon not found",{iconShape:f})),function(){})};
VFc=function(c,f){if(f){c.counter+=1;c="_yt"+c.counter;f=[f].concat(_.LT(f.getElementsByTagName("*")));f=_.C(f);for(var d=f.next();!d.done;d=f.next())if(d=d.value,d.tagName==="style"&&d.textContent)d.textContent=uiq(d.textContent,c,!0);else for(var q=_.C(d.attributes),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;Z.name==="id"&&(Z.value+=c);["mask","fill","clip-path"].includes(Z.name)&&(Z.value=uiq(Z.value,c));if(Z.name==="style"){var M=d.style;try{M.cssText=uiq(M.cssText,c,!0)}catch(H){var g=void 0,O=
void 0,l=void 0,m=void 0;KB({error:((g=H)==null?void 0:(l=(O=g).toString)==null?void 0:l.call(O))||"",el:d.outerHTML,style:!!M,cssText:(m=M)==null?void 0:m.cssText})}}Z.name==="xlink:href"&&(Z.value=Z.value.replace(/#(.*)/,"#$1"+c))}}};
uiq=function(c,f,d){var q=/url\(["']?#(.*?)["']?\)/;(d===void 0?0:d)&&(q=/url\(["']?#(.*?)["']?\)/g);return c.replace(q,"url(#$1"+f+")")};
apC=function(c,f,d,q){return function(Z,M){var g=Object.assign({},{iconColor:"currentcolor",iconWidth:f.size+"px",iconHeight:f.size+"px",iconDisplay:"block"},M);M=_.A5("DIV");var O=g.iconColor,l=g.iconFilter;g="width: "+g.iconWidth+"; height: "+g.iconHeight+"; display: "+g.iconDisplay+";";l&&(g+=" filter: "+l+";");d===0&&(g+=" fill: "+O+";");d===1&&(l=f.url,g+=" -webkit-mask: url("+l+") no-repeat center / cover; mask: url("+(l+") no-repeat center / cover; background-color: ")+O);f.allowMirroring&&
c.appDirection==="rtl"&&(g+=" transform: scale(-1, 1); transform-origin: center center;");M.setAttribute("style",g);d===0&&q&&M.appendChild(q);Z.appendChild(M)}};
_.XDQ=function(c,f){var d,q,Z;return _.k(function(M){d=function(g){return DJ(g)};
q=f.url;if(!vS3(q))throw Error("jj");Z=h3q(c,q);return M.return(Z.then(function(g){return g.clone().text()}).then(function(g){var O=d(g);
g=f.size;var l=_.A5("DIV");_.G8(l,O);O=_.Y6(l.firstElementChild!==void 0?l.firstElementChild:_.cHF(l.firstChild,!0));g=z33(O,g);c.iconCache[q]=g.cloneNode(!0);delete c.responsePromises[q];return g}).catch(function(){}))})};
wDQ=function(c){var f,d=(f=c.requestAninmationFrameResolver)==null?void 0:f.promise;d||(c.requestAninmationFrameResolver=new _.BS,d=c.requestAninmationFrameResolver.promise,_.dz.requestAnimationFrame(function(){var q;(q=c.requestAninmationFrameResolver)==null||q.resolve();c.requestAninmationFrameResolver=null}));
return d};
h3q=function(c,f){var d,q;return _.k(function(Z){if(Z.nextAddress==1)return c.waitForAnimationFrame?Z.yield(wDQ(c),2):Z.jumpTo(2);d=c.responsePromises[f];d||(q=function(){var M,g,O;return _.k(function(l){switch(l.nextAddress){case 1:if(!c.cacheStorageAvailable){M=void 0;l.jumpTo(2);break}if(g=c.cacheStorageSync){l.jumpTo(3);break}return l.yield(c.cacheStorageAsync,4);case 4:g=l.yieldResult;case 3:M=g;case 2:return O=M,c.isNetworkFirstStrategy?l.return(c.fetchAndUpdateCache(f,O).catch(c.getCacheStorageResponse.bind(c,
f,O))):l.return(c.getCacheStorageResponse(f,O).catch(c.fetchAndUpdateCache.bind(c,f,O)))}})},d=c.renderWhenIdle?new Promise(function(M,g){_.Em(_.a7,function(){q().then(M).catch(g)},10)}):q(),c.responsePromises[f]=d);
return Z.return(d.catch(function(M){delete c.responsePromises[f];KB({error:(M==null?0:M.toString)?M.toString():"",url:f});throw M;}))})};
bu.prototype.fetchAndUpdateCache=function(c,f){var d=this;return _.k(function(q){return q.return(yHJ(d,c).then(function(Z){WcJ(d,c,Z,f);return Z}))})};
var yHJ=function(c,f){var d;return _.k(function(q){if(c.numFetches<Lc3)return c.numFetches+=1,q.return(DQ3(c,f).finally(function(){--c.numFetches;if(Object.keys(c.queuedResponseResolvers).length){var Z=Object.keys(c.queuedResponseResolvers)[0],M=c.queuedResponseResolvers[Z];delete c.queuedResponseResolvers[Z];M.resolve(yHJ(c,Z))}}));
d=new _.BS;c.queuedResponseResolvers[f]=d;return q.return(d.promise)})},DQ3=function(c,f,d){d=d===void 0?2:d;
var q;return _.k(function(Z){q={credentials:"same-origin",priority:"low"};return Z.return(_.dz.fetch(f,q).then(function(M){return M.ok?M:Promise.reject(Error("kj`"+M.status+"`"+M.statusText))}).catch(function(M){if(d>0)return DQ3(c,f,d-1);
throw M;}))})},WcJ=function(c,f,d,q){_.k(function(Z){return q?Z.return(new Promise(function(M){_.Em(_.a7,function(){var g,O;
return _.k(function(l){switch(l.nextAddress){case 1:if(!c.isNetworkFirstStrategy){g=void 0;l.jumpTo(2);break}return l.yield(q.match(f).catch(function(){}),3);
case 3:g=l.yieldResult;case 2:if(O=g){l.jumpTo(4);break}return l.yield(q.put(f,d.clone()).catch(function(m){KB({error:(m==null?0:m.toString)?m.toString():"",url:f})}),4);
case 4:M(),_.Fm(l)}})},50)})):Z.return()})};
bu.prototype.getCacheStorageResponse=function(c,f){return _.k(function(d){return f?d.return(f.match(c).then(function(q){return q&&q.ok?q:Promise.reject()})):d.return(Promise.reject())})};
var z33=function(c,f){f===void 0||c.getAttribute("viewBox")||c.setAttribute("viewBox","0 0 "+f+" "+f);c.setAttribute("focusable","false");c.setAttribute("aria-hidden","true");try{c.style.pointerEvents="none",c.style.display="inherit",c.style.width="100%",c.style.height="100%"}catch(Z){var d;KB({error:((d=Z)==null?0:d.toString)?Z.toString():""});try{c.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(M){var q;KB({error:((q=M)==null?0:q.toString)?M.toString():
""})}}return c},vS3=function(c){for(var f=_.C(Src),d=f.next();!d.done;d=f.next())if(c.startsWith(d.value)&&c.endsWith(".svg"))return!0;
return!1};
bu.prototype.resolveIcon=function(c){return this.iconSet.resolveIcon(c)};
var KB=function(c){_.u6(new _.KD("Error in IconManager",c))},JHJ=function(c){if(_.F("wil_icons_cache_purge_killswitch"))return!1;
try{var f=_.dz.localStorage}catch(M){return!1}if(!f||!c.cacheStorageAvailable)return!1;var d=function(M){try{var g;(g=f)==null||g.setItem("yt-icons-last-purged",M.toString())}catch(l){var O;KB({error:((O=l)==null?0:O.toString)?l.toString():""})}},q=Number(f.getItem("yt-icons-last-purged"));
if(!q)return q=new Date,q=q.setDate(q.getDate()-Math.floor(Math.random()*90+1)),d(q),!1;if(function(M,g){M=new Date(M);g=new Date(g);return g.getMonth()-M.getMonth()+12*(g.getFullYear()-M.getFullYear())}(q,Date.now())<3)return!1;
try{return _.dz.caches.delete("yt-icons").then(function(M){M&&d(Date.now());return M}).catch(function(){return!1}).finally(function(){c.isPurging=!1})}catch(M){var Z;
KB({error:((Z=M)==null?0:Z.toString)?M.toString():""});return!1}};
bu[dE]=[DFr,_.cr,_.dx(IAy)];_.EZ=function(c,f){this.iconManager=c;this.iconsToFetch=f};
_.EZ[dE]=[_.mt,_.dx(NMu)];var e3J=function(){};var NJH=function(c,f,d){this.requestKey=c;this.ob5=f;this.szw=d;this.sWj=function(){return new XMLHttpRequest};
this.vFG=void 0;this.xdv=[]};
NJH.prototype.getLatestChallengeResponse=function(){return this.szw};
var Z1F=function(c,f,d){var q,Z,M,g;return _.k(function(O){if(O.nextAddress==1){_.ac("attestation_challenge_fetch");_.V_("att_fs",void 0,"attestation_challenge_fetch");if(!c.vFG)throw new _.LF(9,"Missing fetcher");return O.yield(c.vFG(f,d),2)}q=O.yieldResult;M=(Z=q)==null?void 0:Z.bgChallenge;if(!M)throw new _.LF(15,"Missing field");c.szw=q;c.xdv.forEach(function(l){l(q)});
g=oTn(M);_.V_("att_fc",void 0,"attestation_challenge_fetch");ZnN("attestation_challenge_fetch");return O.return(g)})},$xy=function(c,f){var d,q,Z,M,g;
return _.k(function(O){switch(O.nextAddress){case 1:d=new gb(100,3E5,.25,2),q=void 0;case 2:if(!(d.currBackoffCount_<10)){O.jumpTo(4);break}_.iY(O,5);if(!(d.currBackoffCount_>0)){O.jumpTo(7);break}return O.yield(cSl(d.getValue()),7);case 7:return O.yield(IpG(c,f),9);case 9:return Z=O.yieldResult,O.return(Z);case 5:M=_.Yw(O);M instanceof _.LF?q=M:(g=M instanceof Error?M.message:"Unknown",q=new _.LF(9,g));iTr(d);O.jumpTo(2);break;case 4:if(q)throw q;throw new _.LF(9,"Unknown error");}})},IpG=function(c,
f){f=RRo(Uzr(new P5r,f),c.requestKey);
var d=new _.BS,q=c.sWj();q.open("POST",c.ob5);q.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");q.setRequestHeader("Content-Type","application/json+protobuf");q.onload=function(){if(_.are(q)){var Z=juT(q.responseText);d.resolve(Z)}else d.reject(new _.LF(_.pCY(_.kK(q)),q.statusText))};
q.onerror=function(){d.reject(new _.LF(_.pCY(_.kK(q)),q.statusText))};
q.send(f.serialize());return d.promise};var R3C=function(c){this.networkStatusManager=c;this.isDownloaded=fXl===void 0?function(){return!1}:fXl;
this.isReady=!1;this.qsH=PCS(this)},PCS=function(c){var f;
return _.k(function(d){if(d.nextAddress==1)return d.yield(S6M(),2);if(d.nextAddress!=3)return f=d.yieldResult,d.yield(Hqy(f),3);c.e0=d.yieldResult;d7e(c.e0).then(function(){c.isReady=!0});
return d.return(c.e0)})},UQQ=function(c,f,d){c.e0?(c=c.e0.wOO({hI:d,
rX9:!0,k52:!0}),f.serviceIntegrityDimensions={poToken:c}):_.VO(Error("mj"))};
R3C.prototype.processContext=function(c){var f=this;if(!c.input.match(_.cS(C9r)))return _.xf();var d=c.innerTubeRequest,q=d.videoId;return!q||this.isDownloaded(d)||this.networkStatusManager&&!this.e0&&!this.networkStatusManager.isNetworkAvailable()?_.xf():this.e0?this.isReady?(UQQ(this,d,q),_.xf()):new pz(d7e(this.e0).then(function(){UQQ(f,d,q)})):new pz(this.qsH.then(function(Z){return _.k(function(M){if(M.nextAddress==1)return M.yield(d7e(Z),2);
UQQ(f,d,q);_.Fm(M)})}))};var pDq=new _.jk("WEB_PO_CONTEXT_PROCESSOR");var xQr=function(c,f){var d=this;this.fTz=0;var q;this.npZ=(q=f==null?void 0:f.npZ)!=null?q:window;this.networkStatusManagerPromise=f==null?void 0:f.networkStatusManagerPromise;var Z;this.requestKey=(Z=f==null?void 0:f.requestKey)!=null?Z:_.CD("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var M;this.hm4=(M=f==null?void 0:f.hm4)!=null?M:function(l){return new v2(l)};
var g;q=(g=f==null?void 0:f.m9A)!=null?g:function(l,m,H){return new NJH(l,m,H)};
this.bgChallenge=oTn(c.bgChallenge);this.ttlSeconds=GqG(xs(c.challenge||""));this.kv=q(this.requestKey,_.F("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.dz.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",c);fxk(this.kv);var O;this.h4g=(O=f==null?void 0:f.h4g)!=null?O:function(l){_.Lx(d.npZ.document,"visibilitychange",function(){d.npZ.document.visibilityState===
"visible"&&l()})}},GCS=function(c){if(!c.vm){var f={maxAttempts:5,
xqf:c.ttlSeconds*1E3};jmk(c.npZ);c.vm=c.hm4({kv:c.kv,evG:{disable:_.F("html5_web_po_disable_remote_logging"),qJ:"aGIf",kvT:QcY("html5_web_po_experiment_ids"),mQ4:_.F("wpo_dis_lfdms")?0:1E3,mVQ:function(q){var Z=Myr.get(q);Z||(Z=new Zl3(q),Z=new sS(Z),Myr.set(q,Z));return Z}},
kAm:f,hI5:c.bgChallenge,bCB:qGM});c.fTz=Date.now();c5H(c.vm,function(){c.fTz=Date.now()});
a5z(c.vm,function(){return _.k(function(q){return q.return(oSi(c))})});
var d=c.q65.bind(c);c.networkStatusManagerPromise&&c.ttlSeconds>0&&c.networkStatusManagerPromise.then(function(q){q.listen("publicytnetworkstatus-online",d)});
c.h4g(d)}};
xQr.prototype.q65=function(){if(Date.now()>this.fTz+this.ttlSeconds*1E3){var c;(c=this.vm)==null||GVH(c)}};
var oSi=function(c){if(c.deG)return c.deG;if(!c.vm)throw Error("nj");c.deG=new W2({vm:c.vm,kv:c.kv,c4c:!0,onError:qGM});return c.deG},MVk=function(c,f){c=new xQr(c,f);
GCS(c);oSi(c)};var nB=function(c,f){this.store=c;this.queue=[];f==null||f.addEventListener("yt-navigate-start",this.reset.bind(this))};
nB.prototype.enqueue=function(c){var f=c.command,d=c.durationMs,q=c.elementToFocus;var Z=c.label;var M=c.elementToFocus;c.command?Z=_.HO("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Z,shortcut:_.HO("SHIFT_PLUS_ENTER")}):M&&(c=Z+". "+_.HO("SHIFT_PLUS_ENTER")+" for more information.",Z=_.HO("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Z,shortcut:_.HO("SHIFT_PLUS_ENTER")},c));d={announcement:Z,durationMs:d!=null?d:8E3};f?d.command=f:q&&(q.classList.add("ephemeral-action-focusable-element"),d.selector=q.tagName+
".ephemeral-action-focusable-element");this.queue.push(d);cvi(this)};
nB.prototype.activate=function(c){var f=_.iEk(this.store.getState());if(f){if(f==null?0:f.command)_.eq(f.command),this.store.dispatch(fTj(null));if(f==null?0:f.selector)f=document.querySelector(f.selector),_.pqr(f);c.preventDefault()}};
var cvi=function(c){if(!_.iEk(c.store.getState())&&c.queue.length){var f=c.queue.shift();f&&(c.previousAnnouncement===f.announcement&&(f.announcement+="\u00a0"),c.store.dispatch(fTj(f)),c.previousAnnouncement=f.announcement,c.timeoutId=setTimeout(function(){if(f.selector){var d;(d=document.querySelector(f.selector))==null||d.classList.remove("ephemeral-action-focusable-element")}c.store.dispatch(fTj(null));cvi(c)},f.durationMs))}};
nB.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(fTj(null));this.queue.length=0;this.timeoutId=void 0};
nB[dE]=[_.WL,_.dx(_.$H)];_.$A=new _.jk("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var fJF=window.AbortController||HX_;var dS3=new _.jk("AUTH_SERVICE_TOKEN");var g14=_.pp(["about:blank"]),Ctn;var QG=new _.jk("API_IFRAME_TOKEN"),jh3=new _.jk("FETCH_FN_TOKEN"),qWF=new _.jk("PARSE_FN_TOKEN"),Zqc=new _.jk("WINDOW_REQUEST_TOKEN"),MPr=new _.jk("TEXT_DECODER_TOKEN");var ZLo;ZLo=new _.jk("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.rvi=new _.jk("MISC_UI_SHARED_FLAGS_TOKEN");var CXi=function(){};
CXi.prototype.getFlag=function(c){if(c.configType!==2)throw Error("oj");return ghD(c)};
var ghD=function(c){switch(c.flagType){case "bool":return _.F(c.flagName);case "int":return _.Xy(_.rx(c.flagName));case "double":return _.rx(c.flagName);case "string":return _.CD(c.flagName);case "int32_list":return QcY(c.flagName);case "int64_list":return QcY(c.flagName).map(function(f){return _.Xy(f)});
case "string_list":return _.gx(c.flagName);default:throw Error("pj");}};var Se=function(c,f,d){f=f===void 0?{}:f;uB.call(this,d===void 0?"uninitialized":d);this.env=c;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}];f.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=f.shouldWaitOnAsyncImmediate)};
_.K(Se,uB);Se.prototype.init=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return f.processPluginOptions.shouldWaitOnAsyncImmediate?q.yield(c(f.env),2):(c(f.env),q.jumpTo(2));if(q.nextAddress!=4)return f.jobSet?q.yield(f.jobSet.completedResolver.promise,4):q.jumpTo(4);d=_.eY();d.parkOrScheduleJob(function(){f.transition("rendering")},10,"ci");
_.Fm(q)})};
Se.prototype.initialRender=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return f.processPluginOptions.shouldWaitOnAsyncImmediate?q.yield(c(f.env),2):(c(f.env),q.jumpTo(2));if(q.nextAddress!=4)return f.jobSet?q.yield(f.jobSet.completedResolver.promise,4):q.jumpTo(4);d=_.eY();d.parkOrScheduleJob(function(){f.transition("rendered")},10,"cr");
_.Fm(q)})};
Se.prototype.afterRenderImmediate=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return f.processPluginOptions.shouldWaitOnAsyncImmediate?q.yield(c(f.env),2):(c(f.env),q.jumpTo(2));if(q.nextAddress!=4)return f.jobSet?q.yield(f.jobSet.completedResolver.promise,4):q.jumpTo(4);d=_.eY();d.parkOrScheduleJob(function(){f.transition("after-render-deferred")},10,"carml");
_.Fm(q)})};
Se.prototype.afterRenderDeferred=function(c){var f=this;return _.k(function(d){c(f.env);_.Fm(d)})};var k8Q;_.Xr("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});k8Q={};_.OqC=(k8Q.CSI=TZn(),k8Q.ECATCHER=i_Y(),k8Q);var lJS={},shD=(lJS.rendered={priority:0,callback:function(c){DdT(c.injector.resolve(nW))}},lJS);var grk=new _.jk("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),B8Q=new _.jk("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var iq3=function(c){this.callbackFnMap=c;this.configMap={}};
iq3.prototype.handleResponse=function(c){var f;if(c=(f=c.responseContext)==null?void 0:f.serviceTrackingParams)for(f=_.C(c),c=f.next();!c.done;c=f.next()){c=c.value;var d=c.params,q=c.service;if(d&&q){this.configMap[q]||(this.configMap[q]=new avH);c=this.configMap[q];var Z=void 0,M=(Z=this.callbackFnMap)==null?void 0:Z[q];d=_.C(d);for(q=d.next();!q.done;q=d.next())Z=q.value,q=Z.key,Z=Z.value,q&&Z&&(c.set(q,Z),M&&M(q,Z))}}};
iq3[dE]=[_.dx(B8Q)];var T8i=!1,FBM=0,m7k=null,YGl=null;var mSQ=new _.jk("NETWORK_SLI_TOKEN");var Hqi=function(c,f,d,q,Z){this.networkSli=c;this.fetchFn=f;this.parseFn=d;this.requestFn=q;this.JSC$18351_textDecoder=Z};
Hqi.prototype.fetch=function(c,f,d){var q=this,Z,M,g;return _.k(function(O){Z=Avq(q,c,f);g=(M=q.fetchFn)!=null?M:fetch;return O.return(g(Z).then(function(l){return q.handleResponse(l,d)}).catch(function(l){_.u6(l);
if((d==null?0:d.expectJsonStrict)&&l instanceof Kt&&l.errorType===1)return Promise.reject(l)}))})};
var BVu=function(c,f,d,q){var Z,M,g,O,l,m,H;return _.k(function(A){switch(A.nextAddress){case 1:return Z=Avq(c,f,d),_.iY(A,2),A.yield(fetch(Z),4);case 4:M=A.yieldResult;_.Pq(A,3);break;case 2:throw _.Yw(A),new Kt(2,"Failed to parse streaming response",Z.url);case 3:if(!M.redirected&&!M.ok)throw(g=c.networkSli)==null||g.failure(),new _.KD("Streaming fetch request not ok",Z.url);if(!M.body)throw new _.KD("No response body in streaming response",Z.url);O={};if(_.F("web_streaming_fast"))return l=M.body.getReader(),
A.return(YWG(c,l,O,q));m=M.body.pipeThrough(new TextDecoderStream).getReader();H=new _.gq;return A.return(FED(c,m,H,FOr,O,q))}})},Avq=function(c,f,d){if(c.networkSli){var q=_.Bq(_.fZ(f,"key"))||"/UNKNOWN_PATH";
c.networkSli.start(q)}q=d;_.F("wug_networking_gzip_request")&&(q=yY4(d));var Z;return new ((Z=c.requestFn)!=null?Z:window.Request)(f,q)},YWG=function(c,f,d,q){var Z,M,g,O,l,m,H,A,Y,t,E;
return _.k(function(J){switch(J.nextAddress){case 1:Z=c.JSC$18351_textDecoder?new c.JSC$18351_textDecoder("utf-8"):new TextDecoder("utf-8"),M="",g=function(X){X=X.trim();X.length!==0&&X!=="]"&&X!=="["?(X.startsWith("[")&&(X=X.substring(1)),X.endsWith("]")&&(X=X.slice(0,-1)),X.endsWith(",")&&(X=X.slice(0,-1)),X=X.trim()):X=void 0;if(X)try{var u=JSON.parse(X);FOr(d,u);q==null||q(d,u)}catch(W){throw new Kt(1,"Failed to parse streaming response",X);}},_.iY(J,2,3);
case 5:return J.yield(f.read(),8);case 8:O=J.yieldResult;l=O.value;if(m=O.done)return M.length>0&&g(M),H=void 0,(H=c.networkSli)==null||H.success(),J.return(d);M+=Z.decode(l,{stream:!0});A=M.split("\n");M=A.pop()||"";Y=_.C(A);for(t=Y.next();!t.done;t=Y.next())E=t.value,g(E);J.jumpTo(5);break;case 3:_.m0(J);f.releaseLock();_.AD(J,0);break;case 2:throw _.Yw(J),new Kt(1,"Failed to parse streaming response");}})},FED=function(c,f,d,q,Z,M){var g,O,l,m,H,A,Y,t,E;
return _.k(function(J){if(J.nextAddress==1)return J.yield(f.read(),2);g=J.yieldResult;O=g.value;if(l=g.done)return(m=c.networkSli)==null||m.success(),J.return(Z);try{H=d.parse(O)}catch(X){throw new Kt(1,"Failed to parse streaming response",O);}if(H!=null)for(A=_.C(H),Y=A.next();!Y.done;Y=A.next())t=Y.value,q(Z,t),E=void 0,(E=M)==null||E(Z,t);return J.return(FED(c,f,d,q,Z,M))})};
Hqi.prototype.handleResponse=function(c,f){var d,q=(d=this.parseFn)!=null?d:JSON.parse;d=c.text().then(function(Z){if((f==null?0:f.jspbResponseCtor)&&c.ok)return hhY(f.jspbResponseCtor,Z);Z=Z.replace(")]}'","");if((f==null?0:f.expectJsonStrict)&&Z)try{var M=q(Z)}catch(O){throw new Kt(1,"JSON parsing failed after fetch");}var g;return(g=M)!=null?g:q(Z)});
c.redirected||c.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),d=d.then(function(Z){_.u6(new _.KD("Error: API fetch failed",c.status,c.url,Z));return Object.assign({},Z,{errorMetadata:{status:c.status}})}));
return d};
Hqi[dE]=[_.dx(mSQ),_.dx(jh3),_.dx(qWF),_.dx(Zqc),_.dx(MPr)];var tPF=new _.jk("NETWORK_MANAGER_TOKEN");var bqF=[1,2,4,8,16,30],Eh3=function(c){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=c.maxTimeMs;this.maxFrameCount=c.maxFrameCount===void 0?Math.ceil(60*c.maxTimeMs/1E3):c.maxFrameCount;c=_.C(bqF);for(var f=c.next();!f.done;f=c.next())this.brokenFrameSummarizers.push(new KEi(f.value/60*1E3))},nhF=function(c){var f=c.frameCountInternal>=c.maxFrameCount;
return c.elapsedTimeMs>=c.maxTimeMs||f};
Eh3.prototype.summarize=function(){for(var c=[],f=_.C(this.brokenFrameSummarizers),d=f.next();!d.done;d=f.next())d=d.value,d=d.brokenFrameCount!==0?{severityMs:Math.round(d.targetFrameTimeMs),eventCount:d.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(d.averageDurationBetweenEventsMs)}:void 0,d&&c.push(d);return{summaries:c,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.ci.Object.defineProperties(Eh3.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 KEi=function(c){this.targetFrameTimeMs=c;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.ci.Object.defineProperties(KEi.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var $SG=function(){};
$SG.prototype.start=function(c,f){var d=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var q=new Eh3({maxTimeMs:c});this.monitor=q;this.lastSummaryInternal=void 0;this.metadataToLog=f;return new Promise(function(Z){var M=function(g){if(g===void 0)d.stop(),Z(void 0);else if(d.monitor!==q)g=Object.assign({},q.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Z(g);else{var O=d.monitor;if(!nhF(O)){O.frameCountInternal++;if(O.prevTime===
void 0)O.startTime=g;else for(var l=g-O.prevTime,m=_.C(O.brokenFrameSummarizers),H=m.next();!H.done;H=m.next()){H=H.value;var A=H.currTimeMs;H.currTimeMs+=l;l>H.targetFrameTimeMs+2&&(H.brokenFrameCount++,H.timeOfFirstBrokenFrameMs===void 0&&(H.timeOfFirstBrokenFrameMs=A),H.timeOfLastBrokenFrameMs=A)}O.prevTime=g}nhF(d.monitor)?Z(d.stop()):_.a7.addJob(M,5,0)}};
_.a7.addJob(M,5,0)})};
$SG.prototype.stop=function(c){if(!this.monitor)return this.lastSummaryInternal;var f=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(f.monitoringDurationMs){c=c!=null?c:this.metadataToLog;var d={droppedFramesSummary:f,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};c&&(d[c.type]=c.data);_.JN("manualSmoothnessMeasurement",d)}this.monitor=void 0;this.lastSummaryInternal=f;this.metadataToLog=void 0;return f};_.Qhr=new _.jk("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var SWi;SWi=function(c){this.JSC$18374_expiringStorage=new nD(c)};
_.LEJ=function(c){if(_.tVG()&&(c=_.m$h(_.t4()+"::"+c)))return new SWi(c)};
SWi.prototype.set=function(c,f,d){d=d!==void 0?Date.now()+d:void 0;this.JSC$18374_expiringStorage.set(c,f,d)};
SWi.prototype.get=function(c){return this.JSC$18374_expiringStorage.get(c)};
SWi.prototype.remove=function(c){this.JSC$18374_expiringStorage.remove(c)};var zhH=new _.jk("SESSION_STORAGE");_.LB=function(){};
_.LB.getInstance=function(){var c=_.D5("ytglobal.storage_");c||(c=new _.LB,_.fu("ytglobal.storage_",c));return c};
_.LB.prototype.estimate=function(){var c,f,d;return _.k(function(q){c=navigator;return((f=c.storage)==null?0:f.estimate)?q.return(c.storage.estimate()):((d=c.webkitTemporaryStorage)==null?0:d.queryUsageAndQuota)?q.return(b_k()):q.return()})};
_.fu("ytglobal.storageClass_",_.LB);var hQe=!!(j7[1]>>14&1);var LBM=0;var v1h=!1;var JvD=_.pp(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),aJr=_.pp(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var vlJ={"/":_.tu,"/?feature=ytca":_.tu,"/feed/downloads":_.MSG};var ma=function(c,f,d){this.JSC$18390_upliftPromise=c;this.store=f;this.JSC$18390_persistentStorePromiseAccessor=d};
ma.prototype.shouldPreferLocalResponse=function(c){return c.browseId==="FEdownloads"||c.browseId==="FEsmart_downloads"&&_.F("kevlar_modern_downloads_page")?!0:!1};
ma.prototype.localInnertubeResponse=function(c){var f=this;return _.k(function(d){return c.browseId==="FEdownloads"?_.F("kevlar_modern_downloads_page")?d.return(VPF(f)):d.return(XUc(f)):c.browseId==="FEsmart_downloads"&&_.F("kevlar_modern_downloads_page")?d.return(uDC(f)):d.return(Promise.reject(Error("rj")))})};
ma.prototype.canProvideFallbackResponse=function(){return!0};
ma.prototype.localFallbackInnertubeResponse=function(c){var f=this,d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:return M.yield(f.JSC$18390_persistentStorePromiseAccessor(),2);case 2:d=M.yieldResult;if(c.browseId!=="SPaccount_downloads"||!d){M.jumpTo(3);break}return M.yield(cGG(d),4);case 4:if(q=M.yieldResult)return M.return(_.Mo(q));case 3:return c.browseId==="FEwhat_to_watch"?M.return(vhC(f)):(Z=_.F("web_offline_continuation_automatic_retry")||_.F("web_offline_continuation_retry_button"))&&
c.continuation?M.return(hhC(f)):M.return(wU3(f))}})};
var vhC=function(c){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(c.JSC$18390_upliftPromise,2);f=_.n2C(c.store.getState().entities);return f.length?d.return(yvc(c,f)):d.return(wU3(c))})},XUc=function(c){var f,d;
return _.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$18390_upliftPromise,2);if(q.nextAddress!=3)return f=WEQ([{offlineItemSectionRenderer:{}}]),q.yield(DSQ(c,f),3);d=q.yieldResult;d.onResponseReceivedActions=[KO("REFRESH_DOWNLOADS")];return q.return(d)})},VPF=function(c){var f,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X;
return _.k(function(u){if(u.nextAddress==1)return u.yield(c.JSC$18390_upliftPromise,2);if(u.nextAddress!=3)return f=c.store.getState(),d=f.entities,q=_.LC(d),Z=_.zh(d),M=_.q2k(f),g=_.jMk(f),O=_.ZtN(f),l=_.S8N(d),m=_.KC(q),H=_.JE(d),A=_.aKM(d),Y=_.r$e(f),t=_.vb(f),E={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.FMC(q,Z,l,A,M,g,m,H,O,Y,t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},J="",_.F("kevlar_modern_downloads_skip_downloads_title")||
(J=_.HO("DOWNLOADS",void 0,"Downloads")),u.yield(ehQ(c,E,J),3);X=u.yieldResult;X.onResponseReceivedActions=[KO("REFRESH_DOWNLOADS")];return u.return(X)})},uDC=function(c){var f,d,q,Z,M,g,O,l,m;
return _.k(function(H){if(H.nextAddress==1)return H.yield(c.JSC$18390_upliftPromise,2);if(H.nextAddress!=3)return f=c.store.getState(),d=f.entities,q=_.LC(d),Z=_.KC(q),M=_.JE(d),g={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.bIM(q),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},O=_.HO("SMART_DOWNLOADS",void 0,"Smart downloads"),l=A_z(Z,M),H.yield(ehQ(c,g,O,l),3);m=H.yieldResult;m.onResponseReceivedActions=
[KO("REFRESH_DOWNLOADS")];return H.return(m)})},wU3=function(c){var f,d;
return _.k(function(q){if(q.nextAddress==1)return q.yield(Zh(c.JSC$18390_upliftPromise,c.store),2);f=q.yieldResult;d=WEQ([pcz(f)]);return q.return(DSQ(c,d))})},hhC=function(c){var f,d,q,Z;
return _.k(function(M){if(M.nextAddress==1)return f={},d=c.store.getState().continuation.continuationCommand,_.vh(f,_.Pr,d),M.yield(Zh(c.JSC$18390_upliftPromise,c.store,f,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);q=M.yieldResult;Z={};_.vh(Z,_.hqy,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:q}}}],targetId:"browse-feedFEwhat_to_watch"});return M.return({responseContext:{},onResponseReceivedActions:[Z]})})},WEQ=function(c){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:c}}}}]}}},yvc=function(c,f){var d,q;
return _.k(function(Z){var M={contents:Eo(f)};d=M&&M.contents?M:{};_.F("kevlar_modern_downloads_page")&&(d=Object.assign({},_.KMC(f),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:d}}}]}};return Z.return(DSQ(c,q))})},DSQ=function(c,f){var d,q;
return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(c.JSC$18390_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return d=Z.yieldResult,Z.yield(rO(d),3);q=Z.yieldResult;return Z.return({responseContext:{},contents:f,topbar:q})})},ehQ=function(c,f,d,q){var Z,M;
return _.k(function(g){if(g.nextAddress==1)return g.yield(c.JSC$18390_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3)return Z=g.yieldResult,g.yield(rO(Z),3);M=g.yieldResult;var O=g.return;var l=d;var m=q;l=l===void 0?"":l;m=m===void 0?"":m;l={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:l}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.HO("SETTINGS",void 0,"Settings"),accessibilityText:_.HO("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:fC("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:m}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:l};
return O.call(g,{responseContext:{},contents:f,topbar:M,header:{pageHeaderRenderer:l}})})};var N8D=function(){this.moduleRegistry={};this.fetchCount=0};
N8D.prototype.isFetching=function(){return this.fetchCount>0};
var W5=function(c,f){c.moduleRegistry[f.toString()]={asyncId:f,isFetching:!1};return c};
N8D.prototype.JSC$18401_loadModules=function(){for(var c=this,f=new Map,d=[],q=_.C(_.hv.apply(0,arguments)),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var M=this.moduleRegistry[Z];M?M.resolver?f.set(Z,M.resolver):(M.resolver=new _.BS,f.set(Z,M.resolver),d.push(M.asyncId),M.isFetching=!0):(M=new _.BS,f.set(Z,M),M.resolve(void 0))}d.length&&(this.fetchCount+=1,_.QS(_.O2.getMultipleAsync.apply(_.O2,_.LT(d)).then(function(g){for(var O=0;O<d.length;O++){var l=g[O],m=c.moduleRegistry[d[O].toString()];m.isFetching=
!1;m.resolver.resolve(l)}}).catch(function(g){for(var O=_.C(d),l=O.next();!l.done;l=O.next()){l=l.value;
var m=c.moduleRegistry[l.toString()];m.resolver=void 0;m.isFetching=!1;f.get(l.toString()).reject(g)}}),function(){--c.fetchCount}));
return Promise.all([].concat(_.LT(f.values())).map(function(g){return g.promise}))};_.Dh=new _.jk("MODULE_REGISTRY_TOKEN");var IJF={},PXr=(IJF.rendered={priority:0,callback:function(c){a:{var f=void 0;try{var d;b:{if(_.r6C()){var q=_.TWl(_.t4()+"::pom");if(q){var Z=new Lt(q);break b}}Z=void 0}var M=(d=Z)==null?void 0:d.get("role_text");if(!M)break a;f={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:M}]}}}}}}catch(l){}f&&c.injector.resolve(_.ZM).resolveCommand(f)}try{var g=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(g){var O=JSON.parse(g);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
O&&c.injector.resolve(_.ZM).resolveCommand(O)}}catch(l){}}},IJF);var Rh3,USi={},pUq=(USi.initialized={priority:10,callback:function(){Rh3=SJ()}},USi.rendering={callback:function(c){var f;
return _.k(function(d){if(d.nextAddress==1)return d.yield(Rh3,2);f=d.yieldResult;if(!f.endpoint)throw Error("tj`"+_.dz.location.href);av(c,f);_.Fm(d)})}},USi);var xSF={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(_.LT(_.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(c){var f=c.stack;if(f.includes("chrome://")||f.includes("chrome-extension://")||c.message.includes("chrome-extension://")||f.includes("moz-extension://")||f.includes("local.adguard.org")||f.includes("auctioneer3.50million.club")||f.includes("youtubedownloader")||f.includes("youtube_home_page")||f.includes("is_youtube_video_no_longer_available")||
f.includes("switchScreenSizeHack")||f.includes("yt_main_big_banner.js")||f.includes("YouTubeCenter.js")||f.includes("/mytube.js")||f.includes("JSON.parseWrapper")||f.includes("/inj_js/common.js")||f.includes("firebug-lite")||f.includes(".repl.co/")||f.includes("linkfix")||f.includes("playAfterAd")||c.message.includes("Access is denied for this document")&&f.includes("<anonymous>")||c.fileName==="user-script"||c.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
f.includes("<anonymous>"))return!0;if(f.includes("https://www.youtube.com"))return!1;c=f.split("\n");if(!c.length)return!1;if(c.length<=3&&f.includes("s.onloadeddata"))return!0;f=0;for(var d=_.C(c),q=d.next();!q.done;q=d.next())q=q.value,(q.includes("https://")||q.includes("http://"))&&f++;return f/c.length>.95},
weight:0},{callback:function(c){return c.message==="Unknown Error"&&c.name.indexOf("NS_")===0},
weight:100},{callback:function(c){if(!_.OJ)return!1;var f=c.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||c.message.includes("available to complete this operation"),d=c.stack.includes("webcomponents")&&c.message==="Object doesn't support this action";c=c.message.includes("object that does not implement interface Element");return f||d||c},
weight:0},{callback:function(c){return c.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(c){return c.message==="Operation is not supported"&&(c.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(c){return c.stack.includes("eval code (eval (code:1:1)")||c.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(c){return c.message.includes("Permission denied")&&c.stack.includes("this.domHandler")?!0:c.name.includes("TypeError")&&c.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(c){if(!c.stack)return!1;var f=c.stack.trim().split("\n");f.length&&f[0].endsWith("Error: "+c.message)&&f.shift();f.length&&f[f.length-1].includes("at window.onerror (")&&f.pop();if(!f.length)return!0;if(c.message==="Script error.")return f[0].includes("www.youtube.com")||f.length>=2&&f[0].startsWith("at new")&&f[1].startsWith("at window.onerror");if(c.message==="Unexpected token")return!0;c=_.C(f);for(f=c.next();!f.done;f=c.next())if(f=f.value,!(f.includes("<anonymous>")||
f.startsWith("load@")||f.startsWith("global code@")||f.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(c){return c.message==="Cannot read property 'experiments'"&&c.stack.includes("/s/player/")},
weight:500},{callback:function(c){return c.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(c){return c.stack.includes("/embed.js")?(c.params&&c.params&&(c.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.F("use_error_suppression"))var c=_.hk("SUPPRESS_CLIENT_ERRORS",!1);else{if(c=_.m8)c=/Chrome\/(\d+)/.exec(_.TY()),c=(c?parseFloat(c[1]):NaN)>=66;c=!(c||_.TK&&_.Bg(65)||_.wx&&_.Bg(12.1)||Gf&&_.Bg(79))}return c},
weight:500}]};var ohC={},G8i=(ohC.initialized={priority:10,callback:function(c){c.injector.addProvider({provide:Civ,useValue:c.root});c.injector.addProvider({provide:QKC,useValue:Oar});c.injector.addProvider({provide:S3p,useValue:xSF});var f={};c.injector.addProvider((f.provide=LTC,f.useFactory=function(d,q){return function(){B0n(d,q)}},f[dE]=[QKC,
S3p],f));c.injector.addProvider({provide:A2,useClass:A2})}},ohC);var cDr={},fdC=(cDr.initialized={priority:3,callback:function(){var c;if(c=gCP()){c=c.replace("/",".");var f=_.Ft();f.set("tz",c);f.save();c=!0}else c=!1;c||(c=_.Ft(),c.set("utco",-Math.floor((new Date).getTimezoneOffset())),c.save())}},cDr);var dOq={},jZq=(dOq.initialized={priority:10,callback:function(c){c.injector.resolve(A2).start();c=_.PS();var f=_.wi("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.wi("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.wi("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.wi("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.s_(_.VkC(),{mainAppWeb:Object.assign({},c,{pageType:f})});_.s_(uek(),{mainAppWeb:Object.assign({},c,{pageType:f})});
_.s_(v3P(),{mainAppWeb:c});_.s_(hOr(),{mainAppWeb:c});fBu(function(){_.B5(v3P(),"FAILURE");_.B5(hOr(),"FAILURE")});
cgk();fIr();xez()}},dOq);var qli={},ZTF=(qli.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.V_("dl"),_.eY().processSignal("pcl");else{var c=function(){_.V_("dl");_.eY().processSignal("pcl");window.removeEventListener("load",c)};
window.addEventListener("load",c)}}},qli);var M8r={},rDD=(M8r.rendering={priority:0,callback:function(){var c=_.eY();c.parkOrScheduleJob(function(){c.processSignal("eocs")},10,"eor",5E3)}},M8r);var CYH=function(){};
_.K(CYH,DT);
CYH.prototype.resolveCommand=function(c,f){var d,q,Z,M,g,O,l,m;return _.k(function(H){Z=(d=_.b(c,_.QJ3))==null?void 0:(q=d.dialog)==null?void 0:q.commentReplyDialogRenderer;if(!Z)throw new _.KD("No dialog in createCommentReplyDialogEndpoint");g=(M=f.form)==null?void 0:M.event;if(!g)throw new _.KD("Event not passed in when resolving command");O=_.C(g.composedPath());for(l=O.next();!l.done;l=O.next())if(m=l.value,m.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||m.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return m.showReplyDialog(Z),H.return();
_.Fm(H)})};var zk=function(c){this.pageRequestService=c;this.JSC$18416_prefetchCoordinator=ijG()};
_.K(zk,DT);zk.prototype.resolveCommand=function(c){var f=this,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1){d=_.b(c,Cqy);if((q=d)==null||!q.taskId)throw Error("uj");Z=d.taskId;_.iY(g,2);return g.yield(_.qI3(f.pageRequestService,c,{},"").then(function(O){if(!O)throw Error("vj");},function(O){throw Error("wj`"+O);
}),4)}if(g.nextAddress!=2)return HjH(f.JSC$18416_prefetchCoordinator,Z),_.Pq(g,0);
M=_.Yw(g);CB(f.JSC$18416_prefetchCoordinator,Z,M);_.Fm(g)})};
zk[dE]=[QN];var JO=function(c){this.innertubeTransportService=c};
_.K(JO,DT);JO.prototype.resolveCommand=function(c){var f=this,d,q;return _.k(function(Z){d=_.b(c,MY_);if(d.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||d.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")q=d.boolValue?2:1,_.jY.getInstance().setState(q,!0,!0);return Z.yield(_.G3(f.innertubeTransportService,c),0)})};
JO[dE]=[_.uo];var ax=function(c){this.innertubeTransportService=c};
_.K(ax,DT);ax.prototype.resolveCommand=function(c){var f=this,d,q;return _.k(function(Z){d=_.b(c,LpF);if(!d)return Z.return();q=[];d.contentCommand&&q.push(_.G3(f.innertubeTransportService,d.contentCommand));d.watchCommand&&q.push(_.G3(f.innertubeTransportService,d.watchCommand));return Z.yield(Promise.all(q),0)})};
ax[dE]=[_.uo];var VG={},gwF=(VG.addToPlaylistEndpoint=cb(V3),VG.addToToastAction=cb(hz),VG.adsControlFlowOpportunityReceivedCommand=cb(TO),VG.backgroundAudioPlaybackCommand=cb(Uq),VG.captionLanguageSelectActionCommand=cb(pK),VG.captionPickerEndpoint=cb(xy),VG.changeMiniAppPlayStateCommand=cb(XG),VG.changeTimelyActionVisibilityCommand=cb(vG),VG.channelCreationFormEndpoint=cb(Q3),VG.clearLocationCommand=cb(aC),VG.clearUrlParamCommand=cb(uv),VG.copyLinkCommand=cb(jN),VG.copyTextEndpoint=cb(AJ),VG.createCommentReplyDialogEndpoint=
W3N(CYH),VG.createPlaylistServiceEndpoint=cb(q4),VG.dismissDialogEndpoint=cb(hJ),VG.dismissPlayerOverlayCommand=cb(oC),VG.entityUpdateCommand=cb(FG),VG.feedbackEndpoint=cb(KK),VG.getAnswerCommand=cb(br3),VG.getPaymentsClientTokenCommand=cb(WG),VG.getTranscriptEndpoint=cb(wV),VG.googlePaymentBillingCommand=cb(DY),VG.googlePaymentPurchaseManagerCommand=cb(eN),VG.hideEngagementPanelEndpoint=cb(wp),VG.hideSnackbarCommand=cb(LJ),VG.insertRichSectionCommand=cb(LK),VG.learningJourneyCanvasCommand=cb(ax),
VG.listMutationCommand=cb(zO),VG.logGtmCommand=cb(S1),VG.notifyDropdownOptionSelectedCommand=cb(vM),VG.openAdAllowlistInstructionCommand=cb(_.mr),VG.openOnePickAddVideoModalCommand=cb(ZY),VG.persistSubscriptionsDisplayPreferencesCommand=cb(Ov),VG.pingingEndpoint=cb(HM),VG.playlistEditEndpoint=cb(rV),VG.playlistVotingRefreshPopupCommand=cb(CJ),VG.profileCardCommand=cb(iv),VG.refreshPanelEndpoint=cb(y3),VG.saveImageToDeviceEndpoint=cb(Yy),VG.scrollToSectionEndpoint=W3N(KhS),VG.seekToVideoTimestampCommand=
cb(GO),VG.selectCountryCommand=cb(lQ),VG.setCookieCommand=cb(sv),VG.setLocalStorageCommand=cb(Jz),VG.setPrefStorageEntryCommand=cb(iQ),VG.setSettingEndpoint=cb(JO),VG.sfvAudioItemPlaybackCommand=cb(cG),VG.shareImageCommand=cb(Tj),VG.sharingProviderDataCommand=cb(ms),VG.showCaptionLanguageSelectActionCommand=cb(fJ),VG.showDialogCommand=cb(e1),VG.showEngagementPanelEndpoint=cb(NW),VG.showSheetCommand=cb(IC),VG.showSnackbarCommand=cb(zj),VG.showTransientPlayerScrimOverlayCommand=cb(dV),VG.submitFormWithValidationFlowCommand=
cb($y),VG.talkToRecsDeselectCommand=cb(aq),VG.talkToRecsNextCommand=cb(VB),VG.talkToRecsSelectCommand=cb(Xp),VG.talkToRecsUpdateTextCommand=cb(uQ),VG.toggleEngagementPanelCommand=cb(PM),VG.undoFeedbackEndpoint=cb(nK),VG.updateEngagementPanelContentCommand=cb(RC),VG.updateUrlParamCommand=cb(yB),VG.verifyCommand=cb(Q3),VG.webNativeShareCommand=cb(HG),VG.webSubmitFormCommand=cb(gV),VG.ACK_PLAYABLES_3P_DATA_CONSENT=cb(Az),VG.CANCEL_NAVIGATION=cb(Yj),VG.COPY_SHARE_URL=cb(Fp),VG.MINI_APP_EXIT_DIALOG_SEEN=
cb(bQ),VG.MINI_APP_OPEN_URL=cb(tz),VG.REQUEST_MINI_APP_FULLSCREEN=cb(KJ),VG.RESUME_NAVIGATION=cb(Ev),VG.SHARE_PLAYABLE_WITH_HIGH_SCORE=cb(nJ),VG.TELL_US_WHY=cb(Eq),VG);_.F("web_enable_prefetching_videos_on_home")&&(gwF.prefetchWatchCommand=cb(zk),gwF.registerTasksCommand=cb(OZ));_.F("enable_share_panel_navigation_logging_fix_on_web")&&(gwF.shareEntityServiceEndpoint=cb(WM));var l3_=Object.assign({},gwF);var k5D={},OTC=(k5D.initialized={priority:10,callback:MTe},k5D);var ldC={},sZC=(ldC.initialized={callback:function(c){var f={},d={};iBh().install((f.document_disposed={callback:function(){_.F("finalize_all_timelines")?MgG():zi();H_M("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.nAe();var q=c.injector.resolve(A2);q.intervalId!==void 0&&(q.intervalId&&_.a7.cancelJob(q.intervalId),q.intervalId=void 0,--q.currentPartitionIndex,q=pEK(q),q>0&&G1T({mainAppWeb:_.PS(),survivalSli:{partitionMinute:q,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));NTj(RE);UB!=null&&
UB.flush();CX&&CX.snapshotAndFlush();q=_.C(Myr.values());for(var Z=q.next();!Z.done;Z=q.next())Z.value.snapshotAndFlush()}},f),(d.flush_logs={callback:function(){_.ab()}},d))}},ldC);var Bd3={},iTC=(Bd3.rendered={priority:0,callback:function(){var c=new v6T;c.increment("STARTED");if(_.hk("LOGGED_IN")&&_.hk("SERVER_VERSION")!=="test"&&_.hk("SERVER_VERSION")!=="dev"&&!To3()&&!ijK()){c.increment("EXECUTING");var f=document.createElement("iframe");f.style.display="none";_.ZTM(f,2,_.XD("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.hk("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(f);c.increment("DONE")}}},Bd3);var Tdq={},mO3=(Tdq.rendered={callback:function(){ijG().resume()}},Tdq);var HTD={acknowledgeChannelTouStrikeCommand:nX(A0),addToPlaylistServiceEndpoint:nX(ty),addToPlaylistEndpoint:nX(ty),addUpcomingEventReminderEndpoint:nX(ad),browseEndpoint:nX(olr),channelCreationFormEndpoint:nX(lD),channelCreationServiceEndpoint:nX(s9),claimLegacyYoutubeChannelEndpoint:nX(Gj),clearSearchHistoryEndpoint:nX(nP),clearWatchHistoryEndpoint:nX($W),commerceActionCommand:$0(eH),createBackstagePostEndpoint:nX(PG),createBroadcastCommand:nX(VP),createCommentEndpoint:nX(CP),createCommentReplyEndpoint:nX(rw),
createLiveChatPollEndpoint:nX(XP),createPlaylistServiceEndpoint:nX(bN),crossAccountChannelTransferEndpoint:nX(LP),deleteLiveChatMessageCommand:nX(uD),deletePlaylistEndpoint:nX(Kk),deleteVideoEndpoint:nX(wm),dismissalEndpoint:nX(YW),feedbackEndpoint:nX(FP),flagEndpoint:nX(Lk),getAccountSwitcherEndpoint:nX(Sa),verifyCommand:nX(Iq),getAccountsListInnertubeEndpoint:nX(J0),getCommentsFromInboxCommand:nX(Zt),getDownloadActionCommand:nX(lN),getFlowCommand:$0(E9),getKidsBlocklistPickerCommand:nX(zI),getNotificationMenuEndpoint:nX(fOS),
getPaymentInstrumentsParamsCommand:nX(pk),getPaymentsClientTokenCommand:$0(eH),getPdgBuyFlowCommand:nX(YB),getReportFormEndpoint:nX(Jy),getSearchInVideoCommand:nX(XU),getAnswerCommand:nX(Vi),getSurveyCommand:nX(hy),getTranscriptEndpoint:nX(WF),getPostVideoPreviewEndpoint:nX(Uv),decorateMessageEndpoint:nX(Rq),likeEndpoint:nX(Bp),liveChatActionEndpoint:nX(yP),liveChatEndpoint:nX(ww),liveChatItemContextMenuEndpoint:nX(vp),liveChatPurchaseMessageEndpoint:nX(Wp),liveChatReplayEndpoint:nX(h0),manageLiveChatUserEndpoint:nX(ea),
metadataUpdateCommand:nX(jH),moderateLiveChatEndpoint:nX(NJ),modifyChannelNotificationPreferenceEndpoint:nX(gm),notificationOptOutEndpoint:nX(kB),openSuperStickerBuyFlowCommand:nX(DN),performCommentActionEndpoint:nX(qJ),playlistEditEndpoint:nX(nk),playlistEditorEndpoint:nX(EY),recordNotificationInteractionsEndpoint:nX(OY),reelWatchEndpoint:nX($B),refreshPanelEndpoint:nX(BF),removeUpcomingEventReminderEndpoint:nX(G$),resolveLocationCommand:nX(dm),revealBusinessEmailCommand:nX(cp),searchEndpoint:nX(_.dHq),
sendLiveChatMessageEndpoint:nX(cF),sendLiveChatVoteEndpoint:nX(fk),setSettingEndpoint:nX(iD),shareEntityServiceEndpoint:$0(Hp),sharingProviderDataCommand:nX(vF),showEngagementPanelEndpoint:nX(iN),showMoreDrawerCommand:nX(mO),showSheetCommand:nX(HF),showDialogCommand:nX(TI),subscribeEndpoint:nX(T$),transcriptSubmitCaptionCorrectionCommand:nX(yi),undoFeedbackEndpoint:nX(bD),unsubscribeEndpoint:nX(m7),updateBackstagePostEndpoint:nX(xj),updateCommentEndpoint:nX(kW),updateCommentReplyEndpoint:nX(gw),updateCommentsSettingsEndpoint:nX(O9),
updateCreatorChannelInnertubeCommand:nX(dw),updateKidsBlacklistEndpoint:nX(ay),updateEngagementPanelContentCommand:nX(Ay),updatePdgFeatureEnablementCommand:nX(FU),updatedMetadataEndpoint:nX(qm),validateChannelHandleCommand:nX(ja),updateChannelPageSettingsEndpoint:nX(fP),verifyAgeEndpoint:nX(KP),watchEndpoint:$0(A$),whitelistEditEndpoint:nX(Dt),ypcCancelRecurrenceEndpoint:nX(Nm),ypcCompleteTransactionEndpoint:nX(Iy),ypcFixInstrumentEndpoint:nX(Ry),ypcGetCartEndpoint:nX(PF),ypcGetOffersEndpoint:nX(UY),
ypcHandleTransactionEndpoint:$0(xB),ypcLogWalletAnalyticDataEndpoint:nX(oy),ypcOffersEndpoint:nX(GI),ypcPauseSubscriptionCommand:nX(cE),ypcRedeemCodeEndpoint:nX(fB),ypcResumeSubscriptionCommand:nX(da),ypcUpdateFopEndpoint:nX(Ry)},X6={},ADG=(X6.GET_ACCOUNT_MENU=nX(z$),X6.GET_NOTIFICATIONS_MENU=nX(c3i),X6.GET_NOTIFICATIONS_INBOX=nX(Mm),X6.GET_UNSEEN_NOTIFICATION_COUNT=nX(Ck),X6.GET_USER_MENTION_SUGGESTIONS=nX(pJ),X6.LOAD_GUIDE=nX(GYp),X6.SUBMIT_FEEDBACK=nX(t0),X6),uu={},Ylr=(uu.CONTINUATION_REQUEST_TYPE_BROWSE=
nX(oq),uu.CONTINUATION_REQUEST_TYPE_SEARCH=nX(uN),uu.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=nX(FQ),uu.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=nX(QP),uu.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=nX(MJ),uu.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=nX(ZN),uu.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=nX(SH),uu.CONTINUATION_REQUEST_TYPE_GET_PANEL=nX(sY),uu),F03={player:$0(A$),watchNext:nX(YH)},t8i={player:$0(A$),reelItemWatch:nX($B),reelWatchSequence:nX(Qi)},bTr={watchEndpoint:$0(t$)},K0J=
{commandEndpointMap:HTD,signalEndpointMap:ADG,continuationEndpointMap:Ylr,watchEndpointMap:F03,reelWatchEndpointMap:t8i,streamingEndpointMap:bTr};var EwC,nwJ,$OD;_.QZi=((nwJ=(EwC=window).matchMedia)==null?void 0:($OD=nwJ.call(EwC,"(prefers-reduced-motion: reduce)"))==null?void 0:$OD.matches)||!document.startViewTransition;var Sl3={disableAllTransitions:_.QZi,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 L0H=_.pp("\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(",")),zUi=function(c){this.viewTransitionCoordinator=c;this.isBrowseTransitionEnabled=_.CD("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){c=_.rx("web_page_transition_exit_ms");var f=_.rx("web_page_transition_wait_ms"),
d=_.rx("web_page_transition_enter_ms"),q=_.rx("web_page_transition_watch_exit_ms"),Z=_.rx("web_page_transition_watch_wait_ms"),M=_.rx("web_page_transition_watch_enter_ms");if(!isNaN(c)||!isNaN(f)||!isNaN(d))if(c=zRl(L0H,c,f,d,q,Z,M))f=document.createElement("style"),f.textContent=k5N(c),document.head.appendChild(f)}};
zUi.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var c={};this.viewTransitionCoordinator.registerElement(document.documentElement,(c.slide="root-slide",c["lockup-to-watch"]="root-lockup-to-watch",c["learning-journey"]="root-learning-journey",c))}};
_.szT=function(c,f){c.isLockupToWatchTransitionEnabled&&c.isLockupThumbnailRegistrationEnabled&&(c.registeredLockupThumbnail?c.lockupThumbnailRegisteredFromWatchEndpoint?_.u6(new _.KD("Lockup thumbnail registration order is incorrect.")):_.u6(new _.KD("Lockup thumbnail already registered.")):(c.registeredLockupThumbnail=f,_.JDF(c,f)))};
_.JDF=function(c,f){var d={};c.viewTransitionCoordinator.registerElement(f,(d["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",d),!0)};
zUi[dE]=[AHc];var rgM={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 gJ4=["videoPrimaryInfoRenderer","title"],kTY=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var adp;adp=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.V8c=_.dN(function(c){c=_.ch(c,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var f=c.data,d=c.playlistData,q=c.expanded,Z=c.onExpandClick,M=c.isReadyToResume,g=function(){var H;return!((H=d())==null||!H.contents)},O=function(){var H=d();
return H&&H.totalVideos&&H.currentIndex!==void 0?H.currentIndex+1+" / "+H.totalVideos:""};
c=_.Ks(function(){_.vE(_.ql().resolve(_.yN));return!1});
var l=_.Ks(function(){g()&&Z&&Z()}),m={};
return _.B("ytd-miniplayer-info-bar",{class:_.FY("ytdMiniplayerInfoBarHost",(m.ytdMiniplayerInfoBarHasPlaylistData=g,m)),"on:click":l},_.B("div",{class:"ytdMiniplayerInfoBarContent"},_.B("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":c},_.B(_.J9,{text:function(){var H=f();var A=d();if(A==null?0:A.contents){var Y;H=(Y=_.ZgG(A))==null?void 0:Y.title}else H=H==null?void 0:H.miniplayerTitle;return lIY(H)},
noEndpoints:!0,ellipsisTruncate:!0})),_.B("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.B(_.T,{cond:M,then:function(){return _.B(MLv,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:adp})}}),_.B("h1",null,_.B(_.J9,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var H=f();var A=d();H=M()?{simpleText:_.HO("CONTINUE_WATCHING",void 0,"Continue watching")}:(A==null?0:A.contents)?A.titleText:H==null?void 0:H.miniplayerSubtitle;return lIY(H)},
noEndpoints:!0,ellipsisTruncate:!0})),_.B(_.T,{cond:function(){return!!O()&&!M()},
then:function(){return _.B("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.B("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.B("span",null,O))}}))),_.B(_.T,{cond:g,
then:function(){return _.B("div",{class:"ytdMiniplayerInfoBarExpand"},_.B(_.iw,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(H){Z&&(Z(),H.stopPropagation())}}},
iconName:function(){return q()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"He");var XkC;XkC=_.dN(function(c){return _.B("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.B(_.iw,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:c.onTap}},
iconName:"yt-icons:close"}))},"Ie");
_.um3=_.dN(function(c){c=_.ch(c,{playabilityStatus:void 0,isDisabled:!1});var f=c.size,d=c.playabilityStatus,q=c.isDisabled,Z=_.xz("div");c=_.C(_.OT(void 0,void 0,"bJr0Se"));var M=c.next().value,g=c.next().value;c=_.N5(_.BZ);var O=!1,l=function(){return f().height<=0};
_.$k(function(){var Y=f(),t=l(),E=M();E&&!t&&E.setInternalSize(Y.width,Y.height)},"OUOyKb");
_.QJ(function(){var Y,t,E;return _.k(function(J){if(J.nextAddress==1){Y=_.ql().resolve(_.yN);t=Y.getPlayerElement();if(!Y.isMiniplayerActive()||!t||!Z.value)return J.return();t.appendTo(Z.value);return J.yield(t.getPlayerPromise(),2)}E=J.yieldResult;E.setSizeStyle(!1,!0);g(E);_.Fm(J)})});
_.Q4(function(){m()});
_.$k(function(){var Y=M();if(Y)if(q()){var t=Y.getPlayerState();(O=t===-1||t===1||t===3)&&Y.pauseVideo()}else m()},"KKHe5");
var m=function(){if(O){O=!1;var Y;(Y=M())==null||Y.playVideo()}},H=_.Ks(function(){_.vE(_.ql().resolve(_.yN))}),A={};
return _.B("ytd-miniplayer-player-container",{class:_.FY("ytdMiniplayerPlayerContainerHost",(A.ytdMiniplayerPlayerContainerHidden=l,A.ytdMiniplayerPlayerContainerHostShortsPip=c,A)),style:_.$Z({width:function(){return f().width+"px"},
height:function(){return f().height+"px"}})},_.B("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Z}),_.B(_.T,{cond:function(){return!!d()&&!_.DyP(d())},
then:function(){return _.B(rIO,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var Y;return((Y=d())==null?void 0:Y.errorScreen)||null},
status:function(){var Y;return((Y=d())==null?void 0:Y.status)||null}})}}),_.B(_.T,{cond:q,
then:function(){return _.B("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":H},_.B(XkC,{onTap:function(){_.ql().resolve(_.yN).close()}}))}}))},"Je");_.vw3=_.dN(function(c){var f=c.toastData;var d=_.xz("ytd-miniplayer-toast");c=_.C(_.ns(function(){return!!f()}));
var q=c.next().value,Z=c.next().value;c=_.C(_.OT(!1,void 0,"xkrBze"));var M=c.next().value,g=c.next().value,O=function(){var H;return _.xC((H=f())==null?void 0:H.data.title)};
_.L9(function(){_.DG.requestAvailability();f()&&Z(!1)});
var l,m;_.$k(function(){q()&&(_.CZ(d.value,"iron-announce",{text:f().label+" "+O()}),l&&_.a7.cancelJob(l),l=_.a7.addLowPriorityJob(function(){g(!0)},2500))},"OTdL1e");
_.$k(function(){M()&&(m&&_.a7.cancelJob(m),m=_.a7.addLowPriorityJob(function(){Z(!1);g(!1)},300))},"yybqib");
c={};return _.B("ytd-miniplayer-toast",{el:d,class:_.FY("ytdMiniplayerToastHost",(c.ytdMiniplayerToastOpening=function(){return q()},c.ytdMiniplayerToastClosing=function(){return M()},c))},_.B(_.T,{cond:function(){var H;
return(H=f())==null?void 0:H.data},
then:function(H){return _.B(BXj,{className:"ytdMiniplayerToastThumbnail",data:H,width:78})}}),_.B("div",{class:"ytdMiniplayerToastInfo"},_.B("div",{class:"ytdMiniplayerToastLabel"},function(){var H;
return(H=f())==null?void 0:H.label}),_.B("div",{class:"ytdMiniplayerToastTitle"},O)))},"Ke");var tTC;var EJG=null;var wk3=_.dN(function(c){var f=c.progressState;var d=c.multiMarkersPlayerBarRenderer;var q=c.progressBarWidth;var Z=function(){return S$k(d())},M=function(){return JgC(f())},g=function(){return q()*(f().playedTime/f().videoDuration)};
return _.B("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.B(_.bd,{each:Z},function(O,l){return _.B(hUQ,{modifiedProps:M,chapters:Z,index:l,playedProgressWidth:g,backgroundGradientPosition:function(){var m=M(),H=Z(),A=l(),Y=g();return(m.playedTime-hK(_.b(H[A],v5)))/m.playedTime*Y}})}))},"Le"),hUQ=_.dN(function(c){var f=c.modifiedProps;
var d=c.chapters;var q=c.index;var Z=c.playedProgressWidth;var M=c.backgroundGradientPosition;c={};c=_.FY("ytChapteredProgressBarChapteredPlayerBarChapter",(c.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return g().isScrubbing},c.ytChapteredProgressBarHoveredMacroMarker=function(){return g().scrubberHovering},c.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return g().videoPosition==="seen"},c));
var g=function(){return aIN(f(),d(),q())},O=function(){var l=f();
var m=d(),H=q();if(aIN(l,m,H).videoPosition!=="active")l=0;else{var A=hK(_.b(m[H],v5));l=(l.playedTime-A)/((hK(_.b(m[H+1],v5))||l.videoDuration)-A)}return l};
return _.B("div",{class:c,style:_.$Z({width:function(){var l=f(),m=d(),H=q(),A=_.b(m[H],v5);m=_.b(m[H+1],v5);return(m?hK(m)-hK(A):l.videoDuration-hK(A))/l.videoDuration*100+"%"},
"background-color":function(){a:{var l=g();switch(l.videoPosition){case "pending":l=l.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":l=l.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:l=""}}return l},
"background-size":function(){return(VTk(g())?Z():"")+"px"},
"background-position-x":function(){return(VTk(g())?M():"")+"px"}})},_.B("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var l=f(),m=d(),H=q();if(aIN(l,m,H).videoPosition==="seen")var A=0;else A=hK(_.b(m[H],v5)),m=hK(_.b(m[H+1],v5))||l.videoDuration,l=l.videoDuration*l.percentLoaded,A=m<=l?1:A>=l?0:(l-A)/(m-A);return"width: "+A*100+"%"}}),_.B("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.$Z({width:function(){return O()*100+"%"},
"background-size":function(){return(VTk(g(),O())?Z():"")+"px"},
"background-position-x":function(){return(VTk(g(),O())?M():"")+"px"}})}))},"Me");var yD3=function(c,f){f=f===void 0?gv3:f;var d,q=[],Z,M=!1;return function(){var g=_.hv.apply(0,arguments);if(M&&d===this&&f(g,q))return Z;Z=c.apply(this,g);M=!0;d=this;q=g;return Z}}(function(c){var f=c.heatMarkers,d=c.minHeightDp===void 0?0:c.minHeightDp,q=c.maxHeightDp===void 0?60:c.maxHeightDp;
var Z=Z===void 0?!1:Z;var M=1E3/f.length;c=[];c.push({x:0,y:100});for(var g=0;g<f.length;g++){var O=void 0,l=((O=_.b(f[g],k13))==null?void 0:O.heatMarkerIntensityScoreNormalized)||0;O=(g+.5)*M;l=100-_.uk(l*100,d/321*100,q/321*100);g!==0||Z||c.push({x:0,y:l});c.push({x:O,y:l});g===f.length-1&&c.push({x:1E3,y:l})}c.push({x:1E3,y:100});f="";for(d=0;d<c.length;d++)Z=c[d],d===0?Z="M "+Z.x.toFixed(1)+","+Z.y.toFixed(1):(q=yGk(c[d-1],c[d-2],Z),M=yGk(Z,c[d-1],c[d+1],!0),Z=" C "+(q.x.toFixed(1)+","+q.y.toFixed(1)+
" "+M.x.toFixed(1)+","+M.y.toFixed(1)+" "+Z.x.toFixed(1)+","+Z.y.toFixed(1))),f+=Z;return f});var W0p=_.dN(function(c){var f=c.progressBarProps;var d=c.config;var q={};c=_.FY("ytHeatSeekerHost",(q.ytHeatSeekerHighContrast=c.highContrast,q));var Z=function(){return mrn(d().chapterData)};
return _.B("yt-progress-bar-heatseeker",{class:c,style:function(){var M;return"height: 320px; display: "+(f().isDragging&&((M=Z())==null?0:M.heatMarkers)?"block":"none")}},_.B(_.T,{cond:Z,
then:function(M){return _.B(_.T,{cond:function(){return M().heatMarkers},
then:function(){return _.B("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.B("path",{d:function(){return yD3(M())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ne");var DOQ=_.dN(function(c){var f=c.progressBarProps;var d=c.config;c={};c=_.FY("ytProgressBarLineProgressBarLine",(c.ytProgressBarLineProgressBarLineRounded=function(){return d().rounded},c.ytProgressBarLineProgressBarLineBottomInset=function(){return d().position===2},c));
return _.B("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.B("div",{class:c},_.B("div",{class:"ytProgressBarLineProgressBarBackground"}),_.B("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+f().percentLoaded*100+"%"}}),_.B("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var q=f();return"width: "+(q.videoDuration?_.uk(q.hoveredTime/q.videoDuration,0,1):0)*100+"%"}}),_.B("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Bsr(f())*100+"%"}})))},"Oe");
DOQ.idomCompat=!0;var eUF=_.dN(function(c){var f=c.progressBarProps;var d=c.playheadData;var q=c.interpolateDotPosition;var Z=c.hidePlayhead;c={};var M=_.FY("ytProgressBarPlayheadProgressBarPlayheadDot",(c.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return f().isDragging},c.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!f().isDragging&&Z()},c));
return _.B("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.$Z({"margin-left":function(){return iwh(f())*100+"%"},
transform:function(){return"translateX(-"+(q()?iwh(f())*12:6)+"px)"}})},_.B(_.T,{cond:function(){var g;
return(g=_.Ga(d)())==null?void 0:g.playheadImage},
then:function(g){var O={};return _.B("div",{class:_.FY("ytProgressBarPlayheadProgressBarPlayheadCustom",(O.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return f().isDragging},O.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!f().isDragging&&Z()},O)),
style:_.$Z({"transform-origin":function(){return(q()?iwh(f())*20:10)+"px center"}})},_.B(_.jC,{data:g,
alt:"","aria-hidden":"true"}))},
else:function(){return _.B("div",{class:M,style:_.$Z({"transform-origin":function(){return(q()?iwh(f())*12:6)+"px center"}})})}}))},"Pe");
eUF.idomCompat=!0;var hO=function(c,f,d,q,Z,M){this.getProgressBarRect=c;this.updateProgressBarRect=f;this.getFilmstripYPosition=d;this.setFineScrubbingDraggedTime=q;this.updateFilmStripDraggedYDistance=Z;this.resetFilmStripYOffset=M;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Gx(this.onThrottledSeek,100,this)},Ndc=function(c,f,d){return function(q){c.handleClick(q,f(),d())}},RUH=function(c,f){return function(d){IdS(c,
d,PYF(d),f())}},UOH=function(c,f){return function(d){IdS(c,d,{x:d.clientX,
y:d.clientY},f())}},xOH=function(c,f,d){return function(q){var Z=f(),M=d();
pki(c,q,PYF(q),Z,M,!0);if(M.onTouchMove)M.onTouchMove(Z)}},G5i=function(c,f,d){return function(q){owq(c,q,f(),d())}},cTS=function(c,f){return function(){c.handleMouseLeave(f())}},fgD=function(c,f,d){return function(){var q=f(),Z=d();
wa(c,q,Z);if(Z.onTouchEnd)Z.onTouchEnd(q)}},dzH=function(c,f,d){return function(){var q=f(),Z=d();
wa(c,q,Z);if(Z.onTouchEnd)Z.onTouchEnd(q)}},j8S=function(c,f,d){return function(){wa(c,f(),d())}},qM3=function(c){return function(f){if(f.keyCode===39||f.keyCode===38){var d,q;
(d=c())==null||(q=d.playerApi)==null||q.seekBy(5,void 0,void 0,72)}else if(f.keyCode===37||f.keyCode===40){var Z,M;(Z=c())==null||(M=Z.playerApi)==null||M.seekBy(-5,void 0,void 0,71)}}},ZGD=function(c,f,d){return function(q){!d().disableScrubbing&&c.startPosition&&owq(c,q,f(),d())}},M5Q=function(c,f,d){return function(){if(!d().disableScrubbing)if(c.startPosition){var q=f(),Z=d();
wa(c,f(),d());if(Z.onTouchEnd)Z.onTouchEnd(q)}else f().setState({isDragging:!1})}},PYF=function(c){c=c.touches[0];
return{x:c.clientX,y:c.clientY}},owq=function(c,f,d,q){if(f.buttons!==1){if(f.movementX||f.movementY)f.preventDefault(),f.stopPropagation(),c=rTq(c,d,f.clientX),d.setState({isHovering:!0,
hoveredTime:c*d.videoDuration})}else C5J(d),pki(c,f,{x:f.clientX,y:f.clientY},d,q,!1)};
hO.prototype.handleMouseLeave=function(c){C5J(c)};
var C5J=function(c){c.isHovering&&c.setState({isHovering:!1,hoveredTime:0})},IdS=function(c,f,d,q){c.startPosition||(c.startPosition=d,c.updateProgressBarRect(),c.controlsWereVisibleBeforeDragging=q.controlsVisible,f.stopPropagation(),_.F("medium_progress_bar_modification")||f.preventDefault())},pki=function(c,f,d,q,Z,M){if(c.startPosition)if(M&&Z.isInlinePlayback&&c.startPosition&&!c.hasDraggedTheMinimumDistance&&Math.abs(d.y-c.startPosition.y)>Math.abs(d.x-c.startPosition.x))wa(c,q,Z);
else if(f.preventDefault(),f.stopPropagation(),q.videoDuration&&(c.startPosition&&!c.hasDraggedTheMinimumDistance&&(c.hasDraggedTheMinimumDistance=Math.abs(d.x-c.startPosition.x)>=1),Z.enableFineScrubbing&&(c.startPosition&&(c.isDraggedForFineScrubbing=-(d.y-c.startPosition.y)>=60),!c.startPosition||d.y>=c.startPosition.y||(q.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:X4N(q.draggedTime,q,Z.chapterData)}),c.setFineScrubbingDraggedTime(q.draggedTime),c.updateFilmStripDraggedYDistance(c.startPosition.y,
d.y,q))),c.hasDraggedTheMinimumDistance)){f=rTq(c,q,d.x);if(c.isDraggedForFineScrubbing){var g;(g=q.playerApi)==null||g.pauseVideo();q.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:q.draggedTime,filmStripXDistance:X4N(f*q.videoDuration,q,Z.chapterData)})}Z.enableFineScrubbing&&(!Z.enableFineScrubbing||c.getFilmstripYPosition(q)<68)||q.setState({draggedTime:f*q.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:c.controlsWereVisibleBeforeDragging});var O;(O=
Z.cancelAutohideControlsFn)==null||O.call(Z)}},wa=function(c,f,d){var q=d.enableFineScrubbing&&f.fineScrubbingActiveState!=="off";
if(f.isDragging||q){q={isDragging:!1,playedTime:f.draggedTime,controlsVisible:c.controlsWereVisibleBeforeDragging};d.enableFineScrubbing&&f.fineScrubbingActiveState!=="on"&&(c.resetFilmStripYOffset(),q.fineScrubbingActiveState="off");var Z=Z===void 0?EJG:Z;var M=_.X2(0);if(M&&Z){var g=Math.round(f.playedTime*1E3),O=Math.round(f.draggedTime*1E3);g>2147483647||O>2147483647||_.UX(M,Z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(g),endMediaTimeMs:String(O),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}f.setState(q);
c.seekThrottle.fire(f.draggedTime,f,7);_.F("mweb_new_progress_bar_play_on_seek")&&c.resumeVideo(f);d.unmuteOnSeek&&(d=f.playerApi,f.volumeMuted&&(d==null||d.unMute()))}else f.setState({controlsVisible:!f.controlsVisible}),(M=d.triggerAutohideControlsAfterDelayFn)==null||M.call(d);c.startPosition=null;c.hasDraggedTheMinimumDistance=!1;c.isDraggedForFineScrubbing=!1;c.controlsWereVisibleBeforeDragging=!1};
hO.prototype.handleClick=function(c,f,d){this.updateProgressBarRect();c.stopPropagation();c=rTq(this,f,c.clientX)*f.videoDuration;f.setState({playedTime:c});if(f.playerState!==2){var q;(q=d.triggerAutohideControlsAfterDelayFn)==null||q.call(d)}this.seekThrottle.fire(c,f,7)};
var rTq=function(c,f,d){c=c.getProgressBarRect(f);return _.uk(0,(d-c.left)/c.width,1)};
hO.prototype.resumeVideo=function(c){if(c.draggedTime<c.videoDuration){var f;(f=c.playerApi)==null||f.playVideo()}};
hO.prototype.onThrottledSeek=function(c,f,d){if(f=f.playerApi){var q;if((q=f.getVideoData())==null?0:q.isLive)q=this.getProgressState(f),c+=(q==null?void 0:q.seekableStart)||0;f.seekTo(c,void 0,void 0,void 0,d)}};
hO.prototype.getProgressState=function(c){var f=c==null?void 0:c.getPresentingPlayerType();return c==null?void 0:c.getProgressState(f)};var OGC,kVi,lgC,Bkr,gc3,iGq,Tkr,mzC,HG3;OGC=_.dN(function(c){var f=c.progressBarProps;var d=c.config;var q=c.progressBarWidthPx;var Z=c.chapterData;var M=ygC(f,function(){return d().isShortsPage}),g=function(){return!f().isHovering&&!d().isShortsPage};
c={};var O=_.FY("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(c.ytPlayerStoryboardHostMwebShorts=function(){return d().isShortsPage&&!1},c));
return _.B("yt-player-storyboard",null,_.B(_.T,{cond:function(){return f().isDragging||f().isHovering},
then:function(){return _.B(_.T,{cond:M,then:function(l){return _.B(_.T,{cond:g,then:function(){return _.B("div",{class:O,"aria-hidden":"true"},_.B(gc3,{props:f,config:d,isBigboard:!0,chapterData:Z}))},
else:function(){return _.B(kVi,{props:f,frame:l,config:d,progressBarWidthPx:q,chapterData:Z})}})}})}}))},"Qe");
_.s8J=_.dN(function(c){var f=c.progressBarProps;var d=ygC(f,c.isShortsPage);return _.B("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.B(_.T,{cond:function(){return f().isDragging||f().isHovering},
then:function(){return _.B(_.T,{cond:d,then:function(q){return _.B(lgC,{frame:q,props:f,isBigboard:!0})}})}}))},"Re");
kVi=_.dN(function(c){var f=c.props;var d=c.frame;var q=c.config;var Z=c.progressBarWidthPx;c=c.chapterData;var M={};M=_.FY("ytPlayerStoryboardHost",(M.ytPlayerStoryboardHostMwebShorts=function(){return q().isShortsPage&&!1},M.ytPlayerStoryboardHostInlinePlayer=function(){return q().isInlinePlayer},M.ytPlayerStoryboardHostFadeIn=function(){return q().useFadeInAnimation},M));
return _.B("div",{class:M,"aria-hidden":"true",style:function(){var g=f(),O=uVz(d()),l=Z();g=vJk(g)/g.videoDuration;var m=l*g,H=O/2+6;O=l-(O/2+6);return"left: "+(m<=H?H/l*100:m>=O?O/l*100:g*100)+"%"}},_.B(_.T,{cond:function(){var g=f();
return!(q().isShortsPage&&g.videoDuration<15)},
then:function(){return _.B(lgC,{frame:d,props:f,isBigboard:!1})}}),_.B(gc3,{props:f,
config:q,isBigboard:!1,chapterData:c}))},"Se");
lgC=_.dN(function(c){var f=c.frame;var d=c.props;var q=c.isBigboard;var Z=function(){var O,l;return(l=(O=d().playerApi)==null?void 0:O.getVideoContentRect())!=null?l:{width:0,height:0}},M=function(){return uVz(f())},g=function(){var O=f();
return O?O.height/O.rows:0};
c={};c=_.FY((c.ytPlayerStoryboardBigboardImageWrapper=q,c.ytPlayerStoryboardStoryboardImageWrapper=function(){return!q()},c));
return _.B("div",{class:c,style:function(){return"width: "+(q()?Z().width:M())+"px; height: "+(q()?Z().height:g())+"px;"}},_.B(Bkr,{frame:f,
storyboardWidth:M,storyboardHeight:g,storyboardScale:function(){return(q()?Z().width:M())/M()}}))},"Te");
Bkr=_.dN(function(c){var f=c.frame;var d=c.storyboardWidth;var q=c.storyboardHeight;var Z=c.storyboardScale;var M=function(){var g=f().row,O=f().column,l=d(),m=q(),H=Z();return{left:-O*l*H,top:-g*m*H}};
return _.B("img",{src:function(){return f().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+M().left+"px; top: "+M().top+"px; width: "+f().width*Z()+"px; height: "+f().height*Z()+"px;"}})},"Ue");
gc3=_.dN(function(c){var f=c.props;var d=c.config;var q=c.isBigboard;var Z=c.chapterData;c={};c=_.FY("ytPlayerStoryboardMetadata",(c.ytPlayerStoryboardMetadataBigboard=q,c));return _.B("div",{class:c},_.B(_.T,{cond:q,then:function(){return _.B(_.qD,null,_.B(iGq,{props:f,config:d}),_.B(_.T,{cond:function(){a:{var M=f();var g=d(),O=Z(),l;if((g==null?0:g.activeChapter)&&((l=_.b(g==null?void 0:g.activeChapter,v5))==null?0:l.title))M=!0;else{g=_.C(HwY(O));for(g=g.next();!g.done;g=g.next()){M=(g=_.b(g.value,
l$u))&&hkl(M,g);break a}M=!1}}return M},
then:function(){return _.B(Tkr,{props:f,config:d,isBigboard:!0,chapterData:Z})}}))},
else:function(){return _.B(_.qD,null,_.B(Tkr,{props:f,config:d,isBigboard:!0,chapterData:Z}),_.B(iGq,{props:f,config:d}))}}))},"Ve");
iGq=_.dN(function(c){var f=c.props;var d=c.config;c={};c=_.FY("ytPlayerStoryboardTimestamp",(c.ytPlayerStoryboardTimestampShorts=function(){return d().isShortsPage},c.ytPlayerStoryboardTimestampIsHovering=function(){return f().isHovering||d().isShortsPage&&!0},c));
return _.B("div",{class:c},_.B(_.qD,null,function(){return _.w4z(vJk(f()))}))},"We");
Tkr=_.dN(function(c){var f=c.props;var d=c.config;var q=c.isBigboard;var Z=c.chapterData;c={};q=_.FY("ytPlayerStoryboardTitle",(c.ytPlayerStoryboardTitleBigboard=q,c));return _.B("div",{class:q},_.B(_.T,{cond:function(){return!d().isShortsPage},
then:function(){return _.B(mzC,{props:f,activeChapter:function(){return d().activeChapter},
chapterData:Z})}}))},"Xe");
mzC=_.dN(function(c){var f=c.props;var d=c.activeChapter;var q=c.chapterData;return _.B(_.qD,null,_.B(_.bd,{each:function(){return HwY(q())},
keyBy:"INDEX"},function(Z){return _.B(_.qD,null,_.B(_.T,{cond:function(){return _.b(Z(),l$u)&&hkl(f(),_.b(Z(),l$u))},
then:function(){return _.B(HG3,{timedMarker:function(){return _.b(Z(),l$u)}})}}))}),_.B(_.T,{cond:function(){var Z;
return d()&&((Z=_.b(d(),v5))==null?void 0:Z.title)},
then:function(Z){return _.B(_.J9,{text:Z,noPreWrap:!0})}}))},"Ye");
HG3=_.dN(function(c){var f=c.timedMarker;return _.B(_.qD,null,_.B("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.B(_.Qy,{icon:function(){return f().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.B(_.J9,{text:function(){return f().label},
noPreWrap:!0}))},"Ze");_.ATD=_.dN(function(c){var f=c.progressBarProps;var d=c.playheadData;var q=c.config;c=_.xz("yt-progress-bar");var Z=_.xz("div"),M=_.xz("div"),g=_.C(_.OT({width:0,left:0},void 0,"NcXsUb")),O=g.next().value,l=g.next().value,m=function(){M.value&&l(M.value.getBoundingClientRect())},H=function(){O().width<=0&&m();
return O()};
du("resize",m);var A=new hO(H,function(){},function(){return 0},function(){},function(){},function(){}),Y=function(){return f()};
g=_.C(_.OT(!1,void 0,"ZsF6Xc"));var t=g.next().value,E=g.next().value;g=_.Ks(function(){E(!0);q().position===2?setTimeout(function(){m()},100):m()});
var J=_.Ks(function(){E(!1);cTS(A,Y)()}),X=_.Ks(function(ue){q().doSeekOnClick&&Ndc(A,Y,q)(ue);
return!1}),u=_.Ks(function(ue){RUH(A,Y)(ue);
return!1}),W=_.Ks(function(ue){UOH(A,Y)(ue);
return!1}),p=_.Ks(function(ue){xOH(A,Y,q)(ue);
return!1}),N=_.Ks(function(ue){G5i(A,Y,q)(ue);
return!1}),I=_.Ks(function(){fgD(A,Y,q)();
return!1}),R=_.Ks(function(){dzH(A,Y,q)();
return!1}),qN=_.Ks(function(){j8S(A,Y,q)();
return!1}),kl=_.Ks(function(ue){qM3(Y)(ue);
return!1});
du("mousemove",ZGD(A,Y,q));du("mouseup",M5Q(A,Y,q));_.L9(function(){nJP(Z.value);E(!1);m();M5Q(A,Y,q)()});
var BN={};BN=_.FY("ytPlayerProgressBarHost",function(){return q().className},(BN.ytPlayerProgressBarHostReadOnly=function(){return q().disableScrubbing},BN.ytPlayerProgressBarHostHidden=function(){return q().hideProgressBar&&!t()},BN.ytPlayerProgressBarHostLowerPlayer=function(){return q().position===0},BN.ytPlayerProgressBarHostBottomEdge=function(){return q().position===1},BN.ytPlayerProgressBarHostBottomInset=function(){return q().position===2},BN.ytPlayerProgressBarHostCustom=function(){return q().position===
3},BN));
var tP={},EC=_.FY("ytPlayerProgressBarBackground",(tP.ytPlayerProgressBarBackgroundHide=function(){return q().position===2&&!t()&&!f().isDragging},tP));
tP={};tP=_.FY("ytPlayerProgressBarDragContainer",(tP.ytPlayerProgressBarDragContainerBottomEdge=function(){return q().position===1},tP));
var AP={};AP=_.FY("ytPlayerProgressBarProgressBar",(AP.ytPlayerProgressBarProgressBarInset=function(){return q().position===2},AP.ytPlayerProgressBarProgressBarInsetMinimized=function(){return q().position===2&&!t()&&!f().isDragging},AP));
var eM=function(){return Math.floor(Bsr(f())*100)};
return _.B("yt-progress-bar",{el:c,class:BN},_.B(_.T,{cond:function(){return q().position===2},
then:function(){return _.B("div",{class:EC})}}),_.B("div",{el:Z,
"on:click":X,"on:touchstart":u,"on:touchmove":p,"on:mouseenter":g,"on:mousedown":W,"on:mouseleave":J,"on:mousemove":N,"on:mouseup":R,"on:touchend":I,"on:touchcancel":qN,"on:keydown":kl,class:tP,role:"slider","aria-valuenow":eM,"aria-valuetext":function(){return eM()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return f().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.HO("SEEK_SLIDER")},_.B("div",{el:M,class:AP},_.B(W0p,{progressBarProps:f,config:q,highContrast:function(){return!!q().isInlinePlayback}}),_.B(_.T,{cond:function(){return q().chapterData&&Agk(q().chapterData)},
then:function(){return _.B(wk3,{progressState:f,multiMarkersPlayerBarRenderer:function(){return q().chapterData},
progressBarWidth:function(){return O().width}})},
else:function(){return _.B(DOQ,{progressBarProps:f,config:q})}}),_.B(eUF,{progressBarProps:f,
playheadData:d,interpolateDotPosition:function(){return q().position!==2},
hidePlayhead:function(){return q().playheadDotBehavior===1&&!t()}}))),_.B(OGC,{progressBarProps:f,
config:function(){return{activeChapter:zkM(f(),q().chapterData),getProgressBarWidthPx:function(){return H().width},
isShortsPage:!!q().isShortsPage,isInlinePlayer:!!q().isInlinePlayback,useFadeInAnimation:!!q().isInlinePlayback}},
progressBarWidthPx:function(){return O().width},
chapterData:function(){return q().chapterData}}))},"$e");
_.ATD.idomCompat=!0;Object.assign({},_.Y$k(),{setState:function(){},
domMeasurements:{},appApi:_.sIG(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var YMC;
_.FCQ=_.dN(function(){var c,f=(c=_.wO(WVz().playerApi))!=null?c:void 0;c=_.C(_.OT(!1,void 0,"HLFBmb"));var d=c.next().value,q=c.next().value;c=_.C(_.OT(!1,void 0,"lHH9bc"));var Z=c.next().value,M=c.next().value;c=_.C(_.OT(!1,void 0,"zsY7yd"));var g=c.next().value,O=c.next().value;c=_.C(_.OT(!1,void 0,"KeHQgc"));var l=c.next().value,m=c.next().value;c=_.C(_.OT(0,void 0,"gLLCj"));var H=c.next().value,A=c.next().value;c=_.C(_.OT(0,void 0,"s3RYkf"));var Y=c.next().value,t=c.next().value;c=_.C(_.OT(!1,void 0,
"Dn608e"));var E=c.next().value,J=c.next().value;c=_.C(_.OT(0,void 0,"AnkH1b"));var X=c.next().value,u=c.next().value;c=_.C(_.OT(0,void 0,"QYNL0b"));var W=c.next().value,p=c.next().value;c=_.C(_.OT("",void 0,"Yzw45d"));var N=c.next().value,I=c.next().value;c=_.C(_.OT(-1,void 0,"iiVI0c"));var R=c.next().value,qN=c.next().value,kl=_.TZ(function(){var BN={controlsVisible:d(),isOverlayHidden:Z(),shouldWaitToHideControls:g(),isDragging:l(),isHovering:E(),videoDuration:X(),playedTime:W(),videoId:N(),draggedTime:Y(),
hoveredTime:H(),playerState:R()};return Object.assign({},_.Y$k(),BN,{domMeasurements:{},setState:function(tP){tP.controlsVisible!==void 0&&q(tP.controlsVisible);tP.isOverlayHidden!==void 0&&M(tP.isOverlayHidden);tP.shouldWaitToHideControls!==void 0&&O(tP.shouldWaitToHideControls);tP.isDragging!==void 0&&m(tP.isDragging);tP.isHovering!==void 0&&J(tP.isHovering);tP.draggedTime!==void 0&&t(tP.draggedTime);tP.hoveredTime!==void 0&&A(tP.hoveredTime);tP.videoDuration!==void 0&&u(tP.videoDuration);tP.playedTime!==
void 0&&p(tP.playedTime);tP.videoId!==void 0&&I(tP.videoId);tP.playerState!==void 0&&qN(tP.playerState)},
appApi:_.sIG(),playerApi:f})},void 0,"ZW7y9");
_.QJ(function(){f==null||f.addEventListener("onVideoProgress",KVn(kl));f==null||f.addEventListener("onVideoDataChange",bwk(kl));f==null||f.addEventListener("onStateChange",FVM(kl))});
_.Q4(function(){if(f==null?0:f.isReady())f==null||f.removeEventListener("onVideoProgress",KVn(kl)),f==null||f.removeEventListener("onVideoDataChange",bwk(kl)),f==null||f.removeEventListener("onStateChange",FVM(kl))});
return _.B("desktop-shorts-player-controls",null,_.B(YMC,{playerControlsProps:kl}))},"af");
YMC=_.dN(function(c){var f=c.playerControlsProps;return _.B("div",{class:"desktopShortsPlayerControlsWizHost"},_.B(_.ATD,{progressBarProps:f,config:function(){return{isShortsPage:!0,hideProgressBar:f().videoDuration<30&&f().playerState!==2&&!f().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bf");_.t5Q=_.dN(function(c){function f(BN){BN!==0||A()?BN>50&&(A()||!t())?(Y(!1),E(!0)):BN<=50&&(A()||t())&&(Y(!1),E(!1)):Y(!0)}
function d(BN,tP){var EC;return _.k(function(AP){if(AP.nextAddress==1)return AP.yield(_.H9(),2);EC=AP.yieldResult;tP&&EC?(EC.unMute(!0),BN&&(ekr(BN,EC.getVolume()),X(EC.getVolume()))):EC&&(EC.mute(!0),BN&&ekr(BN,0));_.Fm(AP)})}
function q(BN){var tP,EC;return _.k(function(AP){if(AP.nextAddress==1)return AP.yield(_.H9(),2);tP=AP.yieldResult;EC=50;tP&&(EC=tP.getVolume(),tP.isMuted()?ekr(BN,0):ekr(BN,EC));X(EC);_.Fm(AP)})}
var Z=c.orientation;c=_.xz("desktop-shorts-volume-controls");var M=_.xz("button"),g=_.ob("input"),O=_.C(_.OT(!1,void 0,"F6vt0d")),l=O.next().value,m=O.next().value,H=_.C(_.OT(!1,void 0,"S5PCqb"));O=H.next().value;H=H.next().value;var A=O,Y=H;H=_.C(_.OT(!0,void 0,"Tgy4e"));O=H.next().value;H=H.next().value;var t=O,E=H;O=_.C(_.OT(50,void 0,"Dq3efd"));var J=O.next().value,X=O.next().value;O=_.TZ(function(){var BN=A();return _.F("web_shorts_keyboard_enable_mute_shortcut")?BN?_.HO("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.HO("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):BN?_.HO("UNMUTE_VOLUME",void 0,"Unmute"):_.HO("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
H=_.TZ(function(){var BN=A(),tP=t();return{sources:[{clientResource:{imageName:BN?_.F("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":tP?_.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 u=_.TZ(function(){var BN=J();return A()?BN+"% volume muted":BN+"% volume"},void 0,"kvkmyc"),W=_.TZ(function(){return Z()==="vertical_down"},void 0,"zaNsZ");
_.L9(function(){function BN(){m(!0)}
function tP(){m(!1)}
g&&g.value&&(g.value.addEventListener("focus",BN),g.value.addEventListener("focusout",tP),q(g.value).then(function(){f(Number(NsY(g.value)))}));
M&&M.value&&(M.value.addEventListener("focus",BN),M.value.addEventListener("focusout",tP));_.Q4(function(){var EC;g==null||(EC=g.value)==null||EC.removeEventListener("focus",BN);var AP;g==null||(AP=g.value)==null||AP.removeEventListener("focusout",tP);var eM;M==null||(eM=M.value)==null||eM.removeEventListener("focus",BN);var ue;M==null||(ue=M.value)==null||ue.removeEventListener("focusout",tP)})});
var p=_.Ks(function(){if(g&&g.value){var BN=Number(NsY(g.value));DrN(BN);X(BN);g.value.style.setProperty("--gradient-percent",BN+"%");f(BN)}return!1}),N=_.Ks(function(){m(!0)}),I=_.Ks(function(){g&&g.value&&(d(g.value,A()),Y(!A()));
return!1}),R={},qN={},kl={};
return _.B("desktop-shorts-volume-controls",{"on:pointerleave":_.Ks(function(){m(!1)}),
class:_.FY("ytdDesktopShortsVolumeControlsHost",(R.ytdDesktopShortsVolumeControlsHostVertical=W,R.ytdDesktopShortsVolumeControlsHostExpanded=l,R)),el:c},_.B(_.T,{cond:function(){return!W()},
then:function(){var BN={};return _.B("div",{class:_.FY("ytdDesktopShortsVolumeControlsBackgroundScrim",(BN.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=l,BN))})}}),_.B("div",{class:_.FY((qN.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=W,qN))},_.B("button",{"aria-label":O,
title:O,el:M,"on:click":I,"on:pointerenter":N,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},H?_.B(_.jC,{data:H,alt:O,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.B("div",{class:_.FY("ytdDesktopShortsVolumeControlsSliderContainer",(kl.ytdDesktopShortsVolumeControlsSliderContainerExpanded=l,kl.ytdDesktopShortsVolumeControlsSliderContainerVertical=W,kl.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=W,kl.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return l()&&W()},kl))},_.B("input",{"aria-label":_.HO("VOLUME"),
title:_.HO("VOLUME"),el:g,"on:input":p,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":J,"aria-valuetext":u,"aria-valuemin":0,"aria-valuemax":100})))},"cf");_.bGG=_.dN(function(c){var f=c.data;return _.B("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.B(_.Re,{command:function(){return f().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.B(_.T,{cond:function(){return f().iconName},
then:function(d){return _.B(_.Qy,{icon:d})}}),_.B("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return f().text}),_.B(_.T,{cond:function(){return f().showEndChevron},
then:function(){return _.B(_.Qy,{icon:"CHEVRON_RIGHT"})}})))},"df");var KCp=_.dN(function(c){var f=c.data;var d=c.overlayDensity;c={};return _.B("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.B(_.u7,{data:function(){return f().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(q){var Z=q.data;
return _.B(_.VV,{data:function(){return(d==null?void 0:d())===1?Object.assign({},Z(),{avatar:{avatarViewModel:Object.assign({},_.b(Z().avatar,_.Ie),{avatarImageSize:"AVATAR_SIZE_48"})}}):Z()}})}}),_.B(_.u7,{data:function(){return f().avatarStackViewModel}},{avatarStackViewModel:function(q){return _.B(_.XS,{data:q.data})}}),_.B(_.J9,{className:_.FY("ytReelChannelBarViewModelChannelName",(c.ytReelChannelBarViewModelChannelNameLarge=function(){return(d==null?void 0:d())===1},c)),
text:function(){return f().channelName},
linkInheritColor:!0,userInput:!0}),_.B("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.B(_.u7,{data:function(){return f().subscribeButtonViewModel}},{subscribeButtonViewModel:function(q){var Z=q.data;
return _.B(_.aQ,{data:function(){return(d==null?void 0:d())===1?Object.assign({},Z(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Z().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Z()},
isOverlay:!1})},
buttonViewModel:_.mN})),_.B("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.B(_.u7,{data:function(){var q,Z;return(Z=_.b((q=f())==null?void 0:q.sponsorButtonViewModel,nfr))==null?void 0:Z.sponsorButton}},{buttonViewModel:function(q){return _.B(_.mN,{data:q.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ef");var Ec3=_.dN(function(c){var f=function(){var q;return(c==null?void 0:(q=c.overlayDensity)==null?void 0:q.call(c))===1?22:16},d={};
return _.B("yt-reel-multi-format-link-view-model",{class:_.FY("ytReelMultiFormatLinkViewModelHost",(d.ytReelMultiFormatLinkViewModelHostTall=!0,d.ytReelMultiFormatLinkViewModelHostLarge=function(){var q;return((q=c.overlayDensity)==null?void 0:q.call(c))===1},d))},_.B(_.Re,{ariaLabel:function(){return c.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return c.data().command}},_.B("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.B(_.T,{cond:function(){return c.data().icon},
then:function(q){return _.B(_.jC,{data:q,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:f})}}),_.B(_.J9,{text:function(){return c.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ff");
Ec3.idomCompat=!0;var ncq=_.dN(function(c){var f=c.data;var d=c.overlayDensity;var q=_.xz("yt-shorts-suggested-action-view-model");c=_.C(_.OT(!1,void 0,"xDqzhe"));var Z=c.next().value,M=c.next().value;c=_.C(_.OT(!1,void 0,"LI9CFd"));var g=c.next().value,O=c.next().value,l=function(){return f().isMultiLineSa},m=_.Ka(znr,function(){var N,I;
return(I=(N=f().toggleableContent)==null?void 0:N.entityKey)!=null?I:""}),H=function(){var N,I,R;
return(R=f().toggleableContent)!=null&&R.entityKey?(I=(N=m())==null?void 0:N.value)!=null?I:!1:!1},A=function(){var N,I,R,qN,kl,BN,tP,EC,AP,eM,ue;
return f().toggleableContent?H()?(N=f().toggleableContent)==null?void 0:N.toggledData:(I=f().toggleableContent)==null?void 0:I.untoggledData:{primaryText:(EC=(R=f().defaultContent)==null?void 0:R.primaryText)!=null?EC:f().text,secondaryText:(qN=f().defaultContent)==null?void 0:qN.secondaryText,onTapCommand:(AP=(kl=f().defaultContent)==null?void 0:kl.onTapCommand)!=null?AP:f().onTapCommand,icon:(eM=(BN=f().defaultContent)==null?void 0:BN.icon)!=null?eM:f().icon,image:(ue=(tP=f().defaultContent)==null?
void 0:tP.image)!=null?ue:f().image}},Y=function(){return l()?f().trailingTapTarget:void 0},t=function(N,I){return function(){return Z()?I:N}},E=function(){return{leadingSection:t("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(d==null?void 0:d())===1?t("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):t("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:t("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:t("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
c={};c=_.FY((c.ytShortsSuggestedActionViewModelStaticHost=function(){return!l()},c.ytShortsSuggestedActionViewModelDynamicHost=l,c.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return l()&&g()},c.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return l()&&!g()},c));
_.L9(function(){if(l()){var N=0,I;if((I=f().animationParams)==null?0:I.shouldExpand){var R,qN;N=((qN=(R=f().animationParams)==null?void 0:R.expansionDelaySecs)!=null?qN:0)*1E3}var kl,BN=((kl=f().animationParams)==null?0:kl.shouldExpand)?setTimeout(function(){M(!0)},N):void 0,tP,EC;
N=((tP=f().animationParams)==null?0:tP.visibilityDelaySecs)?((EC=f().animationParams)==null?NaN:EC.visibilityDelaySecs)*1E3:0;var AP=setTimeout(function(){O(!0)},N);
_.Q4(function(){BN&&clearTimeout(BN);clearTimeout(AP)})}});
var J=function(N){_.Ph(N,Object.assign({},{form:{element:q.value}}))},X=_.Ks(function(){var N,I=(N=A())==null?void 0:N.onTapCommand;
I&&J(I)}),u=_.Ks(function(){var N,I;
if(N=(I=Y())==null?void 0:I.onTapCommand)return J(N),!1}),W=_.$Z({"vertical-align":"bottom",
"border-radius":function(){var N;return l()?((N=f().defaultContent)==null?0:N.isCircleImage)?"50%":"4px":"0px"},
width:function(){var N,I,R;return l()&&((N=f().defaultContent)==null?0:N.imageSize)?((R=(I=f().defaultContent)==null?void 0:I.imageSize)!=null?R:24)+"px":null},
height:function(){var N,I,R;return l()&&((N=f().defaultContent)==null?0:N.imageSize)?((R=(I=f().defaultContent)==null?void 0:I.imageSize)!=null?R:24)+"px":null}}),p={};
return _.B("yt-shorts-suggested-action-view-model",{class:c,el:q},_.B("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.B("button",{class:_.FY(function(){return l()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var N;
return(N=f().useFullRoundedBorder)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!Y()&&l()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":l()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var N;
return(N=f().disableFixedHeight)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(p.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(d==null?void 0:d())===1},p)),
"on:click":X},_.B(_.z3,{model:{color:4}}),_.B("div",{class:_.FY(function(){return l()?E().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.B(_.T,{cond:function(){var N;
return(N=A())==null?void 0:N.image},
then:function(N){return _.B(_.jC,{data:N,alt:"",className:function(){return l()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:W})}}),_.B(_.T,{cond:function(){var N,I;
return(N=A())==null?void 0:(I=N.icon)==null?void 0:I.iconType},
then:function(N){return _.B(_.Qy,{icon:N,active:H,className:function(){return l()?Z()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.B("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.B(_.T,{cond:function(){var N;
return(N=A())==null?void 0:N.primaryText},
then:function(N){return _.B("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.B(_.J9,{text:N}))}}),_.B(_.T,{cond:function(){var N;
return(N=A())==null?void 0:N.secondaryText},
then:function(N){return _.B("div",{class:function(){return E().secondaryText()}},_.B(_.J9,{text:N}))}}))),_.B(_.T,{cond:Y,
then:function(N){return _.B("div",{class:function(){return E().trailingSection()},
"aria-label":function(){var I;return(I=N().a11yLabel)!=null?I:""},
"on:click":u,role:"button",tabindex:0},_.B(_.z3,{model:{color:4}}),_.B(_.Qy,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"gf");var $zS=_.dN(function(c){var f=c.data;var d=c.overlayDensity;var q=_.xz("yt-shorts-video-title-view-model");c=_.Ks(function(g){if(_.W9(_.yH(g),q.value,["A".toString()]))return!1;(g=f().truncatedTextOnTapCommand)&&_.Ph(g);return!1});
var Z={},M={};return _.B("yt-shorts-video-title-view-model",{el:q,class:_.FY("ytShortsVideoTitleViewModelHost",(Z.ytShortsVideoTitleViewModelHostClickable=function(){return!!f().truncatedTextOnTapCommand},Z)),
"on:click":c},_.B("h2",{class:_.FY("ytShortsVideoTitleViewModelShortsVideoTitle",(M.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(d==null?void 0:d())===1},M))},_.B(_.J9,{text:function(){return f().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"hf");_.Q8C=_.dN(function(c){var f=c.data;var d=c.overlayDensity;return _.B("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.B(_.u7,{data:function(){return f().metadataItems}},{badgeViewModel:function(q){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.rA,{data:q.data}))},
playerDisclosureViewModel:function(q){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.bGG,{data:q.data}))},
shortsSuggestedActionViewModel:function(q){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(ncq,{data:q.data,overlayDensity:d}))},
reelChannelBarViewModel:function(q){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(KCp,{data:q.data,overlayDensity:d}))},
reelMultiFormatLinkViewModel:function(q){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(Ec3,{data:q.data,overlayDensity:d}))},
shortsVideoTitleViewModel:function(q){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B($zS,{data:q.data,overlayDensity:d}))},
reelSoundMetadataViewModel:function(q){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.QGD,{data:q.data,overlayDensity:d}))},
toggleButtonViewModel:function(q){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.JL,{data:q.data}))}}))},"jf");var SMc=_.dN(function(c){var f=_.ch(c,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),d=f.size,q=f.onTap,Z=f.disabled,M=f.tooltipText;return _.B("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.B(_.iw,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:d(),disabled:Z(),tooltipText:M(),onTap:q}},
iconName:c.iconType}))},"kf"),LCr=_.dN(function(c){function f(H){H.stopPropagation();
H.code==="ArrowUp"?(H.preventDefault(),RkN(O.value)):H.code==="ArrowDown"?(H.preventDefault(),UrC(O.value)):H.code==="KeyM"?IIY():(H.code==="KeyK"||H.code==="Space")&&PAG(l())}
var d=_.ch(c,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});c=d.previousButtonDisabled;var q=d.nextButtonDisabled,Z=d.data,M=d.playabilityStatus,g=d.previewThumbnail,O=_.xz("ytd-shorts-miniplayer-overlay"),l=_.N5(_.IKl),m;_.QJ(function(){(m=_.X1(O.value))&&m.addEventListener("keydown",f)});
_.Q4(function(){var H;(H=m)==null||H.removeEventListener("keydown",f)});
d=function(){var H,A,Y;return(H=Z())==null?void 0:(A=H.reelPlayerOverlayRenderer)==null?void 0:(Y=A.likeButton)==null?void 0:Y.likeButtonRenderer};
return _.B("ytd-shorts-miniplayer-overlay",{el:O,class:"ytdShortsMiniplayerOverlayHost"},_.B("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.$Z({"background-image":function(){var H=g();return H?'url("'+_.OV(H.thumbnails)+'")':""}})}),_.B("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.B("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.B(SMc,{iconType:function(){var H=l();
return H===2||H===-1||H===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){PAG(l())},
tooltipText:function(){var H=l();return H===1||H===3?_.HO("PLAYER_LABEL_PAUSE"):_.HO("PLAYER_LABEL_PLAY")}}),_.B(_.t5Q,{orientation:"horizontal_right"})),_.B("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.B(SMc,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:c,onTap:function(){RkN(O.value)},
tooltipText:_.HO("PREVIOUS_VIDEO_LABEL")}),_.B(SMc,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:q,onTap:function(){UrC(O.value)},
tooltipText:_.HO("NEXT_VIDEO_LABEL")}),_.F("web_shorts_pip_like_button")?_.B("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.B(wmo,{buttonTooltipPosition:"left",data:d,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.B("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.B(_.T,{cond:function(){var H,A;return _.b((H=Z())==null?void 0:(A=H.reelPlayerOverlayRenderer)==null?void 0:A.metapanel,
_.tw_)},
then:function(H){return _.B("div",{class:_.FY("ytdShortsMiniplayerOverlayInteractive")},_.B(_.Q8C,{data:H}))}})),_.B("div",{class:_.FY("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var H;return!((H=Z())==null||!H.adsOverlay)||M()&&!WIG(M())}},_.B("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.B(_.FCQ,null)))),_.B(_.T,{cond:function(){var H=Z(),A,Y;
H=_.b(H==null?void 0:(A=H.adsOverlay)==null?void 0:(Y=A.fulfillmentContent)==null?void 0:Y.fulfilledLayout,w1T);return _.b(H==null?void 0:H.renderingContent,N4y)},
then:function(H){return _.B("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.B(J__,{data:H}))}}))},"lf");var p4P=_.dN(function(){var c=_.C(_.OT(new _.AT(NaN,NaN),void 0,"HSMFk")),f=c.next().value,d=c.next().value;c=_.C(_.OT(!1,void 0,"uaAxwf"));var q=c.next().value,Z=c.next().value,M=_.C(_.OT(!1,void 0,"nVSwef"));c=M.next().value;var g=M.next().value,O=_.ql().resolve(_.yN).miniplayerPropSignalMap[0],l=O.data,m=O.shortsData,H=O.nextButtonDisabled,A=O.shortsPreviewThumbnail,Y=O.previousButtonDisabled,t=O.externalPlaylistData;M=O.toastData;var E=O.playabilityStatus,J=O.isDisabled,X=O.playerVe,u=O.closeVe;
O=_.N5(_.BZ);_.pW("yt-pip-window-resized",function(I){d(I)});
_.pW("yt-activate-pip-miniplayer",function(){return _.k(function(I){g(!0);_.Fm(I)})});
var W=function(){var I;return!((I=t())==null||!I.contents)&&q()},p=function(){var I=f(),R=!!l(),qN=W();
I=I.clone();R&&(I.height-=76);qN&&(I.height-=285);return I},N=function(){Z(!q())};
_.$k(function(){var I=X(),R=_.X2(11),qN=_.V5(11);R&&qN&&I&&(_.Dr(R,qN,I),qN=u())&&(_.eO(R,I,[qN]),_.Ic(R,[qN]))},"HPkp0c");
return _.B("ytd-pip-container",{class:"ytdPipContainerHost"},_.B(_.T,{cond:c,then:function(){return _.B(_.um3,{isDisabled:J,playabilityStatus:E,size:p})}}),_.B(_.T,{cond:l,
then:function(){return _.B(_.V8c,{data:l,expanded:q,onExpandClick:N,playlistData:t})}}),_.B(_.T,{cond:W,
then:function(){return _.B("div",{class:"ytdPipContainerPlaylistPanel"},_.B(_.vPF,{data:t,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.B(_.T,{cond:O,
then:function(){return _.B(LCr,{data:m,nextButtonDisabled:H,previousButtonDisabled:Y,playabilityStatus:E,previewThumbnail:A})}}),_.B("div",{class:"ytdPipContainerToast"},_.B(_.vw3,{toastData:M})))},"mf");var yG=function(c,f){var d=this;this.pipController=c;this.JSC$18556_clientRoot=f;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=CAY();this.watchPipEnabled=_.F("web_watch_pip");this.shortsPipEnabled=_.F("web_shorts_pip");this.JSC$18556_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;_.bj(_.Gh(),yuP,function(q){d.isSingleOptionSurveyActive=q});
this.JSC$18556_onPlayerPlayVideo=this.JSC$18556_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);_.Rb(_.Pw.getInstance(),this.miniplayerServiceActionMap,this.JSC$18556_clientRoot);c.pictureInPictureSupported()&&_.JN("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},OYF,yTS,u1J,WCp,Dzp,iEK;
yG.prototype.handleMediaSessionPipActivation=function(){var c=this,f;return _.k(function(d){_.F7().mediaSessionPipActivation=!0;f=_.ql().resolve(_.MY);return f.isOnWatch()&&c.watchPipEnabled?(_.F7().watchPipActivation=!0,_.zRS(c,f.data),d.jumpTo(0)):f.isOnShorts()&&c.shortsPipEnabled?(_.F7().shortsPipActivation=!0,_.JTC(c),d.jumpTo(0)):c.isMiniplayerActive()&&c.watchPipEnabled&&!c.watchWhileMode?d.yield(agS(c),0):d.jumpTo(0)})};
var agS=function(c){var f,d,q,Z;return _.k(function(M){if(M.nextAddress==1)return f=!c.miniplayerToPipMode,d=c.playerElement,q=c.miniplayerData,Z=c.watchResponse,M.yield(c.deactivate(),2);if(M.nextAddress!=3)return f?(_.F7().mediaSessionPipActivation=!0,_.F7().watchPipActivation=!0):_.F7().miniplayerButtonActivation=!0,M.yield(c.activate(d,q,Z),3);c.miniplayerToPipMode=f;_.Fm(M)})};
yG.prototype.onDownloadedVideoDeleted=function(c){var f,d=_.b((f=this.miniplayerData)==null?void 0:f.watchEndpoint,_.pe),q,Z;d&&((q=this.watchResponse)==null?void 0:(Z=q.playerResponse)==null?void 0:Z.offlineState)!==void 0&&(f=d.videoId)&&c&&f===c&&this.close()};
yG.prototype.onShowMiniplayerCommand=function(c){var f=this,d,q,Z,M,g,O,l,m,H,A,Y,t,E;return _.k(function(J){switch(J.nextAddress){case 1:return d=_.b(c,luO),Z=(q=d)==null?void 0:q.miniplayerCommand,M=_.b(Z,_.pe),Z&&M&&!f.active?J.yield(_.L5.getInstance(),2):J.return();case 2:return g=J.yieldResult,J.yield((O=g)==null?void 0:O.get("yt-miniplayer-shown-video-id"),3);case 3:l=J.yieldResult;m=M.videoId;if(!m||l===m)return J.return();H=_.ql().resolve(_.MY);if(H.isOnWatch())return _.u6(Error("Fj")),J.return();
A={channelItem:{externalId:btoa(m)}};f.readyToResumeVe=_.m_(121253,void 0,void 0,A);_.F7().showMiniplayerCommandActivation=!0;return J.yield(_.T0u(f,Z,!0),4);case 4:return f.active?(_.WE(f,{readyToResumeVe:f.readyToResumeVe,continueWatching:!0,premiumBranding:!((Y=d)==null||!Y.showPremiumBranding),isReadyToResume:!0}),f.isReadyToResume=!0):_.WE(f,{continueWatching:!0,premiumBranding:!((t=d)==null||!t.showPremiumBranding)}),J.yield((E=g)==null?void 0:E.set("yt-miniplayer-shown-video-id",M.videoId),
5);case 5:f.readyToResumeVe=void 0,_.Fm(J)}})};
yG.prototype.init=function(c){this.miniplayerEl?_.u6(new _.KD("MiniplayerService already initialized.")):this.miniplayerEl=c};
yG.prototype.isInitialized=function(){var c=!!this.miniplayerEl;c||_.u6(new _.KD("MiniplayerService used before initialized."));return c};
_.zRS=function(c,f){if(c.isInitialized()){var d=_.Owz(f.response,f.playerResponse),q=_.ql().resolve(_.MY).getPlayerFromWatch();_.F7().currentEndpoint=d.watchEndpoint||null;c.activate(q,d,f)}};
_.JTC=function(c){if(c.isInitialized()){var f=_.ql().resolve(_.MY).getPlayerFromShorts();c.activate(f)}};
OYF=function(c,f){var d;(d=!c.isInitialized())||(d=_.ql().resolve(_.MY).isOnWatch()&&c.watchPipMode,d=!(c.isMiniplayerActive()&&(_.F7().userActivation||_.F7().lockupActivation||d)));if(d)return!1;V5i(c,f)?_.vE(c):iEK(c,f);return c.watchPipMode?!_.ql().resolve(_.MY).isOnWatch():!0};
yG.prototype.isMiniplayerActive=function(){return this.active};
var V5i=function(c,f){var d;f=(d=_.b(f,_.pe))==null?void 0:d.videoId;var q,Z;c=(Z=_.b((q=c.miniplayerData)==null?void 0:q.watchEndpoint,_.pe))==null?void 0:Z.videoId;return f!=null&&f===c};
yG.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.CZ(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.gS(this.miniplayerEl,"yt-navigate-home-action"))};
_.T0u=function(c,f,d,q){d=d===void 0?!1:d;var Z,M,g;return _.k(function(O){switch(O.nextAddress){case 1:if(c.active){O.jumpTo(2);break}Z=_.ql().resolve(_.MY);if(g=(M=c.playerElement)!=null?M:Z.getPlayerFromWatch()){O.jumpTo(3);break}return O.yield(_.ql().resolve(_.sR),4);case 4:g=Z.getPlayerFromWatch();case 3:if(!g){_.u6(Error("Hj"));O.jumpTo(2);break}return O.yield(c.activate(g,q),2);case 2:return c.active?O.yield(iEK(c,f,d),0):O.return()}})};
yG.prototype.activate=function(c,f,d){var q=this,Z,M,g,O,l,m,H,A,Y;return _.k(function(t){switch(t.nextAddress){case 1:if(!q.isInitialized())return t.return();if(!c)return _.u6(Error("Hj")),t.return();if(_.FUF()||q.isMiniplayerActive())var E=!0;else E=_.F7().watchPipActivation||_.F7().watchWhileActivation,_.ql().resolve(_.MY).isOnWatch()&&!E?(_.u6(new _.KD("miniplayer activated on watch page")),E=!0):E=_.F7().watchWhileActivation?q.userDeactivatedWatchWhile||!!document.pictureInPictureElement||tbN():
!1;if(E)return YwH(),t.return();Z=_.F7().mediaSessionPipActivation;M=_.F7().shortsPipActivation;g=_.F7().watchPipActivation;l=(O=_.F7().watchWhileActivation)||g;m=g||M;if(!q.pictureInPictureEnabled()||!m){t.jumpTo(2);break}return t.yield(Xv3(q,Z),3);case 3:if(!t.yieldResult)return _.u6(Error("Gj")),YwH(),t.return();case 2:return q.setActive(!0),q.watchResponse=d,q.playerElement=c,q.updateMiniplayerData(f),t.yield(u1J(q,c),4);case 4:if(!q.active)return _.u6(new _.KD("miniplayer deactivated during activation")),
q.removePlayerListeners(),t.return();E=_.ql().resolve(_.W_);E.addEventListener("yt-navigate",_.ia(q,q.onPlaylistNavigate));E.addEventListener("yt-playlist-data-updated",_.ia(q,q.JSC$18556_onPlaylistDataUpdated));q.JSC$18556_onPlaylistDataUpdated();YwH();q.JSC$18556_watchWhileEnabled&&_.vcc(q,O);q.pictureInPictureEnabled()&&q.shortsPipEnabled&&(q.shortsPipMode=M,_.Gh().dispatch(Mz3(q.shortsPipMode)));q.pictureInPictureEnabled()&&q.watchPipEnabled&&(q.watchPipMode=g,_.KI4(q.handleMediaSessionPipActivation));
q.player&&(H=q.player.getPlayerState(),A=H===1,_.Gh().dispatch(BAu(H)),_.kt(q.miniplayerEl,"yt-miniplayer-play-state-changed",[A]),_.F7().isVideoPlaying=A);_.kt(q.miniplayerEl,"yt-miniplayer-endpoint-changed");hRq(q);_.wvi(q);if(q.shortsPipMode||q.watchPipMode)t=t.yield(_.gS(q.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{E=t.yield;var J=_.gS(q.miniplayerEl,"yt-activate-miniplayer",[l])[0];t=E.call(t,J,6)}return t;case 6:if(q.watchResponse&&!_.F("miniplayer_copy_screen_on_activation_killswitch")){E=
q.getScreenLayer();J=_.X2(0);var X=Y4k(0);J&&X&&(_.vi(J,X,E),E===0&&HiC(void 0,0))}yTS(q);WCp(q,!0);(Y=q.getPlayerElement())==null||Y.focusOnPlayer();_.Fm(t)}})};
yG.prototype.updateMiniplayerData=function(c){this.miniplayerData=c;_.WE(this,{data:c})};
_.wvi=function(c){var f,d,q=((f=c.miniplayerData)==null?void 0:(d=f.miniplayerRenderer)==null?void 0:d.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";f=c.watchWhileMode||c.watchPipMode?q&&!_.ql().resolve(_.MY).isOnWatch():q;_.WE(c,{isDisabled:f});var Z,M;d=_.b((Z=c.miniplayerData)==null?void 0:(M=Z.miniplayerRenderer)==null?void 0:M.minimizedEndpoint,_.Lz);f&&d&&_.ql().resolve(_.Lm).openSheet({openPopupActionCommand:{openPopupAction:d}},c.miniplayerEl)};
yTS=function(c){if(c.watchResponse&&!Dzp(c)){var f,d=(f=c.watchResponse.playerResponse)==null?void 0:f.trackingParams;d&&(_.WE(c,{expandVe:_.m_(35989),closeVe:_.m_(34699),readyToResumeCloseVe:_.m_(131070),repositionVe:_.m_(226204),resizeVe:_.m_(226205)}),_.WE(c,{playerVe:_.Q1(d)}))}};
u1J=function(c,f){return _.k(function(d){if(d.nextAddress==1)return f.preparePlayer(),d.yield(f.getPlayerPromise(),2);c.player=d.yieldResult;c.player&&(c.player.addEventListener("onPlayVideo",c.JSC$18556_onPlayerPlayVideo),c.player.addEventListener("onCloseMiniplayer",c.onPlayerCloseMiniplayer),c.player.addEventListener("onExpandMiniplayer",c.onPlayerExpandMiniplayer),c.player.addEventListener("onStateChange",c.onPlayerStateChange));_.Fm(d)})};
_.r=yG.prototype;_.r.JSC$18556_onPlayerPlayVideo=function(c){var f=c.sessionData&&"autonav"in c.sessionData,d;c.sessionData&&c.sessionData.itct&&(d=c.sessionData.itct);var q=c.watchEndpoint;f=q&&f?_.GIk(q,d):_.dW(c.videoId,c.listId||void 0,d);c.sessionData&&_.cO(_.b(f.commandMetadata,_.jO).url,c.sessionData);iEK(this,f)};
_.r.onPlayerExpandMiniplayer=function(){_.vE(this)};
_.r.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.r.onPlayerStateChange=function(){if(this.player){var c=this.player.getPlayerState(),f=c===1;_.Gh().dispatch(BAu(c));_.Gh().dispatch(_.mgy(c));_.kt(this.miniplayerEl,"yt-miniplayer-play-state-changed",[f]);_.F7().isVideoPlaying=f;if(c===0){f=!_.jY.getInstance().isAutoplaySetExplicitly();var d,q,Z,M,g,O,l=(d=this.watchResponse.response)==null?void 0:(q=d.contents)==null?void 0:(Z=q.twoColumnWatchNextResults)==null?void 0:(M=Z.autoplay)==null?void 0:(g=M.autoplay)==null?void 0:(O=g.autoplayExplicitChoiceDialogRenderer)==
null?void 0:O.confirmDialogRenderer;f&&l&&this.player.setAutonavState(1)}c===0&&this.watchWhileMode&&this.deactivate()}};
_.r.onPlaylistNavigate=function(c,f){var d=this,q,Z,M,g,O,l,m;return _.k(function(H){if(H.nextAddress==1){if(!_.b(f.endpoint,_.pe))return H.return();_.F7().currentEndpoint=f.endpoint;_.kt(d.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.ql().resolve(_.MY).isOnWatch()&&(d.watchWhileMode||d.watchPipMode))return H.return();c.stopPropagation();(M=(Z=_.b((q=f.endpoint)==null?void 0:q.commandMetadata,_.jO))==null?void 0:Z.url)&&f.tempData&&!_.zV.isEmpty(f.tempData)&&_.cO(M,f.tempData);g={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};O=new AbT(function(){return d.getPlayerElement()},g,{layer:d.getScreenLayer()});
l=function(A){O.processChunk({endpoint:f.endpoint,data:A})};
eRD(d);d.miniplayerFetchRequest=Nkc(d,f.endpoint,l);_.iY(H,2);return H.yield(d.miniplayerFetchRequest,4)}if(H.nextAddress!=2)return m=H.yieldResult,Igp(d,m),_.Pq(H,0);_.Yw(H);_.Fm(H)})};
_.r.JSC$18556_onPlaylistDataUpdated=function(){var c=_.ql().resolve(_.W_).getPlaylistData();this.hasPlaylistData=!!c;_.WE(this,{externalPlaylistData:c||{}})};
_.r.close=function(c){if(this.isInitialized())if(c){if(!((this.watchWhileMode||this.watchPipMode)&&_.ql().resolve(_.MY).isOnWatch()||this.shortsPipMode)){var f;(f=this.getPlayerElement())==null||f.stop()}this.deactivate()}else _.P_().closeMiniplayer(this.miniplayerEl)};
_.r.deactivate=function(c){var f=this,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1){if(!f.isInitialized()||!f.active)return g.return();f.setActive(!1);eRD(f);(d=!!c&&V5i(f,c))&&f.isSingleOptionSurveyActive&&_.gS(f.miniplayerEl,"yt-show-watch-page-survey",[f.isSingleOptionSurveyActive]);return g.yield(P5C(f),2)}if(g.nextAddress!=3){WCp(f,!1);f.isReadyToResume=!1;f.watchResponse=void 0;f.updateMiniplayerData(void 0);f.shortsPipMode&&(f.shortsPipMode=!1,_.Gh().dispatch(Mz3(f.shortsPipMode)),Z3H(f.pipController),
(q=f.player)==null||q.setInternalSize(NaN,NaN));f.watchPipMode&&(f.watchPipMode=!1,Z3H(f.pipController));(Z=f.watchWhileMode)&&_.vcc(f,!1);f.removePlayerListeners();var O=_.ql().resolve(_.W_);O.removeEventListener("yt-navigate",_.ia(f,f.onPlaylistNavigate));O.removeEventListener("yt-playlist-data-updated",_.ia(f,f.JSC$18556_onPlaylistDataUpdated));_.F7().currentEndpoint=null;_.kt(f.miniplayerEl,"yt-miniplayer-endpoint-changed");f.playerElement=null;YwH();if(f.shortsPipMode||f.watchPipMode)g=g.jumpTo(3);
else{O=g.yield;var l=_.gS(f.miniplayerEl,"yt-deactivate-miniplayer",[d,Z])[0];g=O.call(g,l,3)}return g}(M=f.player)==null||M.setInternalSize(NaN,NaN);f.player=null;_.Fm(g)})};
var P5C=function(c){var f;return _.k(function(d){f=_.ql().resolve(_.MY);return c.shortsPipMode?d.yield(f.movePlayerToShorts(c.playerElement),0):d.yield(f.movePlayerToWatch(c.playerElement),0)})};
yG.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18556_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
yG.prototype.setActive=function(c){this.active=c;this.isSingleOptionSurveyActive?_.gS(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.gS(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Gh().dispatch(_.CC({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.vcc=function(c,f){c.watchWhileMode=f;_.WE(c,{watchWhile:f})};
WCp=function(c,f){if(!Dzp(c))if(c.shortsPipMode||c.watchPipMode){var d;(d=c.player)==null||d.setDocumentPictureInPicture(f)}else{var q;(q=c.player)==null||q.setMinimized(f)}};
Dzp=function(c){return c.watchWhileMode&&_.F("kevlar_watch_while_counterfactual")};
_.vE=function(c){var f;return _.k(function(d){switch(d.nextAddress){case 1:if(!c.isInitialized())return d.return();_.iY(d,2);return d.yield(c.miniplayerFetchRequest,4);case 4:_.Pq(d,3);break;case 2:_.Yw(d);case 3:c.watchResponse&&c.miniplayerData&&c.miniplayerData.watchEndpoint?(f={url:c.watchResponse.url,endpoint:c.miniplayerData.watchEndpoint,data:c.watchResponse,miniplayer:!0},_.CZ(c.miniplayerEl,"yt-navigate-cache",f)):c.miniplayerData&&c.miniplayerData.watchEndpoint&&_.CZ(c.miniplayerEl,"yt-navigate",
{endpoint:c.miniplayerData.watchEndpoint}),_.Fm(d)}})};
iEK=function(c,f,d){var q,Z,M,g;return _.k(function(O){if(O.nextAddress==1){if(V5i(c,f))return O.return();_.F7().currentEndpoint=f;_.kt(c.miniplayerEl,"yt-miniplayer-endpoint-changed");_.kt(c.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.F7().isVideoPlaying=!1;q={clientParams:{miniplayer:!0,autoSaveToQueue:!d}};Z=new AbT(function(){return c.getPlayerElement()},q,{layer:c.getScreenLayer(),
parentLayer:0},void 0,c.readyToResumeVe);M=function(l){var m,H,A=Object.assign({},(m=l.playerResponse)==null?void 0:(H=m.playerConfig)==null?void 0:H.playbackStartConfig,{startPaused:!0}),Y;d&&((Y=l.playerResponse)==null?0:Y.playerConfig)&&(l.playerResponse.playerConfig.playbackStartConfig=A);Z.processChunk({endpoint:f,data:l})};
eRD(c);c.miniplayerFetchRequest=Nkc(c,f,M);_.iY(O,2);return O.yield(c.miniplayerFetchRequest,4)}if(O.nextAddress!=2)return g=O.yieldResult,Igp(c,g),_.Pq(O,0);_.Yw(O);_.Fm(O)})};
yG.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var eRD=function(c){c.miniplayerFetchRequest&&(c.miniplayerFetchRequest.cancel&&c.miniplayerFetchRequest.cancel("Active request obsolete"),c.miniplayerFetchRequest=null)},Nkc=function(c,f,d){var q=_.E2.instance,Z,M=(Z=_.b(f.commandMetadata,_.jO))==null?void 0:Z.url,g;
Z=!M||_.F("disable_miniplayer_tempdata")?{}:(g=rRP(M))!=null?g:{};return eJ(q,f,Z,window.location.href,"watch",function(O,l){d(l)},function(O){return O!==c.miniplayerFetchRequest})},Igp=function(c,f){var d;
_.k(function(q){if(!f)return q.return();c.watchResponse=f;yTS(c);hRq(c);d=_.Owz(f.response,f.playerResponse);if(c.isMiniplayerActive()){f.response&&(c.playerElement.watchNextData=f.response);var Z=_.zV.getValueByKeys.apply(_.zV,[f].concat(_.LT(S7F)));_.zV.getValueByKeys.apply(_.zV,[f].concat(_.LT(VzT)))&&Z&&_.ql().resolve(_.W_).setAutoplayRenderer(Z);if(Z)if(_.F("kevlar_is_pupi_enabled")){var M,g,O,l,m,H=((M=f.response)==null?0:(g=M.playerOverlays)==null?0:(O=g.playerOverlayRenderer)==null?0:(l=O.autonavToggle)==
null?0:(m=l.autoplaySwitchButtonRenderer)==null?0:m.enabled)?2:1;_.jY.getInstance().setState(H,!1,!1)}else M=FPN()?2:1,(H=c.player)==null||H.setAutonavState(M);c.updateMiniplayerData(d);_.wvi(c)}_.Fm(q)})},hRq=function(c){var f,d,q=(f=c.watchResponse)==null?void 0:(d=f.playerResponse)==null?void 0:d.playabilityStatus,Z;
f=q==null?void 0:(Z=q.miniplayer)==null?void 0:Z.miniplayerRenderer;(f==null?void 0:f.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&f.minimizedEndpoint&&_.OX(c.miniplayerEl,[f.minimizedEndpoint]);_.WE(c,{miniplayerRenderer:f,playabilityStatus:q})};
yG.prototype.openToast=function(c,f){_.WE(this,{toastData:{data:c,label:f}})};
_.WE=function(c,f){var d=c.miniplayerEl,q;for(q in f)d[q]=f[q];(0,c.miniplayerPropSignalMap[1])(f)};
yG.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var c;return this.playerElement?this.playerElement:(c=_.r1(this.miniplayerEl).querySelector("#player-container"))==null?void 0:c.firstElementChild};
yG.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Xv3=function(c,f){f=f===void 0?!1:f;var d,q,Z,M,g,O,l;return _.k(function(m){if(m.nextAddress==1){d=navigator.userActivation.isActive||f;if(!d||!c.pictureInPictureSupported())return m.return(!1);q=RRJ(c);Z=q.width;M=q.height;return m.yield(c.pipController.openWindow({width:Z,height:M}),2)}g=m.yieldResult;O=c.pipController.getWindow();if(!O||!g)return m.return(!1);O.document.body.style.overflow="hidden";l=xrr(O);MFC(c.pipController,function(){UzC(c);l()});
return m.return(!0)})},RRJ=function(c){var f=_.F7().shortsPipActivation,d,q;
c=f?.5625:(q=(d=c.player)==null?void 0:d.getVideoAspectRatio())!=null?q:16/9;d=Math.min(window.innerWidth,window.innerHeight)/2;f=f?0:76;return c>1?new _.AT(d,f+d/c):new _.AT(d*c,f+d)},UzC=function(c){var f;
_.k(function(d){f=_.ql().resolve(_.MY);return f.isOnWatch()&&c.watchPipMode||f.isOnShorts()&&c.shortsPipMode?d.yield(c.deactivate(),0):c.miniplayerToPipMode?d.yield(agS(c),0):c.watchPipMode?d.yield(_.vE(c),0):d.jumpTo(0)})};
yG.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.ci.Object.defineProperties(yG.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
yG[dE]=[rHH,Civ];var pvQ="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(" "),
xzJ="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(" "),ocF="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
GVQ="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var c5D=null;var fUC={},dxQ=(fUC.initialized={priority:10,callback:function(c){var f=_.ql();f.addProvider({provide:ZLo,useClass:CXi});f.addProvider({provide:_.rvi,useFactory:function(){return new MhK}});
f.addProvider({provide:JJ,useValue:_.hk("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});f.addProvider({provide:kYq,useValue:5184E6});f.addProvider({provide:zGD,useValue:_.zd()});f.addProvider({provide:y3J,useClass:jD_});f.addProvider({provide:Ng,useClass:Ng});f.addProvider({provide:_.sR,useFactory:function(){return rdo.promise}});
f.addProvider({provide:_.g4F,useFactory:function(){return _.Cgj.promise}});
f.addProvider({provide:pEk,useValue:function(){var l;return((l=_.Ca())==null?void 0:l.getPlayer())||null}});
var d={};f.addProvider((d.provide=_.qp,d.useFactory=function(l,m){return function(){return rGl(l,m)}},d[dE]=[JJ,
kYq],d));d={};f.addProvider((d.provide=_.sj,d.useClass=jKp,d[dE]=[JJ,kYq],d));d={};f.addProvider((d.provide=_.s3r,d.useClass=r3D,d[dE]=[_.sj],d));f.addProvider({provide:bv,useFactory:_.Gh});f.addProvider({provide:Cp,useFactory:_.Gh});f.addProvider({provide:IOr,useFactory:_.Gh});f.addProvider({provide:NG3,useFactory:_.Gh});f.addProvider({provide:_.WL,useFactory:_.Gh});f.addProvider({provide:HL,useValue:_.md});f.addProvider({provide:dS3,useClass:YOe});f.addProvider({provide:yIo,useClass:wl_});f.addProvider({provide:eH,
useClass:eH});f.addProvider({provide:A$,useClass:A$});f.addProvider({provide:YH,useClass:YH});f.addProvider({provide:t$,useClass:t$});f.addProvider({provide:xB,useClass:xB});f.addProvider({provide:E9,useClass:E9});f.addProvider({provide:Hp,useClass:Hp});f.addProvider({provide:I4c,useValue:K0J});f.addProvider({provide:_.z1,useFactory:_.bP});f.addProvider({provide:kj,useFactory:_.Ft});d={};f.addProvider((d.provide=x7r,d.useFactory=function(l){return function(m){var H=H===void 0?{}:H;var A,Y,t=(Y=_.b((A=
m.endpoint)==null?void 0:A.commandMetadata,_.jO))==null?void 0:Y.rootVe;if(t){var E,J;if(A=m.previousCsn||((J=_.b((E=m.endpoint)==null?void 0:E.commandMetadata,Wvo))==null?void 0:J.parentCsn)){var X=X===void 0?{}:X;if(A!==_.X2(X.layer)||t!==Y4k(X.layer))E3r(A,X.cttAuthInfo,X.layer||0),HiC(A,X.layer||0),E=X.layer||0,_.Xr(AWk(E===void 0?0:E),t);H.parentCsn=A}m.endpoint&&A?Zdo(l,m.endpoint,H):_.s8(l,t,void 0,H);var u;((u=m.response)==null?0:u.trackingParams)&&l.graftServerVe(m.response.trackingParams);
var W;((W=m.playerResponse)==null?0:W.trackingParams)&&l.graftServerVe(m.playerResponse.trackingParams);var p;((p=m.reelWatchSequenceResponse)==null?0:p.trackingParams)&&l.graftServerVe(m.reelWatchSequenceResponse.trackingParams)}}},d[dE]=[_.z1],d));
d={};f.addProvider((d.provide=R_3,d.useClass=PrH,d[dE]=[HL,_.WL],d));d={};f.addProvider((d.provide=Tk,d.useClass=Tk,d[dE]=[_.sR,_.WL],d));d={};f.addProvider((d.provide=lu,d.useClass=lu,d[dE]=[Cp,_.ZM],d));f.addProvider({provide:_.cHq,useClass:gSr});d={};f.addProvider((d.provide=_.SD,d.useClass=jGD,d[dE]=[_.cHq],d));f.addProvider({provide:_.Lm,useClass:AO});f.addProvider({provide:_.ElH,useClass:e3J});f.addProvider({provide:_.z9,useClass:me});d={};f.addProvider((d.provide=_.M4,d.useClass=CC3,d[dE]=
[_.M4],d));f.addProvider({provide:_.kF,useClass:aA3});f.addProvider({provide:Q3,useClass:Q3});f.addProvider({provide:Uq,useClass:Uq});f.addProvider({provide:V3,useClass:V3});f.addProvider({provide:ax,useClass:ax});d={};f.addProvider((d.provide=iv,d.useClass=iv,d[dE]=[_.ZM,_.uo],d));f.addProvider({provide:Do,useClass:HE});d={};f.addProvider((d.provide=IC,d.useClass=IC,d[dE]=[_.Lm,Do],d));_.F("web_enable_feedback_endpoint_resolver")&&(d={},f.addProvider((d.provide=KK,d.useClass=KK,d[dE]=[bv,tJ],d)),
f.addProvider({provide:tJ,useClass:jki}));_.F("web_enable_feedback_endpoint_resolver_batch_2")&&(d={},f.addProvider((d.provide=nK,d.useClass=nK,d[dE]=[bv],d)),d={},f.addProvider((d.provide=Eq,d.useClass=Eq,d[dE]=[tJ],d)));d={};f.addProvider((d.provide=e1,d.useClass=e1,d[dE]=[_.z9,Do],d));d={};f.addProvider((d.provide=hJ,d.useClass=hJ,d[dE]=[_.z9],d));d={};f.addProvider((d.provide=NW,d.useClass=NW,d[dE]=[_.uo,_.SD],d));d={};f.addProvider((d.provide=WM,d.useClass=WM,d[dE]=[_.uo,_.z1],d));f.addProvider({provide:Tj,
useClass:Tj});d={};f.addProvider((d.provide=gV,d.useClass=gV,d[dE]=[bv],d));f.addProvider({provide:zj,useClass:zj});f.addProvider({provide:LJ,useClass:LJ});d={};f.addProvider((d.provide=aq,d.useClass=aq,d[dE]=[bv],d));d={};f.addProvider((d.provide=VB,d.useClass=VB,d[dE]=[_.uo,bv],d));d={};f.addProvider((d.provide=Xp,d.useClass=Xp,d[dE]=[bv],d));d={};f.addProvider((d.provide=uQ,d.useClass=uQ,d[dE]=[bv],d));d={};f.addProvider((d.provide=wp,d.useClass=wp,d[dE]=[_.SD],d));d={};f.addProvider((d.provide=
Fp,d.useClass=Fp,d[dE]=[_.z1],d));d={};f.addProvider((d.provide=QB,d.useClass=QB,d[dE]=[BG],d));d={};f.addProvider((d.provide=SN,d.useClass=SN,d[dE]=[BG],d));f.addProvider({provide:KJ,useClass:KJ});f.addProvider({provide:Ev,useClass:Ev});f.addProvider({provide:Yj,useClass:Yj});d={};f.addProvider((d.provide=PM,d.useClass=PM,d[dE]=[_.SD,_.ZM],d));f.addProvider({provide:zO,useClass:zO});d={};f.addProvider((d.provide=y3,d.useClass=y3,d[dE]=[_.uo,_.SD],d));f.addProvider({provide:XG,useClass:XG});d={};
f.addProvider((d.provide=rV,d.useClass=rV,d[dE]=[bv,_.uo,_.M4],d));d={};f.addProvider((d.provide=q4,d.useClass=q4,d[dE]=[_.uo,_.ZM],d));f.addProvider({provide:U3j,useValue:Fmh});f.addProvider({provide:cVo,useValue:rzC});f.addProvider({provide:ZY,useClass:ZY});d={};f.addProvider((d.provide=jN,d.useClass=jN,d[dE]=[bv],d));d={};f.addProvider((d.provide=CJ,d.useClass=CJ,d[dE]=[_.kF,_.ZM],d));d={};f.addProvider((d.provide=$y,d.useClass=$y,d[dE]=[_.ZM],d));f.addProvider({provide:FG,useFactory:function(){return new FG(_.Gh())}});
f.addProvider({provide:mwz,useFactory:_.aV.getInstance});d={};f.addProvider((d.provide=aC,d.useClass=aC,d[dE]=[JJ,mwz,_.ZM],d));f.addProvider({provide:S1,useClass:S1});f.addProvider({provide:TO,useClass:TO});f.addProvider({provide:HM,useClass:HM});f.addProvider({provide:_.mr,useClass:_.mr});f.addProvider({provide:wV,useClass:wV});d={};f.addProvider((d.provide=cG,d.useClass=cG,d[dE]=[Cp],d));d={};f.addProvider((d.provide=fJ,d.useClass=fJ,d[dE]=[_.ZM],d));_.F("web_enable_prefetching_videos_on_home")&&
(f.addProvider({provide:OZ,useClass:OZ}),f.addProvider({provide:zk,useClass:zk}));d={};f.addProvider((d.provide=hz,d.useClass=hz,d[dE]=[_.ZM],d));f.addProvider({provide:AJ,useClass:AJ});d={};f.addProvider((d.provide=ms,d.useClass=ms,d[dE]=[_.uo,_.ZM],d));d={};f.addProvider((d.provide=Yy,d.useClass=Yy,d[dE]=[_.ZM],d));f.addProvider({provide:JO,useClass:JO});f.addProvider({provide:xy,useClass:xy});d={};f.addProvider((d.provide=pK,d.useClass=pK,d[dE]=[Cp,_.ZM],d));f.addProvider({provide:oC,useClass:oC});
d={};f.addProvider((d.provide=DY,d.useClass=DY,d[dE]=[Cp,_.ZM,_.uo],d));d={};f.addProvider((d.provide=eN,d.useClass=eN,d[dE]=[_.ZM],d));d={};f.addProvider((d.provide=WG,d.useClass=WG,d[dE]=[_.ZM,_.uo],d));d={};f.addProvider((d.provide=dV,d.useClass=dV,d[dE]=[_.sR],d));d={};f.addProvider((d.provide=GO,d.useClass=GO,d[dE]=[_.sR],d));f.addProvider({provide:sv,useClass:sv});f.addProvider({provide:iQ,useClass:iQ});f.addProvider({provide:Jz,useClass:Jz});f.addProvider({provide:HG,useClass:HG});f.addProvider({provide:lQ,
useClass:lQ});f.addProvider({provide:uv,useClass:uv});f.addProvider({provide:Ov,useClass:Ov});_.F("kevlar_enable_mss_lazy_load")&&f.addProvider({provide:_.Dh,useClass:N8D});f.addProvider({provide:_.bK,useClass:F6});f.addProvider({provide:dl,useFactory:function(){return _.Pw.getInstance()}});
f.addProvider({provide:e_r,useFactory:FI4});f.addProvider({provide:BG,useFactory:function(){return _.L5.getInstance()}});
f.addProvider({provide:Gn3,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});d={};f.addProvider((d.provide=_.sZ,d.useClass=_.sZ,d[dE]=[_.sR,_.ZM,_.z1,e_r,BG,dl,Gn3,HL],d));f.addProvider({provide:_.HP,useClass:Iiv});f.addProvider({provide:_.l4q,useClass:OrC});d={};f.addProvider((d.provide=vM,d.useClass=vM,d[dE]=[_.l4q],d));d={};f.addProvider((d.provide=_.BE,d.useFactory=function(l){return l.upliftCompletionResolver.promise},d[dE]=[R_3],d));
d=_.wi("IS_SHELL_LOAD")?"aa":"eocs";var q=_.wi("IS_SHELL_LOAD")?3:2;_.eY().parkOrScheduleJob(function(){pHJ()},q,d);
_.eY().parkOrScheduleJob(function(){_.ql().resolve(Tk).start()},2,"eocs");
_.eY().parkOrScheduleJob(function(){NoG()},2,"eocs");
_.eY().parkOrScheduleJob(function(){_.ql().resolve(lu).start()},2,"eocs");
_.F("kevlar_debug_data_app_registration_ks")||Fee();f.addProvider({provide:_.uS,useValue:new elF(c.root)});f.addProvider({provide:Nu,useValue:new vvP});f.addProvider({provide:_.oPF,useValue:new pmy(c.root)});f.addProvider({provide:_.Xw,useValue:new xi_});f.addProvider({provide:_.$H,useClass:t2});f.addProvider({provide:rHH,useClass:YA});_.F("kevlar_network_sli_killswitch")||f.addProvider({provide:mSQ,useValue:eVu});f.addProvider({provide:QG,useFactory:kEP});_.F("web_bind_fetch")&&(d={},f.addProvider((d.provide=
jh3,d.useFactory=O_z,d[dE]=[_.dx(QG)],d)));_.F("web_bind_parse")&&(d={},f.addProvider((d.provide=qWF,d.useFactory=lxn,d[dE]=[_.dx(QG)],d)));_.F("web_bind_window_request")&&(d={},f.addProvider((d.provide=Zqc,d.useFactory=sme,d[dE]=[_.dx(QG)],d)));_.F("web_bind_text_decoder")&&(d={},f.addProvider((d.provide=MPr,d.useFactory=BZk,d[dE]=[_.dx(QG)],d)));d={};f.addProvider((d.provide=XNH,d.useFactory=RQM,d[dE]=[_.BE,bv,_.qp],d));d={};f.addProvider((d.provide=VMC,d.useClass=N4,d[dE]=[XNH],d));f.addProvider({provide:xN3,
useClass:Pe3});f.addProvider({provide:Lh3,useClass:JP3});d=[].concat(_.LT(fa));_.F("web_continuation_response_processing")&&d.push(_.Pr);d.push(mjj);_.F("enable_share_panel_navigation_logging_fix_on_web")&&d.push(_.u$o);f.addProvider({provide:uUN,useValue:d});f.addProvider({provide:Y0M,useClass:SCF});f.addProvider({provide:tPF,useClass:Hqi});d={};f.addProvider((d.provide=Tjk,d.useClass=C$3,d[dE]=[Cp],d));_.a7.addLowPriorityJob(function(){Dc4()});
d={};f.addProvider((d.provide=Rju,d.useFactory=function(l){return function(m){var H,A=(H=_.b(m.commandMetadata,_.jO))==null?void 0:H.url;if(!A)throw new _.KD("No URL for PBJ Command",m);A=m9e(A,{pbj:"1"});H=vtk(A,{})||{};H=Object.assign({},H,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.hk("STS").toString()});m=_.Tf({command:JSON.stringify(m),session_token:_.hk("XSRF_TOKEN")});return l.fetch(A,{method:"POST",headers:H,body:m})}},d[dE]=[tPF],d));
d=[];d.push(f.resolve(Lh3));q={};q=(q.client_location=_.aV.getInstance(),q.consistency=_.KD4(),q.entities=f.resolve(yIo),q.response_received_commands=f.resolve(Y0M),q.store=f.resolve(_.s3r),q.tokens=f.resolve(Lh3),q);_.F("web_service_params_response_processor")&&(f.addProvider({provide:B8Q,useFactory:function(){var l={};return l.CSI=TZn(),l.ECATCHER=i_Y(),l}}),f.addProvider({provide:grk,
useClass:iq3}),q.service_params=f.resolve(grk));if(_.F("web_shorts_prefetch_service_enabled")){var Z=new CrC(f.resolve(_.sj));q.shorts_prefetch=Z}q.adblock_detection=f.resolve(Tjk);f.addProvider({provide:_.I7,useClass:_.I7});Z=f.resolve(I4c);var M=[];_.F("PremiumClientSharedConfig__enable_att_context_processor")&&(f.addProvider({provide:K2u,useClass:F2H}),M.push(f.resolve(K2u)));if(_.F("owl_pl_await")){var g={};f.addProvider((g.provide=pDq,g.useFactory=function(l){return new R3C(l)},g[dE]=[_.I7],
g));
M.push(f.resolve(pDq))}kj_(Z,f.resolve(tPF),f.resolve(dS3),q,f.resolve(_.sj),d,M,f.resolve(VMC),f.resolve(xN3));f.addProvider({provide:_.uo,useValue:_.xZ.instance});_.F("start_client_gcf")&&f.addProvider({provide:nW,useValue:wWF()});f.addProvider({provide:o_i,useFactory:function(){return new o_i(_.ql().resolve(_.I7),_.L5.getInstance())}});
_.eY().parkOrScheduleJob(function(){GvF()},1,"eocs");
d={};f.addProvider((d.provide=iu,d.useClass=iu,d[dE]=[_.qp,_.uo],d));f.addProvider({provide:_.i3D,useFactory:_.LB.getInstance});_.eY().parkOrScheduleJob(function(){_.ql().resolve(iu).refresh()},0,"eocs");
Uv_(K0J.watchEndpointMap||{},Z.reelWatchEndpointMap||{},c.injector.resolve(_.uo));f.addProvider({provide:QN,useValue:_.E2.instance});_.F("kevlar_signal_collection_killswitch")||(d={},f.addProvider((d.provide=wHG,d.useClass=wHG,d[dE]=[JJ,kj],d)),_.eY().parkOrScheduleJob(function(){_.ql().resolve(wHG).record()},1,"eocs"));
_.F("web_debug_handler_registration_killswitch")||_.eY().parkOrScheduleJob(function(){AOG("DOWNLOAD_PES",YdC);_.F("offline_client_state_export_ks")||AOG("OFFLINE_CLIENT_STATE",myG)},0,"eocs");
_.F("kevlar_prevent_polymer_dynamic_font_load")&&_.eY().parkOrScheduleJob(function(){var l=[_.CG(JvD),_.CG(aJr)];l=_.C(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var H=document.createElement("link");_.dd(H,m,"stylesheet");document.head.appendChild(H)}},1,"eocs");
d=c.injector.resolve(_.uo);_.bvF.instance=new _.bvF(d);fRl(ivO(new tdF(d)));d={};c.injector.addProvider((d.provide=jR,d.useFactory=function(l){(l=l==null?void 0:l.getCurrentPage())?l=l.visibilityObserver:(c5D||(c5D=LDN()),l=c5D);return l},d[dE]=[_.dx(_.MY)],d.skipCache=!0,d));
f.addProvider({provide:_.yN,useClass:yG});f.addProvider({provide:FT,useClass:GkH});c.injector.addProvider({provide:DbF,useValue:Dir});f.addProvider({provide:aS_,useValue:mcz});f.addProvider({provide:_.of,useValue:QjN});c=f.addProvider;mQc||(mQc=new TJC);c.call(f,{provide:_.tO,useValue:mQc});f.addProvider({provide:_.cr,useValue:_.hk("HTML_DIR")==="rtl"?"rtl":"ltr"});f.addProvider({provide:DFr,useClass:cPC});f.addProvider({provide:_.mt,useClass:bu});_.ql().addProvider({provide:NMu,useValue:_.F("enable_web_delhi_icons")?
xzJ.concat(GVQ):pvQ.concat(ocF)});f.addProvider({provide:_.EZ,useClass:_.EZ});f.addProvider({provide:_.Qhr,useValue:new $SG});f.addProvider({provide:vm3,useClass:vYF});f.addProvider({provide:Az,useClass:Az});f.addProvider({provide:tz,useClass:tz});c={};f.addProvider((c.provide=RC,c.useClass=RC,c[dE]=[_.uo,_.SD],c));f.addProvider({provide:yB,useClass:yB});f.addProvider({provide:jB3,useClass:O33});f.addProvider({provide:nJ,useClass:nJ});f.addProvider({provide:SE3,useValue:BQ3});f.addProvider({provide:_.PT,
useClass:hTT});_.F("enable_payments_purchase_manager")&&f.addProvider({provide:Q4o,useClass:EYO});f.addProvider({provide:zhH,useFactory:function(){return function(l){return _.LEJ(l)}}});
f.addProvider({provide:_.$Nq,useClass:QkC});c={};f.addProvider((c.provide=vG,c.useClass=vG,c[dE]=[_.$Nq],c));f.addProvider({provide:bQ,useClass:bQ});f.addProvider({provide:xrj,useValue:LW_});f.addProvider({provide:C_O,useValue:_.nSJ});f.addProvider({provide:LeM,useClass:kCC});f.addProvider({provide:H3G,useValue:Sl3});c={};f.addProvider((c.provide=AHc,c.useClass=YrJ,c[dE]=[H3G],c));c={};f.addProvider((c.provide=_.F0,c.useClass=zUi,c[dE]=[AHc],c));c={};f.addProvider((c.provide=_.$A,c.useClass=nB,c[dE]=
[_.WL,_.$H],c));if(_.F("web_explore_hub_on_hover")||_.F("web_client_explore_hub_on_hover"))c={},f.addProvider((c.provide=LK,c.useClass=LK,c[dE]=[_.uo,dl],c));if(_.F("web_enable_renderer_logger")){var O=new fJF;sYM(function(){O.abort()});
f.addProvider({provide:E7k,useValue:new WTi(O.signal)})}f.addProvider({provide:txF,useValue:XGM});c={};f.addProvider((c.provide=kv3,c.useClass=g_i,c[dE]=[_.uo],c))}},fUC);var jOH={},qSr=(jOH.initialized={priority:10,callback:function(){if(!T8i){NNC();H_M("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.lF(_.Yt(H_M,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.F("log_heartbeat_with_lifecycles")){var c={};d9.instance||(d9.instance=new d9);d9.instance.install((c.document_visible={callback:ASe,priority:10},c.document_hidden={callback:ASe,priority:10},c))}else _.dK(document,"visibilitychange",ASe);T8i=!0}(c=_.X2())&&c!=="UNDEFINED_CSN"&&TEl(c)}},jOH);var Z1q={},MQr=(Z1q.initialized={callback:function(c){var f=_.m_(232091),d=c.injector.resolve(_.z1);_.B_(d,f);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?oJM()&&_.TG(d,f):(c=c.injector.resolve(zhH)("refresh_detector"))&&(c.get("first_tab_load")?_.TG(d,f):c.set("first_tab_load","1"))}},Z1q);var r5C={},CnQ=(r5C.initialized={priority:10,callback:M04},r5C);var g6F={},kDQ=(g6F.initialized={priority:0,callback:function(){var c=new uE3,f="other";_.m8?f="chrome":_.TK?f="firefox":_.wx?f="safari":Gf&&(f="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(d){c.increment(_.FJ(),d,f)}).catch(function(){c.increment(_.FJ(),!1,f)}):c.increment(_.FJ(),!1,f)}},g6F);var O1H={},lUJ=(O1H.rendering={priority:8,callback:rFr},O1H);var sO3={},Bbi=(sO3.rendering={priority:10,callback:t0h},sO3.rendered={callback:Fkn},sO3),i1H={},TbQ=(i1H.rendering={callback:t0h},i1H.rendered={callback:Fkn},i1H);var mxq=!1,H1G={},A5C=(H1G.initialized={priority:10,callback:function(){mxq||(T2z({didPatch:function(c){c.el&&SG4(c.el,c.props)},
didUnmount:function(c){$7N(c.el)}}),mxq=!0)}},H1G);var YSC=/^\/shorts\/?$/;_.Xr("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")){_.GfM(new tOH);var FAr=!0,tQH,Di;FAr=FAr===void 0?!1:FAr;tQH=tQH===void 0?!1:tQH;Di=Di===void 0?{}:Di;var b1C=Di.cssRowKey||"",KAQ=Di.combinedSignature||"";!b1C&&window&&window._F_cssRowKey&&(b1C=window._F_cssRowKey,!KAQ&&window._F_combinedSignature&&(KAQ=window._F_combinedSignature));if(b1C&&typeof window._F_installCss!=="function")throw Error("ud");var E6H=Di.loaderClass||_.ek,ee=hfk("base-js"),n6i,$xi=ywh("",ee);n6i=_.bX($xi);var Np=new E6H(n6i,b1C,KAQ,FAr,tQH),QOC=
Di.useCors||ee&&ee.hasAttribute("crossorigin"),SSi=Di.corsMode||ee&&ee.getAttribute("crossorigin");QOC&&(Np.useCors_=QOC);SSi&&(Np.corsMode_=SSi);Di.urlMaxLength&&(Np.urlMaxLength=Di.urlMaxLength);Di.fetchPriority&&(Np.fetchPriority=Di.fetchPriority);var LAD=zD();LAD.JSC$9998_loader_=Np;LAD.setBatchModeEnabled(!0)}
(function(){var c=document.querySelector("ytd-app");if(!c)throw Error("Ij");c=new Se({root:c,injector:_.ql()});c.install(qSr);var f={};c.install((f.initialized={priority:10,callback:FUn},f));_.F("wp_lat_b")&&(f={},c.install((f.initialized={priority:10,callback:function(){rSk()}},f)));
f={};c.install((f.rendered={priority:0,callback:Hde},f));f={};c.install((f.rendered={priority:0,callback:function(){_.a7.addLowPriorityJob(function(){_.f4S>1&&(Od4(),TYP())},4E4)}},f));
c.install(ZTF);c.install(MQr);c.install(A5C);D7N();c.install(sZC);c.install(G8i);c.install(jZq);c.install(J3H);c.install(v_p);c.install(OTC);c.install(dxQ);_.F("kevlar_enable_mss_lazy_load")&&c.install(CnQ);c.install(fdC);c.install(kDQ);if(!_.wi("IS_SHELL_LOAD")||_.F("kevlar_fetch_initial_data_promise_client")||_.F("sw_nav_preload_pbj")){var d=_.Bq(window.location.href);f=d&&d==="/watch";d=d&&d.match(YSC);f?c.install(TbQ):d?c.install(lUJ):c.install(Bbi)}else c.install(pUq);c.install(rDD);_.F("web_enable_prefetching_videos_on_home")&&
c.install(mO3);_.F("start_client_gcf")&&c.install(shD);c.install($H3);(new v6T).increment("INSTALLED");c.install(iTC);c.install(PXr);c.transition("initialized");GWY()})();
_.lo=[[["dTRxcGJodjNraW5kI3J1cm8=","ejRqcWxldmFsdWUjZzQwcGwx"],"bHloMGN0QURfUExBQ0VNRU5UX0tJTkRfUEFVU0UjYnpycjdz"]];_.OO=["cyNiZXA0a2p2cHNydXBnbG9iYWxDYWxsYmFjaw==","cjc3ZTJsZG5vbkFibm9ybWFsaXR5RGV0ZWN0ZWQjYWt3ag==","b25BZFNraXAja2s5NjM4bDU5enE3","Zzh3M3ppM3UwbnJhd19wbGF5ZXJfcmVzcG9uc2UjeTY=","I3Uxbm0wNXJxeXhla3JlbmRlcmluZ0NvbnRlbnQ="];_.p5="cyNiZXA0a2p2cHNydXBnbG9iYWxDYWxsYmFjaw== cjc3ZTJsZG5vbkFibm9ybWFsaXR5RGV0ZWN0ZWQjYWt3ag== b25BZFNraXAja2s5NjM4bDU5enE3 Zzh3M3ppM3UwbnJhd19wbGF5ZXJfcmVzcG9uc2UjeTY= eWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjcnF4ZTdzbzRpaTd5d2ViX3BsYQ== YWJfc2FfZWYjN3Y0MnAwb2hycGMz I3Uxbm0wNXJxeXhla3JlbmRlcmluZ0NvbnRlbnQ=".split(" ");
_._ModuleManager_initialize=function(c,f){if(!_.SQ){if(!_.L1)return;_.GfM(_.L1())}_.SQ.setAllModuleInfoString(c,f)};
_._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/syf:6/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.UZ=function(c,f,d,q,Z){var M={};f&&(M[f]=d);q?M.errorType=q:Z&&(M.errorReason=Z);_.JN(c,M);_.ab()};
_.pB=function(c){var f=_.eY();return _.WHT(f,c,1)};
_.JY({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 c=this.query;c&&(this.full||c[0]==="("||(c="("+c+")"),this._mq=window.matchMedia(c),this._add(),this.queryHandler(this._mq))},
queryHandler:function(c){this._setQueryMatches(c.matches)}});var y53;var WAC;var Dxc=function(){};
_.r=Dxc.prototype;_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._tapHandler=function(){};
_.r._focusChanged=function(){};
_.r._detectKeyboardFocus=function(){};
_.r._userActivate=function(){};
_.r._upHandler=function(){};
_.r._spaceKeyDownHandler=function(){};
_.r._spaceKeyUpHandler=function(){};
_.r._asyncClick=function(){};
_.r._pressedChanged=function(){};
_.r._ariaActiveAttributeChanged=function(){};
_.r._activeChanged=function(){};
_.r._controlStateChanged=function(){};
_.r._changedButtonState=function(){};
_.r._focusBlurHandler=function(){};
_.r._disabledChanged=function(){};
_.r._changedControlState=function(){};
_.r._downHandler=function(){};
_.r.ensureRipple=function(){};
_.r.getRipple=function(){};
_.r.hasRipple=function(){};
_.r._noinkChanged=function(){};
_.r._focusedChanged=function(){};
_.r._createRipple=function(){};
_.r.registered=function(){};
_.r._invalidChanged=function(){};
_.r.hasValidator=function(){};
_.r.validate=function(){};
_.r._getValidity=function(){};
_.r._requiredChanged=function(){};
_.r._valueChanged=function(){};
_.r._checkedChanged=function(){};
_.r._buttonStateChanged=function(){};
_.r._setPressed=function(){};
_.r._setPointerDown=function(){};
_.r._setReceivedFocusFromKeyboard=function(){};
_.r._setFocused=function(){};
Dxc=_.JY({is:"tp-yt-paper-radio-button",_template:function(){if(WAC!==void 0)return WAC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;y53===void 0&&(y53=document.createElement("template"));var q=y53;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return WAC=c},
behaviors:[_.kdu],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(){_.ol(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var c=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),f=Math.floor(3*c);f%2!==c%2&&f++;this.updateStyles({"--paper-radio-button-ink-size":f+"px"})}})}});var eWr;var NbC;_.JY({_template:function(){if(NbC!==void 0)return NbC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;eWr===void 0&&(eWr=document.createElement("template"));var q=eWr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return NbC=c},
is:"tp-yt-paper-radio-group",behaviors:[_.baT],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(c){var f=this._valueToItem(c);if(!f||!f.hasAttribute("disabled")){if(this.selected){f=this._valueToItem(this.selected);if(this.selected==c)if(this.allowEmptySelection)c="";else{f&&(f.checked=!0);return}f&&
(f.checked=!1)}_.Ra.select.apply(this,[c]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(c){this._focusPrevious();c.preventDefault();this._activateFocusedItem()},
_onDownKey:function(c){this._focusNext();c.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(c){_.tc3._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(c){_.tc3._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Ra._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Js._resetTabindices.apply(this,arguments);this.items.forEach(function(c){c.removeAttribute("aria-selected")},this)}});var IUr;_.w_("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var xA=function(){return _.z.apply(this,arguments)||this};
_.K(xA,_.z);_.r=xA.prototype;_.r.computeHasPrimaryIcon=function(c){return!(!c.icon&&!c.thumbnail)};
_.r.computeHasSecondary=function(c){return!(!c.secondaryIcon&&!c.secondaryNotificationText)};
_.r.computeHideSecondaryString=function(c){return!_.F("disable_hide_empty_secondary_string")&&!c.secondaryNotificationText};
_.r.computeCompactLinkStyle=function(c){return c?c.toLowerCase().replace(/_/g,"-"):""};
_.r.computeHasFitHeight=function(c){return c==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.r.isActiveEndpoint=function(c){return(c=this.get("commandMetadata.webCommandMetadata.url",c))?_.Bq(window.location.href)!=="/account_transfer_channel"&&_.Bq(window.location.href)!=="/gaia_link"&&_.Bq(window.location.href)!=="/channel_switcher"||c!=="/account"?_.Bq(window.location.href)===c:!0:!1};
_.r.onTap=function(){var c;((c=this.data)==null?0:c.serviceEndpoint)&&_.OX(this.hostElement,[this.data.serviceEndpoint])};
xA.prototype.onTap=xA.prototype.onTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.D("design:type",Boolean)],xA.prototype,"active",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.D("design:type",String)],xA.prototype,"compactLinkStyle",void 0);
_.y([_.L({computed:"computeIcon_(data.icon)"}),_.D("design:type",Object)],xA.prototype,"icon",void 0);_.y([_.L({computed:"computeIcon_(data.secondaryIcon)"}),_.D("design:type",Object)],xA.prototype,"secondaryIcon",void 0);_.y([_.L({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],xA.prototype,"hasSecondary",void 0);_.y([_.L({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],xA.prototype,"hideSecondaryString",void 0);
_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xA.prototype,"onTap",null);_.y([_.v({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],xA);
_.h(xA,"ytd-compact-link-renderer",function(){if(IUr!==void 0)return IUr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return IUr=c},{mode:1});var Pnp;_.w_("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var ox=function(){var c=_.z.apply(this,arguments)||this;c.role="link";c.tabindex="0";c.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 c};
_.K(ox,_.z);_.r=ox.prototype;_.r.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.LX()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.r.getCurrentTheme=function(){return _.zX()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.LX()};
_.r.onThemeSelected=function(c,f){var d=c||f?c:_.Sv(),q=(d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.FDY(_.Bq(window.location.href));_.tQ(0,165,c);_.tQ(0,174,f);this.prefs.save();q&&_.gS(this.hostElement,"yt-dark-mode-toggled-action",[d]);_.gS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.r.onTap=function(){this.data.serviceEndpoint&&_.OX(this.hostElement,[this.data.serviceEndpoint])};
_.r.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.r.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.r.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
ox.prototype.onTap=ox.prototype.onTap;ox.prototype.dataChanged=ox.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ox.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.oJ),_.D("design:type",Object)],ox.prototype,"paperItemBehaviors",void 0);_.y([_.L(),_.D("design:type",Object)],ox.prototype,"data",void 0);_.y([_.L({value:function(){return _.Ft()}}),
_.D("design:type",_.Zn)],ox.prototype,"prefs",void 0);_.y([_.L(),_.D("design:type",Object)],ox.prototype,"label",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ox.prototype,"role",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ox.prototype,"tabindex",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ox.prototype,"dataChanged",null);
_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ox.prototype,"onTap",null);_.y([_.v({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],ox);
_.h(ox,"ytd-toggle-theme-compact-link-renderer",function(){if(Pnp!==void 0)return Pnp;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Pnp=c},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Uxq,puq;_.Gk=function(c){return!!c.getOptions("captions")};
_.RWJ=function(c){return(c=c.getOption("captions","track"))?!!c.displayName:!1};
_.c8=function(c,f){_.LO(f,c,function(){return Uxq[f]},function(d){Uxq[f]=d;
if(!_.F("mweb_player_ve_show_ks")){var q=_.X2(0);q&&d&&_.N9(q,d)}})};
_.fY=function(c){(c=Uxq[c])&&_.TG(_.bP(),c)};
Uxq={};var xxq;/*

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
*/
_.JY({_template:function(){if(xxq!==void 0)return xxq;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;puq===void 0&&(puq=document.createElement("template"));var q=puq;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return xxq=c},
is:"tp-yt-paper-checkbox",behaviors:[_.kdu],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.ol(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var c=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),f="px",d=c.match(/[A-Za-z]+$/);d!==null&&(f=d[0]);c=parseFloat(c);d=8/3*c;f==="px"&&(d=Math.floor(d),d%2!==c%2&&d++);this.updateStyles({"--paper-checkbox-ink-size":d+
f})}})},
_computeCheckboxClass:function(c,f){var d="";c&&(d+="checked ");f&&(d+="invalid");return d},
_computeCheckmarkClass:function(c){return c?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Ckr._createRipple.call(this)}});var o6r=new _.fi("radioButtonSurveyOptionRenderer"),GDC=new _.fi("checkboxSurveyOptionRenderer");var coD;var faH;var da3=0,d6=function(){var c=_.z.call(this)||this;c.selected=!1;c.isOverlay=!1;c.inputId="toggle-option-"+da3;da3++;return c};
_.K(d6,_.z);d6.prototype.onTap=function(){_.CZ(this.hostElement,"ytd-toggle-option-clicked")};
_.y([_.L(),_.D("design:type",String)],d6.prototype,"label",void 0);_.y([_.L(),_.D("design:type",String)],d6.prototype,"inputId",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],d6.prototype,"selected",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],d6.prototype,"isOverlay",void 0);_.y([_.v({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.D("design:paramtypes",[])],d6);
_.h(d6,"ytd-toggle-option-renderer",function(){if(faH!==void 0)return faH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return faH=c},{mode:1});var jK=function(){var c=_.z.apply(this,arguments)||this;c.isToggleOption=!1;c.isOverlay=!1;return c};
_.K(jK,_.z);jK.prototype.onTap=function(c){c.preventDefault();this.data&&(c=!this.data.checked,this.set("data.checked",c),_.CZ(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:c,value:this.data.value}))};
_.ci.Object.defineProperties(jK.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
jK.prototype.onTap=jK.prototype.onTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],jK.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],jK.prototype,"isToggleOption",void 0);_.y([_.L(),_.D("design:type",Object)],jK.prototype,"isOverlay",void 0);_.y([_.S("data.responseText"),_.D("design:type",String),_.D("design:paramtypes",[])],jK.prototype,"label",null);
_.y([_.Ta("ytd-toggle-option-clicked"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],jK.prototype,"onTap",null);_.y([_.v({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],jK);
_.h(jK,"ytd-checkbox-survey-option-renderer",function(){if(coD!==void 0)return coD;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return coD=c},{mode:1});var juc;var qTc;var qf=function(){var c=_.z.apply(this,arguments)||this;c.checked=!1;c.isToggleOption=!1;return c};
_.K(qf,_.z);qf.prototype.onTap=function(){this.data&&(this.checked?_.gS(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.gS(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
qf.prototype.onTap=qf.prototype.onTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qf.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],qf.prototype,"checked",void 0);_.y([_.L(),_.D("design:type",Object)],qf.prototype,"isToggleOption",void 0);_.y([_.Ta("ytd-toggle-option-clicked"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],qf.prototype,"onTap",null);
_.y([_.v({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],qf);
_.h(qf,"ytd-radio-button-survey-option-renderer",function(){if(qTc!==void 0)return qTc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return qTc=c},{mode:1});var Zw=function(){var c=_.z.apply(this,arguments)||this;c.disableAnimation=!1;c.isToggleOption=!0;c.followUpSurveyCommand=null;c.selectedRatingEndpoint=null;c.isSlimlineSurveyFollowUp=!1;c.isShortsStyle=!1;c.styleOverrideAttribute=!0;c.isDarkMode=!1;c.isSubmitted=!1;c.roundedContainer=!0;c.improveShortsResponseRate=_.F("web_improve_shorts_response_rate");c.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 c};
_.K(Zw,_.z);_.r=Zw.prototype;
_.r.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"}}}}};
_.r.attached=function(){var c=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(d){var q;if((q=d[0])!=null&&q.isIntersecting){_.FN().reportShown(c.hostElement);var Z;(Z=c.intersectionObserver)==null||Z.unobserve(c.hostElement)}},{rootMargin:"0px",
threshold:.6});var f;(f=this.intersectionObserver)==null||f.observe(this.hostElement)};
_.r.onDarkModeToggledAction=function(c){this.isDarkMode=c};
_.r.dataChanged=function(){var c;if(((c=this.data)==null?void 0:c.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var f;((f=this.data)==null?void 0:f.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var d,q,Z,M;this.darkColorPalette=(d=this.data)==null?void 0:(q=d.inlineContent)==null?void 0:(Z=q.compactVideoRenderer)==null?void 0:(M=Z.thumbnail)==null?
void 0:M.darkColorPalette;var g,O,l,m;this.lightColorPalette=(g=this.data)==null?void 0:(O=g.inlineContent)==null?void 0:(l=O.compactVideoRenderer)==null?void 0:(m=l.thumbnail)==null?void 0:m.lightColorPalette;var H,A;if(((H=this.data)==null?0:(A=H.inlineContent)==null?0:A.compactVideoRenderer)&&this.isShortsStyle){var Y,t,E,J;c=_.OV((Y=this.data)==null?void 0:(t=Y.inlineContent)==null?void 0:(E=t.compactVideoRenderer)==null?void 0:(J=E.thumbnail)==null?void 0:J.thumbnails);_.la(this.hostElement,
{"--yt-background-url":"url("+c+")"})}};
_.r.handleRequestCompletion=function(){this.hostElement.hidden&&_.CZ(this.hostElement,"yt-dismissible-item-dismissed")};
_.r.onPopupClosed=function(c){var f;((f=c.detail)==null?void 0:f.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.gS(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.r.handleInlineSurveyRatingSelect=function(c,f){var d=this;this.selectedRatingEndpoint=c;this.followUpSurveyCommand=f;this.expanded=!!c;this.getOptionRenderers().forEach(function(q,Z){d.notifyPath("followUpSurveyCommand.followUpOptions."+Z+".checkboxSurveyOptionRenderer.checked");d.set("followUpSurveyCommand.followUpOptions."+Z+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),c=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.gS(this.hostElement,"yt-reel-non-video-content-dismissal-command",[c]))};
_.r.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.gS(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var c,f=(c=this.data)==null?void 0:c.dismissalEndpoint;f&&this.ytComponentBehavior.resolveCommand(f)}};
_.r.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.gS(this.hostElement,"yt-close-popup-action"))};
_.r.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var c=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{c=this.getOptionRenderers().filter(function(q){return q.checked});
if(c.length===0)return;c=c.map(function(q){return q.responseEndpoint})}var f=[];
c.forEach(function(q,Z){Z!==0&&(q=_.b(q,_.Xb))&&q.feedbackToken&&f.push(q.feedbackToken)});
if(c=c[0]){var d={};f.length>0&&(d.extra_feedback_tokens=f);this.ytComponentBehavior.resolveCommand(c,{form:d})}}};
_.r.getOptionRenderers=function(){var c=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(f){c.isSingleSelect=!!_.b(f,o6r);return c.isSingleSelect?_.b(f,o6r):_.b(f,GDC)}):[]};
_.r.handleInlineSurveyOptionSelect=function(c){c=this.optionSelector.indexOf(c);c!==-1&&this.optionSelector.selectIndex(c)};
_.r.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.r.maybeGetBackgroundColor=function(c){return this.isDarkMode?c.section2Color:c.section3Color};
_.r.colorPaletteChanged=function(){var c=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;c=c&&this.maybeGetBackgroundColor(c);this.dismissibleEl.style.backgroundColor=!c||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.ya(c)};
_.ci.Object.defineProperties(Zw.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Zw.prototype.colorPaletteChanged=Zw.prototype.colorPaletteChanged;Zw.prototype.onPopupClosed=Zw.prototype.onPopupClosed;Zw.prototype.handleRequestCompletion=Zw.prototype.handleRequestCompletion;Zw.prototype.dataChanged=Zw.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Zw.prototype,"actionHandlerBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Zw.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],Zw.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.AY("#follow-up-survey-options"),_.D("design:type",Object)],Zw.prototype,"optionSelector",void 0);_.y([_.L(),_.D("design:type",Object)],Zw.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],Zw.prototype,"disableAnimation",void 0);_.y([_.L(),_.D("design:type",Object)],Zw.prototype,"isToggleOption",void 0);_.y([_.L(),_.D("design:type",Object)],Zw.prototype,"followUpSurveyCommand",void 0);_.y([_.L(),_.D("design:type",Object)],Zw.prototype,"selectedRatingEndpoint",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Zw.prototype,"expanded",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zw.prototype,"isSlimlineSurveyFollowUp",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zw.prototype,"isShortsStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zw.prototype,"styleOverrideAttribute",void 0);_.y([_.L(),_.D("design:type",Boolean)],Zw.prototype,"isSingleSelect",void 0);_.y([_.L(),_.D("design:type",Object)],Zw.prototype,"isDarkMode",void 0);
_.y([_.L(),_.D("design:type",Object)],Zw.prototype,"lightColorPalette",void 0);_.y([_.L(),_.D("design:type",Object)],Zw.prototype,"darkColorPalette",void 0);_.y([_.S("selectedRatingEndpoint","isShortsStyle"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Zw.prototype,"isOptionSelected",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zw.prototype,"roundedContainer",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zw.prototype,"improveShortsResponseRate",void 0);_.y([_.AY("#dismissible"),_.D("design:type",HTMLElement)],Zw.prototype,"dismissibleEl",void 0);_.y([_.AY("#dismiss-button yt-icon-button"),_.D("design:type",HTMLElement)],Zw.prototype,"dismissButtonEl",void 0);_.y([_.AY("#inline-survey-header yt-icon-button"),_.D("design:type",HTMLElement)],Zw.prototype,"inlineHeaderDismissButtonEl",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zw.prototype,"dataChanged",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zw.prototype,"handleRequestCompletion",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Zw.prototype,"onPopupClosed",null);
_.y([_.m5("darkColorPalette","lightColorPalette","isDarkMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zw.prototype,"colorPaletteChanged",null);_.y([_.v({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Zw);
_.h(Zw,"ytd-inline-survey-renderer",function(){if(juc!==void 0)return juc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return juc=c},{mode:1});var ZLJ=["en-CA","en","es-MX","fr-CA"];_.MhG=_.dN(function(c){var f=_.ch(c,{isOverlay:!1,isModern:!1}),d=f.captionIconType,q=f.onClick;c=f.ariaLabel;var Z=f.ariaPressed,M=f.isOverlay,g=f.isModern;f=_.xz("button",function(m){_.c8(m,127299)});
var O=_.Ks(function(m){_.fY(127299);q==null||q(m);return!1}),l={};
return _.B("ytm-closed-captioning-button",{class:_.FY("ytmClosedCaptioningButtonHost",(l.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return d()===-1&&M()},l.ytmClosedCaptioningButtonIconDisabled=function(){return d()===-1&&!M()},l))},_.B("button",{el:f,
class:"ytmClosedCaptioningButtonButton",title:c,"aria-label":c,"aria-pressed":Z,"on:click":O},_.B(_.Qy,{icon:function(){var m="",H=g();var A=H?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";H=H?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var Y=_.Ft().get("hl");A=!Y||ZLJ.includes(Y)?A:H;H=d();switch(H){case -1:case 0:m=A;break;case 1:m=A+"_FILLED";break;default:_.WH(H)}return m}})))},"nf");
_.MhG.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.sf=function(c){return function(f,d){var q=c||d.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(f,d,{get:function(){var Z;return this.$?this.$[q]:(Z=_.Hj(this))==null?void 0:Z.querySelector("#"+q)},
enumerable:!0,configurable:!0})}};_.B7=function(c){c=c===void 0?!1:c;_.ES.call(this);this.pubSub_=new _.mu(c);_.ln(this,this.pubSub_)};
_.rn(_.B7,_.ES);_.B7.prototype.subscribe=function(c,f,d){return this.isDisposed()?0:this.pubSub_.subscribe(c,f,d)};
_.B7.prototype.unsubscribe=function(c,f,d){return this.isDisposed()?!1:this.pubSub_.unsubscribe(c,f,d)};
_.B7.prototype.unsubscribeByKey=function(c){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(c)};
_.B7.prototype.publish=function(c,f){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var ZEp=function(){_.UZ("ypcRedeemFlowStarted")},k1=function(c){_.UZ("ypcRedeemFlowFailed",void 0,void 0,void 0,c)},MbF=function(c,f,d){f&&d&&(c.videos.forEach(function(q){q.videoId===f&&(q.itemId=d)}),c.recommendedVideos.forEach(function(q){q.videoId===f&&(q.itemId=d)}))};var rGS;var CGC;/*

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
*/
_.JY({_template:function(){if(CGC!==void 0)return CGC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;rGS===void 0&&(rGS=document.createElement("template"));var q=rGS;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return CGC=c},
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(c,f){var d=this._resolveSrc(c);d!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",c===""||f?this._setLoading(!1):(this._resolvedSrc=d,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 c=this.$.sizedImgDiv.style,f=this.$.placeholder.style;c.backgroundSize=f.backgroundSize=this.sizing;c.backgroundPosition=f.backgroundPosition=this.sizing?this.position:"";c.backgroundRepeat=f.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(c){c=_.Ch(c,this.$.baseURIAnchor.href);c.length>=2&&c[0]==="/"&&c[1]!=="/"&&(c=(location.origin||location.protocol+"//"+location.host)+c);return c}});var gLD;var kWp;_.JY({_template:function(){if(kWp!==void 0)return kWp;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;gLD===void 0&&(gLD=document.createElement("template"));var q=gLD;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return kWp=c},
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(c){return c?"false":"true"},
_headingChanged:function(c){var f=this.getAttribute("heading"),d=this.getAttribute("aria-label");typeof d==="string"&&d!==f||this.setAttribute("aria-label",c)},
_computeHeadingClass:function(c){return c?" over-image":""},
_computeAnimated:function(c){return c}});var OEJ=new _.fi("addRendererToItemSectionAction");var lXJ;var OG=function(){return _.z.apply(this,arguments)||this};
_.K(OG,_.z);OG.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],OG.prototype,"rendererBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],OG.prototype,"dismissibleItemBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],OG.prototype,"rendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],OG.prototype,"data",void 0);_.y([_.v({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],OG);
_.h(OG,"ytd-comment-history-entry-renderer",function(){if(lXJ!==void 0)return lXJ;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return lXJ=c},{mode:1});var ssG;_.w_("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.w_("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var lt=function(){return _.z.apply(this,arguments)||this};
_.K(lt,_.z);_.r=lt.prototype;_.r.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.onKeyUp=function(c){if(c.keyCode===13)this.onTap()};
_.r.onTap=function(){this.data.recordClickEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var c=this.data.navigationEndpoint;c&&_.b(c,_.vQ)&&_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}})};
_.r.readChanged=function(){var c;_.g1(this.hostElement,"unread",!((c=this.data)==null?0:c.read))};
_.r.dataChanged=function(){this.data&&_.g1(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.r.computeThumbnailSize=function(){var c;return((c=this.data)==null?0:c.highPriorityNotification)?32:48};
_.r.getEndpointURL=function(c){return c&&!_.b(c,_.vQ)?this.componentBehavior.computeHref_(c):null};
_.r.getEndpointData=function(c){return c&&!_.b(c,_.vQ)?c:null};
lt.prototype.computeThumbnailSize=lt.prototype.computeThumbnailSize;lt.prototype.dataChanged=lt.prototype.dataChanged;lt.prototype.readChanged=lt.prototype.readChanged;lt.prototype.onKeyUp=lt.prototype.onKeyUp;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],lt.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],lt.prototype,"data",void 0);_.y([_.L({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.D("design:type",Number)],lt.prototype,"thumbnailSize",void 0);_.y([_.Ta("keyup"),_.D("design:type",Function),_.D("design:paramtypes",[KeyboardEvent]),_.D("design:returntype")],lt.prototype,"onKeyUp",null);
_.y([_.m5("data.read"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lt.prototype,"readChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lt.prototype,"dataChanged",null);_.y([_.m5("data.highPriorityNotification"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lt.prototype,"computeThumbnailSize",null);
_.y([_.v({is:"ytd-notification-renderer",disableElementRegistration:!0})],lt);
_.h(lt,"ytd-notification-renderer",function(){if(ssG!==void 0)return ssG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ssG=c},{mode:1});var B0q;var sG=function(){return _.z.apply(this,arguments)||this};
_.K(sG,_.z);sG.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"}}}};
sG.prototype.computeActionButtonClass=function(c){return!c.actionButtons||c.actionButtons.length<=1?"single-button":c.description?"vertical-buttons":"horizontal-buttons"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],sG.prototype,"data",void 0);_.y([_.v({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],sG);
_.h(sG,"ytd-playlist-show-metadata-renderer",function(){if(B0q!==void 0)return B0q;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return B0q=c},{mode:1});var iEG;_.w_("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var BI=function(){return _.z.apply(this,arguments)||this};
_.K(BI,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],BI.prototype,"data",void 0);_.y([_.v({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],BI);
_.h(BI,"ytd-purchase-item-renderer",function(){if(iEG!==void 0)return iEG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return iEG=c},{mode:1});var T0F;var my3={};my3.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(c){if(c)return c.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(c){if(c==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.w_("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var TE=function(){return _.z.apply(this,arguments)||this};
_.K(TE,_.z);TE.prototype.onYtNavigate=function(c){var f=this.openPopupBehavior.getNavigationEndpointPopupAction(c.detail.endpoint);f&&(c.stopPropagation(),this.openPopupBehavior.openPopup(f))};
TE.prototype.onYtNavigate=TE.prototype.onYtNavigate;_.y([_.Q(my3.YtSimpleTextSectionBehavior),_.D("design:type",Object)],TE.prototype,"ytSimpleTextSectionBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],TE.prototype,"openPopupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],TE.prototype,"data",void 0);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],TE.prototype,"onYtNavigate",null);_.y([_.v({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],TE);
_.h(TE,"ytd-simple-text-section-renderer",function(){if(T0F!==void 0)return T0F;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return T0F=c},{mode:1});var HEq;_.w_("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var mB=function(){return _.z.apply(this,arguments)||this};
_.K(mB,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],mB.prototype,"data",void 0);_.y([_.v({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],mB);
_.h(mB,"ytd-unlimited-page-feature-info-renderer",function(){if(HEq!==void 0)return HEq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return HEq=c},{mode:1});var AGi;var Ydr;var HI=function(){return _.z.apply(this,arguments)||this};
_.K(HI,_.z);HI.prototype.dataChanged=function(){if(this.data){var c=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);c&&(c=_.kZ(c,screen.width),this.hostElement.style.backgroundImage="url("+c+")")}};
HI.prototype.dataChanged=HI.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],HI.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],HI.prototype,"dataChanged",null);_.y([_.v({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],HI);
_.h(HI,"ytd-post-redemption-section-renderer",function(){if(Ydr!==void 0)return Ydr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Ydr=c},{mode:1});var FIp;var AS=function(){return _.z.apply(this,arguments)||this};
_.K(AS,_.z);AS.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],AS.prototype,"data",void 0);_.y([_.v({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],AS);
_.h(AS,"ytd-ypc-post-redemption-renderer",function(){if(FIp!==void 0)return FIp;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return FIp=c},{mode:1});_.w_("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Y1=function(){var c=_.z.apply(this,arguments)||this;c.MIN_CODE_LENGTH=12;c.MAX_CODE_LENGTH=24;return c};
_.K(Y1,_.z);_.r=Y1.prototype;_.r.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.r.created=function(){this.riskService=new _.yjn;this.loadPaymentThenable=_.D1r(_.hk("YPC_MB_URL"))};
_.r.ready=function(){var c=this;this.code.addEventListener("keypress",function(f){c.onCodeInputKeypress(f)})};
_.r.dataChanged=function(){var c=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(f){f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=d.value,d.type==="attributes"&&d.attributeName==="dark"&&c.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.r.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var c=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+c+")")}};
_.r.computeRedeemButton=function(c){(c=this.get("redeemButton.buttonRenderer",c))&&(c=Object.assign({},c,{serviceEndpoint:void 0}));return c};
_.r.onRedeemButtonTap=function(c){c.stopPropagation();ZEp();this.redeemCode()};
_.r.redeemCode=function(){var c=this;this.isLoading=!0;var f=this.riskService.init();_.$o([f,this.loadPaymentThenable]).then(function(){var d=c.data.redeemButton.buttonRenderer.serviceEndpoint,q=_.Wmh(),Z=payments.business.integration.ClientTokenFactory.createClientToken(_.b(d,_.WNu).countryCode,q);q={c:c.code.value.trim(),rd:window.btoa(q),ctk:Z};d&&_.ql().resolve(_.ZM).resolveCommand(d,{form:Object.assign({},q,{element:c.hostElement})})},function(){c.showGenericError();
k1("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.yJ(Error("io"))})};
_.r.onYtServiceRequestCompleted=function(c){c.stopPropagation();this.isLoading=!1;var f,d;this.errorMessage=(f=c.detail)==null?void 0:(d=f.data)==null?void 0:d.errorMessage;var q,Z;this.postRedemptionRenderer=(q=c.detail)==null?void 0:(Z=q.data)==null?void 0:Z.renderer;var M,g;if(c=(M=c.detail)==null?void 0:(g=M.data)==null?void 0:g.redirectEndpoint)this.isLoading=!0,_.CZ(this.hostElement,"yt-navigate",{endpoint:c});this.errorMessage?k1("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
c)&&_.UZ("ypcRedeemFlowSucceeded")};
_.r.onYtServiceRequestError=function(c){c.stopPropagation();this.isLoading=!1;if(c=this.get("detail.error.message",c))this.errorMessage=_.pC(c);k1("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.r.onInvokeInstrumentManagerActionCompleted=function(c){c.stopPropagation();this.redeemCode()};
_.r.onInvokeInstrumentManagerActionError=function(c){c.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",c)){case "instrumentManagerLoadError":this.showGenericError();k1("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();k1("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.UZ("ypcRedeemFlowCancelled")}};
_.r.onInput=function(){var c=this;_.Ia(this,"onInput",function(){var f=c.code.value.trim();c.redeemButtonDisabled=f.length<c.MIN_CODE_LENGTH||f.length>c.MAX_CODE_LENGTH},200)};
_.r.onCodeInputKeypress=function(c){c.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(ZEp(),this.redeemCode())};
_.r.computeImageUrl=function(c){return c?_.kZ(c.thumbnails,600):null};
_.r.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Y1.prototype.onInvokeInstrumentManagerActionError=Y1.prototype.onInvokeInstrumentManagerActionError;Y1.prototype.onInvokeInstrumentManagerActionCompleted=Y1.prototype.onInvokeInstrumentManagerActionCompleted;Y1.prototype.onYtServiceRequestError=Y1.prototype.onYtServiceRequestError;Y1.prototype.onYtServiceRequestCompleted=Y1.prototype.onYtServiceRequestCompleted;Y1.prototype.dataChanged=Y1.prototype.dataChanged;
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Y1.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Y1.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Boolean)],Y1.prototype,"redeemButtonDisabled",void 0);
_.y([_.L(),_.D("design:type",Object)],Y1.prototype,"errorMessage",void 0);_.y([_.L(),_.D("design:type",Object)],Y1.prototype,"postRedemptionRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],Y1.prototype,"observer",void 0);_.y([_.AY("#code"),_.D("design:type",HTMLInputElement)],Y1.prototype,"code",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Y1.prototype,"dataChanged",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Y1.prototype,"onYtServiceRequestCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Y1.prototype,"onYtServiceRequestError",null);
_.y([_.Ta("yt-invoke-instrument-manager-action-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Y1.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.y([_.Ta("yt-invoke-instrument-manager-action-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Y1.prototype,"onInvokeInstrumentManagerActionError",null);_.y([_.v({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Y1);
_.h(Y1,"ytd-redeem-code-renderer",function(){if(AGi!==void 0)return AGi;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return AGi=c},{mode:1});var tbD;_.w_("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var FA=function(){var c=_.z.apply(this,arguments)||this;c.businessEmailDisplayState="HIDE_SECTION";return c};
_.K(FA,_.z);_.r=FA.prototype;_.r.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}}}}}};
_.r.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"};
_.r.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.r.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Dz(_.vUO),this.businessEmailDisplayState="CAPTCHA"))};
_.r.onYtServiceRequestCompleted=function(c){var f;if((f=c.detail.data)==null?0:f.businessEmail)this.businessEmail=c.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var d;if((d=c.detail.data)==null?0:d.errorMessage)this.businessEmailErrorMessage=c.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.r.computeEmailHref=function(c){return"mailto:"+c};
_.r.computeSafeUrl=function(c){if(c)return _.XD(c)};
_.r.onBusinessEmailCaptchaSubmit=function(){var c;(c=this.data)!=null&&c.onBusinessEmailRevealClickCommand&&(c=this.JSC$21527_captchaTextarea.value)&&(c={recaptcha_response_token:c,channel_id:this.data.channelId},_.ql().resolve(_.ZM).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},c,{element:this.hostElement})}))};
_.r.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ci.Object.defineProperties(FA.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 c,f;return!((c=this.data)==null||!c.primaryLinks)&&!((f=this.data)==null?0:f.links)&&this.data.primaryLinks.every(function(d){return d.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null||!c.primaryLinks)&&!((f=this.data)==null?0:f.links)&&!this.shouldShowNewLinks}}});
FA.prototype.onYtServiceRequestCompleted=FA.prototype.onYtServiceRequestCompleted;FA.prototype.dataChanged=FA.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],FA.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.AY("#g-recaptcha-response"),_.D("design:type",HTMLTextAreaElement)],FA.prototype,"JSC$21527_captchaTextarea",void 0);_.y([_.L(),_.D("design:type",Object)],FA.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],FA.prototype,"businessEmailDisplayState",void 0);_.y([_.L(),_.D("design:type",String)],FA.prototype,"businessEmail",void 0);_.y([_.L(),_.D("design:type",String)],FA.prototype,"businessEmailErrorMessage",void 0);
_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],FA.prototype,"hideDetailsSection",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],FA.prototype,"dataChanged",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],FA.prototype,"shouldShowNewLinks",null);_.y([_.S("data","shouldShowLinks"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],FA.prototype,"shouldShowLegacyLinks",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],FA.prototype,"onYtServiceRequestCompleted",null);_.y([_.v({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],FA);
_.h(FA,"ytd-channel-about-metadata-renderer",function(){if(tbD!==void 0)return tbD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return tbD=c},{mode:1});var bEp;_.w_("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var tS=function(){return _.z.apply(this,arguments)||this};
_.K(tS,_.z);tS.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]]"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tS.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],tS.prototype,"lockupContainerType",void 0);_.y([_.L(),_.D("design:type",String)],tS.prototype,"thumbnailFixedWidth",void 0);
_.y([_.v({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],tS);
_.h(tS,"ytd-channel-featured-content-renderer",function(){if(bEp!==void 0)return bEp;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return bEp=c},{mode:1});var KIp;_.w_("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var bt=function(){var c=_.z.apply(this,arguments)||this;c.roundContainer=!0;c.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return c};
_.K(bt,_.z);_.r=bt.prototype;_.r.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r.dataChanged=function(){this.imageWidth=this.imageHeight=24;var c=this.data;c.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!c.style&&c.image&&c.image.thumbnails.length&&(c=c.image.thumbnails[0],this.imageWidth=c.width||0,this.imageHeight=c.height||0)};
_.r.computeSource=function(c){return c.secondarySource?_.xC(c.secondarySource):_.xC(c.source)};
_.r.computeClarifyStyle=function(c){return c?c.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.r.isLargeStyle=function(c){return c==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.r.computeBackgroundStyle=function(c){return c?c.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.r.computeHasActionButton=function(c){return!!c.actionButton};
_.r.computeHasBottomSection=function(c){return!!c.ctaHasBottomSection};
_.r.computeIsSourceMissing=function(c){return c.ctaHasBottomSection===!1?!0:c&&this.computeSource(c)?!1:!0};
_.r.computeSecondaryEndpoint=function(c){return c.secondaryEndpoint||c.endpoint};
bt.prototype.dataChanged=bt.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bt.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],bt.prototype,"imageWidth",void 0);_.y([_.L(),_.D("design:type",Number)],bt.prototype,"imageHeight",void 0);
_.y([_.L({computed:"computeSecondaryEndpoint(data)"}),_.D("design:type",Object)],bt.prototype,"secondaryEndpoint",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.D("design:type",Boolean)],bt.prototype,"hasActionButton",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.D("design:type",Boolean)],bt.prototype,"hasBottomSection",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.D("design:type",Boolean)],bt.prototype,"missingSource",void 0);_.y([_.L({computed:"computeIcon_(data.icon)"}),_.D("design:type",String)],bt.prototype,"icon",void 0);_.y([_.L({computed:"computeIcon_(data.secondaryIcon)"}),_.D("design:type",String)],bt.prototype,"secondaryIcon",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.D("design:type",String)],bt.prototype,"clarifyStyle",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.D("design:type",String)],bt.prototype,"backgroundStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],bt.prototype,"roundContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],bt.prototype,"amsterdamEnabled",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],bt.prototype,"dataChanged",null);
_.y([_.v({is:"ytd-clarification-renderer",disableElementRegistration:!0})],bt);
_.h(bt,"ytd-clarification-renderer",function(){if(KIp!==void 0)return KIp;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return KIp=c},{mode:1});var ELi;var nLH;var K_=function(){var c=_.z.apply(this,arguments)||this;c.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return c};
_.K(K_,_.z);_.r=K_.prototype;_.r.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.r.computeIcon=function(c){return c?"yt-icons:"+c.toLowerCase():null};
_.r.computeUseContacts=function(c){return!!c.contacts&&c.contacts.length>0};
_.r.computePhoneContact=function(c){var f,d;return(f=c.contacts)==null?void 0:(d=f.find(function(q){var Z;return(q==null?void 0:(Z=q.icon)==null?void 0:Z.iconType)==="PHONE"}))==null?void 0:d.actionText};
_.r.computeSmsContact=function(c){var f,d;return(f=c.contacts)==null?void 0:(d=f.find(function(q){var Z;return(q==null?void 0:(Z=q.icon)==null?void 0:Z.iconType)==="SMS"}))==null?void 0:d.actionText};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],K_.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],K_.prototype,"amsterdamEnabled",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.D("design:type",Boolean)],K_.prototype,"useContacts",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.D("design:type",String)],K_.prototype,"phoneContact",void 0);_.y([_.v({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],K_);
_.h(K_,"ytd-single-action-emergency-support-renderer",function(){if(nLH!==void 0)return nLH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return nLH=c},{mode:1});_.w_("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var EG=function(){var c=_.z.apply(this,arguments)||this;c.roundedContainer=!0;c.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return c};
_.K(EG,_.z);EG.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"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],EG.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],EG.prototype,"roundedContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],EG.prototype,"amsterdamEnabled",void 0);
_.y([_.v({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],EG);
_.h(EG,"ytd-emergency-onebox-renderer",function(){if(ELi!==void 0)return ELi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ELi=c},{mode:1});var $yc;_.w_("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var n_=function(){return _.z.apply(this,arguments)||this};
_.K(n_,_.z);n_.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],n_.prototype,"data",void 0);_.y([_.v({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],n_);
_.h(n_,"ytd-exploratory-results-renderer",function(){if($yc!==void 0)return $yc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $yc=c},{mode:1});var Qsc;_.w_("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var $1=function(){var c=_.z.apply(this,arguments)||this;c.messageData=null;return c};
_.K($1,_.z);_.r=$1.prototype;_.r.onServiceRequestCompleted=function(c,f){c=f.actions||[];f=0;for(var d=c.length;f<d;f++){var q=c[f],Z=void 0,M=void 0;if((Z=_.b(q,_.nz))==null?0:(M=Z.item)==null?0:M.messageRenderer)this.messageData=_.b(q,_.nz).item.messageRenderer}};
_.r.dataChanged=function(){var c=this.data;this.hostElement.hidden=!1;_.g1(this.hostElement,"is-channel",c&&!c.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.r.computeThumbnailWidth=function(c){return c?126:56};
_.r.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.r.onSubmitTap=function(){var c=this.data,f=this.selectedResponseIndex;c!==void 0&&f!==void 0&&(c=c.responses[f],c.responseData&&_.ql().resolve(_.ZM).resolveCommand(c.responseData,{form:{element:this.hostElement}}))};
_.r.onDismissTap=function(){this.hostElement.hidden=!0;var c=this.data;c!==void 0&&c.dismissalEndpoint&&_.ql().resolve(_.ZM).resolveCommand(c.dismissalEndpoint,{form:{element:this.hostElement}})};
_.r.updateSelectedResponseIndexFromBinding=function(c){this.selectedResponseIndex=c.detail.value};
$1.prototype.onSelectedResponseIndexChange=$1.prototype.onSelectedResponseIndexChange;$1.prototype.dataChanged=$1.prototype.dataChanged;$1.prototype.onServiceRequestCompleted=$1.prototype.onServiceRequestCompleted;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$1.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],$1.prototype,"messageData",void 0);
_.y([_.L(),_.D("design:type",Number)],$1.prototype,"selectedResponseIndex",void 0);_.y([_.AY("#submit-button"),_.D("design:type",HTMLButtonElement)],$1.prototype,"submitButton",void 0);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],$1.prototype,"onServiceRequestCompleted",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$1.prototype,"dataChanged",null);
_.y([_.m5("selectedResponseIndex"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$1.prototype,"onSelectedResponseIndexChange",null);_.y([_.v({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],$1);
_.h($1,"ytd-feedback-elicitation-single-question-renderer",function(){if(Qsc!==void 0)return Qsc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Qsc=c},{mode:1});var SdJ;var Qf=function(){return _.z.apply(this,arguments)||this};
_.K(Qf,_.z);Qf.prototype.computeThumbnailWidth=function(c){return c?602:428};
Qf.prototype.updateWideFromBinding=function(c){this.wide=c.detail.value};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Qf.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],Qf.prototype,"wide",void 0);_.y([_.v({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Qf);
_.h(Qf,"ytd-newspaper-hero-video-renderer",function(){if(SdJ!==void 0)return SdJ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return SdJ=c},{mode:1});var LIG;var SV=function(){return _.z.apply(this,arguments)||this};
_.K(SV,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],SV.prototype,"rendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],SV.prototype,"data",void 0);_.y([_.v({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],SV);
_.h(SV,"ytd-newspaper-mini-video-renderer",function(){if(LIG!==void 0)return LIG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return LIG=c},{mode:1});var zXi;_.w_("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var L_=function(){return _.z.apply(this,arguments)||this};
_.K(L_,_.z);L_.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"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],L_.prototype,"data",void 0);_.y([_.v({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],L_);
_.h(L_,"ytd-newspaper-renderer",function(){if(zXi!==void 0)return zXi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return zXi=c},{mode:1});var JGC;_.w_("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var zE=function(){var c=_.z.apply(this,arguments)||this;c.isSegment=!1;c.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};c.nextContinuation={continuationType:"playlistVideoListContinuation"};return c};
_.K(zE,_.z);_.r=zE.prototype;_.r.attached=function(){_.ql();var c;(c=_.ql().resolve(_.dx(_.M4)))!=null&&(c.playlistVideoListElement=this.hostElement)};
_.r.detached=function(){var c;(c=_.ql().resolve(_.dx(_.M4)))!=null&&(c.playlistVideoListElement=void 0);c=_.ql().resolve(_.dx(_.kF));_.F("web_enable_voting_animation")&&c&&(c.parentElem=void 0,c.videos=[],c.continuationsPresent=!1,c.showRefreshPill=!1)};
_.r.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"}}}}}};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.r.dataChanged=function(){var c=_.ql().resolve(_.dx(_.kF));if(_.F("web_enable_voting_animation")&&this.data&&c){var f=_.r1(this.hostElement).querySelector("#contents");f&&(c.parentElem=f);c.addVideos(this.data.contents)}_.KeK(this.ytReorderableBehavior)};
_.r.onRendererstamperFinished=function(){this.canReorder&&_.EAK(this.ytReorderableBehavior,_.r1(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.r.onPlaylistReloading=function(){this.isReloading=!0};
_.r.onUpdateSetVideoId=function(c){if(c.detail&&this.data&&this.data.contents){var f=c.detail;c=this.data.contents.findIndex(function(Z){var M;return((M=Z.playlistVideoRenderer)==null?void 0:M.videoId)===f.videoId});
if(!(c<0)&&f.setVideoId&&(this.set("data.contents."+c+".playlistVideoRenderer.setVideoId",f.setVideoId),_.F("web_enable_voting_animation"))){var d;if(c=_.b((d=this.data.contents[c].playlistVideoRenderer)==null?void 0:d.engagementBar,_.gUz)){var q;(q=c.actions)==null||q.forEach(function(Z){if(Z=_.b(Z,_.kQC))Z.itemId=f.setVideoId})}(d=_.ql().resolve(_.dx(_.kF)))&&MbF(d,f.videoId,f.setVideoId)}}};
_.r.computeContentsClass=function(c){return c?"reloading":""};
_.r.computeIsSortable=function(c,f){return c&&f>0&&!this.isSegment&&!_.F("shorts_in_playlists_web")};
_.r.computeIsEditable=function(c){return c};
_.r.computeCanReorder=function(c){return c};
_.r.handlePlaylistRemoveVideosAction=function(c){if(this.get("playlistRemoveVideosAction.setVideoIds",c)&&this.data&&this.data.contents){c=_.b(c,_.eqO).setVideoIds;for(var f=this.data.contents.length-1;f>=0;){var d=this.data.contents[f].playlistVideoRenderer;d&&d.setVideoId&&c.includes(d.setVideoId)&&this.splice("data.contents",f,1);f--}_.gS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.r.updateIndices=function(){if(this.data&&this.data.contents)for(var c=0;c<this.data.contents.length;c++)this.set("data.contents."+c+".playlistVideoRenderer.index",_.pC(String(c+1)))};
_.r.handleDrop=function(c){c=c.currDragItem;var f=_.Xk(c.parentNode.childNodes,c),d=this.data.contents.splice(Number(_.xC(c.data.index))-1,1)[0];this.data.contents.splice(f,0,d);f=f?this.get("contents."+(f-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();c=this.buildReorderServiceEndpoint(c.data.setVideoId,f);this.ytComponentBehavior.resolveCommand(c)};
_.r.buildReorderServiceEndpoint=function(c,f){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",c),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",f),this.data.onReorderEndpoint):null};
_.r.handleUpdatePlaylistAction=function(c){var f;(c=_.b((f=_.b(c,_.N7T))==null?void 0:f.updatedRenderer,_.sEH))&&this.canReorder!==c.canReorder&&this.set("data.canReorder",c.canReorder);c&&c.contents&&(this.set("data.contents",c.contents),this.isReloading=!1);c&&c.continuations&&this.set("data.continuations",c.continuations)};
_.r.handleAddRendererToItemSectionAction=function(c){var f,d=(f=_.b(c,OEJ))==null?void 0:f.renderer,q;d&&((q=_.b(c,OEJ))==null?void 0:q.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,d),c=_.ql().resolve(_.dx(_.kF)),_.F("web_enable_voting_animation")&&c&&(d&&(f=_.C8Y(d))&&c.recommendedVideos.push({itemId:f,videoId:_.Ob4(d),voteCount:_.lRk(d),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.r.isVotingEnabledOnPlaylist=function(c){if(!c)return!1;c=_.C(c);for(c=c.next();!c.done;c=c.next()){var f=void 0;return!!_.b((f=c.value.playlistVideoRenderer)==null?void 0:f.engagementBar,_.gUz)}return!1};
_.r.onAppendContinuationItemsActionFinished=function(){var c;this.isVotingEnabledOnPlaylist((c=this.data)==null?void 0:c.contents)&&(this.updateIndices(),c=_.ql().resolve(_.dx(_.kF)),_.F("web_enable_voting_animation")&&c&&this.data&&c.addVideos(this.data.contents))};
_.r.updateVideoData=function(c){if(c.detail&&this.data&&this.data.contents){var f=c.detail;c=f.toIdx;var d=f.itemId,q=f.newVoteCount,Z=f.voteStatus;f=f.hideItem;var M,g,O=(M=this.data)==null?void 0:(g=M.contents)==null?void 0:g.findIndex(function(A){return _.C8Y(A)===d});
if(!(O<0)){M=this.data.contents[O];var l;if((l=M.playlistVideoRenderer)==null?0:l.voteCount)M.playlistVideoRenderer.voteCount=q;var m;if(l=_.b((m=M.playlistVideoRenderer)==null?void 0:m.engagementBar,_.gUz)){var H;(H=l.actions)==null||H.forEach(function(A){(A=_.b(A,_.kQC))&&A.initialState&&(A.initialState.votes=q,A.initialState.status=Z)})}this.data.contents.splice(O,1);
f||this.data.contents.splice(c,0,M);this.updateIndices()}}};
zE.prototype.updateVideoData=zE.prototype.updateVideoData;zE.prototype.onAppendContinuationItemsActionFinished=zE.prototype.onAppendContinuationItemsActionFinished;zE.prototype.onUpdateSetVideoId=zE.prototype.onUpdateSetVideoId;zE.prototype.onPlaylistReloading=zE.prototype.onPlaylistReloading;zE.prototype.onRendererstamperFinished=zE.prototype.onRendererstamperFinished;zE.prototype.dataChanged=zE.prototype.dataChanged;
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],zE.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.RF.YtNextContinuationBehavior),_.D("design:type",Object)],zE.prototype,"ytNextContinuationBehavior",void 0);
_.y([_.Q(_.nAr),_.D("design:type",Object)],zE.prototype,"ytReorderableBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],zE.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],zE.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zE.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],zE.prototype,"isReloading",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zE.prototype,"isSegment",void 0);_.y([_.L({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.D("design:type",Boolean)],zE.prototype,"isSortable",void 0);_.y([_.L({computed:"computeIsEditable(data.isEditable)"}),_.D("design:type",Boolean)],zE.prototype,"isEditable",void 0);_.y([_.L({computed:"computeCanReorder(data.canReorder)"}),_.D("design:type",Boolean)],zE.prototype,"canReorder",void 0);
_.y([_.L({value:101}),_.D("design:type",Number)],zE.prototype,"scrollMargin",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zE.prototype,"dataChanged",null);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zE.prototype,"onRendererstamperFinished",null);
_.y([_.Ta("yt-playlist-reloading"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zE.prototype,"onPlaylistReloading",null);_.y([_.Ta("yt-update-set-video-id"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],zE.prototype,"onUpdateSetVideoId",null);
_.y([_.Ta("yt-append-continuation-items-action-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zE.prototype,"onAppendContinuationItemsActionFinished",null);_.y([_.Ta("yt-update-video-data-voting-animation"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],zE.prototype,"updateVideoData",null);_.y([_.v({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],zE);
_.h(zE,"ytd-playlist-video-list-renderer",function(){if(JGC!==void 0)return JGC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return JGC=c},{mode:_.lP("kevlar_poly_si_batch_j047")?1:2});var aXG;var JS=function(){return _.z.apply(this,arguments)||this};
_.K(JS,_.z);JS.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"}}}}};
JS.prototype.onTextWrapperTap=function(c){var f=this.data&&this.data.navigationEndpoint;f&&!_.qY(_.x0(c),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.CZ(this.hostElement,"yt-navigate",{endpoint:f})};
JS.prototype.dataChanged=function(){var c=this.get("data.offerButton.buttonRenderer.serviceEndpoint");c&&c.commandMetadata&&_.b(c.commandMetadata,_.z2)&&_.b(c.commandMetadata,_.z2).fireAutomatically&&_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}})};
JS.prototype.dataChanged=JS.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Ui),_.D("design:type",Object)],JS.prototype,"ytdLockupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],JS.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.D("design:type",Boolean)],JS.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],JS.prototype,"biggerThumbsStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],JS.prototype,"leftAligned",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],JS.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-movie-renderer"})],JS);
_.h(JS,"ytd-movie-renderer",function(){if(aXG!==void 0)return aXG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return aXG=c},{mode:1});var Vbi;var am=function(){var c=_.z.apply(this,arguments)||this;c.rounded=!0;c.pageAttachedTo=void 0;c.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return c};
_.K(am,_.z);am.prototype.attached=function(){this.pageAttachedTo=_.ql().resolve(_.MY).getCurrentPage();_.CZ(this.hostElement,"yt-player-attached",this.player)};
am.prototype.detached=function(){var c;if((c=this.pageAttachedTo)==null?0:c.hostElement)_.CZ(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
am.prototype.dataChanged=function(){var c;if((c=this.data)==null?0:c.videoId)c={video_id:this.data.videoId,autoplay:!0},!_.F("miniplayer_stop_channel_video_autoplay_killswitch")&&_.ql().resolve(_.yN).isMiniplayerActive()&&(c.pause_at_start=!0,c.autoplay=!1),this.player.loadVideoWithPlayerVars(c)};
am.prototype.handleSignalActionPausePlayer=function(){_.gy().pause()};
am.prototype.dataChanged=am.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],am.prototype,"data",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],am.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],am.prototype,"rounded",void 0);_.y([_.AY("#player"),_.D("design:type",Object)],am.prototype,"player",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],am.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],am);
_.h(am,"ytd-channel-video-player-renderer",function(){if(Vbi!==void 0)return Vbi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Vbi=c},{mode:1});var XJH;var uKH;var vLc;var Vf=function(){var c=_.z.apply(this,arguments)||this;c.playing=!1;c.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Rk(c);c.active=!1;return c};
_.K(Vf,_.z);_.r=Vf.prototype;_.r.detached=function(){this.stop()};
_.r.play=function(){var c=this,f,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return c.active=!0,f=c.get("data.inlinePlaybackEndpoint.watchEndpoint"),d=f.videoId||c.data.videoId,q=f.startTimeSeconds||0,Z=f.playerParams||null,_.F("kevlar_player_update_killswitch")?g.yield(c.playerEl.update({args:{video_id:d,startSeconds:q,player_params:Z}}),2):(c.playerEl.loadVideoWithPlayerVars({video_id:d,startSeconds:q,player_params:Z,autoplay:!0}),g.jumpTo(2));if(g.nextAddress!=4)return g.yield(c.playerEl.getPlayerPromise(),
4);M=g.yieldResult;M.unloadModule("annotations_module");M.addEventListener("onStateChange",function(O){c.onPlayerStateChange(O)});
_.Fm(g)})};
_.r.onPlayerStateChange=function(c){if(this.active)switch(this.playing=c===1,c){case 1:_.CZ(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.CZ(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.r.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.r.resize=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return d.yield(c.playerEl.getPlayerPromise(),2);f=d.yieldResult;f.setSize(NaN,NaN);_.Fm(d)})};
_.y([_.L(),_.D("design:type",Object)],Vf.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Vf.prototype,"playing",void 0);_.y([_.L(),_.D("design:type",Object)],Vf.prototype,"playerId",void 0);_.y([_.AY("#player"),_.D("design:type",Object)],Vf.prototype,"playerEl",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Vf);
_.h(Vf,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(vLc!==void 0)return vLc;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return vLc=c},{mode:1});var hXr;var wJC;var XA=function(){var c=_.z.apply(this,arguments)||this;c.width=0;return c};
_.K(XA,_.z);_.r=XA.prototype;_.r.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.ia(this,this.onEnded));this.mp4El.addEventListener("error",_.ia(this,this.onError))};
_.r.detached=function(){this.videoEl.removeEventListener("ended",_.ia(this,this.onEnded));this.mp4El.removeEventListener("error",_.ia(this,this.onError))};
_.r.play=function(){var c=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var f=this.videoEl.play();f?f.then(function(){c.handleVideoStartPlaying()}).catch(function(){_.CZ(c.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.CZ(this.hostElement,"yt-video-thumbnail-not-playing")};
_.r.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.r.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.r.dataChanged=function(){var c;if((c=this.data)==null?0:c.thumbnailPlaceholder)c=_.kZ(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+c+")";this.stop();this.autoplay&&this.play()};
_.r.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.r.onEnded=function(){this.stop();_.CZ(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.r.onError=function(){_.CZ(this.hostElement,"yt-video-thumbnail-error")};
_.r.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.r.getVideoThumbnail=function(c){if(c&&c.length)return c[0]};
XA.prototype.dataChanged=XA.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],XA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],XA.prototype,"animatePlaceholderOnEntrance",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],XA.prototype,"autoplay",void 0);_.y([_.L({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.D("design:type",Object)],XA.prototype,"videoThumbnail",void 0);
_.y([_.L(),_.D("design:type",Boolean)],XA.prototype,"loop",void 0);_.y([_.L(),_.D("design:type",Boolean)],XA.prototype,"isVideoPlaying",void 0);_.y([_.L(),_.D("design:type",Object)],XA.prototype,"width",void 0);_.y([_.AY("#mp4"),_.D("design:type",HTMLElement)],XA.prototype,"mp4El",void 0);_.y([_.AY("#placeholder"),_.D("design:type",HTMLElement)],XA.prototype,"placeholderEl",void 0);_.y([_.AY("#video"),_.D("design:type",HTMLVideoElement)],XA.prototype,"videoEl",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],XA.prototype,"dataChanged",null);_.y([_.vj({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],XA);
_.h(XA,"yt-video-as-thumbnail-details",function(){if(wJC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;hXr===void 0&&(hXr=document.createElement("template"));var q=hXr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);wJC=c}c=wJC;return c},{mode:2});var ut=function(){var c=_.z.apply(this,arguments)||this;c.disableGridStateAware=!1;c.animationEnabled=_.F("enable_web_ketchup_hero_animation");c.transitioningOut=!1;c.narrow=!1;c.narrower=!1;c.isCarouselInFeed=!1;c.videoTimeoutJobId=0;c.panelTimeoutJobId=0;c.panelTimeoutJobStartMs=0;c.actionMap={"yt-window-resized":"onWindowResized"};return c};
_.K(ut,_.z);_.r=ut.prototype;_.r.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.r.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.r.attached=function(){this.onWindowResized()};
_.r.detached=function(){this.clearTimeouts()};
_.r.onWindowResized=function(){this.updateSize()};
_.r.computePanelLayout=function(c){return c&&c.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.r.playVideo=function(){var c;this.video&&((c=this.data)==null?0:c.videoThumbnail)&&this.video.play();var f;this.player&&((f=this.data)==null?0:f.inlinePlaybackRenderer)&&this.player.play()};
_.r.stopVideo=function(){var c;this.video&&((c=this.data)==null?0:c.videoThumbnail)&&this.video.stop();var f;this.player&&((f=this.data)==null?0:f.inlinePlaybackRenderer)&&this.player.stop()};
_.r.transitionOut=function(){var c=this;this.transitioningOut=!0;return new Promise(function(f){var d=function(){_.r1(c.hostElement).querySelector("#action-button").removeEventListener("animationend",d);_.a7.cancelJob(q);f();c.transitioningOut=!1};
var q=_.Em(_.a7,d,1E3);_.r1(c.hostElement).querySelector("#action-button").addEventListener("animationend",d);c.player&&(c.player.playing=!1)})};
_.r.computeMetadataOrder=function(c){return c&&c.metadataOrder&&c.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?c.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.r.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.r.computeAvatarSize=function(c){return c&&c.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.r.onContentClick=function(c){if(!_.qY(_.x0(c),this.hostElement,["A".toString(),"BUTTON".toString()])){var f;if((f=this.data)==null?0:f.navigationEndpoint){var d;this.componentBehavior.resolveCommand((d=this.data)==null?void 0:d.navigationEndpoint)}}};
_.r.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.r.setBackgroundImage=function(c){if(c=this.getBackgroundImageUrl(c))_.r1(this.hostElement).querySelector("#hero").style.backgroundImage="url("+c+")"};
_.r.setScrimLayer=function(c){var f=this.getScrimLayerColorStops(c);c=((c==null?void 0:c.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(c=180);_.hk("HTML_DIR")==="rtl"&&(c=-c);f&&(_.r1(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+c+"deg, "+f+")")};
_.r.isNarrower=function(){return this.hostElement.clientWidth<ut.NARROW_VERSION_SIZE};
_.r.getScrimLayerColorStops=function(){var c,f=(c=this.data)==null?void 0:c.scrimColorValues;if(!f)return null;if(f.length===1)return c=_.WS(f[0]),c+" 0%, "+c+" 100%";if(f.length===3){var d=[0,72,98];return f.map(function(q,Z){return _.WS(q)+" "+d[Z]+"%"}).join(",")}return null};
_.r.getBackgroundImageUrl=function(c){return c&&c.largeFormFactorBackgroundThumbnail?_.kZ((c.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||c.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.r.onPlaying=function(){this.startVideoTimeout()};
_.r.onEnded=function(){this.rotate()};
_.r.startPanelTimeout=function(){var c=this;if(!this.panelTimeoutJobId){var f=this.get("data.minPanelDisplayDurationMs");f&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Em(_.a7,function(){c.rotate()},f))}};
_.r.startVideoTimeout=function(){var c=this;if(!this.videoTimeoutJobId){_.a7.cancelJob(this.panelTimeoutJobId);var f=Date.now()-this.panelTimeoutJobStartMs;f=Math.max(0,this.get("data.minPanelDisplayDurationMs")-f);f=Math.max(this.get("data.minVideoPlayDurationMs")||0,f);this.videoTimeoutJobId=_.Em(_.a7,function(){c.rotate()},f)}};
_.r.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.a7.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.a7.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.r.rotate=function(){this.clearTimeouts();_.CZ(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.ci.Object.defineProperties(ut.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.r1(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.r1(this.hostElement).querySelector("#video")}}});
_.ci.Object.defineProperties(ut,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
ut.prototype.onEnded=ut.prototype.onEnded;ut.prototype.onPlaying=ut.prototype.onPlaying;ut.prototype.dataChanged=ut.prototype.dataChanged;_.y([_.Q(_.et),_.D("design:type",Object)],ut.prototype,"ytdGridStateAwareBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ut.prototype,"componentBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],ut.prototype,"ytdGuideStateAwareBehavior",void 0);
_.y([_.Q(_.B5T),_.D("design:type",Object)],ut.prototype,"ytBooleanLogicBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ut.prototype,"disableGridStateAware",void 0);_.y([_.L(),_.D("design:type",Object)],ut.prototype,"data",void 0);_.y([_.L({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.D("design:type",String)],ut.prototype,"panelLayout",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ut.prototype,"animationEnabled",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ut.prototype,"transitioningOut",void 0);
_.y([_.L({computed:"computeMetadataOrder(data)"}),_.D("design:type",Boolean)],ut.prototype,"metadataOrder",void 0);_.y([_.L({computed:"computeByline(data)"}),_.D("design:type",Object)],ut.prototype,"byline",void 0);_.y([_.L({computed:"computeAvatarSize(data)"}),_.D("design:type",Number)],ut.prototype,"avatarSize",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ut.prototype,"narrow",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ut.prototype,"narrower",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ut.prototype,"layoutStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ut.prototype,"isCarouselInFeed",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ut.prototype,"dataChanged",null);_.y([_.Ta("yt-default-promo-panel-renderer-playing"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ut.prototype,"onPlaying",null);
_.y([_.Ta("yt-default-promo-panel-renderer-ended"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ut.prototype,"onEnded",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],ut);
_.h(ut,"ytd-default-promo-panel-renderer",function(){if(uKH!==void 0)return uKH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return uKH=c},{mode:1});_.w_("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var vI=function(){var c=_.z.apply(this,arguments)||this;c.narrower=!1;c.dotMenuVisible=!1;c.paginationThumbnailsVisible=!1;c.active=!0;c.disableGridStateAware=!1;c.actionMap={"yt-window-resized":"onWindowResized"};return c};
_.K(vI,_.z);_.r=vI.prototype;_.r.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]]"}}}}}};
_.r.attached=function(){document.addEventListener("yt-page-type-changed",_.ia(this,this.onPageTypeChange));this.currentPageSubtype=_.Ah(location.pathname);this.onWindowResized()};
_.r.detached=function(){this.jobId&&_.a7.cancelJob(this.jobId);this.updateSizeJobId&&_.a7.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.ia(this,this.onPageTypeChange))};
_.r.onPageTypeChange=function(c){this.active=c.detail.newPageSubtype===this.currentPageSubtype};
_.r.onWindowResized=function(){this.updateSize()};
_.r.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.r.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.r.setCarouselItem=function(c){c>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.a7.cancelJob(this.jobId);var f=this.getCurrentPanelElement();f&&f.stopVideo();this.currentItemIndex=c%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(f||(f=this.getCurrentPanelElement()),f.playVideo()):this.startRotationJob()};
_.r.scrollThumbnails=function(c){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var f=this.getCurrentPaginationElement();if(f){var d=_.r1(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?d.style.transform="translateX(0)":(f=f.offsetWidth+8,d.style.transform="translateX(-"+f*(c-Math.ceil(Math.floor(this.overlay.offsetWidth/f)/2)+1)+"px)")}}};
_.r.onDataChanged=function(){var c=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.X8(_.a7,function(){var f;(f=c.getCurrentPanelElement())==null||f.updateSize();c.updateSize()}))};
_.r.getCurrentPanelElement=function(){return _.r1(_.r1(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.r.getCurrentPaginationElement=function(){return _.r1(_.r1(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.r.getNavigationClass=function(c,f){return c===f?"selected":""};
_.r.getNavigationDurationStyle=function(c){return"animation-duration:"+(this.get("data.carouselItems."+c+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.r.onNavigationTap=function(c){var f=this,d=c.model.index;d!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){f.setCarouselItem(d)}),this.autorotateActive=!1)};
_.r.onVideoThumbnailEnded=function(){var c=this;if(this.shouldRotate()){var f=this.getCurrentPaginationElement();f&&(f.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){f.classList.remove("finished");c.setNextCarouselItem()}))}};
_.r.onVideoThumbnailError=function(){this.startRotationJob()};
_.r.onVideoNotPlaying=function(){this.startRotationJob()};
_.r.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.r.startRotationJob=function(){var c=this;_.a7.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.a7.addLowPriorityJob(function(){c.getCurrentPanelElement().transitionOut().then(function(){c.setNextCarouselItem()})},this.rotationTimeout))};
_.r.computeDotMenuVisible=function(c,f){return!!c&&!!c.carouselItems&&c.carouselItems.length>1&&!c.paginationThumbnails||!!f};
_.r.computePaginationThumbnailsVisible=function(c,f){var d,q;return((q=c==null?void 0:(d=c.paginationThumbnails)==null?void 0:d.length)!=null?q:0)>1&&!f};
_.r.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.r.computePaginatorAlignment=function(c){return(c==null?void 0:c.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.r.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.r.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.r.isNarrower=function(c){return(c!=null?c:0)<ut.NARROW_VERSION_SIZE};
vI.prototype.activeChanged=vI.prototype.activeChanged;vI.prototype.onVideoNotPlaying=vI.prototype.onVideoNotPlaying;vI.prototype.onVideoThumbnailError=vI.prototype.onVideoThumbnailError;vI.prototype.onVideoThumbnailEnded=vI.prototype.onVideoThumbnailEnded;vI.prototype.onDataChanged=vI.prototype.onDataChanged;_.y([_.Q(_.et),_.D("design:type",Object)],vI.prototype,"ytdGridStateAwareBehavior",void 0);
_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],vI.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],vI.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],vI.prototype,"currentItem",void 0);
_.y([_.L(),_.D("design:type",Number)],vI.prototype,"currentItemIndex",void 0);_.y([_.L(),_.D("design:type",Number)],vI.prototype,"rotationTimeout",void 0);_.y([_.L(),_.D("design:type",Number)],vI.prototype,"loopCount",void 0);_.y([_.L({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.D("design:type",String)],vI.prototype,"paginatorAlignment",void 0);_.y([_.L(),_.D("design:type",Number)],vI.prototype,"jobId",void 0);
_.y([_.L(),_.D("design:type",Number)],vI.prototype,"updateSizeJobId",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],vI.prototype,"isCarouselInFeed",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],vI.prototype,"narrower",void 0);_.y([_.L({computed:"computeDotMenuVisible(data, narrower)"}),_.D("design:type",Object)],vI.prototype,"dotMenuVisible",void 0);
_.y([_.L({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.D("design:type",Object)],vI.prototype,"paginationThumbnailsVisible",void 0);_.y([_.L({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.D("design:type",String)],vI.prototype,"layoutType",void 0);_.y([_.L({value:!0,reflectToAttribute:!0}),_.D("design:type",Boolean)],vI.prototype,"autorotateActive",void 0);_.y([_.L(),_.D("design:type",Object)],vI.prototype,"active",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],vI.prototype,"disableGridStateAware",void 0);_.y([_.AY("#overlay"),_.D("design:type",HTMLElement)],vI.prototype,"overlay",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vI.prototype,"onDataChanged",null);
_.y([_.Ta("yt-video-thumbnail-ended"),_.Ta("yt-default-promo-panel-renderer-rotate"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vI.prototype,"onVideoThumbnailEnded",null);_.y([_.Ta("yt-video-thumbnail-error"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vI.prototype,"onVideoThumbnailError",null);
_.y([_.Ta("yt-video-thumbnail-not-playing"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vI.prototype,"onVideoNotPlaying",null);_.y([_.ba("active"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vI.prototype,"activeChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],vI);
_.h(vI,"ytd-carousel-item-renderer",function(){if(XJH!==void 0)return XJH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return XJH=c},{mode:2});var yGG;var WI3;var DyH;var eXD;var hS=function(){var c=_.z.apply(this,arguments)||this;c.originalQuery=null;c.originalEndpoint=null;return c};
_.K(hS,_.z);hS.prototype.computeShowOriginalQueryWithoutEndpoint_=function(c,f){return!(!c||f)};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],hS.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hS.prototype,"correctedText",void 0);_.y([_.L(),_.D("design:type",Object)],hS.prototype,"correctedQuery",void 0);_.y([_.L(),_.D("design:type",Object)],hS.prototype,"correctedEndpoint",void 0);_.y([_.L(),_.D("design:type",Object)],hS.prototype,"originalText",void 0);_.y([_.L(),_.D("design:type",Object)],hS.prototype,"originalQuery",void 0);
_.y([_.L(),_.D("design:type",Object)],hS.prototype,"originalEndpoint",void 0);_.y([_.L({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.D("design:type",Boolean)],hS.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.y([_.vj({is:"yt-search-query-correction",disableElementRegistration:!0})],hS);
_.h(hS,"yt-search-query-correction",function(){if(eXD===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;DyH===void 0&&(DyH=document.createElement("template"));var q=DyH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);eXD=c}c=eXD;return c},{mode:2});_.w_("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var wZ=function(){return _.z.apply(this,arguments)||this};
_.K(wZ,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wZ.prototype,"data",void 0);_.y([_.vj({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],wZ);
_.h(wZ,"yt-did-you-mean-renderer",function(){if(WI3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;yGG===void 0&&(yGG=document.createElement("template"));var q=yGG;d.call(f,q.content.cloneNode(!0),c.content.firstChild);WI3=c}c=WI3;return c},{mode:2});var N0c;var IXp;_.w_("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var yf=function(){return _.z.apply(this,arguments)||this};
_.K(yf,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yf.prototype,"data",void 0);_.y([_.vj({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],yf);
_.h(yf,"yt-including-results-for-renderer",function(){if(IXp===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;N0c===void 0&&(N0c=document.createElement("template"));var q=N0c;d.call(f,q.content.cloneNode(!0),c.content.firstChild);IXp=c}c=IXp;return c},{mode:2});var PGC;var RXJ;_.w_("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var WI=function(){return _.z.apply(this,arguments)||this};
_.K(WI,_.z);WI.prototype.computeExtraClasses_=function(c,f){var d="";c&&(d+=" "+c.toLowerCase().replace(/_/g,"-"));f&&(d+=" "+f.toLowerCase().replace(/_/g,"-"));return d};
WI.prototype.computeUrlImg_=function(){var c=this.data;c.image&&(_.r1(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.kZ(c.image.thumbnails,Number.MAX_VALUE)+")")};
WI.prototype.computeUrlImg_=WI.prototype.computeUrlImg_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],WI.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],WI.prototype,"computeUrlImg_",null);_.y([_.vj({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],WI);
_.h(WI,"yt-music-pass-feature-info-renderer",function(){if(RXJ===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;PGC===void 0&&(PGC=document.createElement("template"));var q=PGC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);RXJ=c}c=RXJ;return c},{mode:2});var UyC;var pJC;_.w_("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var Dx=function(){return _.z.apply(this,arguments)||this};
_.K(Dx,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Dx.prototype,"data",void 0);_.y([_.vj({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],Dx);
_.h(Dx,"yt-no-results-found-showing-results-for-renderer",function(){if(pJC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;UyC===void 0&&(UyC=document.createElement("template"));var q=UyC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);pJC=c}c=pJC;return c},{mode:2});var xyG;var oLG;_.w_("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var eV=function(){return _.z.apply(this,arguments)||this};
_.K(eV,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],eV.prototype,"data",void 0);_.y([_.vj({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],eV);
_.h(eV,"yt-results-without-quotes-renderer",function(){if(oLG===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;xyG===void 0&&(xyG=document.createElement("template"));var q=xyG;d.call(f,q.content.cloneNode(!0),c.content.firstChild);oLG=c}c=oLG;return c},{mode:2});var GWC;var cSS;_.w_("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var N7=function(){return _.z.apply(this,arguments)||this};
_.K(N7,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],N7.prototype,"data",void 0);_.y([_.vj({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],N7);
_.h(N7,"yt-search-no-results-renderer",function(){if(cSS===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;GWC===void 0&&(GWC=document.createElement("template"));var q=GWC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);cSS=c}c=cSS;return c},{mode:2});var fxi;var d7C;_.w_("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Im=function(){return _.z.apply(this,arguments)||this};
_.K(Im,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Im.prototype,"data",void 0);_.y([_.vj({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Im);
_.h(Im,"yt-showing-results-for-renderer",function(){if(d7C===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;fxi===void 0&&(fxi=document.createElement("template"));var q=fxi;d.call(f,q.content.cloneNode(!0),c.content.firstChild);d7C=c}c=d7C;return c},{mode:2});var jmi;var qGF;var Z_G;var MVi;var PI=function(){var c=_.z.apply(this,arguments)||this;c.answerExpanded=!1;return c};
_.K(PI,_.z);PI.prototype.toggleAnswer_=function(c){var f=_.oV(c);f&&f.classList.contains("yt-simple-endpoint")||(c.preventDefault(),c.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
PI.prototype.toggleAnswer_=PI.prototype.toggleAnswer_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],PI.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],PI.prototype,"answerExpanded",void 0);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],PI.prototype,"toggleAnswer_",null);
_.y([_.vj({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],PI);
_.h(PI,"yt-generic-faq-question-renderer",function(){if(MVi===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Z_G===void 0&&(Z_G=document.createElement("template"));var q=Z_G;d.call(f,q.content.cloneNode(!0),c.content.firstChild);MVi=c}c=MVi;return c},{mode:2});_.w_("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Rm=function(){return _.z.apply(this,arguments)||this};
_.K(Rm,_.z);Rm.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Rm.prototype,"data",void 0);_.y([_.vj({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Rm);
_.h(Rm,"yt-faq-section-renderer",function(){if(qGF===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;jmi===void 0&&(jmi=document.createElement("template"));var q=jmi;d.call(f,q.content.cloneNode(!0),c.content.firstChild);qGF=c}c=qGF;return c},{mode:2});var rSi;var Ctq;_.w_("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var UG=function(){return _.z.apply(this,arguments)||this};
_.K(UG,_.z);
UG.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"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],UG.prototype,"data",void 0);_.y([_.vj({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],UG);
_.h(UG,"yt-offer-item-expanded-renderer",function(){if(Ctq===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;rSi===void 0&&(rSi=document.createElement("template"));var q=rSi;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Ctq=c}c=Ctq;return c},{mode:2});var g1p;var kEH;_.w_("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var p_=function(){return _.z.apply(this,arguments)||this};
_.K(p_,_.z);
p_.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
p_.prototype.computeFullWidthMode=function(c){return!(!c||!c.fullWidthMode)};
p_.prototype.computeBorderlessMode=function(c){return!(!c||!c.borderlessMode)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],p_.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.D("design:type",Boolean)],p_.prototype,"fullWidthMode",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.D("design:type",Boolean)],p_.prototype,"borderlessMode",void 0);_.y([_.vj({is:"yt-offer-item-renderer",disableElementRegistration:!0})],p_);
_.h(p_,"yt-offer-item-renderer",function(){if(kEH===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;g1p===void 0&&(g1p=document.createElement("template"));var q=g1p;d.call(f,q.content.cloneNode(!0),c.content.firstChild);kEH=c}c=kEH;return c},{mode:2});var O_J;var lxq;_.w_("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var x1=function(){return _.z.apply(this,arguments)||this};
_.K(x1,_.z);x1.prototype.computeAriaLevel_=function(c){return this.getLevelID_(c)};
x1.prototype.getLevelID_=function(c){return(c=c.match(/[0-9]+$/))&&c.length==1?c[0]:"1"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],x1.prototype,"data",void 0);_.y([_.L({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.D("design:type",String)],x1.prototype,"ariaLevel",void 0);_.y([_.L({value:"heading",reflectToAttribute:!0}),_.D("design:type",String)],x1.prototype,"role",void 0);
_.y([_.L({value:-1,reflectToAttribute:!0}),_.D("design:type",Number)],x1.prototype,"tabindex",void 0);_.y([_.vj({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],x1);
_.h(x1,"yt-subscription-product-header-renderer",function(){if(lxq===void 0){var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;O_J===void 0&&(O_J=document.createElement("template"));var q=O_J;d.call(f,q.content.cloneNode(!0),c.content.firstChild);lxq=c}c=lxq;return c},{mode:2});var smC;var BZi;_.w_("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var om=function(){return _.z.apply(this,arguments)||this};
_.K(om,_.z);om.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:_.yy("menuRenderer"),events:!0}}};
om.prototype.onStampFinished_=function(){_.r1(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
om.prototype.onStampFinished_=om.prototype.onStampFinished_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],om.prototype,"data",void 0);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],om.prototype,"onStampFinished_",null);
_.y([_.vj({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],om);
_.h(om,"yt-subscription-product-renderer",function(){if(BZi===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;smC===void 0&&(smC=document.createElement("template"));var q=smC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);BZi=c}c=BZi;return c},{mode:2});var i_C;var TZq;_.w_("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var GE=function(){return _.z.apply(this,arguments)||this};
_.K(GE,_.z);GE.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
GE.prototype.imageScrimColorValuesChanged_=function(){var c,f=(c=this.data)==null?void 0:c.imageScrimColorValues;_.r1(this.hostElement).querySelector("#scrim").style.backgroundColor=f?_.WS(f[0]):"transparent"};
GE.prototype.imageScrimColorValuesChanged_=GE.prototype.imageScrimColorValuesChanged_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],GE.prototype,"data",void 0);
_.y([_.m5("data.imageScrimColorValues"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],GE.prototype,"imageScrimColorValuesChanged_",null);_.y([_.vj({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],GE);
_.h(GE,"yt-subscription-product-upsell-offer-renderer",function(){if(TZq===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;i_C===void 0&&(i_C=document.createElement("template"));var q=i_C;d.call(f,q.content.cloneNode(!0),c.content.firstChild);TZq=c}c=TZq;return c},{mode:2});var m7G;var H_F;var ASC;var YGS;var FBF;var tV3;var c4=function(){return _.z.apply(this,arguments)||this};
_.K(c4,_.z);c4.prototype.onYtServiceRequestError_=function(c){_.fO(this.hostElement,c.detail.error.message)};
c4.prototype.onYtServiceRequestError_=c4.prototype.onYtServiceRequestError_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],c4.prototype,"data",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],c4.prototype,"collapsible",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],c4.prototype,"isManageRed",void 0);
_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],c4.prototype,"onYtServiceRequestError_",null);_.y([_.vj({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],c4);
_.h(c4,"yt-single-ypc-offer-renderer",function(){if(tV3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;FBF===void 0&&(FBF=document.createElement("template"));var q=FBF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);tV3=c}c=tV3;return c},{mode:2});var fw=function(){return _.z.apply(this,arguments)||this};
_.K(fw,_.z);fw.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fw.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],fw.prototype,"isManageRed",void 0);_.y([_.vj({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],fw);
_.h(fw,"yt-single-ypc-offer-list-renderer",function(){if(YGS===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;ASC===void 0&&(ASC=document.createElement("template"));var q=ASC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);YGS=c}c=YGS;return c},{mode:2});var b_G;var KB3;_.w_("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ds=function(){return _.z.apply(this,arguments)||this};
_.K(ds,_.z);ds.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ds.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],ds.prototype,"isManageRed",void 0);_.y([_.vj({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ds);
_.h(ds,"yt-ypc-offers-list-renderer",function(){if(KB3===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;b_G===void 0&&(b_G=document.createElement("template"));var q=b_G;d.call(f,q.content.cloneNode(!0),c.content.firstChild);KB3=c}c=KB3;return c},{mode:2});_.w_("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var jT=function(){return _.z.apply(this,arguments)||this};
_.K(jT,_.z);
jT.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}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],jT.prototype,"data",void 0);_.y([_.vj({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],jT);
_.h(jT,"yt-unlimited-manage-subscription-page-renderer",function(){if(H_F===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;m7G===void 0&&(m7G=document.createElement("template"));var q=m7G;d.call(f,q.content.cloneNode(!0),c.content.firstChild);H_F=c}c=H_F;return c},{mode:2});var E1q;var n1D;var qr=function(){return _.z.apply(this,arguments)||this};
_.K(qr,_.z);_.r=qr.prototype;_.r.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.r.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.r.onKeypress_=function(c){c.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.r.handleHeaderTap_=function(c){c.preventDefault();c.stopPropagation();this.expandOffers_()};
_.r.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.r.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
qr.prototype.dataChanged_=qr.prototype.dataChanged_;_.y([_.Q(_.Kn),_.D("design:type",Object)],qr.prototype,"ironA11yKeysBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qr.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],qr.prototype,"offersVisible_",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qr.prototype,"dataChanged_",null);_.y([_.vj({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],qr);
_.h(qr,"yt-collapsible-ypc-offer-renderer",function(){if(n1D===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;E1q===void 0&&(E1q=document.createElement("template"));var q=E1q;d.call(f,q.content.cloneNode(!0),c.content.firstChild);n1D=c}c=n1D;return c},{mode:2});var $7Q;var Qm3;_.w_("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var ZI=function(){return _.z.apply(this,arguments)||this};
_.K(ZI,_.z);_.r=ZI.prototype;_.r.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.r.dataChanged_=function(){if(this.data.backgroundImage){var c=_.kZ(this.data.backgroundImage.thumbnails,screen.width),f=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=f?"linear-gradient(180deg, "+f+"), url("+c+")":"url("+c+")";this.data.gtmId&&_.J$(this.data.gtmId,_.hk("GL",""))}};
_.r.onYtServiceRequestError_=function(c){_.fO(this.hostElement,c.detail.error.message)};
_.r.getScrimLayerColorStops_=function(){var c,f,d=(c=this.data.unlimitedHeaderV2Data)==null?void 0:(f=c.unlimitedHeaderV2Data)==null?void 0:f.scrimLayerColors;if(!d)return null;var q=100/d.length;return d.map(function(Z,M){M*=q;return _.WS(Z)+" "+M+"%"}).join(",")};
_.r.computeLogoWithPadding=function(c){var f,d,q;return(c=(f=c.unlimitedLogoImage)==null?void 0:(d=f.thumbnails)==null?void 0:(q=d[0])==null?void 0:q.height)&&c%31===0?!0:!1};
ZI.prototype.onYtServiceRequestError_=ZI.prototype.onYtServiceRequestError_;ZI.prototype.dataChanged_=ZI.prototype.dataChanged_;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ZI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.y([_.L({computed:"computeLogoWithPadding(data)"}),_.D("design:type",Boolean)],ZI.prototype,"logoWithPadding",void 0);
_.y([_.L(),_.D("design:type",Object)],ZI.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ZI.prototype,"dataChanged_",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],ZI.prototype,"onYtServiceRequestError_",null);_.y([_.vj({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],ZI);
_.h(ZI,"yt-unlimited-page-header-renderer",function(){if(Qm3===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;$7Q===void 0&&($7Q=document.createElement("template"));var q=$7Q;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Qm3=c}c=Qm3;return c},{mode:2});var SGp;var LBF;_.w_("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Mr=function(){return _.z.apply(this,arguments)||this};
_.K(Mr,_.z);Mr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Mr.prototype,"data",void 0);_.y([_.vj({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Mr);
_.h(Mr,"yt-unlimited-user-notification-renderer",function(){if(LBF===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;SGp===void 0&&(SGp=document.createElement("template"));var q=SGp;d.call(f,q.content.cloneNode(!0),c.content.firstChild);LBF=c}c=LBF;return c},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.F4C=_.dN(function(c){var f=_.ch(c,{numberOfChips:5}).numberOfChips;return _.B("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.B(_.bd,{each:function(){return Array(f==null?void 0:f())}},function(){return _.B("div",{class:"ytGhostChipShelfChip"})}))},"Cg");_.tRC=_.dN(function(c){var f=function(){var M;return((M=c.data)==null?void 0:M.call(c).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},d=_.Yv(),q=_.ql().resolve(_.cr);
_.QJ(function(){requestAnimationFrame(function(){var M;(M=d.lottieEl)==null||M.addEventListener("DOMLoaded",function(){var g;(g=c.onLottieLoaded)==null||g.call(c)})})});
var Z={};return _.B("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var M;return((M=c.data)==null?void 0:M.call(c).targetId)||""}},_.B(_.gT,{className:_.FY((Z.ytChatLoadingViewModelRtl=q==="rtl",Z)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:f()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||f()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:f()}}},
animationRef:d}))},"Dg");
}catch(e){_._DumpException(e)}
try{
var uCc,vkr,hEc,wVD,yo3,WKr,DaJ,eEQ,IaS,ckq,H8,GZC,Uai,okS,xaH,pV3,REH,f5C,dDC,jwq,q6C,Aa,Z9c,MZp,g5i,ta,rkq,bi,Yb,KY,Cdq,FO,k4S,O9q,l5F,swQ,BiJ,i9C,mDi,FfG,Kf3,E5F,n5q,$Dp,QwQ,S6F,LfC,JkG,VZH,urq,v5Q,hrS,wCH,Wfc,DDD,erp,Nic,I5S,PdD,RrH,pCC,c4F,G4c,xDD,fMp,o5r,dlD,MA3,ZD3,joH,qzi,nY,r4S,CFD,kfr,Tx3,mlQ,HDi,A4C,YzQ,Fu3,tAG,bDG,Kuq,EKG,$lq,Qo3,Sz3,soC;
_.Tm=function(c){var f=new _.KD("Error accessing DB");return _.XPP().then(function(d){return new Promise(function(q,Z){try{var M=d.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(c);M.onsuccess=function(){var g=M.result;q(g?g.value:null)};
M.onerror=function(){f.params={key:c,source:"onerror"};Z(f)}}catch(g){f.params={key:c,
thrownError:String(g)},Z(f)}})},function(){return null})};
_.XVp=function(c,f){var d=_.fdY(f);d!=="javascript:"&&d!=="data:"&&c.setAttribute("href",f)};
uCc=function(c,f){return _.Bb(c.entities,"flowStateEntity",f)};
vkr=function(c,f){return _.Bb(c.entities,"contextNoteUserRatingEntityPayload",f)};
hEc=function(c){return _.ak(c,function(f){return f.languageCode==="en"})};
wVD=function(c){var f=mG;if(_.RWJ(c))c.setOption("captions","stickyLoading",{}),c.setOption("captions","track",{});else{var d=_.ak(_.z7M(c),function(q){return q.displayName===f});
c.setOption("captions","track",d)}};
yo3=function(c){if(!c)return 0;var f=c.getPresentingPlayerType(),d=c.getVideoData();return d&&d.isLive?(c=c.getProgressState(f),c.seekableEnd-c.seekableStart):c.getDuration(f)};
WKr=function(c,f){for(var d=_.C(Object.keys(c)),q=d.next();!q.done;q=d.next())if(q=q.value,c[q]!==f[q])return!1;return!0};
DaJ=function(){return document.getElementById("player-control-overlay")};
eEQ=function(c){c!==-1&&!_.F("player_controls_log_creation_killswitch")&&DaJ()&&(_.V_("pcu_cs",c),_.V_("pcu_ce"))};
IaS=function(c){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(c.subscribeButton?[c.subscribeButton,c.channelAccess]:[c.channelAccess]).map(function(f){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz--button"},N$r(f)))}))};
_.PmF=function(c){var f=c.data;var d=c.hideDivider;c=c.isChannelInfoCard;var q={};q=(q["yt-profile-identity-info-view-model-wiz__frame"]=!0,q["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!f.channelBanner,q);q={class:_.tp(q)};var Z,M={imageBannerViewModel:{image:(Z=f.channelBanner)==null?void 0:Z.image,style:"IMAGE_BANNER_STYLE_INSET"}};Z=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},f.channelBanner?_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
N$r(M,{imageBannerViewModel:{isPositionRelative:!0}})):null);M=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},N$r(f.avatar));var g;var O=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},f.channelDisplayName),f.verifiedOrOacBadge?_.B("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.B(_.jC,{data:{thumbnails:[{url:(g=f.verifiedOrOacBadge)==null?void 0:g.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);g=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},O,N$r(f.threeDotMenu));O=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.B("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},f.channelHandle),f.channelPronouns&&f.channelHandle?_.B("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.B("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},f.channelPronouns)),_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},f.leftOfBulletInfo),f.leftOfBulletInfo&&f.rightOfBulletInfo?_.B("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},f.rightOfBulletInfo)));g=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},g,O);return _.B("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.B("div",q,Z,_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},M,g),f.channelDescription?_.B("div",{class:c?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
f.channelDescription):null,IaS(f),d?null:_.B("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
ckq=function(c,f){var d=_.Ga(c,{}),q=REH("top",f),Z=REH("bottom",f),M=REH("left",f),g=REH("right",f);return _.$Z({top:function(){return H8(d().position,q)},
bottom:function(){return H8(d().position,Z)},
left:function(){return H8(d().position,M)},
right:function(){return H8(d().position,g)},
position:function(){return H8(d().positionType,Uai)},
height:function(){return H8(d().height,Aa)},
width:function(){return H8(d().width,Aa)},
"min-width":function(){return H8(d().minWidth,Aa)},
"min-height":function(){return H8(d().minHeight,Aa)},
"max-width":function(){return H8(d().maxWidth,Aa)},
"max-height":function(){return H8(d().maxHeight,Aa)},
"aspect-ratio":function(){return H8(d().aspectRatio,String)},
"margin-top":function(){return H8(d().margin,q)},
"margin-bottom":function(){return H8(d().margin,Z)},
"margin-left":function(){return H8(d().margin,M)},
"margin-right":function(){return H8(d().margin,g)},
"padding-top":function(){return H8(d().padding,q)},
"padding-bottom":function(){return H8(d().padding,Z)},
"padding-left":function(){return H8(d().padding,M)},
"padding-right":function(){return H8(d().padding,g)},
"flex-direction":function(){return H8(d().flexDirection,pV3)},
"justify-content":function(){return H8(d().justifyContent,xaH)},
"align-items":function(){return H8(d().alignItems,okS)},
"flex-grow":function(){return H8(d().flexGrow,String)},
"flex-shrink":function(){return H8(d().flexShrink,String)},
"flex-basis":function(){return H8(d().flexBasis,Aa)},
"align-self":function(){return H8(d().alignSelf,okS)},
"flex-wrap":function(){return H8(d().flexWrap,GZC)},
"align-content":function(){return H8(d().alignContent,okS)}})};
H8=function(c,f){return c!==void 0?f(c):void 0};
GZC=function(c){switch(c){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Uai=function(c){switch(c){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
okS=function(c){switch(c){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"}};
xaH=function(c){switch(c){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"}};
pV3=function(c){switch(c){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"}};
REH=function(c,f){var d=f==="rtl";switch(c){case "top":var q=f5C;break;case "bottom":q=dDC;break;case "left":q=jwq;break;default:q=q6C}return function(Z){return H8(q(Z,d),Aa)}};
f5C=function(c){var f=c.top;var d=c.vertical;c=c.all;var q;return(q=f!=null?f:d)!=null?q:c};
dDC=function(c){var f=c.bottom;var d=c.vertical;c=c.all;var q;return(q=f!=null?f:d)!=null?q:c};
jwq=function(c,f){var d=c.left;var q=c.end;var Z=c.start;var M=c.horizontal;c=c.all;var g,O;return(O=(g=d!=null?d:f?q:Z)!=null?g:M)!=null?O:c};
q6C=function(c,f){var d=c.right;var q=c.end;var Z=c.start;var M=c.horizontal;c=c.all;var g,O;return(O=(g=d!=null?d:f?Z:q)!=null?g:M)!=null?O:c};
Aa=function(c){var f=c.value;switch(c.unit){case "YPC_DIMENSION_UNIT_POINT":return f+"px";case "YPC_DIMENSION_UNIT_FRACTION":return f+"%";default:return""+f}};
Z9c=function(c){switch(c){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"}};
MZp=function(c){var f=c!=null?c:{};c=f.fontRole;var d=f.fontSize;f=f.fontWeight;if(c!==null&&d!==null)switch(c){case "YPC_FONT_ROLE_DISPLAY":switch(d){case "YPC_FONT_SIZE_L":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(d){case "YPC_FONT_SIZE_L":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return f===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(d){case "YPC_FONT_SIZE_XL":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
g5i=function(c,f,d){function q(H){return Object.values(H).map(function(A){var Y=A.productId;A=A.pricingOptionIndex;return Yb(Z(Y).pricingOptions,A).pricingOptionId})}
function Z(H){return O().get(H)}
function M(H){H=q(H);d(H)}
var g=FO([c,f],function(H,A){var Y=H==null?void 0:H.selectedPricingOptions;H={};var t=!0;if(Y&&A.length)for(var E=_.C(A),J=E.next();!J.done;J=E.next()){J=J.value;var X=rkq(J.pricingOptions,function(p){a:{p=p.pricingOptionId;for(var N=_.C(Y),I=N.next();!I.done;I=N.next())if(I.value===p){p=!0;break a}p=!1}return p});
if(X>=0){t=!1;var u=Yb(J.pricingOptions,X),W=void 0;H[J.groupId]={productId:J.productId,pricingOptionIndex:X,pricingGroupAttributes:(W=u)==null?void 0:W.pricingGroupAttributes}}}t&&A.length&&(t=Yb(A[0].pricingOptions,0),H[A[0].groupId]={productId:A[0].productId,pricingOptionIndex:0,pricingGroupAttributes:t==null?void 0:t.pricingGroupAttributes});return H}),O=FO([f],function(H){return new Map(H.map(function(A){return[A.productId,
A]}))}),l=FO([f],function(H){var A=new Map;
H=_.C(H);for(var Y=H.next();!Y.done;Y=H.next()){var t=Y.value;Y=t.groupId;var E=t.productId;t=_.C(ta(t.pricingOptions));for(var J=t.next();!J.done;J=t.next()){var X=_.C(J.value);J=X.next().value;X=X.next().value;A.set(X.pricingOptionId,{groupId:Y,productId:E,index:J,pricingOption:X,pricingGroupAttributes:X.pricingGroupAttributes})}}return A}),m=FO([f],function(H){var A=new Map;
H=_.C(H);for(var Y=H.next();!Y.done;Y=H.next()){var t=Y.value;Y=t.groupId;var E=t.productId,J=void 0;t=_.C(ta((J=t.pricingGroups)!=null?J:[]));for(J=t.next();!J.done;J=t.next()){var X=_.C(J.value);J=X.next().value;X=X.next().value;A.set(X.pricingGroupId,{groupId:Y,productId:E,index:J,pricingGroup:X,pricingGroupAttributes:X.pricingGroupAttributes})}}return A});
return{getProductById:Z,isProductSelected:function(H){var A=Z(H);if(!A)return!1;var Y;return((Y=g()[A.groupId])==null?void 0:Y.productId)===H},
getSelectedPricingOptions:function(){return Object.values(g()).map(function(H){var A=H.productId;H=H.pricingOptionIndex;return Yb(Z(A).pricingOptions,H)})},
getSelectedPricingGroupAttributesByGroupId:function(H){var A;return(H=(A=g()[H])==null?void 0:A.pricingGroupAttributes)?Array.from(H):void 0},
getSelectedProductByGroupId:function(H){var A;return(H=(A=g()[H])==null?void 0:A.productId)?Z(H):void 0},
onProductSelected:function(H){var A=Z(H);if(A){var Y=g(),t;if(((t=Y[A.groupId])==null?void 0:t.productId)!==H){var E,J;t=(J=(E=Y[A.groupId])==null?void 0:E.pricingOptionIndex)!=null?J:0;bi(A.pricingOptions)<=t&&(t=0);E=Yb(A.pricingOptions,t);var X;J={};M(Object.assign({},Y,(J[A.groupId]={productId:H,pricingOptionIndex:t,pricingGroupAttributes:(X=E==null?void 0:E.pricingGroupAttributes)!=null?X:[]},J)))}}},
onPricingOptionSelected:function(H){var A=l().get(H);if(A){H=A.groupId;var Y=A.productId;A=A.index;var t=g(),E,J;if(((E=t[H])==null?void 0:E.productId)!==Y||((J=t[H])==null?void 0:J.pricingOptionIndex)!==A){var X,u;E={};M(Object.assign({},t,(E[H]={productId:Y,pricingOptionIndex:A,pricingGroupAttributes:(u=(X=t[H])==null?void 0:X.pricingGroupAttributes)!=null?u:[]},E)))}}},
onPricingGroupSelected:function(H){var A=m().get(H);if(A){H=A.groupId;var Y=A.productId,t=A.pricingGroup.pricingGroupAttributes,E=Z(Y);if(E){A=g();var J=A[H].pricingGroupAttributes,X;if(((X=A[H])==null?void 0:X.productId)!==Y||!KY(Cdq(J,bi(t)),t)){X=Array.from(t);for(t=bi(t);t<bi(J);t++){var u="",W=!1,p=Array.from(X);p.push(Yb(J,t));for(var N=_.C(E.pricingGroups),I=N.next();!I.done;I=N.next())if(I=I.value,KY(I.pricingGroupAttributes,p)){X.push(Yb(J,t));W=!0;break}else u===""&&bi(I.pricingGroupAttributes)===
p.length&&KY(Cdq(I.pricingGroupAttributes,X.length),X)&&(u=Yb(I.pricingGroupAttributes,t));W||X.push(u)}u=A[H].pricingOptionIndex;t=[];W=new Map;p=0;E=_.C(ta(E.pricingOptions));for(N=E.next();!N.done;N=E.next())I=_.C(N.value),N=I.next().value,I=I.next().value,KY(I.pricingGroupAttributes,X)&&t.push(N),KY(I.pricingGroupAttributes,J)&&W.set(N,p++);t.length===0?J=0:(J=W.get(u),J=J!==void 0&&J<t.length?t[J]:t[0]);E={};M(Object.assign({},A,(E[H]={productId:Y,pricingOptionIndex:J,pricingGroupAttributes:X},
E)))}}}},
onClearGroupSelected:function(H){var A=g();A[H]&&(A=Object.fromEntries(Object.entries(A).filter(function(Y){return _.C(Y).next().value!==H})),M(A))}}};
ta=function(c){return function d(){var q,Z,M,g,O;return _.O_(d,function(l){switch(l.nextAddress){case 1:_.Hk(l,2),q=0,Z=_.C(c),M=Z.next();case 4:if(M.done){l.jumpTo(2);break}g=M.value;O=_.lk;return l.yield([q++,g],7);case 7:O(l.yieldResult);M=Z.next();l.jumpTo(4);break;case 2:_.m0(l),_.AD(l,0)}})}()};
rkq=function(c,f){c=_.C(ta(c));for(var d=c.next();!d.done;d=c.next()){var q=_.C(d.value);d=q.next().value;q=q.next().value;if(f(q))return d}return-1};
bi=function(c){var f=0;for(c=c[Symbol.iterator]();!c.next().done;)++f;return f};
Yb=function(c,f){c=_.C(ta(c));for(var d=c.next();!d.done;d=c.next()){var q=_.C(d.value);d=q.next().value;q=q.next().value;if(d===f)return q}};
KY=function(c,f){if(!c&&!f)return!0;if(!c||!f)return!1;c=Array.from(c);f=Array.from(f);if(c.length!==f.length)return!1;for(var d=0;d<c.length;d++)if(c[d]!==f[d])return!1;return!0};
Cdq=function(c,f){f=f===void 0?Infinity:f;var d=[];c=_.C(ta(c));for(var q=c.next();!q.done;q=c.next()){var Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;if(q>=f)break;q>=0&&d.push(Z)}return d};
FO=function(c,f){var d,q;return function(){for(var Z=c.map(function(g){return g()}),M=0;M<Z.length;M++)if(!d||Z[M]!==d[M]){d=Z;
q=f.apply(null,_.LT(Z));break}return q}};
k4S=function(c,f,d){var q=[];c=_.C(c);for(var Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var M=void 0;((M=f)==null?0:M.length)&&!KY(Z.pricingGroupAttributes,f)||q.push({pricingOption:Z,isSelected:d.includes(Z.pricingOptionId)})}return q};
O9q=function(c,f){return _.Bb(c.entities,"pdpStateEntity",f)};
l5F=function(c){var f,d;return!!(c.productId&&c.groupId&&((f=c.pricingOptions)==null?0:f.length)&&c.pricingOptions.every(function(q){return q.pricingOptionId})&&((d=c.pricingGroups)==null||!d.length||Array.isArray(c.pricingGroups)&&c.pricingGroups.every(function(q){return q.pricingGroupId&&q.pricingGroupAttributes&&q.pricingGroupAttributes.length>0})))};
swQ=function(c,f,d){return g5i(c,FO([f],function(q){return q.filter(l5F)}),d)};
BiJ=function(c,f){return f.length===0?[c]:[c.slice(0,f[0]),c.slice(f[0])].filter(function(d){return d.length>0})};
i9C=function(c){switch(c){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""}};
mDi=function(c,f,d,q){q=Object.assign({},q);_.vh(q,TiS,{selectedOptionId:c,primaryButtonOverride:d});_.xE().dispatch(_.ER("flowStateEntity",f,q))};
_.Y6S=function(){if(!H9G){var c=_.C(_.OT(new Map,void 0,"Xuivje"));H9G=c.next().value;Ak3=c.next().value}return H9G};
FfG=function(c){if(c)return _.Y6S()().get(c)};
_.tZ3=function(c,f){if(c&&f){var d=_.Y6S();d().set(c,f);c=d();Ak3(new Map(c))}};
_.b9S=function(c){return{onSubmit:function(){var f;(f=FfG(c()))==null||f.onSubmit()},
isValid:function(){var f=FfG(c());return f?f.isValid():!0},
isSubmitting:function(){var f,d;return!!((f=FfG(c()))==null?0:(d=f.isSubmitting)==null?0:d.call(f))}}};
Kf3=function(c){switch(c){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"}};
E5F=function(c){switch(c){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"}};
n5q=function(c,f){return _.Bb(c.entities,"contextNoteFeedEntityPayload",f)};
$Dp=function(c,f){switch(c){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return f==null?void 0:f.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return f==null?void 0:f.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return f==null?void 0:f.ratingNotHelpfulText}};
QwQ=function(c,f){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:c.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:c.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:c.deleteDialogTitle}]},dialogMessages:[{runs:[{text:c.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:c.deleteActionText}]},command:{performCommentActionEndpoint:{action:f}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:c.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
S6F=function(c){c.style.height="auto";c.style.height=c.scrollHeight+"px"};
LfC=function(c){return[c.syncStep,c.asyncStep].filter(function(f){return f!==void 0})};
JkG=function(c){var f,d,q;if(c=(f=c.structuredContextNoteFormSchema)==null?void 0:(d=f.fieldSchemas)==null?void 0:(q=d.noteBody)==null?void 0:q.validationSchema)for(f=_.C(LfC(c)),d=f.next();!d.done;d=f.next()){d=d.value.rules;if(!d)break;d=_.C(d);for(d=d.next();!d.done;d=d.next())return _.b(d.value,_.zri)}};
VZH=function(c){if(c){c=_.C(LfC(c));for(var f=c.next();!f.done;f=c.next()){f=f.value.rules;if(!f)break;f=_.C(f);for(f=f.next();!f.done;f=f.next())return _.b(f.value,a5J)}}};
urq=function(c){if(c){c=_.C(LfC(c));for(var f=c.next();!f.done;f=c.next()){f=f.value.rules;if(!f)break;f=_.C(f);for(f=f.next();!f.done;f=f.next())return _.b(f.value,XCc)}}};
v5Q=function(c){c=/^https?:\/\//.test(c)?c:"http://"+c;try{var f=_.DU(c)}catch(d){return!1}if(f.toString()!==c)return!1;c=f.JSC$9976_domain_.split(".");return c.length>1&&c.every(function(d){return!!d})};
hrS=function(c,f,d,q){var Z;q=(Z=q.structuredContextNoteData)==null?void 0:Z.createCommentEndpoint;if(Z=_.b(q,_.pQF))return Z.commentText=_.pC(c),Z.videoPositionMention=f,Z.sources=d,q};
wCH=function(c){return c==null?void 0:c.stringValue};
Wfc=function(c,f,d){c=c.map(function(q,Z){return{listItemViewModel:{title:q.title,subtitle:q.subtitle,leadingImage:q.leadingImage,trailingImage:Z===f?ykJ:void 0,rendererContext:{commandContext:{onTap:q.onTap}}}}});
return Object.assign({},d&&{header:{panelHeaderViewModel:{title:d}}},{content:{listViewModel:{listItems:c}}})};
DDD=function(c,f){if(c&&f)switch(f){case "SELECTION_TYPE_BOOL":return c.boolValue;case "SELECTION_TYPE_INT":return c.intValue;case "SELECTION_TYPE_STRING":return c.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return c.privacyStatusValue}};
erp=function(c){var f;c=(f=c.options)==null?void 0:f.findIndex(function(d){return d.isSelected});
return c===void 0?-1:c};
Nic=function(c,f,d){var q=function(){return c().label},Z={},M=_.FY("ytDropdownViewModelLabel",(Z.ytDropdownViewModelLabelError=f,Z));
return _.B(_.T,{cond:function(){return c().label&&!(d()===-1&&c().label&&!c().placeholderText)},
then:function(){return _.B("div",{class:M},_.B(_.J9,{text:q}))}})};
I5S=function(c,f){var d={};d=_.FY("ytDropdownViewModelTitle",(d.ytDropdownViewModelTitlePlaceholder=function(){return f()===-1},d));
return _.B("div",{class:d},_.B(_.J9,{text:function(){var q=c();var Z=f();if(Z===-1)q=q.placeholderText?q.placeholderText:q.label;else{var M,g;q=(M=q.options)==null?void 0:(g=M[Z])==null?void 0:g.title}return q}}))};
PdD=function(c,f){var d=function(){return c().hint};
return _.B(_.qD,null,_.B(_.T,{cond:function(){return d()&&!f()},
then:function(){return _.B("div",{class:_.FY("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.B(_.J9,{text:d,className:"ytDropdownViewModelSupportText"}))}}),_.B(_.T,{cond:f,
then:function(){return _.B("div",{id:"dropdown-view-model-error",role:"alert",class:_.FY("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.B(_.Qy,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.B(_.J9,{text:f,className:"ytDropdownViewModelSupportText"}))}}))};
RrH=function(c,f){var d=_.ql().resolve(_.l4q);_.L9(function(){var q=c().id;q&&d!=null&&d.dropdownMap.set(q,f)})};
pCC=function(c){c=_.b(c.scheduleButton,UDS);c=_.b(c==null?void 0:c.primaryButton,_.zx);c=_.b(c==null?void 0:c.onTap,_.Wh);var f,d,q=((d=_.b(c,_.BO))==null?void 0:d.commands)||[c];d=_.C(q);for(c=d.next();!c.done&&!(f=_.b(c.value,_.oXy));c=d.next());var Z;f=(Z=f)==null?void 0:Z.createBroadcastRequest;if(!f)throw Error("Lj");return f};
c4F=function(c,f,d){d=d===void 0?{}:d;var q,Z;return _.k(function(M){if(q=xDD(f))return M.return(q);(Z=o5r(c,f,d))&&G4c(f,Z);return M.return(Z)})};
G4c=function(c,f){var d=fMp(c);d&&f.then(function(q){_.ql().resolve(_.sj).put(d,new _.BP({innertubeResponse:q}))})};
xDD=function(c){if(c=fMp(c)){var f=_.ql().resolve(_.sj);if(f.has(c))return f.get(c).then(function(d){return d==null?void 0:_.Mo(d)})}return null};
fMp=function(c){var f=_.b(c.endpoint,_.pe);if(f!=null&&f.videoId)return f={videoId:f.videoId},_.F("web_imp_player_mute_params")&&(f.mutedAtStart=c.startPlaybackInMutedState),_.Uc("inline_playback",f)};
o5r=function(c,f,d){c=_.G3(c,f.endpoint,dlD(f,d)).then(function(q){return q});
return Promise.resolve(c)};
dlD=function(c,f){f=_.F("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!c.startPlaybackInMutedState},f):Object.assign({},{vis:5,autonav:"1"},f);var d;f={contentPlaybackContext:_.Qa(f,(d=_.b(c.endpoint.commandMetadata,_.jO))==null?void 0:d.url,window.location.href)};_.F("web_imp_player_mute_params")&&(f.overrideMutedAtStart=!c.startPlaybackInMutedState);return f};
MA3=function(c,f){var d=window.MutationObserver;d&&(Eb=new d(function(q,Z){q=_.C(q);for(var M=q.next();!M.done;M=q.next()){M=M.value;var g;if(g=M.type==="childList"&&M.target)a:{g=c;M=joH(M.target);g=joH(g);for(var O=null,l=0;l<M.length;l++)if(g.includes(M[l])){if(l===0){g=!1;break a}O=M[l];break}O?(M=qzi(M,O),g=qzi(g,O),g=M<g):g=!1}if(g){f();Z.disconnect();break}}}),(d=ZD3())&&Eb.observe(d,{childList:!0,
subtree:!0}))};
ZD3=function(){var c=document.getElementsByTagName("ytd-rich-grid-renderer");if(c.length>0)return c[0];c=document.getElementsByTagName("ytd-section-list-renderer");return c.length>0?c[0]:null};
joH=function(c){for(var f=[];c;)f.push(c),c=c.parentElement;return f};
qzi=function(c,f){var d=Array.from(f.children);f=c.indexOf(f);return f>0?d.indexOf(c[f-1]):-1};
nY=function(c,f,d){d=d===void 0?{}:d;return _.HO(c,d,f)};
r4S=function(c){switch(c){case "MUSIC":return!0;default:return!1}};
CFD=function(c){return c==null?void 0:c.filter(function(f){return f.premiereTrailerBadgeRenderer})};
kfr=function(c){var f,d=c==null?void 0:(f=c.find(function(A){return A.thumbnailOverlayTimeStatusRenderer}))==null?void 0:f.thumbnailOverlayTimeStatusRenderer,q,Z;
if((d==null?0:(q=d.icon)==null?0:q.iconType)&&r4S(d==null?void 0:(Z=d.icon)==null?void 0:Z.iconType)){var M;return{icon:d==null?void 0:(M=d.icon)==null?void 0:M.iconType}}var g,O;var l=(c=(g=c==null?void 0:(l=c.find(function(A){return A.thumbnailBottomOverlayViewModel}))==null?void 0:l.thumbnailBottomOverlayViewModel)==null?void 0:(O=g.badges)==null?void 0:O.find(function(A){var Y,t;
return((Y=_.b(A,gK3))==null?void 0:(t=Y.inlinePlaybackBadgeData)==null?void 0:t.replicateAsTimestamp)===!0}))?_.b(c,gK3):void 0;
if(l==null?0:l.icon){var m,H;if((l=(m=_.Bpr(l==null?void 0:l.icon))==null?void 0:(H=m.clientResource)==null?void 0:H.imageName)&&r4S(l))return{icon:l}}return{}};
Tx3=function(c,f){var d=ODC,q=_.C(_.OT(lMF(new soC(function(){},d,f)),void 0,"PAnyd")),Z=q.next().value,M=q.next().value,g=new soC(function(O){M(O)},d,f);
_.$k(function(){Promise.resolve().then(function(){var O,l=(O=c())!=null?O:{};g.playerControlsData=l;_.F("player_controls_skip_double_signal_old")&&(g.lastSeenPlayerApi=_.wO(l.playerApi));_.F("player_controls_skip_double_signal_old")||(g.lastSeenPlayerApi=_.wO(l.playerApi));BxF(g)});
_.Q4(function(){iDc(g)})},"HikUP");
_.Q4(function(){iDc(g)});
return function(){return Z()}};
mlQ=function(c){return function(f){var d=c(),q={playerState:f};if(f===1){var Z;(Z=d.playerApi)==null||Z.loadModule("captions")}if(f===0){var M;(M=d.playerApi)==null||M.unloadModule("captions")}(f!==-1||_.F("web_imp_controls_set_player_state_killswitch"))&&d.setState(q)}};
HDi=function(c){return function(f){c().setState({playbackRate:f})}};
A4C=function(c){return function(f){var d=c(),q=d.playerApi,Z=q==null?void 0:q.getVideoData(),M=(Z==null?void 0:Z.isLive)||!1;Z=Z==null?void 0:Z.video_id;M={videoDuration:yo3(q||void 0),isLive:M,videoId:Z};M.videoId!==d.videoId&&(M=Object.assign({},_.Y$k(q),M));if(f==null?0:f.playertype)M.playerType=f.playertype;if(q){M.captionsAvailable=_.Gk(q);f=M;var g;Z=(g=q.getStoryboardLevel(q.getNumberOfStoryboardLevels()-1))==null?void 0:g.intervalMs;f.storyboardInterval=Z?Z/1E3:void 0;M.captionsAvailable&&
(M.captionsEnabled=_.RWJ(q))}M.volumeMuted=!(q==null||!q.isMuted());d.setState(M)}};
YzQ=function(c){return function(f){var d=c(),q=d.playerApi;if(q){var Z=q.getPresentingPlayerType();f={playedTime:f||0,percentLoaded:q.getVideoLoadedFraction(),playerType:Z};d.playerState===0&&(f.playedTime=d.videoDuration);d.isLive&&(Z=q.getProgressState(Z),f.playedTime-=Z.seekableStart,f.videoDuration=yo3(q));if(d.playerType===1)q=!1;else{var M;if((M=d.uxConfig)==null?0:M.showCuedOverlay){var g;q=!((g=d.playerApi)==null?0:g.getPlayerStateObject(d.playerType).isDomPaused)}else q=!0}q&&delete f.playedTime;
d.setState(f)}}};
Fu3=function(c){return function(){var f=c(),d,q,Z,M={volume:(Z=(d=f.playerApi)==null?void 0:d.getVolume())!=null?Z:0,volumeMuted:!((q=f.playerApi)==null||!q.isMuted())};f.setState(M)}};
tAG=function(c){return function(){var f=c(),d=f.playerApi;if(d){var q={captionsAvailable:_.Gk(d)};q.captionsAvailable&&(q.captionsEnabled=_.RWJ(d));f.setState(q)}}};
bDG=function(c){return function(){var f=c();if(f.playerApi&&!(f.volumeMuted||f.controlsVisible&&f.isProbablyAScreenreaderUser)){f.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var d;(d=document.querySelector(".player-control-play-pause-icon"))==null||d.focus()}}};
Kuq=function(c){return{appApi:Object.assign({},_.sIG(),{showCaptionsToggleToast:function(f){var d,q;(q=(d=c()).showCaptionsToggleToast)==null||q.call(d,f)},
openInMiniplayer:function(){var f,d;(d=(f=c()).openInMiniplayer)==null||d.call(f)}})}};
EKG=function(c,f){var d,q,Z;return!!(c==null?0:(d=c.playerResponse)==null?0:(q=d.playerConfig)==null?0:(Z=q.inlinePlaybackConfig)==null?0:Z.showScrubbingControls)&&!(f==null?0:f.hideScrubbingControls)};
_.nKQ=function(c){var f=!c.miniplayerIsActive;return[5,2,0].includes(c.miniplayerPlaybackState)||f};
$lq={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Qo3=function(c,f){var d,q,Z,M,g;_.k(function(O){if(!f.length)return O.return([]);d=[];q=_.C(f);for(Z=q.next();!Z.done;Z=q.next())M=Z.value,(g=c.resolveIcon(M))&&!c.iconCache[g.url]&&d.push(_.XDQ(c,g).then(function(){}).catch(function(){}));
return O.return(Promise.all(d))})};
Sz3=function(c,f){var d=[];f=(new Set(f)).values();f=_.C(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;for(var Z=_.C(Object.values($lq)),M=Z.next();!M.done;M=Z.next())d.push({iconName:q,iconStyle:M.value})}Qo3(c.iconManager,d)};
_.Lup=function(c,f,d){var q=d!=null?d:c.iconsToFetch;q!=null&&q.length?f!==void 0&&f>=0?_.Em(_.a7,function(){Sz3(c,q)},f):Sz3(c,q):Promise.resolve()};
soC=function(c,f,d){var q=this;this.renderFn=c;this.listeners=f;this.context=d;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Z;this.lastSeenPlayerApi=_.wO((Z=this.playerControlsData)==null?void 0:Z.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Y$k(),void 0);_.F("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){lMF(q).setState({playerState:-1});q.resetRecentlyNavigatedJobId&&_.a7.cancelJob(q.resetRecentlyNavigatedJobId);
q.recentlyNavigated=!0;q.resetRecentlyNavigatedJobId=_.a7.addJob(function(){q.recentlyNavigated=!1},8,1E4)})};
soC.prototype.setState=function(c){if(!_.F("mweb_player_skip_no_op_state_changes")||!WKr(c,this.state))if(this.state=Object.assign({},this.state,c),!_.F("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)c=-1,_.F("player_controls_log_creation_killswitch")||DaJ()||(c=(0,_.qR)()),_.V_("pcu_s"),_.V_("pcu_se"),_.V_("pcu_rs"),this.renderFn(lMF(this)),_.V_("pcu_re"),eEQ(c),_.a7.addJob(function(){_.V_("pcu_ap")},8)};
var lMF=function(c){var f;var d=_.wO((f=c.playerControlsData)==null?void 0:f.playerApi);return Object.assign({},c.state,{setState:c.boundSetState,domMeasurements:{progressBarLineRect:c.progressBarLineRect},playerApi:d,appApi:c.context.appApi,playerContainer:c.context.playerContainer,playerControlContainer:c.context.playerControlContainer,uxConfig:c.context.uxConfig})},BxF=function(c){c.listeners.forEach(function(f){c.eventListenerCleanupFunctions.push(f.register(function(){return lMF(c)},function(){return c.getData()}))})},
iDc=function(c){c.eventListenerCleanupFunctions.forEach(function(f){f()});
c.eventListenerCleanupFunctions.length=0};
soC.prototype.getData=function(){return this.playerControlsData};var $b=new _.fi("abuseReportFlowState");var zvS=new _.fi("feedbackFormFlowState");var J4J=new _.fi("inputBoxViewModel");var aMF=new _.fi("flowNextStepCommand");var VAc=new _.fi("flowPrevStepCommand");var XqS=new _.fi("updateFlowCommand");_.uJJ=new _.fi("flowStepRenderer");_.zri=new _.fi("lengthValidationRule");var a5J=new _.fi("regexValidationRule");var XCc=new _.fi("selectedValidationRule");var vKC=new _.fi("talkToRecsViewModel");var hvJ=new _.fi("creatorGoalSetUpFlowDropdownItemViewModel");var wqC=new _.fi("creatorGoalSetUpFlowDropdownViewModel");var gK3=new _.fi("thumbnailBadgeViewModel");_.y4S=new _.fi("radioButtonGroupViewModel");var UDS=new _.fi("panelFooterViewModel");var WuD=new _.fi("ypcCancelRecurrenceCommand");var DlF=new _.fi("cancellationFlowState");var TiS=new _.fi("premiumPurchaseFlowState");var ev3=new _.fi("surveyAnswerCardRenderer");var NxC=new _.fi("showMoreButtonRenderer");var IMS;var PFi,RvD=function(){if(PFi!==void 0)return PFi;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;IMS===void 0&&(IMS=document.createElement("template"));var q=IMS;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return PFi=c};var Qc=function(){var c=_.z.apply(this,arguments)||this;c.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";c.goalDescription="";c.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";c.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";c.startButtonId="start-button";c.exampleButtonId="example-button";return c};
_.K(Qc,_.z);_.r=Qc.prototype;_.r.getGoalDropdownItems=function(){var c,f;return(f=_.b((c=this.data)==null?void 0:c.purchaseTargetDropdown,wqC))==null?void 0:f.dropdownItems};
_.r.getTimerDropdownItems=function(){var c,f;return(f=_.b((c=this.data)==null?void 0:c.timerDropdown,wqC))==null?void 0:f.dropdownItems};
_.r.getColorDropdownItems=function(){var c,f;return(f=_.b((c=this.data)==null?void 0:c.colorDropdown,wqC))==null?void 0:f.dropdownItems};
_.r.getDropdownItemText=function(c){var f;return(f=_.b(c,hvJ))==null?void 0:f.itemLabel};
_.r.getDropdownItemValue=function(c){c=_.b(c,hvJ);return(c==null?void 0:c.timeLimit)||(c==null?void 0:c.purchaseTarget)||(c==null?void 0:c.eligiblePurchaseType)};
_.r.updateFlowState=function(c){_.gS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:c}])};
_.r.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.r.updateGoalValue=function(c){this.goal=c.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.r.onTextValueChanged=function(c){this.goalDescription=c.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.r.updateTimerValue=function(c){this.timer=c.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.r.updateTierValue=function(c){this.tier=c.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.r.getButtonViewModel=function(c){c=(c==null?void 0:c.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var f,d=_.b((f=this.data)==null?void 0:f.startGoalButton,_.zx);return Object.assign({},d,{state:c})};
_.ci.Object.defineProperties(Qc,{template:{configurable:!0,enumerable:!0,get:function(){return RvD()}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Qc.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Qc.prototype,"goal",void 0);_.y([_.L(),_.D("design:type",Object)],Qc.prototype,"goalDescription",void 0);_.y([_.L(),_.D("design:type",Object)],Qc.prototype,"timer",void 0);_.y([_.L(),_.D("design:type",Object)],Qc.prototype,"tier",void 0);
_.y([_.L(),_.D("design:type",Object)],Qc.prototype,"startButtonId",void 0);_.y([_.L(),_.D("design:type",Object)],Qc.prototype,"exampleButtonId",void 0);_.y([_.vj({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Qc);_.h(Qc,"yt-creator-goal-set-up-flow-view-model",function(){return RvD()},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var UlG;var pq3;var xl3;var oKQ=function(){return _.z.apply(this,arguments)||this};
_.K(oKQ,_.z);_.y([_.L(),_.D("design:type",Object)],oKQ.prototype,"data",void 0);_.y([_.vj({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],oKQ);
_.h(oKQ,"yt-survey-answer-card-renderer",function(){if(xl3===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;pq3===void 0&&(pq3=document.createElement("template"));var q=pq3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);xl3=c}c=xl3;return c},{mode:2});var GfF;var cwD;var SK=function(){return _.z.apply(this,arguments)||this};
_.K(SK,_.z);_.r=SK.prototype;_.r.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.r.selectedItemChanged=function(c){_.gS(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[c.feedbackToken||""]}])};
_.r.surveyAnswerCardRendererClicked=function(c){if(c.target&&_.b(c.model.item,ev3)){var f=c.target;c=_.b(c.model.item,ev3);c.onTapCommand?_.ll(f,[c.onTapCommand],f):this.data.onTapCommand&&_.ll(f,[this.data.onTapCommand],f);this.selectedItemChanged(c)}};
_.r.checkIsCancellationStyle=function(c){return c==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.r.updateSelectedItemFromBinding=function(c){this.selectedItem=c.detail.value};
SK.prototype.onSelectedItemChanged=SK.prototype.onSelectedItemChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],SK.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],SK.prototype,"selectedItem",void 0);_.y([_.L({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.D("design:type",Boolean)],SK.prototype,"isCancellationStyle",void 0);
_.y([_.m5("selectedItem"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],SK.prototype,"onSelectedItemChanged",null);_.y([_.vj({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],SK);
_.h(SK,"yt-survey-flow-step-renderer",function(){if(cwD===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;GfF===void 0&&(GfF=document.createElement("template"));var q=GfF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);cwD=c}c=cwD;return c},{mode:2});var LY=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return c};
_.K(LY,_.z);LY.prototype.handleSurveyFlowStepOptionChanged=function(c){this.ytdReduxBehavior.dispatch(_.CC({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:c}));_.gS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:c}}])};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],LY.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],LY.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],LY.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],LY);
_.h(LY,"ytd-survey-flow-step-renderer",function(){if(UlG!==void 0)return UlG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return UlG=c},{mode:1});var N$r;N$r=_.La({avatarViewModel:_.ag,buttonViewModel:_.mN,subscribeButtonViewModel:_.aQ,imageBannerViewModel:_.Dc});_.feC=_.bS(_.PmF);_.ZB(_.PmF);var dRq;var zm=function(){return _.z.apply(this,arguments)||this};
_.K(zm,_.z);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],zm.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zm.prototype,"data",void 0);_.y([_.v({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],zm);
_.h(zm,"ytd-channel-history-renderer",function(){if(dRq!==void 0)return dRq;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return dRq=c},{mode:1});var j7q;var qND=function(){return _.z.apply(this,arguments)||this};
_.K(qND,_.z);_.y([_.L(),_.D("design:type",Object)],qND.prototype,"data",void 0);_.y([_.v({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],qND);
_.h(qND,"ytd-feature-enablement-info-renderer",function(){if(j7q!==void 0)return j7q;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return j7q=c},{mode:1});var Zu3;var M6F;var Ja=function(){var c=_.z.apply(this,arguments)||this;c.textBoxMaxLength=_.F("enable_tvod_campaign_code_integration")?15:12;return c};
_.K(Ja,_.z);_.r=Ja.prototype;_.r.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.r.onSubmit=function(){var c=this.data.serviceEndpoint,f=_.b(c,_.qC);f&&c&&(f.couponCode=this.userInput,_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}}))};
_.r.validate=function(){var c=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=c&&!this.data.errorMessage;this.showErrorMessage=c&&!!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};
_.r.computeStyle=function(c){return c};
_.r.computeShowValidationBelowInput=function(c){return c!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.r.updateUserInputFromBinding=function(c){this.userInput=c.currentTarget.value};
_.r.updateShowErrorMessageFromBinding=function(c){this.showErrorMessage=c.detail.value};
_.ci.Object.defineProperties(Ja.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Ja.prototype.dataChanged=Ja.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ja.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],Ja.prototype,"userInput",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ja.prototype,"disableApplyButton",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ja.prototype,"hideApplyButton",void 0);
_.y([_.L(),_.D("design:type",Boolean)],Ja.prototype,"hideErrorMessage",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ja.prototype,"showTick",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ja.prototype,"showErrorMessage",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.D("design:type",String)],Ja.prototype,"couponStyle",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.D("design:type",Boolean)],Ja.prototype,"showValidationBelowInput",void 0);_.y([_.L(),_.D("design:type",Object)],Ja.prototype,"textBoxMaxLength",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ja.prototype,"dataChanged",null);
_.y([_.S("showTick","showErrorMessage","userInput"),_.D("design:type",String),_.D("design:paramtypes",[])],Ja.prototype,"validationState",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Ja);
_.h(Ja,"ytd-ypc-coupon-renderer",function(){if(M6F!==void 0)return M6F;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return M6F=c},{mode:1});var ar=function(){return _.z.apply(this,arguments)||this};
_.K(ar,_.z);ar.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"}}}};
ar.prototype.computeStyle=function(c){return c};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ar.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.D("design:type",String)],ar.prototype,"buttonStyle",void 0);_.y([_.v({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],ar);
_.h(ar,"ytd-flow-bottom-bar-renderer",function(){if(Zu3!==void 0)return Zu3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Zu3=c},{mode:1});var rwG;var Cx3;var gOG;var Vc=function(){return _.z.apply(this,arguments)||this};
_.K(Vc,_.z);Vc.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Vc.prototype.focus=function(c){this.title&&_.UN(this.title,c)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Vc.prototype,"data",void 0);_.y([_.AY("#title"),_.D("design:type",HTMLElement)],Vc.prototype,"title",void 0);_.y([_.v({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Vc);
_.h(Vc,"ytd-flow-top-bar-renderer",function(){if(gOG!==void 0)return gOG;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return gOG=c},{mode:1});var krD;var OuJ;var lec;var XO=function(){return _.z.apply(this,arguments)||this};
_.K(XO,_.z);XO.prototype.freeTextValueChanged=function(){_.gS(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
XO.prototype.updateFreeTextValueFromBinding=function(c){this.freeTextValue=c.detail.value};
_.ci.Object.defineProperties(XO.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(f=(c=this.data)==null?void 0:c.responseMaxLength)!=null?f:500,q;return((q=this.freeTextValue)!=null?q:"").length>=d?"maxed-out":""}}});
XO.prototype.freeTextValueChanged=XO.prototype.freeTextValueChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],XO.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],XO.prototype,"freeTextValue",void 0);_.y([_.AY("#user-input"),_.D("design:type",HTMLTextAreaElement)],XO.prototype,"input",void 0);
_.y([_.S("freeTextValue"),_.D("design:type",Object),_.D("design:paramtypes",[])],XO.prototype,"characterLimitClass",null);_.y([_.m5("freeTextValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],XO.prototype,"freeTextValueChanged",null);_.y([_.vj({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],XO);
_.h(XO,"yt-free-text-input-flow-step-renderer",function(){if(lec===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;OuJ===void 0&&(OuJ=document.createElement("template"));var q=OuJ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);lec=c}c=lec;return c},{mode:2});var ui=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return c};
_.K(ui,_.z);ui.prototype.handleFreeTextFlowStepInputChanged=function(c){_.gS(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:c}}])};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ui.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],ui.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ui.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],ui);
_.h(ui,"ytd-free-text-input-flow-step-renderer",function(){if(krD!==void 0)return krD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return krD=c},{mode:1});var s7J;var BRQ;var iuC=function(){return _.z.apply(this,arguments)||this};
_.K(iuC,_.z);_.y([_.L(),_.D("design:type",Object)],iuC.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],iuC);
_.h(iuC,"ytd-metadata-line-renderer",function(){if(BRQ!==void 0)return BRQ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return BRQ=c},{mode:1});var ha=function(){return _.z.apply(this,arguments)||this};
_.K(ha,_.z);ha.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ha.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],ha.prototype,"isMasthead",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],ha);
_.h(ha,"ytd-media-product-renderer",function(){if(s7J!==void 0)return s7J;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return s7J=c},{mode:1});var TR3;var w6=function(){return _.z.apply(this,arguments)||this};
_.K(w6,_.z);w6.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
w6.prototype.onBillboardImageLoaded=function(){_.CZ(this.hostElement,"yt-refit")};
w6.prototype.onBillboardImageLoaded=w6.prototype.onBillboardImageLoaded;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],w6.prototype,"data",void 0);_.y([_.AY("#billboardImage"),_.D("design:type",Object)],w6.prototype,"billboardImage",void 0);_.y([_.Ta("yt-img-shadow-loaded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],w6.prototype,"onBillboardImageLoaded",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],w6);
_.h(w6,"ytd-billboard-masthead-renderer",function(){if(TR3!==void 0)return TR3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return TR3=c},{mode:1});var mRJ;var yc=function(){var c=_.z.apply(this,arguments)||this;c.smallSize=!1;return c};
_.K(yc,_.z);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],yc.prototype,"ytComponentBehaviorType",void 0);_.y([_.L(),_.D("design:type",Object)],yc.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yc.prototype,"smallSize",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],yc);
_.h(yc,"ytd-bullet-formatted-string",function(){if(mRJ!==void 0)return mRJ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return mRJ=c},{mode:1});var HuC;var W8=function(){return _.z.apply(this,arguments)||this};
_.K(W8,_.z);W8.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],W8.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],W8);
_.h(W8,"ytd-offer-detail-renderer",function(){if(HuC!==void 0)return HuC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return HuC=c},{mode:1});var AwF;var Dw=function(){return _.z.apply(this,arguments)||this};
_.K(Dw,_.z);Dw.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Dw.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Dw);
_.h(Dw,"ytd-offer-detail-step-renderer",function(){if(AwF!==void 0)return AwF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return AwF=c},{mode:1});var YND;var eK=function(){var c=_.z.apply(this,arguments)||this;c.isInOfferModule=!1;return c};
_.K(eK,_.z);_.r=eK.prototype;_.r.computeHasEndpoint=function(){var c;return!((c=this.data)==null||!c.onClickCommand)};
_.r.dataChanged=function(){var c;if((c=this.data)==null?0:c.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")};
_.r.detached=function(){var c;if((c=this.data)==null?0:c.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.r.handleClickEvent=function(){var c;if((c=this.data)==null?0:c.onClickCommand){var f;this.componentBehavior.resolveCommand((f=this.data)==null?void 0:f.onClickCommand)}};
_.r.onContentKeyDown=function(c){c.key==="Enter"?this.handleClickEvent(c):c.key===" "&&c.preventDefault()};
_.r.onContentKeyUp=function(c){c.key===" "&&this.handleClickEvent(c)};
eK.prototype.dataChanged=eK.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],eK.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],eK.prototype,"data",void 0);_.y([_.L({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],eK.prototype,"hasEndpoint",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],eK.prototype,"isInOfferModule",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],eK.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],eK);
_.h(eK,"ytd-channel-masthead-renderer",function(){if(YND!==void 0)return YND;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return YND=c},{mode:1});var FwF;var Nf=function(){var c=_.z.apply(this,arguments)||this;c.thumbnailObjectFit="CONTAIN";c.thumbnailObjectPosition="LEFT";c.isExpanded=!1;return c};
_.K(Nf,_.z);_.r=Nf.prototype;_.r.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.r.dataChanged=function(){this.resetStates()};
_.r.computeisTapOnOfferInfoContainerEnabled=function(){var c;return((c=this.data)==null?void 0:c.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.r.onExpandBtnClick=function(){var c,f=_.b((c=this.data)==null?void 0:c.showMoreButtonRenderer,NxC);f&&_.mZ(_.bP(),f.trackingParams);this.isExpanded=!this.isExpanded};
_.r.onOfferInfoClick=function(c){this.isTapOnOfferInfoContainerEnabled&&(_.qY(_.x0(c)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.ZW(_.x0(c)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.r.onBottomBarClick=function(){this.executeTapCommand()};
_.r.executeTapCommand=function(){var c,f=(c=this.data)==null?void 0:c.tapCommand;f&&this.ytComponentBehavior.resolveCommand(f)};
_.r.resetStates=function(){this.isExpanded=!1};
_.ci.Object.defineProperties(Nf.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var c=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),f,d,q;return((f=this.data)==null?void 0:f.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&c&&!!((d=this.data)==null?0:(q=d.benefits)==null?0:q.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((f=_.b((c=this.data)==null?void 0:c.showMoreButtonRenderer,NxC))==null?void 0:f.showMoreButtonTitle)||((d=this.data)==null?void 0:d.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((f=_.b((c=this.data)==null?void 0:c.showMoreButtonRenderer,NxC))==null?void 0:f.showLessButtonTitle)||((d=this.data)==null?void 0:d.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var c;return(c=this.showLessButtonTitle)!=null?c:""}var f;return(f=this.showMoreButtonTitle)!=null?f:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.data)==null?void 0:c.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((f=this.data)==null?0:f.footerTitle)||((d=this.data)==null?0:d.footerSubtitle))}}});
Nf.prototype.dataChanged=Nf.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Nf.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",String)],Nf.prototype,"thumbnailObjectFit",void 0);
_.y([_.L(),_.D("design:type",String)],Nf.prototype,"thumbnailObjectPosition",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.D("design:type",Boolean)],Nf.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.y([_.L(),_.D("design:type",Object)],Nf.prototype,"isExpanded",void 0);_.y([_.L(),_.D("design:type",Object)],Nf.prototype,"data",void 0);_.y([_.L({computed:"computeIcon_(data.footerIcon)"}),_.D("design:type",String)],Nf.prototype,"icon",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Nf.prototype,"dataChanged",null);_.y([_.S("data.thumbnail"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Nf.prototype,"hasThumbnail",null);_.y([_.S("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Nf.prototype,"enableExpandButton",null);
_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Nf.prototype,"enableOfferContentIcon",null);_.y([_.S("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.D("design:type",Object),_.D("design:paramtypes",[])],Nf.prototype,"showMoreButtonTitle",null);_.y([_.S("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.D("design:type",Object),_.D("design:paramtypes",[])],Nf.prototype,"showLessButtonTitle",null);
_.y([_.S("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.D("design:type",String),_.D("design:paramtypes",[])],Nf.prototype,"expandedBtnText",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Nf.prototype,"enableBottomBar",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Nf);
_.h(Nf,"ytd-offer-card-renderer",function(){if(FwF!==void 0)return FwF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return FwF=c},{mode:1});var t6G;var Ir=function(){return _.z.apply(this,arguments)||this};
_.K(Ir,_.z);Ir.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"}}}};
Ir.prototype.onClick=function(c){if(!_.qY(c.composedPath()||[],this.hostElement,["A".toString()])){var f,d;if((c=(d=_.b((f=this.data)==null?void 0:f.actionButton,_.WQ))==null?void 0:d.command)&&!this.ytComponentBehavior.resolveCommand(c)){var q;(q=_.bP())==null||q.clickCommand(c);_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}})}}};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Ir.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ir.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Ir);
_.h(Ir,"ytd-offer-content-renderer",function(){if(t6G!==void 0)return t6G;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return t6G=c},{mode:1});var buq;var P8=function(){return _.z.apply(this,arguments)||this};
_.K(P8,_.z);P8.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.ci.Object.defineProperties(P8.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null||!c.title)||!((f=this.data)==null||!f.description)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],P8.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],P8.prototype,"hasHeaderData",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],P8);
_.h(P8,"ytd-offer-section-renderer",function(){if(buq!==void 0)return buq;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return buq=c},{mode:1});var Kwr;var Rr=function(){return _.z.apply(this,arguments)||this};
_.K(Rr,_.z);
Rr.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"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Rr.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Rr);
_.h(Rr,"ytd-offer-selection-step-renderer",function(){if(Kwr!==void 0)return Kwr;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Kwr=c},{mode:1});var EOi;var Ub=function(){return _.z.apply(this,arguments)||this};
_.K(Ub,_.z);Ub.prototype.computeStyle=function(c){return c};
Ub.prototype.computeImageWidth=function(c){return c==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.y([_.L({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.D("design:type",String)],Ub.prototype,"containerStyle",void 0);_.y([_.L({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.D("design:type",String)],Ub.prototype,"imageWidth",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ub.prototype,"data",void 0);
_.y([_.v({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Ub);
_.h(Ub,"ytd-confirmation-masthead-renderer",function(){if(EOi!==void 0)return EOi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return EOi=c},{mode:1});var nO3;var pY=function(){return _.z.apply(this,arguments)||this};
_.K(pY,_.z);pY.prototype.computeStyle=function(c){return c};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pY.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.D("design:type",String)],pY.prototype,"containerStyle",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],pY);
_.h(pY,"ytd-purchase-complete-detail-renderer",function(){if(nO3!==void 0)return nO3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return nO3=c},{mode:1});var $RH;var xb=function(){var c=_.z.apply(this,arguments)||this;c.scriptsAppended=!1;return c};
_.K(xb,_.z);xb.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"}}}};
xb.prototype.onDataChanged=function(){var c=this.get("data.gtmId");c&&(_.J$(c,_.hk("GL","")),this.setupConversionTracking())};
xb.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var c=document.createElement("noscript");c.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(c);this.scriptsAppended=!0}};
xb.prototype.onDataChanged=xb.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xb.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],xb.prototype,"scriptsAppended",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xb.prototype,"onDataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],xb);
_.h(xb,"ytd-purchase-complete-step-renderer",function(){if($RH!==void 0)return $RH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $RH=c},{mode:1});var Q7S;var or=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(or,_.z);or.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],or.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],or.prototype,"darkerDarkTheme",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],or);
_.h(or,"ytd-ypc-transaction-error-message-renderer",function(){if(Q7S!==void 0)return Q7S;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Q7S=c},{mode:1});var SNC;var LwD;var Gm=function(){var c=_.z.apply(this,arguments)||this;c.handlePhoneVerificationSuccess=function(f){if(c.isValidPhoneVerificationCompletionMessageEvent(f)){var d;((d=c.data)==null?0:d.nextStepCommand)&&c.ytComponentBehavior.resolveCommand(c.data.nextStepCommand)}};
return c};
_.K(Gm,_.z);Gm.prototype.isValidPhoneVerificationCompletionMessageEvent=function(c){if(c.data!=="yt-phone-verification-complete")return!1;c=_.ow(c.origin);return c!==null&&c.includes("youtube.com")};
Gm.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Gm.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Gm.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Gm.prototype,"data",void 0);_.y([_.vj({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Gm);
_.h(Gm,"yt-feature-enablement-soft-entry-renderer",function(){if(LwD===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;SNC===void 0&&(SNC=document.createElement("template"));var q=SNC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);LwD=c}c=LwD;return c},{mode:1});var zfH;var JwQ;var aei;var V6J;var XsQ=function(){return _.z.apply(this,arguments)||this};
_.K(XsQ,_.z);_.y([_.L(),_.D("design:type",Object)],XsQ.prototype,"data",void 0);_.y([_.vj({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],XsQ);
_.h(XsQ,"yt-benefits-item-renderer",function(){if(V6J===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;aei===void 0&&(aei=document.createElement("template"));var q=aei;d.call(f,q.content.cloneNode(!0),c.content.firstChild);V6J=c}c=V6J;return c},{mode:2});var uhi;var vOS;var c7=function(){return _.z.apply(this,arguments)||this};
_.K(c7,_.z);c7.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
c7.prototype.computeisWithoutPadding=function(){var c;return((c=this.data)==null?void 0:c.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],c7.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.D("design:type",Boolean)],c7.prototype,"isWithoutPadding",void 0);_.y([_.vj({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],c7);
_.h(c7,"yt-benefits-section-renderer",function(){if(vOS===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;uhi===void 0&&(uhi=document.createElement("template"));var q=uhi;d.call(f,q.content.cloneNode(!0),c.content.firstChild);vOS=c}c=vOS;return c},{mode:2});var fV=function(){return _.z.apply(this,arguments)||this};
_.K(fV,_.z);fV.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
fV.prototype.computeisUsingLargeWidth=function(){var c;return((c=this.data)==null?void 0:c.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fV.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.D("design:type",Boolean)],fV.prototype,"isUsingLargeWidth",void 0);_.y([_.vj({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],fV);
_.h(fV,"yt-benefits-flow-step-renderer",function(){if(JwQ===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;zfH===void 0&&(zfH=document.createElement("template"));var q=zfH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);JwQ=c}c=JwQ;return c},{mode:2});var hfG;var wsH;var df=function(){return _.z.apply(this,arguments)||this};
_.K(df,_.z);df.prototype.checkIsUsingLargeWidth=function(){var c;return((c=this.data)==null?void 0:c.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.y([_.L(),_.D("design:type",Object)],df.prototype,"data",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.y([_.L({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.D("design:type",Boolean)],df.prototype,"isUsingLargeWidth",void 0);_.y([_.vj({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],df);
_.h(df,"yt-confirmation-flow-step-renderer",function(){if(wsH===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;hfG===void 0&&(hfG=document.createElement("template"));var q=hfG;d.call(f,q.content.cloneNode(!0),c.content.firstChild);wsH=c}c=wsH;return c},{mode:2});var ywc;var Wwp;var DRD=function(){return _.z.apply(this,arguments)||this};
_.K(DRD,_.z);_.y([_.L(),_.D("design:type",Object)],DRD.prototype,"data",void 0);_.y([_.vj({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],DRD);
_.h(DRD,"yt-info-flow-step-renderer",function(){if(Wwp===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;ywc===void 0&&(ywc=document.createElement("template"));var q=ywc;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Wwp=c}c=Wwp;return c},{mode:2});var efH;var NRp;var Ier=function(){return _.z.apply(this,arguments)||this};
_.K(Ier,_.z);_.y([_.L(),_.D("design:type",Object)],Ier.prototype,"data",void 0);_.y([_.vj({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Ier);
_.h(Ier,"yt-info-list-flow-step-renderer",function(){if(NRp===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;efH===void 0&&(efH=document.createElement("template"));var q=efH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);NRp=c}c=NRp;return c},{mode:2});var Pxc=_.dN(function(c){var f=c.data;return _.B("styled-text-view-model",{class:_.FY("ytStyledTextViewModelHost",function(){return MZp(f().fontAttributes)},function(){return Z9c(f().color)})},_.B(_.J9,{text:function(){return f().text},
ariaLabel:function(){var d,q,Z;return(Z=(d=f().accessibility)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label)!=null?Z:""}}))},"of");
Pxc.idomCompat=!0;var RfG=_.dN(function(c){var f=function(){var Z,M,g,O;return(O=(g=(Z=c.alt)==null?void 0:Z.call(c))!=null?g:(M=c.data().accessibilityData)==null?void 0:M.label)!=null?O:""},d=function(){return c.data().imageWidth},q=function(){return c.data().imageHeight};
return _.B("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.B(_.T,{cond:function(){var Z=c.data();if(Z){var M,g,O;var l=((M=_.ql().resolve(_.dx(_.of)))==null?0:M())?(g=Z.imageDark)!=null?g:Z.imageLight:(O=Z.imageLight)!=null?O:Z.imageDark}else l=void 0;return l},
then:function(Z){return _.B(_.jC,Object.assign({},c,{data:Z,alt:f,targetWidth:d,targetHeight:q,preserveHeight:!0,preserveWidth:!0}))}}))},"pf");
RfG.idomCompat=!0;var jL=_.dN(function(c){var f=c.data;c=_.Ga(function(){return f().slots},[]);
var d=_.Ga(function(){return f().layoutProperties},{}),q=_.ql().resolve(_.cr);
return _.B("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:ckq(d,q)},_.B(_.bd,{each:c,keyBy:"INDEX"},function(Z){return _.B("div",{class:"ytContainerLayoutViewModelSlot",style:ckq(function(){return Z().layoutProperties},q)},_.B(_.u7,{data:function(){return Z().contents}},{containerLayoutViewModel:jL,
badgeViewModel:_.rA,buttonViewModel:_.mN,styledTextViewModel:Pxc,contentPreviewImageViewModel:function(M){return _.B(_.CQ,{data:M.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(M){return _.B(RfG,{data:M.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qf");
jL.idomCompat=!0;var URD=_.dN(function(c){var f=c.data;var d=c.stateFns;var q=function(){var m=f(),H=m.productId;return!(!m.clearGroupId&&!H)},Z=function(){var m=f(),H=m.clearGroupId;
return(m=m.productId)?d().isProductSelected(m):H?d().getSelectedProductByGroupId(H)==null:!1},M=function(){var m=f(),H=m.clearGroupId;
if(m=m.productId)d().onProductSelected(m);else if(H)d().onClearGroupSelected(H)},g=function(){var m=f(),H=m.clearGroupId;
if(m=m.productId){var A;return"group:"+(((A=d().getProductById(m))==null?void 0:A.groupId)||"")}return H?"group:"+H:""},O=_.Ga(function(){return f().header},[]),l=_.Ga(function(){return f().body},[]);
return _.B("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.B(_.T,{cond:function(){return O().length>0||q()},
then:function(){return _.B("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.B("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.B(_.u7,{data:O},{containerLayoutViewModel:function(m){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(jL,{data:m.data}))},
styledTextViewModel:function(m){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(Pxc,{data:m.data}))}})),_.B(_.T,{cond:q,
then:function(){return _.B("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.B(_.vn,{checked:Z,name:g,onChange:M}))}}))}}),_.B(_.T,{cond:function(){return l().length>0},
then:function(){return _.B("div",null,_.B(_.u7,{data:l},{containerLayoutViewModel:function(m){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(jL,{data:m.data}))}}))}}))},"rf");
URD.idomCompat=!0;var psJ=_.dN(function(c){var f=c.data;var d=c.stateFns;return _.B("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.B(_.T,{cond:function(){return f().banner},
then:function(q){return _.B("div",{class:"ytPdpCardViewModelBanner"},_.B(_.J9,{text:q}))}}),_.B(_.u7,{data:function(){return f().sections}},{pdpCardSectionViewModel:function(q){q=q.data;
var Z={};return _.B("div",{class:_.FY("ytPdpCardViewModelSectionContainer",(Z.ytPdpCardViewModelShowDividers=function(){return f().showDividers},Z))},_.B(URD,{data:q,
stateFns:d}))}}))},"sf");
psJ.idomCompat=!0;var xRc=_.dN(function(c){var f=c.data;var d=c.isOverlay;c={};return _.B("pdp-masthead-view-model",{class:_.FY("ytPdpMastheadViewModelHost",(c.ytPdpMastheadViewModelIsOverlay=d,c))},_.B(_.u7,{data:function(){return f().image}},{contentPreviewImageViewModel:_.CQ,
themedImageViewModel:function(q){return _.B(RfG,{data:q.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.B(_.T,{cond:function(){return f().title},
then:function(q){return _.B("h1",{class:"ytPdpMastheadViewModelHeading"},_.B(_.J9,{text:q,isOverlay:d}))}}),_.B(_.bd,{each:function(){var q;
return(q=f().finePrint)!=null?q:[]}},function(q){return _.B("div",{class:"ytPdpMastheadViewModelFinePrint"},_.B(_.J9,{text:q,
isOverlay:d}))}))},"tf");
xRc.idomCompat=!0;var oOC=_.dN(function(c){var f=c.data;var d=c.stateFns;var q=function(){return"pdp-pricing-group-selector-"+f().pricingGroupAttributeIds},Z=_.Ga(function(){return f().pricingGroupSelectorSectionHeader});
return _.B("pdp-pricing-group-selector-view-model",null,_.B(_.T,{cond:function(){return!!Z()},
then:function(){return _.B(_.u7,{data:Z},{sectionHeaderViewModel:function(M){M=M.data;var g={};return _.B("div",{class:_.FY("ytPdpPricingGroupSelectorViewModelSectionHeader",(g.ytPdpPricingGroupSelectorViewModelFullBleed=!0,g.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,g))},_.B(_.Bn,{data:M}))}})}}),_.B("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.B(_.bd,{each:function(){var M=d().getSelectedProductByGroupId(f().groupId);
if(!M)return _.XX(Error("Jj`"+f().groupId)),[];var g,O=(g=f().pricingGroupAttributeIds)!=null?g:[],l;if((l=M.pricingGroups)==null||!l.length||!O.length)return[];g=M.pricingGroups.filter(function(Y){return O.length?Y.pricingGroupAttributes.every(function(t){return O.includes(t)}):!1});
M=[];if(O.length>0){g=[].concat(_.LT(g));l=_.C(O);for(var m=l.next(),H={};!m.done;H={targetAttrId:void 0},m=l.next())H.targetAttrId=m.value,m=g.findIndex(function(Y){return function(t){return t.pricingGroupAttributes.includes(Y.targetAttrId)}}(H)),m!==-1&&(M.push(g[m]),g.splice(m,1))}var A=d().getSelectedPricingGroupAttributesByGroupId(f().groupId);
return M.map(function(Y){var t=!1;A&&Y.pricingGroupAttributes&&(t=KY(Y.pricingGroupAttributes,A));return{pricingGroup:Y,isSelected:t}})},
keyBy:function(M){return M.pricingGroup.pricingGroupId}},function(M){return _.B("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.B("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.B(_.u7,{data:function(){return M().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:jL})),_.B("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.B(_.vn,{checked:function(){return M().isSelected},
name:q,onClick:function(){d().onPricingGroupSelected(M().pricingGroup.pricingGroupId)}})))})))},"uf");
oOC.idomCompat=!0;var Grp=_.dN(function(c){var f=c.data;var d=c.stateFns;var q=function(){var g=d().getSelectedPricingOptions().map(function(m){return m.pricingOptionId}),O=d().getSelectedProductByGroupId(f().groupId);
if(!O)return _.XX(Error("Kj`"+f().groupId)),[];var l=d().getSelectedPricingGroupAttributesByGroupId(f().groupId);return k4S(O.pricingOptions,l,g)},Z=_.Ga(function(){return f().pricingOptionSelectorSectionHeader}),M=function(){return q().length>1};
return _.B("pdp-pricing-option-selector-view-model",null,_.B(_.T,{cond:function(){return!!Z()&&M()},
then:function(){return _.B(_.u7,{data:Z},{sectionHeaderViewModel:function(g){g=g.data;var O={};return _.B("div",{class:_.FY("ytPdpPricingOptionSelectorViewModelSectionHeader",(O.ytPdpPricingOptionSelectorViewModelFullBleed=!0,O.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,O))},_.B(_.Bn,{data:g}))}})}}),_.B(_.T,{cond:M,
then:function(){return _.B("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.B(_.bd,{each:q,keyBy:"INDEX"},function(g){return _.B("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.B("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.B(_.u7,{data:function(){return g().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:jL})),_.B("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.B(_.vn,{checked:function(){return g().isSelected},
onClick:function(){d().onPricingOptionSelected(g().pricingOption.pricingOptionId);var O=g().pricingOption.onSelectPricingOption;if(O=_.D9(O)){var l;(l=_.ql().resolve(_.ZM))==null||l.resolveCommand(O)}}})))}))}}))},"vf");
Grp.idomCompat=!0;var cNC=_.dN(function(c){var f=c.data;var d=c.stateFns;return _.B("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.B(_.u7,{data:function(){var q,Z;return(Z=(q=d().getSelectedPricingOptions()[0])==null?void 0:q.primaryButton)!=null?Z:f().emptyStateButton}},{buttonViewModel:_.mN}))},"wf");
cNC.idomCompat=!0;var fZC=_.dN(function(c){var f=c.stateFns;return _.B("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.B(_.u7,{data:function(){return f().getSelectedPricingOptions().flatMap(function(d){return d.summaryLines}).filter(function(d){return!!d})}},{containerLayoutViewModel:function(d){return _.B("div",{class:"ytPdpSummaryViewModelLineItem"},_.B(jL,{data:d.data}))}}))},"xf");
fZC.idomCompat=!0;var duC=_.dN(function(c){function f(X){var u=g();_.oa(_.uh("pdpStateEntity",u,{key:u,selectedPricingOptions:X}))}
var d=c.data;var q=c.internalScrolling;var Z=c.stateFnsForTesting;var M=_.Ga(function(){return d().allProducts},[]),g=_.Ga(function(){return d().pdpStateEntityKey},""),O=_.Ka(O9q,g),l=_.TZ(function(){_.LL(!0);
var X;return(X=Z==null?void 0:Z())!=null?X:swQ(O,M,f)},void 0,"pjJzrd"),m=_.Ga(function(){return d().body},[]),H=_.Ga(function(){return d().columnBreakHints},[]),A=function(){return d().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},Y=function(){return A()||d().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},t=_.TZ(function(){var X=_.oe(d().background),u;
if(X==null?0:(u=X.sources)==null?0:u.length){var W=W===void 0?!0:W;X=_.mWn(void 0,X.sources,void 0,W,W?1E3:void 0,W?void 0:1E3)}else X=null;return X},void 0,"GO4GAe");
c=_.$Z({"--pdp-view-model-background":function(){return t()?"url("+t()+")":void 0}});
var E={};q=_.FY("ytPdpViewModelHost",(E.ytPdpViewModelHasBackground=function(){return Y()||!!t()},E.ytPdpViewModelHasDarkBackground=Y,E.ytPdpViewModelHasScrim=A,E.ytPdpViewModelInternalScrolling=_.Ga(q,!1),E));
var J=function(X){var u={};return _.FY("ytPdpViewModelItem",(u.ytPdpViewModelFullBleed=function(){return _.rfe(X())==="dividerViewModel"||_.rfe(X())==="sectionHeaderViewModel"},u.ytPdpViewModelNoVerticalPadding=function(){return _.rfe(X())==="sectionHeaderViewModel"},u))};
_.L9(function(){var X=d().onStartCommand;if(X&&(X=_.D9(X))){var u;(u=_.ql().resolve(_.ZM))==null||u.resolveCommand(X)}});
return _.B("pdp-view-model",{class:q,style:c},_.B("div",{class:"ytPdpViewModelColumnContainer"},_.B(_.bd,{each:function(){return BiJ(m(),H())},
keyBy:"INDEX"},function(X){return _.B("div",{class:"ytPdpViewModelColumn"},_.B(_.u7,{data:X},{containerLayoutViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(jL,{data:u}))},
dividerViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(_.n1H,{data:u}))},
pdpCardViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(psJ,{data:u,
stateFns:l}))},
pdpMastheadViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(xRc,{data:u,
isOverlay:Y}))},
pdpPricingGroupSelectorViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(oOC,{data:u,
stateFns:l}))},
pdpPricingOptionSelectorViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(Grp,{data:u,
stateFns:l}))},
pdpPrimaryButtonViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(cNC,{data:u,
stateFns:l}))},
pdpSummaryViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(fZC,{data:u,
stateFns:l}))},
sectionHeaderViewModel:function(u,W){u=u.data;return _.B("div",{class:J(function(){return X()[W()]})},_.B(_.Bn,{data:u}))}}))})))},"yf");
duC.idomCompat=!0;_.g_(duC,"pdp-view-model",{props:{data:_.oM,stateFnsForTesting:_.Cs,internalScrolling:_.Cs}});var jbS=_.dN(function(c){var f=c.data;var d=c.className;var q=_.Ka(_.fp,function(){return f().flowStateEntityKey});
return _.B("ytm-premium-purchase-button-renderer",{class:_.FY("yt-premium-purchase-button-renderer",d)},_.B(_.u7,{data:function(){var Z;return(Z=_.b(q(),TiS))==null?void 0:Z.primaryButtonOverride}},{buttonRenderer:function(Z){return _.B(_.pd,{data:Z.data,
className:d})},
buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,className:d})}}))},"zf");
jbS.idomCompat=!0;var qmq=_.dN(function(c){var f=c.data;c=c.className;var d=function(){return i9C(f().style)},q=_.FY("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",d),Z=_.FY("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",d);
return _.B("yt-flow-bottom-bar-renderer",{class:_.FY("yt-flow-bottom-bar-renderer",c,d)},_.B(_.u7,{data:function(){return f().secondaryButton}},{buttonRenderer:function(M){return _.B(_.pd,{data:M.data,
className:Z})},
buttonViewModel:function(M){return _.B(_.mN,{data:M.data,className:Z})},
premiumPurchaseButtonRenderer:function(M){return _.B(jbS,{data:M.data,className:Z})}}),_.B(_.u7,{data:function(){return f().primaryButton}},{buttonRenderer:function(M){return _.B(_.pd,{data:M.data,
className:q})},
buttonViewModel:function(M){return _.B(_.mN,{data:M.data,className:q})},
premiumPurchaseButtonRenderer:function(M){return _.B(jbS,{data:M.data,className:q})}}))},"Af");
qmq.idomCompat=!0;_.g_(qmq,"yt-flow-bottom-bar-renderer",{props:{data:_.oM,className:_.oM}});var ZWc=_.dN(function(c){var f=_.FY(c.className,"ytOfferSummaryRendererHost");return _.B("yt-offer-summary-renderer",{class:f},_.B("div",{class:"ytOfferSummaryRendererTextContainer"},_.B("div",{class:"ytOfferSummaryRendererEyebrowText"},_.B(_.J9,{text:function(){return c.data().eyebrowText}})),_.B("div",{class:"ytOfferSummaryRendererTitle"},_.B(_.J9,{text:function(){return c.data().title}})),_.B("div",{class:"ytOfferSummaryRendererSubtitle"},_.B(_.J9,{text:function(){return c.data().subtitle}})),
_.B("div",{class:"ytOfferSummaryRendererFeatureListData"},_.B(_.bd,{each:function(){var d;
return(d=c.data().featureListData)!=null?d:[]}},function(d){var q;
return _.B("div",{class:"ytOfferSummaryRendererFeatureList"},_.B(_.Qy,{icon:(q=d.icon)==null?void 0:q.iconType,active:function(){return d.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(d.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"}}}),_.B("div",{class:"ytOfferSummaryRendererFeatureListText"},_.B(_.J9,{text:d.text,
className:function(){return d.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.B("div",{class:"ytOfferSummaryRendererDescription"},_.B(_.J9,{text:function(){return c.data().description}}))))},"Bf");_.g_(_.dN(function(c){var f={};f=_.FY("ytOfferSummaryFlowStepRendererHost",(f.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=c.shouldDisableHeaderTopMargin,f));return _.B("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:f},_.B("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.B("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.B(_.J9,{text:function(){return c.data().header}})),_.B("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.B(_.J9,{text:function(){return c.data().subtitle}}))),_.B("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.B(_.u7,{data:function(){return c.data().offerSummary}},{offerSummaryRenderer:function(d){return _.B(ZWc,{data:d.data,
className:c.flowClassName})}})))},"Cf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Cs,
flowClassName:_.Cs,flowStateEntityKey:_.Cs,shouldDisableHeaderTopMargin:_.Cs}});var M_r=_.dN(function(c){var f=c.data;var d=c.className;var q=c.flowStateEntityKey;var Z=c.selectionStepStyle;c=_.Ks(function(l){var m=f(),H=q==null?void 0:q();l.target&&(l.stopPropagation(),l=H||"",H=_.fp(_.xE().getState(),l),m=Object.assign({},H,{premiumPurchaseFlowState:{selectedOptionId:m.optionId,primaryButtonOverride:m.primaryButtonOverride}}),_.xE().dispatch(_.ER("flowStateEntity",l,m)));return!1});
var M=function(){return(q==null?void 0:q())||""},g=_.Ka(_.fp,M);
_.L9(function(){var l=f(),m=M(),H=g();l.defaultSelected&&m!==""&&l.primaryButtonOverride&&mDi(l.optionId||"",m,l.primaryButtonOverride,H)});
var O={};return _.B("ytm-option-item-renderer",{"on:click":c,class:_.FY(d,"ytm-option-item-renderer",(O["ytm-option-item-renderer--lp2-style"]=function(){return(Z==null?void 0:Z())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},O))},_.B("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.B("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var l=f(),m=M(),H=g();H=_.b(H,TiS);return(H?(H==null?void 0:H.selectedOptionId)||"":l.defaultSelected&&m!==""?(l==null?void 0:l.optionId)||"":"")===f().optionId},
name:("input"+_.Xl(_.aP)).toString()})),_.B("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.B(_.u7,{data:function(){return f().titleBadge}},{badgeViewModel:function(l){return _.B(_.rA,{data:l.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.B(_.T,{cond:function(){return f().eyebrowText},
then:function(){return _.B("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.B(_.J9,{text:function(){return f().eyebrowText}}))}}),_.B("div",{class:"ytm-option-item-renderer__option-item-title"},_.B(_.J9,{text:function(){return f().title}})),_.B("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.B(_.J9,{text:function(){return f().subtitle}})),_.B(_.T,{cond:function(){return f().featureListData},
then:function(){return _.B("div",{class:"ytm-option-item-renderer__feature-list-data"},_.B(_.bd,{each:function(){return f().featureListData||[]}},function(l){var m,H=(m=l.icon)==null?void 0:m.iconType;
a:switch(l.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":m="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":m="ytm-option-item-renderer__feature-list-icon-small";break a;default:m="ytm-option-item-renderer__feature-list-icon-default"}return _.B("div",{class:"ytm-option-item-renderer__feature-list"},_.B(_.Qy,{icon:H,className:m,active:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.B("div",{class:"ytm-option-item-renderer__feature-list-text"},_.B(_.J9,{text:l.text,
className:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.B("div",{class:"ytm-option-item-renderer__option-item-description"},_.B(_.J9,{text:function(){return f().description}}))))},"Df");var rNC=_.dN(function(c){var f=c.data;var d=c.flowClassName;var q=c.flowStateEntityKey;var Z=c.selectionStepStyle;return _.B("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.B("div",{class:"yt-option-section-renderer__option-section-header-section"},_.B("div",{class:"yt-option-section-renderer__option-section-header"},_.B(_.J9,{text:function(){return f().title}}),_.B(_.u7,{data:function(){return f().titleBadge}},{badgeViewModel:function(M){return _.B(_.rA,
{data:M.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.B(_.T,{cond:function(){return f().subtitle},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.B(_.J9,{text:function(){return f().subtitle}}))}}),_.B(_.T,{cond:function(){return f().featureListData},
then:function(M){return _.B("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.B(_.bd,{each:M},function(g){var O;return _.B("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.B(_.Qy,{icon:(O=g.icon)==null?void 0:O.iconType,active:function(){return g.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(g.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"}}}),_.B("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.B(_.J9,{text:g.text,
className:function(){return g.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.B(_.T,{cond:function(){return f().secondaryTitle},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.B(_.J9,{text:function(){return f().secondaryTitle}}))}}),_.B(_.bd,{each:function(){return f().sectionDisclaimers||[]}},function(M){return _.B("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.B(_.J9,{text:M}))})),_.B(_.u7,{data:function(){return f().optionItems}},{optionItemRenderer:function(M){return _.B("div",{class:"yt-option-section-renderer__option-item"},_.B(M_r,{data:M.data,
className:d,flowStateEntityKey:q,selectionStepStyle:Z}))}}),_.B(_.T,{cond:function(){return f().offerText},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.B(_.J9,{text:function(){return f().offerText}}))}}))},"Ef");
rNC.idomCompat=!0;var C6F=_.dN(function(c){var f=c.data;var d=c.flowClassName;var q=c.flowStateEntityKey;c=c.isDesktop;var Z=function(){var m;return(m=f().flowStateEntityKey)!=null?m:q==null?void 0:q()},M=function(){return(Z==null?void 0:Z())||""},g=function(){return f().style},O=_.Ka(_.fp,M);
_.L9(function(){var m=f(),H=M(),A=O();!_.b(A,TiS)&&m.noPreselect&&H!==""&&m.defaultButtonOverride&&mDi("default",H,m.defaultButtonOverride,A)});
var l={};return _.B("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.FY("ytm-option-selection-flow-step-renderer",(l["ytm-option-selection-flow-step-renderer--desktop"]=c,l["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return f().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},l))},_.B("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"},
_.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.B(_.J9,{text:function(){return f().header}})),_.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.B(_.J9,{text:function(){return f().subtitle}}))),_.B(_.u7,{data:function(){return f().optionItems||[]}},{optionItemRenderer:function(m){return _.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.B(M_r,{data:m.data,
className:d,flowStateEntityKey:Z,selectionStepStyle:g}))},
optionSectionRenderer:function(m){return _.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.B(rNC,{data:m.data,flowClassName:d,flowStateEntityKey:Z,selectionStepStyle:g}))}}))},"Ff");
C6F.idomCompat=!0;_.g_(C6F,"yt-option-selection-flow-step-renderer",{props:{data:_.oM,flowClassName:_.oM,flowStateEntityKey:_.oM,isDesktop:_.oM}});var H9G,Ak3;_.qZ=_.dN(function(c){var f=_.ch(c,{type:1,disablePadding:!1,disablePrimaryButton:!1}),d=f.data,q=f.type;c=f.disablePadding;var Z=f.disablePrimaryButton,M=f.onClickPrimaryButton,g=function(){return d().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},O=function(){return{disabled:Z(),
state:Z()?"disabled":"active"}},l=function(){return d().leadingLabel||d().trailingLabel};
f={};return _.B("yt-panel-footer-view-model",{class:_.FY("yt-panel-footer-view-model-wiz",(f["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return d().shouldHideDivider},f["yt-panel-footer-view-model-wiz--disable-padding"]=c,f))},_.B(_.T,{cond:l,
then:function(){var m={},H={};return _.B("div",{class:_.FY("yt-panel-footer-view-model-wiz__text-row",(m["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var A=d();return!(!A.leadingLabel&&!A.trailingLabel||!A.primaryButton&&!A.secondaryButton)},m))},_.B(_.J9,{text:function(){return d().leadingLabel},
className:_.FY((H["yt-panel-footer-view-model-wiz--text-padding"]=l,H))}),_.B(_.J9,{text:function(){return d().trailingLabel}}))}}),_.B(_.T,{cond:g,
then:function(){var m={};return _.B("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.B("div",{class:_.FY("yt-panel-footer-view-model-wiz__primary-button",(m["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return d().secondaryButton},m))},_.B(_.u7,{data:function(){return d().primaryButton}},{buttonViewModel:function(H){return _.B(_.mN,{data:H.data,
buttonOverrides:O,onClick:M})}})),_.B(_.u7,{data:function(){return d().secondaryButton}},{buttonViewModel:_.mN}))}}),_.B(_.T,{cond:function(){return!g()},
then:function(){var m={},H={},A={};return _.B("div",{class:_.FY("yt-panel-footer-view-model-wiz__button-row",(m["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===q()},m))},_.B("div",{class:_.FY("yt-panel-footer-view-model-wiz__button-row--left-button",(H["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===q()},H["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!d().secondaryButton||0===q()},H["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===q()},H))},_.B(_.u7,{data:function(){return d().secondaryButton}},{buttonViewModel:_.mN})),_.B("div",{class:_.FY("yt-panel-footer-view-model-wiz__primary-button",(A["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===q()||1===q()},A["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===q()},A))},_.B(_.u7,{data:function(){return d().primaryButton}},{buttonViewModel:function(Y){return _.B(_.mN,{data:Y.data,
buttonOverrides:O,onClick:M})}})))}}))},"Gf");
_.qZ.idomCompat=!0;_.gz3=_.dN(function(c){c=_.ch(c,{disablePadding:!1});var f=c.data,d=c.disablePadding;c=_.b9S(function(){return f().formId});
var q=c.onSubmit,Z=c.isValid,M=c.isSubmitting;return _.B("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.B(_.u7,{data:function(){return f().panelFooter}},{panelFooterViewModel:function(g){return _.B(_.qZ,{data:g.data,
onClickPrimaryButton:function(){q()},
disablePrimaryButton:function(){return!Z()||M()},
disablePadding:d})}}))},"Hf");_.g_(_.gz3,"yt-form-footer-view-model",{props:{data:_.oM,disablePadding:_.oM}});_.g_(_.dN(function(c){var f=_.F("enable_user_rating_web");return _.B("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.B(_.T,{cond:function(){var d;return(d=c.data())==null?void 0:d.image},
then:function(d){return _.B(_.jC,{data:d,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.B(_.J9,{text:function(){var d;
return(d=c.data())==null?void 0:d.title}})),_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.B(_.J9,{text:function(){var d;
return(d=c.data())==null?void 0:d.subtitle}})),_.B(_.T,{cond:function(){return!f},
then:function(){return _.B(_.u7,{data:function(){var d;return(d=c.data())==null?void 0:d.viewTipsButton}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"If"),"yt-contributor-zero-state-view-model",{props:{data:_.oM}});var kPJ=_.dN(function(c){var f=function(){var d;return(d=c.data())==null?void 0:d.image};
return _.B("yt-featured-content-item-view-model",{class:_.FY("ytFeaturedContentItemViewModelHost")},_.B("div",{class:_.FY(function(){return f()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.B("div",{class:function(){return f()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.B(_.T,{cond:f,
then:function(){return _.B("div",{class:"ytFeaturedContentItemViewModelImage"},_.B(_.u7,{data:function(){return c.data().image}},{themedImageViewModel:function(d){return _.B(RfG,{data:d.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.B(_.T,{cond:function(){var d;
return!f()&&((d=c.data())==null?void 0:d.iconName)},
then:function(){return _.B("div",{class:"ytFeaturedContentItemViewModelIcon"},_.B(_.Qy,{icon:function(){return c.data().iconName}}))}}),_.B("div",{class:"ytFeaturedContentItemViewModelContent"},_.B(_.T,{cond:function(){var d;
return(d=c.data())==null?void 0:d.title},
then:function(){return _.B("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.B(_.J9,{text:function(){return c.data().title}}))}}),_.B(_.T,{cond:function(){var d;
return(d=c.data())==null?void 0:d.body},
then:function(){return _.B("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.B(_.J9,{text:function(){return c.data().body}}))}})))))},"Jf");var OW3=_.dN(function(c){var f=function(){var Z;return Kf3((Z=c.data())==null?void 0:Z.titleFontSize)},d=function(){var Z;
return E5F((Z=c.data())==null?void 0:Z.descriptionFontSize)},q=function(){var Z;
return((Z=c.data())==null?void 0:Z.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.B("yt-landing-page-view-model",{class:_.FY("ytLandingPageViewModelHost",c.className)},_.B("div",{class:"ytLandingPageViewModelHeader"},_.B(_.T,{cond:function(){var Z;return(Z=c.data())==null?void 0:Z.bannerImage},
then:function(Z){return _.B("div",{class:"ytLandingPageViewModelHeaderImage"},_.B(_.u7,{data:function(){return Z()}},{imageBannerViewModel:function(M){return _.B(_.Dc,{data:M.data,
isPositionRelative:!0})}}))}}),_.B(_.T,{cond:function(){var Z;
return(Z=c.data())==null?void 0:Z.bannerAnimation},
then:function(Z){return _.B(_.gT,{data:function(){var M=Z();if(M==null?0:M.url){var g;M={path:(g=M==null?void 0:M.url)!=null?g:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(M==null?0:M.payload){var O;M={animationData:JSON.parse((O=M==null?void 0:M.payload)!=null?O:""),autoplay:!0,loop:!0,renderer:"svg"}}else M=void 0;return{animationConfig:M}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.B("div",{class:"ytLandingPageViewModelHeaderTitle"},_.B(_.T,{cond:function(){var Z;
return(Z=c.data())==null?void 0:Z.title},
then:function(Z){return _.B("div",{class:_.FY("ytLandingPageViewModelHeaderTitleContent",f)},_.B(_.J9,{text:function(){return Z()}}))}}),_.B(_.T,{cond:function(){var Z;
return(Z=c.data())==null?void 0:Z.description},
then:function(Z){var M={};return _.B(_.J9,{className:_.FY("ytLandingPageViewModelHeaderTitleDescription",d,(M.ytLandingPageViewModelHeaderTitleDescriptionMargin=q,M)),text:function(){return Z()}})}}))),_.B(_.T,{cond:function(){var Z,M;
return(Z=c.data())==null?void 0:(M=Z.featuredContentList)==null?void 0:M.length},
then:function(){return _.B("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.B(_.u7,{data:function(){return c.data().featuredContentList}},{featuredContentItemViewModel:function(Z){return _.B(kPJ,{data:Z.data})}}))}}),_.B(_.T,{cond:function(){var Z,M;
return(Z=c.data())==null?void 0:(M=Z.expandableContentList)==null?void 0:M.length},
then:function(){return _.B("div",{class:"ytLandingPageViewModelFaqSection"},_.B(_.u7,{data:function(){return c.data().expandableContentList}},{faqEntryViewModel:function(Z){return _.B("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.B(_.kE3,{data:Z.data}))}}))}}),_.B("div",{class:"ytLandingPageViewModelFooter"},_.B(_.T,{cond:function(){var Z;
return(Z=c.data())==null?void 0:Z.legalCopy},
then:function(Z){return _.B("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.B(_.J9,{text:function(){return Z()}}))}}),_.B(_.T,{cond:function(){var Z;
return(Z=c.data())==null?void 0:Z.actions},
then:function(Z){return _.B("div",null,_.B(_.u7,{data:function(){return Z()}},{flexibleActionsViewModel:function(M){return _.B(_.XT,{data:M.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Kf");_.g_(_.dN(function(c){return _.B("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.B("div",{class:"ytLpSectionGroupViewModelContainer"},_.B(_.u7,{data:function(){return c.data().sections}},{landingPageViewModel:function(f){return _.B(OW3,{data:f.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Lf"),"yt-lp-section-group-view-model",{props:{data:_.oM}});var lZH=_.dN(function(c){var f=_.Ka(n5q,_.Ga(function(){var O;return(O=c.data())==null?void 0:O.noteFeedEntityKey},"")),d=_.Ka(vkr,_.Ga(function(){var O;
return(O=c.data())==null?void 0:O.userRatingEntityKey},"")),q=_.F("enable_user_rating_web"),Z=function(){var O,l,m;
return((O=f())==null?0:O.contributorNote)?(l=f())==null?void 0:l.contributorNote:(m=c.data())==null?void 0:m.existingNote},M=function(){var O,l;
return!!d()&&!!$Dp((O=d())==null?void 0:O.helpfulnessValue,(l=c.data())==null?void 0:l.noteData)};
if(q){var g={};return _.B("yt-note-view-model",{class:_.FY("ytNoteViewModelHostUserRating",(g.ytNoteViewModelHostUserRatingPublishedNote=function(){var O,l;return(O=c.data())==null?void 0:(l=O.noteData)==null?void 0:l.isPublished},g))},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.B(_.T,{cond:function(){var O,l;
return(O=c.data())==null?void 0:(l=O.noteData)==null?void 0:l.isPinned},
then:function(){return _.B(_.Qy,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.B(_.T,{cond:function(){var O,l;return(O=c.data())==null?void 0:(l=O.noteData)==null?void 0:l.isPublished},
then:function(){return _.B(_.Qy,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.B(_.u7,{data:function(){var O;
return(O=c.data())==null?void 0:O.metadata}},{contentMetadataViewModel:_.gA}),_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var O,l;
return(l=_.b((O=c.data())==null?void 0:O.metadata,_.D2H))==null?void 0:l.delimiter}),_.B(_.J9,{text:function(){var O;
return(O=Z())==null?void 0:O.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.B(_.u7,{data:function(){var O,l,m,H,A,Y,t,E=!!((O=c.data())==null?0:(l=O.noteData)==null?0:l.isPinned);O=M();l=(m=c.data())==null?void 0:m.noteData;m=(H=f())==null?void 0:(A=H.contributorNote)==null?void 0:A.deleteAction;H=(Y=c.data())==null?void 0:Y.overflowButtonNoteWithRatingOnTapOverride;Y=(t=c.data())==null?void 0:t.overflowButton;return E?QwQ(l,m):O?{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:H}}:Y}},{buttonViewModel:function(O){return _.B(_.mN,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.B("div",{class:"ytNoteViewModelNoteContent"},_.B(_.J9,{text:function(){var O;
return(O=Z())==null?void 0:O.text}})),_.B(_.T,{cond:function(){var O,l;
return!((O=c.data())==null?0:(l=O.noteData)==null?0:l.isPinned)},
then:function(){return _.B(_.T,{cond:M,then:function(){return _.B("div",{class:"ytNoteViewModelUserRatingContainer"},_.B(_.J9,{text:function(){var O,l;return $Dp((O=d())==null?void 0:O.helpfulnessValue,(l=c.data())==null?void 0:l.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.B(_.u7,{data:function(){var O;return(O=c.data())==null?void 0:O.userRatingButton}},{buttonViewModel:function(O){return _.B(_.mN,{data:O.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.B(_.T,{cond:function(){var O,l;
return!((O=c.data())==null?0:(l=O.noteData)==null?0:l.ignoreDivider)},
then:function(){return _.B("div",{class:"ytNoteViewModelDivider"},_.B(_.u7,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(O){return _.B(_.n1H,{data:O.data})}}))}}))}return _.B("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.B(_.T,{cond:function(){var O,l;return(O=c.data())==null?void 0:(l=O.noteData)==null?void 0:l.isPinned},
then:function(){return _.B(_.Qy,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.B(_.T,{cond:function(){var O,l;return(O=c.data())==null?void 0:(l=O.noteData)==null?void 0:l.isPublished},
then:function(){return _.B(_.Qy,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.B(_.T,{cond:function(){return q},
then:function(){return _.B(_.u7,{data:function(){var O;return(O=c.data())==null?void 0:O.metadata}},{contentMetadataViewModel:function(O){return _.B(_.gA,{data:O.data})}})}}),_.B(_.J9,{text:function(){var O,l;
return(O=c.data())==null?void 0:(l=O.noteData)==null?void 0:l.headerText}}),_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.B(_.J9,{text:function(){var O,l;
return(O=c.data())==null?void 0:(l=O.noteData)==null?void 0:l.delimiter}})),_.B(_.J9,{text:function(){var O,l;
return(O=f())==null?void 0:(l=O.contributorNote)==null?void 0:l.publishedTimeText}})),_.B(_.u7,{data:function(){var O,l,m;
return QwQ((O=c.data())==null?void 0:O.noteData,(l=f())==null?void 0:(m=l.contributorNote)==null?void 0:m.deleteAction)}},{buttonViewModel:function(O){return _.B(_.mN,{data:O.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.B("div",{class:"ytNoteViewModelNoteContent"},_.B(_.J9,{text:function(){var O,l;
return(O=f())==null?void 0:(l=O.contributorNote)==null?void 0:l.text}})))},"Mf");
lZH.idomCompat=!0;_.g_(lZH,"yt-note-view-model",{props:{data:_.oM}});var Z6=_.dN(function(c){var f=_.ch(c,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),d=f.label,q=f.text,Z=f.placeholder,M=f.hint;c=f.rows;var g=f.overflowStyle,O=f.outline,l=f.disabled,m=f.disableNewLines,H=f.characterLimit,A=f.validation,Y=f.onInput,t=_.xz("textarea");f=_.C(_.ns(function(){return q()}));
var E=f.next().value,J=f.next().value;f=_.C(_.OT(!1,void 0,"fXvinf"));var X=f.next().value,u=f.next().value,W=function(){u(!0)},p=function(){u(!1)};
_.L9(function(){var eM=t.value,ue=g(),BH=E();ue==="expand-vertically"&&BH&&S6F(eM);t.value.addEventListener("focusin",W);t.value.addEventListener("focusout",p)});
_.Q4(function(){t.value.removeEventListener("focusin",W);t.value.removeEventListener("focusout",p)});
var N=function(){var eM;return(eM=A())==null?void 0:eM.validate(E())},I=function(){return H()&&!N()&&E().length>H().maxChars},R=function(){return!!N()||I()};
f=_.Ks(function(eM){if(!eM.currentTarget)return!1;eM=eM.currentTarget;J(eM.value);g()==="expand-vertically"&&S6F(eM);Y==null||Y(eM.value);return!0});
var qN=_.Ks(function(eM){m()&&eM.key==="Enter"&&eM.preventDefault();return!1}),kl=_.Ks(function(){t.value.focus()}),BN=function(){return Z()||d()},tP={},EC={},AP={};
return _.B("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.B("div",{class:_.FY("ytStandardsTextareaShapeTextareaContainer",(tP.ytStandardsTextareaShapeTextareaContainerOutline=O,tP.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=l,tP.ytStandardsTextareaShapeTextareaContainerOutlineError=R,tP)),"on:click":kl},_.B("label",{class:_.FY("ytStandardsTextareaShapeLabel",(EC.ytStandardsTextareaShapeLabelFocused=X,EC.ytStandardsTextareaShapeLabelDisabled=l,EC.ytStandardsTextareaShapeLabelError=
function(){return R()&&!l()},EC.ytStandardsTextareaShapeLabelHidden=function(){return!X()&&!E()&&!!BN()},EC))},d),_.B("div",{class:_.FY("ytStandardsTextareaShapePlaceholder",(AP.ytStandardsTextareaShapePlaceholderVisible=function(){return!X()&&!E()},AP)),
"aria-hidden":"true"},BN),_.B("textarea",{el:t,class:"ytStandardsTextareaShapeTextarea",rows:c,disabled:l,placeholder:BN,"on:input":f,"on:keydown":qN},E)),_.B(_.T,{cond:function(){return M()&&!R()},
then:function(){var eM={};return _.B("div",{class:_.FY("ytStandardsTextareaShapeHint",(eM.ytStandardsTextareaShapeHintDisabled=l,eM))},_.B("div",{class:"ytStandardsTextareaShapeHintHintMessage"},M))}}),_.B(_.T,{cond:N,
then:function(){return _.B(sbJ,{disabled:l},_.B("div",{class:"ytStandardsTextareaShapeErrorMessage"},N))}}),_.B(_.T,{cond:H,
then:function(eM){return _.B(_.T,{cond:I,then:function(){return _.B(sbJ,{disabled:l},_.B("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return eM().errorMessage}),_.B("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return E().length+"/"+eM().maxChars}))}})}}))},"Nf");
Z6.idomCompat={callbacks:{onInput:!0}};var sbJ=_.dN(function(c){var f={};return _.B("div",{class:_.FY("ytStandardsTextareaShapeError",(f.ytStandardsTextareaShapeErrorDisabled=c.disabled,f)),role:"alert"},_.B(_.Qy,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),c.children)},"Of");_.BKG=_.dN(function(c){var f=c.data;return _.B("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.B(Z6,{text:c.text,label:function(){var d;return(d=f().contentProperties)==null?void 0:d.labelText},
placeholder:function(){var d;return(d=f().contentProperties)==null?void 0:d.placeholderText},
hint:function(){var d;return(d=f().contentProperties)==null?void 0:d.hintText},
outline:function(){var d;return!((d=f().displayProperties)==null?0:d.hideBorder)},
overflowStyle:function(){var d;return((d=f().displayProperties)==null?0:d.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:c.disabled,disableNewLines:function(){var d;return(d=f().displayProperties)==null?void 0:d.disableNewLines},
onInput:c.onInput,characterLimit:c.characterLimit,validation:c.validation,rows:function(){var d;return(d=f().displayProperties)==null?void 0:d.rows}}))},"Pf");_.iWc=_.dN(function(c){var f=c.data;return _.B("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.B(Z6,{text:c.text,label:function(){var d;return(d=f().contentProperties)==null?void 0:d.labelText},
placeholder:function(){var d;return(d=f().contentProperties)==null?void 0:d.placeholderText},
hint:function(){var d;return(d=f().contentProperties)==null?void 0:d.hintText},
outline:function(){var d;return!((d=f().displayProperties)==null?0:d.hideBorder)},
overflowStyle:function(){var d;return((d=f().displayProperties)==null?0:d.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var d;return(d=f().displayProperties)==null?void 0:d.disableNewLines},
onInput:c.onInput,characterLimit:c.characterLimit,validation:c.validation,rows:function(){var d;return(d=f().displayProperties)==null?void 0:d.rows}}))},"Qf");var TKr=_.dN(function(c){var f=_.C(_.ns(function(){var BN,tP;return((BN=c.data().structuredContextNoteFormSchema)==null?0:(tP=BN.initialValues)==null?0:tP.noteBody)?c.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),d=f.next().value,q=f.next().value;
f=_.C(_.ns(function(){c.data();return!1}));
var Z=f.next().value,M=f.next().value;f=_.C(_.ns(function(){c.data();return!1}));
var g=f.next().value,O=f.next().value;f=_.C(_.ns(function(){var BN,tP;return((BN=c.data().structuredContextNoteFormSchema)==null?0:(tP=BN.initialValues)==null?0:tP.timestamp)?c.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var l=f.next().value,m=f.next().value;f=_.C(_.ns(function(){c.data();return!1}));
var H=f.next().value,A=f.next().value;f=_.C(_.ns(function(){var BN,tP;return((BN=c.data().structuredContextNoteFormSchema)==null?0:(tP=BN.initialValues)==null?0:tP.sources)?[c.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var Y=f.next().value,t=f.next().value;f=_.C(_.ns(function(){c.data();return!1}));
var E=f.next().value,J=f.next().value;f=_.C(_.ns(function(){return!1}));
var X=f.next().value,u=f.next().value;_.L9(function(){var BN;_.tZ3((BN=c.data().structuredContextNoteFormSchema)==null?void 0:BN.id,{isSubmitting:X,onSubmit:function(){u(!0);var tP=hrS(d(),l(),Y(),c.data()),EC=_.ql().resolve(_.ZM);tP&&EC&&EC.resolveCommand(tP,{commandController:{onSuccess:function(){u(!1)}}})},
isValid:function(){return Z()&&!g()&&!H()&&!E()}})});
var W=function(BN){if(BN!==void 0&&(q(BN),!Z()&&BN.length>0&&M(!0),Z())){var tP=JkG(c.data());if(tP){var EC=tP.minLength;tP=tP.maxLength;EC&&BN.length<EC?O(!0):tP&&BN.length>tP?O(!0):O(!1)}}},p=function(BN){if(BN!==void 0){m(BN);
if(BN.length>0){var tP,EC,AP,eM,ue=VZH((tP=c.data())==null?void 0:(EC=tP.structuredContextNoteFormSchema)==null?void 0:(AP=EC.fieldSchemas)==null?void 0:(eM=AP.timestamp)==null?void 0:eM.validationSchema);if(ue&&(tP=ue.regex)&&!(new RegExp(tP)).test(BN)){A(!0);return}}A(!1)}},N=function(BN){if(BN!==void 0){var tP=BN.split(/[ \n]/).map(function(EC){return EC.trim()});
t(tP);if(BN.length>0)for(BN=_.C(tP),tP=BN.next();!tP.done;tP=BN.next())if(!v5Q(tP.value)){J(!0);return}J(!1)}},I=function(){return{validate:function(BN){if(Z()){var tP=JkG(c.data());
if(tP){var EC=tP.minLength;tP=tP.translations;if(EC&&BN.length<EC)return tP==null?void 0:tP.minLengthErrorMessage}}}}},R=function(){var BN=JkG(c.data()),tP=BN==null?void 0:BN.maxLength,EC;
BN=BN==null?void 0:(EC=BN.translations)==null?void 0:EC.maxLengthErrorMessage;if(tP&&BN)return{maxChars:tP,errorMessage:BN}},qN=function(){return{validate:function(BN){if(BN){var tP,EC,AP,eM,ue=VZH((tP=c.data())==null?void 0:(EC=tP.structuredContextNoteFormSchema)==null?void 0:(AP=EC.fieldSchemas)==null?void 0:(eM=AP.timestamp)==null?void 0:eM.validationSchema);
if(ue&&(tP=ue.regex,ue=ue.translations,tP&&!(new RegExp(tP)).test(BN)))return ue==null?void 0:ue.regexErrorMessage}}}},kl=function(){return{validate:function(BN){if(BN){var tP,EC,AP,eM,ue=urq((tP=c.data())==null?void 0:(EC=tP.structuredContextNoteFormSchema)==null?void 0:(AP=EC.fieldSchemas)==null?void 0:(eM=AP.sources)==null?void 0:eM.validationSchema);
if(ue&&(tP=ue.translations,tP==null?0:tP.selectedErrorMessage))for(BN=BN.split(/[ \n]/).map(function(BH){return BH.trim()}),BN=_.C(BN),EC=BN.next();!EC.done;EC=BN.next())if(!v5Q(EC.value))return BN=void 0,(BN=tP)==null?void 0:BN.selectedErrorMessage}}}};
return _.B("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.u7,{data:function(){var BN;return(BN=c.data())==null?void 0:BN.noteContents}},{textFormFieldViewModel:function(BN){return _.B(_.iWc,{data:BN.data,
onInput:W,validation:I,characterLimit:R})},
textFieldViewModel:function(BN){return _.B(_.BKG,{data:BN.data,onInput:W,validation:I,characterLimit:R})}})),_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.u7,{data:function(){var BN;
return(BN=c.data())==null?void 0:BN.noteTimestamp}},{textFormFieldViewModel:function(BN){return _.B(_.iWc,{data:BN.data,
onInput:p,validation:qN})},
textFieldViewModel:function(BN){return _.B(_.BKG,{data:BN.data,onInput:p,validation:qN})}})),_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.u7,{data:function(){var BN;
return(BN=c.data())==null?void 0:BN.noteSources}},{textFormFieldViewModel:function(BN){return _.B(_.iWc,{data:BN.data,
onInput:N,validation:kl})},
textFieldViewModel:function(BN){return _.B(_.BKG,{data:BN.data,onInput:N,validation:kl})}})))},"Rf");
TKr.idomCompat=!0;_.g_(TKr,"yt-structured-context-note-view-model",{props:{data:_.oM}});var muG=_.dN(function(c){var f=_.C(_.ns(function(){var M;if((M=c.controlled)==null?0:M.call(c))return[];var g;return(((g=c.data())==null?void 0:g.chips)||[]).map(function(O){O=_.b(O,_.IE);if(O==null?0:O.selected)return wCH(O.chipValue)}).filter(function(O){return O!==void 0})})),d=f.next().value,q=f.next().value,Z=function(M){var g=wCH(M.chipValue);
if(g!==void 0){var O;if((O=c.controlled)==null?0:O.call(c))return void c.controlled().onTap(g);M=d().includes(g)?[].concat(_.LT(d().filter(function(m){return m!==g}))):[].concat(_.LT(d()),[g]);
q(M);var l;if((l=c.uncontrolled)==null?0:l.call(c))c.uncontrolled().onUpdate(M)}};
return _.B("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.B(_.bd,{each:function(){return c.data().chips||[]}},function(M){return _.B("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.B(_.Vo,{data:function(){return _.b(M,_.IE)},
selected:function(){var g;if(g=_.b(M,_.IE)){var O=wCH(g.chipValue);if(O!==void 0){var l;g=((l=c.controlled)==null?0:l.call(c))?c.controlled().selectedValues.includes(O):d().includes(O)}else g=void 0}else g=!1;return g},
callback:Z}))}))},"Sf");var HW3=_.dN(function(c){var f=c.data;var d=function(){var O;return((O=f())==null?void 0:O.flowStateKey)||""},q=_.Ka(_.fp,d),Z=function(){var O;
return(O=_.b(q(),zvS))==null?void 0:O.chips},M=function(O){if(O!==void 0){var l=Z()||[];
l=l.find(function(m){return m===O})?l.filter(function(m){return m!==O}):[].concat(_.LT(l),[O]);
l=Object.assign({},q(),{feedbackFormFlowState:Object.assign({},_.b(q(),zvS),{chips:l})});_.oa(_.ER("flowStateEntity",d(),l))}},g=function(){var O;
return _.b((O=f())==null?void 0:O.inputBox,J4J)};
c=_.Ko(function(O){var l=g();l=!(l==null?0:l.maxChars)||O.length<=l.maxChars;O=Object.assign({},q(),{feedbackFormFlowState:Object.assign({},_.b(q(),zvS),{detail:O}),abuseReportFlowState:Object.assign({},_.b(q(),$b),{navigationEnabled:l})});_.oa(_.ER("flowStateEntity",d(),O))},150);
return _.B("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.B("div",{class:"ytFeedbackFormViewModelChips"},_.B(_.u7,{data:function(){var O;return(O=f())==null?void 0:O.chipSelection}},{chipSelectionFormFieldViewModel:function(O){return _.B(muG,{data:O.data,
controlled:function(){return{selectedValues:Z()||[],onTap:M}}})}})),_.B("div",{class:"ytFeedbackFormViewModelInputBox"},_.B(Z6,{text:function(){var O;
return(O=_.b(q(),zvS))==null?void 0:O.detail},
placeholder:function(){var O;return((O=g())==null?void 0:O.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var O=g();if(O&&O.maxChars)return{maxChars:O.maxChars,errorMessage:O.maxCharsExceededErrorMessage||""}},
onInput:c})),_.B("div",{class:"ytFeedbackFormViewModelFooterText"},_.B(_.J9,{text:function(){return f().footerText}})))},"Tf");
HW3.idomCompat=!0;_.g_(HW3,"yt-feedback-form-view-model",{props:{data:_.oM}});var ANG=_.dN(function(c){var f=c.data;var d=function(){return f().flowStateKey||""},q=_.Ka(uCc,d),Z=function(){return _.b(q(),$b)},M=function(){if(_.F("enable_gff_accessibility_fix")){var g=!0,O;
if((O=Z())==null?0:O.navigationEnabled){var l;_.Ph((l=Z())==null?void 0:l.navigationCommand);g=!1}O=Object.assign({},q(),{abuseReportFlowState:Object.assign({},Z(),{isReportFormDirty:g})});_.oa(_.ER("flowStateEntity",d(),O))}else _.Ph((g=Z())==null?void 0:g.navigationCommand)};
return _.B("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.B("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.B(_.u7,{data:function(){return f().cancelButton}},{buttonViewModel:function(g){return _.B(_.mN,{data:g.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:M})}}),_.B(_.u7,{data:function(){var g;
if(f().navButton){var O=Object;var l=O.assign,m=_.b(f().navButton,_.zx),H=((g=Z())==null?0:g.navigationEnabled)||_.F("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",A,Y;g=_.b((A=Z())==null?void 0:A.navigationCommand,_.Wh);A=(Y=_.b(g,_.Ib))==null?void 0:Y.url;O={buttonViewModel:l.call(O,{},m,{state:H,iconName:A?"OPEN_IN_NEW":""})}}else O=void 0;return O}},{buttonViewModel:function(g){return _.B(_.mN,{data:g.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:M})}})))},"Uf");
ANG.idomCompat=!0;_.g_(ANG,"yt-report-form-bottom-bar-view-model",{props:{data:_.oM}});var YmG=_.dN(function(c){var f=c.nextStep;return _.B("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.B("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.B(_.Qy,{icon:function(){return f().iconName||""}})),_.B("div",null,_.B(_.J9,{text:function(){return f().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Vf"),Fjq=_.dN(function(c){var f=c.data;
var d,q=(d=_.ql().resolve(_.dx(_.of)))==null?void 0:d(),Z=_.Ka(_.fp,function(){return f().flowStateKey||""});
return _.B("yt-report-form-confirmation-page-view-model",{class:function(){var M;return((M=_.b(Z(),$b))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.B("div",{class:function(){var M;
return((M=_.b(Z(),$b))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.B(_.jC,{data:function(){return q&&f().imageDark?f().imageDark:f().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.B("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return f().confirmationHeader}),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.B(_.J9,{text:function(){return f().confirmationText}})),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.B(_.J9,{text:function(){return f().lawEnforcementText}})),
_.B("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return f().whatToExpectHeader}),_.B(_.T,{cond:function(){return f().nextSteps},
then:function(M){return _.B("div",null,_.B(_.bd,{each:M},function(g){return _.B(YmG,{nextStep:g})}))}}),_.B(_.T,{cond:function(){return f().legalReportText},
then:function(M){return _.B("div",null,_.B(_.J9,{text:M,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Wf");
Fjq.idomCompat=!0;_.g_(Fjq,"yt-report-form-confirmation-page-view-model",{props:{data:_.oM}});var t_i=_.dN(function(c){var f=c.data;var d=function(){var M;return((M=_.b(f().inputBox,J4J))==null?void 0:M.maxChars)||500},q=function(){return f().flowStateKey||""},Z=_.Ka(_.fp,q);
c=_.Ko(function(M){M=Object.assign({},Z(),{flowFormState:{isValid:M.length<=d()},abuseReportFlowState:{userComments:M,navigationEnabled:!(M.length>d()),isReportFormDirty:!0}});_.xE().dispatch(_.uh("flowStateEntity",q(),M))},150);
_.L9(function(){var M=Object.assign({},Z(),{flowFormState:{isValid:!0}});_.xE().dispatch(_.uh("flowStateEntity",q(),M))});
return _.B("yt-report-form-details-page-view-model",{class:function(){var M;return((M=_.b(Z(),$b))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.B("h1",{class:function(){var M;
return((M=_.b(Z(),$b))==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return f().detailsPageHeader}),_.B("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.B(_.J9,{text:function(){return f().bodyText}})),_.B("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.B(Z6,{label:function(){var M;
return((M=_.b(f().inputBox,J4J))==null?void 0:M.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var M;return{errorMessage:((M=_.b(f().inputBox,J4J))==null?void 0:M.maxCharsExceededErrorMessage)||"",maxChars:d()}},
onInput:c})))},"Xf");
t_i.idomCompat=!0;_.g_(t_i,"yt-report-form-details-page-view-model",{props:{data:_.oM}});var bWD=_.dN(function(c){var f=c.data;var d=c.selectedKey;var q=c.onSelected;var Z=c.groupName;var M=function(){return f().text},g=function(){return f().attributedText},O=function(){return f().subtext},l=function(){return f().attributedSubtext},m=_.B("div",{class:"ytRadioButtonItemViewModelLabel"},_.B(_.T,{cond:M,
then:function(){return _.B("div",null,M)}}),_.B(_.T,{cond:g,
then:function(){return _.B(_.J9,{text:g})}}),_.B(_.T,{cond:O,
then:function(){return _.B("div",{class:"ytRadioButtonItemViewModelSubText"},O)}}),_.B(_.T,{cond:l,
then:function(){return _.B("div",{class:"ytRadioButtonItemViewModelSubText"},_.B(_.J9,{text:l}))}})),H=function(){if(g()){var Y;
return(Y=g())==null?void 0:Y.content}return M()},A=function(){if(l()){var Y;
return(Y=l())==null?void 0:Y.content}return O()};
c={};return _.B("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.B(_.vn,{name:Z,checked:function(){return!(d==null||!d()||f().key!==(d==null?void 0:d()))},
onChange:function(Y){q==null||q(Y.target,f(),Z==null?void 0:Z())},
labelRenderable:function(){return m},
ariaLabel:function(){return A()?H()+", "+A():H()},
className:_.FY((c.ytRadioButtonItemViewModelSubTitle=function(){return!!f().subtext},c))}))},"Yf");_.KjQ=_.dN(function(c){var f=c.data;var d=c.onSelected;var q=c.selectedKey;var Z=c.groupName;var M=function(){return(Z==null?void 0:Z())||f().key};
return _.B("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.B("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.B(_.u7,{data:function(){return f().radioButtons}},{radioButtonItemViewModel:function(g){return _.B(bWD,{data:g.data,
onSelected:d,selectedKey:q,groupName:M})}})))},"Zf");var EzH=_.dN(function(c){var f=c.data;var d=_.ob("div"),q=function(){return f().flowStateKey||""},Z=_.Ka(_.fp,q),M=function(){return _.b(Z(),$b)};
_.$k(function(){var g,O;if(((g=M())==null?0:g.isReportFormDirty)&&((O=M())==null||!O.navigationEnabled)&&_.F("enable_gff_accessibility_fix")){var l;if(((l=M())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var m;(m=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||m.scrollIntoView()}else{var H;(H=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||H.scrollIntoView()}}},"VvP2Ne");
return _.B("yt-report-form-reason-select-page-view-model",{class:function(){var g;return((g=M())==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.B("h1",{class:function(){var g;
return((g=M())==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return f().pageHeader}),_.B("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.B(_.J9,{text:function(){return f().bodyText}})),_.B("div",{class:function(){var g;
return((g=M())==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.B(_.T,{cond:function(){var g,O;
return((g=M())==null?void 0:g.isReportFormDirty)&&!((O=M())==null?0:O.navigationEnabled)&&_.F("enable_gff_accessibility_fix")},
then:function(){return _.B("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:d},_.B(_.Qy,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.B("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return f().emptyReasonSelectErrorMessage}))}}),_.B(_.KjQ,{data:function(){return _.b(f().radioButtonGroup,_.y4S)},
onSelected:function(g,O){g=Object.assign({},Z(),{abuseReportFlowState:Object.assign({},M(),{reasonKey:O.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:O.command})});_.oa(_.ER("flowStateEntity",q(),g))},
selectedKey:function(){var g;return(g=M())==null?void 0:g.reasonKey},
groupName:"report-form-reason-select-page"})))},"$f");
EzH.idomCompat=!0;_.g_(EzH,"yt-report-form-reason-select-page-view-model",{props:{data:_.oM}});var nzC=_.dN(function(c){var f=c.data;var d,q=(d=_.ql().resolve(_.dx(_.of)))==null?void 0:d();return _.B("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.B("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.B(_.jC,{data:function(){return q&&f().imageDark?f().imageDark:f().image},
alt:""})),_.B("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.B("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return f().header}),_.B(_.J9,{text:function(){return f().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"ag");
nzC.idomCompat=!0;_.g_(nzC,"yt-report-form-sign-in-page-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=function(){return f().titleSuperscript},q=function(){return f().answersShelf},Z=function(){return f().videoShelf},M=function(){var p;
return(p=f().textInputPlaceholder)==null?void 0:p.content},g=function(){return f().showOpenTextInput&&!_.F("web_hide_explore_hub_until_user_navigates_back_to_home")},O=function(){var p;
return(p=f().textInputValue)==null?void 0:p.content},l=!1,m=_.ob("input");
c=_.C(_.OT(!1,void 0,"dqEOSc"));var H=c.next().value,A=c.next().value,Y=function(){return{state:H()?"active":"disabled"}};
_.QJ(function(){g()&&O()&&m.value&&(m.value.value=O())});
var t=function(p){p=p.target.value.trim();var N=f().onUpdateText;N&&_.Ph(N,{form:{userQuery:p}});f().userQuery=p},E=_.Ko(function(p){t(p)},150),J=_.Ks(function(p){var N;
A(!((N=p.target.value)==null||!N.trim())||l);E(p);return!1}),X=_.Ks(function(p){if(p.key==="Enter"&&H()){t(p);
p=void 0;var N=_.b(f().nextButtonViewModel,_.zx),I,R;if(N==null?0:(I=N.loggingDirectives)==null?0:(R=I.clientVeSpec)==null?0:R.uiType){var qN,kl;p=_.m_((qN=N.loggingDirectives)==null?void 0:(kl=qN.clientVeSpec)==null?void 0:kl.uiType)}(I=f().onNextStepCommand)&&_.Ph(I,{forceClickLogging:!0,clickedVisualElement:p})}return!1}),u=_.xz("yt-talk-to-recs-view-model"),W=function(){l=!0;
A(!0);if(_.F("web_hide_explore_hub_until_user_navigates_back_to_home")){var p,N,I;(I=(N=(p=u.value)==null?void 0:p.closest("ytd-flow-step-renderer"))==null?void 0:N.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||I.click()}};
c={};return _.B("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:u},_.B("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.B(_.u7,{data:function(){return f().topCornerButton}},{buttonViewModel:_.mN})),_.B("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.B("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.B(_.J9,{text:function(){return f().title}}),_.B(_.T,{cond:d,
then:function(){return _.B("sup",{class:"ytwTalkToRecsSuperScript"},_.B(_.J9,{text:d}))}})),_.B("div",{class:"ytwTalkToRecsSubtitle"},_.B(_.J9,{text:function(){return f().subtitle}})),_.B("div",{class:"ytwTalkToRecsResultsShelf"},_.B(_.T,{cond:q,
then:function(){return _.B(_.u7,{data:q},{chipsShelfViewModel:function(p){return _.B("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.B(_.VVy,{data:p.data,callback:W,enableSingleChipSelection:!0}))}})}}),_.B(_.T,{cond:Z,
then:function(){return _.B(_.u7,{data:Z},{horizontalShelfViewModel:function(p){return _.B("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.B(_.yo,{data:p.data}))}})}})),_.B("div",{class:_.FY("ytwTalkToRecsRefinementContainer",(c.ytwTalkToRecsBottomMargin=function(){return f().isMultiTurnFlow},c))},_.B(_.T,{cond:g,
then:function(){return _.B("div",{class:"ytwTalkToRecsUserInputBox"},_.B("input",{el:m,type:"text",class:"ytwTalkToRecsTextInput",placeholder:M,value:function(){return f().userQuery},
"on:input":J,"on:keyup":X,maxlength:200}))}}),_.B(_.u7,{data:function(){return f().isMultiTurnFlow?f().nextButtonViewModel:void 0}},{buttonViewModel:function(p){return _.B("div",{class:"ytwTalkToRecsFlowControlButtons"},_.B(_.mN,{data:p.data,
buttonOverrides:Y}))}}),_.B(_.u7,{data:function(){return f().isMultiTurnFlow?f().resetButtonViewModel:void 0}},{buttonViewModel:function(p){return _.B("div",{class:"ytwTalkToRecsFlowControlButtons"},_.B(_.mN,{data:p.data}))}}))))},"bg"),"yt-talk-to-recs-view-model",{props:{data:_.oM}});var ykJ={sources:[{clientResource:{imageName:"CHECK"}}]};_.$ui=_.dN(function(c){var f=_.xz("div");c=_.ch(c,{error:void 0});var d=c.data,q=c.error,Z=c.onSelected;c=_.C(_.ns(function(){return erp(d())}));
var M=c.next().value,g=c.next().value;RrH(d,function(Y){g(Y);var t,E,J=DDD((t=d().options)==null?void 0:(E=t[Y])==null?void 0:E.value,d().type);Z==null||Z(J);f.value.focus()});
c=_.Ks(function(){if(!d().disabled){var Y=d(),t=M(),E=f.value;Y.options&&(Y=Wfc(Y.options,t,Y.label),_.ql().resolve(_.Lm).openSheet({viewModel:Y},E))}});
var O=_.p7l(),l=function(){return!!q()},m=function(){return!!d().disabled},H={},A={};
return _.B("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.B("div",{class:_.FY("ytDropdownViewModelDropdownContainer",(H.ytDropdownViewModelDropdownContainerErrorBorder=l,H.ytDropdownViewModelDropdownContainerDisabled=m,H)),"on:click":c,el:f,role:"combobox",tabindex:0,"on:keydown":O,"aria-invalid":l,"aria-disabled":m,"aria-describedby":function(){return l()?"dropdown-view-model-error":void 0}},_.B("div",{class:"ytDropdownViewModelText"},Nic(d,l,M),I5S(d,M)),_.B("div",{class:_.FY("ytDropdownViewModelChevronDown",
(A.ytDropdownViewModelChevronDownDisabled=m,A))},_.B(_.Qy,{icon:"CHEVRON_DOWN"}))),PdD(d,q))},"cg");_.g_(_.dN(function(c){var f=c.data;var d=function(Z){var M=pCC(f());M.videoMetadata||(M.videoMetadata={});M.videoMetadata.sponsorshipsMetadata||(M.videoMetadata.sponsorshipsMetadata={});M.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Z)},q=function(Z){var M=pCC(f());
M.scheduledRedirectMetadata||(M.scheduledRedirectMetadata={});M.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Z)};
return _.B("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.B("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.B("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.B(_.J9,{text:function(){return f().title}}),_.B(_.Qy,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.B(_.J9,{text:function(){return f().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.B(_.u7,{data:function(){return f().tierChoices}},{dropdownViewModel:function(Z){return _.B("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.B(_.$ui,{data:Z.data,
onSelected:d}))}}),_.B(_.u7,{data:function(){return f().startTimeChoices}},{dropdownViewModel:function(Z){return _.B("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.B(_.$ui,{data:Z.data,
onSelected:q}))}}),_.B(_.J9,{text:function(){return f().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.B("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.B(_.u7,{data:function(){return f().scheduleButton}},{panelFooterViewModel:_.qZ})))},"dg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;c=c.className===void 0?"":c.className;var d=_.Ka(uCc,function(){return f().flowStateEntityKey||""}),q={};
q=_.FY("ytFlowBottomBarViewModelFlowBottomBarButtons",(q.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},q));
var Z={},M=_.FY("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",q,(Z.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Z.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Z));
Z={};var g=_.FY("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",q,(Z.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Z.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Z));
q={};q=_.FY("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
q));
c=_.FY("ytFlowBottomBarViewModelHost",c);return _.B("yt-flow-bottom-bar-view-model",{class:c},_.B(_.T,{cond:function(){var O;return(O=f())==null?void 0:O.textSection},
then:function(O){return _.B("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.B(_.J9,{text:O}))}}),_.B("div",{class:q},_.B(_.u7,{data:function(){return f().secondaryButton}},{buttonViewModel:function(O){return _.B(_.mN,{data:O.data,
className:g})}}),_.B(_.u7,{data:function(){return f().primaryButton}},{buttonViewModel:function(O){return _.B(_.mN,{data:O.data,
className:M,buttonOverrides:function(){var l;return{disabled:!((l=d())==null||!l.primaryButtonDisabled)}}})}})))},"eg"),"yt-flow-bottom-bar-view-model",{props:{data:_.oM,
className:_.Cs}});var Qbr="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),MZ=function(){var c=_.z.apply(this,arguments)||this;c.enableScrollingFix=!0;c.bottomBar=!1;c.hideBottomBar=!1;c.fitContent=!1;return c};
_.K(MZ,_.z);_.r=MZ.prototype;_.r.ready=function(){_.F("enable_pdp_icon_prefetch")&&_.Lup(_.ql().resolve(_.EZ),0,Qbr)};
_.r.focus=function(c){this.topBar?_.UN(this.topBar,c):this.paperDialog.focus(c)};
_.r.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18927_scroller&&(this.JSC$18927_scroller.dialogElement=this.paperDialog,this.JSC$18927_scroller.attached&&typeof this.JSC$18927_scroller.attached==="function"&&this.JSC$18927_scroller.attached())};
_.r.onDataChanged=function(){var c;this.fitContent=!((c=this.data)==null||!c.fitContent);var f;this.bottomBar=!((f=this.data)==null||!f.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.r.onProgressChanged=function(){var c,f,d=((f=(c=this.data)==null?void 0:c.progress)!=null?f:0)*100;this.progressElement.style.width=d+"%"};
_.r.isProgressHidden=function(){var c;return!((c=this.data)==null?0:c.progress)};
_.r.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(c){return _.F("enable_wiz_next_lp2_msof")&&
c&&!c.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.ci.Object.defineProperties(MZ.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var c;return _.F("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.b((c=this.data)==null?void 0:c.content,vKC)}}});
MZ.prototype.onProgressChanged=MZ.prototype.onProgressChanged;MZ.prototype.onDataChanged=MZ.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],MZ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MZ.prototype,"enableScrollingFix",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MZ.prototype,"bottomBar",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MZ.prototype,"hideBottomBar",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],MZ.prototype,"containsExploreHub",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MZ.prototype,"fitContent",void 0);_.y([_.AY("#progress"),_.D("design:type",HTMLElement)],MZ.prototype,"progressElement",void 0);
_.y([_.AY("#scroller"),_.D("design:type",Object)],MZ.prototype,"JSC$18927_scroller",void 0);_.y([_.AY("ytd-flow-top-bar-renderer"),_.D("design:type",HTMLElement)],MZ.prototype,"topBar",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MZ.prototype,"onDataChanged",null);_.y([_.m5("data.progress"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MZ.prototype,"onProgressChanged",null);
_.y([_.v({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],MZ);
_.h(MZ,"ytd-flow-step-renderer",function(){if(Cx3!==void 0)return Cx3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Cx3=c},{mode:1});var Sm3=function(c){this.resolveCommand=c;this.steps={}},LjF=function(c,f){f=_.C(f||[]);
for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=Object.values(d)[0],Z=void 0;if((Z=q)==null?0:Z.stepId)c.steps[q.stepId]=d}},aZC=function(c,f){var d,q,Z,M,g;
return _.k(function(O){if((d=c.state)==null||!d.currentStepId)return O.return(void 0);q=z23(c);if(!q)return O.return(JNC(c));if(Z=_.b(q,_.uJJ)){var l;((l=Z.screenLoggingData)==null?0:l.screenVeType)&&_.s8(_.bP(),Z.screenLoggingData.screenVeType);((M=Z)==null?0:M.onStepStartCommand)&&c.resolveCommand((g=Z)==null?void 0:g.onStepStartCommand,{})}if(Z&&f){l=Z;var m,H,A,Y;((m=f.flowLoggingData)==null?0:m.eventNamespace)&&((H=l.flowEventData)==null?0:H.eventType)&&((A=l.flowEventData)==null?0:A.eventMetadata)&&
((Y=f.flowLoggingData)==null?0:Y.flowType)&&(m=_.io(f.flowLoggingData.eventNamespace,l.flowEventData.eventType,l.flowEventData.eventMetadata),_.TX(_.mq(),m,f.flowLoggingData.flowType));f.steps&&!f.steps.includes(q)&&f.steps.push(q)}return O.return(q)})};
Sm3.prototype.back=function(){var c;(c=this.state)!=null&&c.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Sm3.prototype.handleUpdateFlowCommand=function(c){c.steps&&LjF(this,c.steps);c.entityUpdateCommand&&this.resolveCommand(c.entityUpdateCommand,{});c.flowContinuationCommand&&(c=c.flowContinuationCommand)&&(this.getFlowContinuationCommand=c);this.awaitFlowContinuation&&(this.awaitFlowContinuation(z23(this)),this.awaitFlowContinuation=void 0)};
Sm3.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var JNC=function(c){return _.k(function(f){return c.getFlowContinuationCommand?f.return(new Promise(function(d){c.awaitFlowContinuation=d;c.getFlowContinuationCommand&&c.resolveCommand(c.getFlowContinuationCommand,{flow_state:c.state})})):f.return(Promise.resolve(void 0))})},z23=function(c){var f;
if((f=c.state)!=null&&f.currentStepId)return c.steps[c.state.currentStepId]};var rf=function(){var c=_.z.apply(this,arguments)||this;c.flowState=new Sm3(function(f,d){d=d===void 0?{}:d;_.Hh.instance.resolveCommand(f,{form:{form:d,element:c.hostElement}})});
c.initialState=!0;c.isLoading=!1;c.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"};return c};
_.K(rf,_.z);_.r=rf.prototype;_.r.onPopupClosed=function(c){c&&this.hostElement!==c.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.r.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"}}}};
_.r.focus=function(c){var f=this;_.Nh(function(){var d=_.r1(f.hostElement).querySelector("ytd-flow-step-renderer");(d==null?0:d.topBar)?d.focus(c):f.topBar&&_.UN(f.topBar,c)},1)};
_.r.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.r.computeTopBarHidden=function(c){var f;return!((f=_.b(c,_.uJJ))==null||!f.topBarOverride)};
_.r.dataChanged=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1){((f=c.data)==null?0:f.steps)&&LjF(c.flowState,c.data.steps);if((d=c.data)==null?0:d.flowContinuationCommand){var Z=c.flowState,M=c.data.flowContinuationCommand;M&&(Z.getFlowContinuationCommand=M)}return q.yield(aZC(c.flowState,c.data),2)}c.currentFlowStep=q.yieldResult;_.Fm(q)})};
_.r.flowChanged=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1){if(!c.flow)return d.return();c.flowState.state=c.flow;c.isLoading=!0;return d.yield(aZC(c.flowState,c.data),2)}f=d.yieldResult;if(!f||c.flow.isLoading)return d.return();c.currentFlowStep=f;c.initialState=!1;c.isLoading=!1;c.autofocusAndRefit();_.Fm(d)})};
_.r.autofocusAndRefit=function(){var c=this,f=_.ql().resolve(_.dx(_.lw)),d=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),q=document.querySelector("yt-report-form-confirmation-page-view-model"),Z=document.querySelector("yt-report-form-details-page-view-model"),M=document.querySelector("yt-report-form-reason-select-page-view-model"),g=document.querySelector("yt-contributor-zero-state-view-model"),
O=document.querySelector("yt-structured-context-note-view-model"),l=document.querySelector("yt-note-view-model");(!d&&f&&f.isKeyBoardInUse()||q||!d&&Z||!d&&M||g||O||l)&&_.xO(this.hostElement);_.ol(this,function(){_.CZ(c.hostElement,"yt-refit")})};
_.r.handleUpdateFlowCommand=function(c){this.data&&(c=_.b(c,XqS),c.targetId===this.data.targetId&&(c.flowContinuationCommand&&(this.data.flowContinuationCommand=c.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(c),this.autofocusAndRefit()))};
_.r.handleFlowNextStepCommand=function(c){this.data&&this.flow&&this.flow.key&&(c=_.b(c,aMF),c.targetId===this.data.targetId&&(c=c.stepId||"",this.ytdReduxBehavior.dispatch(_.uh("flowStateEntity",this.flow.key,{currentStepId:c,stepIdStack:(this.flow.stepIdStack||[]).concat(c)}))))};
_.r.handleFlowPrevStepCommand=function(c){if(this.data&&this.flow&&this.flow.key&&(c=_.b(c,VAc),c.targetId===this.data.targetId)){var f=[].concat(_.LT(this.flow.stepIdStack||[]));f.length>1?(f.pop(),this.ytdReduxBehavior.dispatch(_.uh("flowStateEntity",this.flow.key,{currentStepId:f[f.length-1],stepIdStack:f}))):c.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(c.onFirstStepCommand)}};
_.r.handleYpcCancelRecurrenceCommand=function(c){if(this.data&&this.flow&&this.flow.key&&(c=_.b(c,WuD),c.targetId===this.data.targetId&&c.endpointCommand)){var f=_.b(this.flow,DlF);f&&_.b(c.endpointCommand,_.vdv)&&(_.b(c.endpointCommand,_.vdv).feedbackData=f.surveyFeedback);this.ytComponentBehavior.resolveCommand(c.endpointCommand)}};
_.r.handlePartialUpdateFlowStateEntity=function(c){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.uh("flowStateEntity",this.flow.key,c,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
rf.prototype.flowChanged=rf.prototype.flowChanged;rf.prototype.dataChanged=rf.prototype.dataChanged;rf.prototype.onPopupClosed=rf.prototype.onPopupClosed;_.y([_.Q(_.wt),_.D("design:type",Object)],rf.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],rf.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],rf.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rf.prototype,"initialState",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rf.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Object)],rf.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],rf.prototype,"currentFlowStep",void 0);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],rf.prototype,"onPopupClosed",null);_.y([_.L({selectorArgs:["data.flowStateEntityKey"],selector:uCc}),_.D("design:type",Object)],rf.prototype,"flow",void 0);_.y([_.AY("ytd-flow-top-bar-renderer"),_.D("design:type",HTMLElement)],rf.prototype,"topBar",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],rf.prototype,"dataChanged",null);_.y([_.ba("flow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],rf.prototype,"flowChanged",null);_.y([_.v({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],rf);
_.V_S=_.OD()(rf,"ytd-flow-root-renderer",function(){if(rwG!==void 0)return rwG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return rwG=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var XwF;var Eb=null;_.g_(_.dN(function(c){return _.B("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.B("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.B(_.J9,{text:function(){return c.data().text}}),_.B("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"fg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.oM}});var uXC=_.dN(function(c){var f=c.playerControlsProps;var d=c.isShortsPage;return _.B("yt-bigboard",null,_.B(_.T,{cond:function(){return f().isDragging},
then:function(){return _.B("div",{class:"ytBigboardStoryboardHost"},_.B(_.s8J,{progressBarProps:f,isShortsPage:d}))}}))},"gg");
uXC.idomCompat=!0;_.CV={ACCOUNT_LABEL:nY("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:nY("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:nY("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:nY("AD_BADGE_HINT"),AD_BADGE_TEXT:nY("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:nY("ALL_CHANNELS_LABEL"),AMBIENT_MODE:nY("AMBIENT_MODE"),AMBIENT_MODE_OFF:nY("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:nY("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:nY("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:nY("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:nY("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:nY("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:nY("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:nY("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:nY("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:nY("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:nY("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:nY("AUTO_ZOOM","Auto zoom"),BACK:nY("BACK"),CANCEL:nY("CANCEL"),CHANNEL_SWITCHER_LABEL:nY("CHANNEL_SWITCHER_LABEL"),CLOSE:nY("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:nY("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:nY("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:nY("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:nY("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:nY("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:nY("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:nY("COMMENT_MODAL_CONTENT"),CONFIRM_OK:nY("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:nY("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:nY("COPIED_TO_CLIPBOARD"),COPY:nY("COPY"),COPY_DEBUG_INFO:nY("COPY_DEBUG_INFO"),COPY_EMBED_CODE:nY("COPY_EMBED_CODE"),
COPY_LINK_LABEL:nY("COPY_LINK_LABEL"),COPY_VIDEO_URL:nY("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:nY("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:nY("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:nY("DELETE_FROM_DOWNLOADS"),DIALOG:nY("DIALOG"),DONE:nY("DONE"),DOWNLOAD:nY("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:nY("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:nY("FLAG_CONFIRM"),FLAG_CONTENT:nY("FLAG_CONTENT"),FLAG_LABEL:nY("FLAG_LABEL"),FLAG_TITLE:nY("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:nY("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:nY("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:nY("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:nY("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:nY("HIDE_SEARCH_FILTERS_LABEL"),HOME:nY("HOME","Home"),INVALID_RESPONSE_RECEIVED:nY("INVALID_RESPONSE_RECEIVED"),LIBRARY:nY("LIBRARY","Library"),LISTENING:nY("LISTENING"),LOADING:nY("LOADING"),LONG_PRESS_MIC_TO_SPEAK:nY("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:nY("LOOP"),MENU_DESKTOP:nY("MENU_DESKTOP"),
MENU_EXIT:nY("MENU_EXIT"),MENU_FEEDBACK:nY("MENU_FEEDBACK"),MENU_HELP:nY("MENU_HELP"),MENU_IMPRESSUM:nY("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:nY("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:nY("MENU_SETTINGS"),MENU_SIGN_IN:nY("MENU_SIGN_IN"),MENU_TITLE:nY("MENU_TITLE"),MENU_YOUR_DATA:nY("MENU_YOUR_DATA"),MORE_INFO:nY("MORE_INFO"),MORE_OPTIONS:nY("MORE_OPTIONS"),MUTE_VOLUME:nY("MUTE_VOLUME"),NEW_PLAYLIST:nY("NEW_PLAYLIST"),NEXT_VIDEO:nY("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:nY("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:nY("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:nY("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:nY("NOT_FOUND_TITLE"),NO_DOWNLOADS:nY("NO_DOWNLOADS"),NO_MIC_INPUT:nY("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:nY("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:nY("OOPS_MESSAGE"),OPEN_APP:nY("OPEN_APP"),OPEN_YOUTUBE:nY("OPEN_YOUTUBE"),PAUSE:nY("PAUSE"),PLAY:nY("PLAY"),PLAYER_CAPTION:nY("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:nY("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:nY("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:nY("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:nY("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:nY("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:nY("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:nY("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:nY("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:nY("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:nY("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:nY("PLAYER_MINIMIZE"),PLAYER_NEXT:nY("PLAYER_NEXT"),PLAYER_PAUSE:nY("PLAYER_PAUSE"),PLAYER_PLAY:nY("PLAYER_PLAY"),
PLAYER_PREVIOUS:nY("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:nY("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:nY("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:nY("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:nY("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:nY("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:nY("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:nY("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:nY("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:nY("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:nY("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:nY("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:nY("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:nY("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:nY("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:nY("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:nY("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:nY("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:nY("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:nY("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:nY("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:nY("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:nY("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:nY("PLAY_ALL"),PLEASE_FIX_ERRORS:nY("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:nY("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:nY("PREVIOUS_VIDEO"),PRIVACY_POLICY:nY("PRIVACY_POLICY"),RELOAD:nY("RELOAD"),REQUIRED_LABEL:nY("REQUIRED_LABEL"),SAVE_PLAYLIST:nY("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:nY("SCRUB_SLIDE_USER_EDU"),SEARCH:nY("SEARCH","Search"),
SEARCH_APPEND_LABEL:nY("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:nY("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:nY("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:nY("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:nY("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:nY("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:nY("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:nY("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:nY("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:nY("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:nY("SEEK_SLIDER"),SETTINGS_LABEL:nY("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:nY("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:nY("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:nY("SHOW_LESS"),SHOW_MORE:nY("SHOW_MORE"),SHOW_PLAYER_CONTROLS:nY("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:nY("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:nY("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:nY("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:nY("SIGN_IN_ON_WEB"),STABLE_VOLUME:nY("STABLE_VOLUME"),STABLE_VOLUME_OFF:nY("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:nY("STABLE_VOLUME_ON"),STATS_FOR_NERDS:nY("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:nY("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:nY("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:nY("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:nY("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:nY("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:nY("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:nY("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:nY("TIMESTAMP_SECONDS"),TOGGLE_OFF:nY("TOGGLE_OFF"),TOGGLE_ON:nY("TOGGLE_ON"),TRENDING:nY("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:nY("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:nY("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:nY("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:nY("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:nY("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:nY("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:nY("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:nY("VIDEO_LINK_LABEL")};var vzC=_.dN(function(c){var f=c.playerApi;c=_.xz("button",function(q){_.c8(q,36843)});
var d=nY("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.B("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.B("button",{el:c,class:"ytPlayerControlsJumpForwardButtonButton",title:d,"aria-label":d,"on:click":_.Ks(function(){_.fY(36843);f&&f().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.B("span",null,_.B(_.Qy,{icon:"FAST_FORWARD"}))))},"hg");var h2c=_.dN(function(c){var f=c.appApi;c=_.xz("button",function(q){_.c8(q,62946)});
var d=nY("OPEN_IN_MINIPLAYER");return _.B("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.B("button",{el:c,class:"ytMiniplayerButtonButton",title:d,"aria-label":d,"on:click":_.Ks(function(){_.fY(62946);var q,Z;(Z=(q=f()).openInMiniplayer)==null||Z.call(q);return!1})},_.B(_.Qy,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ig");var wwc=_.dN(function(c){var f=c.playerApi;c=_.xz("button",function(M){_.c8(M,142812)});
var d=_.C(_.OT(!1,void 0,"I3VCyb")),q=d.next().value,Z=d.next().value;d=function(){return nY("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(q()?1:2)})};
return _.B("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.B("button",{el:c,class:"ytPlaybackSpeedButtonButton",title:d,"aria-label":d,"on:click":_.Ks(function(){_.fY(142812);if(f){var M=f(),g=q();M.setPlaybackRate(g?1:2);Z(!q())}return!1})},_.B("span",null,_.B(_.Qy,{icon:function(){return q()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"jg");var yNF=_.dN(function(c){var f=c.title;var d=c.ariaLabel;var q=c.icon;var Z=c.command;var M=c.veType;c=_.xz("button",function(g){M&&_.c8(g,M())});
return _.B("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.B("button",{el:c,class:"ytdThumbnailOverlayButtonButton",title:f,"aria-label":d,"on:click":_.Ks(function(){M&&_.fY(M());Z&&_.ql().resolve(_.ZM).resolveCommand(Z())})},_.B(_.Qy,{icon:q})))},"kg");var mG="";var WjD=_.dN(function(c){var f=c.playerControlsProps,d=c.onClickFn;c=_.TZ(function(){var M=f(),g=-1;M.captionsAvailable&&(g=M.captionsEnabled?1:0);return g},void 0,"WecR8e");
var q=_.TZ(function(){var M=f();return M.captionsAvailable?_.HO(M.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.HO("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),Z=_.TZ(function(){var M=f();
M=M.captionsAvailable?M.captionsEnabled:void 0;return M},void 0,"Q17ly");
return _.B("yt-closed-captions-toggle-button",null,_.B(_.MhG,{captionIconType:c,ariaLabel:q,ariaPressed:Z,onClick:function(M){var g=f();if(g.captionsAvailable){var O=g.playerApi;if(O){var l=g.playerApi;if(l){var m=mG;if(m){l=l.getOption("captions","track");var H;mG=(H=l?l.displayName:null)!=null?H:m}else _.Gk(l)?(m=_.z7M(l),mG=m.length?(H=hEc(m))?H.displayName:m[0].displayName:""):mG=""}wVD(O);_.F("mweb_disable_set_state_captions_killswitch")&&g.setState({captionsEnabled:!g.captionsEnabled})}}var A,
Y;(Y=(A=g.appApi).showCaptionsToggleToast)==null||Y.call(A,g);d==null||d(M)},
isOverlay:!0}))},"lg");var Dui=_.dN(function(c){var f=c.data;return _.B("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.B(_.w9,{data:function(){return{type:17,text:_.GLr(f().label)}}}))},"mg");var e2C=_.dN(function(c){var f=_.FY("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return c.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return c.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return c.size()==="small"?c.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
c.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.B("animated-seek-arrows",{class:_.FY("ytPlayerControlsAnimatedSeekArrowsHost")},_.B("span",{class:f}),_.B("span",{class:f}),_.B("span",{class:f}))},"ng");
e2C.idomCompat=!0;var NKC=_.dN(function(){var c=_.HO("PLAYER_SECONDS",{seconds_placeholder:"30"}),f=_.C(_.OT(!1,void 0,"Yj8msb")),d=f.next().value,q=f.next().value,Z=_.C(_.OT(!1,void 0,"r9Z50e"));f=Z.next().value;var M=Z.next().value;Z={};var g=_.FY("jumpForwardOverlayOverlay",(Z.jumpForwardOverlayOverlayHidden=f,Z));_.L9(function(){var O=null,l=null,m=function(){O!==null&&_.zd().cancelJob(O);l!==null&&_.zd().cancelJob(l);M(!0);q(!0);_.Br(_.zd(),function(){M(!1)});
O=_.Br(_.zd(),function(){M(!0);l=_.Br(_.zd(),function(){q(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",m);_.Q4(function(){window.removeEventListener("jump-forward-clicked",m)})});
return _.B("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.B(_.T,{cond:d,then:function(){return _.B("div",{class:g},_.B(e2C,{direction:1,size:"large"}),_.B("div",null,c))}}))},"og");var IZC=_.CV.MUTE_VOLUME,P6c=_.CV.UNMUTE_VOLUME,R2r=_.dN(function(c){var f=c.muteIconType;var d=c.onClick;var q=c.useOutlineIcon;var Z=c.useDelhiIcons;c=_.xz("button",function(O){_.c8(O,28662)});
var M=function(){var O=f(),l=q==null?void 0:q(),m=Z==null?void 0:Z(),H="",A="";switch(O){case -1:case 0:H=l?"VOLUME_OFF":m?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";A=P6c;break;case 1:H=l?"VOLUME_UP_OUTLINE":m?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";A=IZC;break;case 2:H=l?"VOLUME_DOWN_OUTLINE":m?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";A=IZC;break;default:_.WH(O)}return{iconName:H,ariaLabel:A}},g=function(){return M().ariaLabel};
return _.B("ytm-mute-button",{class:"ytmMuteButtonHost"},_.B("button",{el:c,class:"ytmMuteButtonButton",title:g,"aria-label":g,"on:click":_.Ks(function(O){_.fY(28662);d==null||d(O);return!1})},_.B("span",null,_.B(_.Qy,{icon:function(){return M().iconName}}))))},"pg");var Uui=_.dN(function(c){var f=c.volumeProps;var d=c.onClickFn;var q=c.useOutlineIcon;var Z=c.useDelhiIcons;return _.B("yt-mute-toggle-button",null,_.B(R2r,{muteIconType:function(){var M=f();return M.volumeMuted||M.volume===0?0:M.volume>50?1:2},
onClick:function(M){var g=f().playerApi;g&&(g.isMuted()?g.unMute():g.mute(!1));d==null||d(M)},
useOutlineIcon:function(){return!(q==null||!q())},
useDelhiIcons:function(){return!(Z==null||!Z())}}))},"qg");
Uui.idomCompat=!0;var pwG=_.dN(function(c){var f=c.data;var d=_.xz("ytm-paid-content-overlay-renderer");return _.B("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:d,"on:animationend":_.Ks(function(){d.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.B(_.Re,{command:function(){return f().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.B(_.T,{cond:function(){var q;return(q=f().icon)==null?void 0:q.iconType},
then:function(){return _.B("span",null,_.B(_.Qy,{icon:function(){var q;return(q=f().icon)==null?void 0:q.iconType}}))}}),_.B("div",{class:"ytmPaidContentOverlayText"},_.B(_.J9,{text:function(){return f().text}})),_.B(_.T,{cond:function(){return f().navigationEndpoint},
then:function(){return _.B(_.Qy,{icon:"CHEVRON_RIGHT"})}})))},"rg");
pwG.idomCompat=!0;var ODC=[].concat(_.LT([{register:function(c){var f=Fu3(c),d;(d=c().playerApi)==null||d.addEventListener("onVolumeChange",f);return function(){}}},
{register:function(c){var f=tAG(c);c=c().playerApi;c==null||c.addEventListener("captionschanged",f);c==null||c.addEventListener("captionssettingschanged",f);c==null||c.addEventListener("onCaptionsTrackListChanged",f);return function(){}}},
{register:function(c){if(!_.F("mweb_screenreader_accessible_player"))return function(){};
var f=bDG(c),d=document.querySelector("video");d==null||d.addEventListener("touchend",f);return function(){d==null||d.removeEventListener("touchend",f)}}},
{register:function(c){if(!_.F("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var f=bDG(c),d=document.querySelector("video");d==null||d.addEventListener("focus",f);return function(){d==null||d.removeEventListener("focus",f)}}}]),[{register:function(c){var f=mlQ(c),d;
(d=c().playerApi)==null||d.addEventListener("onStateChange",f);return function(){}}},
{register:function(c){var f=HDi(c),d;(d=c().playerApi)==null||d.addEventListener("onPlaybackRateChange",f);return function(){}}},
{register:function(c){var f=A4C(c),d;(d=c().playerApi)==null||d.addEventListener("onVideoDataChange",f);return function(){}}},
{register:function(c){var f=YzQ(c),d,q;(d=c())==null||(q=d.playerApi)==null||q.addEventListener("onVideoProgress",f);return function(){}}}]);var xuQ=_.dN(function(c){var f=c.data;var d=function(){return _.HO("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+f().playbackRate})};
return _.B(_.T,{cond:function(){return f().playbackRate&&f().playbackRate!==1},
then:function(){return _.B("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.B("div",{class:"ytPlaybackRateOverlayOverlay"},_.B(e2C,{direction:1,size:"small"}),_.B("div",{class:"ytPlaybackRateOverlayLabel"},d)))}})},"sg");var oz3=_.dN(function(c){var f=c.data;return _.B("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.B(_.T,{cond:function(){var d,q=(d=f())==null?void 0:d.playerResponse,Z;return q==null?void 0:(Z=q.paidContentOverlay)==null?void 0:Z.paidContentOverlayRenderer},
then:function(d){return _.B(pwG,{data:d})}}))},"ug"),GP3=_.dN(function(c){var f=c.props;
var d=c.data;var q=c.options;var Z=function(){var m,H,A,Y;return(m=d())==null?void 0:(H=m.playerResponse)==null?void 0:(A=H.playerConfig)==null?void 0:(Y=A.inlinePlaybackConfig)==null?void 0:Y.showAudioControls},M=function(){var m,H;
if(Z()&&((m=q())==null?void 0:(H=m.additionalButton)==null?void 0:H.button)!==void 0){var A,Y,t;m=(A=d())==null?void 0:(Y=A.playerApi)==null?void 0:(t=Y.getSize())==null?void 0:t.height;if(!(m===void 0||m<180)){var E,J;return(E=q())==null?void 0:(J=E.additionalButton)==null?void 0:J.button}}},g=function(){var m,H;
return(m=q())==null?void 0:(H=m.additionalButton)==null?void 0:H.thumbnailOverlayButtonRenderers},O=function(){var m,H;
return(m=q())==null?void 0:(H=m.additionalButton)==null?void 0:H.thumbnailOverlayButtonViewModels},l=function(){var m=[_.B(Uui,{volumeProps:f}),
_.B(WjD,{playerControlsProps:f})];M()===1&&m.push(_.B(vzC,{playerApi:function(){return f().playerApi}}));
M()===2&&m.push(_.B(h2c,{appApi:function(){return f().appApi}}));
M()===3&&m.push(_.B(wwc,{playerApi:function(){return f().playerApi}}));
var H=g();if(M()===4&&H){H=_.C(H);for(var A=H.next(),Y={};!A.done;Y={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$54:void 0,command$jscomp$584:void 0},A=H.next()){A=A.value;Y.tooltip$jscomp$2=A.tooltip;var t=void 0,E=void 0;Y.ariaLabel$jscomp$20=((t=A.accessibility)==null?void 0:(E=t.accessibilityData)==null?void 0:E.label)||Y.tooltip$jscomp$2;t=void 0;Y.icon$jscomp$54=(t=A.icon)==null?void 0:t.iconType;Y.command$jscomp$584=A.command;Y.tooltip$jscomp$2&&Y.ariaLabel$jscomp$20&&Y.icon$jscomp$54&&
m.push(_.B(yNF,{title:function(J){return function(){return J.tooltip$jscomp$2}}(Y),
ariaLabel:function(J){return function(){return J.ariaLabel$jscomp$20}}(Y),
icon:function(J){return function(){return J.icon$jscomp$54}}(Y),
command:function(J){return function(){return J.command$jscomp$584}}(Y)}))}}H=O();
if(M()===4&&H)for(H=_.C(H),A=H.next(),Y={};!A.done;Y={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$585:void 0},A=H.next())A=A.value,Y.tooltip$jscomp$3=A.title,Y.ariaLabel$jscomp$21=A.accessibilityText||Y.tooltip$jscomp$3,Y.icon$jscomp$55=A.iconName,Y.command$jscomp$585=_.D9(A.onTap),Y.tooltip$jscomp$3&&Y.ariaLabel$jscomp$21&&Y.icon$jscomp$55&&m.push(_.B(yNF,{title:function(J){return function(){return J.tooltip$jscomp$3}}(Y),
ariaLabel:function(J){return function(){return J.ariaLabel$jscomp$21}}(Y),
icon:function(J){return function(){return J.icon$jscomp$55}}(Y),
command:function(J){return function(){return J.command$jscomp$585}}(Y)}));
return m};
return _.B(_.T,{cond:Z,then:function(){return _.B("div",{class:"ytInlinePlayerControlsTopRightControls"},_.B(_.bd,{each:l},function(m){return _.B("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.B("div",{class:"ytInlinePlayerControlsButtonIcon"},m))}))}})},"vg"),ddc=_.dN(function(c){var f=c.props;
var d=c.data;var q=c.options;c={};c=_.FY("ytInlinePlayerControlsBottomRightControls",(c.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Z;return EKG(d(),q())&&((Z=q())==null?void 0:Z.insetProgressBar)&&(f().isHovering||f().isDragging)},c));
return _.B("div",{class:c},_.B(c8c,{data:d}),_.B(_.T,{cond:function(){var Z;return!((Z=q())==null?0:Z.hideTimeDisplay)},
then:function(){return _.B(fBF,{props:f,data:d})}}))},"wg"),c8c=_.dN(function(c){var f=c.data;
return _.B(_.u7,{data:function(){var d;return CFD((d=f())==null?void 0:d.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Dui})},"xg"),fBF=_.dN(function(c){var f=c.props;
var d=c.data;return _.B(_.T,{cond:function(){return f().isLive},
then:function(){return _.B(jl3,null)},
else:function(){return _.B(quq,{props:f,data:d})}})},"yg"),quq=_.dN(function(c){var f=c.props;
var d=c.data;var q=_.TZ(function(){var Z;return kfr((Z=d())==null?void 0:Z.thumbnailOverlays)},void 0,"kUmuA");
return _.B("div",{class:_.FY("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.CV.PLAYER_TIME_ELAPSED+" "+_.w4z(f().playedTime)}},_.B(_.w9,{data:function(){var Z=_.w4z(f().videoDuration-f().playedTime);
return Object.assign({},{type:17,text:Z},q())}}))},"zg"),jl3=_.dN(function(){var c=_.FY("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.B("div",{class:c},_.B(_.w9,{data:{type:18,text:_.CV.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ag"),Zh3=_.dN(function(c){var f=c.props;
var d=c.data;var q=c.options;return _.B(_.ATD,{progressBarProps:f,config:function(){var Z,M=_.b((Z=d())==null?void 0:Z.multiMarkersPlayerBar,_.gdj),g;Z=((g=q())==null?0:g.insetProgressBar)?2:1;var O;g=(O=q())==null?void 0:O.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Z,chapterData:M,isInlinePlayback:!0,doSeekOnClick:g,playheadDotBehavior:g?1:0}}})},"Bg");_.g_(_.dN(function(c){var f=c.data;var d=c.appApi;var q=c.options;var Z=Tx3(f,Kuq(d));c={};d={};return _.B("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.B("div",{class:_.FY("ytInlinePlayerControlsDarkenedOverlay",(c.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Z().isHovering},c))}),_.B(NKC,null),_.B(xuQ,{data:Z}),_.B(oz3,{data:f}),_.B(uXC,{playerControlsProps:Z,
isShortsPage:!1}),_.B("div",{class:_.FY((d.ytInlinePlayerControlsControlsHidden=function(){return Z().isDragging},d))},_.B(GP3,{props:Z,
data:f,options:q}),_.B(ddc,{props:Z,data:f,options:q})),_.B(_.T,{cond:function(){return EKG(f(),q())},
then:function(){return _.B(Zh3,{props:Z,data:f,options:q})}}))},"tg"),"yt-inline-player-controls",{props:{data:_.oM,
appApi:_.Cs,options:_.oM}});var gf=function(){var c=_.z.apply(this,arguments)||this;c.opts=null;c.playerControlsData=null;c.playerControlsAppApi={openInMiniplayer:function(){c.openInMiniplayer()}};
c.playerControlsOptions={};c.noAnimation=!1;c.playbackIntentTriggered=!1;c.positionData=null;c.hidden=!0;c.active=!1;c.playing=!1;c.videoPreviewDataIndex=0;c.JSC$18983_playerPromise=null;c.player=null;c.enableAudioControls=!1;c.hasBeenUnmuted=!1;c.captionsHaveBeenTurnedOff=!1;c.JSC$18983_playerEvents=new Map;c.videoPreviewFetchRequest=null;c.scheduledPreviewEndJobId=null;c.JSC$18983_preventProgressSaveTimer=null;c.watchEndpointStartTimeUpdaterInterval=null;c.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};c.windowOnBlurFn=function(){c.deactivate()};
return c};
_.K(gf,_.z);_.r=gf.prototype;
_.r.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"}}}};
_.r.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$18983_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$18983_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$18983_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$18983_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.ia(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.ia(this,this.onScroll))};
_.r.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.ia(this,this.onScroll))};
_.r.onPageTypeChange=function(){this.deactivate()};
_.r.onWindowResized=function(){this.deactivate()};
_.r.onCaptionsChanged=function(c){c=!!c.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!c);this.setCaptionSize()};
_.r.setCaptionSize=function(){var c;if(this.active&&!this.captionsHaveBeenTurnedOff&&((c=this.player)==null?0:c.getCaptionWindowContainerId())){var f;(f=this.player)==null||f.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.r.currentPageAllowed=function(){return!this.isWatchPage};
_.r.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var c=this.positionData,f=c.initialTopPosition,d=c.initialHorizontalPosition;_.la(this.hostElement,{"--ytd-video-preview-translate-left":c.finalHorizontalPosition-d+"px","--ytd-video-preview-translate-top":c.finalTopPosition-f+"px","--ytd-video-preview-original-top-position":f+"px","--ytd-video-preview-original-horizontal-position":d+"px",
"--ytd-video-preview-initial-scale":"scale("+c.initialScale+")","--ytd-video-preview-width":c.videoPreviewWidth+"px","--ytd-video-preview-height":c.videoPreviewHeight+"px"});return!0};
_.r.handleOpenVideoPreviewAction=function(c){var f=this,d;return _.k(function(q){if(!f.currentPageAllowed())return q.return(0);f.opts=c;return(d=f.alignVideoPreviewForAnimation(c.thumbnail))?q.return(f.activate()):q.return(0)})};
_.r.onMouseLeave=function(c){this.shouldDeactivateOnMouseLeave(c)&&this.deactivate()};
_.r.onScroll=function(){var c,f;((c=this.opts)==null?0:c.isAutoplay)&&((f=this.opts)==null?0:f.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.r.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.a7.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.r.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.r.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",gf.JSC$18982_DEFAULT_CLICK_LOCATION_BEHAVIOR,gf.JSC$18982_CLICK_LOCATION_ID_MAP)};
_.r.shouldDeactivateOnMouseLeave=function(c){c=c.relatedTarget;if(!c)return!0;var f;return(f=this.opts)!=null&&f.mediaRenderer?!_.C$(this.opts.mediaRenderer).contains(c):!0};
_.r.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.r.onPlaybackStart=function(){var c=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$18983_preventProgressSaveTimer=
_.Br(_.a7,function(){c.resetPreventProgressSaveTimer()},1E4);
var f;if((f=this.opts)==null?0:f.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Br(_.a7,function(){c.hasMultipleVideoPreviews()?c.startPlaybackForNextVideo():c.deactivate()},this.opts.videoPreviewDurationMs);
var d;this.player.setGlobalCrop(((d=this.opts)==null?0:d.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.r.getRoundedCornersSize=function(){var c;if((c=this.opts)==null?0:c.roundedCornersSize){var f;return(f=this.opts)==null?void 0:f.roundedCornersSize}var d;if((d=this.opts)==null?0:d.enableRounding){var q;if(((q=this.opts)==null?void 0:q.thumbnailSize)==="small")return 1;var Z;if(((Z=this.opts)==null?void 0:Z.thumbnailSize)==="medium")return 2;var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="large")return 3}return _.F("web_imp_inset_progress_bar")?3:0};
_.r.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.r.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.r.onMediaContainerClick=function(c){this.isShortcutClick(c)||(this.navigateToWatch(c),c.preventDefault(),c.stopPropagation())};
_.r.activate=function(){var c=this,f,d,q,Z,M,g,O,l,m;return _.k(function(H){switch(H.nextAddress){case 1:if(!c.currentPageAllowed())return H.return(0);d=(f=c.videoPreviewData)==null?void 0:f.inlinePlaybackEndpoint;q=_.xZ.instance;if(!d||!q)return H.return(0);c.playbackIntentTriggered=!0;((Z=c.opts)==null?0:Z.mediaRenderer)&&((M=c.opts)==null||!M.isAutoplay)&&MA3(c.opts.mediaRenderer,function(){c.deactivate()});
_.ol(c,function(){c.revealPreviewUi()});
g={};_.F("enable_unknown_lact_fix_on_html5")&&(_.ql().resolve(_.uS),g.lact=_.ZZ());c.videoPreviewFetchRequest=c4F(q,c.getInlinePlaybackRequestData(c.videoPreviewData),g);_.iY(H,2);return H.yield(c.videoPreviewFetchRequest,4);case 4:O=H.yieldResult;if(((l=O)==null?void 0:(m=l.playabilityStatus)==null?void 0:m.status)==="OK")return H.return(c.handlePlayerResponse(O));throw Error("Mj");case 2:_.Yw(H),c.deactivate();case 3:return H.return(1)}})};
_.r.getInlinePlaybackRequestData=function(c){var f,d=_.F("web_imp_player_mute_params")?((f=this.opts)==null?void 0:f.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:c.inlinePlaybackEndpoint,startPlaybackInMutedState:d}};
_.r.handlePlayerResponse=function(c){var f=this,d,q,Z,M,g,O,l,m,H,A;return _.k(function(Y){if(Y.nextAddress==1){d=f.getInlinePlaybackVideoId();if(!(((q=c)==null?0:(Z=q.videoDetails)==null?0:Z.videoId)&&f.currentPageAllowed()&&f.playbackIntentTriggered&&f.opts&&d))return f.deactivate(),Y.return(0);if(c.videoDetails.videoId!==d)return Y.return(0);f.enableAudioControls=!!((M=c.playerConfig)==null?0:(g=M.inlinePlaybackConfig)==null?0:g.showAudioControls);c.trackingParams=f.getInlinePlaybackTrackingParams();
if(!f.inlinePlayer)return Y.return(0);O={};if(m=_.b((l=f.videoPreviewData)==null?void 0:l.inlinePlaybackEndpoint,_.pe))O.watch_endpoint=m;if(f.videoPreviewData){var t,E=(t=_.b(f.videoPreviewData.inlinePlaybackEndpoint,_.pe))==null?void 0:t.startTimeSeconds;E!==void 0&&(c.playerConfig||(c.playerConfig={}),c.playerConfig.playbackStartConfig||(c.playerConfig.playbackStartConfig={}),c.playerConfig.playbackStartConfig.startPosition||(c.playerConfig.playbackStartConfig.startPosition={}),c.playerConfig.playbackStartConfig.startSeconds=
E,c.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(E*1E3))}f.inlinePlayer.loadVideoWithPlayerResponse(c,O);if(f.JSC$18983_playerPromise)return Y.jumpTo(2);f.JSC$18983_playerPromise=f.inlinePlayer.getPlayerPromise();return Y.yield(f.JSC$18983_playerPromise,3)}Y.nextAddress!=2&&(H=Y.yieldResult,H.setInlinePreview(!0),H.setSizeStyle(!1,!0),f.ytPlayerListenerBehavior.listenToPlayerEvents(H,f.JSC$18983_playerEvents),f.player=H,_.CZ(f.hostElement,"player-api-ready"));((A=f.opts)==
null?0:A.showPlayerControls)&&f.videoPreviewData&&f.player&&(f.playerControlsData={playerResponse:c,isInlinePlayback:!0,thumbnailOverlays:f.videoPreviewData.thumbnailOverlays,playerApi:f.player},f.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!f.unroundCornersForPlayback,additionalButton:f.getAdditionalButtonType(f.videoPreviewData.thumbnailOverlays)});return Y.return(2)})};
_.r.revealPreviewUi=function(){var c=this;this.playbackIntentTriggered&&_.SJN(this,function(){c.hasThumbnailPositionChangedSinceTriggered()||(c.updateActiveState(!0),c.noAnimation=!1)})};
_.r.hasThumbnailPositionChangedSinceTriggered=function(){var c=this.positionData,f=this.getThumbnailPositionData();return(c==null?void 0:c.initialTopPosition)!==(f==null?void 0:f.initialTopPosition)||(c==null?void 0:c.initialHorizontalPosition)!==(f==null?void 0:f.initialHorizontalPosition)};
_.r.getThumbnailPositionData=function(){var c,f;if((f=this.opts)==null||!f.thumbnail)return null;f=this.opts.thumbnail;var d=((c=this.opts)==null?0:c.cropPlayerToFillThumbnailHorizontally)?!1:!0;var q=f.getBoundingClientRect();c=q.width;f=q.height;var Z=q.top+window.scrollY;q=q.left+window.scrollX;var M=d?Math.ceil(c):c;d=d?Math.ceil(f):f;var g=c/M;c={initialScale:g,initialTopPosition:Z-12*g,finalTopPosition:Z-12-(d-f)/2,initialHorizontalPosition:q-(12+(M-c)/2),finalHorizontalPosition:q-12-(M-c)/
2,videoPreviewWidth:M,videoPreviewHeight:d};return c};
_.r.updateActiveState=function(c){this.active=c;this.ytdReduxBehavior.dispatch(_.CC({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:c}))};
_.r.stopPlayer=function(c){c=c.resetWatchEndpointStartTime===void 0?!1:c.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(c)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.a7.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.r.deactivate=function(c){c=c===void 0?{}:c;c=c.resetWatchEndpointStartTime===void 0?!1:c.resetWatchEndpointStartTime;Eb&&(Eb.disconnect(),Eb=null);this.stopPlayer({resetWatchEndpointStartTime:c});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.r.isValidThumbnailOverlayButton=function(c,f){c=c.thumbnailOverlayButtonRenderer;var d;return!!c&&!!c.tooltip&&!((d=c.icon)==null||!d.iconType)&&f.includes(c.icon.iconType)};
_.r.isValidThumbnailOverlayButtonViewModel=function(c,f){var d;c=_.b((d=c.thumbnailOverlayButtonViewModel)==null?void 0:d.overlayButton,_.zx);return!!c&&!!c.title&&!!c.iconName&&f.includes(c.iconName)};
_.r.getAdditionalButtonType=function(c){var f=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 d=["BOX_STACK_3"],q=(c||[]).filter(function(M){return f.isValidThumbnailOverlayButton(M,d)}).map(function(M){return M.thumbnailOverlayButtonRenderer});
if(q.length)return{button:4,thumbnailOverlayButtonRenderers:q};var Z=["BOX_STACK_3"];c=(c||[]).filter(function(M){return f.isValidThumbnailOverlayButtonViewModel(M,Z)}).map(function(M){return _.b(M.thumbnailOverlayButtonViewModel.overlayButton,_.zx)});
if(c.length)return{button:4,thumbnailOverlayButtonViewModels:c}};
_.r.allowCaptions=function(){var c;return!((c=this.opts)==null?0:c.forceCaptionsOff)};
_.r.allowUnmuting=function(){var c;return this.enableAudioControls&&!((c=this.opts)==null?0:c.forceMutedVolume)};
_.r.beginStartTimeUpdater=function(){var c=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.lF(function(){c.updateWatchEndpointStartTime()},1E3)};
_.r.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.r.resetPreventProgressSaveTimer=function(){this.JSC$18983_preventProgressSaveTimer!==null&&(_.a7.cancelJob(this.JSC$18983_preventProgressSaveTimer),this.JSC$18983_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.r.updateWatchEndpointStartTime=function(c){var f=this.videoPreviewData;if(this.player&&f!=null&&f.inlinePlaybackEndpoint&&!this.JSC$18983_preventProgressSaveTimer){c=c?0:Math.floor(this.player.getCurrentTime());var d=_.b(f.navigationEndpoint,_.pe);d&&(d.startTimeSeconds=c);if(f=_.b(f.inlinePlaybackEndpoint,_.pe))f.startTimeSeconds=c}};
_.r.isShortcutClick=function(c){return!!c&&(c.ctrlKey||c.shiftKey||c.metaKey)};
_.r.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.r.openInMiniplayer=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1){d=(f=c.videoPreviewData)==null?void 0:f.navigationEndpoint;if(!d)return q.return();_.F7().lockupActivation=!0;return q.yield(_.T0u(_.ql().resolve(_.yN),d),2)}_.F7().userActivation=!0;_.Fm(q)})};
_.r.navigateToWatch=function(c){var f,d=(f=this.videoPreviewData)==null?void 0:f.navigationEndpoint;if(d){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(d,c,!0);else{var q;_.F("web_thumbnail_to_watch_transition")&&((q=this.opts)==null?0:q.thumbnail)&&_.szT(_.ql().resolve(_.F0),this.opts.thumbnail);_.CZ(this.hostElement,"yt-navigate",{endpoint:d})}this.deactivate()}};
_.r.getInlinePlaybackVideoId=function(){var c,f;return(f=_.b((c=this.videoPreviewData)==null?void 0:c.inlinePlaybackEndpoint,_.pe))==null?void 0:f.videoId};
_.r.getInlinePlaybackTrackingParams=function(){var c,f;return(c=this.videoPreviewData)==null?void 0:(f=c.inlinePlaybackEndpoint)==null?void 0:f.clickTrackingParams};
_.r.hasMultipleVideoPreviews=function(){var c;return!!(((c=this.opts)==null?0:c.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.r.startPlaybackForNextVideo=function(){var c;(c=this.opts)!=null&&c.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())};
_.ci.Object.defineProperties(gf.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.opts)==null?0:c.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.opts)==null||!c.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 c;if(Array.isArray((c=this.opts)==null?void 0:c.videoPreviewData)){var f;return(f=this.opts)==null?void 0:f.videoPreviewData[this.videoPreviewDataIndex]}var d;return(d=this.opts)==null?void 0:d.videoPreviewData}}});
gf.prototype.onIsAdsVideoChange=gf.prototype.onIsAdsVideoChange;gf.prototype.onInlinePreviewIsEnabledChange=gf.prototype.onInlinePreviewIsEnabledChange;gf.prototype.optsChanged=gf.prototype.optsChanged;gf.prototype.onMouseLeave=gf.prototype.onMouseLeave;gf.JSC$18982_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);gf.JSC$18982_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"}];
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],gf.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],gf.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],gf.prototype,"componentBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],gf.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Me.YtSparklesClickLocationBehavior),_.D("design:type",Object)],gf.prototype,"ytSparklesClickLocationBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gf.prototype,"opts",void 0);_.y([_.L(),_.D("design:type",Object)],gf.prototype,"playerControlsData",void 0);
_.y([_.L(),_.D("design:type",Object)],gf.prototype,"playerControlsAppApi",void 0);_.y([_.L(),_.D("design:type",Object)],gf.prototype,"playerControlsOptions",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],gf.prototype,"noAnimation",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],gf.prototype,"hidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],gf.prototype,"active",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],gf.prototype,"playing",void 0);_.y([_.L({selector:_.Nlk}),_.D("design:type",Boolean)],gf.prototype,"inlinePreviewIsEnabled",void 0);_.y([_.L(),_.D("design:type",String)],gf.prototype,"pagePath",void 0);_.y([_.L({selector:_.WZG}),_.D("design:type",Boolean)],gf.prototype,"isWatchPage",void 0);_.y([_.S("videoPreviewData"),_.D("design:type",Object),_.D("design:paramtypes",[])],gf.prototype,"thumbnailData",null);
_.y([_.S("opts","active"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],gf.prototype,"hidePlayerControls",null);_.y([_.S("opts"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],gf.prototype,"isAdsVideo",null);_.y([_.S("opts"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],gf.prototype,"roundedCornersSmall",null);
_.y([_.S("opts"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],gf.prototype,"roundedCornersMedium",null);_.y([_.S("opts"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],gf.prototype,"roundedCornersLarge",null);_.y([_.S("opts"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],gf.prototype,"unroundCornersForPlayback",null);
_.y([_.S("opts","videoPreviewDataIndex"),_.D("design:type",Object),_.D("design:paramtypes",[])],gf.prototype,"videoPreviewData",null);_.y([_.L(),_.D("design:type",Object)],gf.prototype,"videoPreviewDataIndex",void 0);_.y([_.AY("#inline-player"),_.D("design:type",Object)],gf.prototype,"inlinePlayer",void 0);_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[MouseEvent]),_.D("design:returntype")],gf.prototype,"onMouseLeave",null);
_.y([_.ba("opts"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gf.prototype,"optsChanged",null);_.y([_.ba("inlinePreviewIsEnabled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gf.prototype,"onInlinePreviewIsEnabledChange",null);_.y([_.m5("isAdsVideo"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],gf.prototype,"onIsAdsVideoChange",null);
_.y([_.v({is:"ytd-video-preview",disableElementRegistration:!0})],gf);
_.h(gf,"ytd-video-preview",function(){if(XwF!==void 0)return XwF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return XwF=c},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Y1F,FWD,tfQ;Y1F=function(c){return _.F("kevlar_watch_cinematics_invisible")||c.fullscreen&&_.F("kevlar_watch_cinematics_invisible_in_fullscreen")||c.theater&&!c.fullscreen&&_.F("kevlar_watch_cinematics_invisible_in_theater")};
FWD=function(){var c=document.createElement("canvas"),f=c.getContext("2d");if(!f)throw Error("mo");_.w4(c,{position:"absolute",width:"100%",height:"100%"});return{element:c,context:f}};
tfQ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.F("kevlar_watch_cinematics_css_blur")};
_.bHH=function(c,f,d){return Math.abs(c-f)<=(d||1E-6)};
_.KWF=function(c,f){return c==f?!0:c&&f?c.width==f.width&&c.height==f.height:!1};_.EPG=new _.fi("notificationActionRenderer");var nPF=function(c){var f=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.BS;this.element.addEventListener("load",function(){f.loaded=!0;f.resolver.resolve(f.element)});
this.element.addEventListener("error",function(){f.failed=!0});
this.element.src=c};var $iC=function(c,f){this.image=c;this.frame=f};
$iC.prototype.drawToCanvas=function(c,f){var d=this.frame.width/this.frame.columns,q=this.frame.height/this.frame.rows,Z=f.offsetX,M=f.offsetY;Y1F(f)?(c.fillStyle=f.fullscreen?"#000":"#0f0f0f",c.fillRect(Z,M,(f==null?void 0:f.width)||d,(f==null?void 0:f.height)||q)):c.drawImage(this.image,this.frame.column*d,this.frame.row*q,d,q,Z,M,(f==null?void 0:f.width)||d,(f==null?void 0:f.height)||q)};
var QBJ=function(c){this.color=c};
QBJ.prototype.drawToCanvas=function(c,f){var d=f.offsetX,q=f.offsetY,Z=f.width,M=f.height;c.fillStyle=Y1F(f)?f.fullscreen?"#000":"#0f0f0f":this.color;c.fillRect(d,q,Z,M)};var o3=function(c,f){_.B7.call(this);this.playerApi=f;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.AT(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();S13(this,c);LWS(this);this.update()};
_.K(o3,_.B7);o3.prototype.addEventListeners=function(){var c=this,f=function(){c.update()},d=function(Z){c.paused||(Z.type==="newdata"&&(c.mosaics.clear(),zlJ(c),Gb(c)),LWS(c),c.update())},q=function(){c.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",f);this.playerApi.addEventListener("onVideoDataChange",d);this.playerApi.addEventListener("onStateChange",q);this.addOnDisposeCallback(function(){c.playerApi.removeEventListener("onVideoProgress",f);c.playerApi.removeEventListener("onVideoDataChange",d);c.playerApi.removeEventListener("onStateChange",q)})};
var S13=function(c,f){c.cinematicContainerRenderer!==f&&(c.cinematicContainerRenderer=f,zlJ(c),Gb(c),c.colorStoreUpdateJobId=_.a7.addLowPriorityJob(function(){var d;if((d=c.cinematicContainerRenderer.colorStore)!=null&&d.sampledColors){d=Infinity;for(var q=_.C(c.cinematicContainerRenderer.colorStore.sampledColors),Z=q.next();!Z.done;Z=q.next()){Z=Z.value;var M=Number(Z.key);M!==0&&M<d&&(d=M);M=_.WS(Z.value);c.colorStore.set(Z.key,M)}c.colorStoreTimeInterval=d}}))},zlJ=function(c){c.colorStoreUpdateJobId&&
(_.a7.cancelJob(c.colorStoreUpdateJobId),c.colorStoreUpdateJobId=void 0);
c.colorStore.clear();c.currentStoryboardColor=void 0},J7Q=function(c,f){var d;
return(d=c.getStoryboardFrame(f))==null?void 0:d.url};
o3.prototype.onPlayerStateChange=function(){this.update()};
o3.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var LWS=function(c){var f=c.getStoryboardFrame(0);f&&(f=new _.AT(f.width/f.columns,f.height/f.rows),_.KWF(c.currentStoryboardSize,f)||(c.currentStoryboardSize=f,c.publish("STORYBOARD_SIZE_CHANGED",c.currentStoryboardSize)))},aqS=function(c,f){c.currentStoryboardIndex=f;
c.pendingStoryboardIndex=NaN;f=c.getStoryboardFrame(c.currentStoryboardIndex);c.currentStoryboard=new $iC(c.mosaics.get(f.url).element,f);c.publish("STORYBOARD_CHANGED",c.currentStoryboard);c.lastUpdateTime=(0,_.qR)()};
o3.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Gb=function(c){c.currentStoryboardIndex=NaN;c.pendingStoryboardIndex=NaN;c.currentStoryboard&&(c.currentStoryboard=void 0,c.publish("STORYBOARD_CHANGED",void 0));c.lastUpdateTime=NaN};
o3.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Gb(this);else{var c=this.playerApi.getPlayerState(1);if(c===-1||c===5||c===0)Gb(this);else if(isNaN(this.lastUpdateTime)||!((0,_.qR)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(c=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){c=""+Math.round(c*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var f=this.colorStore.get(c);f?f!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=f,this.currentStoryboard=new QBJ(f),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.qR)()):(_.u6(new _.KD("Could not find color for timestamp: "+c,this.cinematicContainerRenderer)),Gb(this))}else Gb(this);else VfH(this,c)}};
var VfH=function(c,f){var d=c.getStoryboardFrameIndex(f);if(d!==c.currentStoryboardIndex&&d!==c.pendingStoryboardIndex){f=J7Q(c,d);var q=c.mosaics.get(f);q?q.loaded&&aqS(c,d):(c.pendingStoryboardIndex=d,d=new nPF(f),c.mosaics.set(f,d),d.resolver.promise.then(function(){if(!c.isDisposed()&&!c.paused&&!isNaN(c.pendingStoryboardIndex)){var Z=J7Q(c,c.pendingStoryboardIndex);if(Z){var M;(M=c.mosaics.get(Z))!=null&&M.loaded&&aqS(c,c.pendingStoryboardIndex)}else Gb(c)}}))}};
o3.prototype.getStoryboardFrameIndex=function(c){var f=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(c,f)};
o3.prototype.getStoryboardFrame=function(c){var f=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,d,q;return((q=(d=this.playerApi).getStoryboardFrame)==null?void 0:q.call(d,c,f))||null};
o3.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var f4=function(c,f,d,q){q=q===void 0?!1:q;_.ES.call(this);this.cinematicContainerRenderer=f;this.playerApi=d;this.theater=this.fullscreen=!1;var Z;this.ambientLightThemeEnabled=!q&&!!(f==null?0:(Z=f.config)==null?0:Z.enableInLightTheme);this.ambientFullscreenEnabled=q&&_.F("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=q&&_.F("web_cinematic_theater_mode");this.container=document.createElement("div");c.appendChild(this.container);var M;if(_.F("web_cinematic_theater_mode")||_.F("web_cinematic_fullscreen")||
(f==null?0:(M=f.config)==null?0:M.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);Xm3(this);c=this.ambientV2Container||this.container;this.backCanvas=FWD();this.frontCanvas=FWD();c.appendChild(this.backCanvas.element);c.appendChild(this.frontCanvas.element);this.storyboardManager=new o3(f,this.playerApi);_.ln(this,this.storyboardManager);this.addEventListeners();uzC(this)?vPq(this,100+c$(this)*3*2,100+c$(this)*3*2):hlH(this);
wmJ(this,this.storyboardManager.currentStoryboard)};
_.K(f4,_.ES);var Xm3=function(c){c.ambientV2Container?y7H(c):(_.w4(c.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+WWJ(c)+", "+DiC(c)+")"}),tfQ()&&_.w4(c.container,"filter","blur("+_.rx("cinematic_watch_css_filter_blur_strength",40)+"px)"))},y7H=function(c){if(c.ambientV2Container){var f=c.playerApi.getVideoAspectRatio();
_.w4(c.container,{"aspect-ratio":""+f,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.w4(c.ambientV2Container,{"aspect-ratio":""+f,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+WWJ(c)+", "+DiC(c)+")"});tfQ()&&_.w4(c.ambientV2Container,"filter","blur("+_.rx("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
f4.prototype.setFullscreen=function(c,f){this.fullscreen=c;this.theater=!!f;Xm3(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),c=this.storyboardManager.currentStoryboard,elq(this),c&&Nc3(this,c)};
f4.prototype.addEventListeners=function(){var c=this,f=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Z){wmJ(c,Z)}),d=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){hlH(c)});
this.addOnDisposeCallback(function(){c.storyboardManager.unsubscribeByKey(f);c.storyboardManager.unsubscribeByKey(d)});
if(this.ambientV2Container){var q=function(){y7H(c)};
this.playerApi.addEventListener("onVideoDataChange",q);this.addOnDisposeCallback(function(){c.playerApi.removeEventListener("onVideoDataChange",q)})}};
var hlH=function(c){if(!uzC(c)){var f=c.storyboardManager.currentStoryboardSize;isNaN(f.width)||isNaN(f.height)||vPq(c,Number(f.width)+c$(c)*3*2,Number(f.height)+c$(c)*3*2)}},vPq=function(c,f,d){c.backCanvas.element.width=f;
c.backCanvas.element.height=d;c.frontCanvas.element.width=f;c.frontCanvas.element.height=d},uzC=function(c){return c.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},wmJ=function(c,f,d){d=d===void 0?!1:d;
var q=c.frontCanvas.element.getAnimations()[0];q?(q.pause(),c.backCanvas.context.globalAlpha=Number(getComputedStyle(c.frontCanvas.element).opacity),c.frontCanvas.element.style.opacity="0",q.finish()):c.backCanvas.context.globalAlpha=1;c.backCanvas.context.drawImage(c.frontCanvas.element,0,0,c.backCanvas.element.width,c.backCanvas.element.height);elq(c);f&&Nc3(c,f);f=f?c.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.rx("cinematic_watch_fade_out_duration",500);q=_.rx("cinematic_watch_transition_frame_rate")/
1E3;var Z={};q&&(Z={easing:"steps("+Math.round(f*q)+")"});(d===void 0?0:d)||c.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:f,iterations:1},Z));c.frontCanvas.element.style.opacity="1"},elq=function(c){var f=c.ambientLightThemeEnabled||c.ambientTheaterModeEnabled,d=c.ambientLightThemeEnabled||c.ambientFullscreenEnabled;
c.frontCanvas.context.fillStyle=c.theater&&f||c.fullscreen&&d?"#000":"#0f0f0f";tfQ()||(c.frontCanvas.context.filter="blur(0)");c.frontCanvas.context.fillRect(0,0,c.frontCanvas.element.width,c.frontCanvas.element.height)},Nc3=function(c,f){tfQ()||(c.frontCanvas.context.filter="blur("+c$(c)+"px)");
c.frontCanvas.context.globalAlpha=c.fullscreen&&c.ambientFullscreenEnabled||c.theater&&c.ambientTheaterModeEnabled?_.rx("cinematic_watch_effect_letterbox_opacity",.4):_.rx("cinematic_watch_effect_opacity",.4);var d={offsetX:c$(c)*3,offsetY:c$(c)*3,theater:c.theater,fullscreen:c.fullscreen};uzC(c)&&(d.width=100,d.height=100);f.drawToCanvas(c.frontCanvas.context,d);c.frontCanvas.context.globalAlpha=1},c$=function(c){var f;
return(f=c.cinematicContainerRenderer.config.blurStrength)!=null?f:5},WWJ=function(c){var f,d;
if((c.fullscreen||c.theater)&&((f=c.cinematicContainerRenderer.config)==null?0:(d=f.watchFullscreenConfig)==null?0:d.colorSourceWidthMultiplier))return c.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var q;return(q=c.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?q:c.cinematicContainerRenderer.config.colorSourceSizeMultiplier},DiC=function(c){var f,d;
if((c.fullscreen||c.theater)&&((f=c.cinematicContainerRenderer.config)==null?0:(d=f.watchFullscreenConfig)==null?0:d.colorSourceHeightMultiplier))return c.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var q;return(q=c.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?q:c.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
f4.prototype.disposeInternal=function(){_.ES.prototype.disposeInternal.call(this);this.container.remove()};
f4.prototype.clear=function(){wmJ(this,void 0,!0)};
f4.prototype.pause=function(){this.storyboardManager.pause()};var Iqq;Iqq=_.b4(function(){var c,f,d=!((f=(c=document.createElement("canvas")).getContext)==null||!f.call(c,"2d")),q;c=!((q=CSS)==null||!q.supports("filter: blur(0)"));q=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Z;return d&&c&&q&&!((Z=CSS)==null||!Z.supports("aspect-ratio: 1 / 1"))});
_.d5=function(c,f){_.B7.call(this);this.container=c;this.playerApi=f;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=PUH(this);this.update()};
_.K(_.d5,_.B7);_.RlH=function(c){var f=document.documentElement.hasAttribute("dark");c.isDarkModeEnabled=f;c.update()};
_.Uir=function(c,f){c.settingEnabled=f;c.update()};
_.d5.prototype.setFullscreen=function(c,f){this.fullscreen=c;this.theater=!!f;this.update()};
_.pmi=function(c,f){c.cinematicContainerRenderer=f;c.cinematicContainerRenderer&&(c.cinematicsVe=_.m_(c.isShorts()?227858:159022),_.B_(_.bP(),c.cinematicsVe),c.loggingClientData={watchCinematicContainerData:{presentationStyle:c.cinematicContainerRenderer.presentationStyle}});c.update()};
_.d5.prototype.isShorts=function(){var c,f;return((c=this.cinematicContainerRenderer)==null?void 0:(f=c.config)==null?void 0:f.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.d5.prototype.isAllowed=function(){var c;if(c=Iqq()){var f,d,q;c=((d=this.cinematicContainerRenderer)==null?void 0:d.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((q=this.cinematicContainerRenderer)==null||!q.colorStore)||((f=this.cinematicContainerRenderer)==null?void 0:f.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(c)if(_.F("web_cinematics_pausing")){var Z,M;c=this.isDarkModeEnabled||!!((Z=this.cinematicContainerRenderer)==
null?0:(M=Z.config)==null?0:M.enableInLightTheme)}else{var g,O;Z=!!((g=this.cinematicContainerRenderer)==null?0:(O=g.config)==null?0:O.enableInLightTheme)&&(_.hk("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);c=this.isDarkModeEnabled||Z}if(g=c){var l,m;g=!((m=(l=this.prefersReducedMotionQuery)==null?void 0:l.matches)!=null&&m)}return g};
_.xi3=function(c){(c=c.currentCinematicEffect)!=null&&(c=c.storyboardManager,c.paused=!1,LWS(c),c.update())};
_.d5.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var PUH=function(c){if(!_.F("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var f=window.matchMedia("(prefers-reduced-motion: reduce)"),d=function(){c.update()};
f.addListener(d);c.addOnDisposeCallback(function(){f.removeListener(d)});
return f}};
_.d5.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var c=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new f4(this.container,c,this.playerApi,this.isDarkModeEnabled),_.ln(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var f=this.currentCinematicEffect;f.cinematicContainerRenderer!==
c&&(f.cinematicContainerRenderer=c,S13(f.storyboardManager,c),Xm3(f));c=_.Ft();_.tQ(0,194,!0);c.save();c=_.X2();this.cinematicsVe&&c&&_.Ic(c,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(c=_.X2(),this.cinematicsVe&&c&&_.PO(c,[this.cinematicsVe],!1,this.loggingClientData),_.GV(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.ci.Object.defineProperties(_.d5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var PLJ;var RF3;_.JY({_template:function(){if(RF3!==void 0)return RF3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=
c.content,d=f.insertBefore;PLJ===void 0&&(PLJ=document.createElement("template"));var q=PLJ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return RF3=c},
is:"tp-yt-iron-pages",behaviors:[_.aJ,_.Ra],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var DrD;_.ek3=function(){if(_.F("kevlar_home_skeleton")&&!DrD){var c=document.querySelector("#home-page-skeleton");c&&(_.V_("hgcr"),_.Y6(c),DrD=!0)}};
DrD=!1;_.YJ=new _.fi("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var JSJ,VVi,XID,uA3,v1c,hQC,wIp,ySi,D7Q,eQq,NZH,RQF,pIS,x73,U7c,IxS,Ptc,cgi;_.zQc=function(c,f,d){f=f===void 0?5:f;if(f!==0){var q=typeof c==="function"?c():document.querySelector(c);q?(d==null?0:d.enableSmartFocus)?_.pqr(q):q.focus():setTimeout(function(){_.zQc(c,f-1,d)},500)}};
JSJ=function(c){return String.raw.apply(String,[{raw:c}].concat(_.LT(_.hv.apply(1,arguments).map(function(f){return f instanceof Array?f.join(""):f}))))};
VVi=function(c){var f=_.hv.apply(1,arguments),d=f.length;if(!Array.isArray(c)||!Array.isArray(c.raw)||c.length!==c.raw.length||!_.HrF&&c===c.raw||!(_.HrF&&!_.AP_||_.EW(c))||d+1!==c.length)throw new TypeError("$");return new axq(Object.freeze({strings:Object.freeze(c),args:Object.freeze(f)}))};
XID=function(c){return _.MXh(_.Zdz(c&16777215))<.5};
uA3=function(c,f,d){var q=d.minimumRowsOfVideosBetweenSections===void 0?1:d.minimumRowsOfVideosBetweenSections;return c<(d.minimumRowsOfVideosAtStart===void 0?2:d.minimumRowsOfVideosAtStart)||f!==null&&c-f<=q?!1:!0};
v1c=function(c,f){var d=0,q=0;c=_.C(c);for(var Z=c.next();!Z.done;Z=c.next()){var M=Z.value;if(M.richItemRenderer)M.richItemRenderer.rowIndex=q,M.richItemRenderer.colIndex=d++,d===f&&(d=0,q++);else if(M.richGroupRenderer&&M.richGroupRenderer.numColumns!==void 0)M.richGroupRenderer.rowIndex=q,M.richGroupRenderer.colIndex=d,d+=M.richGroupRenderer.numColumns,d===f&&(d=0,q++);else if(M.richSectionRenderer){var g=Z=void 0;if(M=_.b((Z=M)==null?void 0:(g=Z.richSectionRenderer)==null?void 0:g.content,_.EGK))M.rowIndex=
q++}}};
hQC=function(c,f){var d=f.contentElement;f=f.rendererToTagNameMap;if(d&&f&&f.size!==0){for(var q=new Map,Z=_.C(d.children),M=Z.next();!M.done;M=Z.next()){M=M.value;var g=M.tagName.toLowerCase(),O=q.get(g);O||(O=[],q.set(g,O));O.push(M)}if(q.size!==0)for(Z=Math.min(c.length,d.children.length),M=new Map,g=0;g<Z;g++){O=Object.keys(c[g])[0];O=f.get(O);if(!O)break;var l=M.get(O);l===void 0&&(l=0,M.set(O,l));var m=q.get(O);if(!m||l>=m.length)break;M.set(O,l+1);O=m[l];l=d.children[g];l!==O&&(_.xWN=!0,_.oyk.set(O,
!0),d.insertBefore(O,l),_.oyk.delete(O),_.xWN=!1)}}};
wIp=function(c,f,d,q,Z,M,g){q=q===void 0?{}:q;if(!c||!c.length)return[];c=c.slice();var O=[],l=[];Z=null;for(var m=0,H=function(u){l.sort(function(N,I){return I.skippedOnRow-N.skippedOnRow});
for(var W,p=(W=l.shift())==null?void 0:W.content;p;)!p.richSectionRenderer&&u||O.push(p),W=void 0,p=(W=l.shift())==null?void 0:W.content},A=void 0;c.length>0||l.length>0;){for(var Y=[],t=f;t>0;){var E=void 0,J=void 0,X=(J=l[0]&&l[0].skippedOnRow<m?(E=l.shift())==null?void 0:E.content:void 0)!=null?J:c.shift();
if(!X)break;if(X.richItemRenderer)E=X.richItemRenderer.targetId,J=void 0,E&&((J=g)==null?0:J.has(E))&&(E=g.get(E),!A||E&&E.timestamp>A.timestamp)&&(A=E),Y.push(X),t--;else if(X.richGroupRenderer&&X.richGroupRenderer.numColumns!==void 0)X.richGroupRenderer.numColumns<=t?(Y.push(X),t-=X.richGroupRenderer.numColumns):t===f&&X.richGroupRenderer.numColumns>f?(Y.push({richGroupRenderer:Object.assign({},X.richGroupRenderer,{numColumns:f})}),t=0):l.push({content:X,skippedOnRow:m});else if(X.richSectionRenderer)if(uA3(m,
Z,q)&&t===f){O.push(X);Z=m;m++;continue}else l.push({content:X,skippedOnRow:m});else if(X.continuationItemRenderer){H(!0);O.push(X);t=0;break}if(t===0)O.push.apply(O,_.LT(Y));else if(!d&&c.length===0){H(!1);O.push.apply(O,_.LT(Y));t=0;break}}m++;A&&(O.push(A.content),m++);A=void 0}v1c(O,f);M&&hQC(O,M);return O};
ySi=function(){return _.hv.apply(0,arguments).flat().filter(function(c){return c}).join(";")};
D7Q=function(){return VVi(WBq,ySi.apply(null,_.LT(_.hv.apply(0,arguments))))};
eQq=function(c){switch(c){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
NZH=function(c){return c.talkToRecs};
RQF=function(c,f){if(f){var d=_.Gh().getState().entities.flowStateEntity,q=IxS(c),Z=[f];q&&q!==f&&Z.push(q);var M=!0,g;if(d&&c.flowStateEntityKey&&((g=d[c.flowStateEntityKey])==null?void 0:g.primaryButtonDisabled)!==void 0){var O;M=!((O=d[c.flowStateEntityKey])==null||!O.primaryButtonDisabled)}Ptc(c,q!=null?q:f,Z,M)}};
pIS=function(c){return _.bj(_.Gh(),function(f){return f.entities.flowStateEntity},function(f,d){if(c.flowStateEntityKey){var q,Z=f==null?void 0:(q=f[c.flowStateEntityKey])==null?void 0:q.currentStepId,M;
d=d==null?void 0:(M=d[c.flowStateEntityKey])==null?void 0:M.currentStepId;M=_.Gh().getState().talkToRecs;if(Z&&Z!==d){var g;f=(f==null?void 0:(g=f[c.flowStateEntityKey])==null?void 0:g.stepIdStack)||Object.keys(M.stepStates);g=!U7c(M==null?void 0:M.stepStates[Z]);Ptc(c,Z,f,g)}}})};
x73=function(c){return _.bj(_.Gh(),NZH,function(f){var d=IxS(c);if(d){var q=Object.keys(f.stepStates);f=!U7c(f==null?void 0:f.stepStates[d]);Ptc(c,d,q,f)}})};
U7c=function(c){var f=Object.keys((c==null?void 0:c.selectionStates)||{}).reduce(function(M,g){return M||(c==null?void 0:c.selectionStates[g].isSelected)},!1),d,q,Z=!!(c==null?0:(d=c.userQuery)==null?0:(q=d.userQuery)==null?0:q.trim());
return f||Z};
IxS=function(c){if(c.flowStateEntityKey){var f,d,q=(f=_.Gh().getState().entities.flowStateEntity)==null?void 0:(d=f[c.flowStateEntityKey])==null?void 0:d.currentStepId;if(q)return q}};
Ptc=function(c,f,d,q){_.Gh().dispatch(_.ER("flowStateEntity",c.flowStateEntityKey,{currentStepId:f,stepIdStack:d,key:c.flowStateEntityKey,primaryButtonDisabled:q}))};
_.o1q=function(c,f){return _.Bb(c.entities,"youchatPendingResponseEntity",f)};
_.GES=function(c){return function(f){_.oa(_.ER("youchatPendingResponseEntity",c,{entityKey:c,isPendingResponse:f}))}};
cgi=function(c){c==null||c.addEventListener("DOMLoaded",function(){c.goToAndPlay(c.totalFrames-48,!0)})};
_.cC=function(c){this.__isSoyCss=!0;this.css=JSJ.apply(null,[c.strings].concat(_.LT(c.args)))};
_.cC.prototype.toString=function(){return this.css};
var axq=function(){_.cC.apply(this,arguments)};
_.K(axq,_.cC);var WBq=_.pp(["",""]);var fI3;var dr3;_.JY({_template:function(){if(dr3!==void 0)return dr3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
var f=c.content,d=f.insertBefore;fI3===void 0&&(fI3=document.createElement("template"));var q=fI3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return dr3=c},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var jIq=new _.fi("talkToRecsFlowRenderer");var q$S=new _.fi("flowRootRenderer");var ZwC=new _.fi("learningJourneyQuizViewModel");var MTC=new _.fi("chipsShelfViewModel");var rgF=new _.fi("responsiveContainerConfiguration");var CAC=new _.fi("horizontalShelfViewModel");_.gJp=new _.fi("engagementPanelSectionListRenderer");var kTC=new _.fi("conversationResourceViewModel");var OwJ=function(){this.horizontal=!1},lIC=function(c,f){c.horizontal=f};
OwJ.prototype.position=function(c,f,d,q){q=q===void 0?1:q;c=this.delta(c)*q+f;q=Math.max(f,d);return c>=Math.min(f,d)&&c<=q?c:d};
OwJ.prototype.axis=function(c){c=this.direction(c);return c==="up"||c==="down"?"Y":"X"};var rs=function(c,f,d){f=f===void 0?_.S3():f;this.target=c;this.manager=f;this.touchAction=d;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
rs.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(_.LT(this.events)));for(var c=_.C(this.events),f=c.next();!f.done;f=c.next())this.listen(f.value)}};
rs.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.LT(this.events)));for(var c=_.C(this.events),f=c.next();!f.done;f=c.next())this.unlisten(f.value)}};
rs.prototype.listen=function(c){this.eventMap[c]&&this.target.addEventListener(c,this.eventMap[c])};
rs.prototype.unlisten=function(c){this.eventMap[c]&&this.target.removeEventListener(c,this.eventMap[c])};var Cw=function(){OwJ.apply(this,arguments)};
_.K(Cw,OwJ);Cw.prototype.direction=function(c){var f=c.detail;c=f.deltaY;f=f.deltaX;return c&&!this.horizontal?c>0?"down":"up":f&&this.horizontal?f>0?"right":"left":"none"};
Cw.prototype.distance=function(c){return Math.abs(this.delta(c))};
Cw.prototype.delta=function(c){var f=this.direction(c),d=c.detail;c=d.deltaX;d=d.deltaY;return f==="up"||f==="down"?d||0:c||0};
Cw.prototype.velocity=function(c){var f=this.direction(c),d=c.detail;c=d.velocityX;d=d.velocityY;return Math.abs(f==="up"||f==="down"?d||0:c||0)};_.gs=function(c,f,d,q,Z,M){Z=Z===void 0?new Cw:Z;M=M===void 0?_.S3():M;rs.call(this,f,M,q);var g=this;this.element=c;this.target=f;this.config=d;this.input=Z;this.manager=M;this.events=["panstart","panmove","panend"];this.onPanStart=function(){g.config.draggingClass&&g.element.classList.add(g.config.draggingClass);g.config.startAction&&g.config.startAction()};
this.onPanMove=function(O){var l=sI3(g,O);if(l){g.move(O,l);l.fade&&g.fade(O,l);var m=g.input.direction(O);l.moveAction&&l.moveAction(Bs3(g,O,l),m)}};
this.onPanEnd=function(O){var l,m,H,A,Y,t;return _.k(function(E){if(E.nextAddress==1){g.animationRequestId&&cancelAnimationFrame(g.animationRequestId);g.animationRequestId=void 0;l=sI3(g,O);if(!l)return E.return();m=l;H=m.triggerAction;A=m.fade;Y=m.disableFinish;t=m.translateBack;var J=g.input.velocity(O),X=g.input.distance(O),u=g.threshold(l);return J>.3&&X>10||X>u?Y?E.jumpTo(6):A?E.yield(iwc(g,O),6):E.yield(Ts3(g,O,l),6):t?E.yield(g.translateBack(O),3):E.jumpTo(3)}E.nextAddress!=3&&H&&H();g.config.draggingClass&&
g.element.classList.remove(g.config.draggingClass);g.reset();_.Fm(E)})};
c=Object.keys(d.triggers);this.directions=new Set(c);lIC(this.input,this.directions.has("right")||this.directions.has("left"))};
_.K(_.gs,rs);_.gs.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var sI3=function(c,f){f=c.input.direction(f);return c.config.triggers[f]};
_.gs.prototype.move=function(c,f){var d=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var q=d.input.axis(c),Z=d.input.position(c,d.config.startPosition,f.endPosition,f.moveRatio||1);d.element.style.transform="translate"+q+"("+Z+"px)";d.animationRequestId=void 0}))};
var Bs3=function(c,f,d){var q=d.moveRatio||1;d=Math.abs(c.config.startPosition-d.endPosition);return Math.min(c.input.distance(f)*q,d)/d};
_.gs.prototype.fade=function(c,f){var d=f.endOpacity;c=Bs3(this,c,f);c>0&&(this.element.style.opacity=""+(((d||0)-1)*c+1))};
_.gs.prototype.threshold=function(c){return c.threshold?c.threshold:Math.abs(c.endPosition-this.config.startPosition)/3};
var Ts3=function(c,f,d){var q,Z,M,g,O,l,m;return _.k(function(H){if(H.nextAddress==1)return q=c.input.delta(f)+c.config.startPosition,Z=c.input.axis(f),M=d,g=M.endPosition,O=M.transitionEndPosition,m=(l=O)!=null?l:g,H.yield(c.element.animate([{transform:"translate"+Z+"("+q+"px)"},{transform:"translate"+Z+"("+m+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);c.element.style.transform="translate"+Z+"("+m+"px)";_.Fm(H)})};
_.gs.prototype.translateBack=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1){if(!f.element.style.transform)return Z.return();d=f.input.axis(c);q=f.config.startPosition;return Z.yield(f.element.animate([{transform:f.element.style.transform},{transform:"translate"+d+"("+q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}f.element.style.transform="translate"+d+"("+q+"px)";_.Fm(Z)})};
var iwc=function(c,f){var d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return d=c.input.delta(f)+c.config.startPosition,q=c.input.axis(f),Z=d+70,M=c.element.style.opacity===""?1:c.element.style.opacity,g.yield(c.element.animate([{transform:"translate"+q+"("+d+"px)",opacity:M},{transform:"translate"+q+"("+Z+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);c.element.style.transform="translate"+q+"("+Z+"px)";c.element.style.opacity="0";_.Fm(g)})};var kJ=function(){var c=_.Fj.apply(this,arguments)||this;c._noAccessors=!0;c.scrollRate=3;c.autoScrollAnimationStart=0;c.autoScrollPaused=!1;c.autoScrollRafId=0;return c};
_.K(kJ,_.Fj);_.r=kJ.prototype;_.r.created=function(){var c=this;this.boundAutoScrollHandler=function(f){c.autoScroll(f)}};
_.r.detached=function(){this.hostElement.removeEventListener("mouseout",_.ia(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.ia(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.ia(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.r.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.ia(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.ia(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.ia(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.ia(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.ia(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.ia(this,this.endAutoScroll)),this.endAutoScroll())};
_.r.autoScroll=function(c){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=c);var f;if(f=!this.autoScrollPaused&&this.scrollTarget)f=this.scrollTarget,f=f.scrollHeight-f.scrollTop!==f.clientHeight;f&&(f=1E3/this.scrollRate,c-=this.autoScrollAnimationStart,c>f&&(this.scrollTarget.scrollTop+=Math.ceil(c/f),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.r.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.r.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
kJ.prototype.autoScrollEnabledChanged=kJ.prototype.autoScrollEnabledChanged;_.y([_.L(),_.D("design:type",Object)],kJ.prototype,"scrollRate",void 0);_.y([_.L(),_.D("design:type",Object)],kJ.prototype,"scrollTarget",void 0);_.y([_.L(),_.D("design:type",Boolean)],kJ.prototype,"autoScrollEnabled",void 0);_.y([_.m5("autoScrollEnabled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kJ.prototype,"autoScrollEnabledChanged",null);_.y([_.tY()],kJ);_.mrq=[kJ.prototype];var HwC;var O$=function(){var c=_.z.apply(this,arguments)||this;c.buttonUpdate=_.F("web_button_rework");c.dismissButtonOverrides=_.F("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;c.forceDarkTheme=!1;c.forceLightTheme=!1;c.dynamicTextHeight=94;c.hasOverflowButton=!1;c.isInfeedModernization=!1;return c};
_.K(O$,_.z);_.r=O$.prototype;_.r.computeUrlImg=function(c){if(c)return _.OV(c.thumbnails)};
_.r.getLogoHeight=function(c){return this.logoWithPadding(c)?"31":"24"};
_.r.getLogoClassName=function(c){return this.logoWithPadding(c)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.r.logoWithPadding=function(c){var f,d;return(c=(f=c.thumbnails)==null?void 0:(d=f[0])==null?void 0:d.height)&&c%31===0?!0:!1};
_.r.sendImpressionEndpoints=function(c){c.impressionEndpoints&&_.OX(this.hostElement,c.impressionEndpoints)};
_.r.observeBasicPalette=function(){var c,f,d=(c=this.data)==null?void 0:(f=c.colorData)==null?void 0:f.basicColorPaletteData;d?_.vr(this.hostElement,d):_.vr(this.hostElement,{})};
_.r.observeDataChanged=function(){var c;this.dynamicTextHeight=((c=this.data)==null?0:c.supplementalText)?74:94;var f;this.hasSupplementalText=!((f=this.data)==null||!f.supplementalText);if(_.F("web_button_rework")){var d,q,Z,M;c=(d=this.data)==null?void 0:(q=d.actionButton)==null?void 0:(Z=q.buttonRenderer)==null?void 0:(M=Z.colorData)==null?void 0:M.basicColorPaletteData;var g,O,l;if(!((g=this.data)==null?0:(O=g.actionButton)==null?0:(l=O.buttonRenderer)==null?0:l.style)&&c){this.computeIsInfeedModernization(this.data)||
(c.borderColor=c.foregroundTitleColor);var m,H;this.set("data.actionButton.buttonRenderer",_.zV.unsafeClone((m=this.data)==null?void 0:(H=m.actionButton)==null?void 0:H.buttonRenderer))}}};
_.r.observeDataForCounterfactual=function(){if(_.F("kevlar_banner_cf_extra_logging")){var c;((c=this.data)==null?0:c.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.r.computeSupplementalStyle=function(){var c;if((c=this.data)!=null&&c.supplementalText){var f,d,q;if((f=this.data)==null?0:(d=f.colorData)==null?0:(q=d.basicColorPaletteData)==null?0:q.foregroundActivatedColor)return c=_.ya(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+c+"; --yt-endpoint-hover-color:"+c+"; --yt-endpoint-visited-color:"+c+"; --yt-formatted-string-bold-font-weight:700;"}};
_.r.computeForcedDarkTheme=function(){var c,f,d,q=(c=this.data)==null?void 0:(f=c.actionButton)==null?void 0:(d=f.buttonRenderer)==null?void 0:d.style,Z,M,g;c=XID(((Z=this.data)==null?void 0:(M=Z.colorData)==null?void 0:(g=M.basicColorPaletteData)==null?void 0:g.backgroundColor)||0);return q&&c};
_.r.computeForcedLightTheme=function(){var c,f,d,q=(c=this.data)==null?void 0:(f=c.actionButton)==null?void 0:(d=f.buttonRenderer)==null?void 0:d.style,Z,M,g;c=!XID(((Z=this.data)==null?void 0:(M=Z.colorData)==null?void 0:(g=M.basicColorPaletteData)==null?void 0:g.backgroundColor)||0);return q&&c};
_.r.computeHasOverflowButton=function(c){return!!c.overflowButton};
_.r.computeHasTitle=function(c){return!!c.title};
_.r.computeTitleMaxFontSize=function(c){return this.computeHasOverflowButton(c)?28:64};
_.r.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.r.computeIsInfeedModernization=function(){var c,f,d,q,Z=(c=this.data)==null?void 0:(f=c.actionButton)==null?void 0:(d=f.buttonRenderer)==null?void 0:(q=d.colorData)==null?void 0:q.basicColorPaletteData;return(Z==null?void 0:Z.backgroundColor)===452984831||(Z==null?void 0:Z.backgroundColor)===218103808};
O$.prototype.observeDataForCounterfactual=O$.prototype.observeDataForCounterfactual;O$.prototype.observeDataChanged=O$.prototype.observeDataChanged;O$.prototype.observeBasicPalette=O$.prototype.observeBasicPalette;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],O$.prototype,"ytdDismissibleItemBehavior",void 0);
_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],O$.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],O$.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],O$.prototype,"buttonUpdate",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],O$.prototype,"hasSupplementalText",void 0);_.y([_.L(),_.D("design:type",Object)],O$.prototype,"dismissButtonOverrides",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.D("design:type",Boolean)],O$.prototype,"hasTitle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.D("design:type",Object)],O$.prototype,"forceDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.D("design:type",Object)],O$.prototype,"forceLightTheme",void 0);_.y([_.L(),_.D("design:type",Object)],O$.prototype,"dynamicTextHeight",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.D("design:type",Object)],O$.prototype,"hasOverflowButton",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.D("design:type",Object)],O$.prototype,"isInfeedModernization",void 0);_.y([_.m5("data.colorData.basicColorPaletteData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],O$.prototype,"observeBasicPalette",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],O$.prototype,"observeDataChanged",null);_.y([_.m5("data.isVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],O$.prototype,"observeDataForCounterfactual",null);_.y([_.v({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],O$);
_.h(O$,"ytd-banner-promo-renderer",function(){if(HwC!==void 0)return HwC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return HwC=c},{mode:1});var AgG;var Y$G;var FVF;var lA=function(){return _.z.apply(this,arguments)||this};
_.K(lA,_.z);_.y([_.L(),_.D("design:type",Object)],lA.prototype,"data",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.y([_.v({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],lA);
_.h(lA,"ytd-hashtag-grid-tile-renderer",function(){if(FVF!==void 0)return FVF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return FVF=c},{mode:1});var s$=function(){return _.z.apply(this,arguments)||this};
_.K(s$,_.z);s$.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
s$.prototype.updateRichGridTrendingHashtagsVisibility=function(){var c,f;if(((c=this.data)==null||!c.isExpanded)&&(f=this.data)!=null&&f.tiles){c=this.data.tiles.length;f=c>this.richGridItemsPerRow?this.richGridItemsPerRow+1:c;var d=Math.ceil(c/f);this.fullyVisibleRows=c%f===1&&d===2?1:Math.min(d,2);this.isShowMoreVisible=this.fullyVisibleRows<d}};
s$.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
s$.prototype.updateRichGridTrendingHashtagsVisibility=s$.prototype.updateRichGridTrendingHashtagsVisibility;_.y([_.L(),_.D("design:type",Object)],s$.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Number)],s$.prototype,"fullyVisibleRows",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],s$.prototype,"isShowMoreVisible",void 0);_.y([_.L({selector:_.VR,value:0}),_.D("design:type",Number)],s$.prototype,"richGridItemsPerRow",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],s$.prototype,"ytdReduxBehavior",void 0);_.y([_.m5("data","richGridItemsPerRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],s$.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.y([_.v({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],s$);
_.h(s$,"ytd-hashtag-grid-shelf-renderer",function(){if(Y$G!==void 0)return Y$G;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Y$G=c},{mode:1});var tTr;var bwG;var B4=function(){var c=_.z.apply(this,arguments)||this;c.visibleVideos=[];c.hiddenVideos=[];c.modern=_.F("web_modern_buttons");c.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(B4,_.z);_.r=B4.prototype;_.r.attached=function(){var c=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",c);this.onDarkModeToggledAction(c)};
_.r.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"}}}};
_.r.dataChanged=function(){var c=this;this.requestElementsPerRow();var f,d;this.currentColorPalette=this.isDarkTheme?(f=this.data)==null?void 0:f.darkColorData:(d=this.data)==null?void 0:d.lightColorData;var q;if((q=this.currentColorPalette)==null?0:q.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.ol(this,function(){c.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.r.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.r.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.r.computeIsFirstFeedItem=function(c){return c};
_.r.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&this.set("isDarkTheme",c);this.data&&(this.currentColorPalette=c?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.r.getCurrentLogo=function(c,f){if(c)return f?c.darkLogoImage:c.lightLogoImage};
_.r.computeTitleStyle=function(c){var f;if((f=this.data)!=null&&f.title&&c&&c.textPrimary!==void 0)return"color:"+_.ya(c.textPrimary)+";"};
_.r.computeSubtitleStyle=function(c){var f;if((f=this.data)!=null&&f.subtitle&&c&&c.textSecondary!==void 0)return"color:"+_.ya(c.textSecondary)+";"};
_.r.computeDismissIconStyle=function(c){if(this.data&&this.data.dismissButton&&c&&c.textPrimary!==void 0)return"--yt-button-color:"+_.ya(c.textPrimary)+";"};
_.r.computeOverflowButtonStyle=function(c){if(this.data&&this.data.overflowButton&&c&&c.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.ya(c.textPrimary)+";--yt-spec-icon-active-other:"+_.ya(c.textPrimary)+";"};
_.r.computeBackgroundStyle=function(c){if(c&&this.data){var f="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var d=_.OV((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);d&&(f+='background-image:url("'+d+'");')}c.backgroundColor!==void 0&&(f+="background-color:"+_.WS(c.backgroundColor)+";");return f}};
_.r.computeButton=function(){var c,f=Object.assign({},_.b((c=this.data)==null?void 0:c.showMoreButton,_.WQ));if(this.modern&&f){f.style="STYLE_MONO_OUTLINE";var d;if(c=(d=this.currentColorPalette)==null?void 0:d.textPrimary)f.colorData={basicColorPaletteData:{foregroundTitleColor:c,borderColor:c}}}return f};
_.r.shouldShowBottomButton=function(c,f){return!(c==null?0:c.header)&&!(c==null||!c.primaryButton)&&f<3};
_.r.checkExpanded=function(c){this.isExpanded=c&&c.content?this.hiddenVideos.length===0:!0};
_.r.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.r.getLogoHeight=function(c){return this.logoWithPadding(c)?"26":"20"};
_.r.getLogoImageId=function(c){return this.logoWithPadding(c)?"logo-image-with-padding":"logo-image"};
_.r.computeHasSectionHeader=function(c){return!!c.header};
_.r.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var c;if((c=this.data.primaryButton)==null?0:c.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 f;((f=this.data.dismissButton)==null?0:f.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var d,q;((d=this.data)==null?0:(q=d.primaryButton)==null?0:q.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.r.setVisibleVideos=function(c){if(this.data&&this.data.content)if(this.data.content.length){var f=this.data.content.length;this.data.header?c?(this.visibleVideos=this.data.content.slice(0,Math.min(f,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(f,this.slimItemsPerRow),f)):(this.visibleVideos=this.data.content.slice(0,Math.min(f,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(f,this.elementsPerRow),f)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(f,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(f,this.elementsPerRow),f)):(this.visibleVideos=this.data.content.slice(0,Math.min(f,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(f,this.elementsPerRow-1),f))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.r.setHasMovieRenderer=function(){var c;if((c=this.data)!=null&&c.content){var f;this.hasMovieRenderer=!!_.b((f=this.data)==null?void 0:f.content[0],_.ZnH)}else this.hasMovieRenderer=!1};
_.r.requestElementsPerRow=function(){_.CZ(this.hostElement,"yt-request-elements-per-row")};
_.r.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var c=_.C(this.hiddenMediaRenderers),f=c.next();!f.done;f=c.next())f.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(c=_.r1(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&c.focus()}};
_.r.updateTitleSpec=function(){var c;(c=this.data)!=null&&c.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.r.logoWithPadding=function(c){var f,d,q;return(c=(f=this.getCurrentLogo(c,this.isDarkTheme))==null?void 0:(d=f.thumbnails)==null?void 0:(q=d[0])==null?void 0:q.height)&&c%31===0?!0:!1};
_.r.onUpdateElementsPerRowAction=function(c,f,d){c&&this.elementsPerRow!==c&&(this.elementsPerRow=c);d&&this.slimItemsPerRow!==d&&(this.slimItemsPerRow=d)};
B4.prototype.slimItemsPerRowChanged=B4.prototype.slimItemsPerRowChanged;B4.prototype.elementsPerRowChanged=B4.prototype.elementsPerRowChanged;B4.prototype.dataChanged=B4.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],B4.prototype,"ytdDismissibleItemBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],B4.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],B4.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],B4.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],B4.prototype,"currentColorPalette",void 0);_.y([_.L(),_.D("design:type",Array)],B4.prototype,"visibleVideos",void 0);_.y([_.L(),_.D("design:type",Array)],B4.prototype,"hiddenVideos",void 0);
_.y([_.L(),_.D("design:type",Object)],B4.prototype,"primaryButton",void 0);_.y([_.L({reflectToAttribute:!0,value:3}),_.D("design:type",Number)],B4.prototype,"elementsPerRow",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],B4.prototype,"isDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],B4.prototype,"isExpanded",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],B4.prototype,"largeTitle",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],B4.prototype,"hasMovieRenderer",void 0);_.y([_.L(),_.D("design:type",Number)],B4.prototype,"slimItemsPerRow",void 0);_.y([_.L(),_.D("design:type",Boolean)],B4.prototype,"showLightVideoMetadata",void 0);_.y([_.L(),_.D("design:type",Boolean)],B4.prototype,"showDarkVideoMetadata",void 0);_.y([_.L(),_.D("design:type",Number)],B4.prototype,"videoMetadataColor",void 0);
_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],B4.prototype,"miniMode",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.D("design:type",Boolean)],B4.prototype,"isFirstFeedItem",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.D("design:type",Boolean)],B4.prototype,"hasSectionHeader",void 0);
_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],B4.prototype,"roundedContainer",void 0);_.y([_.YE("#visible-video-container ytd-rich-grid-media"),_.D("design:type",Array)],B4.prototype,"visibleMediaRenderers",void 0);_.y([_.YE("#hidden-video-container ytd-rich-grid-media"),_.D("design:type",Array)],B4.prototype,"hiddenMediaRenderers",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],B4.prototype,"modern",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],B4.prototype,"dataChanged",null);_.y([_.m5("elementsPerRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],B4.prototype,"elementsPerRowChanged",null);_.y([_.m5("slimItemsPerRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],B4.prototype,"slimItemsPerRowChanged",null);
_.y([_.v({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],B4);
_.h(B4,"ytd-brand-video-shelf-renderer",function(){if(bwG!==void 0)return bwG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return bwG=c},{mode:1});var KVq;var iA=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(iA,_.z);_.r=iA.prototype;_.r.attached=function(){var c=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",c);this.onDarkModeToggledAction(c)};
_.r.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"}}}};
_.r.dataChanged=function(){this.requestElementsPerRow();var c,f;this.currentColorPalette=this.isDarkTheme?(c=this.data)==null?void 0:c.darkColorData:(f=this.data)==null?void 0:f.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.r.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.r.computeIsFirstFeedItem=function(c){return c};
_.r.onDarkModeToggledAction=function(c){c!==this.isDarkTheme&&this.set("isDarkTheme",c);this.data&&(this.currentColorPalette=c?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(c),this.updateButtonPalette())};
_.r.shouldShowThumbnailInMetadata=function(c){return c<=1};
_.r.computeVideoMetadataColor=function(){if(this.data){var c;if((c=this.currentColorPalette)==null?0:c.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.r.computeTitleStyle=function(c){var f;if((f=this.data)!=null&&f.title&&c&&c.textPrimary!==void 0)return"color:"+_.ya(c.textPrimary)+";"};
_.r.computeSubtitleStyle=function(c){var f;if((f=this.data)!=null&&f.subtitle&&c&&c.textSecondary!==void 0)return"color:"+_.ya(c.textSecondary)+";"};
_.r.computeOverflowButtonStyle=function(c){if(this.data&&this.data.overflowButton&&c.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.ya(c.textPrimary)+";--yt-spec-icon-active-other:"+_.ya(c.textPrimary)+";"};
_.r.computeBackgroundStyle=function(c){if(c&&this.data){var f="";c.backgroundColor!==void 0&&(f+="background-color:"+_.WS(c.backgroundColor)+";");return f}};
_.r.computeHasOverflowButton=function(c){return!!c.overflowButton};
_.r.updateButtonPalette=function(){if(this.data){var c;if((c=this.data.primaryButton)==null?0:c.buttonRenderer){var f;if((f=this.currentColorPalette)==null?0:f.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var d;((d=this.currentColorPalette)==null?0:d.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)})}}};
_.r.requestElementsPerRow=function(){_.CZ(this.hostElement,"yt-request-elements-per-row")};
_.r.updateTitleSpec=function(){var c;(c=this.data)!=null&&c.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")};
_.r.onUpdateElementsPerRowAction=function(c){c&&this.elementsPerRow!==c&&(this.elementsPerRow=c)};
iA.prototype.elementsPerRowChanged=iA.prototype.elementsPerRowChanged;iA.prototype.dataChanged=iA.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],iA.prototype,"ytdDismissibleItemBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],iA.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],iA.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],iA.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],iA.prototype,"currentColorPalette",void 0);_.y([_.L(),_.D("design:type",Object)],iA.prototype,"primaryButton",void 0);
_.y([_.L({reflectToAttribute:!0,value:3}),_.D("design:type",Number)],iA.prototype,"elementsPerRow",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],iA.prototype,"isDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],iA.prototype,"titleSize",void 0);_.y([_.L(),_.D("design:type",Number)],iA.prototype,"videoMetadataColor",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],iA.prototype,"miniMode",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.D("design:type",Boolean)],iA.prototype,"isFirstFeedItem",void 0);_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],iA.prototype,"roundedContainer",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.D("design:type",Boolean)],iA.prototype,"hasOverflowButton",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],iA.prototype,"dataChanged",null);_.y([_.m5("elementsPerRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],iA.prototype,"elementsPerRowChanged",null);_.y([_.v({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],iA);
_.h(iA,"ytd-brand-video-singleton-renderer",function(){if(KVq!==void 0)return KVq;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return KVq=c},{mode:_.lP("kevlar_poly_si_batch_j070")?1:2});var EJ3;var nJH=_.dN(function(c){var f=c.data;return _.B(_.jC,{data:function(){return f().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(f().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var d=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":d=88;break a;default:d=88}return d},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return f().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ej"),QIc=_.dN(function(c){var f=c.metadataRow;
var d=c.delimiter;return _.B(_.bd,{each:function(){return f().textParts||[]},
keyBy:"INDEX"},function(q,Z){return _.B(_.qD,null,_.B(_.J9,{text:q,noWrap:!0,userInput:!0}),_.B($r3,{delimiter:d,max:function(){return f().textParts.length},
index:Z}))})},"fj"),$r3=_.dN(function(c){var f=c.delimiter;
var d=c.max;var q=c.index;return _.B(_.T,{cond:function(){return(f==null?void 0:f())&&d()-1>q()},
then:function(){return _.B("span",null,f)}})},"gj"),S$i=_.dN(function(c){var f=c.data;
c={};return _.B("yt-profile-page-header-information-view-model",{class:_.FY("profile-page-header-information-view-model-wiz",(c["profile-page-header-information-view-model-wiz--mobile"]=!1,c))},_.B(_.T,{cond:function(){return f().onTap},
then:function(){return _.B(_.Re,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.D9(f().onTap)}},_.B(_.u7,{data:function(){return f().thumbnail}},{profilePageHeaderThumbnailViewModel:nJH}))},
else:function(){return _.B("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.B(_.u7,{data:function(){return f().thumbnail}},{profilePageHeaderThumbnailViewModel:nJH}))}}),_.B("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.B(_.T,{cond:function(){return f().onTap},
then:function(){return _.B(_.u7,{data:function(){return f().title}},{profilePageHeaderTitleViewModel:function(d){var q=d.data;
return _.B(_.Re,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.D9(q().onTap)}},_.B(_.J9,{text:function(){return q().title}}))}})},
else:function(){return _.B(_.u7,{data:function(){return f().title}},{profilePageHeaderTitleViewModel:function(d){var q=d.data;
return _.B(_.J9,{text:function(){return q().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.B(_.u7,{data:function(){return f().metadata}},{profilePageHeaderMetadataViewModel:function(d){var q=d.data;
return _.B(_.T,{cond:function(){return q().metadataRows},
then:function(Z){return _.B("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.B(_.bd,{each:Z,keyBy:"INDEX"},function(M,g){return _.B(_.qD,null,_.B(QIc,{metadataRow:M,delimiter:" \u2022 "}),_.B($r3,{delimiter:" \u2022 ",max:function(){return Z().length},
index:g}))}))}})}})))},"hj");
S$i.idomCompat=!0;_.g_(S$i,"yt-profile-page-header-information-view-model",{props:{data:_.oM}});var TT=function(){return _.z.apply(this,arguments)||this};
_.K(TT,_.z);TT.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],TT.prototype,"data",void 0);_.y([_.v({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],TT);
_.h(TT,"ytd-effect-pivot-header-view-model",function(){if(EJ3!==void 0)return EJ3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return EJ3=
c},{mode:1});var LVi;var mV=function(){return _.z.apply(this,arguments)||this};
_.K(mV,_.z);mV.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],mV.prototype,"data",void 0);_.y([_.v({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],mV);
_.h(mV,"ytd-source-pivot-header-renderer",function(){if(LVi!==void 0)return LVi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return LVi=c},{mode:1});_.zkF=_.dN(function(c){var f=c.data;var d=function(){var q;return _.ec((q=f())==null?void 0:q.rendererContext)};
c={};return _.B("content-list-item-view-model",{el:_.Z7(_.NY(function(){return f().rendererContext})),
class:_.FY("ytContentListItemViewModelHost",(c.ytContentListItemViewModelTappable=d,c)),role:function(){return d()?"listitem":void 0},
tabindex:function(){return d()?0:void 0}},_.B("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.B("div",{class:"ytContentListItemViewModelImageContainer"},_.B(_.T,{cond:function(){return f().image},
then:function(q){return _.B(_.jC,{data:q,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.B(_.u7,{data:function(){var q;
return(q=f())==null?void 0:q.avatar}},{avatarViewModel:_.ag})),_.B("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.B("div",{class:_.FY("ytContentListItemViewModelTitle",function(){a:{switch(f().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var q="ytContentListItemViewModelProminentTitle";
break a}q=void 0}return q})},_.B(_.J9,{text:function(){return f().title}})),_.B("div",{class:"ytContentListItemViewModelMetadata"},_.B(_.u7,{data:function(){return f().metadata}},{contentMetadataViewModel:function(q){return _.B(_.gA,{data:q.data,
layout:1})}})))),_.B("div",{class:"ytContentListItemViewModelActionButton"},_.B(_.u7,{data:function(){var q;
return(q=f())==null?void 0:q.actionButton}},{buttonViewModel:_.mN,
toggleButtonViewModel:_.JL})))},"ij");_.g_(_.dN(function(c){var f=function(){return c.data().background},d=function(){return c.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},q=function(){return c.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.B("yt-card-view-model",{class:_.FY("ytCardViewModelHost",c.className)},_.B(_.k4,{contentId:function(){return c.data().contentId}},function(){return _.B("div",{class:_.FY("ytCardViewModelCardViewModelInner",function(){return eQq(c.data().cardStyle)})},_.B(_.u7,{data:f},{cinematicContainerViewModel:function(Z){return _.B(_.sI_,{data:Z.data})}}),_.B("div",{class:"ytCardViewModelContentWrapper"},_.B(_.T,{cond:function(){return!d()},
then:function(){var Z={};return _.B("div",{class:"ytCardViewModelTopContent"},_.B(_.u7,{data:function(){return c.data().topContent}},{contentListItemViewModel:function(M){return _.B(_.zkF,{data:M.data})}}),_.B("div",{class:_.FY("ytCardViewModelInlineTrailingAction",(Z.ytCardViewModelInlineCenterTrailingAction=q,Z))},_.B(_.u7,{data:function(){return c.data().trailingAction}},{buttonViewModel:function(M){return _.B(_.mN,{data:M.data})}})))}}),_.B("div",{class:"ytCardViewModelBodyContent"},_.B(_.u7,
{data:function(){return c.data().bodyContent}},{contentListItemViewModel:function(Z){return _.B(_.zkF,{data:Z.data})}}))),_.B(_.T,{cond:function(){return d()},
then:function(){return _.B("div",{class:"ytCardViewModelOverlayTrailingAction"},_.B(_.u7,{data:function(){return c.data().trailingAction}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data})}}))}}))}))},"jj"),"yt-card-view-model",{props:{data:_.oM,
className:_.oM}});_.g_(_.dN(function(c){var f=function(){return _.b(c.data().flowRoot,q$S)};
_.L9(function(){var d=f(),q=function(){},Z=function(){};
if(d){var M,g,O,l=((O=_.b((M=f())==null?void 0:(g=M.steps)==null?void 0:g[0],_.uJJ))==null?void 0:O.stepId)||"";RQF(d,l);q=pIS(d);Z=x73(d)}_.Q4(function(){var m=f();m&&_.Gh().dispatch(_.ER("flowStateEntity",m.flowStateEntityKey));q();q=function(){};
Z();Z=function(){}})});
return _.B("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.B(_.k4,{contentId:function(){return c.data().contentId}},function(){return _.B("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.B(_.T,{cond:f,
then:function(d){return _.B(_.V_S,{data:d})}}))}))},"kj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.oM}});_.g_(_.dN(function(){return _.B("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.B("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.B("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.B(_.F4C,null)),_.B(_.n8_,{data:{rows:1},isExploreHub:!0}))},"lj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.g_(_.dN(function(c){var f=c.data;var d=c.standardUnitMinWidth;c=_.C((0,_.LxH)(f));var q=c.next().value,Z=c.next().value,M=function(){var O,l=(O=q())==null?void 0:O.contents;return l==null||l.length===0},g=function(){Z(Object.assign({},q(),{contents:[]}))};
return _.B("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Z7(_.qd({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var O=_.b(f().chipsShelf,MTC);if(O!=null&&O!=null&&O.autoselectChipOnVisible){var l,m,H=_.b(O==null?void 0:(l=O.contents)==null?void 0:l[(m=O.autoselectedChipIndex)!=null?m:0],_.IE);H&&H.tapCommand&&_.Ph(H.tapCommand)}}}))},_.B(_.k4,{contentId:function(){return f().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.B("div",null,_.B("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.B(_.u7,{data:function(){return f().header}},{sectionHeaderViewModel:function(O){return _.B(_.Bn,{data:O.data,
disableHorizontalPadding:!0})}})),_.B("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.B(_.u7,{data:function(){return f().chipsShelf}},{chipsShelfViewModel:function(O){return _.B(_.VVy,{data:O.data,
callback:g,enableSingleChipSelection:!0})}})),_.B("div",null,_.B(_.T,{cond:M,
then:function(){return _.B("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.B(_.n8_,{data:{rows:1},isExploreHub:!0}))}}),_.B(_.u7,{data:function(){var O;
return(O=q())==null?void 0:O.contents}},{richShelfRenderer:function(O){return _.B(_.Jj_,{data:O.data,
isInnerShelf:!0,standardUnitMinWidth:d})}})))}))},"mj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.oM,
standardUnitMinWidth:_.oM}});var H4=function(){return _.z.apply(this,arguments)||this};
_.K(H4,_.z);
H4.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}}};
H4.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.y([_.Q(_.wt),_.D("design:type",Object)],H4.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],H4.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],H4.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Number)],H4.prototype,"standardUnitMinWidth",void 0);_.y([_.v({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],H4);
_.h(H4,"ytd-rich-section-renderer",function(){if(tTr!==void 0)return tTr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return tTr=c},{mode:_.lP("kevlar_poly_si_batch_j029")?
1:2});_.g_(_.feC,"yt-profile-identity-info-view-model",{props:{data:_.oM,hideDivider:_.oM,isChannelInfoCard:_.oM}});_.g_(_.FVu,"yt-page-header-view-model",{props:{data:_.oM,noPadding:_.oM,enableBanner:_.oM,cinematicContainerTopbarOffset:_.oM,allowCinematicContainerOverflow:_.oM,displayAsSidebar:_.oM,displayAsPanel:_.oM,alwaysUseMediumTextDescription:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=function(){var Z;return(Z=f().numColumns)!=null?Z:2},q=function(){return d()>1?3:2};
c={};return _.B("ytd-rich-grid-group",{class:_.FY("ytdRichGridGroupHost",(c.ytdRichGridGroupHostFirstColumn=function(){return f().colIndex===0},c)),
style:_.$Z({"--ytd-rich-grid-group-num-columns":d,"--ytd-rich-grid-items-per-group":q})},_.B("div",{class:"ytdRichGridGroupContents"},_.B(_.u7,{data:function(){var Z;return(Z=f().contents)==null?void 0:Z.slice(0,q())}},{richItemRenderer:function(Z){return _.B(_.Lm_,{data:Z.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"nj"),"ytd-rich-grid-group",{props:{data:_.oM}});var Ag=function(){var c=_.z.apply(this,arguments)||this;c.resizeOnObserverInit=!1;c.isInlinePreviewDisabled=_.F("web_disable_inline_preview");c.disableStickyFilterBar=!1;c.transparentBackgroundChipsBar=!1;c.hideChipsBar=!1;c.isWatchDefaultLayout=!0;c.continuationShowButton=!1;c.rowReducedHorizontalMargin=!1;c.useCompactList=!1;c.manualDownloadsPresent=!1;c.smartDownloadsPresent=!1;c.isOnline=!1;c.shouldRenderDownloadsBanner=!1;c.shouldRenderDownloadsBannerUpsell=!1;c.hasOptedIntoSmartDownloads=!1;
c.elementsPerRow=4;c.typographyBump=!1;c.showGnomeContents=!1;c.showExploreHubContents=!1;c.slimItemsPerRow=1;c.pageLoadingFromNavigation=!1;c.loggingRefactor=_.F("kevlar_rich_grid_logging_fix");c.resizeObserver=null;c.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"};
c.rendererToTagNameMap=new Map(Object.entries(c.contentMapping()).map(function(f){var d=_.C(f);f=d.next().value;d=d.next().value;return[f,d.component]}));
c.insertedContent=new Map;return c};
_.K(Ag,_.z);_.r=Ag.prototype;_.r.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var c=_.C(_.r1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),f=c.next();!f.done;f=c.next())f.value.useCompactList=this.useCompactList};
_.r.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var c=_.C(_.r1(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),f=c.next();!f.done;f=c.next())f=f.value,f.sizing=this.sizing,f.typographyBump=this.typographyBump};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.r.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]]"}}}};
_.r.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}}};
_.r.attached=function(){document.addEventListener("yt-page-type-changed",_.ia(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21718_throttledOnResize=new _.Gx(this.resizeObserved,_.rx("rich_grid_resize_delay_ms",50),this)};
_.r.detached=function(){var c;(c=this.resizeObserver)==null||c.disconnect();document.removeEventListener("yt-page-type-changed",_.ia(this,this.onPageChange))};
_.r.insertRichSection=function(c){var f=c.richItemTargetId;c=c.richSectionRendererToInsert;f&&c&&(this.insertedContent.set(f,{content:c,timestamp:Date.now()}),this.reflowContent())};
_.r.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.r.computeIsInlinePreviewEnabled=function(c,f,d){return _.F("web_disable_inline_preview")?!1:!d&&_.nKQ({miniplayerIsActive:c,miniplayerPlaybackState:f})};
_.r.computeSizing=function(){var c=_.x3Y(this.data);if(c||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return c?this.useCompactList?"COMPACT":c:this.miniMode?"COMPACT":_.F("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.r.updateItemMinAndMaxWidth=function(){var c=_.rx("rich_grid_max_item_width",500);c>0&&_.la(this.hostElement,{"--ytd-rich-grid-item-max-width":c+"px"});var f;c=this.getRichItemMinWidth((f=this.hostElement)==null?void 0:f.clientWidth);c>0&&_.la(this.hostElement,{"--ytd-rich-grid-item-min-width":c+"px"})};
_.r.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.r.resizeObserved=function(){_.kt(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.r.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 c=_.ql().resolve(_.MY).isOnWatch(),f,d=((f=_.Ah(location.pathname))==null?void 0:f.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(d)||c)&&this.gnomeContents&&_.F("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);c&&this.exploreHubContents&&_.F("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Gh().dispatch(_.CC({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.r.onPageChange=function(){var c=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.F("disable_chip_select_on_nav")||_.kt(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.a7.addJob(function(){c.pageLoadingFromNavigation=!1;_.F("disable_chip_select_on_nav")&&_.F("h5_reset_cache_and_filter_before_update_masthead")&&c.resetCacheAndIsFilteredFeed();c.setMasthead();c.maybeSetBigYoodle();c.forceRefreshAndLog();c.terminateVideoPreview();_.F("web_hide_gnome_until_user_navigates_back_to_home")&&
(c.dataChanged(),_.ol(c,function(){if(c.showGnomeContents){var f=Array.from(_.r1(c.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(q){q=_.r1(q).querySelector("ytd-rich-shelf-renderer");return!!q&&q.isGnomeShelf()});
if(f){f=f.offsetTop-c.contentsElement.offsetTop;var d=_.ql().resolve(_.MY).getCurrentPage();d&&d.getPageScrollingElement().scrollTo({top:f,behavior:"smooth"})}}}));
_.F("web_hide_explore_hub_until_user_navigates_back_to_home")&&(c.dataChanged(),_.ol(c,function(){if(c.showExploreHubContents&&!_.F("web_explore_hub_no_scroll")){var f=Array.from(_.r1(c.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(q){return!!q.querySelector("ytd-talk-to-recs-flow-renderer")});
if(f){f=f.offsetTop-c.contentsElement.offsetTop;var d=_.ql().resolve(_.MY).getCurrentPage();d&&d.getPageScrollingElement().scrollTo({top:f,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))};
_.r.dataChanged=function(){var c=this;_.kt(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.ol(this,function(){c.updateRichItemGridPositions();c.contentsElement&&_.la(c.hostElement,{"--ytd-rich-grid-content-offset-top":c.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.r.initResizeObserver=function(){var c=this;if(window.ResizeObserver){var f;(f=this.resizeObserver)==null||f.disconnect();var d=!1;this.resizeObserver=new ResizeObserver(function(){if(d){var q;(q=c.resizeObserver)==null||q.disconnect();var Z;(Z=c.JSC$21718_throttledOnResize)==null||Z.fire();requestAnimationFrame(function(){var g;(g=c.JSC$21718_throttledOnResize)==null||g.fire();c.initResizeObserver()})}else if(d=!0,c.resizeOnObserverInit){var M;
(M=c.JSC$21718_throttledOnResize)==null||M.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.r.contentLengthChanged=function(){if(_.F("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.kt(this.hostElement,"ytd-rich-item-index-update-action")};
_.r.updateElementsPerRow=function(){_.kt(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.CC({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.CC({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.r.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.r.onRichShelfRendererCollapse=function(c){if(this.shownItems){var f=c.detail;c=this.shownItems.findIndex(function(q){var Z,M;return((M=_.b(q==null?void 0:(Z=q.richSectionRenderer)==null?void 0:Z.content,_.EGK))==null?void 0:M.trackingParams)===f});
var d=c+1;c<0||d>=this.contentsElement.children.length||!this.shownItems[d].richItemRenderer||this.contentsElement.children[d].scrollIntoView({behavior:"smooth",block:"start"})}};
_.r.onSoftReloadPage=function(){this.scrollUpToTop()};
_.r.handleRerenderDownloadsData=function(){_.F("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.r.handlePlaylistRemoveVideosAction=function(c){var f;if(((f=_.b(c,_.eqO))==null?0:f.setVideoIds)&&this.data&&this.data.contents){c=_.b(c,_.eqO).setVideoIds;for(f=this.data.contents.length-1;f>=0;){var d=_.b(this.data.contents[f],_.JB);(d=d&&_.b(d.content,_.yb))&&d.setVideoId&&c.includes(d.setVideoId)&&this.splice("data.contents",f,1);f--}this.updateIndices()}};
_.r.updateIndices=function(){if(this.data&&this.data.contents)for(var c=0;c<this.data.contents.length;c++)this.set("data.contents."+c+".richItemRenderer.index",_.pC(String(c+1)))};
_.r.hasTopRowInlinePlayableVideoWithEndorsement=function(c){var f;return!((f=c.slice(0,this.getItemsPerRow()))==null||!f.some(function(d){var q;d=_.b(d==null?void 0:(q=d.richItemRenderer)==null?void 0:q.content,_.ew);var Z;return(d==null?void 0:d.inlinePlaybackEndpoint)&&(d==null?void 0:(Z=d.thumbnailOverlays)==null?void 0:Z.some(function(M){return M.thumbnailOverlayEndorsementRenderer}))}))};
_.r.refreshGridLayoutNew=function(c,f,d,q){var Z=q.postsPerRow;var M=q.slimItemsPerRow;var g=q.gameCardsPerRow;q=q.miniGameCardsPerRow;var O;if((O=this.data)==null||!O.contents||!this.containerWidth)return!1;var l;if((l=this.data.responsiveContainerConfiguration)==null?0:l.responsiveSize){var m=_.Q1C(this.data.responsiveContainerConfiguration,this.containerWidth),H;O=_.xv(Object.assign({},m,{standardUnitMinWidth:(H=this.data)==null?void 0:H.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&m.isCompactList)}else O=_.xv({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(m=this.data)==null?void 0:m.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=O.typographyBump;H=!1;if(c||this.elementsPerRow!==O.numItems||this.postsPerRow!==Z||this.slimItemsPerRow!==M||this.gameCardsPerRow!==
g||this.miniGameCardsPerRow!==q||this.gutter!==O.gutter)H=this.elementsPerRow!==O.numItems,this.elementsPerRow=O.numItems,this.postsPerRow=Z,this.slimItemsPerRow=M,this.gameCardsPerRow=g,this.miniGameCardsPerRow=q,this.gutter=O.gutter,this.itemWidth=O.itemWidth,this.reflowContent(f),_.la(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":O.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(d);this.ytdReduxBehavior.dispatch(_.CC({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:O.maxContainerWidth}));return H};
_.r.refreshGridLayout=function(c,f){var d,q=(d=this.hostElement)==null?void 0:d.clientWidth;this.containerWidth=this.adjustRichGridWidth(q,!0);var Z;if((Z=this.data)==null||!Z.contents||!this.containerWidth)return c&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.F("rg_pending_reflow_ks")&&(c=!0,this.pendingForceReflow=!1);d=this.getRichItemMinWidth(q);var M=this.isShortsPanel?146:194,g=this.getMiniGameCardMinWidth(),O=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
q=d=this.calcElementsPerRow(d,O);(Z=d<=3&&this.miniModeAllowed())&&(d=this.calcElementsPerRow(240,4));var l=this.calcMaxSlimElementsPerRow(d,O,this.isDefaultGrid);O=this.calcElementsPerRow(M,l);var m=this.calcElementsPerRow(this.isCompactGrid?M:154,l);M=this.calcElementsPerRow(this.isCompactGrid?M:g,l);g=!1;if(this.sizing)return this.refreshGridLayoutNew(c,f,Z,{postsPerRow:q,slimItemsPerRow:O,gameCardsPerRow:m,miniGameCardsPerRow:M});if(c||this.elementsPerRow!==d||this.postsPerRow!==q||this.slimItemsPerRow!==
O||this.gameCardsPerRow!==m||this.miniGameCardsPerRow!==M)g=this.elementsPerRow!==d,this.elementsPerRow=d,this.postsPerRow=q,this.slimItemsPerRow=O,this.gameCardsPerRow=m,this.miniGameCardsPerRow=M,this.reflowContent(f),this.updateElementsPerRow(),_.la(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)&&_.la(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Z);_.kt(this.hostElement,"yt-rich-grid-layout-refreshed");return g};
_.r.getRichItemMinWidth=function(c){var f=_.rx("rich_grid_min_item_width",310);if(!_.F("kevlar_disable_min_width_override")){var d,q;f=(q=(d=this.data)==null?void 0:d.minItemWidth)!=null?q:f}return f+_.e$e(c)};
_.r.calcMaxSlimElementsPerRow=function(c,f,d){return(d===void 0?0:d)?c===1?2:c%2===0?_.F("web_shorts_2_by_3_reduce_items_per_row")&&c>=4?c/2*3-1:c/2*3:_.F("web_shorts_2_by_3_reduce_items_per_row")&&c>=3?c+1:c+2:f*2};
_.r.adjustRichGridWidth=function(c,f){var d=_.F("disable_rich_grid_guide_compensation");if(!this.isWatch&&!d){d=_.ql().resolve(_.dx(_.Ns));var q=d==null?void 0:d.guideElement;if(!(!d||d.getData()||q!=null&&q.opened||d.getMiniGuideVisible()))if(d.canFitPersistentGuide(c)&&d.getGuideExpandsAutomatically()){var Z,M,g=Number((Z=window.getComputedStyle(this.hostElement))==null?void 0:(M=Z.getPropertyValue("--app-drawer-width"))==null?void 0:M.replace("px",""));c-=g||0}else if(d.canFitMiniGuide(c)){var O;
Z=Number((g=window.getComputedStyle(this.hostElement))==null?void 0:(O=g.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:O.replace("px",""));c-=Z||0}}c>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(c-=f?32:48));return c};
_.r.calcElementsPerRow=function(c,f){var d=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),q=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((d+q)/(c+q))||1,f)};
_.r.reflowContent=function(c){var f=this;if(!this.isReflowing){this.isReflowing=!0;var d,q,Z=!!((d=this.data)==null?0:(q=d.contents)==null?0:q.some(function(t){return _.b(t,_.jJ)}));
d=this.getItemsPerRow();var M;q=(M=this.data)==null?void 0:M.reflowOptions;c&&(_.V_("rgr_s"),_.ol(this,function(){_.V_("rgr_nrf")}));
c={};(M=_.r1(this.hostElement).querySelector("#contents"))&&(c={contentElement:M,rendererToTagNameMap:this.rendererToTagNameMap});M=(M=this.data.contents)?M.slice():[];var g=(_.F("web_hide_gnome_behind_feed_filter_chip")||_.F("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,O=_.F("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,l=-1,m=-1;if(this.isHomePage&&O){for(O=0;O<M.length;O++){var H=void 0,A=void 0;_.b((H=M[O])==null?void 0:
(A=H.richSectionRenderer)==null?void 0:A.content,jIq)&&(m=O)}m>-1&&(this.exploreHubContents=M.splice(m,1))}if(this.isHomePage&&g){for(m=0;m<M.length;m++)A=H=void 0,(O=_.b((H=M[m])==null?void 0:(A=H.richSectionRenderer)==null?void 0:A.content,_.EGK))&&g&&(A=H=void 0,O=_.b((H=O)==null?void 0:(A=H.contents)==null?void 0:A[0],_.JB),H=void 0,_.b((H=O)==null?void 0:H.content,_.E3j)&&(l=m));l>-1&&(this.gnomeContents=M.splice(l,1))}var Y=wIp(M,d,Z,q,this.getRichGridStyle(),c,this.insertedContent);Z=function(){f.shownItems=
Y;f.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(Y),_.ol(this,Z)):Z()}};
_.r.getFirstRowItems=function(c){for(var f=[],d=0;d<c.length;d++){var q=void 0,Z=void 0,M=void 0,g=void 0,O=void 0,l=void 0;if(((q=c[d])==null?void 0:(Z=q.richItemRenderer)==null?void 0:Z.rowIndex)===0||((M=c[d])==null?void 0:(g=M.richGroupRenderer)==null?void 0:g.rowIndex)===0||((O=c[d])==null?void 0:(l=O.richSectionRenderer)==null?void 0:l.rowIndex)===0)f.push(c[d]);else break}return f};
_.r.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.r.resetInsertedContentIfNeeded=function(){(_.F("web_explore_hub_on_hover")||_.F("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.r.handleChipCloudChipSelectAction=function(c,f){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.F("web_hide_gnome_behind_feed_filter_chip")&&(f?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.r.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()};
_.r.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())};
_.r.terminateVideoPreview=function(){_.kt(this.hostElement,"yt-terminate-video-preview-action")};
_.r.updateRichItemGridPositions=function(){var c={gridData:{gridColumnCount:this.elementsPerRow}},f;if((f=this.data)==null?0:f.trackingParams)this.loggingRefactor?_.bP().stateChanged(this.data.trackingParams,c):(f=_.X2())&&_.xt(f,_.Q1(this.data.trackingParams),c);_.kt(this.hostElement,"ytd-rich-item-index-update-action")};
_.r.miniModeAllowed=function(){return _.F("disable_channels_mini_mode")?!1:this.isChannelPage};
_.r.getMiniGameCardMinWidth=function(){return 154};
_.r.updateMiniMode=function(c){this.miniMode=this.miniModeAllowed()&&c;this.ytdReduxBehavior.dispatch(_.CC({type:"SET_RICH_GRID_MINI_MODE",payload:c}))};
_.r.isCurrentPage=function(){return location.pathname===this.pagePath};
_.r.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var c=_.ql().resolve(_.MY).getCurrentPage();c&&c.setScrollTop(0)}};
_.r.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.r.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.r.maybeSetBigYoodle=function(){var c,f=(c=this.data)==null?void 0:c.bigYoodle;this.bigYoodleData!==f&&(this.bigYoodleData=f)};
_.r.setMasthead=function(){var c;((c=this.data)==null?0:c.masthead)?this.mastheadData=this.data.masthead:_.F("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.r.getRichGridStyle=function(){var c,f;return(f=(c=this.data)==null?void 0:c.style)!=null?f:"RICH_GRID_STYLE_UNKNOWN"};
_.r.onIsShortsGridChange=function(){var c=this.ytdReduxBehavior,f=c.dispatch,d=this.getRichGridStyle();f.call(c,_.CC({type:"SET_RICH_GRID_STYLE",payload:d}))};
_.ci.Object.defineProperties(Ag.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var c;return(((c=this.data)==null?void 0:c.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var c;return(((c=this.data)==null?void 0:c.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var c=_.ql().resolve(_.MY).getCurrentPage(),f,d,q;return(((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_audio_pivot"||_.F("web_enable_channel_pivot_panel")&&((d=this.data)==null?void 0:d.targetId)==="browse-feedFEsfv_channel_pivot"||_.F("web_enable_effect_pivot_panel")&&((q=this.data)==null?void 0:q.targetId)==="browse-feedFEsfv_effect_pivot")&&(c==null?void 0:c.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 c;return!((c=this.data)==null?0:c.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var c;return((c=_.ql().resolve(_.MY).getCurrentPage())==null?void 0:c.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var c;return((c=_.ql().resolve(_.MY).getCurrentPage())==null?void 0:c.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 c;return this.hideChipsBar||(((c=this.data)==null?void 0:c.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.F("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var c;return(((c=this.data)==null?void 0:c.targetId)||"")==="watch-next-feed"&&!_.F("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.data)==null?0:c.enableContentSpecificAspectRatio)||((f=this.data)==null?0:(d=f.responsiveContainerConfiguration)==null?0:d.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.rx("web_continuation_handler_margin",0):0}}});
Ag.prototype.onIsShortsGridChange=Ag.prototype.onIsShortsGridChange;Ag.prototype.onReloadContinuationFinish=Ag.prototype.onReloadContinuationFinish;Ag.prototype.reflowContent=Ag.prototype.reflowContent;Ag.prototype.handleRerenderDownloadsData=Ag.prototype.handleRerenderDownloadsData;Ag.prototype.onRichShelfRendererCollapse=Ag.prototype.onRichShelfRendererCollapse;Ag.prototype.onRequestElementsPerRow=Ag.prototype.onRequestElementsPerRow;Ag.prototype.contentLengthChanged=Ag.prototype.contentLengthChanged;
Ag.prototype.dataChanged=Ag.prototype.dataChanged;Ag.prototype.onSizingChange=Ag.prototype.onSizingChange;Ag.prototype.onUseCompactListChange=Ag.prototype.onUseCompactListChange;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.aJ),_.D("design:type",Object)],Ag.prototype,"ironResizableBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Ag.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],Ag.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Ag.prototype,"componentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Ag.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ag.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],Ag.prototype,"miniMode",void 0);_.y([_.L({value:[]}),_.D("design:type",Array)],Ag.prototype,"shownItems",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Ag.prototype,"isReflowing",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Ag.prototype,"isFilteredFeed",void 0);_.y([_.L({selector:_.w_G}),_.D("design:type",Boolean)],Ag.prototype,"guideIsExpanded",void 0);
_.y([_.L({selectorArgs:["entitySelectorType"],selector:function(c,f){if(_.F("kevlar_modern_downloads_page")&&f&&f!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(f){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":f=c.entities;var d=_.LC(f),q=_.zh(f),Z=_.q2k(c),M=_.jMk(c),g=_.ZtN(c),O=_.S8N(f),l=_.KC(d),m=_.JE(f);return _.FMC(d,q,O,_.aKM(f),Z,M,l,m,g,_.r$e(c),_.vb(c));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return c=_.LC(c.entities),_.bIM(c);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return c=
_.n2C(c.entities),_.KMC(c);default:_.u6(new _.KD("Error: entitySelectorType defined but not matched in selector.",c,f))}}}),
_.D("design:type",Object)],Ag.prototype,"entityDrivenRichGridData",void 0);_.y([_.L(),_.D("design:type",Object)],Ag.prototype,"resizeOnObserverInit",void 0);_.y([_.L(),_.D("design:type",Object)],Ag.prototype,"bigYoodleData",void 0);_.y([_.L(),_.D("design:type",Object)],Ag.prototype,"mastheadData",void 0);_.y([_.L(),_.D("design:type",Boolean)],Ag.prototype,"isInlinePreviewDisabled",void 0);_.y([_.L(),_.D("design:type",Object)],Ag.prototype,"disableStickyFilterBar",void 0);
_.y([_.L(),_.D("design:type",Object)],Ag.prototype,"transparentBackgroundChipsBar",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ag.prototype,"hideChipsBar",void 0);_.y([_.L(),_.D("design:type",Object)],Ag.prototype,"isWatchDefaultLayout",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ag.prototype,"continuationShowButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ag.prototype,"rowReducedHorizontalMargin",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ag.prototype,"useCompactList",void 0);_.y([_.L({selector:function(c){return _.zh(c.entities).length>0}}),
_.D("design:type",Object)],Ag.prototype,"manualDownloadsPresent",void 0);_.y([_.L({selector:function(c){return _.LC(c.entities).length>0}}),
_.D("design:type",Object)],Ag.prototype,"smartDownloadsPresent",void 0);_.y([_.L({selector:_.vb}),_.D("design:type",Object)],Ag.prototype,"isOnline",void 0);_.y([_.L({selector:_.jMk}),_.D("design:type",Object)],Ag.prototype,"shouldRenderDownloadsBanner",void 0);_.y([_.L({selector:_.r$e}),_.D("design:type",Object)],Ag.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.y([_.L({selector:_.q2k}),_.D("design:type",Object)],Ag.prototype,"hasOptedIntoSmartDownloads",void 0);
_.y([_.m5("useCompactList"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ag.prototype,"onUseCompactListChange",null);_.y([_.m5("sizing","typographyBump"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ag.prototype,"onSizingChange",null);_.y([_.L({selector:_.IKl}),_.D("design:type",Number)],Ag.prototype,"miniplayerPlaybackState",void 0);_.y([_.L({selector:_.X5}),_.D("design:type",Boolean)],Ag.prototype,"miniplayerIsActive",void 0);
_.y([_.L({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.D("design:type",Boolean)],Ag.prototype,"isInlinePreviewEnabled",void 0);_.y([_.L({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.D("design:type",String)],Ag.prototype,"sizing",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ag.prototype,"elementsPerRow",void 0);
_.y([_.L(),_.D("design:type",Object)],Ag.prototype,"typographyBump",void 0);_.y([_.L(),_.D("design:type",Number)],Ag.prototype,"itemWidth",void 0);_.y([_.AY("#header"),_.D("design:type",HTMLElement)],Ag.prototype,"headerElement",void 0);_.y([_.AY("#contents"),_.D("design:type",HTMLElement)],Ag.prototype,"contentsElement",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ag.prototype,"dataChanged",null);
_.y([_.ba("data.contents.length"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ag.prototype,"contentLengthChanged",null);_.y([_.Ta("yt-request-elements-per-row"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ag.prototype,"onRequestElementsPerRow",null);
_.y([_.Ta("yt-rich-shelf-renderer-collapse"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Ag.prototype,"onRichShelfRendererCollapse",null);_.y([_.ba("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ag.prototype,"handleRerenderDownloadsData",null);
_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],Ag.prototype,"entitySelectorType",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.targetId"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"isSub",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.targetId"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"isWatch",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data.targetId"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"isShortsPanel",null);_.y([_.L({reflectToAttribute:!0}),_.S("isWatch"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"reducedTopMargin",null);_.y([_.L({reflectToAttribute:!0}),_.S("data","isWatch","isWatchDefaultLayout"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"noTopMargin",null);
_.y([_.L({reflectToAttribute:!0}),_.S("isInlinePreviewEnabled","shownItems"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"topRowEndorsement",null);_.y([_.S("data.header"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"hideHeader",null);_.y([_.Ta("yt-rich-grid-reflow"),_.D("design:type",Function),_.D("design:paramtypes",[Boolean]),_.D("design:returntype")],Ag.prototype,"reflowContent",null);
_.y([_.Ta("yt-reload-continuation-finish"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ag.prototype,"onReloadContinuationFinish",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"isSlimGrid",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"isShortsGrid",null);
_.y([_.S("data","isSlimGrid","isShortsGrid"),_.L(),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"noRichItemGutterMargins",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"isShortsGridSlim",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"isCompactGrid",null);
_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"isDefaultGrid",null);_.y([_.S("data.targetId"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"hideChipsBarOnHome",null);_.y([_.S("data.targetId"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"hideChipsBarOnWatch",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ag.prototype,"onIsShortsGridChange",null);_.y([_.S("data.enableContentSpecificAspectRatio"),_.L(),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ag.prototype,"force16By9ThumbnailAspectRatio",null);_.y([_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],Ag.prototype,"continuationTriggerOffset",null);_.y([_.v({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Ag);
_.h(Ag,"ytd-rich-grid-renderer",function(){if(AgG!==void 0)return AgG;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return AgG=c},{mode:2});var Jgr=_.dN(function(c){var f=c.thumbsUp,d=c.thumbsDown,q=c.rightAlignThumbs;c=_.C(_.OT(!1,void 0,"FjNDrf"));var Z=c.next().value,M=c.next().value;c=_.C(_.OT(!1,void 0,"Tphjfb"));var g=c.next().value,O=c.next().value;c={};return _.B("div",{class:_.FY("ytwThumbsUpDownThumbs",(c.ytwThumbsUpDownRightAlign=function(){return q==null?void 0:q()},c))},_.B(_.JL,{data:f,
onToggle:function(l){M(l);g()&&O(!1)},
buttonShapeOverrides:function(){return{toggled:Z()}}}),_.B(_.JL,{data:d,
onToggle:function(l){O(l);Z()&&M(!1)},
buttonShapeOverrides:function(){return{toggled:g()}}}))},"oj");
Jgr.idomCompat=!0;var VTG=_.dN(function(c){var f=function(){return c.data().pendingStateEntityKey||""},d=_.Ka(_.o1q,f),q=function(){var O;
if(!(O=c.disabled())){var l;O=!((l=d())==null||!l.isPendingResponse)}return O},Z=_.C(_.OT(D7Q(""),void 0,"aC8eBe")),M=Z.next().value,g=Z.next().value;
_.QJ(function(){requestAnimationFrame(function(){var O=c.data().onShowAnimationMs||0;O=O>0?D7Q("--chip-animation-duration: "+O+"ms;"):D7Q("");g(O)})});
return _.B("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:M},_.B(_.bd,{each:function(){return c.data().chipData||[]},
keyBy:"REFERENCE"},function(O){return _.B(aID,{data:O,disabled:q,pendingStateKey:f,onError:c.onError})}))},"pj"),aID=_.dN(function(c){var f=_.ob("button"),d=_.C(_.OT(!0,void 0,"NaMiCd")),q=d.next().value,Z=d.next().value,M=function(){return c.data().text.content},g=_.Ks(function(O){var l,m,H,A,Y,t,E,J;
return _.k(function(X){switch(X.nextAddress){case 1:O.stopPropagation();if(c.disabled())return X.return();m=String(Math.floor(((l=_.Ac())==null?void 0:l.getCurrentTime())||0)*1E3);H="youchat-"+Date.now();A=function(){_.eq(c.data().onClick||{});var u={continuationCommand:{token:c.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},W={inputComposerFormData:{clientMessageId:H,playerOffsetMs:m}};return new Promise(function(p,N){_.eq(u,{form:{formData:W},commandController:{onSuccess:function(I,
R){p(R)},
onServerError:function(I,R){N(R.error)}}})})};
Y=_.GES(c.pendingStateKey());Y(!0);_.zQc("#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");Z(!1);_.iY(X,2);return X.yield(A(),4);case 4:_.Pq(X,3);break;case 2:t=_.Yw(X),(J=(E=c).onError)==null||J.call(E,t);case 3:Y(!1),_.Fm(X)}})});
return _.B(_.T,{cond:q,then:function(){return _.B("div",{class:"ytwYouChatChipsDataChipWrapper"},_.B("button",{el:f,class:"ytwYouChatChipsDataChip","data-disabled":c.disabled,"on:click":g,tabindex:0},M))}})},"qj");var X4D=_.dN(function(c){var f=c.data;var d=c.initiallyExpanded;var q=function(){var m;return(m=f().conversationResourceData)==null?void 0:m.learningGuideData};
c=_.C(_.ns(function(){var m;return(m=d==null?void 0:d())!=null?m:!1}));
var Z=c.next().value,M=c.next().value,g=function(){M(!0)},O=_.TZ(function(){var m,H;
return(H=(m=q())==null?void 0:m.sections)!=null?H:[]},void 0,"xl8NRc"),l=_.TZ(function(){return O().length>4},void 0,"oAM7of");
c=_.TZ(function(){var m;return!Z()&&l()&&(m=q())!=null&&m.expandButton?O().slice(0,4):O()},void 0,"uzQ9rc");
return _.B("yt-conversation-resource-view-model",{class:_.FY("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.B(_.u7,{data:c},{expandableMetadataViewModel:_.nSJ}),_.B(_.T,{cond:function(){return l()&&!Z()},
then:function(){return _.B("div",{id:"showMoreButton"},_.B(_.u7,{data:function(){var m;return(m=q())==null?void 0:m.expandButton}},{buttonViewModel:function(m){return _.B(_.mN,{data:m.data,
onClick:g})}}))}}))},"rj");var uVJ=_.dN(function(c){var f=function(){var R;return(R=c.data().text)==null?void 0:R.content},d=function(){var R,qN;
return(R=c.data().webData)==null?void 0:(qN=R.textResult)==null?void 0:qN.content},q=_.ql().resolve(_.cr),Z=_.Yv(),M=function(){return c.data().chatResponseStyle},g=function(){return!c.data().transparentBackground},O=function(){return c.data().rightAlignThumbs},l=function(){return c.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||c.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},m=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:l()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:c.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},H=function(){var R;
return c.data().webData||((R=c.data().text)==null?void 0:R.content)||c.data().videoResultsData||c.data().conversationResourceViewModel||c.data().quiz},A=function(){return!!c.data().sectionHeader||H()},Y=function(){var R;
return(R=c.data().videoResultsData)==null?void 0:R.videoShelf},t=function(){var R;
return _.b(((R=c.data().videoResultsData)==null?void 0:R.videoShelf)||{},CAC)},E=function(){var R;
return(R=c.data().webData)==null?void 0:R.sourcesShelf},J=function(){var R;
return _.b(((R=c.data().webData)==null?void 0:R.sourcesShelf)||{},CAC)},X=function(){return _.b(c.data().conversationResourceViewModel||{},kTC)},u=function(){return _.b(c.data().quiz||{},ZwC)},W=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:c.data().thumbsDownViewModel&&c.data().thumbsUpViewModel},p=function(){return _.b(c.data().thumbsUpViewModel,_.Jc)},N=function(){return _.b(c.data().thumbsDownViewModel,_.Jc)};
_.QJ(function(){requestAnimationFrame(function(){var R;(R=c.shouldAnimateIcon)!=null&&R.call(c)&&cgi(Z.lottieEl)})});
var I={};return _.B("you-chat-item-view-model",{class:_.FY("ytwYouChatItemViewModelYouChatItemViewModel",(I.ytwYouChatItemViewModelColumnLayout=function(){return l()},I)),
"data-target-id":function(){return c.data().id||""}},_.B(_.T,{cond:function(){return c.data().removeIcon?!1:A()},
then:function(){var R={};return _.B("div",{"aria-hidden":"true"},_.B(_.gT,{className:_.FY("ytwYouChatItemViewModelIcon",(R.ytwYouChatItemViewModelRtl=q==="rtl",R.ytwYouChatItemViewModelHidden=function(){return!(c.data().hideIcon||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||M()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:A())},R)),
animationName:"YOUCHAT_ICON",data:m,animationRef:Z}))}}),_.B(_.T,{cond:A,
then:function(){var R={};return _.B("div",{class:_.FY("ytwYouChatItemViewModelHost",(R.ytwYouChatItemViewModelHostNoPadding=function(){return!!c.data().sectionHeader&&!H()},R.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},R.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},R.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return M()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
R.ytwYouChatItemViewModelGradientBackground=g,R)),
role:"alert"},_.B(_.T,{cond:f,then:function(qN){return _.B(_.e$,{text:qN,wrapCodeBlocks:!0})}}),_.B(_.u7,{data:function(){return c.data().sectionHeader}},{sectionHeaderViewModel:function(qN){var kl={};
return _.B(_.Bn,{data:qN.data,className:_.FY("ytwYouChatItemViewModelSectionHeader",(kl.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!c.data().sectionHeader&&!H()},kl))})}}),_.B(_.T,{cond:d,
then:function(qN){return _.B(_.e$,{text:qN,wrapCodeBlocks:!0})}}),_.B(_.T,{cond:Y,
then:function(){return _.B("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.B(_.yo,{data:t,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.B(_.T,{cond:E,
then:function(){return _.B("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.B(_.yo,{data:J,hasPeek:!0,disableArrows:!1}))}}),_.B(_.T,{cond:X,
then:function(){return _.B(X4D,{data:X})}}),_.B(_.T,{cond:u,
then:function(){return _.B(_.jIF,{data:u})}}),_.B(_.T,{cond:W,
then:function(){return _.B(Jgr,{thumbsUp:p,thumbsDown:N,rightAlignThumbs:O})}}))}}),_.B(_.T,{cond:function(){return c.data().chipsData},
then:function(R){return _.B(VTG,{data:R,disabled:c.pending,onError:c.onError})}}))},"sj");
uVJ.idomCompat={callbacks:{onError:!0,onSend:!0}};var vJG=_.dN(function(c){var f=function(){return c.data().choiceSelectedText},d=function(){return c.data().hasGradientBackground},q={};
return _.B("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.B(_.T,{cond:f,then:function(){return _.B("div",{class:"ytYouChatUserTurnChoiceSelected"},_.B(_.J9,{text:f}))}}),_.B("div",{class:_.FY("ytYouChatUserTurnUserMessage",(q.ytYouChatUserTurnGradientContainer=d,q.ytYouChatUserTurnDefaultContainer=function(){return!d()},q))},function(){return c.data().text}))},"tj");var hkS=_.dN(function(c){var f=_.C((0,_.aE3)(c.data)).next().value;return _.B("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return c.data().targetId||""}},_.B(_.u7,{data:function(){return c.data().header}},{chipBarViewModel:_.E1F}),_.B(_.u7,{data:function(){return f().contents}},{accordionViewModel:_.rgu,
alertBannerViewModel:_.JSo,chatLoadingViewModel:_.tRC,chatUserTurnViewModel:vJG,learningJourneyLoaderViewModel:_.dr_,lockupViewModel:function(d){return _.B(_.s7,{data:d.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:c.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(d){return _.B(uVJ,{data:d.data,pending:!1})}}))},"uj");_.g_(_.dN(function(c){var f=_.C((0,_.aE3)(c.data)).next().value,d=_.xz("yt-section-list-renderer"),q=_.C(_.OT(void 0,void 0,"rQpPgc")),Z=q.next().value,M=q.next().value,g=function(){var O;return _.b((O=c.data().sectionListLayoutConfiguration)==null?void 0:O.layoutConfiguration,rgF)};
_.L9(function(){var O,l=(O=d.value)==null?void 0:O.clientWidth;if(g()){O=g();var m=O.responsiveSize;l=l<528?"CONTAINER_SIZE_NARROW":l<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var H=_.C(O.responsiveMap||[]);for(var A=H.next();!A.done;A=H.next())if(A=A.value,A.containerSize===l){H=A.containerType;break b}H=void 0}if(H&&m){b:{if(H==="CONTAINER_TYPE_VERTICAL_LIST")if(m==="RESPONSIVE_SIZE_STANDARD"){if(l!=="CONTAINER_SIZE_NARROW"){A="50%";break b}}else{A=l==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}A=void 0}O={responsiveSize:m,containerSize:l,containerType:H,force16By9ThumbnailAspectRatio:!O.enableContentSpecificAspectRatio,contentPreviewWidth:A,fullbleed:(H==="CONTAINER_TYPE_VERTICAL_LIST"||H==="CONTAINER_TYPE_GRID")&&l==="CONTAINER_SIZE_NARROW"&&!1}}else O=void 0}else O=void 0;M(O)});
return _.B("yt-section-list-renderer",{class:_.FY("ytSectionListRendererHost",c.className),el:d,"data-target-id":function(){return c.data().targetId||""}},_.B(_.u7,{data:function(){return f().contents}},{itemSectionRenderer:function(O){return _.B(hkS,{data:O.data,
containerLayoutConfig:Z})}}))},"vj"),"yt-section-list-renderer",{props:{data:_.oM,
className:_.Cs}});var w4J;var ygr;var WVJ=function(){return _.z.apply(this,arguments)||this};
_.K(WVJ,_.z);_.y([_.L(),_.D("design:type",Object)],WVJ.prototype,"data",void 0);_.y([_.vj({is:"yt-alert-renderer",disableElementRegistration:!0})],WVJ);
_.h(WVJ,"yt-alert-renderer",function(){if(ygr===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;w4J===void 0&&(w4J=document.createElement("template"));var q=w4J;d.call(f,q.content.cloneNode(!0),c.content.firstChild);ygr=c}c=ygr;return c},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Xuq=function(c,f){var d,q;f=f===void 0?{}:f;var Z,M,g,O,l,m,H,A,Y,t,E,J;return _.k(function(X){switch(X.nextAddress){case 1:Z=f;M=Z.shouldWrap===void 0?!0:Z.shouldWrap;g=Z.skipTransitionTimeoutMs===void 0?300:Z.skipTransitionTimeoutMs;O=Z.beforeTransition;l=Z.afterTransition;if(!M||!document.startViewTransition||document.visibilityState==="hidden")return X.return(c());d=window.innerWidth;q=window.innerHeight;m=!1;(H=O)==null||H();_.iY(X,2);A=document.startViewTransition(c);Y=setTimeout(function(){A.skipTransition();
m=!0},g);
return X.yield(A.ready,4);case 4:return clearTimeout(Y),X.yield(A.finished,5);case 5:clearTimeout(Y);(t=l)==null||t();_.Pq(X,0);break;case 2:E=_.Yw(X),(J=l)==null||J(),E&&!m&&document.visibilityState!=="hidden"&&d===window.innerWidth&&q===window.innerHeight&&_.VO(E),_.Fm(X)}})};
_.Ix=function(){for(var c=Array(36),f=0,d,q=0;q<36;q++)q==8||q==13||q==18||q==23?c[q]="-":q==14?c[q]="4":(f<=2&&(f=33554432+Math.random()*16777216|0),d=f&15,f>>=4,c[q]=_.zc_[q==19?d&3|8:d]);return c.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 uEr=_.pp(['<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>']),
v6c=_.m$T(uEr);v6c.setAttribute("style","display: none;");document.head.appendChild(v6c.content);_.PE=_.HuY(function(c){var f=_.A5("DIV");c&&(f.className=c);f.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";c=_.A5("DIV");_.mQT(c,"200px","200px");f.appendChild(c);document.body.appendChild(f);c=f.offsetWidth-f.clientWidth;_.Y6(f);return c});var hWC;var wuC;var Rx=function(){var c=_.z.apply(this,arguments)||this;c.icon=null;return c};
_.K(Rx,_.z);Rx.prototype.dismiss=function(){_.CZ(this.hostElement,"yt-live-chat-error-message-dismiss")};
Rx.prototype.computeIcon=function(c){return c&&c.iconType?"yt-icons:"+c.iconType.toLowerCase():"yt-icons:close"};
_.y([_.L(),_.D("design:type",Object)],Rx.prototype,"data",void 0);_.y([_.L({computed:"computeIcon(data.icon)"}),_.D("design:type",Object)],Rx.prototype,"icon",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Rx);
_.h(Rx,"yt-live-chat-error-message-renderer",function(){if(wuC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;hWC===void 0&&(hWC=document.createElement("template"));var q=hWC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);wuC=c}c=wuC;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Gl3,cP8,f4h,dND,MM8,glD,kYM,OrX,K4,l4M,skW,EH,Bzv,irP,Tz8,mN8,HrM,APh,YCW,FhS,tMD,brh,Khh,Elv,nlJ,$NM,Qk8,SCP,Lhq,zGU,JPh,n4,a4M,VMX,XNv,hGW,wNh,yPM,WhU,DNJ,eGX,ukD,vl8,I4E,Peh,RGP,UND,pNq,Nz8,olW;Gl3=function(c,f){return _.Bb(c.entities,"timedMarkersListSyncEntity",f)};
cP8=function(c,f){return _.Bb(c.entities,"liveReactionsDataEntity",f)};
f4h=function(c,f){c=_.Bb(c.entities,"booleanEntity",f);return!(!c||!c.value)};
dND=function(c,f){var d=_.X2();d&&c&&_.Dr(d,_.Q1(c),f)};
_.jkD=function(c){return c.watch.isWatchActive};
_.qC8=function(c){return _.Wr(c)||_.D7(c)||_.syz(c)};
_.ZrE=function(c){return!_.qC8(c)};
_.bL=function(c){return c.watch.watchScrollTop};
MM8=function(c){return c.watch.isLiveChatCollapsed};
_.rPD=function(){_.F("web_watch_log_theater_mode")&&_.uMN("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.CeP=function(c,f,d){if(!c.includes("START_TIME_PLACEHOLDER")||!c.includes("END_TIME_PLACEHOLDER"))return c;var q=new Date(0),Z=new Date(0);q.setUTCMilliseconds(f);Z.setUTCMilliseconds(d);return c.replace("START_TIME_PLACEHOLDER",_.In(q,7)).replace("END_TIME_PLACEHOLDER",_.In(Z,7))};
glD=function(c,f){return _.Bb(c.entities,"booleanEntity",f)};
kYM=function(){return function(c){_.oa(_.ER("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:c}))}};
OrX=function(c){switch(c){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}};
K4=function(c,f,d){var q=_.D9(d);c&&f&&q&&c.getPlayerPromise().then(function(Z){_.vAn(q)&&_.ab();(new _.Sz(Z)).executeCommand(q,f);_.F("continue_playback_on_desktop_companion_click")||Z.pauseVideo()})};
l4M=function(c){var f=_.Ca(),d;if(d=_.D5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var q;d=(q=d())==null?void 0:q.layoutId}else d=null;K4(f,d,c)};
skW=function(c){var f=_.Ca(),d;if(d=_.D5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var q;d=(q=d())==null?void 0:q.layoutId}else d=null;K4(f,d,c)};
EH=function(c,f){var d=c<0?"-":"";c=Math.abs(c);var q=Math.floor(c/3600),Z=Math.floor(c)%3600,M=Math.floor(Z/60);Z=Math.floor(Z)%60;var g="";(f===void 0?0:f)&&(g="."+Math.round((c-Math.floor(c))*10));return q>0?d+q+":"+(M<10?"0"+M:""+M)+":"+(Z<10?"0"+Z:""+Z)+g:d+M+":"+(Z<10?"0"+Z:""+Z)+g};
Bzv=function(c){var f=c.match(/[^0-9:\.]/g);if(f&&f.length>0)return null;c=c.split(":");if(c.length===0||c.length>3)return null;f=1;for(var d=0;c.length>0;){var q=c.pop();if(q===void 0)break;var Z=Number(q);if(q===""||isNaN(Z))return null;d+=Z*f;f*=60}return d};
irP=function(c,f,d,q){c=Math.max(d,c);f=Math.min(f,q-d);c+f>q?(d=q,c=d-f):d=c+f;return{start:c,end:d}};
Tz8=function(c,f,d,q,Z,M){c<d?c=d:c+Z>q&&(c=q-Z);f>q&&(f=q);f=Math.min(c+M,Math.max(c+Z,f));return{start:c,end:f}};
mN8=function(c,f,d,q,Z,M){f>q?f=q:f-Z<d&&(f=d+Z);c<d&&(c=d);c=Math.min(f-Z,Math.max(f-M,c));return{start:c,end:f}};
HrM=function(c){return _.F("web_transcript_cue_id_killswitch")?String(c):"ytd-transcript-renderer_"+c};
APh=function(c){return _.F("web_transcript_cue_id_killswitch")?!0:c.startsWith("ytd-transcript-renderer")};
YCW=function(c){var f=_.Ca(),d;if(d=_.D5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var q;d=(q=d())==null?void 0:q.layoutId}else d=null;K4(f,d,c)};
FhS=function(c){c.style.height="auto";c.style.height=Math.min(c.scrollHeight||20,80)+"px"};
tMD=function(c,f,d){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:f,hasGradientBackground:d}}],insertByPositionInSection:{sectionTargetId:c,position:"INSERTION_POSITION_LAST"}}}]}}}};
brh=function(c){var f=_.Ca(),d;d=(d=_.D5("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.layoutId:null;K4(f,d,c)};
Khh=function(c){var f=_.Ca(),d;d=(d=_.D5("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.layoutId:null;K4(f,d,c)};
Elv=function(c,f){f=f===void 0?!1:f;if(c.simpleText)c=[{text:c.simpleText}];else{var d;c=((d=c.runs)!=null?d:[]).map(function(q){return Object.assign({},q)})}if(f)for(f=_.C(c),d=f.next();!d.done;d=f.next())d.value.bold=!0;
return c};
nlJ=function(c){var f=c.startEndTimeTemplate,d=c.startTimeUtcMillis;c=c.endTimeUtcMillis;if(f&&d&&c)return _.pC(_.CeP(_.xC(f),Number(d),Number(c)))};
$NM=function(c,f){var d,q,Z=c==null?void 0:(d=c.viewCount)==null?void 0:(q=d.videoViewCountRenderer)==null?void 0:q.shortViewCount;if(!f&&Z)return Z;var M,g;return c==null?void 0:(M=c.viewCount)==null?void 0:(g=M.videoViewCountRenderer)==null?void 0:g.viewCount};
Qk8=function(c,f){var d=c==null?void 0:c.relativeDateText;return!f&&d?[d,!0]:[c==null?void 0:c.dateText,!1]};
SCP=function(c,f,d,q,Z){q=q===void 0?!0:q;Z=Z===void 0?"":Z;var M=$NM(c,f),g=_.C(Qk8(c,f)),O=g.next().value;g=g.next().value;f=f?c==null?void 0:c.sponsorsOnlyFirstTimeLongText:c==null?void 0:c.sponsorsOnlyFirstTimeShortText;var l=[];d&&M&&l.push(M);!d&&g||!O||l.push(O);c=[].concat(_.LT(l),[f,c==null?void 0:c.stationName,c==null?void 0:c.rating,c?nlJ(c):void 0,c==null?void 0:c.upNextProgramText,c==null?void 0:c.superTitleLink]).filter(function(m){return!!m});
d={runs:[]};for(M=0;M<c.length;M++)d.runs.push.apply(d.runs,_.LT(Elv(c[M],q))),M<c.length-1&&d.runs.push({text:" "+Z+" ",bold:q});return d};
Lhq=function(c){if(c)return{runs:[{text:c,bold:!0}]}};
zGU=function(c){var f,d,q,Z;if(c=c==null?void 0:(f=c.contents)==null?void 0:(d=f.twoColumnWatchNextResults)==null?void 0:(q=d.results)==null?void 0:(Z=q.results)==null?void 0:Z.contents){var M,g;return(g=(M=c.find(function(O){return!!O.videoPrimaryInfoRenderer}))==null?void 0:M.videoPrimaryInfoRenderer)==null?void 0:g.updatedMetadataEndpoint}};
JPh=function(c,f){var d;return(d=c.sourceConfigs)==null?void 0:d.find(function(q){return q.videoId===f})};
n4=function(c){return c==="End of video"||c==="End of playlist"};
a4M=function(c){var f,d,q,Z;return(f=c.getWatchNextResponse())==null?void 0:(d=f.contents)==null?void 0:(q=d.twoColumnWatchNextResults)==null?void 0:(Z=q.playlist)==null?void 0:Z.playlist};
VMX=function(c){var f,d,q,Z,M,g;return(f=a4M(c))==null?void 0:(d=f.playlistButtons)==null?void 0:(q=d.menuRenderer)==null?void 0:(Z=q.topLevelButtons)==null?void 0:(M=Z[0])==null?void 0:(g=M.playlistLoopButtonRenderer)==null?void 0:g.playlistLoopStateEntityKey};
XNv=function(c){var f=_.ql().resolve(_.W_),d;return(f=(d=_.b(f.getAutoplayEndpoint(),_.pe))==null?void 0:d.playlistId)&&f===c};
hGW=function(c,f,d,q,Z){function M(){_.a7.cancelJob($m);var g=ukD(f,d/c.getPlaybackRate()),O=g.hours,l=g.minutes;g=(g.seconds*1E3||6E4)/c.getPlaybackRate();c.setVideoTimeLeft(vl8(O,l));q&&c.getPlayerState()!==0&&c.setSleepTimerTimeLeft(vl8(O,l,!0));(O>0||l>0)&&!Z&&($m=_.QH(_.a7,M,g))}
_.a7.cancelJob($m);$m=_.QH(_.a7,M)};
wNh=function(c,f,d){function q(){_.a7.cancelJob(Qp);var Z=ukD(f,d),M=Z.hours;Z=Z.minutes;var g=6E4/c.getPlaybackRate();if(M>0||Z>0)c.setSleepTimerTimeLeft(vl8(M,Z,!0)),Qp=_.QH(_.a7,q,g)}
_.a7.cancelJob(Qp);Qp=_.QH(_.a7,q)};
yPM=function(c,f){var d=c.getVolume()/(f/500),q=function(Z){_.a7.cancelJob(SG);var M=Math.floor(Z-d);c.setVolume(M,!1);M>0&&(SG=_.QH(_.a7,function(){q(M)},500))};
_.a7.cancelJob(SG);SG=_.QH(_.a7,function(){q(c.getVolume())})};
WhU=function(c,f){_.a7.cancelJob(SG);f&&c.syncVolume()};
DNJ=function(){var c={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.HO("SLEEP_TIMER_DISRUPTED")}}}}};_.ql().resolve(_.ZM).resolveCommand(c)};
eGX=function(c){return(c.getDuration()-c.getProgressState().current)*1E3};
ukD=function(c,f){c=c+f-(0,_.qR)();if(c<=0)return{hours:0,minutes:0,seconds:0};var d=new Nz8(0,0,0,0,0,0,c);c=d.getHours();f=d.getMinutes();d=d.getSeconds();d!==0&&f++;f!==0&&f%60===0&&(c++,f=0);return{hours:c,minutes:f,seconds:d}};
vl8=function(c,f,d){return c>0&&f>0?d?_.HO("TIME_LEFT_HOURS_MINUTES",{hours:c.toString(),minutes:f.toString()}):_.HO("TIME_HOURS_MINUTES",{hours:c.toString(),minutes:f.toString()}):c>0?d?_.AQ("TIME_LEFT_HOURS",c):_.AQ("TIME_HOURS",c):d?_.HO("TIME_LEFT_MINUTES",{minutes:f.toString()}):_.HO("TIME_MINUTES",{minutes:f.toString()})};
I4E=function(c,f){if(c.timelyActions)return c.timelyActions.find(function(d){var q;return((q=_.b(d,L4))==null?void 0:q.cueRangeId)===f})};
Peh=function(c){var f=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.OK(c);c.keyMap_.forEach(function(d,q){_.hP(f,q)||this.remove(q)},c)};
RGP=function(c,f){c.reloadContinuationItemsCommandMatcher=f};
_.zM=function(c,f){c.insertBefore(f,c.childNodes[0]||null)};
UND=function(c){if(c>=48&&c<=57||c>=96&&c<=106||c>=65&&c<=90||_.sJ&&c==0)return!0;switch(c){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 _.lf;default:return!1}};
pNq=function(c){if(c.altKey&&!c.ctrlKey||c.metaKey||c.keyCode>=112&&c.keyCode<=123)return!1;if(UND(c.keyCode))return!0;switch(c.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!_.lf;default:return c.keyCode<166||c.keyCode>183}};
Nz8=function(c,f,d,q,Z,M,g){this.date=typeof c==="number"?new Date(c,f||0,d||1,q||0,Z||0,M||0,g||0):new Date(c&&c.getTime?c.getTime():_.M6())};
_.rn(Nz8,_.$X);_.r=Nz8.prototype;_.r.getHours=function(){return this.date.getHours()};
_.r.getMinutes=function(){return this.date.getMinutes()};
_.r.getSeconds=function(){return this.date.getSeconds()};
_.r.getMilliseconds=function(){return this.date.getMilliseconds()};
_.r.getUTCDay=function(){return this.date.getUTCDay()};
_.r.getUTCHours=function(){return this.date.getUTCHours()};
_.r.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.r.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.r.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.r.setHours=function(c){this.date.setHours(c)};
_.r.setMinutes=function(c){this.date.setMinutes(c)};
_.r.setSeconds=function(c){this.date.setSeconds(c)};
_.r.setMilliseconds=function(c){this.date.setMilliseconds(c)};
_.r.setUTCHours=function(c){this.date.setUTCHours(c)};
_.r.setUTCMinutes=function(c){this.date.setUTCMinutes(c)};
_.r.setUTCSeconds=function(c){this.date.setUTCSeconds(c)};
_.r.setUTCMilliseconds=function(c){this.date.setUTCMilliseconds(c)};
_.r.add=function(c){_.$X.prototype.add.call(this,c);c.hours&&this.setUTCHours(this.date.getUTCHours()+c.hours);c.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+c.minutes);c.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+c.seconds)};
_.r.JSC$11219_toIsoString=function(c){var f=_.$X.prototype.JSC$11219_toIsoString.call(this,c);return c?f+"T"+_.M0(this.getHours(),2)+":"+_.M0(this.getMinutes(),2)+":"+_.M0(this.getSeconds(),2):f+"T"+_.M0(this.getHours(),2)+_.M0(this.getMinutes(),2)+_.M0(this.getSeconds(),2)};
_.r.equals=function(c){return this.getTime()==c.getTime()};
_.r.toString=function(){return this.JSC$11219_toIsoString()};
_.r.clone=function(){var c=new Nz8(this.date);c.firstDayOfWeek_=this.firstDayOfWeek_;c.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return c};
_.xNq=function(c){return _.CC({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:c}})};
olW=new _.fi("imageTileRenderer");var GYJ=new _.fi("adGridCardCollectionViewModel");var c3D=new _.fi("carouselTitleViewModel");var fOh=new _.fi("ctaCarouselItemViewModel");var dHM=new _.fi("textFieldViewModel");_.jKJ=new _.fi("engagementPanelHeaderShowNavigationButtonCommand");var q3U=new _.fi("hideEngagementPanelScrimAction");var ZjD=new _.fi("setActivePanelItemAction");var Muh=new _.fi("showEngagementPanelScrimAction");var r3U=new _.fi("updateEngagementPanelAction");var Cr8=new _.fi("updateSearchInVideoResultsAction");var g_D=new _.fi("transcriptCueGroupRenderer");var kvh=new _.fi("transcriptCueRenderer");var Ojv=new _.fi("transcriptFooterRenderer");var lOh=new _.fi("engagementPanelAdSubtitleRenderer");var sKv=new _.fi("videoDescriptionFantasySectionViewModel");var Boq=new _.fi("deleteClipEngagementPanelCommand");var ijh=new _.fi("loopCommand");var Tov=new _.fi("changeCreatorEndscreenVisibilityCommand");var mHJ=new _.fi("liveChatCallForQuestionsRenderer");var Hjv=new _.fi("updateTimedMarkersSyncObserverCommand");var L4=new _.fi("timelyActionViewModel");var A3M=new _.fi("timelyActionsOverlayViewModel");var Y3h=new _.fi("repeatChapterCommand");var FTq=new _.fi("watchPlayerOverflowMenuCommand");var tuJ=new _.fi("compositeVideoOverlayRenderer");var bj8=new _.fi("sortFilterSubMenuRenderer");var KTS=new _.fi("switchListItemViewModel");var E_P=new _.fi("inputComposerViewModel");var n_M=new _.fi("transcriptEditSegmentCommand");var $Hq=new _.fi("transcriptUpdateSegmentTextCommand");var QKX=new _.fi("transcriptSearchBoxRenderer");var S3J=new _.fi("transcriptSegmentListRenderer");var LT8=new _.fi("transcriptSegmentRenderer");_.z_q=new _.fi("updateDateTextAction");var J3v=new _.fi("updateTitleAction");var aOJ=new _.fi("updateViewershipAction");var Vu8=new _.fi("carouselLockupRenderer");var Jn=new _.fi("expandableVideoDescriptionBodyRenderer");var XHW=new _.fi("videoDescriptionHeaderRenderer");var uyS=new _.fi("videoDescriptionYouchatSectionViewModel");_.aR=_.rx("kevlar_watch_page_horizontal_margin",24);_.v_J=_.rx("kevlar_watch_page_columns_top_padding",24);_.h_X=426+_.aR*2;_.Vp=_.rx("kevlar_watch_two_column_width_threshold",1E3);_.wHh=_.aR*2;_.y38=_.rx("kevlar_watch_secondary_width",402);_.WTD=_.rx("kevlar_watch_max_player_width",1280);_.DHq=_.rx("kevlar_watch_flexy_metadata_height",136);_.e_W=_.wHh+310+_.aR;_.Noh=_.wHh+360+_.aR;var IOW={PAUSE_CHAT:18};var Prv;var R_h;var uL=function(){return _.z.apply(this,arguments)||this};
_.K(uL,_.z);uL.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
uL.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var c=_.b(this.data.button,_.zx);c&&(c.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.ci.Object.defineProperties(uL,{template:{configurable:!0,enumerable:!0,get:function(){if(R_h===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Prv===void 0&&(Prv=document.createElement("template"));var q=Prv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);R_h=c}c=R_h;return c}}});
_.y([_.Q(_.DV),_.D("design:type",Object)],uL.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({selectorArgs:["data.enabledEntityKey"],selector:f4h,observer:"onEnabledChange"}),_.D("design:type",Boolean)],uL.prototype,"enabled",void 0);_.y([_.L(),_.D("design:type",Object)],uL.prototype,"data",void 0);_.y([_.vj({is:"yt-disableable-button-view-model",noInjection:!0})],uL);var UHh;var pH8;var xHh=["transVert01","transVert02","transVert03"],o_D="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),v$=function(){var c=_.z.apply(this,arguments)||this;c.emojiManager=_.Nj;c.isDarkTheme=document.documentElement.hasAttribute("dark");c.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};c.reactionBuckets=[];c.noEmojiIdentifier="NO_EMOJI";return c};
_.K(v$,_.z);_.r=v$.prototype;_.r.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.r.desktopFountainEmojiSizePxChanged=function(){_.la(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.r.createUserReactionAnimation=function(c){this.createEmojiAnimation(c,!0)};
_.r.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var c;((c=this.data)==null?0:c.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.ER("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.LT(this.emojiContainer.children)).forEach(function(f){f.remove()})};
_.r.detached=function(){this.cleanupFountain()};
_.r.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var c;this.reactionBuckets=_.zV.unsafeClone((c=this.emojiFountainData)==null?void 0:c.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.r.processEmojiBucket=function(c){var f=this;if(this.reactionBuckets&&!(c>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var d=this.reactionBuckets[c];this.generateEmojiAnimations(d);if(c<this.reactionBuckets.length-1){var q;if(d==null?0:(q=d.duration)==null?0:q.seconds)this.emojiBucketTimerId=setTimeout(function(){f.processEmojiBucket(c+1)},Number(d.duration.seconds)*1E3)}}};
_.r.generateEmojiAnimations=function(c){var f=this,d=this.getRandomEmojiIdFromBucketWithOverride(c);if(d&&d!==this.noEmojiIdentifier){var q=0;c.targetEps?(q=this.linearInterpolateBounded(1,20,100,12,c.emojiSizeIndex||0),this.createEmojiAnimation(d,!1,c.emojiAnimationMs,q),q=this.getEmojiDelayMsFromTargetEps(c.targetEps)):(this.createEmojiAnimation(d),q=this.getEmojiDelayMsFromDistribution(c.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){f.generateEmojiAnimations(c)},q)}};
_.r.getRandomEmojiIdFromBucketWithOverride=function(c){if(!(c&&c.reactionsData&&c.reactionsData.length&&c.totalReactions))return this.noEmojiIdentifier;for(var f=c.totalReactions,d=1,q=_.C(c.reactionsData),Z=q.next();!Z.done;Z=q.next())Z=Z.value,(Z.reactionWeightOverride||Z.reactionWeightOverride===0)&&Z.reactionCount&&(f-=Z.reactionCount,d-=Z.reactionWeightOverride);q=!0;d<0&&(q=!1,f=c.totalReactions,d=1);if(q&&d>0&&f===0)if(d===1){Z=0;for(var M=_.C(c.reactionsData),g=M.next();!g.done;g=M.next())g=
g.value,g.reactionCount&&g.reactionCount>0&&Z++;Z=1/Z;M=_.C(c.reactionsData);for(g=M.next();!g.done;g=M.next())g.value.reactionWeightOverride=Z}else for(Z=1/(1-d),M=_.C(c.reactionsData),g=M.next();!g.done;g=M.next())g=g.value,g.reactionWeightOverride&&(g.reactionWeightOverride*=Z);Z=Math.random();M=0;g=_.C(c.reactionsData);for(var O=g.next();!O.done;O=g.next())if(O=O.value,O.reactionCount&&(M=(O.reactionWeightOverride||O.reactionWeightOverride===0)&&q?M+O.reactionWeightOverride:M+d*O.reactionCount/
f,M>Z&&(O.reactionCount--,c.totalReactions--,O=this.reactionItemToEmojiString(O),O!==this.noEmojiIdentifier)))return O;return this.noEmojiIdentifier};
_.r.reactionItemToEmojiString=function(c){if(c.unicodeEmojiId)return c.unicodeEmojiId;if(c.emoteId)return c.emoteId;if(c.videoReactionType)switch(c.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.r.createEmojiAnimation=function(c,f,d,q){f=f===void 0?!1:f;this.lastEmojiRequestedForTesting=c;var Z=c.startsWith("yt-icons:"),M=_.D$(this.emojiManager,c);if(M||Z){var g=document.createElement("emoji");g.classList.add("yt-emoji-fountain-view-model");g.classList.add(xHh[Math.floor(Math.random()*xHh.length)]);var O=document.createElement("div");O.classList.add("yt-emoji-fountain-view-model");O.classList.add("horizontal-container");O.classList.add(o_D[Math.floor(Math.random()*o_D.length)]);f?(d=document.createElement("div"),
d.classList.add("user-reaction-bubble"),d.classList.add("yt-emoji-fountain-view-model"),O.appendChild(d)):(d&&(g.style.animationDuration=d+"ms",O.style.animationDuration=d+"ms"),q&&(g.style.width=q+"px",g.style.height=q+"px"));Z?(Z=document.createElement("yt-icon"),Z.polymerController.icon=c,q&&(Z.style.width=q+"px",Z.style.height=q+"px"),c=Z):c=this.emojiManager.createEmoji(M,!1);c.classList.add("yt-emoji-fountain-view-model");O.appendChild(c);g.appendChild(O);this.emojiContainer.appendChild(g);
g.addEventListener("animationend",function(){g.remove()});
var l,m;if((l=this.data)==null?0:(m=l.loggingDirectives)==null?0:m.trackingParams)f=f?_.m_(183501):_.m_(183500),dND(this.data.loggingDirectives.trackingParams,f),_.y0k(f);setTimeout(function(){g&&g.remove()},2E3)}};
_.r.getEmojiDelayMsFromDistribution=function(c){return Math.random()*(c||1)*1E3};
_.r.getEmojiDelayMsFromTargetEps=function(c){return Math.random()*2*(1/c)*1E3};
_.r.linearInterpolateBounded=function(c,f,d,q,Z){Z=Math.min(Math.max(Z,c),d);return(f*(d-Z)+q*(Z-c))/(d-c)};
v$.prototype.onEmojiFountainDataEntityUpdate=v$.prototype.onEmojiFountainDataEntityUpdate;v$.prototype.desktopFountainEmojiSizePxChanged=v$.prototype.desktopFountainEmojiSizePxChanged;v$.prototype.isActiveChanged=v$.prototype.isActiveChanged;_.y([_.L(),_.D("design:type",_.Wx)],v$.prototype,"emojiManager",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],v$.prototype,"ytLiveChatReduxBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],v$.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],v$.prototype,"data",void 0);_.y([_.L({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(c,f){return _.Bb(c.entities,"emojiFountainDataEntity",f)}}),
_.D("design:type",Object)],v$.prototype,"emojiFountainData",void 0);_.y([_.L(),_.D("design:type",Boolean)],v$.prototype,"isActive",void 0);_.y([_.m5("isActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],v$.prototype,"isActiveChanged",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],v$.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",String)],v$.prototype,"lastEmojiRequestedForTesting",void 0);
_.y([_.L({value:function(){return _.rx("desktop_fountain_emoji_size_px",20)}}),
_.D("design:type",Number)],v$.prototype,"desktopFountainEmojiSizePx",void 0);_.y([_.m5("desktopFountainEmojiSizePx"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],v$.prototype,"desktopFountainEmojiSizePxChanged",null);_.y([_.AY("#emoji-container"),_.D("design:type",HTMLElement)],v$.prototype,"emojiContainer",void 0);
_.y([_.m5("emojiFountainData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],v$.prototype,"onEmojiFountainDataEntityUpdate",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],v$);
_.h(v$,"yt-emoji-fountain-view-model",function(){if(pH8===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;UHh===void 0&&(UHh=document.createElement("template"));var q=UHh;d.call(f,q.content.cloneNode(!0),c.content.firstChild);pH8=c}c=pH8;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var GvP;var cHM;var hn=function(){return _.z.apply(this,arguments)||this};
_.K(hn,_.z);hn.prototype.onChoiceChanged=function(){this.data&&_.la(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
hn.prototype.onChoiceChanged=hn.prototype.onChoiceChanged;_.y([_.L(),_.D("design:type",Object)],hn.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],hn.prototype,"onChoiceChanged",null);_.y([_.v({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],hn);
_.h(hn,"yt-live-chat-banner-poll-choice",function(){if(cHM===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;GvP===void 0&&(GvP=document.createElement("template"));var q=GvP;d.call(f,q.content.cloneNode(!0),c.content.firstChild);cHM=c}c=cHM;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var fpv;var dQU;var w5=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_button_rework_with_live");c.small=!1;return c};
_.K(w5,_.z);w5.prototype.computeIsSmall=function(){var c;return((c=this.buttonOverrides)==null?void 0:c.size)==="S"};
w5.prototype.computeId=function(){return this.data&&this.data.targetId};
_.y([_.Q(_.e3.YtLiveChatTooltipTargetingBehavior),_.D("design:type",Object)],w5.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.y([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.D("design:type",String)],w5.prototype,"id",void 0);_.y([_.L(),_.D("design:type",Object)],w5.prototype,"buttonOverrides",void 0);_.y([_.L(),_.D("design:type",Object)],w5.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],w5.prototype,"modern",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.D("design:type",Object)],w5.prototype,"small",void 0);_.y([_.v({disableElementRegistration:!0,is:"yt-live-chat-button"})],w5);
_.h(w5,"yt-live-chat-button",function(){if(dQU===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;fpv===void 0&&(fpv=document.createElement("template"));var q=fpv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);dQU=c}c=dQU;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var jGU;var qrW;var yp=function(){var c=_.z.apply(this,arguments)||this;c.inCollapsedBanner=!1;c.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};c.questionButtonOverrides={style:"mono",type:"filled"};return c};
_.K(yp,_.z);_.r=yp.prototype;_.r.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]]"}}}}}};
_.r.onContextMenuButtonClick=function(c){this.ytLiveChatItemBehavior.showContextMenu(c)};
_.r.onYtRendererstamperFinished=function(){this.menuButton=_.r1(this.hostElement).querySelector("#menu-button")};
_.r.dataChanged=function(){var c,f;if((f=_.b((c=this.data)==null?void 0:c.overflowMenuButton,_.WQ))==null?0:f.command)this.data.contextMenuEndpoint=_.b(this.data.overflowMenuButton,_.WQ).command};
_.r.onButtonClick=function(){var c,f=_.b((c=this.data)==null?void 0:c.askQuestionButton,_.WQ);if(f){if(f.trackingParams&&(c=_.Q1(f.trackingParams))){var d=_.X2();d&&_.Rc(d,c)}_.CZ(this.hostElement,"innertube-command",f.command)}};
yp.prototype.onYtRendererstamperFinished=yp.prototype.onYtRendererstamperFinished;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],yp.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],yp.prototype,"ytLiveChatItemBehavior",void 0);_.y([_.L({observer:"dataChanged"}),_.D("design:type",Object)],yp.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yp.prototype,"inCollapsedBanner",void 0);_.y([_.L(),_.D("design:type",Object)],yp.prototype,"buttonOverrides",void 0);_.y([_.L(),_.D("design:type",Object)],yp.prototype,"questionButtonOverrides",void 0);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yp.prototype,"onYtRendererstamperFinished",null);
_.y([_.v({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],yp);
_.h(yp,"yt-live-chat-call-for-questions-renderer",function(){if(qrW===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;jGU===void 0&&(jGU=document.createElement("template"));var q=jGU;d.call(f,q.content.cloneNode(!0),c.content.firstChild);qrW=c}c=qrW;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var Z3v={};Z3v.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 c=this;window.requestAnimationFrame(function(){c.restoreFocusNode_||(c.restoreFocusNode_=document.activeElement);var f=_.DCy(c.hostElement);f.length&&f[f.length-1].focus()})},
isAttachedChanged_:function(c,f){c?this.focusChild_():f&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(c){this.hidden||_.x0(c).indexOf(this.hostElement)!==-1||(c.stopPropagation(),this.focusChild_())}};var MFX;var rHv;var W$=function(){return _.z.apply(this,arguments)||this};
_.K(W$,_.z);W$.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
W$.prototype.onClick=function(c){c.target!==this.confirmButton&&c.target!==this.cancelButton&&(this.hidden=!0)};
_.y([_.AY("#confirm_button"),_.D("design:type",Object)],W$.prototype,"confirmButton",void 0);_.y([_.AY("#cancel_button"),_.D("design:type",Object)],W$.prototype,"cancelButton",void 0);_.y([_.L(),_.D("design:type",CCh)],W$.prototype,"data",void 0);_.y([_.L({value:!0,reflectToAttribute:!0}),_.D("design:type",Boolean)],W$.prototype,"hidden",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(Z3v.YtLiveChatDialogBehavior),_.D("design:type",Object)],W$.prototype,"ytLiveChatDialogBehavior",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],W$);
var CCh=_.h(W$,"yt-live-chat-dialog-renderer",function(){if(rHv===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;MFX===void 0&&(MFX=document.createElement("template"));var q=MFX;d.call(f,q.content.cloneNode(!0),c.content.firstChild);rHv=c}c=rHv;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var gSW;var kCX,O3h=function(){if(kCX!==void 0)return kCX;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;gSW===void 0&&(gSW=document.createElement("template"));var q=gSW;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return kCX=c};var lph;var sGv;var Df=function(){var c=_.z.apply(this,arguments)||this;c.tooltip=null;c.data=null;c.id="";c.active=!1;c.icon="";c.disabled=!1;c.showTooltip=!1;c.useToggledActiveState=!0;c.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return c};
_.K(Df,_.z);_.r=Df.prototype;
_.r.dataChanged=function(){var c;((c=this.data)==null?0:c.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,_.Ok)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var f;if((f=this.data)==null?0:f.disabled)this.disabled=!0};
_.r.computeId=function(c){return c};
_.r.computeIcon=function(c,f){if(!c)return"";if(this.useToggledActiveState)return"yt-icons:"+c.toLowerCase();var d,q;return f&&((d=this.data)==null?0:(q=d.toggledIcon)==null?0:q.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+c.toLowerCase()};
_.r.logPDGEntryPoint=function(){_.qjk(_.io("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")};
_.r.immediatelyShowTooltip=function(){var c=_.r1(this.hostElement).querySelector("#tooltip");c.animationDelay=0;c.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};c.show()};
_.r.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.r.onClick=function(c){var f;((f=this.data)==null?0:f.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(),c.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.CZ(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.r.computeShowTooltip=function(c,f){return!!(c&&c.tooltip&&f)};
_.r.maybeUpdateTooltipText=function(){var c=this,f;if((f=this.data)==null?0:f.tooltip){var d=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Ok)(c.tooltip).textContent=d},250)}};
_.r.handleLiveChatActions=function(c){var f=this;c.length&&(this.id!=="creator"&&this.id!=="product-picker"||c.forEach(function(d){(d=f.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",d))&&d.durationSec===d.fullDurationSec&&f.startBubble(f.colorFromDecimal(d.startBackgroundColor))}))};
_.r.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.r.startBubble=function(c){_.la(this.hostElement,{"--yt-live-chat-monetization-button-glow":c});this.hostElement.setAttribute("bubble","")};
_.r.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.r.colorFromDecimal=function(c){typeof c==="string"&&(c=Number(c));return"rgba("+[c>>16&255,c>>8&255,c&255,(c>>24&255)/255].join()+")"};
Df.prototype.onAnimationEnd=Df.prototype.onAnimationEnd;Df.prototype.disabledChanged=Df.prototype.disabledChanged;Df.prototype.dataChanged=Df.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Df.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.e3.YtLiveChatTooltipTargetingBehavior),_.D("design:type",Object)],Df.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Df.prototype,"data",void 0);_.y([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.D("design:type",Object)],Df.prototype,"id",void 0);_.y([_.L({notify:!0,reflectToAttribute:!0}),_.D("design:type",Object)],Df.prototype,"active",void 0);
_.y([_.L({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.D("design:type",Object)],Df.prototype,"icon",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Df.prototype,"disabled",void 0);_.y([_.L({computed:"computeShowTooltip(data, disabled)"}),_.D("design:type",Object)],Df.prototype,"showTooltip",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Df.prototype,"useToggledActiveState",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Df.prototype,"dataChanged",null);_.y([_.m5("disabled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Df.prototype,"disabledChanged",null);_.y([_.Ta("animationend"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Df.prototype,"onAnimationEnd",null);
_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Df);
_.h(Df,"yt-live-chat-icon-toggle-button-renderer",function(){if(sGv===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;lph===void 0&&(lph=document.createElement("template"));var q=lph;d.call(f,q.content.cloneNode(!0),c.content.firstChild);sGv=c}c=sGv;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var BJq;var i3U;var eG=function(){return _.z.apply(this,arguments)||this};
_.K(eG,_.z);eG.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.y([_.L(),_.D("design:type",Object)],eG.prototype,"data",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);_.y([_.v({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],eG);
_.h(eG,"yt-live-chat-message-input-prompt-header-renderer",function(){if(i3U===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;BJq===void 0&&(BJq=document.createElement("template"));var q=BJq;d.call(f,q.content.cloneNode(!0),c.content.firstChild);i3U=c}c=i3U;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var TJ8;var mQE;var H3h;var AHE;var Yr8;var Fc8;var tFX=function(){return _.z.apply(this,arguments)||this};
_.K(tFX,_.z);_.y([_.L(),_.D("design:type",Object)],tFX.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],tFX);
_.h(tFX,"yt-live-chat-message-subtext-renderer",function(){if(Fc8===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Yr8===void 0&&(Yr8=document.createElement("template"));var q=Yr8;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Fc8=c}c=Fc8;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var NE=function(){var c=_.z.apply(this,arguments)||this;c.subtextOnBottom=!1;c.buttonOverrides={style:"mono",type:"tonal"};return c};
_.K(NE,_.z);NE.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],NE.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],NE.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],NE.prototype,"subtextOnBottom",void 0);_.y([_.L(),_.D("design:type",Object)],NE.prototype,"buttonOverrides",void 0);
_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],NE);
_.h(NE,"yt-live-chat-message-renderer",function(){if(AHE===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;H3h===void 0&&(H3h=document.createElement("template"));var q=H3h;d.call(f,q.content.cloneNode(!0),c.content.firstChild);AHE=c}c=AHE;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var b3h;var KcD;var IR=function(){var c=_.z.apply(this,arguments)||this;c.isRemovable=!1;c.hasPrefilledText=!1;c.isInputDirty=!1;c.overCharacterLimit=!1;c.underCharacterLimit=!1;c.showErrorMessage=!1;return c};
_.K(IR,_.z);_.r=IR.prototype;_.r.computeId=function(){return this.data.id};
_.r.computeInputData=function(){return this.data.inputData};
_.r.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.r.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.r.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.r.getLiveChatRichMessageInput=function(){return _.r1(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.r.clearInput=function(){_.r1(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.r.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.r.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.r.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.r.handleTextInputCharCountChanged=function(c){c=c.detail&&c.detail.characterCount;c!==void 0&&(this.characterCount=c,c!==0&&(this.isInputDirty=!0))};
_.r.onInputFocusOut=function(){this.isInputDirty=!0};
_.r.onClickCloseButton=function(){_.CZ(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
IR.prototype.handleTextInputCharCountChanged=IR.prototype.handleTextInputCharCountChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],IR.prototype,"data",void 0);_.y([_.L({computed:"computeId(data.id)"}),_.D("design:type",String)],IR.prototype,"id",void 0);_.y([_.L({computed:"computeInputData(data.inputData)"}),_.D("design:type",Object)],IR.prototype,"inputData",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.D("design:type",Object)],IR.prototype,"isRemovable",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.D("design:type",Object)],IR.prototype,"hasPrefilledText",void 0);_.y([_.L({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.D("design:type",Number)],IR.prototype,"charactersRemaining",void 0);
_.y([_.L(),_.D("design:type",Number)],IR.prototype,"characterCount",void 0);_.y([_.L(),_.D("design:type",Object)],IR.prototype,"isInputDirty",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.D("design:type",Object)],IR.prototype,"overCharacterLimit",void 0);_.y([_.L({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.D("design:type",Object)],IR.prototype,"underCharacterLimit",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.D("design:type",Object)],IR.prototype,"showErrorMessage",void 0);_.y([_.Ta("yt-live-chat-text-input-field-renderer-character-count-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],IR.prototype,"handleTextInputCharCountChanged",null);
_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],IR);
_.h(IR,"yt-live-chat-poll-editor-input",function(){if(KcD===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;b3h===void 0&&(b3h=document.createElement("template"));var q=b3h;d.call(f,q.content.cloneNode(!0),c.content.firstChild);KcD=c}c=KcD;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var ESM;var nS8;var $QX={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},P$=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_button_rework_with_live");c.closeButtonOverrides={iconPosition:"icon-only"};c.startButtonOverrides={style:"mono",type:"filled"};c.addOptionButtonOverrides={style:"mono",type:"text"};return c};
_.K(P$,_.z);_.r=P$.prototype;
_.r.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"}}}}};
_.r.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var c;_.b((c=this.data)==null?void 0:c.startButton,_.WQ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.r.computeId=function(){return this.data&&this.data.id||""};
_.r.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.r.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.r.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.r.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.r.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var c=0;c<this.pollEditorInfoWithDefaults.minPollOptions;c++)this.addPollOptionData()};
_.r.getIsValidPoll=function(){var c=this;if(!this.pollEditorInfoWithDefaults)return!1;var f=this.pollEditorInfoWithDefaults,d=f.minPollOptionChars,q=f.maxPollOptionChars,Z=f.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>f.maxPollQuestionChars)return!1;f=_.r1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(f).every(function(M,g){M=M.characterCount;!M&&Z[g]&&(M=c.ytRendererBehavior.getSimpleString(Z[g]).length);return M!==void 0&&M>=d&&M<=q})};
_.r.isValidPollChanged=function(){var c;_.b((c=this.data)==null?void 0:c.startButton,_.WQ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.r.addPollOptionData=function(){var c=this.pollEditorInfoWithDefaults,f=c.maxPollOptionChars,d=c.optionPlaceholderText,q=c.customOptionPlaceholderText,Z=c.pollOptionData;this.currentNumPollOptions>=c.maxPollOptions||(c={liveChatPollOptionInput:{inputData:{placeholder:q[this.currentNumPollOptions]||d,maxCharacterLimit:f},maxCharacterLimit:f,minCharacterLimit:c.minPollOptionChars,hasPrefilledText:!!q[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=c.minPollOptions}},Z.charCountErrorText&&
(c.liveChatPollOptionInput.charCountErrorText=Z.charCountErrorText),Z.charsRemainingAltLabel&&(c.liveChatPollOptionInput.charsRemainingAltLabel=Z.charsRemainingAltLabel),Z.removeOptionAltText&&(c.liveChatPollOptionInput.removeOptionAltText=Z.removeOptionAltText),this.push("pollOptionsData",c),Z=Array.from(_.r1(_.r1(this.hostElement).querySelector("#poll-options")).children),Z.forEach(function(M,g){M.polymerController.set("data.id",g)}),_.r1(Z[Z.length-1]).querySelector("#input").focus())};
_.r.getPollOptionInputValues=function(){var c=this,f=[],d=_.r1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),q=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(d).forEach(function(Z,M){var g=null;Z=Z.getLiveChatRichMessageInput();var O;(Z==null?0:(O=Z.textSegments)==null?0:O.length)?g=_.RT(Z):q[M]&&(g=c.formattedStringToLiveChatRichMessageInput(q[M]));f.push(g)});
return f};
_.r.requestCreateAndStartPoll=function(c){var f=this.getPollOptionInputValues();if(!f.some(function(q){return!q})){f={optionText:f};
var d=_.r1(_.r1(this.hostElement).querySelector("#poll-question")).firstChild;d&&d.liveChatRichMessageInput&&(f.questionText=_.RT(d.liveChatRichMessageInput));_.OX(this.hostElement,[c,f])}};
_.r.selectedChanged=function(){if(this.selected){var c=_.r1(_.r1(this.hostElement).querySelector("#start-button")).firstElementChild;if(c){var f;(f=_.r1(c).querySelector("#button")||_.C$(c).querySelector("button"))==null||f.focus()}}};
_.r.handleTextInputChanged=function(c){var f;((f=c.target)==null?void 0:f.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=c.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.r.handleStartButtonAction=function(c){c.detail.actionName==="yt-service-request"&&(c.stopPropagation(),(c=c.detail.args[1])&&this.requestCreateAndStartPoll(c))};
_.r.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.r.handleServiceRequestCompleted=function(c){this.createPollRequestInFlight=!1;(c=c.detail&&c.detail.data)&&c.success&&(_.CZ(this.hostElement,"picker-cancelled"),_.gS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.r.onCloseClick=function(){_.CZ(this.hostElement,"picker-cancelled");_.gS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.r.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.r.handlePollEditorInputClosed=function(c){var f=this.pollOptionsData.findIndex(function(d){return d.liveChatPollOptionInput.id===c.detail.id});
this.splice("pollOptionsData",f,1);this.isValidPoll=this.getIsValidPoll()};
_.r.onPickerCancelled=function(){this.reset()};
_.r.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var c=_.r1(_.r1(this.hostElement).querySelector("#poll-question")).firstChild;c&&c.setLiveChatRichMessageInput(null);if(c=_.r1(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){c=_.C(Array.from(c));for(var f=c.next();!f.done;f=c.next())f.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.r.formattedStringToLiveChatRichMessageInput=function(c){return c.simpleText?{text_segments:[c.simpleText]}:{text_segments:c.runs}};
_.ci.Object.defineProperties(P$.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($QX,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
P$.prototype.onPickerCancelled=P$.prototype.onPickerCancelled;P$.prototype.handlePollEditorInputClosed=P$.prototype.handlePollEditorInputClosed;P$.prototype.handleServiceRequestCompleted=P$.prototype.handleServiceRequestCompleted;P$.prototype.handleServiceRequestSent=P$.prototype.handleServiceRequestSent;P$.prototype.handleTextInputChanged=P$.prototype.handleTextInputChanged;P$.prototype.selectedChanged=P$.prototype.selectedChanged;P$.prototype.isValidPollChanged=P$.prototype.isValidPollChanged;
P$.prototype.shouldInitializePollChanged=P$.prototype.shouldInitializePollChanged;P$.prototype.dataChanged=P$.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],P$.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],P$.prototype,"modern",void 0);
_.y([_.L(),_.D("design:type",Object)],P$.prototype,"closeButtonOverrides",void 0);_.y([_.L(),_.D("design:type",Object)],P$.prototype,"startButtonOverrides",void 0);_.y([_.L(),_.D("design:type",Object)],P$.prototype,"addOptionButtonOverrides",void 0);_.y([_.L({computed:"computeId(data.id)",reflectToAttribute:!0}),_.D("design:type",String)],P$.prototype,"id",void 0);_.y([_.L({value:function(){return[]}}),
_.D("design:type",Array)],P$.prototype,"pollOptionsData",void 0);_.y([_.S("pollEditorInfoWithDefaults"),_.D("design:type",Object),_.D("design:paramtypes",[])],P$.prototype,"pollQuestionData",null);_.y([_.L({value:0}),_.D("design:type",Number)],P$.prototype,"pollQuestionCharacterCount",void 0);_.y([_.S("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.D("design:type",Object),_.D("design:paramtypes",[])],P$.prototype,"pollQuestionCharactersRemaining",null);
_.y([_.L({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.D("design:type",Boolean)],P$.prototype,"overQuestionCharacterLimit",void 0);_.y([_.S("data.pollEditorInfo"),_.D("design:type",Object),_.D("design:paramtypes",[])],P$.prototype,"pollEditorInfoWithDefaults",null);_.y([_.L({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.D("design:type",Number)],P$.prototype,"currentNumPollOptions",void 0);
_.y([_.L({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.D("design:type",Boolean)],P$.prototype,"hasMaxNumPollOptions",void 0);_.y([_.S("pollEditorInfoWithDefaults","pollOptionsData"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],P$.prototype,"shouldInitializePoll",null);_.y([_.L(),_.D("design:type",Object)],P$.prototype,"isValidPoll",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],P$.prototype,"createPollRequestInFlight",void 0);_.y([_.L(),_.D("design:type",Object)],P$.prototype,"selected",void 0);_.y([_.L({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.D("design:type",Boolean)],P$.prototype,"showQuestionErrorMessage",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],P$.prototype,"dataChanged",null);_.y([_.m5("shouldInitializePoll"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],P$.prototype,"shouldInitializePollChanged",null);_.y([_.m5("isValidPoll"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],P$.prototype,"isValidPollChanged",null);
_.y([_.m5("selected"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],P$.prototype,"selectedChanged",null);_.y([_.Ta("yt-live-chat-text-input-field-renderer-character-count-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],P$.prototype,"handleTextInputChanged",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],P$.prototype,"handleServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],P$.prototype,"handleServiceRequestCompleted",null);
_.y([_.Ta("yt-live-chat-poll-editor-input-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],P$.prototype,"handlePollEditorInputClosed",null);_.y([_.Ta("picker-cancelled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],P$.prototype,"onPickerCancelled",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],P$);
_.h(P$,"yt-live-chat-poll-editor-panel-renderer",function(){if(nS8===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;ESM===void 0&&(ESM=document.createElement("template"));var q=ESM;d.call(f,q.content.cloneNode(!0),c.content.firstChild);nS8=c}c=nS8;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var QGU;var SrE;var RR=function(){return _.z.apply(this,arguments)||this};
_.K(RR,_.z);RR.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
RR.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ci.Object.defineProperties(RR.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var c,f;return(c=this.data)==null?void 0:(f=c.title)==null?void 0:f.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var c;return _.D9((c=this.data)==null?void 0:c.onTapCommand)}}});
_.y([_.Q(_.F4.YtEndpointBehavior),_.D("design:type",Object)],RR.prototype,"ytEndpointBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],RR.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],RR.prototype,"itemId",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],RR.prototype,"hasPromotion",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],RR.prototype,"innertubeCommand",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],RR);
_.h(RR,"yt-live-chat-product-picker-panel-item-view-model",function(){if(SrE===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;QGU===void 0&&(QGU=document.createElement("template"));var q=QGU;d.call(f,q.content.cloneNode(!0),c.content.firstChild);SrE=c}c=SrE;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var Lcq;var z3q;var UH=function(){var c=_.z.apply(this,arguments)||this;c.id="product-picker";c.selected=!1;c.closeButtonId="close-button";c.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return c};
_.K(UH,_.z);_.r=UH.prototype;_.r.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.r.observeSelected=function(){this.selected&&this.hostElement.focus();var c=_.r1(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");c.length&&c[0].focus()};
_.r.onCloseBuyFlow=function(){_.CZ(this.hostElement,"picker-cancelled")};
_.r.onCloseClick=function(){_.CZ(this.hostElement,"picker-cancelled");var c;((c=this.data)==null?0:c.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.b(this.data.closeButton,_.zx))};
_.r.onCloseEngageWithAudienceEditorPanels=function(){_.CZ(this.hostElement,"picker-cancelled")};
UH.prototype.observeSelected=UH.prototype.observeSelected;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],UH.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],UH.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],UH.prototype,"id",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],UH.prototype,"selected",void 0);_.y([_.L(),_.D("design:type",Object)],UH.prototype,"closeButtonId",void 0);_.y([_.m5("selected"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],UH.prototype,"observeSelected",null);
_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],UH);
_.h(UH,"yt-live-chat-product-picker-panel-view-model",function(){if(z3q===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Lcq===void 0&&(Lcq=document.createElement("template"));var q=Lcq;d.call(f,q.content.cloneNode(!0),c.content.firstChild);z3q=c}c=z3q;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var JH8;var apX;var p4=function(){var c=_.z.apply(this,arguments)||this;c.iconId="";c.icon="";c.disabled=!1;c.systemIcons=_.F("kevlar_system_icons");return c};
_.K(p4,_.z);_.r=p4.prototype;_.r.computeIconId=function(c){return c&&c.icon&&c.icon.iconType?c.icon.iconType.toLowerCase():""};
_.r.computeIcon=function(c){return c&&c.icon&&c.icon.iconType?(c=c.icon.iconType.toLowerCase(),(c.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+c):""};
_.r.computeDisabled=function(c){return!!c};
_.r.computeCommand=function(c,f){return f?void 0:c};
_.r.computeTooltip=function(c,f){return f&&c?c:""};
_.r.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ci.Object.defineProperties(p4.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var c="",f,d,q;if((f=this.data)==null?0:(d=f.text)==null?0:(q=d.runs)==null?0:q.length)c=this.data.text.runs[0].text||"";else{var Z,M;if((Z=this.data)==null?0:(M=Z.text)==null?0:M.simpleText)c=this.data.text.simpleText}var g,O,l;if((g=this.data)==null?0:(O=g.subtext)==null?0:(l=O.runs)==null?0:l.length)c&&(c+=". "),c+=this.data.subtext.runs[0].text||"";else{var m,H;if((m=this.data)==null?0:(H=m.subtext)==
null?0:H.simpleText)c&&(c+=". "),c+=this.data.subtext.simpleText}return c}}});
_.y([_.Q(_.F4.YtEndpointBehavior),_.D("design:type",Object)],p4.prototype,"ytEndpointBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],p4.prototype,"data",void 0);_.y([_.L({computed:"computeIconId(data)",reflectToAttribute:!0}),_.D("design:type",Object)],p4.prototype,"iconId",void 0);
_.y([_.L({computed:"computeIcon(data)",reflectToAttribute:!0}),_.D("design:type",Object)],p4.prototype,"icon",void 0);_.y([_.L({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.D("design:type",Object)],p4.prototype,"disabled",void 0);_.y([_.L({computed:"computeCommand(data.command, disabled)"}),_.D("design:type",Object)],p4.prototype,"command",void 0);_.y([_.L({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.D("design:type",String)],p4.prototype,"tooltip",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],p4.prototype,"systemIcons",void 0);_.y([_.S("data.text","data.subtext"),_.L(),_.D("design:type",String),_.D("design:paramtypes",[])],p4.prototype,"ariaLabel",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],p4);
_.h(p4,"yt-live-chat-product-button-renderer",function(){if(apX===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;JH8===void 0&&(JH8=document.createElement("template"));var q=JH8;d.call(f,q.content.cloneNode(!0),c.content.firstChild);apX=c}c=apX;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var VFE;var XDS;var xm=function(){var c=_.z.apply(this,arguments)||this;c.selected=!1;c.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 c};
_.K(xm,_.z);_.r=xm.prototype;_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.r.computeId=function(c){return c.id||""};
_.r.onCloseClick=function(){_.CZ(this.hostElement,"picker-cancelled")};
_.r.observeSelected=function(){this.selected&&this.hostElement.focus();var c=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");c.length&&c[0].focus()};
_.r.onCloseBuyFlow=function(){_.CZ(this.hostElement,"picker-cancelled")};
_.r.onCloseEngageWithAudienceEditorPanels=function(){_.CZ(this.hostElement,"picker-cancelled")};
xm.prototype.observeSelected=xm.prototype.observeSelected;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],xm.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xm.prototype,"data",void 0);
_.y([_.L({computed:"computeId(data)",reflectToAttribute:!0}),_.D("design:type",String)],xm.prototype,"id",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xm.prototype,"selected",void 0);_.y([_.m5("selected"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xm.prototype,"observeSelected",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],xm);
_.h(xm,"yt-live-chat-product-picker-renderer",function(){if(XDS===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;VFE===void 0&&(VFE=document.createElement("template"));var q=VFE;d.call(f,q.content.cloneNode(!0),c.content.firstChild);XDS=c}c=XDS;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var uiM;var vSq;var h3M;var wDS;var oR=function(){return _.z.apply(this,arguments)||this};
_.K(oR,_.z);oR.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()};
oR.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
oR.prototype.created=function(){this.ids={background:_.Ix(),maskOne:_.Ix(),maskTwo:_.Ix(),gradient:_.Ix(),largeBackground:_.Ix(),largeGradientOne:_.Ix(),largeGradientTwo:_.Ix(),largeGradientPath:_.Ix()}};
oR.prototype.maybeLoadAnimationBackground=oR.prototype.maybeLoadAnimationBackground;_.y([_.L({value:!1}),_.D("design:type",Boolean)],oR.prototype,"useLargeBackground",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],oR.prototype,"useAnimationBackground",void 0);_.y([_.L({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.D("design:type",Boolean)],oR.prototype,"useRegularBackground",void 0);
_.y([_.L(),_.D("design:type",Object)],oR.prototype,"ids",void 0);_.y([_.L(),_.D("design:type",Object)],oR.prototype,"lottieAnimation",void 0);_.y([_.AY("#animation-background"),_.D("design:type",HTMLDivElement)],oR.prototype,"animationBackground",void 0);_.y([_.m5("useAnimationBackground"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oR.prototype,"maybeLoadAnimationBackground",null);
_.y([_.vj({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],oR);
_.h(oR,"yt-live-interactivity-component-background",function(){if(wDS===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;h3M===void 0&&(h3M=document.createElement("template"));var q=h3M;d.call(f,q.content.cloneNode(!0),c.content.firstChild);wDS=c}c=wDS;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var GM=function(){var c=_.z.apply(this,arguments)||this;c.characterCount=0;c.showInputErrorMessage=!1;c.startQnaRequestInFlight=!1;c.modern=_.F("web_button_rework_with_live");c.buttonOverrides={style:"mono",type:"filled"};c.closeButtonOverrides={iconPosition:"icon-only"};c.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return c};
_.K(GM,_.z);_.r=GM.prototype;
_.r.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]]"}}}}}};
_.r.onCharacterCountChanged=function(c){var f,d,q,Z,M=(d=_.b(this==null?void 0:(f=this.data)==null?void 0:f.creatorCallForQuestions,mHJ))==null?void 0:(q=d.inputField)==null?void 0:(Z=q.liveChatTextInputFieldRenderer)==null?void 0:Z.maxCharacterLimit,g,O;M!=null&&(c==null?void 0:(g=c.detail)==null?void 0:g.characterCount)!=null&&_.b(this==null?void 0:(O=this.data)==null?void 0:O.startButton,_.WQ)&&(f=c.detail.characterCount>M,this.set("data.startButton.buttonRenderer.isDisabled",c.detail.characterCount===
0||f),this.showInputErrorMessage=f)};
_.r.onCloseClick=function(){_.CZ(this.hostElement,"picker-cancelled");_.gS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.r.onPickerCancelled=function(){var c=_.r1(this.hostElement).querySelector("#qna-creator-text-input-field");c&&c.setLiveChatRichMessageInput(null)};
_.r.handleOpenQnaStartPanel=function(){var c=_.r1(this.hostElement).querySelector("#qna-creator-text-input-field");c&&c.focus()};
_.r.handleStartButtonAction=function(c){var f=this;if(c.detail.actionName==="yt-service-request"&&(c.stopPropagation(),c=c.detail.args[1])){var d=_.r1(this.hostElement).querySelector("#qna-creator-text-input-field"),q;(d==null?0:(q=d.liveChatRichMessageInput)==null?0:q.textSegments)&&d.liveChatRichMessageInput.textSegments.length!==0&&(q={rich_message:_.RT(d.liveChatRichMessageInput)},_.OX(this.hostElement,[c,q]).then(function(){_.CZ(f.hostElement,"picker-cancelled")}))}};
_.r.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.r.handleServiceRequestCompleted=function(c){var f;c=c==null?void 0:(f=c.detail)==null?void 0:f.data;(c==null?0:c.actions)&&c.actions.length>0?this.startQnaRequestInFlight=!1:_.gS(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.r.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
GM.prototype.handleServiceRequestError=GM.prototype.handleServiceRequestError;GM.prototype.handleServiceRequestCompleted=GM.prototype.handleServiceRequestCompleted;GM.prototype.handleServiceRequestSent=GM.prototype.handleServiceRequestSent;GM.prototype.onPickerCancelled=GM.prototype.onPickerCancelled;GM.prototype.onCharacterCountChanged=GM.prototype.onCharacterCountChanged;_.y([_.L(),_.D("design:type",Object)],GM.prototype,"characterCount",void 0);
_.y([_.L(),_.D("design:type",Object)],GM.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],GM.prototype,"showInputErrorMessage",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],GM.prototype,"startQnaRequestInFlight",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],GM.prototype,"modern",void 0);_.y([_.L(),_.D("design:type",Object)],GM.prototype,"buttonOverrides",void 0);
_.y([_.L(),_.D("design:type",Object)],GM.prototype,"closeButtonOverrides",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],GM.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.Q(_.IN.YtLiveChatItemBehavior),_.D("design:type",_.Px)],GM.prototype,"ytLiveChatItemBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],GM.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Ta("yt-live-chat-text-input-field-renderer-character-count-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],GM.prototype,"onCharacterCountChanged",null);_.y([_.Ta("picker-cancelled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],GM.prototype,"onPickerCancelled",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],GM.prototype,"handleServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],GM.prototype,"handleServiceRequestCompleted",null);
_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],GM.prototype,"handleServiceRequestError",null);_.y([_.v({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],GM);
_.h(GM,"yt-live-chat-qna-start-panel-renderer",function(){if(vSq===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;uiM===void 0&&(uiM=document.createElement("template"));var q=uiM;d.call(f,q.content.cloneNode(!0),c.content.firstChild);vSq=c}c=vSq;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var yH8;var Wc8;var cm=function(){return _.z.apply(this,arguments)||this};
_.K(cm,_.z);cm.prototype.dismiss=function(){_.CZ(this.hostElement,"yt-live-chat-error-message-dismiss")};
cm.prototype.edit=function(){_.CZ(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.y([_.L(),_.D("design:type",Object)],cm.prototype,"data",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],cm);
_.h(cm,"yt-live-chat-text-actions-error-message-renderer",function(){if(Wc8===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;yH8===void 0&&(yH8=document.createElement("template"));var q=yH8;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Wc8=c}c=Wc8;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var DQh;var e38;var NJv;var Iph;var fH=function(){var c=_.z.apply(this,arguments)||this;c.isDarkTheme=document.documentElement.hasAttribute("dark");c.newnessDotEligible=!1;return c};
_.K(fH,_.z);fH.prototype.sendReaction=function(){var c,f,d=((c=this.data)==null?void 0:c.emojiId)||((f=this.data)==null?void 0:f.emoteId),q;d&&((q=this.data)==null?0:q.shouldTriggerAnimation)&&_.gS(this.hostElement,"yt-create-user-reaction-animation",[d]);var Z;(c=_.D9((Z=this.data)==null?void 0:Z.onTap))&&_.Ae(c,this.hostElement);this.showNewnessDot&&_.gS(this.hostElement,"yt-hide-newness-dot")};
fH.prototype.onClick=function(c){(!c||c.clientX||c.clientY)&&this.sendReaction()};
fH.prototype.onKeyDown=function(c){c.key!=="Enter"&&c.key!==" "||c.repeat||this.sendReaction()};
_.ci.Object.defineProperties(fH.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var c,f;return!!(((c=this.data)==null?0:c.emojiId)||((f=this.data)==null?0:f.emoteId))}}});
_.y([_.L(),_.D("design:type",Object)],fH.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],fH.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",Object)],fH.prototype,"newnessDotEligible",void 0);_.y([_.S("data.maybeShowNewnessDot"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],fH.prototype,"showNewnessDot",null);_.y([_.S("data.emojiId","data.emoteId"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],fH.prototype,"useYtImage",null);
_.y([_.vj({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],fH);
_.h(fH,"yt-reaction-control-panel-button-view-model",function(){if(Iph===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;NJv===void 0&&(NJv=document.createElement("template"));var q=NJv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Iph=c}c=Iph;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var PCh;var R38;var dc=function(){var c=_.z.apply(this,arguments)||this;c.reactionControlPanelExpanded=!1;c.isDarkTheme=document.documentElement.hasAttribute("dark");c.newnessDotEligible=!1;return c};
_.K(dc,_.z);_.r=dc.prototype;_.r.expandedButtonsChanged=function(){var c,f;_.la(this.hostElement,{"--expanded-buttons-height":((f=(c=this.expandedButtonsData)==null?void 0:c.length)!=null?f:0)*36+"px"})};
_.r.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}}};
_.r.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.r.onMouseLeave=function(){var c=this;this.collapseTimer=setTimeout(function(){c.reactionControlPanelExpanded=!1},500)};
_.r.onFocusIn=function(){this.onMouseEnter()};
_.r.onFocusOut=function(){this.onMouseLeave()};
_.r.onCollapsedButtonFocusIn=function(){var c=this;setTimeout(function(){var f;(f=c.expandedButtons.querySelector("button"))==null||f.focus()},100)};
_.r.onCollapsedButtonFocusOut=function(c){c.stopPropagation()};
_.ci.Object.defineProperties(dc.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var c,f;return _.zV.unsafeClone((c=this.liveReactionsData)==null?void 0:c.emojiButtonData)||((f=this.data)==null?void 0:f.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var c;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((c=this.data)==null||!c.maybeShowNewnessDot)}}});
dc.prototype.expandedButtonsChanged=dc.prototype.expandedButtonsChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],dc.prototype,"ytLiveChatReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dc.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],dc.prototype,"reactionControlPanelExpanded",void 0);_.y([_.L({selectorArgs:["data.liveReactionsDataEntityKey"],selector:cP8}),_.D("design:type",Object)],dc.prototype,"liveReactionsData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],dc.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",Object)],dc.prototype,"newnessDotEligible",void 0);
_.y([_.S("liveReactionsData","data.expandedButtons"),_.D("design:type",Object),_.D("design:paramtypes",[])],dc.prototype,"expandedButtonsData",null);_.y([_.S("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.L({reflectToAttribute:!0}),_.D("design:type",Object),_.D("design:paramtypes",[])],dc.prototype,"showNewnessDot",null);_.y([_.AY("#expanded-buttons"),_.D("design:type",HTMLElement)],dc.prototype,"expandedButtons",void 0);
_.y([_.m5("expandedButtonsData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],dc.prototype,"expandedButtonsChanged",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],dc);
_.h(dc,"yt-reaction-control-panel-view-model",function(){if(R38===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;PCh===void 0&&(PCh=document.createElement("template"));var q=PCh;d.call(f,q.content.cloneNode(!0),c.content.firstChild);R38=c}c=R38;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var jf=new _.hw("yt-live-chat"),UQS=Date.parse("2024-7-24"),qi=function(){var c=_.z.apply(this,arguments)||this;c.emojiManager=_.Nj;c.newnessDotEligible=!1;c.newnessDotImpressionCounted=!1;c.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return c};
_.K(qi,_.z);_.r=qi.prototype;_.r.emojiCustomizationEnabledChanged=function(){var c;((c=this.data)==null?0:c.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((c=jf.getCreationTime("emoji-customization-count"))&&c<UQS&&jf.set("emoji-customization-count","0"),c=Number(jf.get("emoji-customization-count"))||0,c<3&&(this.newnessDotEligible=!0,jf.set("emoji-customization-count",(c+1).toString())),this.newnessDotImpressionCounted=!0)};
_.r.hideNewnessDot=function(){this.newnessDotEligible=!1;jf.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.r.handleReactionsMute=function(c){var f=_.X2(),d=_.m_(206221),q={checkboxData:{state:c?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};f&&_.Rc(f,d,q);this.reactionsMuted=c};
_.r.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.r.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}}};
_.ci.Object.defineProperties(qi.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var c;return(!((c=this.liveReactionsData)==null||!c.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
qi.prototype.liveReactionsSettingChanged=qi.prototype.liveReactionsSettingChanged;qi.prototype.emojiCustomizationEnabledChanged=qi.prototype.emojiCustomizationEnabledChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.DV),_.D("design:type",Object)],qi.prototype,"ytLiveChatReduxBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],qi.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qi.prototype,"data",void 0);_.y([_.L(),_.D("design:type",_.Wx)],qi.prototype,"emojiManager",void 0);_.y([_.L(),_.D("design:type",Object)],qi.prototype,"newnessDotEligible",void 0);_.y([_.L(),_.D("design:type",Object)],qi.prototype,"newnessDotImpressionCounted",void 0);
_.y([_.L({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:f4h}),_.D("design:type",Boolean)],qi.prototype,"liveReactionsSetting",void 0);_.y([_.L({selectorArgs:["data.liveReactionsDataEntityKey"],selector:cP8}),_.D("design:type",Object)],qi.prototype,"liveReactionsData",void 0);_.y([_.L({value:function(){var c=_.F("enable_lwe_web_mute"),f=jf.get("allow-reactions");return f===void 0?!1:!f&&c}}),
_.D("design:type",Boolean)],qi.prototype,"reactionsMuted",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],qi.prototype,"liveReactionsEnabled",null);_.y([_.m5("data.emojiCustomizationEnabled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qi.prototype,"emojiCustomizationEnabledChanged",null);
_.y([_.m5("liveReactionsEnabled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],qi.prototype,"liveReactionsSettingChanged",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],qi);
_.h(qi,"yt-reaction-control-panel-overlay-view-model",function(){if(e38===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;DQh===void 0&&(DQh=document.createElement("template"));var q=DQh;d.call(f,q.content.cloneNode(!0),c.content.firstChild);e38=c}c=e38;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var pDM={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(c){var f=this.$.pickers.selected;if(f){_.r1(this.hostElement).removeAttribute(f+"-open");var d="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(d="#picker-buttons",f==="emoji"&&_.r1(this.hostElement).querySelector("#emoji-picker-button")&&(d="#emoji-picker-button"));if(d=_.r1(this.hostElement).querySelector(d).querySelector("#"+f))d.active=!1}d=c;f==c&&(d=null);f!=
c&&_.r1(this.hostElement).setAttribute(c+"-open","");this.$.pickers.selected=d;_.gS(this.hostElement,"yt-live-chat-picker-changed",[d])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Zq=function(){var c=_.z.apply(this,arguments)||this;c.numSentMessages=0;c.timeoutDurationMs=0;c.timeoutMs=0;c.lastTimeoutTimeMs=0;c.pendingMessageId="";c.hasFiredInitialFocusActions=!1;c.isBeforeFocusEnabled=!0;c.id="";c.characterCount=0;c.maxCharacterLimit=0;c.remainingCharacterCount=0;c.inputExpanded=!1;c.buttonOverrides={iconPosition:"icon-only"};c.inReplyPanel=!1;c.countdownRatio=0;c.isTooltipVisible=!1;c.tooltipTimeout=1E4;c.systemIcons=_.F("kevlar_system_icons");c.tallerEmojiPicker=_.F("live_chat_taller_emoji_picker");
c.sendReplyMessageInFlight=!1;c.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"};c.onResize=function(){c.maybeToggleCharacterCount()};
return c};
_.K(Zq,_.z);_.r=Zq.prototype;
_.r.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"}}}};
_.r.attached=function(){window.addEventListener("resize",this.onResize)};
_.r.detached=function(){window.removeEventListener("resize",this.onResize)};
_.r.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.r.sendMessage=function(){var c=this,f,d,q,Z;return _.k(function(M){if(c.sendDisabled)return M.return();c.isTooltipVisible&&_.gS(c.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(c.data.sendButton&&c.data.sendButton.buttonRenderer){c.input.completeEmojis();f=c.data.sendButton.buttonRenderer.serviceEndpoint;if(!f)return M.return();q=((d=_.b(f,_.U_r))==null?void 0:d.clientIdPrefix)||"";Z={client_message_id:q+String(c.numSentMessages++),rich_message:_.RT(c.input.liveChatRichMessageInput)};
c.pendingMessageId=Z.client_message_id;c.inReplyPanel&&(c.sendReplyMessageInFlight=!0);_.OX(c.hostElement,[f,Z]);c.input.setLiveChatRichMessageInput(null)}_.Fm(M)})};
_.r.handleSendButtonAction=function(c){c.detail.actionName==="yt-service-request"&&(c.stopPropagation(),this.sendMessage())};
_.r.onSendCompleted=function(c,f){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(c=this.get("timeoutDurationUsec",f.data))&&this.handleTimeout(Number(c)/1E3);this.errorMessage=this.get("errorMessage",f.data);this.pendingMessageId=""};
_.r.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.gS(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.r.handlePickerButtonToggle=function(c){c=c.detail.targetId;this.ytPickerBehavior.togglePicker_(c);if(c==="emoji")this.input.focus();else if(c==="qna-start-panel"){var f,d;(f=_.r1(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(d=f.querySelector("#qna-creator-text-input-field"))==null||d.focus()}};
_.r.onComponentReplaced=function(c){var f,d;c.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((f=c.replacement.liveChatMessageInputRenderer)==null?0:(d=f.headerRenderer)==null?0:d.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.r.onEmojiSelect=function(c){this.input.focus();this.input.insertEmoji(c.detail)};
_.r.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.r.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.gS(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.gS(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.r.onOpenPopupAction=function(c,f){var d=this;f===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.gS(d.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.r.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.r.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.r.focusChanged=function(){this.maybeToggleCharacterCount()};
_.r.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var c=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",c>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.r.computeId=function(){return this.data&&this.data.targetId||""};
_.r.computeSendDisabled=function(c,f,d,q){c=!!(!c||f&&c>f||q);(f=_.r1(this.hostElement).querySelector("#send-button"))&&f.children.length&&(f.children[0].disabled=c);return c};
_.r.handleTimeout=function(c){this.timeoutDurationMs=this.timeoutMs=c;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.r.updateTimeout=function(c){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(c-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=c,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.r.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.r.onErrorMessageEdit=function(c){this.input.setLiveChatRichMessageInput(c.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.r.errorMessageChanged=function(){var c=this;_.Nh(function(){_.gS(c.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.r.computeAuthorNameColor=function(c){var f;if(_.F("live_chat_author_name_color_usernames")&&(c==null?0:(f=c.authorName)==null?0:f.simpleText))return _.bAk(_.KQl(c.authorName.simpleText));if(_.F("live_chat_seed_color_usernames")&&(c==null?0:c.authorSeedColorArgb))return _.bAk(_.Bh(c.authorSeedColorArgb));if(_.F("live_chat_colored_usernames"))return"#cc0000";var d;return _.F("live_chat_simple_color_usernames")&&(c==null?0:(d=c.authorName)==null?0:d.simpleText)&&(c==null?0:c.authorUsernameColorLight)&&
(c==null?0:c.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Bh(c.authorUsernameColorDark):_.Bh(c.authorUsernameColorLight):""};
_.r.onIsTooltipVisibleChanged=function(){var c=_.r1(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){c.hidden=!1;c.setAttribute("role","alert")},0):(c.hidden=!0,c.removeAttribute("role"))};
_.r.onFocusedChanged=function(c){this.inputFocused=c.detail.value};
_.ci.Object.defineProperties(Zq.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 c;return!((c=this.data)==null||!c.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:(f=c.pickers)==null?void 0:f.find(function(d){return d.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var c=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return c?this.ytRendererBehavior.getSimpleString(c):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Zq.prototype.onIsTooltipVisibleChanged=Zq.prototype.onIsTooltipVisibleChanged;Zq.prototype.errorMessageChanged=Zq.prototype.errorMessageChanged;Zq.prototype.onErrorMessageEdit=Zq.prototype.onErrorMessageEdit;Zq.prototype.onErrorMessageDismiss=Zq.prototype.onErrorMessageDismiss;Zq.prototype.focusChanged=Zq.prototype.focusChanged;Zq.prototype.characterCountChanged=Zq.prototype.characterCountChanged;Zq.prototype.onEmojiSelect=Zq.prototype.onEmojiSelect;Zq.prototype.handlePickerButtonToggle=Zq.prototype.handlePickerButtonToggle;
Zq.prototype.onSendError=Zq.prototype.onSendError;Zq.prototype.onSendCompleted=Zq.prototype.onSendCompleted;Zq.prototype.sendMessage=Zq.prototype.sendMessage;Zq.prototype.dataChanged=Zq.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Zq.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(pDM.YtPickerBehavior),_.D("design:type",Object)],Zq.prototype,"ytPickerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.e3.YtLiveChatTooltipTargetingBehavior),_.D("design:type",Object)],Zq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"hasFiredInitialFocusActions",void 0);
_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"isBeforeFocusEnabled",void 0);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"data",void 0);_.y([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.D("design:type",Object)],Zq.prototype,"id",void 0);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"characterCount",void 0);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"maxCharacterLimit",void 0);
_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"remainingCharacterCount",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zq.prototype,"inputExpanded",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Zq.prototype,"inputFocused",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Zq.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.y([_.L(),_.D("design:type",_.py)],Zq.prototype,"participantsManager",void 0);
_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"buttonOverrides",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zq.prototype,"inReplyPanel",void 0);_.y([_.S("characterCount, maxCharacterLimit, countdownActive"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Zq.prototype,"sendDisabled",null);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"countdownRatio",void 0);
_.y([_.S("countdownRatio"),_.D("design:type",Number),_.D("design:paramtypes",[])],Zq.prototype,"countdownStrokeDashOffset",null);_.y([_.S("countdownRatio"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Zq.prototype,"countdownActive",null);_.y([_.S("data.interactionMessage"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Zq.prototype,"hasInteractionMessage",null);
_.y([_.S("data.emojiPickerButton"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Zq.prototype,"hasEmojiPickerButton",null);_.y([_.S("data, characterCount"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Zq.prototype,"showAvatar",null);_.y([_.S("data.pickers"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Zq.prototype,"hasProductPickerPanelViewModel",null);
_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"errorMessage",void 0);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"genericErrorMessage",void 0);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"isTooltipVisible",void 0);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"tooltipTimeout",void 0);_.y([_.S("data.onInitialFocusCommand"),_.D("design:type",String),_.D("design:paramtypes",[])],Zq.prototype,"tooltipMessage",null);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zq.prototype,"systemIcons",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zq.prototype,"tallerEmojiPicker",void 0);_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],Zq.prototype,"authorNameColor",null);_.y([_.L(),_.D("design:type",Object)],Zq.prototype,"sendReplyMessageInFlight",void 0);_.y([_.AY("#input"),_.D("design:type",_.wGO)],Zq.prototype,"input",void 0);
_.y([_.AY("#count"),_.D("design:type",HTMLElement)],Zq.prototype,"count",void 0);_.y([_.AY("#input-container"),_.D("design:type",HTMLElement)],Zq.prototype,"inputContainer",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zq.prototype,"dataChanged",null);_.y([_.Ta("yt-live-chat-send-message"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],Zq.prototype,"sendMessage",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[Event,_.jc]),_.D("design:returntype")],Zq.prototype,"onSendCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zq.prototype,"onSendError",null);
_.y([_.Ta("yt-live-chat-icon-toggle-button-renderer-toggle"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Zq.prototype,"handlePickerButtonToggle",null);_.y([_.Ta("yt-emoji-select"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Zq.prototype,"onEmojiSelect",null);
_.y([_.m5("characterCount"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zq.prototype,"characterCountChanged",null);_.y([_.m5("inputFocused"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zq.prototype,"focusChanged",null);_.y([_.Ta("yt-live-chat-error-message-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zq.prototype,"onErrorMessageDismiss",null);
_.y([_.Ta("yt-live-chat-error-message-edit"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Zq.prototype,"onErrorMessageEdit",null);_.y([_.m5("errorMessage"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zq.prototype,"errorMessageChanged",null);_.y([_.m5("isTooltipVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zq.prototype,"onIsTooltipVisibleChanged",null);
_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Zq);
_.h(Zq,"yt-live-chat-message-input-renderer",function(){if(mQE===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;TJ8===void 0&&(TJ8=document.createElement("template"));var q=TJ8;d.call(f,q.content.cloneNode(!0),c.content.firstChild);mQE=c}c=mQE;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var xQW;var oSD;var Mi=function(){var c=_.z.apply(this,arguments)||this;c.systemIcons=_.F("kevlar_system_icons");c.firedOnClickCommand=!1;c.inReplyPanel=!1;return c};
_.K(Mi,_.z);
Mi.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"}}}};
Mi.prototype.onButtonToggle=function(c){c.target.disabled||this.ytPickerBehavior.togglePicker_(c.detail.targetId)};
Mi.prototype.onClick=function(){var c=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.gS(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return c.firedOnClickCommand=!1},5E3))};
_.ci.Object.defineProperties(Mi.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:(f=c.panels)==null?void 0:f.find(function(d){return d.liveChatProductPickerPanelViewModel}))!==void 0}}});
Mi.prototype.onButtonToggle=Mi.prototype.onButtonToggle;_.y([_.Q(pDM.YtPickerBehavior),_.D("design:type",Object)],Mi.prototype,"ytPickerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Mi.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Mi.prototype,"systemIcons",void 0);_.y([_.L({reflectToAttribute:!1}),_.D("design:type",Object)],Mi.prototype,"firedOnClickCommand",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Mi.prototype,"inReplyPanel",void 0);_.y([_.S("data.pickers"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Mi.prototype,"hasProductPickerPanelViewModel",null);
_.y([_.Ta("yt-live-chat-icon-toggle-button-renderer-toggle"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Mi.prototype,"onButtonToggle",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Mi);
_.h(Mi,"yt-live-chat-restricted-participation-renderer",function(){if(oSD===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;xQW===void 0&&(xQW=document.createElement("template"));var q=xQW;d.call(f,q.content.cloneNode(!0),c.content.firstChild);oSD=c}c=oSD;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var rc=function(){var c=_.z.apply(this,arguments)||this;c.genericErrorMessage=_.pC("Error, try again.");c.inReplyPanel=!1;c.hideBorder=!1;return c};
_.K(rc,_.z);rc.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}}}}}};
_.ci.Object.defineProperties(rc,{template:{configurable:!0,enumerable:!0,get:function(){return O3h()}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rc.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],rc.prototype,"genericErrorMessage",void 0);_.y([_.L(),_.D("design:type",Object)],rc.prototype,"inReplyPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rc.prototype,"hideBorder",void 0);
_.y([_.vj({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],rc);_.h(rc,"yt-live-chat-engagement-panel-input-renderer",function(){return O3h()},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var GCh,cvD;GCh=_.m_(115994);cvD=_.m_(115993);_.CH=function(c,f,d){var q=this;var Z=d.dragDownAction;this.layer=0;this.JSC$22366_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return q.dragDownAction()}}}};
this.JSC$22366_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return q.dragDownAction()}}}};
this.fullscreen=!1;var M=_.bP();_.ij(M,GCh,this.layer);_.ij(M,cvD,this.layer);this.dragDownAction=function(){Z();_.ps(M,{visualElement:q.fullscreen?GCh:cvD})};
this.gesture=new _.gs(c,f,this.JSC$22366_watchConfig,"pandown");this.attach()};
_.CH.prototype.attach=function(){this.gesture.attach()};
_.CH.prototype.detach=function(){this.gesture.detach()};
_.CH.prototype.update=function(c){this.fullscreen=c;this.gesture.config=c?this.JSC$22366_watchFullScreenConfig:this.JSC$22366_watchConfig};var fJP={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(c){if(c&&c.length==1&&Array.isArray(c[0].loggingUrls)){c=_.zV.unsafeClone(c[0]);var f=this.macros||{},d=this.getAdModuleClient_();if(!d)return _.sX();c.loggingUrls.forEach(function(q){if(q.baseUrl){var Z=q.baseUrl;var M=f;M=M===void 0?{}:M;Z=d.getOptions().includes("replaceUrlMacros")?_.oNH(d,"replaceUrlMacros",{url:Z,additionalMapping:M}):Z;q.baseUrl=Z}},this);
c=[c]}return _.OX(this.hostElement,c)},
getAdModuleClient_:function(){var c=_.Ca(this);return c?(c=c.getPlayer())?new _.Sz(c):null:null}}]};var dSq;var kP=function(){var c=_.z.apply(this,arguments)||this;c.isCollapsed=!1;c.modernPanels=_.F("kevlar_watch_modern_panels");c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return c};
_.K(kP,_.z);_.r=kP.prototype;_.r.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.onDonateTap=function(){var c=this.get("data.donateButton.buttonRenderer.command");if(c){var f=_.X2(),d=this.get("data.donateButton.buttonRenderer.trackingParams");f&&d&&_.Rc(f,_.Q1(d));this.ytOpenPopupBehavior.openPopup(c)}};
_.r.onShowMore=function(){this.isCollapsed=!1;var c=_.X2(),f=this.get("data.expandButton.buttonRenderer.trackingParams");c&&f&&_.Rc(c,_.Q1(f))};
_.r.onShowLess=function(){this.isCollapsed=!0};
_.r.dataChanged=function(){_.la(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.r.onDarkModeToggledAction=function(c){this.isDarkTheme=c};
_.r.handleUpdate=function(c){if(c=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",c))this.set("data.startLabel",c.startLabel),this.set("data.endLabel",c.endLabel),this.set("data.progress",c.progress),this.set("data.amountRaisedLabel",c.amountRaisedLabel),this.dataChanged()};
_.r.handleOpenPopupAction=function(c){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",c)&&_.gS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.r.computeHeaderBackgroundUrl=function(c,f){if(c)return f?c.headerBackgroundDarkUrl:c.headerBackgroundUrl};
_.r.isProgressBarVisible=function(c){return!(!c||c.progress===void 0)};
_.r.headerBackgroundClass=function(){return _.hk("HTML_DIR")==="rtl"?"flip":""};
kP.prototype.dataChanged=kP.prototype.dataChanged;_.y([_.Q(_.Yd.YtOpenPopupBehavior),_.D("design:type",Object)],kP.prototype,"ytOpenPopupBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],kP.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],kP.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],kP.prototype,"isCollapsed",void 0);_.y([_.L({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.D("design:type",String)],kP.prototype,"headerBackgroundUrl",void 0);_.y([_.L(),_.D("design:type",Boolean)],kP.prototype,"isDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kP.prototype,"modernPanels",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kP.prototype,"dataChanged",null);_.y([_.v({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],kP);
_.h(kP,"ytd-donation-shelf-renderer",function(){if(dSq!==void 0)return dSq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return dSq=c},{mode:1});var jhh;var qWP=function(){return _.z.apply(this,arguments)||this};
_.K(qWP,_.z);_.y([_.L(),_.D("design:type",Object)],qWP.prototype,"data",void 0);_.y([_.v({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],qWP);
_.h(qWP,"ytd-donation-unavailable-renderer",function(){if(jhh!==void 0)return jhh;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return jhh=c},{mode:1});var ZqE;var O1=function(){return _.z.apply(this,arguments)||this};
_.K(O1,_.z);O1.prototype.computeIconType=function(c){return c?"yt-icons:"+c.toLowerCase():null};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],O1.prototype,"data",void 0);_.y([_.v({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],O1);
_.h(O1,"ytd-limited-state-message-renderer",function(){if(ZqE!==void 0)return ZqE;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ZqE=c},{mode:1});var MPW;var lU=function(){return _.z.apply(this,arguments)||this};
_.K(lU,_.z);lU.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
lU.prototype.onTap=function(c){var f=this.data&&this.data.endpoint;f&&!_.qY(_.x0(c),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.CZ(this.hostElement,"yt-navigate",{endpoint:f})};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],lU.prototype,"data",void 0);_.y([_.v({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],lU);
_.h(lU,"ytd-autotagging-metadata-renderer",function(){if(MPW!==void 0)return MPW;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return MPW=c},{mode:1});var rvD;var s1=function(){return _.z.apply(this,arguments)||this};
_.K(s1,_.z);s1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],s1.prototype,"data",void 0);_.y([_.v({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],s1);
_.h(s1,"ytd-autotagging-metadata-row-renderer",function(){if(rvD!==void 0)return rvD;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return rvD=c},{mode:1});var CXD;var ghU;var Bm=function(){var c=_.z.apply(this,arguments)||this;c.engagementPanelContent=!1;return c};
_.K(Bm,_.z);Bm.prototype.computeHasDividerLine=function(c,f){return c&&!f};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Bm.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.D("design:type",Boolean)],Bm.prototype,"hasDividerLine",void 0);_.y([_.L(),_.D("design:type",Object)],Bm.prototype,"engagementPanelContent",void 0);
_.y([_.v({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Bm);
_.h(Bm,"ytd-metadata-row-header-renderer",function(){if(ghU!==void 0)return ghU;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ghU=c},{mode:1});var k8S;var iU=function(){return _.z.apply(this,arguments)||this};
_.K(iU,_.z);iU.prototype.computeHasDividerLine=function(c){return c};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],iU.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.D("design:type",Boolean)],iU.prototype,"hasDividerLine",void 0);_.y([_.v({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],iU);
_.h(iU,"ytd-metadata-row-renderer",function(){if(k8S!==void 0)return k8S;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return k8S=c},{mode:1});var OqX;var TJ=function(){return _.z.apply(this,arguments)||this};
_.K(TJ,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],TJ.prototype,"data",void 0);_.y([_.v({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],TJ);
_.h(TJ,"ytd-metadata-with-image-row-renderer",function(){if(OqX!==void 0)return OqX;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return OqX=c},{mode:1});var lJh;var mW=function(){var c=_.z.apply(this,arguments)||this;c.rounded=!0;c.fixie=!1;c.fullWidth=!1;return c};
_.K(mW,_.z);_.r=mW.prototype;_.r.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.onDataChanged=function(){var c=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(f){c.onEndpointLinkKeyPress(f)}))};
_.r.onEndpointLinkKeyPress=function(c){c.target===this.endpointLink&&c.keyCode===13&&_.CZ(this.hostElement,"click")};
_.r.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var c;if((c=this.data)==null?0:c.endpoint)_.ll(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.r.onYtNavigate=function(c){this.endpointHref||(c.stopPropagation(),c.preventDefault())};
_.r.onInformationButtonContainerClick=function(c){c.target.id!=="information-button-container"&&(c.stopPropagation(),c.preventDefault())};
_.r.computeStyle=function(c){return c};
_.r.computeIsThumbnailStyle=function(c){return c==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.r.computeThumbnailWidth=function(c){switch(c){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}};
_.r.computeThumbnailObjectFit=function(c){switch(c){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.ci.Object.defineProperties(mW.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?0:c.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
mW.prototype.onYtNavigate=mW.prototype.onYtNavigate;mW.prototype.onClick=mW.prototype.onClick;mW.prototype.onDataChanged=mW.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],mW.prototype,"componentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mW.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],mW.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.D("design:type",String)],mW.prototype,"componentStyle",void 0);_.y([_.L({computed:"computeIsThumbnailStyle(data.style)"}),_.D("design:type",Boolean)],mW.prototype,"isThumbnailStyle",void 0);_.y([_.L({computed:"computeThumbnailObjectFit(data.style)"}),_.D("design:type",String)],mW.prototype,"thumbnailObjectFit",void 0);
_.y([_.L({computed:"computeThumbnailWidth(data.style)"}),_.D("design:type",Number)],mW.prototype,"thumbnailWidth",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mW.prototype,"rounded",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mW.prototype,"fixie",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mW.prototype,"fullWidth",void 0);_.y([_.AY("#endpoint-link"),_.D("design:type",HTMLAnchorElement)],mW.prototype,"endpointLink",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mW.prototype,"onDataChanged",null);_.y([_.S("data.endpoint"),_.D("design:type",Object),_.D("design:paramtypes",[])],mW.prototype,"endpointHref",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],mW.prototype,"onClick",null);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],mW.prototype,"onYtNavigate",null);_.y([_.v({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],mW);
_.h(mW,"ytd-rich-metadata-renderer",function(){if(lJh!==void 0)return lJh;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return lJh=c},{mode:_.lP("kevlar_poly_si_batch_j075")?1:2});var shU;var Hm=function(){var c=_.z.apply(this,arguments)||this;c.fixie=!1;c.fullWidth=!1;return c};
_.K(Hm,_.z);Hm.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Hm.prototype.computeHasDividerLine=function(c){return c};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Hm.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.D("design:type",Boolean)],Hm.prototype,"hasDividerLine",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Hm.prototype,"fixie",void 0);_.y([_.L(),_.D("design:type",Object)],Hm.prototype,"fullWidth",void 0);
_.y([_.v({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Hm);
_.h(Hm,"ytd-rich-metadata-row-renderer",function(){if(shU!==void 0)return shU;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return shU=c},{mode:1});var A7=function(){var c=_.z.apply(this,arguments)||this;c.engagementPanelContent=!1;c.fixie=!1;c.fullWidth=!1;return c};
_.K(A7,_.z);
A7.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"}}}};
A7.prototype.computeCollapsibleItems=function(c,f,d){return c===void 0||f===void 0||d===void 0||d?[]:c.slice(f)};
A7.prototype.computeAlwaysShownItems=function(c,f){return c&&c.length?c.slice(0,f):[]};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],A7.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],A7.prototype,"collapsed",void 0);
_.y([_.L({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.D("design:type",Array)],A7.prototype,"alwaysShownItems",void 0);_.y([_.L({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.D("design:type",Array)],A7.prototype,"collapsibleItems",void 0);_.y([_.L(),_.D("design:type",Object)],A7.prototype,"engagementPanelContent",void 0);_.y([_.L(),_.D("design:type",Object)],A7.prototype,"fixie",void 0);
_.y([_.L(),_.D("design:type",Object)],A7.prototype,"fullWidth",void 0);_.y([_.v({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],A7);
_.h(A7,"ytd-metadata-row-container-renderer",function(){if(CXD!==void 0)return CXD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return CXD=c},{mode:1});var B8S;var YP=function(){var c=_.z.apply(this,arguments)||this;c.currentPageUrl="";c.baseUrl="";c.isHiddenByUser=null;c.hidden=!1;c.showAboveScrim=!1;c.watchNextGrid=_.F("kevlar_watch_grid");c.modernButtons=_.F("web_modern_buttons");c.roundedContainer=!0;c.noBorder=!1;c.roundBackground=!_.F("live_chat_round_background_killswitch");c.overflowHideChat=_.F("live_chat_overflow_hide_chat");c.forceDarkTheme=!1;c.theaterWatchWhile=!1;c.isListeningForPlayerProgress=!1;c.JSC$22402_playerEvents=new Map;c.isFrameReady=
!1;c.player=null;c.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 c};
_.K(YP,_.z);_.r=YP.prototype;_.r.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.kt(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.r.created=function(){var c=this;this.handleIframeEventListener=function(f){c.handleIframeEvent(f)};
this.handleKeyboardEventListener=function(f){c.handleKeyboardEvent(f)};
this.JSC$22402_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22402_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22402_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22402_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22402_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.r.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()};
_.r.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};
_.r.computeBaseUrl=function(c){var f="/live_chat";this.isChatReplay()&&(f="/live_chat_replay");return _.MK(_.Zk(_.qK(_.DU(c),f),null),"").toString()};
_.r.dataChanged=function(){_.F("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.r.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var c=this.url;if(this.isChatReplay()&&this.player){var f=Math.floor(this.player.getProgressState().current*1E3);c=_.Nx(_.DU(c),"playerOffsetMs",f.toString()).toString()}f=this.chatframe;try{var d=c==="about:blank"?_.YC3:_.XD(c),q=f.contentDocument.location,Z=_.w8(d);Z!==void 0&&q.replace(Z)}catch(M){f.src=c}}};
_.r.collapsedChanged=function(){_.CZ(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.r.handleIframeEvent=function(c){if(c&&this.baseUrl.startsWith(c.origin)&&c.source===this.chatframe.contentWindow&&_.Ik(c.data))if(c.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(c);else if(c.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(c.data["yt-show-feedback-dialog"]){var f=_.ql().resolve(_.dx(_.oPF));if(f){var d=c.ports,q;d&&d.length&&(q=function(){d[0].postMessage({})});
c=c.data["yt-show-feedback-dialog"];f.showFeedbackDialog(c.customProductData,c.feedbackContent,q,c.bucket)}}else if(c.data["yt-show-survey"])_.CZ(this.hostElement,"yt-show-survey",c.data["yt-show-survey"]);else if(c.data["yt-purchase-membership"])_.ql().resolve(_.ZM).resolveCommand(c.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(c.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(c.data["yt-tunnel-out-live-service-request"]);else if(c.data["yt-user-activity"])_.qu();
else if(c.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(c.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(c.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(c.data["yt-open-popup"]);else if(c.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(c.data["yt-log-flow-logging-event-command"]);else if(c.data["yt-hide-live-chat"])this.onShowHideChat();else c.data["yt-report-moderation-state-log"]&&
this.player&&(f={cpn:this.player.getVideoData().cpn},_.JN("liveChatBeingModerated",f))};
_.r.attachLiveChatResponseVeTrackingParams=function(c){c=_.Q1(c);var f=_.X2(),d=_.D5("liveChatRenderer.trackingParams",this.data);f&&d&&_.Dr(f,_.Q1(d),c)};
_.r.handleBuyflowMessages=function(c){var f=c.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,d=c.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,q=c.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.IR4(_.qo(_.pX),f.replace(/-/g,"+").replace(/_/g,"/"),function(Z){c.ports[0].postMessage({success:!0,buyFlowResponse:Z})},void 0,function(Z){c.ports[0].postMessage({success:!1,
error:Z&&Z.message||"Buyflow rejected without error."})},_.Ft().get("hl"),void 0,function(){c.ports[0].postMessage({closed:!0})},d,q)};
_.r.setupPlayerProgressRelay=function(){var c=this;if(!this.isListeningForPlayerProgress){var f=_.gy();f!=null&&f.getPlayerPromise&&(f.getPlayerPromise().then(function(d){c.playerApiReady(d)}),this.isListeningForPlayerProgress=!0)}};
_.r.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.r.playerApiReady=function(c){this.setPlayer(c)};
_.r.playerProgressHandler=function(){if(this.player){var c=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":c.current})}};
_.r.playerAdStartHandler=function(c){this.postToContentWindow({"yt-player-ad-start":c})};
_.r.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.r.playerStateChangeHandler=function(c){this.postToContentWindow({"yt-player-state-change":c})};
_.r.setPlayer=function(c){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22402_playerEvents);c&&(this.player=c,this.ytPlayerListenerBehavior.listenToPlayerEvents(c,this.JSC$22402_playerEvents),_.CZ(this.hostElement,"player-api-ready"))};
_.r.liveChatPageUrl=function(c,f,d,q){return!d||f?"about:blank":d.liveChatRenderer?(f=_.DU(this.currentPageUrl).JSC$9976_queryData_,Peh(f),c=_.DU(c),f.add("continuation",d.liveChatRenderer.continuations[0].reloadContinuationData.continuation),d=_.LX()==="USER_INTERFACE_THEME_DARK",(q||d)&&f.add("dark_theme","true"),_.Zk(c,f),q=_.DU(c.toString()),d=q.JSC$9976_queryData_,"SESSION_INDEX"in _.VJ&&(d.add("authuser",_.hk("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.VJ&&d.add("pageId",_.hk("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.VJ&&d.add("sdc",_.hk("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),q.toString()):""};
_.r.isCollapsed=function(c,f){return f!==null?f:this.isChatReplay()||c&&c.conversationBarRenderer&&c.conversationBarRenderer.availabilityMessage?!0:c?c.liveChatRenderer?c.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.F("live_chat_hide_premiere_replay_message")||c.conversationBarRenderer&&c.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.r.isHidden=function(c,f,d){var q=f&&f.conversationBarRenderer&&f.conversationBarRenderer.availabilityMessage,Z=f&&f.liveChatRenderer&&f.liveChatRenderer.showHideButton,M=f&&f.liveChatRenderer&&f.liveChatRenderer.showButton;return d&&c&&!q&&!M||!d&&c&&!q&&!Z?!0:f&&f.liveChatRenderer&&f.liveChatRenderer.initialDisplayState?f.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.r.computeButtonOverride=function(c,f){if(c&&f)return{type:"outline"}};
_.r.setCollapsedState=function(c){_.b(c,_.Vk3)&&(this.isHiddenByUser=!!_.b(c,_.Vk3).collapsed,!this.isHiddenByUser&&_.F("enable_teaser_framework_web_client")&&_.gS(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.r.forwardReduxActionToIframe=function(c){this.postToContentWindow({"yt-live-chat-forward-redux-action":c})};
_.r.onLoopRangeChange=function(c){this.showAboveScrim=!(c==null||!c.postId)};
_.r.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.r.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.r.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.r.sendDarkThemePostMessage=function(c){this.postToContentWindow({"yt-live-chat-set-dark-theme":c})};
_.r.onLiveChatBuyFlowCallback=function(c){this.postToContentWindow({"yt-live-chat-buy-flow-callback":c})};
_.r.handleKeyboardEvent=function(c){(0,_.zV.containsValue)(IOW,c.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:c.type,keyCode:c.keyCode}})};
_.r.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.r.postToContentWindow=function(c){if(this.isFrameReady)try{var f=window.location.protocol+"//"+window.location.host,d;(d=this.chatframe)!=null&&d.contentWindow?this.chatframe.contentWindow.postMessage(c,f):_.u6(new _.KD("Tried posting a message to an iframe with no content window",c))}catch(q){_.VO(q)}};
_.r.shouldHideChatFrame=function(c){return c&&_.F("hide_live_chat_button_when_collapsed")};
_.ci.Object.defineProperties(YP.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 c,f,d,q;return!!((c=this.data)==null?0:(f=c.liveChatRenderer)==null?0:(d=f.header)==null?0:(q=d.liveChatHeaderRenderer)==null?0:q.collapseButton)}}});
YP.prototype.collapsedChanged=YP.prototype.collapsedChanged;YP.prototype.urlChanged=YP.prototype.urlChanged;YP.prototype.dataChanged=YP.prototype.dataChanged;YP.prototype.onShowHideChat=YP.prototype.onShowHideChat;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],YP.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],YP.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],YP.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.Yd.YtOpenPopupBehavior),_.D("design:type",Object)],YP.prototype,"ytOpenPopupBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],YP.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],YP.prototype,"currentPageUrl",void 0);
_.y([_.L({computed:"computeBaseUrl(currentPageUrl,data)"}),_.D("design:type",Object)],YP.prototype,"baseUrl",void 0);_.y([_.L({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.D("design:type",String)],YP.prototype,"url",void 0);_.y([_.L(),_.D("design:type",Object)],YP.prototype,"isHiddenByUser",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.D("design:type",Object)],YP.prototype,"hidden",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.D("design:type",Boolean)],YP.prototype,"collapsed",void 0);_.y([_.L({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.D("design:type",Boolean)],YP.prototype,"hideChatFrame",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YP.prototype,"showAboveScrim",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YP.prototype,"watchNextGrid",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],YP.prototype,"modernButtons",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YP.prototype,"roundedContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YP.prototype,"noBorder",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],YP.prototype,"roundBackground",void 0);
_.y([_.L({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.D("design:type",Object)],YP.prototype,"toggleButtonOverride",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],YP.prototype,"overflowHideChat",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YP.prototype,"forceDarkTheme",void 0);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],YP.prototype,"enableShowWithoutHideChatButton",null);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YP.prototype,"theaterWatchWhile",void 0);_.y([_.AY("#chatframe"),_.D("design:type",HTMLIFrameElement)],YP.prototype,"chatframe",void 0);_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],YP.prototype,"onShowHideChat",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],YP.prototype,"dataChanged",null);
_.y([_.m5("url"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],YP.prototype,"urlChanged",null);_.y([_.m5("collapsed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],YP.prototype,"collapsedChanged",null);_.y([_.v({is:"ytd-live-chat-frame",disableElementRegistration:!0})],YP);
_.h(YP,"ytd-live-chat-frame",function(){if(B8S!==void 0)return B8S;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return B8S=c},{mode:1});var iqq;var Fz=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_modern_buttons");c.buttonOverrides={style:"call-to-action",type:"filled"};return c};
_.K(Fz,_.z);Fz.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=_.ya(this.data.backgroundColor)))};
Fz.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var c=this.getFormattedStringLoggingDirectives(this.data.headline);c&&this.rendererBehavior.logExplicitClick(c)}};
Fz.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var c=this.getFormattedStringLoggingDirectives(this.data.description);c&&this.rendererBehavior.logExplicitClick(c)}};
Fz.prototype.getFormattedStringLoggingDirectives=function(c){return c&&c.runs&&c.runs.length>0&&c.runs[0]&&c.runs[0].loggingDirectives?c.runs[0].loggingDirectives:null};
Fz.prototype.dataChanged=Fz.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Fz.prototype,"rendererBehavior",void 0);_.y([_.Q(fJP.YtMacroReplacementBehavior),_.D("design:type",Object)],Fz.prototype,"macroReplacementBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Fz.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Fz.prototype,"navigationEndpoint",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Fz.prototype,"enableColors",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Fz.prototype,"modern",void 0);_.y([_.L(),_.D("design:type",Object)],Fz.prototype,"buttonOverrides",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Fz.prototype,"dataChanged",null);_.y([_.v({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Fz);
_.h(Fz,"ytd-action-basic-immersive-content-renderer",function(){if(iqq!==void 0)return iqq;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return iqq=c},{mode:1});var T8D;var mSS;var t7=function(){return _.z.apply(this,arguments)||this};
_.K(t7,_.z);t7.prototype.dataChanged=function(){var c;((c=this.data)==null?void 0:c.backgroundColor)!==void 0&&_.la(this.hostElement,{"--bgu-color":_.ya(this.data.backgroundColor)})};
t7.prototype.onImageTileClick=function(){var c;((c=this.data)==null?0:c.navigationEndpoint)&&_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var f;((f=this.data)==null?0:f.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.ci.Object.defineProperties(t7.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var c;if(((c=this.data)==null?void 0:c.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 c;return((c=this.data)==null?void 0:c.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var c,f,d;if(((c=this.data)==null?void 0:(f=c.detailsLine)==null?void 0:f.texts)!=null&&((d=this.data)==null?void 0:d.detailsLine.texts.length)>0){var q;return(q=this.data)==null?void 0:q.detailsLine.texts.map(function(Z){return Z.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var c,f,d;if(((c=this.data)==null?void 0:(f=c.optionalDetailsLine)==null?void 0:f.texts)!=null&&((d=this.data)==null?void 0:d.optionalDetailsLine.texts.length)>0){var q;return(q=this.data)==null?void 0:q.optionalDetailsLine.texts.map(function(Z){return Z.text}).join("")}return null}}});
t7.prototype.dataChanged=t7.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],t7.prototype,"rendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],t7.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],t7.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.backgroundColor"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],t7.prototype,"hasBackgroundColor",null);
_.y([_.S("data.objectFit"),_.D("design:type",Object),_.D("design:paramtypes",[])],t7.prototype,"getObjectFit",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.tileRenderingStyle"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],t7.prototype,"hasTileMetadata",null);_.y([_.S("data.detailsLine"),_.D("design:type",Object),_.D("design:paramtypes",[])],t7.prototype,"getSecondaryDetails",null);
_.y([_.S("data.optionalDetailsLine"),_.D("design:type",Object),_.D("design:paramtypes",[])],t7.prototype,"getOptionalDetails",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],t7.prototype,"dataChanged",null);_.y([_.v({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],t7);
_.h(t7,"ytd-image-tile-renderer",function(){if(mSS!==void 0)return mSS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return mSS=c},{mode:1});var HqD;var bU=function(){return _.z.apply(this,arguments)||this};
_.K(bU,_.z);bU.prototype.getOpenLinkIcon=function(){return _.F("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
bU.prototype.onSitelinkTap=function(){_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.F("kevlar_command_handler_migration_killswitch"))_.ll(this.hostElement,this.data.clickCommands,this.hostElement);else for(var c=_.C(this.data.clickCommands),f=c.next();!f.done;f=c.next())this.ytComponentBehavior.resolveCommand(f.value)};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],bU.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bU.prototype,"rendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bU.prototype,"data",void 0);_.y([_.v({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],bU);
_.h(bU,"ytd-sitelink-renderer",function(){if(HqD!==void 0)return HqD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return HqD=c},{mode:1});var KH=function(){var c=_.z.apply(this,arguments)||this;c.paddingFix=_.F("enable_ads_web_ep_buenos_aires_and_padding_fix");return c};
_.K(KH,_.z);KH.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"}}}};
KH.prototype.dataChanged=function(){var c=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(f){f.clickTrackingParams&&delete f.clickTrackingParams;c.ytMacroReplacementBehavior.sendServiceRequestAction([f])})};
KH.prototype.shouldHideFooter=function(c){return!(c&&_.F("use_ads_engagement_panel_desktop_footer_cta"))};
_.ci.Object.defineProperties(KH.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:c.imageTileRenderers)===void 0||((f=this.data)==null?void 0:f.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(d){var q;return(q=_.b(d,olW))==null?void 0:q.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:c.imageTileRenderers)===void 0||((f=this.data)==null?void 0:f.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(d){var q;return((q=_.b(d,olW))==null?void 0:q.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
KH.prototype.dataChanged=KH.prototype.dataChanged;_.y([_.Q(fJP.YtMacroReplacementBehavior),_.D("design:type",Object)],KH.prototype,"ytMacroReplacementBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],KH.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],KH.prototype,"paddingFix",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.imageTileRenderers"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],KH.prototype,"removeBorderFromImageTiles",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.imageTileRenderers"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],KH.prototype,"useFooteredMetadataRenderingStyle",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],KH.prototype,"dataChanged",null);_.y([_.v({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],KH);
_.h(KH,"ytd-action-engagement-panel-content-renderer",function(){if(T8D!==void 0)return T8D;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return T8D=c},{mode:1});var AvM;var YWh=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;return _.B("ad-grid-card-image-full-metadata-view-model",{class:function(){var q;return((q=f().interaction)==null?0:q.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Z7(_.qd({visibilityCallback:function(q){var Z,M=(Z=f().interaction)==null?void 0:Z.onFirstVisible;q&&M&&_.Ph(M)},
showOption:_.dA}),_.pa(function(){return f().interaction},d)),
"aria-label":function(){var q,Z;return(q=f().interaction)==null?void 0:(Z=q.accessibility)==null?void 0:Z.label}},_.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.B(_.u7,{data:function(){return f().adImage}},{adImageViewModel:function(q){return _.B(_.HB,{data:q.data,
customCommandResolver:d})}})),_.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.B(_.T,{cond:function(){return f().headline},
then:function(q){return _.B(_.J9,{text:q,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.B(_.T,{cond:function(){return f().detailsLine},
then:function(q){return _.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.B(_.u7,{data:q},{adDetailsLineViewModel:function(Z){return _.B(_.lg,{data:Z.data,customCommandResolver:d,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.B(_.T,{cond:function(){return f().secondaryDetailsLine},
then:function(q){return _.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.B(_.u7,{data:q},{adDetailsLineViewModel:function(Z){return _.B(_.lg,{data:Z.data,customCommandResolver:d,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Fj");var FEU=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;return _.B("ad-grid-card-image-view-model",{class:function(){var q;return((q=f().interaction)==null?0:q.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Z7(_.qd({visibilityCallback:function(q){var Z,M=(Z=f().interaction)==null?void 0:Z.onFirstVisible;q&&M&&_.Ph(M)},
showOption:_.dA}),_.pa(function(){return f().interaction},d)),
"aria-label":function(){var q,Z;return(q=f().interaction)==null?void 0:(Z=q.accessibility)==null?void 0:Z.label}},_.B(_.u7,{data:function(){return f().adImage}},{adImageViewModel:function(q){return _.B(_.HB,{data:q.data,
customCommandResolver:d})}}),_.B("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.B(_.u7,{data:function(){return f().adCardBadge}},{adCardBadgeViewModel:_.FM3})))},"Gj");var tPP=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;return _.B("ad-grid-card-text-view-model",{class:function(){var q;return((q=f().interaction)==null?0:q.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Z7(_.qd({visibilityCallback:function(q){var Z,M=(Z=f().interaction)==null?void 0:Z.onFirstVisible;q&&M&&_.Ph(M)},
showOption:_.dA}),_.pa(function(){return f().interaction},d)),
"aria-label":function(){var q,Z;return(q=f().interaction)==null?void 0:(Z=q.accessibility)==null?void 0:Z.label}},_.B("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.B(_.T,{cond:function(){return f().title},
then:function(q){return _.B(_.J9,{text:q,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.B("div",{class:function(){return _.F("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.B(_.bd,{each:function(){var q;
return((q=f())==null?void 0:q.descriptions)||[]},
keyBy:"INDEX"},function(q){return _.B(_.J9,{text:q,className:function(){return _.F("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.B("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.B(_.u7,{data:function(){return f().moreInfoButton}},{adButtonViewModel:function(q){return _.B(_.qg,{data:q.data,
customCommandResolver:d})}})))},"Hj");var bqP=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;var q=c.adGridCardCollectionStyle;return _.B("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Z7(_.qd({visibilityCallback:function(Z){var M,g=(M=f().interaction)==null?void 0:M.onFirstVisible;Z&&g&&_.Ph(g)},
showOption:_.dA})),style:function(){return"grid-template-columns: repeat("+OrX(q?q():f().style)+", minmax(0, 1fr));"}},_.B(_.u7,{data:function(){var Z;
return(Z=f())==null?void 0:Z.gridCards}},{adGridCardImageViewModel:function(Z){return _.B(FEU,{data:Z.data,
customCommandResolver:d})},
adGridCardImageFullMetadataViewModel:function(Z){return _.B(YWh,{data:Z.data,customCommandResolver:d})},
adGridCardTextViewModel:function(Z){return _.B(tPP,{data:Z.data,customCommandResolver:d})}}))},"Ij");_.g_(_.dN(function(c){var f=c.data;return _.B("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Z7(_.qd({visibilityCallback:function(d){var q,Z=(q=f().interaction)==null?void 0:q.onFirstVisible;d&&Z&&_.Ph(Z)},
showOption:_.dA}),_.pa(function(){return f().interaction},l4M))},_.B("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.B(_.T,{cond:_.bUM("(min-width: "+((0,_.PE)()+_.Vp)+"px)"),
then:function(){return _.B(_.u7,{data:function(){return f().adGridCardCollection}},{adGridCardCollectionViewModel:function(d){return _.B(bqP,{data:d.data,
customCommandResolver:l4M})}})},
else:function(){return _.B(_.u7,{data:function(){return f().adGridCardCollection}},{adGridCardCollectionViewModel:function(d){return _.B(bqP,{data:d.data,
customCommandResolver:l4M,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.B("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.B(_.u7,{data:function(){return f().adButton}},{adButtonViewModel:function(d){return _.B(_.qg,{data:d.data,
customCommandResolver:l4M})}})))},"Jj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;return _.B("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Z7(_.qd({visibilityCallback:function(d){var q,Z=(q=f().interaction)==null?void 0:q.onFirstVisible;d&&Z&&_.Ph(Z)},
showOption:_.dA}),_.pa(function(){return f().interaction},skW))},_.B("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.B(_.u7,{data:function(){if(_.bUM("(min-width: "+((0,_.PE)()+_.Vp)+"px)")())var d=f().adGridCardCollection;
else{d=Object.assign({},_.b(f().adGridCardCollection,GYJ));var q;d.gridCards!==void 0&&((q=d.gridCards)==null?void 0:q.length)>1?d.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":d.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";d={adGridCardCollectionViewModel:d}}return d}},{adGridCardCollectionViewModel:function(d){return _.B(bqP,{data:d.data,
customCommandResolver:skW})}})),_.B("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.B(_.u7,{data:function(){return f().adButton}},{adButtonViewModel:function(d){return _.B(_.qg,{data:d.data,
customCommandResolver:skW})}})))},"Kj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.oM}});var E1=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return c};
_.K(E1,_.z);_.r=E1.prototype;_.r.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"}}}};
_.r.attached=function(){this.getDataFromPlayerAndRender()};
_.r.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.r.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.r.getDataFromPlayerAndRender=function(){var c=this,f=_.Ca(this.hostElement);f&&f.getPlayerPromise().then(function(d){c.getCachedDataAndListen(d)})};
_.r.getCachedDataAndListen=function(c){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(c,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(c,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=c)};
_.r.resolveCachedActions=function(){var c=_.D5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(c=c&&c())&&!_.zV.isEmpty(c)&&this.sendUpdateEngagementPanelAction(c);(c=(c=_.D5("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&c())&&!_.zV.isEmpty(c)&&this.sendChangeEngagementPanelVisibilityAction(c);(c=(c=_.D5("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&c())&&!_.zV.isEmpty(c)&&this.sendScrollToEngagementPanelCommand(c)};
_.r.sendUpdateEngagementPanelAction=function(c){var f;_.gS(this.hostElement,"yt-update-engagement-panel-action",[(f=_.zV.get(c,"action"))!=null?f:c])};
_.r.sendChangeEngagementPanelVisibilityAction=function(c){_.gS(this.hostElement,"yt-change-engagement-panel-visibility-action",[c])};
_.r.sendScrollToEngagementPanelCommand=function(c){_.gS(this.hostElement,"yt-scroll-to-engagement-panel-command",[c])};
_.r.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.F("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.u6(Error("wo"))};
E1.prototype.dataChanged=E1.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],E1.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],E1.prototype,"componentBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],E1.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],E1.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],E1.prototype,"player",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],E1.prototype,"dataChanged",null);_.y([_.v({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],E1);
_.h(E1,"ytd-ads-engagement-panel-content-renderer",function(){if(AvM!==void 0)return AvM;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return AvM=c},{mode:1});var KED;var nH=function(){var c=_.z.apply(this,arguments)||this;c.player=null;c.JSC$22439_playerEvents=new Map;c.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return c};
_.K(nH,_.z);_.r=nH.prototype;_.r.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]]"}}}}}};
_.r.created=function(){this.player=null;this.JSC$22439_playerEvents=new Map;this.JSC$22439_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22439_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22439_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22439_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.r.attached=function(){var c=this,f=_.Ca();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));f&&f.getPlayerPromise().then(function(d){c.setPlayer(d);c.set("isPageLoad",!1)})};
_.r.setPlayer=function(c){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22439_playerEvents);this.set("player",c);c&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(c,this.JSC$22439_playerEvents),c.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.r.onLoopRangeChange=function(c){var f=_.ql().resolve(_.dx(_.MY));if((!f||f.isOnWatch())&&this.hostElement.clientHeight){var d;!c&&((d=this.data)==null?0:d.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.r.onVideoProgress=function(c){var f,d,q=((f=this.player)==null?void 0:(d=f.getPresentingPlayerType)==null?void 0:d.call(f))===2;this.isAdPlaying!==q&&this.set("isAdPlaying",q);var Z;if(!q&&(Z=this.player)!=null&&Z.getLoopRange()){d=this.player.getLoopRange();f=d.startTimeMs;d=d.endTimeMs;q=this.player.getProgressState(1).seekableStart;var M;f<q*1E3&&((M=this.data)==null?0:M.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
c=d<c*1E3;var g;((g=this.player)==null?0:g.getLoopRange())&&c&&this.player.seekTo(f/1E3)}};
_.r.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.r.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.r.onYtDeleteClipEngagementPanelCommand=function(c){_.b(c,Boq).command&&this.ytComponentBehavior.resolveCommand(_.b(c,Boq).command)};
_.ci.Object.defineProperties(nH.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.voteCount)||_.pC("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],nH.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],nH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],nH.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],nH.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nH.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],nH.prototype,"isAdPlaying",void 0);_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],nH.prototype,"isPageLoad",void 0);_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],nH.prototype,"isDarkTheme",void 0);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],nH.prototype,"voteCount",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],nH.prototype,"channelEndpoint",null);_.y([_.S("channelEndpoint"),_.D("design:type",Object),_.D("design:paramtypes",[])],nH.prototype,"channelHref",null);_.y([_.v({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],nH);
_.h(nH,"ytd-clip-attribution-renderer",function(){if(KED!==void 0)return KED;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return KED=c},{mode:1});var Ehh;var $P=function(){var c=_.z.apply(this,arguments)||this;c.player=null;c.JSC$22444_playerEvents=new Map;return c};
_.K($P,_.z);_.r=$P.prototype;_.r.created=function(){this.player=null;this.JSC$22444_playerEvents=new Map;this.JSC$22444_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22444_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22444_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.r.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.r.attached=function(){var c=this,f=_.Ca();f&&f.getPlayerPromise().then(function(d){c.setPlayer(d);c.set("isPageLoad",!1)})};
_.r.setPlayer=function(c){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22444_playerEvents);this.set("player",c);if(c){this.ytPlayerListenerBehavior.listenToPlayerEvents(c,this.JSC$22444_playerEvents);var f;(c==null?void 0:(f=c.getPresentingPlayerType)==null?void 0:f.call(c))===2&&this.playerAdStartHandler()}};
_.r.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.r.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.r.onVideoProgress=function(){var c,f,d=((c=this.player)==null?void 0:(f=c.getPresentingPlayerType)==null?void 0:f.call(c))===2;this.isAdPlaying!==d&&this.set("isAdPlaying",d)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],$P.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$P.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],$P.prototype,"isAdPlaying",void 0);
_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],$P.prototype,"isPageLoad",void 0);_.y([_.v({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],$P);
_.h($P,"ytd-clip-section-footer-renderer",function(){if(Ehh!==void 0)return Ehh;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Ehh=c},{mode:1});var nhP;var $Sh;var Qu=function(){return _.z.apply(this,arguments)||this};
_.K(Qu,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Qu.prototype,"data",void 0);_.y([_.v({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Qu);
_.h(Qu,"ytd-clip-ad-state-renderer",function(){if($Sh!==void 0)return $Sh;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $Sh=c},{mode:1});var QhW;var Sf=function(){var c=_.z.apply(this,arguments)||this;c.value="";c.valid=!1;c.userChangedValue=!1;c.disabled=!1;c.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return c};
_.K(Sf,_.z);_.r=Sf.prototype;_.r.detached=function(){this.userChangedValue=!1};
_.r.handleKeyDown=function(c){if(_.lf)var f=13;else _.nmk&&_.sJ?f=13:f=13;c.keyCode===f&&c.preventDefault()};
_.r.handleInput=function(){var c=_.r1(this.hostElement).querySelector("#title");if(c){var f=(c.value||"").replace(/\r|\n/g," ");this.set("value",f);c.value=f;this.valid=c.validate();this.userChangedValue=!0}};
_.r.handleBlur=function(){this.valid=_.r1(this.hostElement).querySelector("#title").validate()};
_.r.onValueChanged=function(){_.CZ(this.hostElement,"title-changed",{title:this.value})};
_.r.onValidChanged=function(){_.CZ(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.r.setInput=function(c,f){var d=_.r1(this.hostElement).querySelector("#title");d&&(d.value=c,this.handleInput(),f&&(d.invalid=!1,this.valid=!0))};
_.r.onClipCreationDisable=function(){this.set("disabled",!0)};
_.r.onClipCreationEnable=function(){this.set("disabled",!1)};
_.r.onClipCreationVisibilityChange=function(c){var f=this;c.visible?requestAnimationFrame(function(){var d;((d=_.r1(f.hostElement).querySelector("#title"))==null?void 0:d.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Sf.prototype.onValidChanged=Sf.prototype.onValidChanged;Sf.prototype.onValueChanged=Sf.prototype.onValueChanged;Sf.prototype.handleBlur=Sf.prototype.handleBlur;Sf.prototype.handleInput=Sf.prototype.handleInput;Sf.prototype.handleKeyDown=Sf.prototype.handleKeyDown;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Sf.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Sf.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Sf.prototype,"value",void 0);_.y([_.L(),_.D("design:type",Object)],Sf.prototype,"valid",void 0);_.y([_.L(),_.D("design:type",Object)],Sf.prototype,"userChangedValue",void 0);_.y([_.L(),_.D("design:type",Object)],Sf.prototype,"disabled",void 0);_.y([_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[KeyboardEvent]),_.D("design:returntype")],Sf.prototype,"handleKeyDown",null);
_.y([_.Ta("input"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Sf.prototype,"handleInput",null);_.y([_.Ta("blur"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Sf.prototype,"handleBlur",null);_.y([_.m5("value"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Sf.prototype,"onValueChanged",null);
_.y([_.m5("valid"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Sf.prototype,"onValidChanged",null);_.y([_.v({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Sf);
_.h(Sf,"ytd-clip-creation-text-input-renderer",function(){if(QhW!==void 0)return QhW;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return QhW=c},{mode:1});var SWD;var LE8;var zhv;var JvU;var aJW;var LH=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};c.pendingStoryboardImages_={};c.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];c.tickLabelInterval=30;c.mediumTickInterval=5;c.largeTickInterval=15;c.aboveRulerHeight=32;c.rulerHeight=50;c.smallTickHeight=4;c.mediumTickHeight=8;c.largeTickHeight=16;c.mediaListeners_=
{};return c};
_.K(LH,_.z);_.r=LH.prototype;_.r.attached=function(){var c=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(f){f=_.C(["screen and (min-resolution: "+f+")","screen and (max-resolution: "+f+")"]);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=window.matchMedia(d);q&&(c.mediaListeners_[d]=c.updatePixelRatio_.bind(c),q.addEventListener?q.addEventListener("change",c.mediaListeners_[d]):q.addListener?q.addListener(c.mediaListeners_[d]):delete c.mediaListeners_[d])}})};
_.r.detached=function(){this.setPlayer(null);for(var c=_.C(Object.keys(this.mediaListeners_)),f=c.next();!f.done;f=c.next()){var d=f.value;f=this.mediaListeners_[d];(d=window.matchMedia(d))&&(d.removeEventListener?d.removeEventListener("change",f):d.removeListener&&d.removeListener(f))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.r.onVisibilityChangedAction_=function(c){var f=this;c.visible&&!this.player_&&(c=_.Ca())&&c.getPlayerPromise().then(function(d){f.setPlayer(d)})};
_.r.setPlayer=function(c){c&&this.set("player_",c)};
_.r.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.r.setUpCanvas_=function(){var c=this.rulerWidth,f=this.devicePixelRatio_,d=this.visible;this.set("canvasReady_",!1);if(d&&f!==0){d=this.aboveRulerHeight+this.rulerHeight;var q=_.r1(this.hostElement).querySelector("#ticks");q.width=c*f;q.height=d*f;q.style.width=c+"px";q.style.height=d+"px";q.getContext("2d").scale(f,f);this.set("canvasReady_",!0)}};
_.r.drawRuler_=function(c,f,d,q,Z,M,g,O,l,m,H,A){c&&d&&f&&(c=_.r1(this.hostElement).querySelector("#ticks"),f=c.getContext("2d"),f.clearRect(0,0,c.width,c.height),f.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),f.lineWidth=2,f.beginPath(),f.moveTo(0,this.aboveRulerHeight),f.lineTo(c.width,this.aboveRulerHeight),f.moveTo(0,c.height),f.lineTo(c.width,c.height),f.stroke(),this.drawRulerTicks_(c,M,Z,q),this.drawStoryboardImages_(c,d,M,Z,q),f.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
f.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(g-M,q,!1),this.rulerHeight),d=this.timeToPixels_(O-M,q,!1),f.fillRect(d,this.aboveRulerHeight,c.width-d,this.rulerHeight),this.drawSpeedLines_(c,M,A))};
_.r.drawRulerTicks_=function(c,f,d,q){var Z=c.getContext("2d");Z.save();Z.lineWidth=1;for(var M=Math.floor(Math.max(0,f-this.tickLabelInterval));M<f+d;M++){Z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var g=(M-f)*q;Z.beginPath();Z.moveTo(g,c.height);var O=this.smallTickHeight;M%this.largeTickInterval===0?O=this.largeTickHeight:M%this.mediumTickInterval===0&&(O=this.mediumTickHeight);Z.lineTo(g,c.height-O);Z.stroke();M%this.tickLabelInterval===0&&(Z.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Z.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Z.fillText(EH(M),g+4,12),Z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Z.moveTo(g,0),Z.lineTo(g,this.aboveRulerHeight),Z.stroke())}Z.restore()};
_.r.percentToHex_=function(c){c=Math.round(c*255).toString(16);c.length<2&&(c="0"+c);return c};
_.r.drawSpeedLines_=function(c,f,d){var q=c.getContext("2d");q.save();var Z=Math.min(25,Math.abs(d)-15)/25,M=c.width*.3*Z,g=c.width*-.3,O=c.width*1.3,l=this.aboveRulerHeight;c=c.height;var m=Math.round(4*Z),H=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");H.length<7&&(H="#"+H.substring(1,4).repeat(2));var A=this.percentToHex_(.5+Z/2);A=H+A;H+="00";if(Z>0)for(Z=0;Z<m;Z++){var Y=g+Math.random()*(O-g),t=l+Math.random()*(c-l),E=M+f%M,J=q.createLinearGradient(Y,t,Y+E,t);
d<0?(J.addColorStop(0,A),J.addColorStop(.4,A),J.addColorStop(.9,H)):(J.addColorStop(.1,H),J.addColorStop(.6,A),J.addColorStop(1,A));q.strokeStyle=J;q.lineWidth=1;q.beginPath();q.moveTo(Y,t);q.lineTo(Y+E,t);q.stroke()}q.restore()};
_.r.getStoryboardForTime_=function(c,f,d){d===void 0&&(d=f.getNumberOfStoryboardLevels()-1);c=f.getStoryboardFrameIndex(c,d);return f.getStoryboardFrame(c,d)};
_.r.drawStoryboardImages_=function(c,f,d,q,Z){if(!this.disabled){c=c.getContext("2d");var M=this.getStoryboardForTime_(0,f);if(M){var g=M.width/M.columns;M=M.height/M.rows;var O=g/M,l=this.rulerHeight*O;l=this.tickLabelInterval*(O<this.tickLabelInterval*Z/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Z/l):Math.round(l/(this.tickLabelInterval*Z)));var m=l*Z,H=this.rulerHeight,A=m/this.rulerHeight,Y=Math.floor(Math.max(0,d-l));for(Y-=Y%l;Y<d+q;Y+=l){var t=this.getStoryboardForTime_(Y,f),E=this.getPreloadedStoryboard_(t.url);
if(E){var J=(Y-d)*Z,X=this.aboveRulerHeight,u=t.column*g,W=t.row*M;if(O<A){var p=H/(m/O);t=g;p*=M;W+=(M-p)/2}else t=m/(H*O)*g,p=M,u+=(g-t)/2;c.drawImage(E,u,W,t,p,J,X,m,H)}else this.fetchStoryboardImage_(t)}}}};
_.r.getPreloadedStoryboard_=function(c){return this.storyboardImages_.find(function(f){if(f.src==c)return!0;var d=f.src.indexOf(c);return d!=-1&&d==f.src.length-c.length})};
_.r.fetchStoryboardImage_=function(c){var f=this,d=this.getPreloadedStoryboard_(c.url),q=this.pendingStoryboardImages_[c.url];d||q!==void 0||(d=new Promise(function(Z){var M=new Image(c.width,c.height);M.src=c.url;M.onload=function(){Z(M)};
M.onerror=function(){Z(null)}}),this.pendingStoryboardImages_[c.url]=d,d.then(function(Z){Z&&f.push("storyboardImages_",Z);
return Z}).finally(function(){delete f.pendingStoryboardImages_[c.url]}))};
_.r.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.r.timeToPixels_=function(c,f,d){c*=f;return d===void 0||d?c+"px":c};
_.r.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
LH.prototype.drawRuler_=LH.prototype.drawRuler_;LH.prototype.setUpCanvas_=LH.prototype.setUpCanvas_;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],LH.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],LH.prototype,"start",void 0);_.y([_.L({value:30}),_.D("design:type",Number)],LH.prototype,"end",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],LH.prototype,"visible",void 0);_.y([_.L(),_.D("design:type",Object)],LH.prototype,"player_",void 0);_.y([_.L(),_.D("design:type",Number)],LH.prototype,"tickSpacing",void 0);_.y([_.L(),_.D("design:type",Number)],LH.prototype,"windowSizeSec",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],LH.prototype,"rulerWidth",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],LH.prototype,"rulerShift",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],LH.prototype,"canvasReady_",void 0);_.y([_.L({value:function(){return[]}}),
_.D("design:type",Array)],LH.prototype,"storyboardImages_",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],LH.prototype,"disabled",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],LH.prototype,"forceRender_",void 0);_.y([_.L({value:1}),_.D("design:type",Number)],LH.prototype,"devicePixelRatio_",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],LH.prototype,"windowSpeed",void 0);
_.y([_.m5("visible","devicePixelRatio_","rulerWidth"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LH.prototype,"setUpCanvas_",null);
_.y([_.m5("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.D("design:type",Function),_.D("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.D("design:returntype")],LH.prototype,"drawRuler_",null);_.y([_.vj({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],LH);
_.h(LH,"yt-clip-creation-scrubber-canvas",function(){if(aJW===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);aJW=c}c=aJW;return c},
{mode:2});var VPP;var XUE;var zJ=function(){var c=_.z.apply(this,arguments)||this;c.start=0;c.end=30;c.visible=!1;c.draggingLeft_=!1;c.draggingRight_=!1;c.draggingRuler_=!1;c.draggingWindow_=!1;c.seekableStart=0;c.seekableEnd=0;c.rulerWidth_=0;c.rulerShift_=0;c.windowSlideSpeed=0;c.disabled=!1;c.initialized=!1;c.durationAccessibilityLabel="";c.activeLoopRange_=!1;c.rulerDragMouseStart_=0;c.rulerDragRulerStart_=0;c.rulerDragStartTime_=0;c.rulerDragEndTime_=0;c.dragMouseLastX_=0;c.scrollInterval_=null;c.scrubberVe_=null;c.boundHandlers_=
{};c.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return c};
_.K(zJ,_.z);_.r=zJ.prototype;
_.r.created=function(){var c=this;this.JSC$22457_playerEvents=new Map;this.JSC$22457_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22457_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22457_playerEvents.set("onStateChange",this.onStateChange_);var f={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(f).forEach(function(d){c.boundHandlers_[d]=f[d].bind(c)})};
_.r.attached=function(){this.activeLoopRange_=!1;_.r1(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.r1(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.m_(156731)};
_.r.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.r1(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.r1(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.r.onVisibilityChangedAction_=function(c){var f=this;c.visible&&!this.player_&&(c=_.Ca())&&c.getPlayerPromise().then(function(d){f.setPlayer(d)})};
_.r.setPlayer=function(c){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22457_playerEvents);c&&(this.set("player_",c),this.ytPlayerListenerBehavior.listenToPlayerEvents(c,this.JSC$22457_playerEvents))};
_.r.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.r.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.r.beginHandleDrag_=function(c){this.disabled||(c.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=c.clientX,c.target===_.r1(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():c.target===_.r1(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.r.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.r.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.r.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.r.beginRulerDrag_=function(c){this.disabled||(c.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=c.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.r.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.r.beginWindowScroll_=function(){var c=this;this.scrollInterval_=setInterval(function(){var f=c.windowSlideSpeed;if(f=_.bHH(c.start,c.boundedRulerStartLimit_())?f-.1:_.bHH(c.end,c.boundedRulerEndLimit_())?f+.1:0){var d=c.capRulerOffset_(c.rulerShift_+f);d==c.rulerShift_?f=0:(c.set("rulerShift_",d),_.CZ(c.hostElement,"set-fixed-length-range",{start:c.start+f,duration:c.end-c.start}))}c.set("windowSlideSpeed",f)},33)};
_.r.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.r.endDrag_=function(){this.logClick();var c=void 0;this.draggingRight_?c=this.end-1:this.draggingLeft_&&(c=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,c);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))};
_.r.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.r.updateRulerSize_=function(){this.set("rulerWidth_",_.r1(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.r.handleMouseDrag_=function(c){c.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(c):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(c):this.draggingWindow_&&this.handleWindowDrag_(c))};
_.r.handleRulerDrag_=function(c){c=this.pixelsToTime_(c.clientX-this.rulerDragMouseStart_);c=this.capRulerOffset_(this.rulerDragRulerStart_-c);this.set("rulerShift_",c);var f=this.rulerDragStartTime_-(this.rulerDragRulerStart_-c);_.CZ(this.hostElement,"set-fixed-length-range",{start:f,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-c)-f})};
_.r.handleWindowDrag_=function(c){var f=c.clientX-this.dragMouseLastX_;this.dragMouseLastX_=c.clientX;c=this.pixelsToTime_(f);_.CZ(this.hostElement,"set-fixed-length-range",{start:this.start+c,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.r.capRulerOffset_=function(c){var f=this.seekableStart-this.pixelsToTime_(16),d=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(f,c),d)};
_.r.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.r.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.r.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.r.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.r.handleWindowHandleDrag_=function(c){var f=c.clientX-this.dragMouseLastX_;this.dragMouseLastX_=c.clientX;c=this.pixelsToTime_(f);if(this.draggingLeft_){var d=this.start+c;var q=this.end}else this.draggingRight_&&(d=this.start,q=this.end+c);_.CZ(this.hostElement,"set-range",{start:d,end:q,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.r.onVideoProgress_=function(c){this.disabled||(c=this.timeToPixels_(c-this.rulerShift_,this.tickSpacing_),_.r1(this.hostElement).querySelector("#playhead").style.transform="translateX("+c+")")};
_.r.onClipCreationDisable_=function(){this.endDrag_()};
_.r.timeToPixels_=function(c,f,d){c*=f;return d===void 0||d?c+"px":c};
_.r.pixelsToTime_=function(c){return c/this.tickSpacing_};
_.r.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.r.centerRuler_=function(c,f,d){this.set("rulerShift_",this.capRulerOffset_(c+(f-c)/2-d/2))};
_.r.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.r.updateLoopRange_=function(c,f,d,q,Z,M,g){c&&(f&&q&&!d?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(c.pauseVideo(),c.seekTo(Z,!1,void 0,void 0,50)):this.draggingRight_?(c.pauseVideo(),c.seekTo(M-.1,!1,void 0,void 0,50)):(g!==void 0?c.seekTo(g,!0,void 0,void 0,50):(f=c.getCurrentTime(),f<Z||f>M?c.seekTo(Z,!0,void 0,void 0,50):c.seekTo(f,!0,void 0,void 0,50)),c.playVideo()),c.setLoopRange({startTimeMs:Z*1E3,endTimeMs:M*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(c.getCurrentTime())):
this.activeLoopRange_&&(c.setLoopRange(null),this.activeLoopRange_=!1))};
_.r.updateHandles_=function(){_.r1(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.r1(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.r.updateRuler_=function(){var c=this.end,f=this.start,d=this.draggableStartLimit_(),q=this.draggableEndLimit_();(f<d-.001||c>q+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.r.computeDurationLabel_=function(c,f){return c?c.replace("$clip_length",parseFloat(f).toFixed(1)):""};
_.r.computeDuration_=function(c,f){return this.isValidTime_(c)&&this.isValidTime_(f)&&c<f?f-c:0};
_.r.isValidTime_=function(c){return isNaN(parseFloat(c))||c<0?!1:this.player_?c>=this.seekableStart&&c<=this.seekableEnd:!0};
_.r.computeWindowSizeSec_=function(c,f,d){return Math.min((c||12E4)/1E3,d-f)};
_.r.computeTickSpacing_=function(c,f){return f?f/c:1};
_.r.onDragStateChanged_=function(){_.CZ(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.r.centerRangeOnTime_=function(c){var f=this.duration;c=irP(c-f/2,f,this.seekableStart,this.seekableEnd);_.CZ(this.hostElement,"set-fixed-length-range",{start:c.start,duration:c.end-c.start})};
_.r.nearlyLessThan_=function(c,f,d){return c+(d===void 0?1E-6:d)<f};
_.r.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var c=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(c,this.start)||this.nearlyLessThan_(this.end,c))&&this.centerRangeOnTime_(c)}};
_.r.onStateChange_=function(c){this.visible&&!this.disabled&&c==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.r.computeDragState_=function(c,f,d,q){return c?"left":f?"right":d?"ruler":q?"window":"none"};
_.r.logClick=function(){var c=_.X2(),f=_.V5();c&&f&&this.scrubberVe_&&(_.F("combine_ve_grafts")?_.B_(_.bP(),this.scrubberVe_,f):_.Dr(c,f,this.scrubberVe_),_.Rc(c,this.scrubberVe_))};
zJ.prototype.onDragStateChanged_=zJ.prototype.onDragStateChanged_;zJ.prototype.updateRuler_=zJ.prototype.updateRuler_;zJ.prototype.updateHandles_=zJ.prototype.updateHandles_;zJ.prototype.onUpdateLoopRange=zJ.prototype.onUpdateLoopRange;zJ.prototype.onInitializedChanged_=zJ.prototype.onInitializedChanged_;zJ.prototype.onVisibleChanged_=zJ.prototype.onVisibleChanged_;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],zJ.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",Object)],zJ.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"start",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"end",void 0);_.y([_.L({computed:"computeDuration_(start, end)"}),_.D("design:type",Number)],zJ.prototype,"duration",void 0);
_.y([_.L(),_.D("design:type",String)],zJ.prototype,"lengthTemplate",void 0);_.y([_.L({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.D("design:type",String)],zJ.prototype,"durationLabel",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"visible",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"player_",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"draggingLeft_",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"draggingRight_",void 0);
_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"draggingRuler_",void 0);_.y([_.L({value:!1}),_.D("design:type",Object)],zJ.prototype,"draggingWindow_",void 0);_.y([_.L({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.D("design:type",Number)],zJ.prototype,"tickSpacing_",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"seekableStart",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"seekableEnd",void 0);
_.y([_.L(),_.D("design:type",Number)],zJ.prototype,"windowSizeMs",void 0);_.y([_.L({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.D("design:type",Number)],zJ.prototype,"windowSizeSec_",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"rulerWidth_",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"rulerShift_",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"windowSlideSpeed",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zJ.prototype,"disabled",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"initialized",void 0);_.y([_.L(),_.D("design:type",Object)],zJ.prototype,"durationAccessibilityLabel",void 0);_.y([_.L({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.D("design:type",String)],zJ.prototype,"dragState",void 0);
_.y([_.m5("visible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zJ.prototype,"onVisibleChanged_",null);_.y([_.m5("initialized"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zJ.prototype,"onInitializedChanged_",null);_.y([_.m5("player_","visible","disabled","initialized","start","end"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zJ.prototype,"onUpdateLoopRange",null);
_.y([_.m5("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zJ.prototype,"updateHandles_",null);_.y([_.m5("start","end"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zJ.prototype,"updateRuler_",null);
_.y([_.m5("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zJ.prototype,"onDragStateChanged_",null);_.y([_.vj({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],zJ);
_.h(zJ,"yt-clip-creation-scrubber-view",function(){if(XUE===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;VPP===void 0&&(VPP=document.createElement("template"));var q=VPP;d.call(f,q.content.cloneNode(!0),c.content.firstChild);XUE=c}c=XUE;return c},{mode:2});var J7=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};c.startHighlightTimeout=0;c.endHighlightTimeout=0;return c};
_.K(J7,_.z);_.r=J7.prototype;_.r.attached=function(){var c=this;this.startInput.addEventListener("input",function(f){return c.handleStartInput_(f)});
this.endInput.addEventListener("input",function(f){return c.handleEndInput_(f)});
this.startInput.addEventListener("focusout",function(f){return c.handleStartBlur_(f)});
this.endInput.addEventListener("focusout",function(f){return c.handleEndBlur_(f)})};
_.r.setPlayer=function(c){this.set("player_",c)};
_.r.onSetFixedLengthRange_=function(c){var f=c.detail;c=f.start;var d=f.duration,q=f.startLimit;f=f.endLimit;q||(q=this.seekableStart_);f||(f=this.seekableEnd_);c=irP(c,d,q,f);this.start=c.start;this.end=c.end};
_.r.onSetRange_=function(c){var f=c.detail;c=f.start;var d=f.end,q=f.startLimit;f=f.endLimit;q||(q=this.seekableStart_);f||(f=this.seekableEnd_);if(c=Tz8(c,d,q,f,this.minLengthSec,this.maxLengthSec))this.start=c.start,this.end=c.end};
_.r.updateInputs_=function(){var c=this.end,f=this.start;this.startInput.focused||(this.startInput.value=EH(f,!0));this.endInput.focused||(this.endInput.value=EH(c,!0))};
_.r.handleStartInput_=function(c){c=Bzv(c.target.value);if(c===null)this.set("startValid",!1);else{var f=this.end,d=Tz8(c,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);d?(this.set("endWillUpdate",d.end!==f),this.set("startValid",d.start===c)):this.set("startValid",!1)}};
_.r.handleEndInput_=function(c){c=Bzv(c.target.value);if(c===null)this.set("endValid",!1);else{var f=this.start,d=mN8(this.start,c,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);d?(this.set("startWillUpdate",d.start!==f),this.set("endValid",d.end===c)):this.set("endValid",!1)}};
_.r.handleStartBlur_=function(c){c=Bzv(c.target.value);c===null?this.startInput.value=EH(this.start,!0):this.forceUpdateInputs_(Tz8(c,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.r.handleEndBlur_=function(c){c=Bzv(c.target.value);c===null?this.endInput.value=EH(this.end,!0):this.forceUpdateInputs_(mN8(this.start,c,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.r.forceUpdateInputs_=function(c){c&&(this.start=c.start,this.end=c.end);this.startInput.value=EH(this.start,!0);this.endInput.value=EH(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.r.initializeClipRange_=function(){var c=this.seekableEnd_,f=this.seekableStart_,d=this.visible_,q=this.player_;if(!q||!d||f===null||!c)this.set("initialized",!1);else if(!this.initialized){var Z=q.getCurrentTime(),M=this.getDefaultLengthSec_();d=q.getVideoData();var g=q.getPlayerState()==1,O=d.isLive;M=Math.min(M,c-f);Z=Math.max(0,Z);c=O?mN8(Z-M,Z,f,c,this.minLengthSec,this.maxLengthSec):g?irP(Z-M/2,M,f,c):irP(Z,M,f,c);this.start=c.start;this.end=c.end;this.set("initialized",!0);d.isLive&&q.seekTo(c.start);
this.startInput.value=EH(this.start,!0);this.endInput.value=EH(this.end,!0)}};
_.r.onStartChanged_=function(){var c=this;_.CZ(this.hostElement,"start-changed",{start:this.start});var f;isNaN((f=this.oldStart)!=null?f:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){c.set("highlightStart",!1);c.startHighlightTimeout=0;c.oldStart=c.start},3E3))};
_.r.onEndChanged_=function(){var c=this;_.CZ(this.hostElement,"end-changed",{end:this.end});var f;isNaN((f=this.oldEnd)!=null?f:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){c.set("highlightEnd",!1);c.endHighlightTimeout=0;c.oldEnd=c.end},3E3))};
_.r.onVisibilityChangedAction_=function(c){var f=this;this.set("visible_",c.visible);this.visible_&&!this.player_&&(c=_.Ca())&&c.getPlayerPromise().then(function(d){f.setPlayer(d)})};
_.r.computeMinLengthSec_=function(c){return c/1E3||5};
_.r.computeMaxLengthSec_=function(c){return c/1E3||60};
_.r.computeDefaultLengthSec_=function(c){return c/1E3};
_.r.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.r.computeSeekableStart_=function(c,f){return c&&f?c.getProgressState(1).seekableStart:0};
_.r.computeSeekableEnd_=function(c,f){return c&&f?c.getProgressState(1).seekableEnd:0};
_.r.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.r.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.r.onDragState_=function(c){this.set("highlightStart",c.detail.startChanging);this.set("highlightEnd",c.detail.endChanging)};
J7.prototype.onDragState_=J7.prototype.onDragState_;J7.prototype.onEndChanged_=J7.prototype.onEndChanged_;J7.prototype.onStartChanged_=J7.prototype.onStartChanged_;J7.prototype.initializeClipRange_=J7.prototype.initializeClipRange_;J7.prototype.updateInputs_=J7.prototype.updateInputs_;J7.prototype.onSetRange_=J7.prototype.onSetRange_;J7.prototype.onSetFixedLengthRange_=J7.prototype.onSetFixedLengthRange_;
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],J7.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],J7.prototype,"data",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],J7.prototype,"start",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],J7.prototype,"startValid",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],J7.prototype,"startWillUpdate",void 0);_.y([_.L({value:30}),_.D("design:type",Number)],J7.prototype,"end",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],J7.prototype,"endValid",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],J7.prototype,"endWillUpdate",void 0);_.y([_.L({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.D("design:type",Number)],J7.prototype,"minLengthSec",void 0);
_.y([_.L({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.D("design:type",Number)],J7.prototype,"maxLengthSec",void 0);_.y([_.L({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.D("design:type",Number)],J7.prototype,"defaultLengthSec",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],J7.prototype,"visible_",void 0);_.y([_.L(),_.D("design:type",Object)],J7.prototype,"player_",void 0);
_.y([_.L({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.D("design:type",Number)],J7.prototype,"seekableStart_",void 0);_.y([_.L({computed:"computeSeekableEnd_(player_, visible_)"}),_.D("design:type",Number)],J7.prototype,"seekableEnd_",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],J7.prototype,"initialized",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],J7.prototype,"disabled",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],J7.prototype,"highlightStart",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],J7.prototype,"highlightEnd",void 0);_.y([_.AY("#start"),_.D("design:type",HTMLInputElement)],J7.prototype,"startInput",void 0);_.y([_.AY("#end"),_.D("design:type",HTMLInputElement)],J7.prototype,"endInput",void 0);
_.y([_.Ta("set-fixed-length-range"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],J7.prototype,"onSetFixedLengthRange_",null);_.y([_.Ta("set-range"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],J7.prototype,"onSetRange_",null);_.y([_.m5("start","end"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],J7.prototype,"updateInputs_",null);
_.y([_.m5("player_","visible_","seekableStart_","seekableEnd_"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],J7.prototype,"initializeClipRange_",null);_.y([_.m5("start"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],J7.prototype,"onStartChanged_",null);_.y([_.m5("end"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],J7.prototype,"onEndChanged_",null);
_.y([_.Ta("clips-drag-state"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],J7.prototype,"onDragState_",null);_.y([_.vj({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],J7);
_.h(J7,"yt-clip-creation-scrubber-renderer",function(){if(JvU===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;zhv===void 0&&(zhv=document.createElement("template"));var q=zhv;d.call(f,q.content.cloneNode(!0),c.content.firstChild);JvU=c}c=JvU;return c},{mode:2});var aB=function(){var c=_.z.apply(this,arguments)||this;c.player_=null;c.JSC$22471_playerEvents=new Map;c.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return c};
_.K(aB,_.z);_.r=aB.prototype;_.r.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"}}}};
_.r.created=function(){this.JSC$22471_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22471_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22471_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22471_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.r.detached=function(){this.setPlayer(null)};
_.r.onVisibilityChangedAction_=function(c){var f=this,d;if((d=this.data)==null?0:d.externalVideoId){var q;this.videoId=(q=this.data)==null?void 0:q.externalVideoId}this.getPlayer().then(function(Z){if(c.visible)f.returnTime=Z.getCurrentTime(),f.isAtLiveHead=Z.getProgressState().isAtLiveHead;else{var M=f.returnTime;f.isAtLiveHead&&(M=Number.POSITIVE_INFINITY);Z.seekTo(M,void 0,void 0,void 0,51)}})};
_.r.getPlayer=function(){var c=this;if(!this.player_){var f=_.Ca();if(f)return f.getPlayerPromise().then(function(d){c.setPlayer(d);return d})}return Promise.resolve(this.player_)};
_.r.setPlayer=function(c){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22471_playerEvents);if(c){this.player_=c;var f;((f=this.data)==null?0:f.externalVideoId)||this.set("videoId",c.getVideoData().video_id||"");var d;(c==null?void 0:(d=c.getPresentingPlayerType)==null?void 0:d.call(c))===2&&(this.set("isAdPlaying",!0),_.gS(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(c,this.JSC$22471_playerEvents)}};
_.r.ready=function(){_.r1(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.r.onTitleChanged_=function(c){this.set("titleValue",c.detail.title)};
_.r.onStartChanged_=function(c){this.set("start",c.detail.start)};
_.r.onEndChanged_=function(c){this.set("end",c.detail.end)};
_.r.onTitleValidChanged_=function(c){this.set("titleValid",c.detail.valid)};
_.r.onStartValidChanged_=function(c){this.set("startValid",c.detail.valid)};
_.r.onEndValidChanged_=function(c){this.set("endValid",c.detail.valid)};
_.r.onVideoDataChange_=function(){var c;if((c=this.data)==null||!c.externalVideoId){var f;this.set("videoId",((f=this.player_)==null?void 0:f.getVideoData().video_id)||"")}};
_.r.computeFormValid_=function(c,f,d,q){return!!(c&&f&&d&&q)};
_.r.computeCancelButton_=function(c,f,d){return c&&_.b(c,_.WQ)?{buttonRenderer:Object.assign({},_.b(c,_.WQ),{isDisabled:f||d})}:null};
_.r.computeSubmitButton_=function(c,f,d){return c&&_.b(c,_.WQ)?{buttonRenderer:Object.assign({},_.b(c,_.WQ),{command:void 0,isDisabled:!this.formValid||f||d})}:null};
_.r.computeSubmitCommand_=function(c){return c||null};
_.r.onSubmit_=function(c){var f=this;c.stopPropagation();c.preventDefault();this.submitCommand_&&(c={},c.comment_text=this.titleValue,c.clip_external_video_id=this.videoId,c.clip_offset_ms=parseInt(this.start*1E3,10),c.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.OX(this.hostElement,[this.submitCommand_,c]).then(function(){f.set("isLoading_",!1)},function(){f.set("isLoading_",!1)}))};
_.r.playerAdStartHandler_=function(){_.gS(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.r.playerAdEndHandler_=function(){_.gS(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.r.onVideoProgress_=function(){var c=this;this.getPlayer().then(function(f){var d,q=(f==null?void 0:(d=f.getPresentingPlayerType)==null?void 0:d.call(f))===2;c.isAdPlaying!==q&&(q?c.playerAdStartHandler_():c.playerAdEndHandler_())})};
aB.prototype.onEndValidChanged_=aB.prototype.onEndValidChanged_;aB.prototype.onStartValidChanged_=aB.prototype.onStartValidChanged_;aB.prototype.onTitleValidChanged_=aB.prototype.onTitleValidChanged_;aB.prototype.onEndChanged_=aB.prototype.onEndChanged_;aB.prototype.onStartChanged_=aB.prototype.onStartChanged_;aB.prototype.onTitleChanged_=aB.prototype.onTitleChanged_;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],aB.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",Object)],aB.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],aB.prototype,"data",void 0);_.y([_.L({value:""}),_.D("design:type",String)],aB.prototype,"titleValue",void 0);
_.y([_.L({value:!1}),_.D("design:type",Boolean)],aB.prototype,"titleValid",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],aB.prototype,"start",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],aB.prototype,"startValid",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],aB.prototype,"end",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],aB.prototype,"endValid",void 0);_.y([_.L({value:""}),_.D("design:type",String)],aB.prototype,"videoId",void 0);
_.y([_.L({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.D("design:type",Boolean)],aB.prototype,"formValid",void 0);_.y([_.L({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.D("design:type",Object)],aB.prototype,"submitButton_",void 0);_.y([_.L({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.D("design:type",Object)],aB.prototype,"submitCommand_",void 0);
_.y([_.L({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.D("design:type",Object)],aB.prototype,"cancelButton_",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],aB.prototype,"isLoading_",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],aB.prototype,"isAdPlaying",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],aB.prototype,"returnTime",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],aB.prototype,"isAtLiveHead",void 0);
_.y([_.Ta("title-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],aB.prototype,"onTitleChanged_",null);_.y([_.Ta("start-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],aB.prototype,"onStartChanged_",null);_.y([_.Ta("end-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],aB.prototype,"onEndChanged_",null);
_.y([_.Ta("title-valid-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],aB.prototype,"onTitleValidChanged_",null);_.y([_.Ta("start-valid-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],aB.prototype,"onStartValidChanged_",null);_.y([_.Ta("end-valid-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],aB.prototype,"onEndValidChanged_",null);
_.y([_.vj({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],aB);
_.h(aB,"yt-clip-creation-renderer",function(){if(LE8===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;SWD===void 0&&(SWD=document.createElement("template"));var q=SWD;d.call(f,q.content.cloneNode(!0),c.content.firstChild);LE8=c}c=LE8;return c},{mode:2});var Vu=function(){return _.z.apply(this,arguments)||this};
_.K(Vu,_.z);Vu.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"}}}};
Vu.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(c){return c.hasOwnProperty("clipCreationRenderer")})&&_.gS(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Vu.prototype.onPanelContentVisibleChanged=Vu.prototype.onPanelContentVisibleChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.RM.YtVisibilityBehavior),_.D("design:type",Object)],Vu.prototype,"ytVisibilityBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Vu.prototype,"ytdReduxBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Vu.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Vu.prototype,"panelContentVisible",void 0);_.y([_.m5("panelContentVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Vu.prototype,"onPanelContentVisibleChanged",null);_.y([_.v({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Vu);
_.h(Vu,"ytd-clip-section-renderer",function(){if(nhP!==void 0)return nhP;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return nhP=c},{mode:1});var uDX;var Xz=function(){return _.z.apply(this,arguments)||this};
_.K(Xz,_.z);_.r=Xz.prototype;
_.r.onKeyDown=function(c){if(this.snippetElements.length!==0&&(c=c.keyCode,c===38||c===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);c===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.uk(this.highlightedIndex,-1,this.snippetElements.length);c=this.snippetElements.length;var f=this.highlightedIndex%c;this.highlightedIndex=f*c<0?f+c:f;c=this.snippetElements[this.highlightedIndex];this.highlightSnippet(c);this.ensureVisible(c)}};
_.r.onKeyUp=function(c){var f=this;pNq(c)&&(c.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.a7.cancelJob(this.inputTimerId),this.inputTimerId=_.a7.addLowPriorityJob(function(){f.typedValue&&(f.fetchSnippets(f.typedValue),f.logInputGesture(f.data))},1E3))};
_.r.onClick=function(c){(c=_.sG3(c.target,null,"snippet-item"))&&this.selectSnippet(c)};
_.r.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.r.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.r.ready=function(){var c=this;this.inputElement.addEventListener("focus",function(){c.snippetsWrapper.style.removeProperty("display")})};
_.r.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.r.getSourceTimelines=function(){if(!this.data)return[];var c=[];if(this.data.searchInVideoSources)for(var f=_.C(this.data.searchInVideoSources),d=f.next();!d.done;d=f.next())d=d.value,d==="SEARCH_IN_VIDEO_SOURCE_ASR"?c.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):d==="SEARCH_IN_VIDEO_SOURCE_OCR"&&c.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return c};
_.r.fetchSnippets=function(c){var f=_.gS(this.hostElement,"yt-get-current-video-id-action")[0],d=this.getSourceTimelines();c={getSearchInVideoCommand:{externalVideoId:f,query:c!=null?c:"",sourceTimelines:d},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}})};
_.r.filterSnippets=function(c,f){var d=this;if(f){this.filteredSnippets=(0,_.zV.unsafeClone)(c);var q=RegExp(_.von(f),"i");this.filteredSnippets=this.filteredSnippets.filter(function(g){return q.test(d.ytRendererBehavior.getSimpleString(g.snippet))});
c=_.C(this.filteredSnippets);for(var Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var M=this.ytRendererBehavior.getSimpleString(Z.snippet);Z.snippet={runs:[{text:M.substring(0,M.toLowerCase().indexOf(f))},{text:M.substring(M.toLowerCase().indexOf(f),M.toLowerCase().indexOf(f)+f.length),bold:!0},{text:M.substring(M.toLowerCase().indexOf(f)+f.length,M.length)}]}}}else this.filteredSnippets=c};
_.r.onUpdateSearchInVideoResults=function(c){if(!(this.snippets.length>0)){var f,d,q;if((q=(f=_.b(c,Cr8))==null?void 0:(d=f.results)==null?void 0:d.length)!=null&&q){var Z;this.filteredSnippets=this.snippets=((Z=_.b(c,Cr8))==null?void 0:Z.results).map(function(M){var g,O,l;return{startMs:M==null?void 0:(g=M.searchInVideoResultRenderer)==null?void 0:g.startMs,startTimeText:M==null?void 0:(O=M.searchInVideoResultRenderer)==null?void 0:O.startTimeText,snippet:M==null?void 0:(l=M.searchInVideoResultRenderer)==
null?void 0:l.snippet}})}}};
_.r.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};
_.r.highlightSnippet=function(c){c.classList.add("highlighted")};
_.r.removeSnippetHighlight=function(c){c.classList.remove("highlighted")};
_.r.selectSnippet=function(c){this.typedValue=String(c.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(c);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.r.ensureVisible=function(c){var f=this.snippetsWrapper.scrollTop,d=f+this.snippetsWrapper.clientHeight,q=c.offsetTop-this.snippetsWrapper.offsetTop;c=q+c.clientHeight;q<f?this.snippetsWrapper.scrollTop-=f-q:c>d&&(this.snippetsWrapper.scrollTop+=c-d)};
_.r.seekPlayer=function(c){var f,d;return _.k(function(q){if(q.nextAddress==1){if(!c)return q.jumpTo(0);f=Number(c.dataset.startOffset);return q.yield(_.gy().getPlayerPromise(),3)}d=q.yieldResult;d.seekTo(f/1E3,!0);d.wakeUpControls();_.Fm(q)})};
_.r.logInputGesture=function(c){var f=_.X2();f&&(c==null?0:c.trackingParams)&&_.UX(f,_.Q1(c.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.r.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("typed-value-changed",this.typedValue))};
_.r.updateTypedValueFromBinding=function(c){this.typedValue=c.currentTarget.value};
Xz.prototype.typedValueChangedForBinding=Xz.prototype.typedValueChangedForBinding;Xz.prototype.dataChanged=Xz.prototype.dataChanged;Xz.prototype.panelContentVisibleChanged=Xz.prototype.panelContentVisibleChanged;Xz.prototype.onClick=Xz.prototype.onClick;Xz.prototype.onKeyUp=Xz.prototype.onKeyUp;Xz.prototype.onKeyDown=Xz.prototype.onKeyDown;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Xz.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Xz.prototype,"data",void 0);_.y([_.L({value:[]}),_.D("design:type",Array)],Xz.prototype,"snippets",void 0);_.y([_.L({value:[]}),_.D("design:type",Array)],Xz.prototype,"filteredSnippets",void 0);_.y([_.L({value:[]}),_.D("design:type",Array)],Xz.prototype,"snippetElements",void 0);
_.y([_.AY("#siv-input"),_.D("design:type",HTMLElement)],Xz.prototype,"inputElement",void 0);_.y([_.AY("#siv-snippets-wrapper"),_.D("design:type",HTMLElement)],Xz.prototype,"snippetsWrapper",void 0);_.y([_.L(),_.D("design:type",String)],Xz.prototype,"typedValue",void 0);_.y([_.L({value:-1}),_.D("design:type",Number)],Xz.prototype,"highlightedIndex",void 0);_.y([_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[_.Yo]),_.D("design:returntype")],Xz.prototype,"onKeyDown",null);
_.y([_.Ta("keyup"),_.D("design:type",Function),_.D("design:paramtypes",[_.Yo]),_.D("design:returntype")],Xz.prototype,"onKeyUp",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Xz.prototype,"onClick",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Xz.prototype,"panelContentVisible",void 0);
_.y([_.m5("panelContentVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Xz.prototype,"panelContentVisibleChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Xz.prototype,"dataChanged",null);_.y([_.m5("typedValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Xz.prototype,"typedValueChangedForBinding",null);
_.y([_.v({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Xz);
_.h(Xz,"ytd-search-in-video-renderer",function(){if(uDX!==void 0)return uDX;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return uDX=c},{mode:1});var vh8;var uU=function(){return _.z.apply(this,arguments)||this};
_.K(uU,_.z);uU.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
uU.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]]"}}}}}};
uU.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var c,f,d,q,Z=(f=_.b((c=this.data)==null?void 0:c.onClickCommand,_.EB))==null?void 0:(d=f.item)==null?void 0:(q=d.notificationTextRenderer)==null?void 0:q.successResponseText;Z&&_.zAl(this.hostElement,Z)}};
_.ci.Object.defineProperties(uU.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q;return this.isProductPlaceholder&&((c=this.data)==null?void 0:(f=c.hiddenProductOptions)==null?void 0:f.showDropCountdown)&&!!((d=this.data)==null?0:(q=d.hiddenProductOptions)==null?0:q.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var c;return!this.isProductPlaceholder&&!((c=this.data)==null?0:c.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null?0:c.priceReplacementText)&&!((f=this.data)==null||!f.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],uU.prototype,"componentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],uU.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("isProductPlaceholder"),_.D("design:type",Object),_.D("design:paramtypes",[])],uU.prototype,"useCenterLayoutContainer",null);_.y([_.L({computed:"computeButtonOverride(data)"}),_.D("design:type",Object)],uU.prototype,"buttonOverride",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],uU.prototype,"isProductPlaceholder",null);
_.y([_.S("isProductPlaceholder"),_.D("design:type",Object),_.D("design:paramtypes",[])],uU.prototype,"showDropCountdown",null);_.y([_.S("isProductPlaceholder","data"),_.D("design:type",Object),_.D("design:paramtypes",[])],uU.prototype,"showBrandName",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],uU.prototype,"showPriceReplacementText",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],uU.prototype,"showPrice",null);
_.y([_.S("isProductPlaceholder"),_.D("design:type",Object),_.D("design:paramtypes",[])],uU.prototype,"showMetadata",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],uU);
_.h(uU,"ytd-product-list-item-renderer",function(){if(vh8!==void 0)return vh8;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return vh8=c},{mode:1});var hh8;var h7=function(){return _.z.apply(this,arguments)||this};
_.K(h7,_.z);h7.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
h7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
h7.prototype.panelContentVisibleChanged=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return c.playerApi?d.jumpTo(2):d.yield(_.gy().getPlayerPromise(),3);d.nextAddress!=2&&(c.playerApi=d.yieldResult);(f=c.playerApi)==null||f.productsInVideoVisibilityUpdated(!!c.panelContentVisible);_.Fm(d)})};
h7.prototype.panelContentVisibleChanged=h7.prototype.panelContentVisibleChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],h7.prototype,"panelContentVisible",void 0);_.y([_.L(),_.D("design:type",Object)],h7.prototype,"data",void 0);
_.y([_.m5("panelContentVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],h7.prototype,"panelContentVisibleChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],h7);
_.h(h7,"ytd-product-list-renderer",function(){if(hh8!==void 0)return hh8;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return hh8=c},{mode:1});var wUh;var wc=function(){var c=_.z.apply(this,arguments)||this;c.hideTimestamps=!!_.T7("hide-transcript-timestamps");c.currentCueIndex=-1;c.flatCues=[];c.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};c.TEST_ONLY={getFlatCues:function(){return c.flatCues}};
return c};
_.K(wc,_.z);_.r=wc.prototype;_.r.hideTimestampsChanged=function(){_.iK("hide-transcript-timestamps",this.hideTimestamps)};
_.r.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.r.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.r.dataChanged=function(){var c;if((c=this.data)!=null&&c.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;c=_.C(this.data.cueGroups);for(var f=c.next();!f.done;f=c.next()){f=_.C(_.b(f.value,g_D).cues);for(var d=f.next();!d.done;d=f.next())this.flatCues.push(Number(_.b(d.value,kvh).startOffsetMs))}}};
_.r.onYtPlayerTimeChanged=function(c){if(!(c<0)){for(var f=this.currentCueIndex,d=f;;){var q=d>=0?this.flatCues[d]/1E3:-1;if(c+.5<q)--d;else if(q=d+1<this.flatCues.length?this.flatCues[d+1]/1E3:Infinity,c+.5>q)d+=1;else break}d!==f&&(f>=0&&((c=this.getCueElement(f))&&c.classList.remove("active"),(f=this.getCueGroupElement(f))&&f.classList.remove("active")),(f=this.getCueElement(d))&&f.classList.add("active"),(f=this.getCueGroupElement(d))&&f.classList.add("active"),this.currentCueIndex=d,this.isHovered||
this.scrollElementToTop(d))}};
_.r.scrollElementToTop=function(c){c=this.getCueElement(c>=3?c-3:0);this.hostElement.scrollTop=Math.min(c.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.r.getCueElement=function(c){return _.r1(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[c]+'"]')};
_.r.getCueGroupElement=function(c){return(c=this.getCueElement(c))&&c.parentElement?c.parentElement.parentElement:null};
_.r.onTap=function(c){var f=_.oV(c);c.target.classList.contains("cue")&&this.seekCueElement(f)};
_.r.onKeyPress=function(c){c.keyCode==13&&(c=_.sG3(c.target,null,"cue"))&&this.seekCueElement(c)};
_.r.seekCueElement=function(c){c=Number(c.getAttribute("start-offset"));_.gS(this.hostElement,"yt-transcript-player-seek",[c/1E3])};
_.r.onMouseEnter=function(){this.isHovered=!0};
_.r.onMouseLeave=function(){this.isHovered=!1};
wc.prototype.onMouseLeave=wc.prototype.onMouseLeave;wc.prototype.onMouseEnter=wc.prototype.onMouseEnter;wc.prototype.onKeyPress=wc.prototype.onKeyPress;wc.prototype.onTap=wc.prototype.onTap;wc.prototype.dataChanged=wc.prototype.dataChanged;wc.prototype.hideTimestampsChanged=wc.prototype.hideTimestampsChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],wc.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wc.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wc.prototype,"hideTimestamps",void 0);_.y([_.L(),_.D("design:type",Boolean)],wc.prototype,"isHovered",void 0);_.y([_.m5("hideTimestamps"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wc.prototype,"hideTimestampsChanged",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wc.prototype,"dataChanged",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],wc.prototype,"onTap",null);_.y([_.Ta("keypress"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],wc.prototype,"onKeyPress",null);
_.y([_.Ta("mouseenter"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wc.prototype,"onMouseEnter",null);_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wc.prototype,"onMouseLeave",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],wc);
_.h(wc,"ytd-transcript-body-renderer",function(){if(wUh!==void 0)return wUh;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return wUh=c},{mode:1});var yvE;var yu=function(){var c=_.z.apply(this,arguments)||this;c.darkerPanels=_.F("web_watch_darker_panels");return c};
_.K(yu,_.z);yu.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yu.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],yu.prototype,"darkerPanels",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],yu);
_.h(yu,"ytd-transcript-footer-renderer",function(){if(yvE!==void 0)return yvE;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return yvE=c},{mode:1});var WES;var DSS;var Wm=function(){var c=_.z.apply(this,arguments)||this;c.systemIcons=_.F("kevlar_system_icons");c.showClearButton=!1;return c};
_.K(Wm,_.z);_.r=Wm.prototype;_.r.handleInput=function(c){var f=this;c.target.value.length?_.Ia(this,"ytdTranscriptSearchBoxSearch",function(){f.emitSearchEvent(c)},500):(_.SIN(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=c.target.value.length>0};
_.r.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.r.handleClick=function(){var c,f=(c=this.data)==null?void 0:c.trackingParams;f&&_.mZ(_.bP(),f)};
_.r.handleClear=function(){_.SIN(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var c,f,d=(f=_.b((c=this.data)==null?void 0:c.clearButton,_.WQ))==null?void 0:f.trackingParams;d&&_.mZ(_.bP(),d);this.clear()};
_.r.emitSearchEvent=function(c){_.CZ(this.hostElement,"yt-transcript-search-box-search",{query:c.target.value});var f,d;(c=(d=_.b((f=this.data)==null?void 0:f.searchButton,_.WQ))==null?void 0:d.trackingParams)&&_.mZ(_.bP(),c)};
_.r.emitClearEvent=function(){_.CZ(this.hostElement,"yt-transcript-search-box-clear")};
_.ci.Object.defineProperties(Wm.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.r1(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Wm.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Wm.prototype,"systemIcons",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Wm);
_.h(Wm,"ytd-transcript-search-box-renderer",function(){if(DSS!==void 0)return DSS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DSS=c},{mode:1});var ehS;var N8U;var Dq=function(){return _.z.apply(this,arguments)||this};
_.K(Dq,_.z);Dq.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var c,f;this.sectionHeaderAriaLabel=(c=this.data)==null?void 0:(f=c.accessibility)==null?void 0:f.accessibilityData.label}};
Dq.prototype.fireSelectedEvent=function(c){_.CZ(this.hostElement,"ytd-transcript-section-header",{startMs:c})};
Dq.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Dq.prototype.handleKeyPress=function(c){this.data&&c.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.ci.Object.defineProperties(Dq.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=(c=this.data)==null?void 0:c.enableTappableTranscriptHeader)!=null?f:!1}}});
Dq.prototype.dataChanged=Dq.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],Dq.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],Dq.prototype,"sectionHeaderAriaLabel",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Dq.prototype,"enableTappableTranscriptHeader",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Dq.prototype,"dataChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Dq);
_.h(Dq,"ytd-transcript-section-header-renderer",function(){if(N8U!==void 0)return N8U;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return N8U=c},{mode:1});var IJP;var PXW;var ef=function(){var c=_.z.apply(this,arguments)||this;c.isEditMode=!1;c.touchCaptionsEnabled=!1;c.deleteCaptionCorrectionPopupCommand=null;c.voteCaptionCorrectionPopupCommand=null;c.roundedContainer=!0;c.mouseOver=!1;c.textChanged=!1;c.messages={suggest_correction:_.HO("suggest_correction",void 0,"Edit caption"),suggested_caption:_.HO("suggested_caption",void 0,"Suggested caption"),submit_correction:_.HO("submit_correction",void 0,"Submit for review"),cancel_correction:_.HO("cancel_correction",
void 0,"Cancel"),replay_segment:_.HO("replay_segment",void 0,"Re-play segment"),delete_correction:_.HO("delete_correction",void 0,"Delete correction")};c.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return c};
_.K(ef,_.z);_.r=ef.prototype;_.r.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)};
_.r.handleDelete=function(c){if(this.deleteCaptionCorrectionPopupCommand){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);f&&this.ytdOpenPopupBehavior.openPopup(f);c.stopPropagation()}};
_.r.handleSubmit=function(c){if(this.data&&this.data.submitCaptionCorrectionCommand&&(c.stopPropagation(),this.textChanged)){var f;c=(f=_.b(this.data.submitCaptionCorrectionCommand,_.f$o))==null?void 0:f.params;f=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:c,correctionText:String(this.ironTextAreaElement.value),originalText:_.xC(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(f);this.isEditMode=!1}};
_.r.handleUpdateSegmentText=function(c){(c=_.b(c,$Hq))&&c.targetId&&this.data&&c.targetId===this.data.targetId&&(c.userCorrection&&(this.editedText=c.userCorrection),c.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.xC(this.data.snippet)),c.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=c.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=c.voteCaptionCorrectionPopupCommand?
c.voteCaptionCorrectionPopupCommand:null,c.accessibility&&(this.segmentAriaLabel=c.accessibility.accessibilityData.label))};
_.r.handleCancel=function(c){this.isEditMode=!1;c.stopPropagation();this.logClientVe(159409)};
_.r.handleEditSegmentCommand=function(c){(c=_.b(c,n_M))&&c.targetId&&this.data&&c.targetId===this.data.targetId&&this.handleEdit()};
_.r.handleEditButtonClick=function(c){this.data&&(this.handleEdit(),c.stopPropagation())};
_.r.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var c;(c=this.ironTextAreaElement.textarea)==null||c.focus();this.logClientVe(159407)}};
_.r.handleMouseEnter=function(){this.mouseOver=!0};
_.r.handleMouseLeave=function(){this.mouseOver=!1};
_.r.handleReplay=function(c){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),c.stopPropagation(),this.logClientVe(159408))};
_.r.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()))};
_.r.handleKeypress=function(c){this.data&&(this.isEditMode?c.stopPropagation():this.isEnterPress(c)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(c)&&this.logClientVe(138758))};
_.r.handleTextboxClick=function(c){c.stopPropagation()};
_.r.handleTextboxKeydown=function(c){this.isControlEnterPress(c)?this.handleSubmit(c):c.key==="Escape"&&this.handleCancel(c)};
_.r.handleTextboxKeyup=function(){this.textChanged=_.xC(this.latestText)!==String(this.ironTextAreaElement.value)};
_.r.fireSelectedEvent=function(c){_.CZ(this.hostElement,"yt-transcript-segment-selected",{startMs:c})};
_.r.fireReplayEvent=function(c,f){_.CZ(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(c-100,0),endMs:f})};
_.r.fireEditEvent=function(c,f){_.CZ(this.hostElement,"yt-transcript-segment-edit",{startMs:c,endMs:f})};
_.r.isEnterPress=function(c){return c.key==="Enter"||c.code==="Enter"||c.code==="NumpadEnter"||c.keyCode===13?!0:!1};
_.r.isControlEnterPress=function(c){var f=c.key==="Enter"||c.code==="Enter"||c.code==="NumpadEnter"||c.keyCode===13;return(c.ctrlKey||c.metaKey)&&f};
_.r.isCopyPress=function(c){var f=c.ctrlKey;return c.key==="c"&&f};
_.r.logClick=function(){var c,f=(c=this.data)==null?void 0:c.trackingParams;f&&_.mZ(_.bP(),f)};
_.r.logClientVe=function(c){_.TG(_.bP(),_.m_(c))};
_.ci.Object.defineProperties(ef.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}}});
ef.prototype.handleMouseLeave=ef.prototype.handleMouseLeave;ef.prototype.handleMouseEnter=ef.prototype.handleMouseEnter;ef.prototype.dataChanged=ef.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ef.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],ef.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],ef.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ef.prototype,"isEditMode",void 0);_.y([_.L(),_.D("design:type",Object)],ef.prototype,"touchCaptionsEnabled",void 0);_.y([_.L(),_.D("design:type",Object)],ef.prototype,"editedText",void 0);_.y([_.L(),_.D("design:type",Object)],ef.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.y([_.L(),_.D("design:type",Object)],ef.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.y([_.L(),_.D("design:type",String)],ef.prototype,"segmentAriaLabel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ef.prototype,"roundedContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ef.prototype,"mouseOver",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ef.prototype,"textChanged",void 0);_.y([_.L(),_.D("design:type",Object)],ef.prototype,"messages",void 0);
_.y([_.AY("#suggestion"),_.D("design:type",Object)],ef.prototype,"ironTextAreaElement",void 0);_.y([_.S("data","editedText"),_.D("design:type",Object),_.D("design:paramtypes",[])],ef.prototype,"latestText",null);_.y([_.S("touchCaptionsEnabled","isEditMode"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ef.prototype,"enableEditButton",null);
_.y([_.S("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ef.prototype,"enableUndoButton",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ef.prototype,"dataChanged",null);_.y([_.Ta("mouseenter"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ef.prototype,"handleMouseEnter",null);
_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ef.prototype,"handleMouseLeave",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],ef);
_.h(ef,"ytd-transcript-segment-renderer",function(){if(PXW!==void 0)return PXW;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return PXW=c},{mode:1});var Ni=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};c.isError=!1;c.darkerPanels=_.F("web_watch_darker_panels");c.useParentMaxHeight=_.F("web_watch_transscript_use_parent_max_height");c.segmentOffsets=[];c.segmentIndex=-1;return c};
_.K(Ni,_.z);_.r=Ni.prototype;_.r.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"}}}}};
_.r.segmentsChanged=function(){this.updateOffsets()};
_.r.onYtPlayerTimeChanged=function(c){for(var f=this.segmentIndex,d=f;;){if(d>=0){var q=this.segmentOffsets[d].start;var Z=this.segmentOffsets[d].isAutoScrollable}else q=-1,Z=!0;var M=c+.5;if(!Z){q=d+1<this.segmentOffsets.length?this.segmentOffsets[d+1].start:Infinity;if(M>=q){d+=1;continue}d=-1;break}if(M<q)q=d-1>=0&&this.segmentOffsets[d-1].isAutoScrollable,Z=d===0||q?1:2,d-=Z;else if(Z=d+1<this.segmentOffsets.length&&this.segmentOffsets[d+1].isAutoScrollable?1:2,q=d+Z<this.segmentOffsets.length?
this.segmentOffsets[d+Z].start:Infinity,M>q)d+=Z;else{if(d<0)break;d<this.segmentOffsets.length&&M>this.segmentOffsets[d].end&&(d=-1);break}}if(f!==d){if(f>=0){var g;(g=this.getSegmentElement(f))==null||g.classList.remove("active")}this.segmentIndex=d;if(!(d<0)){var O;(O=this.getSegmentElement(d))==null||O.classList.add("active");this.isHovered||this.scrollElementToTop(d)}}};
_.r.handleSegmentEdit=function(c){c.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=c.target,_.gS(this.hostElement,"yt-transcript-player-edit",[c.detail.startMs/1E3,c.detail.endMs/1E3]))};
_.r.handleSegmentSelected=function(c){_.gS(this.hostElement,"yt-transcript-player-seek",[c.detail.startMs/1E3])};
_.r.handleSegmentReplay=function(c){_.gS(this.hostElement,"yt-transcript-player-replay",[c.detail.startMs/1E3,c.detail.endMs/1E3])};
_.r.handleSectionHeaderSelected=function(c){_.gS(this.hostElement,"yt-transcript-player-seek",[c.detail.startMs/1E3])};
_.r.onMouseEnter=function(){this.isHovered=!0};
_.r.onMouseLeave=function(){this.isHovered=!1};
_.r.onRetryButtonClick=function(){_.CZ(this.hostElement,"transcript-retry-button-click")};
_.r.getSegmentElement=function(c){return _.r1(this.hostElement).querySelector(":nth-child("+(c+1)+")")};
_.r.scrollElementToTop=function(c){c=this.getSegmentElement(c>=2?c-2:0);this.hostElement.scrollTop=Math.min(c.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.r.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(c){var f,d=(f=c.transcriptSegmentRenderer)!=null?f:c.transcriptSectionHeaderRenderer;return{start:Number(d.startMs)/1E3,end:Number(d.endMs)/1E3,isAutoScrollable:c.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.r.clearHighlightedSegments=function(){var c=_.r1(this.hostElement);c=_.C(c.querySelectorAll("ytd-transcript-segment-renderer"));for(var f=c.next();!f.done;f=c.next())f.value.classList.remove("active")};
_.ci.Object.defineProperties(Ni.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:c.searchResultSegments)||((f=this.data)==null?void 0:f.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Ni.prototype.onMouseLeave=Ni.prototype.onMouseLeave;Ni.prototype.onMouseEnter=Ni.prototype.onMouseEnter;Ni.prototype.handleSectionHeaderSelected=Ni.prototype.handleSectionHeaderSelected;Ni.prototype.handleSegmentReplay=Ni.prototype.handleSegmentReplay;Ni.prototype.handleSegmentSelected=Ni.prototype.handleSegmentSelected;Ni.prototype.handleSegmentEdit=Ni.prototype.handleSegmentEdit;Ni.prototype.segmentsChanged=Ni.prototype.segmentsChanged;
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Ni.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ni.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Ni.prototype,"isError",void 0);
_.y([_.L(),_.D("design:type",Object)],Ni.prototype,"noResultLabel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ni.prototype,"darkerPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Ni.prototype,"useParentMaxHeight",void 0);_.y([_.S("data"),_.D("design:type",Array),_.D("design:paramtypes",[])],Ni.prototype,"segments",null);
_.y([_.S("segments","noResultLabel"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Ni.prototype,"displayNoResults",null);_.y([_.m5("segments"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ni.prototype,"segmentsChanged",null);_.y([_.Ta("yt-transcript-segment-edit"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Ni.prototype,"handleSegmentEdit",null);
_.y([_.Ta("yt-transcript-segment-selected"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Ni.prototype,"handleSegmentSelected",null);_.y([_.Ta("yt-transcript-segment-replay"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Ni.prototype,"handleSegmentReplay",null);
_.y([_.Ta("ytd-transcript-section-header"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Ni.prototype,"handleSectionHeaderSelected",null);_.y([_.Ta("mouseenter"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ni.prototype,"onMouseEnter",null);_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ni.prototype,"onMouseLeave",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Ni);
_.h(Ni,"ytd-transcript-segment-list-renderer",function(){if(IJP!==void 0)return IJP;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return IJP=c},{mode:1});var IB=function(){var c=_.z.apply(this,arguments)||this;c.hideTimestamps=!!_.T7("hide-transcript-timestamps");c.isLoadingTranscripts=!1;c.darkerPanels=_.F("web_watch_darker_panels");c.isError=!1;c.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return c};
_.K(IB,_.z);_.r=IB.prototype;_.r.headerChanged=function(){var c,f;this.baseGetTranscriptsCommand=(f=_.b((c=this.data)==null?void 0:c.header,QKX))==null?void 0:f.onTextChangeCommand};
_.r.bodyChanged=function(){var c=this.getBodyRenderer();c&&(c.initialSegments&&(this.initialTranscriptsRenderer=c),c.noResultLabel&&(this.noResultLabel=c.noResultLabel),c.retryLabel&&(this.retryLabel=c.retryLabel))};
_.r.detached=function(){this.clearSearchBoxText()};
_.r.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.r.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"}}}};
_.r.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.r.fireSearch=function(c){var f=this;if(c){var d=c.detail.query;if(this.baseGetTranscriptsCommand){var q;c=(q=_.b(this.baseGetTranscriptsCommand,_.JM_))==null?void 0:q.params;var Z;q=_.b((Z=this.data)==null?void 0:Z.footer,Ojv);var M;if((Z=(M=_.b(q==null?void 0:q.languageMenu,bj8))==null?void 0:M.subMenuItems)&&Z.length>0&&(M=Z.find(function(l){return l.selected}))){var g,O;
c=(g=M.continuation)==null?void 0:(O=g.reloadContinuationData)==null?void 0:O.continuation}g=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:c,searchQuery:d}});this.ytComponentBehavior.resolveCommand(g,{commandController:{onServerError:function(){f.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});RGP(this.ytContinuationHandlerBehavior,function(){return d===f.getCurrentSearchBoxText()})}}};
_.r.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.r.onRetryButtonClick=function(){this.isError=!1;var c={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:c}))};
_.r.hideTimestampsChanged=function(){_.iK("hide-transcript-timestamps",this.hideTimestamps)};
_.r.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.r.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.r.handleSignalActionCopyTranscript=function(){var c=this,f=this.getBodyRenderer();f&&(f=((f==null?void 0:f.searchResultSegments)||(f==null?void 0:f.initialSegments)||[]).map(function(d){return _.b(d,LT8)}).filter(function(d){return!!d}).map(function(d){return{snippet:d.snippet||{runs:[{text:""}]},
startTimeText:d.startTimeText||{simpleText:""}}}).map(function(d){var q=(d.snippet.runs||[]).reduce(function(Z,M){return Z+M.text},"");
return c.hideTimestamps?q:d.startTimeText.simpleText+" "+q}).join("\n"),this.copyToClipboard(f))};
_.r.copyToClipboard=function(c){navigator.clipboard&&navigator.clipboard.writeText(c)};
_.r.getCurrentSearchBoxText=function(){var c;return(c=this.searchBox)==null?void 0:c.value};
_.r.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.r.getBodyRenderer=function(){var c;return _.b((c=this.data)==null?void 0:c.body,S3J)};
_.r.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.ci.Object.defineProperties(IB.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.r1(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
IB.prototype.hideTimestampsChanged=IB.prototype.hideTimestampsChanged;IB.prototype.searchCleared=IB.prototype.searchCleared;IB.prototype.fireSearch=IB.prototype.fireSearch;IB.prototype.onReloadContinuationFinish=IB.prototype.onReloadContinuationFinish;IB.prototype.bodyChanged=IB.prototype.bodyChanged;IB.prototype.headerChanged=IB.prototype.headerChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],IB.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],IB.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],IB.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IB.prototype,"hideTimestamps",void 0);
_.y([_.L(),_.D("design:type",Object)],IB.prototype,"isLoadingTranscripts",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],IB.prototype,"darkerPanels",void 0);_.y([_.L(),_.D("design:type",Object)],IB.prototype,"isError",void 0);_.y([_.m5("data.header"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IB.prototype,"headerChanged",null);
_.y([_.ba("data.body"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IB.prototype,"bodyChanged",null);_.y([_.Ta("yt-reload-continuation-finish"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IB.prototype,"onReloadContinuationFinish",null);_.y([_.Ta("yt-transcript-search-box-search"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],IB.prototype,"fireSearch",null);
_.y([_.Ta("yt-transcript-search-box-clear"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IB.prototype,"searchCleared",null);_.y([_.m5("hideTimestamps"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],IB.prototype,"hideTimestampsChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],IB);
_.h(IB,"ytd-transcript-search-panel-renderer",function(){if(ehS!==void 0)return ehS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ehS=c},{mode:1});var Pm=function(){var c=_.z.apply(this,arguments)||this;c.player=null;c.playerPollJobId=0;return c};
_.K(Pm,_.z);_.r=Pm.prototype;_.r.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.r.onLoadReloadContinuation=function(c){_.F("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:c.target.data.continuation}}):(c={clickTrackingParams:c.target.data.clickTrackingParams,getTranscriptEndpoint:{params:c.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}}))};
_.r.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"}}}};
_.r.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.r.attached=function(){this.updatePlayerListening()};
_.r.detached=function(){this.updatePlayerListening()};
_.r.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.r.startPlayerListening=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return(f=_.Ca())?d.yield(f.getPlayerPromise(),2):d.return();c.player=d.yieldResult;c.playerPollJobId=_.a7.addLowPriorityJob(function(){c.getPlayerVideoProgress()},1E3);
c.player.addEventListener("onCueRangeEnter",function(q){c.onCueRangeEnter(q)});
c.player.addEventListener("onCueRangeExit",function(q){c.onCueRangeExit(q)});
c.player.addEventListener("onStateChange",function(q){c.onPlayerStateChange(q)});
c.player.addEventListener("SEEK_TO",function(q){c.onPlayerSeek(q)});
_.Fm(d)})};
_.r.getPlayerVideoProgress=function(){var c=this;_.a7.cancelJob(this.playerPollJobId);if(this.player){var f=this.player.getCurrentTime();_.gS(this.hostElement,"yt-player-time-changed",[f])}this.playerPollJobId=_.a7.addLowPriorityJob(function(){c.getPlayerVideoProgress()},1E3)};
_.r.stopPlayerListening=function(){this.player=null;_.a7.cancelJob(this.playerPollJobId)};
_.r.onPlayerStateChange=function(c){c===2&&this.removePendingCue()};
_.r.onPlayerSeek=function(c){var f;if(f=this.pendingReplayCueId)f=this.pendingReplayCueId,f=c===(_.F("web_transcript_cue_id_killswitch")?Number(f):Number(f.split("_")[1]));f||this.removePendingCue()};
_.r.onCueRangeEnter=function(c){APh(c)&&(this.pendingReplayCueId=c)};
_.r.onCueRangeExit=function(c){APh(c)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.r.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.r.onYtTranscriptPlayerSeek=function(c){this.player&&this.player.seekTo(c,!0)};
_.r.onYtTranscriptPlayerReplay=function(c,f){this.player&&(this.player.addCueRange(HrM(c),c,f),this.player.seekTo(c,!0),this.player.playVideo())};
_.r.onYtTranscriptPlayerEdit=function(c,f){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(HrM(c),c,f),this.player.seekTo(c,!0))};
Pm.prototype.onLoadReloadContinuation=Pm.prototype.onLoadReloadContinuation;Pm.prototype.panelContentVisibleChanged=Pm.prototype.panelContentVisibleChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Pm.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Pm.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Pm.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Pm.prototype,"panelContentVisible",void 0);_.y([_.m5("panelContentVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Pm.prototype,"panelContentVisibleChanged",null);
_.y([_.Ta("yt-load-reload-continuation"),_.D("design:type",Function),_.D("design:paramtypes",[Object]),_.D("design:returntype")],Pm.prototype,"onLoadReloadContinuation",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Pm);
_.h(Pm,"ytd-transcript-renderer",function(){if(WES!==void 0)return WES;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return WES=c},{mode:1});var Rhh;var USD;var RB=function(){return _.z.apply(this,arguments)||this};
_.K(RB,_.z);RB.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.ll(this.hostElement,[this.data.clickCommand],this.hostElement))};
RB.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.PE)()+_.Vp)+"px)"};
RB.prototype.updateShouldHideFromBinding=function(c){this.shouldHide=c.detail.value};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],RB.prototype,"rendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],RB.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],RB.prototype,"shouldHide",void 0);_.y([_.v({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],RB);
_.h(RB,"ytd-ad-engagement-panel-banner-renderer",function(){if(USD!==void 0)return USD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return USD=c},{mode:_.lP("kevlar_poly_si_batch_j070")?1:2});var pUM;var U1=function(){var c=_.z.apply(this,arguments)||this;c.modernPanels=_.F("kevlar_watch_modern_panels");c.buttonUpdate=_.F("web_modern_buttons");c.adsSemanticText=_.F("enable_ads_web_ep_buenos_aires_and_padding_fix");return c};
_.K(U1,_.z);U1.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.y([_.L(),_.D("design:type",Object)],U1.prototype,"data",void 0);_.y([_.L({computed:"computeHideDefaultAdBadge(data)"}),_.D("design:type",Boolean)],U1.prototype,"hideDefaultAdBadge",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],U1.prototype,"modernPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],U1.prototype,"buttonUpdate",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],U1.prototype,"adsSemanticText",void 0);
_.y([_.v({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],U1);
_.h(U1,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(pUM!==void 0)return pUM;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return pUM=c},{mode:1});var xSP;var pH=function(){var c=_.z.apply(this,arguments)||this;c.darkerPanels=_.F("web_watch_darker_panels");c.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");c.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");c.modernPanels=_.F("kevlar_watch_modern_panels");c.headerClickListener=function(f){c.onHeaderClick(f)};
c.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return c};
_.K(pH,_.z);_.r=pH.prototype;_.r.computeAdsInfoButton=function(){if(_.F("web_modern_buttons")){var c,f;return(f=_.b((c=this.data)==null?void 0:c.subtitleComplex,lOh))==null?void 0:f.adInfoRenderer}};
_.r.updateHeaderClickListener=function(){var c,f,d;((c=this.data)==null?0:c.navigationEndpoint)||((f=this.data)==null?0:f.onClickCommand)||_.b((d=this.data)==null?void 0:d.visibilityButton,_.Dj)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.r.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}}}}}};
_.r.collapsedChanged=function(){var c;(c=this.data)!=null&&c.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.F("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.r.focus=function(c){var f=this;this.titleElement&&_.a7.addJob(function(){_.UN(f.titleElement,c)},0,500)};
_.r.computeTitleAriaLabel=function(c){var f=[];if(c.title){var d,q;f.push(this.ytRendererBehavior.getSimpleString(c.title)||((d=c.title.accessibility)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label))}c.contextualInfo&&f.push(this.ytRendererBehavior.getSimpleString(c.contextualInfo));return f.join(" ")};
_.r.onHeaderClick=function(c){this.shouldTriggerHeaderClick(c)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.ll(this.hostElement,[this.data.onClickCommand],this.hostElement)):(c=this.getVisibilityToggleButton())&&c.click())};
_.r.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var c=_.b(this.data.visibilityButton,_.WQ)||_.b(this.data.visibilityButton,_.Dj);c&&this.ytRendererBehavior.logExplicitClick(c)}};
_.r.getVisibilityToggleButton=function(){var c=_.r1(this.hostElement).querySelector("#visibility-button").firstElementChild;return(c==null?void 0:c.is)==="ytd-toggle-button-renderer"?c:null};
_.r.shouldTriggerHeaderClick=function(c){return!_.qY(_.x0(c),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.r.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(c){c=_.b(c,_.jKJ);this.targetId&&(c==null?void 0:c.targetId)===this.targetId&&(c=c.navigationButton)&&this.set("data.navigationButton",c)};
_.ci.Object.defineProperties(pH.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 c;return!!(((c=this.entity)==null?0:c.isActionButtonHidden)||this.hideActionButton)}}});
pH.prototype.collapsedChanged=pH.prototype.collapsedChanged;pH.prototype.updateHeaderClickListener=pH.prototype.updateHeaderClickListener;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],pH.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],pH.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],pH.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pH.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],pH.prototype,"targetId",void 0);_.y([_.L(),_.D("design:type",Boolean)],pH.prototype,"collapsed",void 0);_.y([_.L(),_.D("design:type",Boolean)],pH.prototype,"hideActionButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],pH.prototype,"shortsPanel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],pH.prototype,"liveChatEngagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],pH.prototype,"learningChatEngagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pH.prototype,"darkerPanels",void 0);_.y([_.AY("#title"),_.D("design:type",HTMLElement)],pH.prototype,"titleElement",void 0);_.y([_.AY("#header"),_.D("design:type",HTMLElement)],pH.prototype,"headerElement",void 0);
_.y([_.L({computed:"computeAdsInfoButton(data)"}),_.D("design:type",Object)],pH.prototype,"adsInfoButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pH.prototype,"enableSqueezebackPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pH.prototype,"enableAnchoredPanel",void 0);_.y([_.L({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(c,f){return _.Bb(c.entities,"engagementPanelTitleHeaderEntity",f)}}),
_.D("design:type",Object)],pH.prototype,"entity",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pH.prototype,"modernPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("targetId"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],pH.prototype,"adsSemanticText",null);_.y([_.m5("data","data.navigationEndpoint","data.onClickCommand"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pH.prototype,"updateHeaderClickListener",null);
_.y([_.ba("collapsed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pH.prototype,"collapsedChanged",null);_.y([_.S("entity","hideActionButton"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],pH.prototype,"isActionButtonHidden",null);_.y([_.v({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],pH);
_.h(pH,"ytd-engagement-panel-title-header-renderer",function(){if(xSP!==void 0)return xSP;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return xSP=c},{mode:1});var oh8;var xP=function(){return _.z.apply(this,arguments)||this};
_.K(xP,_.z);xP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xP.prototype,"data",void 0);_.y([_.v({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],xP);
_.h(xP,"ytd-macro-markers-info-item-renderer",function(){if(oh8!==void 0)return oh8;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return oh8=c},{mode:1});var G8D;var dOM=function(c,f,d,q,Z,M){_.ES.call(this);var g=this;this.JSC$22573_containerElement=c;this.hostElement=f;this.supportedSyncItems=d;this.syncEntityKey=q;this.options=Z;this.renderLazyListItems=M;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;cDW(this);fd8(this);this.JSC$22573_scrollAnimation=new _.ID(function(O){c.scrollTop=O});
_.ln(this,this.JSC$22573_scrollAnimation);this.addOnDisposeCallback(function(){g.exitBrowsingMode(!1);g.activeItem&&g.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.K(dOM,_.ES);var cDW=function(c){var f=_.bj(_.ql().resolve(_.WL),function(d){return d.entities.markersEngagementPanelSyncEntity||{}},function(d,q){var Z;
d[c.syncEntityKey]!==q[c.syncEntityKey]&&((Z=d[c.syncEntityKey])==null?void 0:Z.activeItemIndex)!==void 0&&c.updatePanelActiveItem(d[c.syncEntityKey].activeItemIndex)});
c.unsubscribeFromTimedMarkersListSyncEntity=f;c.addOnDisposeCallback(f);jZM(c)},jZM=function(c){var f=_.ql().resolve(_.WL);
f=_.$4N(f.getState(),c.syncEntityKey);(f==null?void 0:f.activeItemIndex)!==void 0&&(f=c.getItemByIndex(f.activeItemIndex))&&c.setActiveItem(f)},fd8=function(c){var f=new _.Gx(c.onScroll,50,c);
_.ln(c,f);var d=function(){f.fire()};
c.JSC$22573_containerElement.addEventListener("scroll",d);c.addOnDisposeCallback(function(){c.JSC$22573_containerElement.removeEventListener("scroll",d)})};
_.r=dOM.prototype;
_.r.updatePanelActiveItem=function(c){var f=this.getItemByIndex(c);if(f){if(this.setActiveItem(f),this.contentVisible)if(this.browsingMode){var d;((d=this.options)==null?void 0:d.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(c=qlD(this),f.offsetTop<this.JSC$22573_containerElement.clientHeight+this.JSC$22573_containerElement.scrollTop&&c&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));ZTP(this)}else this.scrollToItem(f)}else _.u6(new _.KD("Could not find "+this.supportedSyncItems+
" sync child to set active.",c,this.JSC$22573_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.r.getItemByIndex=function(c){var f;(f=this.renderLazyListItems)==null||f.call(this,c);f=this.JSC$22573_containerElement.querySelectorAll(this.supportedSyncItems);if(f.length>c)return f[c]};
_.r.setActiveItem=function(c){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));c.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=c};
_.r.scrollToItem=function(c){c=this.getScrollPositionForItem(c);this.JSC$22573_containerElement.scrollTop!==c&&this.JSC$22573_scrollAnimation.start(this.JSC$22573_containerElement.scrollTop,c,300)};
_.r.getScrollPositionForItem=function(c){if(this.JSC$22573_containerElement.querySelectorAll(this.supportedSyncItems)[0]===c)return 0;var f,d=((f=this.options)==null?0:f.percentOffset)?this.JSC$22573_containerElement.clientHeight*this.options.percentOffset:0;c=_.u5(c).y+this.JSC$22573_containerElement.scrollTop-(_.u5(this.JSC$22573_containerElement).y+d);return Math.max(0,Math.min(c,this.JSC$22573_containerElement.scrollHeight-this.JSC$22573_containerElement.offsetHeight))};
_.r.onScroll=function(){this.activeItemBelowSyncPosition=qlD(this);if(this.activeItem&&!this.JSC$22573_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22573_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var c;switch((c=this.options)==null?void 0:c.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!M8W(this));ZTP(this);break;default:this.enterBrowsingMode(!0)}}};
_.r.enterBrowsingMode=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1){if(f.browsingMode)return Z.return();f.browsingMode=!0;c&&f.hostElement.classList.add("browsing-mode");f.playerExitBrowsingModeListener=function(){f.exitBrowsingMode(!1)};
return Z.yield(_.H9(),2)}d=Z.yieldResult;(q=d)==null||q.addEventListener("SEEK_TO",f.playerExitBrowsingModeListener);_.Fm(Z)})};
_.r.exitBrowsingMode=function(c){c=c===void 0?!0:c;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),c&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.r.removePlayerSeekListener=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1)return c.playerExitBrowsingModeListener?q.yield(_.H9(),3):q.jumpTo(0);f=q.yieldResult;(d=f)==null||d.removeEventListener("SEEK_TO",c.playerExitBrowsingModeListener);c.playerExitBrowsingModeListener=void 0;_.Fm(q)})};
var ZTP=function(c){var f;((f=c.options)==null?void 0:f.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(M8W(c)?c.hostElement.classList.remove("browsing-mode"):c.activeItem&&c.hostElement.classList.add("browsing-mode"))},qlD=function(c){if(!c.activeItem)return!1;
var f,d=((f=c.options)==null?0:f.percentOffset)?c.JSC$22573_containerElement.clientHeight*c.options.percentOffset:0;return c.activeItem.offsetTop>=c.JSC$22573_containerElement.scrollTop+d},M8W=function(c){if(!c.activeItem)return!1;
var f=c.activeItem.offsetTop+14<=c.JSC$22573_containerElement.scrollTop+c.JSC$22573_containerElement.clientHeight;return c.activeItem.offsetTop+c.activeItem.clientHeight-14>=c.JSC$22573_containerElement.scrollTop&&f};
dOM.prototype.panelContentVisibleChanged=function(c){(this.contentVisible=c)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var rDU=function(c,f){c.syncEntityKey=f;var d;(d=c.unsubscribeFromTimedMarkersListSyncEntity)==null||d.call(c);cDW(c)},CYv=function(c,f){c.options=f};var oB=function(){var c=_.z.apply(this,arguments)||this;c.browsingMode=!1;c.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return c};
_.K(oB,_.z);_.r=oB.prototype;_.r.activeItemChanged=function(){if(!_.F("synced_panel_scrolling_controller")){var c;((c=this.syncEntity)==null?void 0:c.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.r.created=function(){var c=this;_.F("synced_panel_scrolling_controller")||(this.JSC$22577_scrollAnimation=new _.ID(function(f){c.contents.scrollTop=f}),this.boundExitBrowsingMode=function(){c.exitBrowsingMode(!1)})};
_.r.detached=function(){if(_.F("synced_panel_scrolling_controller")){var c;(c=this.scrollController)==null||c.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.r.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"}}}};
_.r.dataChanged=function(){var c=this;_.F("synced_panel_scrolling_controller")?_.ol(this,function(){if(c.scrollController){var f;(f=c.scrollController)==null||f.exitBrowsingMode(!1);var d,q,Z;(q=c.scrollController)==null||rDU(q,(Z=(d=c.data)==null?void 0:d.syncModelEntityKey)!=null?Z:"default-macro-markers-list-renderer-entity-key");var M,g,O;(O=c.scrollController)==null||CYv(O,{percentOffset:(M=c.data)==null?void 0:M.selectedItemAlignmentPercentOffset,floatingPillType:(g=c.data)==null?void 0:g.floatingPillType})}else{var l,
m,H,A;c.scrollController=new dOM(c.contents,c.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(A=(l=c.data)==null?void 0:l.syncModelEntityKey)!=null?A:"default-macro-markers-list-renderer-entity-key",{percentOffset:(m=c.data)==null?void 0:m.selectedItemAlignmentPercentOffset,floatingPillType:(H=c.data)==null?void 0:H.floatingPillType},function(Y){c.renderLazyListItems(Y)})}c.scrollController.panelContentVisibleChanged(!!c.panelContentVisible)}):this.exitBrowsingMode()};
_.r.computeButtonShape=function(){var c=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){c.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.r.computeSyncEnabled=function(c){return!(c==null||!c.syncButtonLabel)};
_.r.renderLazyListItems=function(c){for(var f=this.contents.children,d=0,q=0;q<f.length;q++){var Z=void 0;(Z=f[q].ytLazyListBehavior)==null||Z.fillRemainingListItems();var M=void 0,g=void 0;Z=_.b((M=this.data)==null?void 0:(g=M.contents)==null?void 0:g[q],_.h1r);g=M=void 0;if((M=Z)==null?0:(g=M.contents)==null?0:g.length)d+=Z.contents.length;if(d>=c)break}};
_.r.getItemByIndex=function(c){this.renderLazyListItems(c);var f=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(f.length>c)return f[c]};
_.r.setActiveItem=function(c){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);c.active!==void 0&&(c.active=!0);this.currentActiveItem=c};
_.r.handleSetActivePanelItemAction=function(c){if((c=_.b(c,ZjD))&&this.panelTargetId===c.panelTargetId){c=c.itemIndex;if(_.F("synced_panel_scrolling_controller")){var f,d;var q=(d=(f=this.data)==null?void 0:f.syncModelEntityKey)!=null?d:"default-macro-markers-list-renderer-entity-key"}else{var Z;q=(Z=this.data)==null?void 0:Z.syncModelEntityKey}if(q){var M;((M=this.syncEntity)==null?void 0:M.activeItemIndex)!==c&&this.ytdReduxBehavior.dispatch(_.ER("markersEngagementPanelSyncEntity",q,{key:q,activeItemIndex:c}))}else this.updatePanelActiveItem(c)}};
_.r.updatePanelActiveItem=function(c){var f=this.getItemByIndex(c);f?(this.setActiveItem(f),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(f)):_.u6(new _.KD("Could not find ytd-macro-markers-list-renderer sync child to set active.",c,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.r.scrollToItem=function(c){c=this.getScrollPositionForItem(c);this.contents.scrollTop!==c&&this.JSC$22577_scrollAnimation.start(this.contents.scrollTop,c,300)};
_.r.getScrollPositionForItem=function(c){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===c)return 0;c=_.u5(c).y+this.contents.scrollTop-_.u5(this.contents).y-this.getStickyHeaderHeight(c);return Math.min(c,this.contents.scrollHeight-this.contents.offsetHeight)};
_.r.getStickyHeaderHeight=function(c){if(c.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var f,d,q;return(q=(f=c.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(d=f.header)==null?void 0:d.offsetHeight)!=null?q:0}return 0};
_.r.onScroll=function(){_.F("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22577_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.r.enterBrowsingMode=function(){var c=this;return _.k(function(f){if(f.nextAddress==1){if(c.browsingMode)return f.return();c.browsingMode=!0;return f.yield(_.gy().getPlayerPromise(),2)}c.player=f.yieldResult;c.player.addEventListener("SEEK_TO",c.boundExitBrowsingMode);_.Fm(f)})};
_.r.exitBrowsingMode=function(c){this.browsingMode&&(this.browsingMode=!1,(c===void 0||c)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.r.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.r.onSyncClick=function(){if(_.F("synced_panel_scrolling_controller")){var c;(c=this.scrollController)==null||c.exitBrowsingMode()}else this.exitBrowsingMode()};
_.r.panelContentVisibleChanged=function(){if(_.F("synced_panel_scrolling_controller")){var c;(c=this.scrollController)==null||c.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
oB.prototype.panelContentVisibleChanged=oB.prototype.panelContentVisibleChanged;oB.prototype.dataChanged=oB.prototype.dataChanged;oB.prototype.activeItemChanged=oB.prototype.activeItemChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],oB.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],oB.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],oB.prototype,"data",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],oB.prototype,"useCustomColors",void 0);_.y([_.L({computed:"computeSyncEnabled(data)"}),_.D("design:type",Boolean)],oB.prototype,"syncEnabled",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],oB.prototype,"panelTargetId",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],oB.prototype,"panelContentVisible",void 0);_.y([_.AY("#contents"),_.D("design:type",HTMLElement)],oB.prototype,"contents",void 0);_.y([_.AY("#sync-container"),_.D("design:type",HTMLElement)],oB.prototype,"syncContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],oB.prototype,"browsingMode",void 0);
_.y([_.L({selectorArgs:["data.syncModelEntityKey"],selector:_.$4N}),_.D("design:type",Object)],oB.prototype,"syncEntity",void 0);_.y([_.m5("syncEntity.activeItemIndex"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oB.prototype,"activeItemChanged",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oB.prototype,"dataChanged",null);
_.y([_.m5("panelContentVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oB.prototype,"panelContentVisibleChanged",null);_.y([_.v({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],oB);
_.h(oB,"ytd-macro-markers-list-renderer",function(){if(G8D!==void 0)return G8D;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return G8D=c},{mode:1});var gwP;var GJ=function(){return _.z.apply(this,arguments)||this};
_.K(GJ,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],GJ.prototype,"data",void 0);_.y([_.v({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],GJ);
_.h(GJ,"ytd-error-corrections-section-item-renderer",function(){if(gwP!==void 0)return gwP;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return gwP=c},{mode:1});var k5U;var cl=function(){return _.z.apply(this,arguments)||this};
_.K(cl,_.z);cl.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],cl.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],cl.prototype,"data",void 0);_.y([_.v({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],cl);
_.h(cl,"ytd-error-corrections-section-renderer",function(){if(k5U!==void 0)return k5U;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return k5U=c},{mode:1});var OT8;var fv=function(){return _.z.apply(this,arguments)||this};
_.K(fv,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],fv.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fv.prototype,"data",void 0);_.y([_.v({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],fv);
_.h(fv,"ytd-topic-link-renderer",function(){if(OT8!==void 0)return OT8;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return OT8=c},{mode:1});var ld8;var dM=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("kevlar_modern_sd_v2");c.modernLockupV2=_.F("modernize_structured_description_playlist_lockups_v2");c.modernTypography=_.F("web_modern_typography");return c};
_.K(dM,_.z);dM.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dM.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],dM.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],dM.prototype,"modernLockupV2",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],dM.prototype,"modernTypography",void 0);_.y([_.v({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],dM);
_.h(dM,"ytd-video-description-course-section-renderer",function(){if(ld8!==void 0)return ld8;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ld8=c},{mode:1});var sZX;var jd=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("kevlar_modern_sd_v2");c.modernTypography=_.F("web_modern_typography");return c};
_.K(jd,_.z);jd.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],jd.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jd.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],jd.prototype,"modernTypography",void 0);
_.y([_.v({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],jd);
_.h(jd,"ytd-video-description-files-section-renderer",function(){if(sZX!==void 0)return sZX;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return sZX=c},{mode:1});var Bdq;var qF=function(){return _.z.apply(this,arguments)||this};
_.K(qF,_.z);qF.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qF.prototype,"data",void 0);_.y([_.v({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],qF);
_.h(qF,"ytd-video-description-gaming-section-renderer",function(){if(Bdq!==void 0)return Bdq;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Bdq=c},{mode:1});var iTX;var ZA=function(){var c=_.z.apply(this,arguments)||this;c.isExpanded=!1;return c};
_.K(ZA,_.z);ZA.prototype.computeHasDefaultMetadataEndpoint=function(c){var f;c=c==null?void 0:(f=c.defaultMetadata)==null?void 0:f.runs;return!(!c||c.length!==1||!c[0].navigationEndpoint)};
ZA.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.ci.Object.defineProperties(ZA.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ZA.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ZA.prototype,"isExpanded",void 0);_.y([_.L({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],ZA.prototype,"hasDefaultMetadataEndpoint",void 0);
_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ZA.prototype,"isExpandable",null);_.y([_.S("data","isExpandable","isExpanded"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ZA.prototype,"showExpandedMetadata",null);_.y([_.v({is:"ytd-info-row-renderer",disableElementRegistration:!0})],ZA);
_.h(ZA,"ytd-info-row-renderer",function(){if(iTX!==void 0)return iTX;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return iTX=c},{mode:1});var TdM;var MF=function(){var c=_.z.apply(this,arguments)||this;c.currentIndex=0;c.supportComponentResize=!0;c.modern=_.F("kevlar_modern_sd_v2");c.JSC$22603_lastScrollContainerWidth=NaN;return c};
_.K(MF,_.z);_.r=MF.prototype;
_.r.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"}}}};
_.r.getItemsPath=function(){return"videoLockups"};
_.r.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.r.onIronResize=function(){this.updateVideoLockupStyles()};
_.r.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.r.updateVideoLockupStyles=function(){var c;this.JSC$22603_scrollContainer!==void 0&&(c=this.videoLockups)!=null&&c.length&&(c=this.JSC$22603_scrollContainer.clientWidth,c!==this.JSC$22603_lastScrollContainerWidth&&(this.JSC$22603_lastScrollContainerWidth=c,_.la(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(c*.8,415)+"px"}),_.CZ(this.hostElement,"iron-resize")))};
_.ci.Object.defineProperties(MF.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var c=[],f;if((f=this.data)==null||!f.carouselLockups)return c;f=_.C(this.data.carouselLockups);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=void 0;((q=_.b(d,Vu8))==null?0:q.videoLockup)&&c.push(_.b(d,Vu8).videoLockup)}return c}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.videoLockups)==null||!c.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var c=[],f;if((f=this.data)==null||!f.carouselLockups)return c;var d;return(d=_.b(this.data.carouselLockups[this.scrollCount],Vu8))==null?void 0:d.infoRows}}});
MF.prototype.dataChanged=MF.prototype.dataChanged;MF.prototype.onIronResize=MF.prototype.onIronResize;MF.prototype.hiddenChanged=MF.prototype.hiddenChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],MF.prototype,"componentBehavior",void 0);_.y([_.Q(_.Cm.YtdHorizontalListBehavior),_.D("design:type",Object)],MF.prototype,"ytdHorizontalListBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],MF.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],MF.prototype,"inlineStructuredDescription",void 0);_.y([_.L({value:2}),_.D("design:type",Number)],MF.prototype,"initialCount",void 0);_.y([_.L(),_.D("design:type",Object)],MF.prototype,"currentIndex",void 0);
_.y([_.L(),_.D("design:type",Number)],MF.prototype,"scrollCount",void 0);_.y([_.L(),_.D("design:type",Object)],MF.prototype,"supportComponentResize",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],MF.prototype,"contentHidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],MF.prototype,"modern",void 0);_.y([_.AY("#scroll-container"),_.D("design:type",HTMLDivElement)],MF.prototype,"JSC$22603_scrollContainer",void 0);
_.y([_.m5("contentHidden"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MF.prototype,"hiddenChanged",null);_.y([_.S("data"),_.D("design:type",Array),_.D("design:paramtypes",[])],MF.prototype,"videoLockups",null);_.y([_.S("videoLockups"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],MF.prototype,"hasVideoLockups",null);
_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MF.prototype,"onIronResize",null);_.y([_.S("data","scrollCount"),_.D("design:type",Object),_.D("design:paramtypes",[])],MF.prototype,"infoRows",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],MF.prototype,"dataChanged",null);_.y([_.v({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],MF);
_.h(MF,"ytd-video-description-music-section-renderer",function(){if(TdM!==void 0)return TdM;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return TdM=c},{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var mOq;var rM=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("kevlar_modern_sd_v2");c.modernTypography=_.F("web_modern_typography");return c};
_.K(rM,_.z);rM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.y([_.L({}),_.D("design:type",Object)],rM.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rM.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rM.prototype,"modernTypography",void 0);
_.y([_.v({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],rM);
_.h(rM,"ytd-video-description-transcript-section-renderer",function(){if(mOq!==void 0)return mOq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return mOq=c},{mode:1});var HTU;_.g_(_.dN(function(c){var f=_.Ka(_.QLP,function(){return c.data().firstProviderLinkStatusEntityKey}),d=_.Ka(_.QLP,function(){return c.data().secondProviderLinkStatusEntityKey}),q=function(){var Z,M;
return((Z=f())==null?void 0:Z.linked)||((M=d())==null?void 0:M.linked)};
return _.B("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.B(_.J9,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return c.data().sectionTitle}}),_.B(_.J9,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return q()?c.data().connectedMessage:c.data().notConnectedMessage}}),_.B(_.T,{cond:q,
then:function(){return _.B(_.u7,{data:function(){return c.data().connectedButton}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.B(_.T,{cond:function(){return!q()},
then:function(){return _.B(_.u7,{data:function(){return c.data().notConnectedButton}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Lj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;return _.B("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.B("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.B(_.J9,{text:function(){return f().sectionTitle}})),_.B("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.B(_.J9,{text:function(){return f().bodyHeader}})),_.B("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.B(_.J9,{text:function(){return f().bodyText}})),_.B(_.T,
{cond:function(){return f().attributionText},
then:function(){return _.B("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.B(_.J9,{text:function(){return f().attributionText}}))}}))},"Mj"),"how-this-was-made-section-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){return _.B("yt-video-description-youchat-section-view-model",{class:_.FY("ytVideoDescriptionYouchatSectionViewModelHost")},_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.B(_.J9,{text:function(){return c.data().sectionTitle}})),_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.B(_.J9,{text:function(){return c.data().subHeaderText}})),_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.B(_.mN,{data:function(){return _.b(c.data().primaryButton,
_.zx)}})))},"Nj"),"yt-video-description-youchat-section-view-model",{props:{data:_.oM}});var Cv=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return c};
_.K(Cv,_.z);_.r=Cv.prototype;
_.r.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}}}}}};
_.r.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.r.dataChanged=function(){var c,f;this.hasDescriptionOnly=!(((c=this.data)==null?void 0:(f=c.items)==null?void 0:f.length)!==1||!_.b(this.data.items[0],Jn))};
_.r.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.r.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.r.autoFocusDescription=function(){var c;((c=_.ql().resolve(_.dx(_.lw)))==null?0:c.isKeyBoardInUse())&&this.description&&_.xO(this.description)};
_.r.resize=function(){if(_.F("kevlar_disable_sd_resize"))this.JSC$22611_cardList&&_.CZ(this.JSC$22611_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.CZ(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.CZ(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.r.scrollToSection=function(c){if(c=this.getSectionElement(c))_.gS(this.hostElement,"yt-scroll-to-watch-element",[c]),c.focus()};
_.r.getSectionElement=function(c){switch(c){case "infocards-item-section":var f;return(f=this.infocardsSection)!=null?f:null;case "transcript-item-section":var d;return(d=this.transcriptSection)!=null?d:null;case "how-this-was-made-section-item-section":var q;return(q=this.howThisWasMadeSection)!=null?q:null;case "files-item-section":var Z;return(Z=this.filesSection)!=null?Z:null;default:return null}};
_.r.handleSetActiveItemAction=function(c){var f=_.b(c,ZjD),d=f&&(f==null?void 0:f.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22611_cardList;if(f&&d){c=this.currentActiveChapter;var q=this.currentActiveProblem;f=d==null?void 0:d.getItemByIndex(f.itemIndex);var Z=d=!0;f&&(f.active=!0,f.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(d=c!==f,Z=!1,this.currentActiveChapter=f):(f==null?void 0:f.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(d=!1,Z=q!==f,this.currentActiveProblem=f));c&&d&&(c.active=!1);q&&Z&&(q.active=!1)}};
_.ci.Object.defineProperties(Cv.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.F("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Cv.prototype.onYtExpanderMoreTapped=Cv.prototype.onYtExpanderMoreTapped;Cv.prototype.onHiddenChanged=Cv.prototype.onHiddenChanged;Cv.prototype.dataChanged=Cv.prototype.dataChanged;Cv.prototype.panelContentVisibleChanged=Cv.prototype.panelContentVisibleChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Cv.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.aJ),_.D("design:type",Object)],Cv.prototype,"ironResizableBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Cv.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],Cv.prototype,"panelContentVisible",void 0);_.y([_.L(),_.D("design:type",Boolean)],Cv.prototype,"hasDescriptionOnly",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Cv.prototype,"inlineStructuredDescription",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Cv.prototype,"hidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Cv.prototype,"shortsPanel",void 0);_.y([_.L(),_.D("design:type",Object)],Cv.prototype,"videoSummary",void 0);_.y([_.L(),_.D("design:type",Object)],Cv.prototype,"merchShelf",void 0);
_.y([_.S("videoSummary"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Cv.prototype,"showVideoSummary",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Cv.prototype,"engagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Cv.prototype,"watchWhileSdp",void 0);_.y([_.AY("ytd-expandable-video-description-body-renderer"),_.D("design:type",Object)],Cv.prototype,"description",void 0);
_.y([_.AY("ytd-horizontal-card-list-renderer"),_.D("design:type",Object)],Cv.prototype,"JSC$22611_cardList",void 0);_.y([_.AY("ytd-horizontal-card-list-renderer[center-items]"),_.D("design:type",Object)],Cv.prototype,"problemWalkthroughCardList",void 0);_.y([_.AY("ytd-shelf-renderer"),_.D("design:type",Object)],Cv.prototype,"shelfSection",void 0);_.y([_.AY("ytd-video-description-music-section-renderer"),_.D("design:type",Object)],Cv.prototype,"musicMetadataSection",void 0);
_.y([_.AY("ytd-video-description-infocards-section-renderer"),_.D("design:type",Object)],Cv.prototype,"infocardsSection",void 0);_.y([_.AY("ytd-video-description-transcript-section-renderer"),_.D("design:type",Object)],Cv.prototype,"transcriptSection",void 0);_.y([_.AY("how-this-was-made-section-view-model"),_.D("design:type",Object)],Cv.prototype,"howThisWasMadeSection",void 0);_.y([_.AY("ytd-video-description-files-section-renderer"),_.D("design:type",Object)],Cv.prototype,"filesSection",void 0);
_.y([_.m5("panelContentVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cv.prototype,"panelContentVisibleChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cv.prototype,"dataChanged",null);_.y([_.m5("hidden"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cv.prototype,"onHiddenChanged",null);
_.y([_.Ta("yt-expander-more-tapped"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Cv.prototype,"onYtExpanderMoreTapped",null);_.y([_.v({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Cv);
_.h(Cv,"ytd-structured-description-content-renderer",function(){if(HTU!==void 0)return HTU;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return HTU=c},{mode:2});var ADh;var YlW;var gM=function(){return _.z.apply(this,arguments)||this};
_.K(gM,_.z);gM.prototype.computeAriaLabel=function(c){var f,d;return(c==null?void 0:(f=c.accessibility)==null?void 0:(d=f.accessibilityData)==null?void 0:d.label)||_.HO("LOADING",void 0,"Loading")};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gM.prototype,"data",void 0);_.y([_.L({computed:"computeAriaLabel(data)"}),_.D("design:type",String)],gM.prototype,"ariaLabel",void 0);_.y([_.vj({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],gM);
_.h(gM,"yt-content-loading-renderer",function(){if(YlW===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;ADh===void 0&&(ADh=document.createElement("template"));var q=ADh;d.call(f,q.content.cloneNode(!0),c.content.firstChild);YlW=c}c=YlW;return c},{mode:_.lP("kevlar_poly_si_batch_j043")?1:2});_.g_(_.dN(function(c){var f=_.C(_.OT(!1,void 0,"QkPiwb")),d=f.next().value,q=f.next().value;f=_.C(_.OT(!1,void 0,"AFECB"));var Z=f.next().value,M=f.next().value;_.L9(function(){var l=_.b(c.data().collaboratePlaylistCollaborationSetting,KTS);l&&q(l.switchedOnByDefault);var m=_.b(c.data().allowNewCollaboratorsPlaylistCollaborationSetting,KTS);m&&M(m.switchedOnByDefault);if(!l&&!m||!l&&c.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")q(!0),M(!0)});
var g=function(l){q(l);M(l);var m=c.data().playlistCollaborationEntityKey||"";var H=_.xE().getState();(H=_.Bb(H.entities,"playlistCollaborationEntity",m))&&(H==null?void 0:H.isCollaborative)===l||_.xE().dispatch(_.ER("playlistCollaborationEntity",m,Object.assign({},H,{isCollaborative:l})))},O=function(l){M(l)};
return _.B("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.B("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.B(_.u7,{data:function(){return c.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(l){return _.B(_.D7H,{data:l.data,
onSwitch:g})}})),_.B(_.T,{cond:d,
then:function(){return _.B(_.qD,null,_.B("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.B(_.u7,{data:function(){return c.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(l){return _.B(_.D7H,{data:l.data,
onSwitch:O,overrideDisabled:!1})}})),_.B(_.T,{cond:Z,
then:function(){return _.B("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.B(_.u7,{data:function(){return c.data().copyLinkButton}},{buttonViewModel:_.mN}))}}),_.B("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.B(_.u7,{data:function(){return c.data().playlistCollaborators}},{contentListItemViewModel:_.zkF})))}}))},"Oj"),"playlist-collaboration-view-model",{props:{data:_.oM}});var F0h=_.dN(function(c){var f=c.data;var d=c.customCommandResolver;return _.B(_.qD,null,_.B("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.B(_.u7,{data:function(){return f().adAvatar}},{adAvatarViewModel:function(q){return _.B(_.KiF,{data:q.data,
customCommandResolver:d})}})),_.B("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.B(_.T,{cond:function(){return f().headline},
then:function(q){return _.B(_.J9,{text:q,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.B("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.B(_.u7,{data:function(){return f().adBadge}},{adBadgeViewModel:function(q){return _.B(_.O7,{data:q.data,
hasDot:function(){return f().primaryDetailsLine!==void 0},
customCommandResolver:d,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.B(_.u7,{data:function(){return f().primaryDetailsLine}},{adDetailsLineViewModel:function(q){return _.B(_.lg,{data:q.data,
customCommandResolver:d,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Pj"),t8D=_.dN(function(c){var f=c.data;
var d=c.customCommandResolver;return _.B("ad-avatar-lockup-view-model",{class:function(){var q;return((q=f().interaction)==null?0:q.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Z7(_.qd({visibilityCallback:function(q){var Z,M=(Z=f().interaction)==null?void 0:Z.onFirstVisible;q&&M&&_.Ph(M)},
showOption:_.dA}),_.pa(function(){return f().interaction},d)),
"aria-label":function(){var q,Z;return(q=f().interaction)==null?void 0:(Z=q.accessibility)==null?void 0:Z.label}},_.B(_.n9,null,_.B(_.K9,{when:function(){return f().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.B(F0h,{data:f,
customCommandResolver:d})}),_.B(_.E6,null,function(){return null})))},"Qj");_.g_(_.dN(function(c){var f=c.data;var d=c.panelContentVisibility;c=_.qd({visibilityCallback:function(M){var g,O=(g=f().interaction)==null?void 0:g.onFirstVisible;M&&O&&_.Ph(O)},
showOption:_.dA});var q=_.pa(function(){return f().interaction},YCW);
_.zZ(function(){var M,g;if(g=_.D5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var O;g=(O=g())==null?void 0:O.onLayoutVisibleCallback}else g=null;(M=g)==null||M()});
var Z=function(){return d()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.B("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Z7(c,q)},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.B(_.T,{cond:_.bUM("(min-width: "+((0,_.PE)()+_.Vp)+"px) or (max-width: 600px)"),then:function(){return _.B(_.u7,{data:function(){return f().adImage}},{adImageViewModel:function(M){return _.B(_.HB,{data:M.data,
targetHeight:80,customCommandResolver:YCW})}})}})),_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.B(_.u7,{data:function(){return f().adAvatarLockup}},{adAvatarLockupViewModel:function(M){return _.B(t8D,{data:M.data,
customCommandResolver:YCW})}})),_.B(_.T,{cond:Z,
then:function(){return _.B(_.u7,{data:function(){return f().adButton}},{adButtonViewModel:function(M){return _.B(_.qg,{data:M.data,
customCommandResolver:YCW})}})},
else:function(){return _.B(_.u7,{data:function(){return f().menu}},{buttonViewModel:_.mN})}}),_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.B(_.u7,{data:function(){var M=_.b(f().toggleButton,_.Jc);
return{toggleButtonViewModel:Object.assign({},M,{isTogglingDisabled:!0,isToggled:Z()})}}},{toggleButtonViewModel:_.JL})))))},"Rj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.oM,
panelContentVisibility:_.oM}});_.g_(_.dN(function(c){var f=function(){return _.b(c.data().inputComposerViewModel,E_P)},d=function(){var E;
return((E=f())==null?void 0:E.youchatPendingResponseEntityKey)||""},q=_.Ka(_.o1q,d),Z=function(){var E;
return!((E=q())==null||!E.isPendingResponse)},M=_.C(_.OT(!0,void 0,"DR0q1d")),g=M.next().value,O=M.next().value,l=function(){return f().sectionTargetId||"youchat_messages_section"};
M=_.ob("yt-chat-input-view-model");var m=_.xz("textarea"),H=_.Ka(glD,"chat_input_view_model_state"),A=kYM(),Y=function(){var E;return!((E=H())==null||!E.value)};
_.L9(function(){var E;if(!Y()&&((E=f())==null?0:E.welcomeFeatureContinuation)){var J;((J=f())==null?0:J.setPendingResponseOnWelcome)&&_.GES(d())(!0);E={continuationCommand:{token:f().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var X;J=String(Math.floor(((X=_.Ac())==null?void 0:X.getCurrentTime())||0)*1E3);X={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:J}};_.eq(E,{form:{formData:X}});A(!0)}var u=l(),W;(W=_.ql().resolve(_.dx(_.$H)))==null||
W.addEventListener("yt-navigate-start",function(){_.ae.remove(u);A(!1)},{once:!0})});
var t=function(){var E=m.value.value;m.value.value="";FhS(m.value);var J,X=((J=f())==null?void 0:J.enableGradientColorBg)||!1;J=tMD(l(),E,X);_.eq(J);var u=_.GES(d()),W;_.Ph(((W=f())==null?void 0:W.onSubmitCommand)||{});u(!0);var p;W=String(Math.floor(((p=_.Ac())==null?void 0:p.getCurrentTime())||0)*1E3);var N;p={continuationCommand:{token:(N=f())==null?void 0:N.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};E={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:E,
playerOffsetMs:W}};_.eq(p,{form:{formData:E},commandController:{onSuccess:function(){u(!1)},
onServerError:function(){var I=l();_.eq({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:I}}]}}});u(!1)}}})};
return _.B("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:M},_.B("div",{class:"chatInputViewModelChatInputWrapper"},_.B("form",{class:"chatInputViewModelChatInputForm"},_.B("textarea",{class:"chatInputViewModelChatInput",el:m,"on:keydown":_.Ks(function(E){var J=Z()||!1;FhS(m.value);J||E.key!=="Enter"||E.shiftKey||(E.preventDefault(),t());return!1}),
"on:keyup":_.Ks(function(){O(m.value.value.length===0);return!1}),
placeholder:function(){var E,J;var X=_.b((J=f())==null?void 0:J.inputFormField,dHM);return X==null?void 0:(E=X.contentProperties)==null?void 0:E.placeholderText},
rows:1}),_.B(_.mN,{data:function(){return _.b(c.data().sendButton,_.zx)},
onClick:function(E){E.preventDefault();t();O(m.value.value.length===0)},
buttonOverrides:function(){return{disabled:g()||Z()}}})),_.B(_.J9,{className:"chatInputViewModelChatDisclaimer",
text:function(){var E;return(E=_.b(c.data().disclaimer,_.wQo))==null?void 0:E.text}})))},"Sj"),"yt-chat-input-view-model",{props:{data:_.oM}});var bTW=["engagement-panel-clip-create","engagement-panel-clip-view"],K08=0,kY=function(){var c=_.z.apply(this,arguments)||this;var f;c.headerData=(f=c.data)==null?void 0:f.header;c.darkerPanels=_.F("web_watch_darker_panels");c.matchContentTheme=_.F("web_watch_panel_content_match_theme");c.disableAutoFill=!1;c.isFullscreen=!1;c.isTheaterMode=!1;c.modernPanels=_.F("kevlar_watch_modern_panels");c.liveChatReplyPanel=!1;c.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");c.disableBackdropFilter=
_.F("web_disable_backdrop_filter");c.trackEngagementPanelVisibility=_.F("web_watch_track_engagement_panel_visibility");c.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 c};
_.K(kY,_.z);_.r=kY.prototype;
_.r.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(c){var f;return(c==null?void 0:(f=c.webComponentHint)==null?void 0:f.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"}}}};
_.r.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var c;if((c=this.hostElement.parentElement)==null?0:c.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.r.detached=function(){this.updateTheaterDisablement()};
_.r.showPanel=function(){var c=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.a7.addJob(function(){c.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.r.maybeScrollToItemSection=function(c){var f=this,d,q=c==null?void 0:(d=c.sectionListEngagementPanelExtras)==null?void 0:d.scrollToItemSectionIdentifier;q&&_.a7.addJob(function(){var Z;(Z=f.sectionListRendererElement)==null||Z.scrollToItemSection(q)},8)};
_.r.hidePanel=function(){var c=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.a7.addJob(function(){c.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.r.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.r.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.r.updatePanel=function(c,f,d,q){var Z=this;if((c=c==null?void 0:c.engagementPanelSectionListRenderer)||q){if(c){q=c.header;var M=c.content,g=c.footer;(c=c.targetId)&&this.set("data.targetId",c);q&&this.set("data.header",q);M&&this.set("data.content",M);g&&this.set("data.footer",g)}else q&&(c=q.content,M=q.secondaryHeaderContent,(q=q.targetId)&&this.set("data.targetId",q),c&&this.set("data.content",c),M&&(this.secondaryHeaderData=M));this.updateChildVisibilityProperties();if(f){var O;_.F("kevlar_update_panel_focus_scroll_killswitch")||
(O={preventScroll:!0});this.focus(O)}_.ol(this,function(){_.CZ(Z.hostElement,"yt-refit");Z.maybeScrollToItemSection(d)})}};
_.r.computeHeaderData=function(){var c,f=(0,_.zV.unsafeClone)((c=this.data)==null?void 0:c.header);if(f){c=new _.fi(Object.keys(f)[0]);var d=_.b(f,c),q=_.b(this.secondaryHeaderData,c);q&&_.vh(f,c,Object.assign({},q,d))}return f};
_.r.getReloadContinuation=function(){var c,f,d,q=_.C(((c=this.data)==null?void 0:(f=c.content)==null?void 0:(d=f.sectionListRenderer)==null?void 0:d.continuations)||[]);for(c=q.next();!c.done;c=q.next())if(c=c.value,c.reloadContinuationData)return c.reloadContinuationData.continuation};
_.r.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var c;((c=this.data)==null?0:c.targetId)&&(c=this.contentElement.firstElementChild)&&c.setAttribute("panel-target-id",this.data.targetId)};
_.r.forwardPopupClosedToFlowRootRenderer=function(){var c=_.r1(this.hostElement).querySelector("ytd-flow-root-renderer");if(c)c.onPopupClosed()};
_.r.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var c;if(!bTW.includes((c=this.theaterDisablementPanelIdentifier)!=null?c:""))if(c=_.F("web_watch_imax_theater_mode")&&this.isTheaterMode,c=_.F("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||c,_.F("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||c){var f;this.visibility=(f=this.data)==null?void 0:f.visibility;var d;this.trackEngagementPanelVisibility&&((d=this.data)==null?void 0:d.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var q,Z,M,g;this.contentEmpty=!!(((q=this.data)==null?0:(Z=q.content)==null?0:Z.structuredDescriptionContentRenderer)&&Object.keys((M=this.data)==null?void 0:(g=M.content)==null?void 0:
g.structuredDescriptionContentRenderer).length===0);(f=_.ql().resolve(_.SD))&&f.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.r.isTheaterModeChanged=function(){_.F("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.r.isFullscreenChanged=function(){_.F("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.r.focus=function(c){if(this.header)this.header.focus(c);else{var f;(f=_.r1(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||f.focus(c)}};
_.r.visibilityChanged=function(){if(!_.F("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var c=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=q||!this.lastVisibility,M,g,O,l=((M=this.data)==null?void 0:(g=M.identifier)==null?void 0:
g.tag)||((O=this.data)==null?void 0:O.panelIdentifier);if(c&&Z){var m;((m=this.data)==null?0:m.onShowCommands)&&_.ll(this.hostElement,this.data.onShowCommands,this.hostElement);l&&_.Gh().dispatch(_.CC({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:l}}))}else if(f&&d){var H;((H=this.data)==null?0:H.onHideCommands)&&_.ll(this.hostElement,this.data.onHideCommands,this.hostElement);l&&_.Gh().dispatch(_.CC({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:l}}))}c&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*K08++));_.F("kevlar_watch_focus_on_engagement_panels")&&c&&q&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.r.notifyVisibilityChanged=function(c){var f;_.kt(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,c,(f=this.data)==null?void 0:f.targetId])};
_.r.updateTheaterDisablement=function(){if(!_.F("kevlar_watch_theater_disablement_killswitch")){var c=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&bTW.includes(c)&&!_.F("watch_next_grid_ignore_disallowed_panels")){var f=_.Wr(_.Gh().getState()),d=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";c!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():d?(this.originalTheaterState===void 0&&(this.originalTheaterState=f,this.theaterDisablementPanelIdentifier=
c),f&&_.gS(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.r.clearTheaterDisablement=function(){_.gS(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.r.updateChildVisibilityProperties=function(){this.hostElement||_.F("kevlar_panel_property_init_killswitch")||this._enableProperties();var c=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=c);var f,d=(f=this.headerElement)==null?void 0:f.firstElementChild;if(d&&!this.adHeaderImageLockupViewModel){f=c==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";d.collapsed=f;d=_.r1(d).querySelector("#visibility-button");if(!d)return;(d=d.firstElementChild)&&
d.polymerController.is==="ytd-toggle-button-renderer"&&d.polymerController.data.isToggled!==f&&d.polymerController.set("data.isToggled",f)}var q;if(f=(q=this.contentElement)==null?void 0:q.firstElementChild)if(c&&c!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")f.removeAttribute("panel-content-visible");else{f.setAttribute("panel-content-visible","");var Z;(Z=f.markDirty)==null||Z.call(f)}};
_.r.onYtChangeEngagementPanelVisibilityAction=function(c){var f=this,d,q=(d=this.data)==null?void 0:d.targetId,Z,M,g;d=((Z=this.data)==null?void 0:(M=Z.identifier)==null?void 0:M.tag)||((g=this.data)==null?void 0:g.panelIdentifier);var O=_.b(c,_.w2_),l;c=q&&(O==null?void 0:O.targetId)===q||d&&(O==null?void 0:(l=O.panelIdentifier)==null?void 0:l.tag)===d;this.dialog&&c&&(O==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(q==="engagement-panel-comments-section"?_.gS(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.gS(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",d]));!_.F("kevlar_use_engagement_panel_management_component")&&c&&(q=O.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!q?_.a7.addJob(function(){f.visibility=O.visibility},2,this.hideDelayMs):this.visibility=O.visibility,O.visibility&&this.notifyVisibilityChanged(O.visibility))};
_.r.onYtScrollToEngagementPanelCommand=function(c){var f,d=(f=this.data)==null?void 0:f.targetId,q,Z,M;f=((q=this.data)==null?void 0:(Z=q.identifier)==null?void 0:Z.tag)||((M=this.data)==null?void 0:M.panelIdentifier);c=_.b(c,_.oor);var g;(d&&(c==null?void 0:c.targetId)===d||f&&(c==null?void 0:(g=c.panelIdentifier)==null?void 0:g.tag)===f)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.gS(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.r.attachVEs=function(c){var f,d;(c==null?0:(f=c.content)==null?0:(d=f.productListRenderer)==null?0:d.trackingParams)&&_.bP().graftServerVe(c.content.productListRenderer.trackingParams);var q,Z;(c==null?0:(q=c.content)==null?0:(Z=q.transcriptRenderer)==null?0:Z.trackingParams)&&_.bP().graftServerVe(c.content.transcriptRenderer.trackingParams)};
_.r.onYtUpdateEngagementPanelAction=function(c){var f,d=(f=this.data)==null?void 0:f.targetId;c=_.b(c,r3U);d&&(c==null?void 0:c.targetId)===d&&(this.updatePanel({engagementPanelSectionListRenderer:{header:c==null?void 0:c.header,content:c==null?void 0:c.content}},!1),this.attachVEs(c))};
_.r.onYtShowEngagementPanelScrimAction=function(c){var f,d=(f=this.data)==null?void 0:f.targetId;c=_.b(c,Muh);d&&(c==null?void 0:c.engagementPanelTargetId)===d&&(this.scrimmed=!0)};
_.r.onYtHideEngagementPanelScrimAction=function(c){var f,d=(f=this.data)==null?void 0:f.targetId;c=_.b(c,q3U);d&&(c==null?void 0:c.engagementPanelTargetId)===d&&(this.scrimmed=!1)};
_.r.getIdentifier=function(){var c,f,d;return((c=this.data)==null?void 0:c.panelIdentifier)||((f=this.data)==null?void 0:(d=f.identifier)==null?void 0:d.tag)};
_.r.getSurface=function(){var c,f;return(c=this.data)==null?void 0:(f=c.identifier)==null?void 0:f.surface};
_.ci.Object.defineProperties(kY.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var c=this.getIdentifier();return c==="engagement-panel-youchat"||c==="PAyouchat"}}});
kY.prototype.visibilityChanged=kY.prototype.visibilityChanged;kY.prototype.isFullscreenChanged=kY.prototype.isFullscreenChanged;kY.prototype.isTheaterModeChanged=kY.prototype.isTheaterModeChanged;kY.prototype.dataChanged=kY.prototype.dataChanged;kY.prototype.forwardPopupClosedToFlowRootRenderer=kY.prototype.forwardPopupClosedToFlowRootRenderer;kY.prototype.onYtRendererstamperFinished=kY.prototype.onYtRendererstamperFinished;
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],kY.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],kY.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],kY.prototype,"ytEventForwardingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],kY.prototype,"data",void 0);
_.y([_.L({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.D("design:type",Object)],kY.prototype,"headerData",void 0);_.y([_.L(),_.D("design:type",Object)],kY.prototype,"secondaryHeaderData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"visibility",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],kY.prototype,"contentEmpty",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],kY.prototype,"scrimmed",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],kY.prototype,"dialog",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],kY.prototype,"dropdown",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"darkerPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"matchContentTheme",void 0);_.y([_.L(),_.D("design:type",Object)],kY.prototype,"disableAutoFill",void 0);
_.y([_.L({reflectToAttribute:!0,value:_.F("optimal_reading_width_comments_ep")}),_.D("design:type",Boolean)],kY.prototype,"optimalReadingWidthComments",void 0);_.y([_.L(),_.D("design:type",Number)],kY.prototype,"hideDelayMs",void 0);_.y([_.L({selector:_.D7,reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"isFullscreen",void 0);_.y([_.L({selector:_.Wr,reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"isTheaterMode",void 0);
_.y([_.L(),_.D("design:type",Number)],kY.prototype,"showDelayMs",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.targetId"),_.D("design:type",Object),_.D("design:paramtypes",[])],kY.prototype,"targetId",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],kY.prototype,"webSize",null);_.y([_.L(),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],kY.prototype,"hideFooterBorder",null);
_.y([_.L(),_.D("design:type",Object)],kY.prototype,"isWatch",void 0);_.y([_.L(),_.D("design:type",Object)],kY.prototype,"originalTheaterState",void 0);_.y([_.L(),_.D("design:type",Object)],kY.prototype,"theaterDisablementPanelIdentifier",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"modernPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],kY.prototype,"isWatchWhilePanel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],kY.prototype,"shortsPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],kY.prototype,"liveChatEngagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],kY.prototype,"learningChatEngagementPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"liveChatReplyPanel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"enableAnchoredPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kY.prototype,"disableBackdropFilter",void 0);_.y([_.L(),_.D("design:type",Object)],kY.prototype,"trackEngagementPanelVisibility",void 0);_.y([_.AY("#header"),_.D("design:type",HTMLElement)],kY.prototype,"headerElement",void 0);_.y([_.AY("#header > *"),_.D("design:type",HTMLElement)],kY.prototype,"header",void 0);
_.y([_.AY("ytd-section-list-renderer"),_.D("design:type",Object)],kY.prototype,"sectionListRendererElement",void 0);_.y([_.AY("panel-ad-header-image-lockup-view-model"),_.D("design:type",HTMLElement)],kY.prototype,"adHeaderImageLockupViewModel",void 0);_.y([_.AY("#content"),_.D("design:type",HTMLElement)],kY.prototype,"contentElement",void 0);
_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kY.prototype,"onYtRendererstamperFinished",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kY.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.y([_.ba("data","isFullscreen","isTheaterMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kY.prototype,"dataChanged",null);
_.y([_.m5("isTheaterMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kY.prototype,"isTheaterModeChanged",null);_.y([_.m5("isFullscreen"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kY.prototype,"isFullscreenChanged",null);_.y([_.m5("visibility"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kY.prototype,"visibilityChanged",null);
_.y([_.v({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],kY);
_.h(kY,"ytd-engagement-panel-section-list-renderer",function(){if(Rhh!==void 0)return Rhh;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Rhh=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var Ew8;var Oh=function(){var c=_.z.apply(this,arguments)||this;c.lastRenderedPanelIds=new Set;c.visiblePanels=[];c.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return c};
_.K(Oh,_.z);_.r=Oh.prototype;_.r.dataChanged=function(){if(this.data){for(var c=[],f=_.C(this.data),d=f.next();!d.done;d=f.next()){d=d.value;var q=void 0,Z=void 0,M=(q=d)==null?void 0:(Z=q.engagementPanelSectionListRenderer)==null?void 0:Z.visibility;Z=q=void 0;((q=d)==null?0:(Z=q.engagementPanelSectionListRenderer)==null?0:Z.targetId)&&M!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&c.push(d)}this.visiblePanels=c}else this.visiblePanels=[]};
_.r.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}}};
_.r.withoutVisiblePanelById=function(c){return this.visiblePanels.filter(function(f){var d;return((d=f.engagementPanelSectionListRenderer)==null?void 0:d.targetId)!==c})};
_.r.onYtChangeEngagementPanelVisibilityAction=function(c){var f=this,d=_.b(c,_.w2_);if(this.data&&(d==null?0:d.targetId)&&(d==null?0:d.visibility)){var q,Z=(q=this.data.find(function(g){var O;return((O=g.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===d.targetId}))==null?void 0:q.engagementPanelSectionListRenderer;
if(Z){var M=this.withoutVisiblePanelById(d.targetId);d.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(c=this.data.find(function(g){var O;return((O=g.engagementPanelSectionListRenderer)==null?void 0:O.targetId)===d.targetId}))&&(M=[c].concat(_.LT(M)));
this.hideDelayMs&&d.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.length===0?_.a7.addJob(function(){Z.visibility=d.visibility;f.visiblePanels=M},10,this.hideDelayMs):(Z.visibility=d.visibility,this.visiblePanels=M);
_.kt(this.hostElement,"yt-engagement-panels-visible-changed",[M])}}};
_.r.onRendererstamperFinished=function(){var c=new Set(this.visiblePanels.map(function(f){var d;return(d=f.engagementPanelSectionListRenderer)==null?void 0:d.targetId}));
this.handlePanelVisibilityChange(c,this.lastRenderedPanelIds);this.lastRenderedPanelIds=c};
_.r.handlePanelVisibilityChange=function(c,f){c=c===void 0?new Set:c;f=f===void 0?new Set:f;if(this.data)for(var d=_.C(this.data),q=d.next();!q.done;q=d.next()){q=q.value;var Z=void 0,M=void 0,g=(Z=q)==null?void 0:(M=Z.engagementPanelSectionListRenderer)==null?void 0:M.targetId;if(g&&(Z=f.has(g),M=c.has(g),g=void 0,!Z&&M?(M=Z=void 0,g=(Z=q)==null?void 0:(M=Z.engagementPanelSectionListRenderer)==null?void 0:M.onShowCommands):Z&&!M&&(M=Z=void 0,g=(Z=q)==null?void 0:(M=Z.engagementPanelSectionListRenderer)==
null?void 0:M.onHideCommands),g))for(q=_.C(g),g=q.next();!g.done;g=q.next())this.ytComponentBehavior.resolveCommand(g.value)}};
Oh.prototype.onRendererstamperFinished=Oh.prototype.onRendererstamperFinished;Oh.prototype.dataChanged=Oh.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Oh.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Oh.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Oh.prototype,"lastRenderedPanelIds",void 0);_.y([_.L(),_.D("design:type",Number)],Oh.prototype,"hideDelayMs",void 0);_.y([_.L(),_.D("design:type",Array)],Oh.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Array)],Oh.prototype,"visiblePanels",void 0);_.y([_.L(),_.D("design:type",Boolean)],Oh.prototype,"isWatchWhilePanel",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Oh.prototype,"dataChanged",null);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Oh.prototype,"onRendererstamperFinished",null);_.y([_.v({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Oh);
_.h(Oh,"ytd-watch-engagement-panels",function(){if(Ew8!==void 0)return Ew8;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Ew8=c},{mode:1});var nw8;var l$=function(){return _.z.apply(this,arguments)||this};
_.K(l$,_.z);l$.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.G8(_.r1(this.hostElement).querySelector("#text"),_.$Hj(_.LTv,this.data.companionLegalText))};
l$.prototype.computeAutoScrollEnabled=function(c,f){return c&&!f};
l$.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
l$.prototype.onToggleTap=function(){this.expanded=!this.expanded};
l$.prototype.expandedChanged=l$.prototype.expandedChanged;l$.prototype.dataChanged=l$.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.mrq),_.D("design:type",Object)],l$.prototype,"ytdAutoScrollBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],l$.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],l$.prototype,"expanded",void 0);
_.y([_.L({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.D("design:type",Boolean)],l$.prototype,"autoScrollEnabled",void 0);_.y([_.L(),_.D("design:type",String)],l$.prototype,"expanderIcon",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],l$.prototype,"dataChanged",null);
_.y([_.m5("expanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],l$.prototype,"expandedChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],l$);
_.h(l$,"ytd-companion-legal-text-renderer",function(){if(nw8!==void 0)return nw8;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return nw8=c},{mode:1});var $OU;var sh=function(){var c=_.z.apply(this,arguments)||this;c.buttonUpdate=_.F("web_modern_buttons");c.kevlarWatchGrid=_.F("kevlar_watch_grid");c.centerAlignDescription=_.F("action_companion_center_align_description");c.truncateDomain=_.F("action_companion_truncate_domain");return c};
_.K(sh,_.z);_.r=sh.prototype;_.r.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.r.getOnLayoutVisibleCallback=function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.onLayoutVisibleCallback:null};
_.r.getLayoutId=function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.layoutId:null};
_.r.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",sh.JSC$22657_DEFAULT_AD_BADGE_RENDERER);var c=this.getOnLayoutVisibleCallback();c&&c()}};
_.r.getButtonRenderer=function(c){return c.actionButton&&_.b(c.actionButton,_.WQ)?(delete _.b(c.actionButton,_.WQ).navigationEndpoint,_.b(c.actionButton,_.WQ)):{}};
_.r.onClick=function(c){var f=this;if((!_.F("web_modern_buttons")||!_.qY(_.x0(c),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){c=_.Ca();var d=this.getLayoutId();c&&d&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?c.getPlayerPromise().then(function(q){(new _.Sz(q)).executeCommand(f.data.navigationEndpoint,d)}):_.F("kevlar_companion_resolve_command_killswitch")?_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.gS(this.hostElement,"yt-companion-ad-clicked",["action-companion",d])}};
_.ci.Object.defineProperties(sh.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.data)==null?0:(f=c.detailsLine)==null?0:(d=f.adRating)==null?0:d.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 c,f,d,q;return((c=this.data)==null?0:(f=c.detailsLine)==null?0:(d=f.adRating)==null?0:(q=d.ratingIcon)==null?0:q.iconType)?_.Tu(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q;return((c=this.data)==null?0:(f=c.detailsLine)==null?0:(d=f.texts)==null?0:(q=d[0])==null?0:q.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 c,f;return((c=this.data)==null?0:(f=c.description)==null?0:f.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var c=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return c?c.indexOf("/default_banner")!==-1:!0}}});
sh.prototype.onClick=sh.prototype.onClick;sh.prototype.dataChanged=sh.prototype.dataChanged;sh.JSC$22657_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.HO("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],sh.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],sh.prototype,"rendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],sh.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sh.prototype,"buttonUpdate",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sh.prototype,"kevlarWatchGrid",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sh.prototype,"centerAlignDescription",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sh.prototype,"truncateDomain",void 0);
_.y([_.L({computed:"computeButtonOverride(buttonUpdate)"}),_.D("design:type",Object)],sh.prototype,"buttonOverride",void 0);_.y([_.S("data.detailsLine.adRating.ratingText"),_.D("design:type",Object),_.D("design:paramtypes",[])],sh.prototype,"getRating",null);_.y([_.S("getRating"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],sh.prototype,"computeRatingHidden",null);
_.y([_.S("data.detailsLine.adRating.ratingIcon.iconType"),_.D("design:type",Object),_.D("design:paramtypes",[])],sh.prototype,"iconType",null);_.y([_.S("data.detailsLine.texts.0.text"),_.D("design:type",Object),_.D("design:paramtypes",[])],sh.prototype,"getDetailsLine",null);_.y([_.S("getDetailsLine"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],sh.prototype,"computeDetailsLineHidden",null);
_.y([_.S("data.description.text"),_.D("design:type",Object),_.D("design:paramtypes",[])],sh.prototype,"getDescriptionText",null);_.y([_.S("getDescriptionText"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],sh.prototype,"computeDescriptionTextHidden",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],sh.prototype,"interactionLoggingClientData",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],sh.prototype,"hideBanner",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sh.prototype,"dataChanged",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],sh.prototype,"onClick",null);_.y([_.v({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],sh);
_.h(sh,"ytd-action-companion-ad-renderer",function(){if($OU!==void 0)return $OU;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return $OU=c},{mode:_.lP("kevlar_poly_si_batch_j067")?1:2});var QZD;var Slh;var Bl=function(){var c=_.z.apply(this,arguments)||this;c.buttonUpdate=_.F("web_modern_buttons");c.hideLegacyBanner=_.F("enable_dsa_one_click_ata_translators_infeed_elements");c.adInfoButtonStyle="mono";c.adInfoButtonType="text";c.noDotAdBadge=!0;return c};
_.K(Bl,_.z);_.r=Bl.prototype;_.r.getOnLayoutVisibleCallback=function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.onLayoutVisibleCallback:null};
_.r.getLayoutId=function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.layoutId:null};
_.r.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 c=this.data.image.thumbnail.thumbnails[0];this.imageSrc=c.url?_.XD(c.url):void 0;this.imageWidth=c.width||0;this.imageHeight=c.height||0}this.data.clickthroughEndpoint&&_.b(this.data.clickthroughEndpoint,_.Ib)&&(c=_.b(this.data.clickthroughEndpoint,_.Ib).url,_.F("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
c||"":c?(c=_.XD(c),this.clickThroughUrl=_.Lq(c)):this.clickThroughUrl=void 0);(c=this.getOnLayoutVisibleCallback())&&c()}};
_.r.onClick=function(c){_.qY(_.x0(c),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(c)};
_.r.handleClick=function(){var c=this;this.data&&this.data.clickthroughEndpoint&&(_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(f){c.macroReplacementBehavior.sendServiceRequestAction([f])}),_.gS(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.r.onLoad=function(){_.kt(this.hostElement,"yt-refit-popups-action")};
_.ci.Object.defineProperties(Bl.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.interactionLoggingClientData:null}}});
Bl.prototype.onLoad=Bl.prototype.onLoad;Bl.prototype.onClick=Bl.prototype.onClick;Bl.prototype.dataChanged=Bl.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Bl.prototype,"rendererBehavior",void 0);_.y([_.Q(fJP.YtMacroReplacementBehavior),_.D("design:type",Object)],Bl.prototype,"macroReplacementBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Bl.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Bl.prototype,"buttonUpdate",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Bl.prototype,"hideLegacyBanner",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Bl.prototype,"adInfoButtonStyle",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Bl.prototype,"adInfoButtonType",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Bl.prototype,"macros",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Bl.prototype,"interactionLoggingClientData",null);_.y([_.L(),_.D("design:type",String)],Bl.prototype,"clickThroughUrl",void 0);_.y([_.L(),_.D("design:type",_.nq)],Bl.prototype,"imageSrc",void 0);_.y([_.L(),_.D("design:type",Number)],Bl.prototype,"imageWidth",void 0);_.y([_.L(),_.D("design:type",Number)],Bl.prototype,"imageHeight",void 0);_.y([_.L(),_.D("design:type",Object)],Bl.prototype,"noDotAdBadge",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Bl.prototype,"dataChanged",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Bl.prototype,"onClick",null);_.y([_.Ta("load"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Bl.prototype,"onLoad",null);_.y([_.v({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Bl);
_.h(Bl,"ytd-image-companion-renderer",function(){if(Slh!==void 0)return Slh;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Slh=c},{mode:_.lP("kevlar_poly_si_batch_j067")?1:2});var L0v;var i$=function(){return _.z.apply(this,arguments)||this};
_.K(i$,_.z);_.r=i$.prototype;_.r.dataChanged=function(){this.set("data.adBadge",i$.JSC$22666_DEFAULT_AD_BADGE_RENDERER);if(this.data){var c=this.getOnLayoutVisibleCallback();c&&c()}};
_.r.getOnLayoutVisibleCallback=function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.onLayoutVisibleCallback:null};
_.r.getLayoutId=function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.layoutId:null};
_.r.onCompanionClicked=function(c){this.data&&(c.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.gS(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.r.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var c=_.Ca(),f=this.getLayoutId(),d=this.data.clickToAdvSiteEndpoint;c&&f&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?c.getPlayerPromise().then(function(q){(new _.Sz(q)).executeCommand(d,f)}):_.CZ(this.hostElement,"yt-navigate",{endpoint:d})}};
_.r.sendTrackingPings=function(c){if(c&&c.length!==0&&c[0].loggingUrls&&(c=c[0].loggingUrls.map(this.getBaseUrl)))for(var f=0;f<c.length;f++)_.e6(c[f])};
_.r.getBaseUrl=function(c){return c.baseUrl||""};
_.ci.Object.defineProperties(i$.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var c=_.D5("yt.www.ads.eventcache.getLastCompanionData");return c?(c=c())&&c.interactionLoggingClientData:null}}});
i$.prototype.onCompanionClicked=i$.prototype.onCompanionClicked;i$.prototype.dataChanged=i$.prototype.dataChanged;i$.JSC$22666_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.HO("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],i$.prototype,"data",void 0);_.y([_.AY("#title"),_.D("design:type",HTMLElement)],i$.prototype,"shopTitle",void 0);
_.y([_.ba("data.impressionEndpoints"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],i$.prototype,"dataChanged",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],i$.prototype,"interactionLoggingClientData",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],i$.prototype,"onCompanionClicked",null);
_.y([_.v({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],i$);
_.h(i$,"ytd-shopping-companion-renderer",function(){if(L0v!==void 0)return L0v;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return L0v=c},{mode:1});_.g_(_.dN(function(c){var f=c.data;c=_.qd({visibilityCallback:function(q){var Z,M=(Z=f().interaction)==null?void 0:Z.onFirstVisible;q&&M&&_.Ph(M)},
showOption:_.dA});var d=_.pa(function(){return f().interaction},brh);
_.zZ(function(){var q,Z;Z=(Z=_.D5("yt.www.ads.eventcache.getLastCompanionData"))?(Z=Z())&&Z.onLayoutVisibleCallback:null;(q=Z)==null||q()});
return _.B("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Ks(function(q){_.kt(q.currentTarget,"yt-refit-popups-action")}),
el:_.Z7(c,d),"aria-label":function(){var q,Z;return(q=f().interaction)==null?void 0:(Z=q.accessibility)==null?void 0:Z.label}},_.B("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.B(_.u7,{data:function(){return f().adImage}},{adImageViewModel:function(q){return _.B(_.HB,{data:q.data,
targetHeight:80,customCommandResolver:brh})}})),_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.B(_.u7,{data:function(){return f().adBadge}},{adBadgeViewModel:function(q){return _.B(_.O7,{data:q.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.B(_.u7,{data:function(){return f().menu}},{buttonViewModel:_.mN}))))},"Tj"),"banner-image-layout-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;c=_.qd({visibilityCallback:function(q){var Z,M=(Z=f().interaction)==null?void 0:Z.onFirstVisible;q&&M&&_.Ph(M)},
showOption:_.dA});var d=_.pa(function(){return f().interaction},Khh);
_.zZ(function(){var q,Z;Z=(Z=_.D5("yt.www.ads.eventcache.getLastCompanionData"))?(Z=Z())&&Z.onLayoutVisibleCallback:null;(q=Z)==null||q()});
return _.B("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Z7(c,d)},_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.B(_.u7,{data:function(){return f().adImage}},{adImageViewModel:function(q){return _.B(_.HB,{data:q.data,
targetHeight:80,customCommandResolver:Khh})}})),_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.B(_.u7,{data:function(){return f().adAvatarLockup}},{adAvatarLockupViewModel:function(q){return _.B(t8D,{data:q.data,
customCommandResolver:Khh})}})),_.B(_.u7,{data:function(){return f().adButton}},{adButtonViewModel:function(q){return _.B(_.qg,{data:q.data,
customCommandResolver:Khh})}}),_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.B(_.u7,{data:function(){return f().menu}},{buttonViewModel:_.mN}))))},"Uj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.oM}});var zUD={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"},Tl=function(){var c=_.z.apply(this,arguments)||this;c.updateCompanionDataJobId=0;c.contentVideoId=null;c.player=null;c.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return c};
_.K(Tl,_.z);_.r=Tl.prototype;_.r.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:zUD}}};
_.r.attached=function(){var c=this,f=_.Ca();f&&f.getPlayerPromise().then(function(d){c.getCachedDataAndListen(d)})};
_.r.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.r.updateRendererStamper=function(){var c={};if(this.data)for(var f in zUD)if(this.data[f]){c[f]=this.data[f];break}if(this.oneofRenderer!=void 0||Object.keys(c).length)this.oneofRenderer=c};
_.r.getCachedDataAndListen=function(c){var f=this.retrieveCachedCompanionData();f&&Object.keys(f).length&&this.receiveCompanionData(f);this.ytPlayerListenerBehavior.listenToPlayerEvent(c,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=c};
_.r.retrieveCachedCompanionData=function(){return _.dz.yt&&_.dz.yt.www&&_.dz.yt.www.ads&&_.dz.yt.www.ads.eventcache&&_.dz.yt.www.ads.eventcache.getLastCompanionData?_.dz.yt.www.ads.eventcache.getLastCompanionData():null};
_.r.receiveCompanionData=function(c){c&&Object.keys(c).length?(this.contentVideoId=c.contentVideoId,this.setCompanionData(c)):this.setCompanionData(c)};
_.r.setCompanionData=function(c){this.cancelPendingCompanionAdJobs();if(c){this.updateCompanionDataJobId=0;for(var f in zUD)zUD.hasOwnProperty(f)&&(this.data[f]=void 0);c.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",c.shoppingCompanionCarouselRenderer):c.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",c.imageCompanionAdRenderer):c.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",c.actionCompanionAdRenderer),_.kt(this.hostElement,
"yt-hide-unlimited-offer-module"),_.kt(this.hostElement,"yt-hide-tvfilm-offer-module")):c.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",c.bannerImageLayoutViewModel):c.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",c.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.r.dataChanged=function(){var c=this,f=_.Ca();f?f.getPlayerPromise().then(function(d){c.contentVideoId&&d.getVideoUrl().includes("v="+c.contentVideoId)||(c.cancelPendingCompanionAdJobs(),c.updateRendererStamper())}):_.eZ(Error("xo"))};
_.r.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.a7.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.r.handleCompanionAdClicked=function(c,f){this.player.onAdUxClicked(c,f);this.player.pauseVideo()};
Tl.prototype.dataChanged=Tl.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Tl.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Tl.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Tl.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],Tl.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Tl.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Tl.prototype,"oneofRenderer",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Tl.prototype,"dataChanged",null);_.y([_.v({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Tl);
_.h(Tl,"ytd-companion-slot-renderer",function(){if(QZD!==void 0)return QZD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return QZD=c},{mode:_.lP("kevlar_poly_si_batch_j067")?
1:2});var JDP;var m2=function(){return _.z.apply(this,arguments)||this};
_.K(m2,_.z);m2.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
m2.prototype.dataChanged=m2.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],m2.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],m2.prototype,"companionSlotData",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],m2.prototype,"dataChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],m2);
_.h(m2,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(JDP!==void 0)return JDP;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return JDP=c},{mode:1});var adJ;var Hl=function(){var c=_.z.apply(this,arguments)||this;c.skinnyMode=!1;c.COMPACT_EVENT_COUNT=4;c.onShelfToggleButtonTap=function(){c.logTap(c.data);c.showingMore=!c.showingMore};
c.onShelfToggleButtonFocus=function(){c.showingMore||(c.logTap(c.data),c.showingMore=!0,_.ol(c,function(){var f=c.COMPACT_EVENT_COUNT-1,d;(d=_.r1(c.hostElement).querySelector("#event-"+f))==null||d.focus()}))};
return c};
_.K(Hl,_.z);_.r=Hl.prototype;_.r.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.r.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.r.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.ia(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.ia(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.ia(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.ia(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.ia(this.infoTooltip,this.infoTooltip.hide))};
_.r.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.ia(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.ia(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.ia(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.ia(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.ia(this.infoTooltip,this.infoTooltip.hide))};
_.r.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)};
_.r.onShowingMoreChanged=function(){var c;this.showingMoreChanged((c=this.showingMore)!=null?c:!1)};
_.r.showingMoreChanged=function(c){var f=this.get("data.events")||[];this.set("restEvents",f.slice(1,c?f.length:this.COMPACT_EVENT_COUNT).map(function(d){return d.ticketEventRenderer}));
f.slice(0,c?f.length:this.COMPACT_EVENT_COUNT).forEach(function(d){var q=_.X2();d=d.ticketEventRenderer.trackingParams;_.V5()&&q&&d&&(d=_.Q1(d),q&&_.N9(q,d))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.r.computeAriaLabel=function(c){return c.subtitle1+", "+c.subtitle2};
_.r.logTap=function(c){_.V5()&&this.ytRendererBehavior.logExplicitClick(c)};
_.r.isKeyboardAction=function(c){return this.get("detail.x",c)===0&&this.get("detail.y",c)===0};
_.r.onFirstEventTap=function(c){c.target&&this.handleTap(c.target,this.firstEvent,this.isKeyboardAction(c))};
_.r.onTicketLinkTap=function(c){c.target&&this.handleTap(c.target,c.model.item,this.isKeyboardAction(c))};
_.r.handleTap=function(c,f,d){if(f.buttonCommand)if(f.hasMultipleOffers)Object.assign(_.b(f.buttonCommand,_.Lz),{properties:{source:d?"keyboard":"tap"}}),this.logTap(f),this.popupPositionTarget=c,_.ll(this.hostElement,[f.buttonCommand],this.hostElement);else{var q;if((q=_.b(f.buttonCommand,_.Ib))==null?0:q.url)this.logTap(f),_.PU(window,_.b(f.buttonCommand,_.Ib).url)}};
Hl.prototype.onShowingMoreChanged=Hl.prototype.onShowingMoreChanged;Hl.prototype.dataChanged=Hl.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Hl.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Hl.prototype,"firstEvent",void 0);_.y([_.L(),_.D("design:type",Object)],Hl.prototype,"restEvents",void 0);_.y([_.L(),_.D("design:type",String)],Hl.prototype,"imageUrl",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Hl.prototype,"showingMore",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Hl.prototype,"canShowMore",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Hl.prototype,"skinnyMode",void 0);_.y([_.L(),_.D("design:type",HTMLElement)],Hl.prototype,"popupPositionTarget",void 0);_.y([_.AY("#banner-info-tooltip"),_.D("design:type",Object)],Hl.prototype,"infoTooltip",void 0);
_.y([_.AY("#info-container"),_.D("design:type",HTMLElement)],Hl.prototype,"infoContainer",void 0);_.y([_.AY("#shelf-toggler"),_.D("design:type",HTMLElement)],Hl.prototype,"shelfToggleButton",void 0);_.y([_.AY("#separator"),_.D("design:type",HTMLDivElement)],Hl.prototype,"separator",void 0);_.y([_.L(),_.D("design:type",String)],Hl.prototype,"shelfTogglerLabelText",void 0);_.y([_.L(),_.D("design:type",String)],Hl.prototype,"shelfTogglerIcon",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Hl.prototype,"dataChanged",null);_.y([_.ba("showingMore"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Hl.prototype,"onShowingMoreChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Hl);
_.h(Hl,"ytd-ticket-shelf-renderer",function(){if(adJ!==void 0)return adJ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return adJ=c},{mode:1});var V8E;var Xk8;var AI=function(){return _.z.apply(this,arguments)||this};
_.K(AI,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],AI.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],AI);
_.h(AI,"ytd-comments-entry-point-message-renderer",function(){if(Xk8!==void 0)return Xk8;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Xk8=c},{mode:1});var umq;var YY=function(){return _.z.apply(this,arguments)||this};
_.K(YY,_.z);_.ci.Object.defineProperties(YY.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.teaserAvatar)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],YY.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],YY.prototype,"hasAvatar",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],YY);
_.h(YY,"ytd-comments-entry-point-teaser-renderer",function(){if(umq!==void 0)return umq;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return umq=c},{mode:1});var vwh;var Fg=function(){return _.z.apply(this,arguments)||this};
_.K(Fg,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Fg.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Fg);
_.h(Fg,"ytd-comments-simplebox-renderer",function(){if(vwh!==void 0)return vwh;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return vwh=c},{mode:1});var tI=function(){var c=_.z.apply(this,arguments)||this;c.fullHeight=!_.F("comment_teaser_full_height_kill_switch")&&_.F("kevlar_watch_grid");return c};
_.K(tI,_.z);tI.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"}}}};
tI.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
tI.prototype.onTap=function(){var c=this.tapCommand;c&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(c))};
tI.prototype.onKeyUp=function(c){if(c.keyCode===13)this.onTap()};
_.ci.Object.defineProperties(tI.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null?0:c.onTap)return this.data.onTap;var f,d;if(((f=this.data)==null?0:f.teaserContent)||((d=this.data)==null?0:d.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)!=null&&c.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
tI.prototype.onKeyUp=tI.prototype.onKeyUp;tI.prototype.onTap=tI.prototype.onTap;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],tI.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tI.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tI.prototype,"fullHeight",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],tI.prototype,"tapCommand",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],tI.prototype,"simpleboxPlaceholder",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tI.prototype,"hasSimpleboxPlaceholder",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],tI.prototype,"simpleboxAvatar",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],tI.prototype,"teaserContent",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tI.prototype,"hasTeaserContent",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],tI.prototype,"teaserAvatar",null);
_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tI.prototype,"hasTeaserAvatar",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],tI.prototype,"messageText",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],tI.prototype,"contentRenderer",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tI.prototype,"hasContents",null);
_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tI.prototype,"hasContentRenderer",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tI.prototype,"onTap",null);_.y([_.Ta("keypress"),_.D("design:type",Function),_.D("design:paramtypes",[_.Yo]),_.D("design:returntype")],tI.prototype,"onKeyUp",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],tI);
_.h(tI,"ytd-comments-entry-point-header-renderer",function(){if(V8E!==void 0)return V8E;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return V8E=c},{mode:1});var hUS;_.F("web_enable_sink_animated_rolling_character_and_number")?_.g_(_.Wzv,"yt-animated-rolling-number",{props:{numberText:_.oM,numberValue:_.oM,heightPx:_.oM,fontSizeMultiplier:_.oM,shouldAnimate:_.oM,forceRollUp:_.oM}}):_.m$(_.F7N,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var wkq=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),yDq={numberText:"",heightPx:2*wkq,shouldAnimate:!1},b$=function(){var c=_.z.apply(this,arguments)||this;c.usingAnimatedComponents=!0;c.wasDetailed=!1;c.JSC$22703_browserSupportsAnimation=_.F("web_supports_animations_api");c.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};c.detailed=!1;c.shouldAnimate=!1;c.viewCountProps=yDq;c.dateTextProps=
yDq;c.metadataBadgesInDescription=_.F("web_metadata_badges_in_description");return c};
_.K(b$,_.z);_.r=b$.prototype;_.r.resetAnimationState=function(){this.shouldAnimate=!1};
_.r.updateDynamicMetadata=function(){if(this.JSC$22703_browserSupportsAnimation){if(!this.detailed){var c,f,d,q;var Z=(c=this.videoPrimaryInfoRenderer)==null?void 0:(f=c.viewCount)==null?void 0:(d=f.videoViewCountRenderer)==null?void 0:(q=d.extraShortViewCount)==null?void 0:q.simpleText;var M,g,O,l;var m=(M=this.videoPrimaryInfoRenderer)==null?void 0:(g=M.viewCount)==null?void 0:(O=g.videoViewCountRenderer)==null?void 0:(l=O.shortViewCount)==null?void 0:l.simpleText}if(!m){var H,A,Y,t;Z=(H=this.videoPrimaryInfoRenderer)==
null?void 0:(A=H.viewCount)==null?void 0:(Y=A.videoViewCountRenderer)==null?void 0:(t=Y.unlabeledViewCountValue)==null?void 0:t.simpleText;var E,J,X,u;m=(E=this.videoPrimaryInfoRenderer)==null?void 0:(J=E.viewCount)==null?void 0:(X=J.videoViewCountRenderer)==null?void 0:(u=X.viewCount)==null?void 0:u.simpleText}var W,p,N;c=Number((W=this.videoPrimaryInfoRenderer)==null?void 0:(p=W.viewCount)==null?void 0:(N=p.videoViewCountRenderer)==null?void 0:N.originalViewCount);var I,R;W=(I=this.videoPrimaryInfoRenderer)==
null?void 0:(R=I.relativeDateText)==null?void 0:R.simpleText;var qN;I=!((qN=this.videoPrimaryInfoRenderer)==null||!qN.relativeDateText);if(Z&&m&&c&&(W||!I)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;qN=m.split(new RegExp("("+Z+")"));Z=Lhq(qN[0]);var kl;m={numberText:(kl=qN[1])!=null?kl:"",numberValue:c,heightPx:2*wkq,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var BN;kl=((BN=qN[2])!=null?BN:"")+"  ";this.setViewCount(m,Z,Lhq(kl));
if(!this.detailed&&I){Z=W.split(/(\d+)/);BN=Lhq(Z[0]);var tP;kl={numberText:(tP=Z[1])!=null?tP:"",heightPx:2*wkq,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var EC;tP=((EC=Z[2])!=null?EC:"")+"  ";this.setDateText(kl,BN,Lhq(tP))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.r.setViewCount=function(c,f,d){_.xC(f)!==_.xC(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=f);this.viewCountProps.numberText!==(c==null?void 0:c.numberText)&&(this.viewCountProps=c||yDq);_.xC(d)!==_.xC(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=d)};
_.r.setDateText=function(c,f,d){_.xC(f)!==_.xC(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=f);this.dateTextProps.numberText!==(c==null?void 0:c.numberText)&&(this.dateTextProps=c||yDq);_.xC(d)!==_.xC(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=d)};
_.r.onYtUpdateViewershipAction=function(c){this.videoPrimaryInfoRenderer&&(_.b(c,aOJ).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.b(c,aOJ).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.b(c,aOJ).viewCount)))};
_.r.onYtUpdateDateTextAction=function(c){if(this.videoPrimaryInfoRenderer){c=_.b(c,_.z_q).dateText;this.shouldAnimate=!0;var f;((f=this.videoPrimaryInfoRenderer)==null?0:f.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",c):this.set("videoPrimaryInfoRenderer.dateText",c)}};
_.ci.Object.defineProperties(b$.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return SCP(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.xC(SCP(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.xC(this.viewCountPreNumberText),this.viewCountProps.numberText,_.xC(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.xC(this.dateTextPreNumberText),this.dateTextProps.numberText,_.xC(this.dateTextPostNumberText)].join("")}}});
b$.prototype.updateDynamicMetadata=b$.prototype.updateDynamicMetadata;b$.prototype.resetAnimationState=b$.prototype.resetAnimationState;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],b$.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],b$.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],b$.prototype,"videoPrimaryInfoRenderer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b$.prototype,"detailed",void 0);_.y([_.L(),_.D("design:type",Object)],b$.prototype,"shouldAnimate",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b$.prototype,"viewCountPreNumberText",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b$.prototype,"viewCountProps",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b$.prototype,"viewCountPostNumberText",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b$.prototype,"dateTextPreNumberText",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b$.prototype,"dateTextProps",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b$.prototype,"dateTextPostNumberText",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],b$.prototype,"metadataBadgesInDescription",void 0);_.y([_.S("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.D("design:type",Object),_.D("design:paramtypes",[])],b$.prototype,"infoText",null);
_.y([_.S("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.D("design:type",String),_.D("design:paramtypes",[])],b$.prototype,"descriptionInfoTooltipText",null);_.y([_.S("detailed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],b$.prototype,"showDescriptionInfoTooltip",null);
_.y([_.S("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.D("design:type",String),_.D("design:paramtypes",[])],b$.prototype,"animatedViewCountAccessibilityLabel",null);_.y([_.S("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.D("design:type",String),_.D("design:paramtypes",[])],b$.prototype,"animatedDateTextAccessibilityLabel",null);
_.y([_.m5("videoPrimaryInfoRenderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],b$.prototype,"resetAnimationState",null);_.y([_.m5("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],b$.prototype,"updateDynamicMetadata",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-watch-info-text"})],b$);
_.h(b$,"ytd-watch-info-text",function(){if(hUS!==void 0)return hUS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return hUS=c},{mode:1});var W0J;var DOS="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var eUP=_.dN(function(c){var f=c.data;var d=c.setTapCommand;_.$k(function(){var q=_.D9(f().onTap);d(q)},"X4onJd");
return _.B("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.B(_.u7,{data:function(){return f().avatar}},{avatarViewModel:_.ag}),_.B("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.B("span",null,function(){return f().simpleboxText})))},"Vj");var NdE=_.dN(function(c){return _.B("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.B(_.T,{cond:function(){return _.b(c.data().avatar,_.Ie)},
then:function(f){return _.B(_.ag,{data:f,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.B("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.B(_.J9,{text:function(){return c.data().teaserText}})))},"Wj");var Idh=_.dN(function(c){var f=c.data;var d=c.setTapCommand;_.$k(function(){var q=_.D9(f().onTap);d(q)},"PmAol");
return _.B("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.B(_.u7,{data:function(){return f().teasers}},{commentsEntryPointTeaserViewModel:NdE}))},"Xj");var PYP=_.dN(function(c){var f=c.data;var d=c.setTapCommand;_.$k(function(){var q=_.D9(f().onTap);d(q)},"Nh3Hjd");
return _.B("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.B(_.J9,{text:function(){return f().messageText}}))},"Yj");var RUv=_.dN(function(c){var f=c.data;var d=c.setTapCommand;var q=c.isDisabled;_.$k(function(){var Z=(q==null?0:q())?void 0:_.D9(f().onTap);d(Z)},"omeiWe");
return _.B("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.B(_.Qy,{icon:function(){return f().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.B(_.T,{cond:function(){return f().image},
then:function(Z){return _.B(_.jC,{data:Z,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.B(_.J9,{text:function(){return f().text},
className:function(){return f().image||f().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.B(_.u7,{data:function(){return f().button}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:q==null?void 0:q()}}})}}))},"Zj");var UOv=_.dN(function(c){var f=c.data;var d=c.itemIndex;var q=c.selectedIndex;var Z=c.indexUpdatedCallback;var M=c.observer;c=c.title;var g=_.xz("yt-carousel-item-view-model",function(A){M&&M().observe(A)}),O=function(A){d()===q()&&Z(A)},l=_.N5(MM8),m=_.N5(_.Bmn),H=function(){var A,Y,t;
return((A=f())==null?void 0:A.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!l()||((Y=f())==null?void 0:Y.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&m().includes("PAposts_by_host")||((t=f())==null?void 0:t.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&m().includes("PAyouchat")};
return _.B("yt-carousel-item-view-model",{el:g,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":c},_.B(_.u7,{data:function(){var A,Y;return(Y=(A=_.b(f().carouselItem,fOh))==null?void 0:A.textCarousel)!=null?Y:f().carouselItem}},{textCarouselItemViewModel:function(A){return _.B(RUv,{data:A.data,
setTapCommand:O,isDisabled:H})},
commentTeaserCarouselItemViewModel:function(A){return _.B(Idh,{data:A.data,setTapCommand:O})},
commentInputBoxCarouselItemViewModel:function(A){return _.B(eUP,{data:A.data,setTapCommand:O})},
commentsEntryPointMessageViewModel:function(A){return _.B(PYP,{data:A.data,setTapCommand:O})}}))},"$j");var pkD=_.dN(function(c){var f=c.numDots;var d=c.activeIndex;return _.B("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.B(_.bd,{each:function(){return Array.from({length:f()})},
keyBy:"INDEX"},function(q,Z){return _.B("div",{class:function(){var M={};return _.tp("ytCarouselDotsShapeDot",(M.ytCarouselDotsShapeDotActive=Z===d(),M))}})}))},"ak");var xOv=_.dN(function(c){var f=c.data;var d=c.handleCarouselNavigation;var q=c.numItems;var Z=c.selectedIndex;var M=function(){return{disabled:Z()===0}},g=function(){return{disabled:Z()===q()-1}};
return _.B("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.B("div",null,_.B("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return f().title}),_.B(_.T,{cond:function(){return f().subtitle},
then:function(O){return _.B("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return f().subtitleAccessibilityText}},O)}})),_.B(_.T,{cond:function(){return q()>1},
then:function(){return _.B("div",{class:"ytCarouselTitleViewModelNavigation"},_.B(pkD,{numDots:q,activeIndex:Z}),_.B(_.T,{cond:function(){return f().previousButton},
then:function(O){return _.B(_.u7,{data:O},{buttonViewModel:function(l){return _.B(_.mN,{data:l.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return d(-1)},
buttonOverrides:M})}})}}),_.B(_.T,{cond:function(){return f().nextButton},
then:function(O){return _.B(_.u7,{data:O},{buttonViewModel:function(l){return _.B(_.mN,{data:l.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return d(1)},
buttonOverrides:g})}})}}))}}))},"bk");_.g_(_.dN(function(c){var f=c.data;var d,q=_.xz("yt-video-metadata-carousel-view-model"),Z=_.xz("div",function(I){var R=function(){var qN=I.offsetWidth*J(),kl=24*(J()-1);Y(qN+kl)};
R();window.ResizeObserver&&(d=new ResizeObserver(R),d.observe(I))}),M=_.hk("HTML_DIR")==="rtl",g=!1,O=0,l=0;
c=_.C(_.OT(0,void 0,"fCZdg"));var m=c.next().value,H=c.next().value;c=_.C(_.OT(0,void 0,"FQiAle"));var A=c.next().value,Y=c.next().value;c=_.C(_.OT(!1,void 0,"O4owzd"));var t=c.next().value,E=c.next().value,J=function(){var I,R,qN;return(qN=(I=f())==null?void 0:(R=I.carouselTitles)==null?void 0:R.length)!=null?qN:0},X=function(){Z.value&&Z.value.scrollLeft!==O&&H((M?Z.value.scrollLeft<O:Z.value.scrollLeft>O)?Math.min(m()+1,J()-1):Math.max(m()-1,0))},u;
window.IntersectionObserver&&(u=new IntersectionObserver(function(I){I=_.C(I);for(var R=I.next();!R.done;R=I.next())if(R.value.isIntersecting){if(g){g=!1;break}X()}else H(l)},{threshold:.2}));
_.$k(function(){if(Z.value){var I=(M?-1:1)*(A()/J()+12)*(t()&&u?l:m());typeof Z.value.scrollTo==="function"?Z.value.scrollTo({left:I,behavior:"smooth"}):Z.value.scrollLeft=I;O=I;l=t()&&u?l:m()}},"oi9Jzd");
var W,p=function(I){W=I};
_.Q4(function(){var I;(I=d)==null||I.disconnect();var R;(R=u)==null||R.disconnect()});
var N=function(I){I=m()+I;I>=0&&I<J()&&(g=!0,H(I))};
return _.B("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:q,"on:click":_.Ks(function(I){if(_.W9(_.yH(I),q.value,["BUTTON".toString()])||!W)return!1;_.ql().resolve(_.ZM).resolveCommand(W,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Ks(function(){E(!0);return!1}),
"on:touchend":_.Ks(function(){u||X();E(!1);return!1}),
hidden:function(){var I,R;return!((I=f())==null?0:(R=I.carouselItems)==null?0:R.length)}},_.B("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.B(_.T,{cond:function(){return f().carouselTitles},
then:function(I){return _.B(_.u7,{data:function(){return I()[t()&&u?l:m()]}},{carouselTitleViewModel:function(R){return _.B(xOv,{data:R.data,
handleCarouselNavigation:N,numItems:J,selectedIndex:m})}})}})),_.B("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Z},_.B("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+A()+"px;"}},_.B(_.T,{cond:function(){return f().carouselItems},
then:function(I){return _.B(_.bd,{each:I},function(R,qN){return _.B(_.u7,{data:function(){return R}},{carouselItemViewModel:function(kl){return _.B(UOv,{data:kl.data,
itemIndex:qN,selectedIndex:m,indexUpdatedCallback:p,observer:u,title:function(){a:{var BN=qN();var tP,EC=(tP=f())==null?void 0:tP.carouselTitles;if(EC&&(BN=EC[BN])){var AP;BN=(AP=_.b(BN,c3D))==null?void 0:AP.title;break a}BN=void 0}return BN}})}})})}}))))},"ck"),"yt-video-metadata-carousel-view-model",{props:{data:_.oM}});var owM=_.F("web_action_buttons_update_owner_width")?32:12,Kv=function(){var c=_.z.apply(this,arguments)||this;c.isHovering=!1;c.enableColorSampling=_.F("web_delhi_colorful_sd");c.metadataBadgesInDescription=_.F("web_metadata_badges_in_description");c.descriptionCollapsed=!0;c.useFadedScrimDescription=_.F("kevlar_enable_faded_scrim_on_description");c.skinnyMode=!1;c.playlist=!1;c.isDark=document.documentElement.hasAttribute("dark");c.disableVideoOwnerOnTap=_.F("swatchie_video_owner_on_tap_ks");c.swatcherooDelayLoad=
_.F("swatcheroo_enable_ghost_cards");c.primaryMenuWidth=0;c.videoId="";c.titleHeadlineXs=_.F("web_watch_typography_title_headline_xs");c.titleHeadlineS=_.F("web_watch_typography_title_headline_s");c.titleHeadlineM=_.F("web_watch_typography_title_headline_m");c.titleHashtagBlackLinkified=_.F("web_title_hashtag_black_linkified");c.titleHashtagGreyLinkified=_.F("web_title_hashtag_grey_linkified");c.actionButtonsUpdateOwnerWidth=_.F("web_action_buttons_update_owner_width");c.shouldForceIconOnly=!1;c.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};c.isFullscreen=!1;c.isTheaterMode=!1;return c};
_.K(Kv,_.z);_.r=Kv.prototype;_.r.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.r.updateOwnerAndDescriptionPosition=function(){_.F("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.zM(this.bottomRowElement,this.ownerElement)):(_.zM(this.bottomRowElement,this.descriptionElement),_.zM(this.topRowElement,this.ownerElement)))};
_.r.titleOnTap=function(c){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.qY(_.x0(c)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var f;((f=window.getSelection())==null?0:f.toString().length)||this.handleExpandDescriptionCommands()}};
_.r.videoOwnerOnTap=function(c){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.qY(_.x0(c)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.r.detached=function(){var c=this,f;return _.k(function(d){(f=c.resizeObserver)==null||f.disconnect();_.Fm(d)})};
_.r.maybeAttachResizeObserver=function(){var c=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Gx(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){c.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.r.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var c=this.hostElement.clientWidth,f=Math.max(this.largerItemWrap?400:350,c/2-owM);if(_.F("web_action_buttons_update_owner_width")){var d;f=(((d=document.getElementById("owner"))==null?void 0:d.clientWidth)||0)+owM}this.actionsOnSeparateLine=this.primaryMenuWidth>c-f?!0:!1}};
_.r.stripAttributedDescription=function(c){return{content:c.content.replace(/[\r\n]{2,}/g,"\n")}};
_.r.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"}}}};
_.r.videoPrimaryInfoRendererChanged=function(){var c;if((c=this.videoPrimaryInfoRenderer)==null?0:c.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.r.videoSecondaryInfoRendererChanged=function(){var c,f;(f=(c=this.descriptionInlineExpander).collapse)==null||f.call(c);this.descriptionExpandClientVe=_.m_(110509);this.descriptionCollapseClientVe=_.m_(110510);c=_.X2();f=_.V5();c&&f&&(_.F("combine_ve_grafts")?(_.B_(_.bP(),this.descriptionExpandClientVe,f),_.B_(_.bP(),this.descriptionCollapseClientVe,f)):_.eO(c,f,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.r.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.r.updateTopLevelIconsOnly=function(){var c=this;_.F("top_level_update_killswitch")||this.menu&&_.a7.addLowPriorityJob(function(){c.menu.topLevelIconsOnly=c.skinnyMode},_.rx("swathceroo_delay_flexible_menu_update",100))};
_.r.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.F("web_action_buttons_minimize_subscribe")};
_.r.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.r.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.r.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.r.onYtTextInlineExpanderExpandedChanged=function(){if(!_.F("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var c,f;(f=(c=this.structuredDescriptionContentRendererElement).resize)==null||f.call(c)}};
_.r.onRenderStamperFinished=function(c){(c==null?void 0:c.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.r.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.r.onYtExpanderLessTapped=function(){var c,f=(c=this.videoSecondaryInfoRenderer)==null?void 0:c.showLessCommand;f&&this.ytComponentBehavior.resolveCommand(f)};
_.r.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.r.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.r.onDescriptionClick=function(c){if(!_.qY(_.x0(c)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var f;((f=window.getSelection())==null?0:f.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.F("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.r.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.r.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.r.logCollapseClick=function(){var c=_.X2();c&&this.descriptionCollapseClientVe&&_.Rc(c,this.descriptionCollapseClientVe)};
_.r.logExpandClick=function(){var c=_.X2();c&&this.descriptionExpandClientVe&&_.Rc(c,this.descriptionExpandClientVe)};
_.r.collapseDescription=function(){this.descriptionCollapsed=!0};
_.r.scrollToTopOfContainer=function(){_.gS(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.r.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.r.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.r.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.r.resize=function(){if(this.descriptionInlineExpander){var c,f;(f=(c=this.descriptionInlineExpander).resize)==null||f.call(c)}else _.u6(new _.KD("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var d;(d=this.menu)==null||d.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.F("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.r.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var c,f,d,q,Z=_.F("web_action_buttons_update_owner_width")?(d=(c=_.r1(this.menu).querySelector("#button-shape"))==null?void 0:c.clientWidth)!=null?d:0:(q=(f=_.r1(this.menu).querySelector("#button"))==null?void 0:f.clientWidth)!=null?q:0,M,g;c=((g=(M=_.r1(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:M.clientWidth)!=null?g:0)+8+Z;var O,l;Z=(l=(O=_.r1(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:O.children.length)!=null?l:2;c<=8*Z||(this.primaryMenuWidth=c)}};
_.r.onYtUpdateTitleAction=function(c){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.b(c,J3v).title)};
_.r.onYtUpdateDescriptionAction=function(c){if(c=_.b(c,_.MIr)){var f,d=!((f=this.videoSecondaryInfoRenderer)==null||!f.attributedDescription);c.isEmpty||!c.description&&!c.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):c.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",c.attributedDescription):c.description&&(d?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.he(c.description)):this.set("videoSecondaryInfoRenderer.description",c.description))}};
_.r.onYtDarkModeToggledAction=function(c){this.isDark=c};
_.r.registerPanel=function(){if(!_.F("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var c=_.F("web_watch_imax_theater_mode")&&this.isTheaterMode;c=_.F("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||c;var f=_.ql().resolve(_.SD);f&&!c&&f.registerPanel("engagement-panel-structured-description",this)}};
_.r.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.r.parseColorSamplingData=function(){var c;if(_.F("web_delhi_colorful_sd")&&((c=this.structuredDescriptionContentRenderer)==null?0:c.items)&&(c=this.structuredDescriptionContentRenderer.items.find(function(Z){return!!_.b(Z,Jn)}))){var f,d;
this.hoverColor={lightTheme:(f=_.b(c,Jn))==null?void 0:f.lightThemeColorPalette,darkTheme:(d=_.b(c,Jn))==null?void 0:d.darkThemeColorPalette};var q;this.hoverText=(q=_.b(c,Jn))==null?void 0:q.colorSampledDescriptionBodyText}};
_.r.updateHoverColor=function(){if(_.F("web_delhi_colorful_sd")){var c=this.hoverColor,f={},d;c=(d=this.isDark?c==null?void 0:c.darkTheme:c==null?void 0:c.lightTheme)!=null?d:{};d=_.C(DOS);for(var q=d.next();!q.done;q=d.next()){q=q.value;var Z=c[q];f["--yt-saturated-"+_.Ai(q)]=Z?_.WS(Z):"initial"}_.la(this.hostElement,f)}};
_.r.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.r.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.r.showPanel=function(c){this.expandDescription();var f=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;f.resize();var d,q=c==null?void 0:(d=c.sectionListEngagementPanelExtras)==null?void 0:d.scrollToItemSectionIdentifier;q?_.a7.addJob(function(){f==null||f.scrollToSection(q)},8):this.scrollToTopOfContainer()};
_.r.isVisible=function(){return!this.descriptionCollapsed};
_.r.getReloadContinuation=function(){};
_.r.hidePanel=function(){};
_.r.updatePanel=function(){};
_.ci.Object.defineProperties(Kv.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var c;return _.F("web_delhi_colorful_sd")&&(c=this.structuredDescriptionContentRenderer)!=null&&c.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(f){return!_.b(f,Jn)&&!_.b(f,XHW)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.structuredDescriptionContentRendererComputed)!=null&&c.items){var f;c=_.C((f=this.structuredDescriptionContentRendererComputed)==null?void 0:f.items);for(f=c.next();!f.done;f=c.next())if(f=_.b(f.value,_.jJH))return f}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.videoPrimaryInfoRenderer)==null?0:c.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return!!((c=this.videoSecondaryInfoRenderer)==null?0:(f=c.owner)==null?0:(d=f.videoOwnerRenderer)==null?0:d.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var c,f;if((c=this.videoSecondaryInfoRenderer)==null?0:(f=c.attributedDescription)==null?0:f.content){var d,q;return(q=this.stripAttributedDescription((d=this.videoSecondaryInfoRenderer)==null?void 0:d.attributedDescription))!=null?q:{runs:[]}}}if(_.F("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Z,M,g,O;return(O=(g=(Z=this.videoSecondaryInfoRenderer)==
null?void 0:Z.description)!=null?g:(M=this.videoSecondaryInfoRenderer)==null?void 0:M.attributedDescription)!=null?O:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=(c=this.videoSecondaryInfoRenderer)==null?void 0:c.headerRuns)!=null?f:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.commentsEntryPointHeaderRenderer)==null||!c.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.videoMetadataCarousel)==null||!c.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.rx("swatchie_desc_lines",3):this.hasTeaserCarousel?_.rx("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var c,f,d=Object.assign({},(c=this.videoSecondaryInfoRenderer)==null?void 0:(f=c.metadataRowContainer)==null?void 0:f.metadataRowContainerRenderer);if(d&&d.rows&&d.collapsedItemCount!==void 0&&!(d.rows.length<=d.collapsedItemCount))return d.rows=d.rows.slice(d.collapsedItemCount),d.collapsedItemCount=0,d}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var c,f,d=Object.assign({},(c=this.videoSecondaryInfoRenderer)==null?void 0:(f=c.metadataRowContainer)==null?void 0:f.metadataRowContainerRenderer);if(d&&d.rows&&d.collapsedItemCount!==void 0)return d.rows=d.rows.slice(0,d.collapsedItemCount),d.collapsedItemCount=d.rows.length,d}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var c,f;return!!((c=this.structuredDescriptionContentRendererComputed)==null?0:(f=c.items)==null?0:f.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 c;return(c=this.videoSecondaryInfoRenderer)==null?void 0:c.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.videoSecondaryInfoRenderer)==null?0:(f=c.owner)==null?0:(d=f.videoOwnerRenderer)==null?0:d.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q;return!!((c=this.videoPrimaryInfoRenderer)==null?0:(f=c.videoActions)==null?0:(d=f.menuRenderer)==null?0:(q=d.flexibleItems)==null?0:q.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Gu(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Gu(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var c=this;if(_.F("web_title_hashtag_grey_delinkified")){var f,d=_.zV.unsafeClone((f=this.videoPrimaryInfoRenderer)==null?void 0:f.title);(f=d==null?void 0:d.runs)&&f.forEach(function(q){if(q==null?0:q.navigationEndpoint)q.textColor=4284506208,c.isDark&&(q.textColor=4289374890)});
return d}return(d=this.videoPrimaryInfoRenderer)==null?void 0:d.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.F("web_title_hashtag_black_delinkified")||_.F("web_title_hashtag_grey_delinkified")}}});
Kv.prototype.updateHoverColor=Kv.prototype.updateHoverColor;Kv.prototype.parseColorSamplingData=Kv.prototype.parseColorSamplingData;Kv.prototype.resetDescriptionState=Kv.prototype.resetDescriptionState;Kv.prototype.registerPanel=Kv.prototype.registerPanel;Kv.prototype.onYtExpanderLessTapped=Kv.prototype.onYtExpanderLessTapped;Kv.prototype.onYtExpanderMoreTapped=Kv.prototype.onYtExpanderMoreTapped;Kv.prototype.onRenderStamperFinished=Kv.prototype.onRenderStamperFinished;
Kv.prototype.onYtTextInlineExpanderExpandedChanged=Kv.prototype.onYtTextInlineExpanderExpandedChanged;Kv.prototype.onYtTextInlineExpanderCollapseClicked=Kv.prototype.onYtTextInlineExpanderCollapseClicked;Kv.prototype.onYtTextInlineExpanderExpandClicked=Kv.prototype.onYtTextInlineExpanderExpandClicked;Kv.prototype.moveActionsElement=Kv.prototype.moveActionsElement;Kv.prototype.updateShouldForceIconOnly=Kv.prototype.updateShouldForceIconOnly;Kv.prototype.updateTopLevelIconsOnly=Kv.prototype.updateTopLevelIconsOnly;
Kv.prototype.structuredDescriptionContentRendererChanged=Kv.prototype.structuredDescriptionContentRendererChanged;Kv.prototype.videoSecondaryInfoRendererChanged=Kv.prototype.videoSecondaryInfoRendererChanged;Kv.prototype.videoPrimaryInfoRendererChanged=Kv.prototype.videoPrimaryInfoRendererChanged;Kv.prototype.maybeUpdateActionsOnSeparateLine=Kv.prototype.maybeUpdateActionsOnSeparateLine;Kv.prototype.updateOwnerAndDescriptionPosition=Kv.prototype.updateOwnerAndDescriptionPosition;
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Kv.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Kv.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Kv.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],Kv.prototype,"ytdReduxBehavior",void 0);_.y([_.AY("#above-the-fold"),_.D("design:type",HTMLElement)],Kv.prototype,"aboveTheFoldContainer",void 0);_.y([_.AY("#menu ytd-menu-renderer"),_.D("design:type",Object)],Kv.prototype,"menu",void 0);_.y([_.AY("#description-inline-expander"),_.D("design:type",Object)],Kv.prototype,"descriptionInlineExpander",void 0);
_.y([_.AY("#faded-structured-description"),_.D("design:type",Object)],Kv.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.y([_.AY("#structured-description"),_.D("design:type",Object)],Kv.prototype,"structuredDescriptionContentRendererElement",void 0);_.y([_.AY("#title"),_.D("design:type",HTMLElement)],Kv.prototype,"titleElement",void 0);_.y([_.AY("#description"),_.D("design:type",HTMLElement)],Kv.prototype,"descriptionElement",void 0);
_.y([_.AY("#description-interaction"),_.D("design:type",Object)],Kv.prototype,"descriptionInteraction",void 0);_.y([_.AY("#owner"),_.D("design:type",HTMLElement)],Kv.prototype,"ownerElement",void 0);_.y([_.AY("#top-row"),_.D("design:type",HTMLElement)],Kv.prototype,"topRowElement",void 0);_.y([_.AY("#bottom-row"),_.D("design:type",HTMLElement)],Kv.prototype,"bottomRowElement",void 0);_.y([_.AY("#actions"),_.D("design:type",HTMLElement)],Kv.prototype,"actionsElement",void 0);
_.y([_.AY("#bottom-actions"),_.D("design:type",HTMLElement)],Kv.prototype,"bottomActionsElement",void 0);_.y([_.AY("#ytd-watch-info-text"),_.D("design:type",Object)],Kv.prototype,"watchInfoTextElement",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"videoPrimaryInfoRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"videoSecondaryInfoRenderer",void 0);
_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"commentsEntryPointHeaderRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"videoMetadataCarousel",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"structuredDescriptionContentRenderer",void 0);_.y([_.S("structuredDescriptionContentRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"structuredDescriptionContentRendererComputed",null);
_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"videoSummary",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"merchShelf",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"infoPanelBelowMetadata",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"hoverColor",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"hoverText",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"isHovering",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"enableColorSampling",void 0);_.y([_.S("structuredDescriptionContentRendererComputed"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"productShelf",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"metadataBadgesInDescription",void 0);_.y([_.S("videoPrimaryInfoRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"shouldHideBadges",null);
_.y([_.S("productShelf","descriptionCollapsed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Kv.prototype,"shouldShowProductShelf",null);_.y([_.L(),_.D("design:type",Boolean)],Kv.prototype,"isWatchFlexy",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"descriptionCollapsed",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Kv.prototype,"useFadedScrimDescription",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"skinnyMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("videoSecondaryInfoRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"largerItemWrap",null);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"playlist",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"clarifyBox",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"playerAds",void 0);
_.y([_.L(),_.D("design:type",Boolean)],Kv.prototype,"isDark",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Kv.prototype,"actionsOnSeparateLine",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"disableVideoOwnerOnTap",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"swatcherooDelayLoad",void 0);_.y([_.L(),_.D("design:type",Boolean)],Kv.prototype,"suppressTopLevelMetadataRows",void 0);
_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"primaryMenuWidth",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"videoId",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"titleHeadlineXs",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"titleHeadlineS",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"titleHeadlineM",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"titleHashtagBlackLinkified",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"titleHashtagGreyLinkified",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.y([_.L(),_.D("design:type",Object)],Kv.prototype,"shouldForceIconOnly",void 0);
_.y([_.ba("skinnyMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"updateOwnerAndDescriptionPosition",null);_.y([_.ba("skinnyMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.y([_.S("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"descriptionText",null);_.y([_.S("videoSecondaryInfoRenderer.headerRuns"),_.D("design:type",Array),_.D("design:paramtypes",[])],Kv.prototype,"headerRuns",null);
_.y([_.L({value:!1}),_.S("commentsEntryPointHeaderRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"hasTeaser",null);_.y([_.L({value:!1,reflectToAttribute:!0}),_.S("videoMetadataCarousel"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"hasTeaserCarousel",null);_.y([_.L({value:3}),_.S("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"descriptionMaxLines",null);
_.y([_.S("videoSecondaryInfoRenderer.metadataRowContainer"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"collapsibleMetadataRows",null);_.y([_.S("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"alwaysVisibleMetadataRows",null);
_.y([_.S("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Kv.prototype,"hasInlineStructuredDescription",null);_.y([_.S("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Kv.prototype,"showInlineStructuredDescription",null);
_.y([_.S("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"descriptionExpandCommand",null);_.y([_.S("videoSecondaryInfoRenderer.owner"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"videoOwnerCommand",null);_.y([_.L({reflectToAttribute:!0}),_.S("videoPrimaryInfoRenderer.videoActions"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Kv.prototype,"flexMenuEnabled",null);
_.y([_.L({selector:_.D7,reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"isFullscreen",void 0);_.y([_.L({selector:_.Wr,reflectToAttribute:!0}),_.D("design:type",Object)],Kv.prototype,"isTheaterMode",void 0);_.y([_.S("descriptionText","useFadedScrimDescription"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Kv.prototype,"showAttributedStringDescription",null);
_.y([_.S("descriptionText","useFadedScrimDescription"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Kv.prototype,"showFormattedStringDescription",null);_.y([_.S("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Kv.prototype,"showFadedStructuredDescription",null);
_.y([_.ba("videoPrimaryInfoRenderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"videoPrimaryInfoRendererChanged",null);_.y([_.S("videoPrimaryInfoRenderer.title"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"videoTitle",null);_.y([_.S("videoPrimaryInfoRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],Kv.prototype,"noEndpoints",null);
_.y([_.ba("videoSecondaryInfoRenderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"videoSecondaryInfoRendererChanged",null);_.y([_.m5("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"structuredDescriptionContentRendererChanged",null);
_.y([_.m5("skinnyMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"updateTopLevelIconsOnly",null);_.y([_.m5("skinnyMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"updateShouldForceIconOnly",null);_.y([_.m5("skinnyMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"moveActionsElement",null);
_.y([_.Ta("yt-text-inline-expander-expand-clicked"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"onYtTextInlineExpanderExpandClicked",null);_.y([_.Ta("yt-text-inline-expander-collapse-clicked"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.y([_.Ta("yt-text-inline-expander-expanded-changed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],Kv.prototype,"onRenderStamperFinished",null);
_.y([_.Ta("yt-expander-more-tapped"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"onYtExpanderMoreTapped",null);_.y([_.Ta("yt-expander-less-tapped"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"onYtExpanderLessTapped",null);
_.y([_.m5("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"registerPanel",null);_.y([_.m5("videoSecondaryInfoRenderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"resetDescriptionState",null);
_.y([_.m5("structuredDescriptionContentRenderer"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"parseColorSamplingData",null);_.y([_.m5("hoverColor","isDark"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kv.prototype,"updateHoverColor",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Kv);
_.h(Kv,"ytd-watch-metadata",function(){if(W0J!==void 0)return W0J;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return W0J=c},{mode:2});_.M5S=function(c){_.ES.call(this);this.JSC$22728_watchApi=c;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;G5D(this);cTh(this);fgU(this);dzv(this);j8h(this);qMh(this);ZGU(this)};
_.K(_.M5S,_.ES);var fgU=function(c){var f=function(){_.F("kevlar_is_pupi_enabled")||Eh(c)};
c.JSC$22728_watchApi.getRoot().addEventListener("yt-player-updated",f);c.addOnDisposeCallback(function(){c.JSC$22728_watchApi.getRoot().removeEventListener("yt-player-updated",f)})},j8h=function(c){if(_.F("kevlar_endscreen_auto_theater_mode")){var f=c.JSC$22728_watchApi.subscribeToActiveChanged(function(){rTM(c)},!1);
c.addOnDisposeCallback(f)}},G5D=function(c){var f,d,q,Z,M;
_.k(function(g){if(g.nextAddress==1)return g.yield(c.JSC$22728_watchApi.playerApi,2);f=g.yieldResult;d=function(O){O=!!O;nv(c)&&(O=O?2:1,_.jY.getInstance().setState(O,!0,!1))};
q=function(O){O&&_.ZrE(_.Gh().getState())&&(_.gS(c.JSC$22728_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),c.temporaryTheaterMode=!0)};
Z=function(O){_.F("kevlar_player_update_autonav_on_new_data")&&O.type==="newdata"&&(_.F("kevlar_is_pupi_enabled")||Eh(c))};
M=function(O){c.onPlayerStateChange(O)};
_.F("kevlar_endscreen_auto_theater_mode")&&f.addEventListener("onAutonavCancelled",q);f.addEventListener("onAutonavChangeRequest",d);f.addEventListener("onVideoDataChange",Z);f.addEventListener("onStateChange",M);c.addOnDisposeCallback(function(){f.removeEventListener("onAutonavChangeRequest",d);f.removeEventListener("onVideoDataChange",Z);f.removeEventListener("onStateChange",M);_.F("kevlar_endscreen_auto_theater_mode")&&f.removeEventListener("onAutonavCancelled",q)});
_.Fm(g)})},cTh=function(c){c.JSC$22728_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){c.autonavCancelledBySignal=!0;
_.F("kevlar_is_pupi_enabled")||Eh(c)});
c.JSC$22728_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(f,d,q){d&&Eh(c,q)});
c.JSC$22728_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){nv(c)&&_.jY.getInstance().setState(2,!0,!0)});
c.JSC$22728_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){nv(c)&&_.jY.getInstance().setState(1,!0,!0)});
c.addOnDisposeCallback(function(){c.JSC$22728_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");c.JSC$22728_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");c.JSC$22728_watchApi.unregisterActionHandler("yt-enable-autoplay-command");c.JSC$22728_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},dzv=function(c){var f=c.JSC$22728_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ZGU(c)}),d=c.JSC$22728_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){qMh(c)});
c.addOnDisposeCallback(function(){c.JSC$22728_watchApi.unsubscribeByKey(f);c.JSC$22728_watchApi.unsubscribeByKey(d)})},ZGU=function(c){c.autonavCancelledBySignal=!1;
_.F("kevlar_is_pupi_enabled")||Eh(c)},qMh=function(c){var f=c.JSC$22728_watchApi.getWatchNextResponse(),d,q;
var Z=(f=(q=_.b(f==null?void 0:(Z=f.playerOverlays)==null?void 0:(d=Z.playerOverlayRenderer)==null?void 0:d.autonavToggle,_.Cwu))==null?void 0:q.enabled)?2:1;_.F("kevlar_is_pupi_enabled")?_.jY.getInstance().setState(Z,!1,!1):Eh(c);_.F("web_persist_server_autonav_state_on_client")&&typeof f==="boolean"&&_.tl4(Z===2)},nv=function(c){if(c.autonavCancelledBySignal)return!1;
var f,d,q,Z;return!!((f=c.JSC$22728_watchApi.getWatchNextResponse())==null?0:(d=f.contents)==null?0:(q=d.twoColumnWatchNextResults)==null?0:(Z=q.autoplay)==null?0:Z.autoplay)};
_.M5S.prototype.onPlayerStateChange=function(c){if(c===0){c=!_.jY.getInstance().isAutoplaySetExplicitly();var f=this.JSC$22728_watchApi.getWatchNextResponse(),d,q,Z,M;f=_.b(f==null?void 0:(d=f.contents)==null?void 0:(q=d.twoColumnWatchNextResults)==null?void 0:(Z=q.autoplay)==null?void 0:(M=Z.autoplay)==null?void 0:M.autoplayExplicitChoiceDialogRenderer,_.SB_);nv(this)&&c&&f&&_.Hh.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:f},popupType:"DIALOG"}})}else rTM(this)};
var rTM=function(c){c.temporaryTheaterMode&&(c.temporaryTheaterMode=!1,_.gS(c.JSC$22728_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Eh=function(c,f){f=f===void 0?!1:f;
var d;_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22728_watchApi.playerApi,2);d=q.yieldResult;nv(c)?d.setAutonavState(_.jY.getInstance().getState(),f):d.setAutonavState(1,f);_.Fm(q)})};var C58={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"};_.kVD=function(c){_.ES.call(this);var f=this;this.JSC$22733_watchApi=c;var d=this.JSC$22733_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){gcq(f)});
this.addOnDisposeCallback(function(){f.JSC$22733_watchApi.unsubscribeByKey(d)});
gcq(this)};
_.K(_.kVD,_.ES);var gcq=function(c){var f=c.JSC$22733_watchApi.getPlayerResponse(),d=c.JSC$22733_watchApi.getWatchNextResponse();if(!_.DyP(f==null?void 0:f.playabilityStatus,d==null?void 0:d.playerOverlays)){var q;var Z=f==null?void 0:(q=f.playabilityStatus)==null?void 0:q.errorScreen}c.JSC$22733_watchApi.provideRenderingData("ERROR_SCREEN",Z)};var OGX=_.dN(function(c){var f=c.data;c=_.F("web_watch_video_details_hide_subtitle");var d=_.F("web_watch_video_details_single_line_title"),q=_.Ks(function(){var O=f().onTap;O&&_.ql().resolve(_.ZM).resolveCommand(O)}),Z={},M={},g={};
return _.B("yt-player-overlay-video-details-renderer",{class:_.FY("ytPlayerOverlayVideoDetailsRendererHost",(Z.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.F("web_watch_video_details_transparent_background"),Z)),"on:click":q,role:"button"},_.B("h2",{class:_.FY("ytPlayerOverlayVideoDetailsRendererTitle",(M.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return d},M))},_.B(_.J9,{text:function(){return f().title}})),_.B("div",{class:_.FY("ytPlayerOverlayVideoDetailsRendererSubtitle",
(g.ytPlayerOverlayVideoDetailsRendererHideSubtitle=c,g))},_.B(_.J9,{text:function(){return f().subtitle}})))},"dk");var $Y={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},lg8=_.dN(function(c){var f=c.data;var d=_.N5(_.D7),q=_.F("web_watch_action_bar_resize_buttons"),Z=_.F("delhi_modern_web_player_icons")&&!_.F("enable_web_delhi_icons"),M=function(){return q&&!d()?{size:"M"}:void 0};
c={};return _.B("yt-player-quick-action-buttons",{class:_.FY("ytPlayerQuickActionButtonsHost",(c.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!d()},c))},_.B(_.bd,{each:function(){if(Z){var g=f();
g=JSON.parse(JSON.stringify(g));for(var O=_.C(g),l=O.next();!l.done;l=O.next()){var m=l.value,H=void 0;l=_.b((H=_.b(m,_.uq))==null?void 0:H.toggleButtonViewModel,_.Jc);var A=void 0;H=_.b((A=_.b(m,_.XL))==null?void 0:A.toggleButtonViewModel,_.Jc);A=_.b(m,_.zx);m=_.b(m,_.Jc);if(l)H=_.b(l.defaultButtonViewModel,_.zx),l=_.b(l.toggledButtonViewModel,_.zx),H&&H.iconName&&(H.iconName=$Y[H.iconName]),l&&l.iconName&&(l.iconName=$Y[l.iconName]);else if(H)l=_.b(H.defaultButtonViewModel,_.zx),H=_.b(H.toggledButtonViewModel,
_.zx),l&&l.iconName&&(l.iconName=$Y[l.iconName]),H&&H.iconName&&(H.iconName=$Y[H.iconName]);else if(A)A.iconName&&(A.iconName=$Y[A.iconName]);else if(m){l=_.b(m.defaultButtonViewModel,_.zx);H=_.b(m.toggledButtonViewModel,_.zx);m=void 0;if((m=l)==null?0:m.iconName)l.iconName=$Y[l.iconName];l=void 0;if((l=H)==null?0:l.iconName)H.iconName=$Y[H.iconName]}}}else g=f();return g}},function(g){return _.B(_.u7,{data:function(){return g}},{buttonViewModel:function(O){return _.B(_.mN,{data:O.data,
buttonOverrides:M})},
likeButtonViewModel:function(O){return _.B(_.vP,{data:O.data,buttonShapeOverrideables:M})},
dislikeButtonViewModel:function(O){return _.B(_.u9,{data:O.data,buttonShapeOverrideables:M})},
toggleButtonViewModel:function(O){return _.B(_.JL,{data:O.data,buttonShapeOverrides:M})}})}))},"ek");_.BkW=function(c){_.ES.call(this);var f=this;this.JSC$22737_watchApi=c;c=_.C(_.OT({},void 0,"n9wCVe"));this.quickActionsViewModel=c.next().value;this.setQuickActionsViewModel=c.next().value;c=_.C(_.OT({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=c.next().value;this.setPlayerOverlayVideoDetailsRenderer=c.next().value;var d=this.JSC$22737_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){s88(f)});
this.addOnDisposeCallback(function(){f.JSC$22737_watchApi.unsubscribeByKey(d)});
s88(this)};
_.K(_.BkW,_.ES);
var s88=function(c){var f,d,q,Z,M,g,O,l,m,H,A,Y,t,E;_.k(function(J){if(J.nextAddress==1)return J.yield(c.JSC$22737_watchApi.playerApi,2);f=J.yieldResult;d=c.JSC$22737_watchApi.getWatchNextResponse();M=(q=d)==null?void 0:(Z=q.playerOverlays)==null?void 0:Z.playerOverlayRenderer;O=_.b((g=M)==null?void 0:g.fullscreenQuickActionsBar,_.k23);(m=(l=c).setQuickActionsViewModel)==null||m.call(l,O||{});O&&iGM(c,f);Y=(H=M)==null?void 0:(A=H.videoDetails)==null?void 0:A.playerOverlayVideoDetailsRenderer;(E=(t=
c).setPlayerOverlayVideoDetailsRenderer)==null||E.call(t,Y||{});Y&&TkW(c,f);_.Fm(J)})},iGM=function(c,f){if(!c.quickActionButtonsContainer)if(f.setFullscreenQuickActions){c.quickActionButtonsContainer=document.createElement("div");
f.setFullscreenQuickActions(c.quickActionButtonsContainer);var d=function(){return c.quickActionsViewModel().quickActionButtons||[]},q=_.$5(c.quickActionButtonsContainer,function(){return _.B(lg8,{data:d})});
c.addOnDisposeCallback(function(){f.setFullscreenQuickActions(void 0);q()})}else _.u6(new _.KD("setFullscreenQuickActions not defined",{playerApi:Object.keys(f),
isReady:f.isReady(),appState:f.getAppState()}))},TkW=function(c,f){if(!c.playerOverlayVideoDetailsRendererContainer)if(f.setPlayerOverlayVideoDetailsRenderer){c.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
f.setPlayerOverlayVideoDetailsRenderer(c.playerOverlayVideoDetailsRendererContainer);var d=_.$5(c.playerOverlayVideoDetailsRendererContainer,function(){return _.B(OGX,{data:c.playerOverlayVideoDetailsRenderer})});
c.addOnDisposeCallback(function(){f.setPlayerOverlayVideoDetailsRenderer(void 0);d()})}else _.u6(new _.KD("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(f),
isReady:f.isReady(),appState:f.getAppState()}))};_.QY=function(c){_.ES.call(this);var f=this;this.JSC$22743_watchApi=c;this.JSC$22743_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;c=_.bj(_.Gh(),_.D7,function(d){f.onFullscreenChanged(d)});
this.addOnDisposeCallback(c);c=_.bj(_.Gh(),_.bL,function(d){f.onWatchScroll(d)});
this.addOnDisposeCallback(c);_.F("kevlar_watch_while_v2")&&(c=_.bj(_.Gh(),_.X5,function(d){mz8(f,d)}),this.addOnDisposeCallback(c));
HGq(this);ATU(this);YMX();this.onWatchScroll(_.bL(_.Gh().getState()));_.wi("START_IN_FULL_WINDOW_MODE")&&this.JSC$22743_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.K(_.QY,_.ES);var HGq=function(c){c.JSC$22743_watchApi.registerActionHandler("yt-fullscreen-change-action",function(f){var d=c.JSC$22743_watchApi.isActive();f&&!d||_.Gh().dispatch(_.CC({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!f}}))});
c.addOnDisposeCallback(function(){c.JSC$22743_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},ATU=function(c){var f,d;
_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22743_watchApi.playerApi,2);f=q.yieldResult;d=function(){c.onFullerscreenEduClicked()};
f.addEventListener("onFullerscreenEduClicked",d);c.addOnDisposeCallback(function(){f.removeEventListener("onFullerscreenEduClicked",d)});
_.Fm(q)})};
_.QY.prototype.onFullscreenChanged=function(c){var f=this,d;return _.k(function(q){if(q.nextAddress==1)return f.isFullscreen=!!_.q9(),q.yield(f.JSC$22743_watchApi.playerApi,2);d=q.yieldResult;f.JSC$22743_miniplayerActive||d.setFauxFullscreen(f.isFullscreen);if(c&&(f.JSC$22743_watchApi.focusOnPlayer(),!f.fullerscreenEduButtonShownThisPlayback)){f.fullerscreenEduButtonShownThisPlayback=!0;var Z=_.T7("yt-fullerscreen-edu-button-shown-count")||0;_.iK("yt-fullerscreen-edu-button-shown-count",Z+1,31536E3);
f.updateFullerscreenEduButtonSubtleModeState()}_.Fm(q)})};
var mz8=function(c,f){var d;_.k(function(q){if(q.nextAddress==1)return c.JSC$22743_miniplayerActive=f,q.yield(c.JSC$22743_watchApi.playerApi,2);d=q.yieldResult;d.setFauxFullscreen(!c.JSC$22743_miniplayerActive&&c.isFullscreen);_.Fm(q)})};
_.QY.prototype.onWatchScroll=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1)return _.F("external_fullscreen_with_edu")?Z.yield(f.JSC$22743_watchApi.playerApi,2):Z.return();d=Z.yieldResult;q=c<=0;f.shouldShowFullerscreenEdu!==q&&(f.shouldShowFullerscreenEdu=q,d.updateFullerscreenEduButtonVisibility(!f.shouldShowFullerscreenEdu));_.Fm(Z)})};
_.QY.prototype.onFullerscreenEduClicked=function(){this.JSC$22743_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var c=_.T7("yt-fullerscreen-edu-button-click-count")||0;_.iK("yt-fullerscreen-edu-button-click-count",c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.QY.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var c=this,f,d,q,Z,M,g;return _.k(function(O){if(O.nextAddress==1)return f=_.T7("yt-fullerscreen-edu-button-click-count")||0,d=_.T7("yt-fullerscreen-edu-button-shown-count")||0,q=_.rx("external_fullscreen_button_click_threshold"),Z=_.rx("external_fullscreen_button_shown_threshold"),M=f>=q||d>=Z,O.yield(c.JSC$22743_watchApi.playerApi,2);g=O.yieldResult;g.updateFullerscreenEduButtonSubtleModeState(M);_.Fm(O)})};
_.QY.prototype.disposeInternal=function(){_.ES.prototype.disposeInternal.call(this);var c=_.q9();_.F("kevlar_exit_fullscreen_leaving_watch")&&c&&_.Zr(c)};
var YMX=function(){if(_.F("web_watch_add_viewport_meta_tag")){var c=document.querySelector("meta[name=viewport]"),f=document.head;f&&!c&&(c=document.createElement("meta"),c.name="viewport",c.content="width=device-width, initial-scale=1.0, viewport-fit=cover",f.appendChild(c))}};_.Sd=function(c){_.ES.call(this);var f=this;this.JSC$22747_watchApi=c;this.jobId=0;this.pendingRequestId=void 0;var d=this.JSC$22747_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){FCS(f)});
this.addOnDisposeCallback(function(){f.JSC$22747_watchApi.unsubscribeByKey(d)});
FCS(this)};
_.K(_.Sd,_.ES);var t5S=function(c){_.a7.cancelJob(c.jobId);c.pendingRequestId=void 0},FCS=function(c){t5S(c);
var f=zGU(c.JSC$22747_watchApi.getWatchNextResponse());if(f){var d=250,q,Z=(q=_.b(f,_.Cj_))==null?void 0:q.initialDelayMs;_.F("web_watch_updated_metadata_server_initial_delay")&&Z&&(d=Z);c.jobId=_.a7.addLowPriorityJob(function(){return c.fetchUpdatedMetadata(f)},d)}};
_.Sd.prototype.fetchUpdatedMetadata=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u;return _.k(function(W){switch(W.nextAddress){case 1:f&&(q={continuation:f});if(!_.F("web_get_updated_metadata_fantasy_panel_continuation_params")){W.jumpTo(2);break}Z=_.ql().resolve(_.SD);M="PAsports_fantasy";return W.yield(Z.isVisible(M,!0),3);case 3:W.yieldResult&&(m=(O=(g=Z).getUpdatePanelContinuationData)==null?void 0:(l=O.call(g,M))==null?void 0:l.updatePanelContinuationRequest)&&(q||(q={}),q.clientParams=
{panelContinuationParams:{panelContinuation:m}});case 2:H=_.ql().resolve(_.uo);if(!H)return _.VO(Error("yo")),W.return();A={};d.pendingRequestId=A;return W.yield(_.G3(H,c,q),4);case 4:Y=W.yieldResult;if(A!==d.pendingRequestId)return W.return();J=(t=Y)==null?void 0:(E=t.continuation)==null?void 0:E.timedContinuationData;((X=J)==null?0:X.continuation)&&((u=J)==null?0:u.timeoutMs)&&(d.jobId=_.a7.addLowPriorityJob(function(){return d.fetchUpdatedMetadata(c,J.continuation)},J.timeoutMs));
_.Fm(W)}})};
_.Sd.prototype.disposeInternal=function(){_.ES.prototype.disposeInternal.call(this);t5S(this)};var bGh=_.dN(function(c){var f=_.Ks(function(){var q=c.data().videoId;if(c.active())q=_.dW(q),_.ql().resolve(_.ZM).resolveCommand(q);else{var Z=c.playerApi(),M=Z.getAvailableAudioTracks(),g,O,l=(g=c.sourceVideoConfig().audioTracks)==null?void 0:(O=g.find(function(m){return m.isDefaultForSource}))==null?void 0:O.id;
if(M=M.find(function(m){return m.getLanguageInfo().getId()===l}))Z.setAudioTrack(M,!0),Z.setCompositeParam({activeVideoId:q}),c.setActiveSourceId(q)}}),d={};
return _.B("ytw-composite-source-video-overlay",{class:_.FY("ytwCompositeSourceVideoOverlayHost",(d.ytwCompositeSourceVideoOverlayActive=c.active,d.ytwCompositeSourceVideoOverlayInteracting=c.interacting,d)),style:_.$Z({left:function(){var q;return((q=c.data().topLeftCornerX)!=null?q:0)*100+"%"},
top:function(){var q;return((q=c.data().topLeftCornerY)!=null?q:0)*100+"%"},
width:function(){var q;return((q=c.data().width)!=null?q:0)*100+"%"},
height:function(){var q;return((q=c.data().height)!=null?q:0)*100+"%"}}),
"on:click":f},_.B("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"fk");var KCJ=_.dN(function(c){var f=_.C(_.ns(function(){var g,O=(g=c.data().sources)==null?void 0:g.find(function(l){return l.isActive});
if(O)return O.videoId})),d=f.next().value,q=f.next().value;
f=_.C(_.OT(!1,void 0,"WI4BUb"));var Z=f.next().value,M=f.next().value;return _.B("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Ks(function(){M(!0)}),
"on:mouseout":_.Ks(function(){M(!1)})},_.B(_.T,{cond:function(){return c.data().sources},
then:function(g){return _.B(_.bd,{each:g},function(O){return _.B(bGh,{data:O,active:function(){return O.videoId===d()},
setActiveSourceId:q,interacting:Z,playerApi:c.playerApi,sourceVideoConfig:function(){return JPh(c.compositeVideoConfig(),O.videoId)}})})}}))},"gk");_.$zh=function(c){_.ES.call(this);this.JSC$22763_watchApi=c;c=_.C(_.OT({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=c.next().value;this.setCompositeVideoOverlayRenderer=c.next().value;c=_.C(_.OT({},void 0,"OlaJpc"));this.compositeVideoConfig=c.next().value;this.setCompositeVideoConfig=c.next().value;Ech(this);ncM(this)};
_.K(_.$zh,_.ES);var Ech=function(c){var f=c.JSC$22763_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ncM(c)});
c.addOnDisposeCallback(function(){c.JSC$22763_watchApi.unsubscribeByKey(f)})},Q8X=function(c){var f;
return _.k(function(d){if(d.nextAddress==1)return d.yield(c.JSC$22763_watchApi.playerApi,2);f=d.yieldResult;f.setCompositeVideoOverlayRendererComponent(c.container);_.Fm(d)})},SME=function(c){var f;
return _.k(function(d){if(d.nextAddress==1)return d.yield(c.JSC$22763_watchApi.playerApi,2);f=d.yieldResult;f.setCompositeVideoOverlayRendererComponent(void 0);_.Fm(d)})},LCW=function(c){var f,d;
return _.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22763_watchApi.playerApi,2);f=q.yieldResult;c.container=document.createElement("div");d=_.$5(c.container,function(){return _.B(KCJ,{data:c.compositeVideoOverlayRenderer,compositeVideoConfig:c.compositeVideoConfig,playerApi:f})});
c.addOnDisposeCallback(d);_.Fm(q)})},ncM=function(c){var f,d,q,Z,M,g,O,l;
_.k(function(m){return m.nextAddress==1?(f=c.JSC$22763_watchApi.getPlayerResponse(),M=_.b((d=f)==null?void 0:(q=d.overlay)==null?void 0:(Z=q.playerControlsOverlayRenderer)==null?void 0:Z.compositeVideoOverlay,tuJ),l=(g=f)==null?void 0:(O=g.playerConfig)==null?void 0:O.compositeVideoConfig,M&&c.setCompositeVideoOverlayRenderer(M),l&&c.setCompositeVideoConfig(l),M&&l?c.container?m.jumpTo(6):m.yield(LCW(c),6):zRh(c)?m.yield(SME(c),0):m.jumpTo(0)):zRh(c)?m.jumpTo(0):m.yield(Q8X(c),0)})},zRh=function(c){var f;
return!((f=c.container)==null||!f.parentElement)};
_.$zh.prototype.disposeInternal=function(){zRh(this)&&SME(this);_.ES.prototype.disposeInternal.call(this)};_.u18=function(c){_.ES.call(this);var f=this;this.JSC$22769_watchApi=c;var d=this.JSC$22769_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var q=f.JSC$22769_watchApi.getPlayerResponse();if(q){var Z,M;if(q=_.b((Z=q.endscreen)==null?void 0:(M=Z.endscreenRenderer)==null?void 0:M.hideButton,_.Jc)){var g;(g=f.setEndscreenHideButton)==null||g.call(f,q);JTX(f)}}});
this.addOnDisposeCallback(function(){f.JSC$22769_watchApi.unsubscribeByKey(d)});
c=_.C(_.OT({},void 0,"ER3tqb"));this.endscreenHideButton=c.next().value;this.setEndscreenHideButton=c.next().value;agh(this);V5D(this);Xvh(this)};
_.K(_.u18,_.ES);var JTX=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return c.creatorEndscreenHideButtonContainer?q.return():q.yield(c.JSC$22769_watchApi.playerApi,2);f=q.yieldResult;c.creatorEndscreenHideButtonContainer=document.createElement("div");_.IO(c.creatorEndscreenHideButtonContainer,!1);f.setCreatorEndscreenHideButton(c.creatorEndscreenHideButtonContainer);d=_.$5(c.creatorEndscreenHideButtonContainer,function(){return _.B(_.JL,{data:c.endscreenHideButton,useOutlinedIcon:!0})});
c.addOnDisposeCallback(function(){d();var Z;(Z=f)==null||Z.setCreatorEndscreenHideButton(void 0)});
_.Fm(q)})},agh=function(c){var f,d;
_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22769_watchApi.playerApi,2);f=q.yieldResult;d=function(){c.creatorEndscreenHideButtonContainer&&_.IO(c.creatorEndscreenHideButtonContainer,!0)};
f.addEventListener("endscreenelementshown",d);c.addOnDisposeCallback(function(){var Z;(Z=f)==null||Z.removeEventListener("endscreenelementshown",d)});
_.Fm(q)})},V5D=function(c){var f=function(){c.creatorEndscreenHideButtonContainer&&_.IO(c.creatorEndscreenHideButtonContainer,!1)},d=c.JSC$22769_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",f),q=c.JSC$22769_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",f);
c.addOnDisposeCallback(function(){c.JSC$22769_watchApi.unsubscribeByKey(d);c.JSC$22769_watchApi.unsubscribeByKey(q)})},Xvh=function(c){c.JSC$22769_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(f){var d=_.b(f,Tov);
c.JSC$22769_watchApi.playerApi.then(function(q){q==null||q.setCreatorEndscreenVisibility(!!d.hide)})});
c.addOnDisposeCallback(function(){c.JSC$22769_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.hRM=function(c){_.ES.call(this);this.JSC$22775_watchApi=c;vcE(this)};
_.K(_.hRM,_.ES);var vcE=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22775_watchApi.playerApi,2);f=q.yieldResult;d=function(Z){_.Gh().dispatch(_.CC({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Z}}))};
f.addEventListener("onRetroModeChanged",d);c.addOnDisposeCallback(function(){f.removeEventListener("onRetroModeChanged",d)});
_.Fm(q)})};var Qp=0,$m=0,SG=0;var wvD;wvD=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Lv=function(c){_.ES.call(this);this.JSC$22788_watchApi=c;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;yTh(this)};
_.K(_.Lv,_.ES);
var yTh=function(c){var f,d,q;_.k(function(Z){if(Z.nextAddress==1)return Z.yield(c.JSC$22788_watchApi.playerApi,2);f=Z.yieldResult;if(c.isDisposed())return Z.return();c.sessionStorage=_.LEJ("yt-sleep-timer");c.sessionStorage||_.u6(new _.KD("SessionStorage for Sleep Timer is undefined."));((d=c.sessionStorage)==null?void 0:d.get("yt-sleep-timer"))==="true"&&(DNJ(),(q=c.sessionStorage)==null||q.remove("yt-sleep-timer"),f.syncVolume());WCJ(c,f);DzJ(c,f);eRU(c,f);_.Fm(Z)})},WCJ=function(c,f){var d=function(m){c.onSleepTimerSettingsChanged(m,
f)},q=function(m){c.onPlayerStateChange(m,f)},Z=function(){c.onLoopChange(f)},M=function(){c.onCloseMiniplayer(f)},g=function(){hGW(f,(0,_.qR)(),eGX(f),c.selectedOption==="End of video",f.getPlayerState()!==1)},O=function(){c.onSeekComplete(f)},l=function(){_.a7.cancelJob($m);
var m=f.getCurrentTime()>=f.getDuration(),H=c.selectedOption==="End of video"||c.selectedOption==="End of playlist"&&!XNv(c.playlistId);m&&H&&NkE(c,f)};
f.addEventListener("onSleepTimerSettingsChanged",d);f.addEventListener("onLoopChange",Z);f.addEventListener("onLoopRangeChange",Z);f.addEventListener("onStateChange",q);f.addEventListener("onCloseMiniplayer",M);f.addEventListener("onSleepTimerFeatureAvailable",g);f.addEventListener("SEEK_COMPLETE",O);f.addEventListener("onAdStart",l);c.addOnDisposeCallback(function(){f.removeEventListener("onSleepTimerSettingsChanged",d);f.removeEventListener("onLoopChange",Z);f.removeEventListener("onLoopRangeChange",
Z);f.removeEventListener("onStateChange",q);f.removeEventListener("onCloseMiniplayer",M);f.removeEventListener("onSleepTimerFeatureAvailable",g);f.removeEventListener("SEEK_COMPLETE",O);f.removeEventListener("onAdStart",l)})},DzJ=function(c,f){var d=c.JSC$22788_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var q=f.getVideoData().video_id,Z,M=(Z=a4M(c.JSC$22788_watchApi))==null?void 0:Z.playlistId;
c.pauseAutonavPlayback&&(f.pauseVideo(),f.syncVolume(),c.pauseAutonavPlayback=!1);if(c.selectedOption==="End of video"&&q!==c.videoId)zl(c,f);else{if(c.selectedOption==="End of playlist"){Z=XNv(c.playlistId);if(M!==c.playlistId){zl(c,f);break a}Z?Z&&IgJ(c,f):P5X(c,f)}c.videoId=q;c.playlistId=M}}});
c.addOnDisposeCallback(function(){c.JSC$22788_watchApi.unsubscribeByKey(d)})},eRU=function(c,f){var d=_.ql().resolve(_.WL),q=_.bj(d,_.DI4,function(M){M&&c.selectedOption!=="Off"&&zl(c,f)}),Z=c.JSC$22788_watchApi.subscribeToActiveChanged(function(M){var g,O;
return _.k(function(l){if(l.nextAddress==1)return l.yield(_.F7().navigationFinishPromise,2);g=!_.FUF();O=_.ql().resolve(_.yN).isMiniplayerActive();M||!n4(c.selectedOption)||O||g||zl(c,f);_.Fm(l)})},!1);
d=_.bj(d,function(M){return M.entities.playlistLoopStateEntity||{}},function(M){M=M===void 0?{}:M;
var g=VMX(c.JSC$22788_watchApi);if(g){var O;((O=M[g])==null?void 0:O.state)==="PLAYLIST_LOOP_STATE_ALL"&&n4(c.selectedOption)&&zl(c,f)}});
c.addOnDisposeCallback(q);c.addOnDisposeCallback(d);c.addOnDisposeCallback(Z)};
_.Lv.prototype.onSleepTimerSettingsChanged=function(c,f){switch(c){case "Off":this.selectedOption!=="Off"&&zl(this,f);break;case "End of video":case "End of playlist":RR8(this,c,f);break;default:RR8(this,c,f,wvD.get(c))}};
_.Lv.prototype.onLoopChange=function(c){(c.getLoopVideo()||c.getLoopRange())&&n4(this.selectedOption)&&zl(this,c)};
_.Lv.prototype.onCloseMiniplayer=function(c){n4(this.selectedOption)&&zl(this,c)};
var RR8=function(c,f,d,q){UzX(c,d);c.selectedOption=f;c.videoId=d.getVideoData().video_id;c.playlistId="";var Z;(Z=c.sessionStorage)==null||Z.set("yt-sleep-timer","true");c.adjustmentsCount++;hGW(d,(0,_.qR)(),eGX(d),c.selectedOption==="End of video");if(c.selectedOption==="End of video")P5X(c,d),pvS(c,d);else if(c.selectedOption==="End of playlist"){pvS(c,d);var M,g;c.playlistId=(g=(M=a4M(c.JSC$22788_watchApi))==null?void 0:M.playlistId)!=null?g:"";XNv(c.playlistId)||P5X(c,d)}else q&&(c.presetFadeSchedulerId=
_.QH(_.a7,function(){yPM(d,15E3)},q-15E3),c.presetPauseSchedulerId=_.QH(_.a7,function(){NkE(c,d)},q),wNh(d,(0,_.qR)(),q))},NkE=function(c,f){if(c.JSC$22788_watchApi.isActive()){var d={dismissDialogEndpoint:{}};
var q={commandExecutorCommand:{commands:[d,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};d={buttonViewModel:{title:_.HO("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:d}}};q={buttonViewModel:{title:_.HO("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:q}}};var Z={dialogHeaderViewModel:{headline:{content:_.HO("SLEEP_TIMER_ENDED_TITLE")}}},
M={basicContentViewModel:{paragraphs:[{text:{content:_.HO("SLEEP_TIMER_ENDED_TEXT")}}]}};d={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Z,content:M,footer:{panelFooterViewModel:{primaryButton:d,secondaryButton:q,shouldHideDivider:!0}}}}}}};_.ql().resolve(_.ZM).resolveCommand(d,{form:{element:c}})}else DNJ();xz8(c,!1);ocP(c,f);f.pauseVideo();_.jY.getInstance().getState()===2&&f.getPlayerState()===5&&(c.pauseAutonavPlayback=!0)},zl=function(c,f){xz8(c,!0);
ocP(c,f);DNJ()},ocP=function(c,f){UzX(c,f);
c.selectedOption="Off";c.videoId="";c.playlistId="";c.adjustmentsCount=0;var d;(d=c.sessionStorage)==null||d.remove("yt-sleep-timer");_.a7.cancelJob(Qp);f.resetSleepTimerMenuSettings()},xz8=function(c,f){f={timer_length_adjustment_times_during_session:c.adjustmentsCount-1,
is_session_cancelled:f};switch(c.selectedOption){case "Off":f.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":f.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":f.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:f.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",f.option_duration_in_minutes=wvD.get(c.selectedOption)/6E4}_.JN("sleepTimerSessionFinishEvent",f)};
_.Lv.prototype.onPlayerStateChange=function(c,f){c===1?hGW(f,(0,_.qR)(),eGX(f),this.selectedOption==="End of video"):c===0?(_.a7.cancelJob($m),f.setVideoTimeLeft(vl8(0,0))):c===2&&_.a7.cancelJob($m);this.selectedOption==="End of video"?c===0?NkE(this,f):c===2&&WhU(f):this.selectedOption!=="End of playlist"||XNv(this.playlistId)||(c===0?NkE(this,f):c===2&&WhU(f))};
_.Lv.prototype.onSeekComplete=function(c){c.getPlayerState()===2&&hGW(c,(0,_.qR)(),eGX(c),this.selectedOption==="End of video",!0)};
_.Lv.prototype.onCueRangeEnter=function(c,f){c==="sleep-timer-fade-audio"&&yPM(f,(f.getDuration()-f.getProgressState().current)*1E3)};
_.Lv.prototype.onCueRangeExit=function(c,f){c==="sleep-timer-fade-audio"&&f.getPlayerState()!==0&&WhU(f,!0)};
var P5X=function(c,f){f.addCueRange("sleep-timer-fade-audio",f.getDuration()-15,f.getDuration());f.addEventListener("onCueRangeEnter",function(d){c.onCueRangeEnter(d,f)});
f.addEventListener("onCueRangeExit",function(d){c.onCueRangeExit(d,f)})},IgJ=function(c,f){f.removeCueRange("sleep-timer-fade-audio");
f.removeEventListener("onCueRangeEnter",function(d){c.onCueRangeEnter(d,f)});
f.removeEventListener("onCueRangeExit",function(d){c.onCueRangeExit(d,f)})},UzX=function(c,f){n4(c.selectedOption)?IgJ(c,f):(_.a7.cancelJob(c.presetPauseSchedulerId),_.a7.cancelJob(c.presetFadeSchedulerId),c.presetPauseSchedulerId=0,c.presetFadeSchedulerId=0);
WhU(f,!0)},pvS=function(c,f){f.setLoop(!1);
f.setLoopVideo(!1);f.setLoopRange(null);(c=VMX(c.JSC$22788_watchApi))&&_.ql().resolve(_.WL).dispatch(_.ER("playlistLoopStateEntity",c,{key:c,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.dxS=function(c){_.ES.call(this);this.JSC$22791_watchApi=c;GVS(this);c5U(this);fU8(this);c=c.getRoot();if(c.is==="ytd-watch-flexy"||c.is==="ytd-watch-grid")c.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.rPD();_.F("web_watch_log_theater_mode_cookie_state")&&_.A4.get("wide","0")==="1"&&_.uMN("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.K(_.dxS,_.ES);var GVS=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22791_watchApi.playerApi,2);f=q.yieldResult;d=function(Z){jOv(c,!!Z)};
f.addEventListener("SIZE_CLICKED",d);c.addOnDisposeCallback(function(){f.removeEventListener("SIZE_CLICKED",d)});
_.Fm(q)})},c5U=function(c){c.JSC$22791_watchApi.registerActionHandler("yt-toggle-theater-mode",function(f,d){jOv(c,f,d===void 0?!0:d)});
c.addOnDisposeCallback(function(){c.JSC$22791_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.dxS.prototype.getState=function(){return _.Wr(_.Gh().getState())};
var jOv=function(c,f,d){d=d===void 0?!0:d;var q,Z,M,g=_.F("enable_player_resize_transition")&&!!c.JSC$22791_watchApi.getWatchNextResponse()&&!((q=c.JSC$22791_watchApi.getWatchNextResponse())==null?0:(Z=q.contents)==null?0:(M=Z.twoColumnWatchNextResults)==null?0:M.conversationBar);_.Xuq(function(){_.Gh().dispatch(_.CC({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:f}}));_.F("theater_mode_scroll_to_top_killswitch")||c.JSC$22791_watchApi.scrollWatchTo(0,!1);_.q9()&&_.F("external_fullscreen")&&_.Zr(document.documentElement);
fU8(c);d&&_.YK("wide",f?"1":"0",-1);_.gS(c.JSC$22791_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);c.JSC$22791_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:f});f&&_.rPD()},{shouldWrap:g})},fU8=function(c){var f;
_.k(function(d){if(d.nextAddress==1)return d.yield(c.JSC$22791_watchApi.playerApi,2);f=d.yieldResult;f.setSizeStyle(!0,c.getState());_.Fm(d)})};var MQW=function(c){_.ES.call(this);var f=this;this.playerApi=c;this.timeToPanelSyncKeyMap={};var d;if(c==null?0:(d=c.isReady)==null?0:d.call(c)){d=_.bj(_.ql().resolve(_.WL),function(Z){return Z.entities.timedMarkersListSyncEntity||{}},function(Z,M){Z=Z===void 0?{}:Z;
M=M===void 0?{}:M;for(var g=_.C(Object.keys(M)),O=g.next();!O.done;O=g.next())O=O.value,Z[O]!==M[O]&&qSW(f,M[O]);M=_.C(Object.keys(Z));for(g=M.next();!g.done;g=M.next())g=g.value,O=Z[g],f.timeToPanelSyncKeyMap[g]&&Z1M(f,O)});
this.addOnDisposeCallback(d);var q=function(Z){f.onCueRangeEnter(Z)};
c.addEventListener("onCueRangeEnter",q);this.addOnDisposeCallback(function(){var Z;(Z=c.removeEventListener)==null||Z.call(c,"onCueRangeEnter",q)})}};
_.K(MQW,_.ES);
var Z1M=function(c,f){var d,q;if((d=c.playerApi)==null?0:(q=d.isReady)==null?0:q.call(d)){var Z;if((d=f==null?void 0:(Z=f.timedListData)==null?void 0:Z.sections)&&f!=null&&f.key)for(Z=_.C(d),d=Z.next();!d.done;d=Z.next())if(d=d.value,d.timedSyncDataList&&d.sectionId)for(q=0;q<d.timedSyncDataList.length;q++){var M=d.timedSyncDataList[q];M.syncItemId&&c.playerApi.addCueRange(d.sectionId+"_"+f.key+"_"+M.syncItemId,Number(M.videoTimeMs)/1E3,q===d.timedSyncDataList.length-1?0x8000000000000:Number(d.timedSyncDataList[q+
1].videoTimeMs)/1E3)}}},qSW=function(c,f){var d,q;
if((d=c.playerApi)==null?0:(q=d.isReady)==null?0:q.call(d)){var Z;if((d=f==null?void 0:(Z=f.timedListData)==null?void 0:Z.sections)&&f!=null&&f.key)for(Z=_.C(d),d=Z.next();!d.done;d=Z.next())if(d=d.value,d.timedSyncDataList&&d.sectionId){q=_.C(d.timedSyncDataList);for(var M=q.next();!M.done;M=q.next())M=M.value,M.syncItemId&&c.playerApi.removeCueRange(d.sectionId+"_"+f.key+"_"+M.syncItemId)}}};
MQW.prototype.onCueRangeEnter=function(c){for(var f=_.C(Object.keys(this.timeToPanelSyncKeyMap)),d=f.next();!d.done;d=f.next()){d=d.value;var q=_.C(c.split("_"+d+"_")),Z=q.next().value;q=q.next().value;if(Z&&q){c=_.ql().resolve(_.WL);f=this.timeToPanelSyncKeyMap[d];var M=_.$4N(c.getState(),f);d=r5X(d,Z,q);if(d===-1)break;d={activeSyncId:q,activeItemIndex:d,activeSectionInfo:{sectionIdentifier:Z}};M?c.dispatch(_.uh("markersEngagementPanelSyncEntity",f,d)):c.dispatch(_.ER("markersEngagementPanelSyncEntity",
f,Object.assign({},{key:f},d)));break}}};
var r5X=function(c,f,d){var q=_.ql().resolve(_.WL),Z,M;c=(Z=Gl3(q.getState(),c))==null?void 0:(M=Z.timedListData)==null?void 0:M.sections;if(!c)return-1;Z=0;M=_.C(c);for(c=M.next();!c.done;c=M.next()){c=c.value;q=c.timedSyncDataList||[];if(c.sectionId===f)return f=q.findIndex(function(g){return g.syncItemId===d}),f===-1?f:Z+f;
Z+=q.length}return-1};_.kDS=function(c){_.ES.call(this);var f=this;this.JSC$22804_watchApi=c;this.unresolvedCommands=[];this.JSC$22804_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(d){CnS(f,d)});
this.addOnDisposeCallback(function(){f.JSC$22804_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
g6P(this)};
_.K(_.kDS,_.ES);var g6P=function(c){var f;_.k(function(d){if(d.nextAddress==1)return d.yield(c.JSC$22804_watchApi.playerApi,2);f=d.yieldResult;if(c.isDisposed())return d.return();c.timedSyncObserver=new MQW(f);c.unresolvedCommands.length&&(c.unresolvedCommands.forEach(function(q){return CnS(c,q)}),c.unresolvedCommands=[]);
_.ln(c,c.timedSyncObserver);_.Fm(d)})},CnS=function(c,f){if(c.timedSyncObserver){var d=_.b(f,Hjv);
if(d&&d.timedSyncEntityKey&&d.panelSyncEntityKey){c=c.timedSyncObserver;f=d.timedSyncEntityKey;var q=d.panelSyncEntityKey;d=!!d.isEnabled;d=d===void 0?!0:d;var Z=_.ql().resolve(_.WL);Z=Gl3(Z.getState(),f);d?c.timeToPanelSyncKeyMap[f]||(c.timeToPanelSyncKeyMap[f]=q,Z1M(c,Z)):(delete c.timeToPanelSyncKeyMap[f],qSW(c,Z))}}else c.unresolvedCommands.push(f)};var O1v=_.dN(function(c){var f=c.data,d=c.maybeLogSmartSkipClientData,q=null,Z=null,M=_.F("web_enable_auto_focus_for_timely_action_button"),g=function(){q=document.activeElement},O=function(){f().smartSkipMetadata&&(q=document.activeElement,_.zQc(function(){return Z}))},l=function(H){if(f().smartSkipMetadata&&(!H||H.key!=="Enter")){q&&q.isConnected&&(_.zQc(function(){return q}),q=null);
var A;(A=Z)==null||A.blur()}};
c=_.Ks(function(){d==null||d(!0,f());return!1});
var m=_.Z7(_.NY(function(){return f().rendererContext},{onTap:function(H,A){A({disableClickTracking:!0})}}),_.qd({visibilityCallback:function(H){if(M)H?Z&&f().smartSkipMetadata&&(O(),document.addEventListener("focusin",g)):(document.removeEventListener("focusin",g),l());
else if(H){H=_.DW(f().rendererContext);var A=Number(f().maxVisibleDurationMilliseconds),Y,t=(Y=_.b(f().rendererContext,_.Kz))==null?void 0:Y.label;H&&A&&t&&(Y={label:t,command:H,durationMs:A},_.ql().resolve(_.$A).enqueue(Y))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.QJ(function(){if(M){var H;if((Z=(H=m.value)==null?void 0:H.querySelector("button"))&&f().smartSkipMetadata){var A;(A=m.value)==null||A.addEventListener("keydown",l)}}});
_.Q4(function(){M&&(Z&&f().smartSkipMetadata&&Z.removeEventListener("keydown",l),document.removeEventListener("focusin",g),l())});
return _.B("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:m,"on:click":c},_.B(_.u7,{data:function(){return f().content}},{buttonViewModel:_.mN}))},"hk");var lU8=_.dN(function(c){var f=c.data,d=c.playerApi,q=_.ql().resolve(_.$Nq);c=_.C(_.ns(function(){f()}));
var Z=c.next().value,M=c.next().value,g=function(){return I4E(f(),Z())},O=function(m,H){var A,Y,t=(A=_.b(H==null?void 0:H.rendererContext,_.Kx))==null?void 0:(Y=A.loggingDirectives)==null?void 0:Y.trackingParams;
if((H=H==null?void 0:H.smartSkipMetadata)&&H.loggingData&&(Y=H.loggingData,H=Y.algorithmId,A=Y.startMilliseconds,Y=Y.endMilliseconds,H&&A!==void 0&&Y!==void 0)){var E,J;m={smartSkipData:Object.assign({},{versionName:H,startMediaTimeMs:A,endMediaTimeMs:Y},m&&{userInteractionMediaTimeMs:(Math.floor(((E=_.Ca())==null?void 0:(J=E.getPlayer())==null?void 0:J.getCurrentTime())||0)*1E3).toString()})};E=_.X2();var X;t&&(X=_.Q1(t));E&&X&&_.xt(E,X,m)}},l=function(m,H){var A=I4E(f(),m);
if(A){var Y=_.b(A,L4),t;if(t=H)t=d(),A=_.b(A,L4),t=A!=null&&A.smartSkipMetadata?!(t==null?0:t.isSameMarkerTypeVisible((A==null?void 0:A.smartSkipMetadata.markerKey)||"")):!0;if(t){var E,J;(Y==null?0:(E=Y.smartSkipMetadata)==null?0:(J=E.loggingData)==null?0:J.isCounterfactual)||(O(!1,Y),M(m))}else H||Z()!==m||M(void 0)}};
_.$k(function(){var m=f().timelyActions;if(m){m=_.C(m);for(var H=m.next();!H.done;H=m.next()){H=_.b(H.value,L4);var A=void 0;(A=H)!=null&&A.cueRangeId&&q.timelyActionsMap.set(H.cueRangeId,l)}_.Q4(function(){q.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.B("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.B(_.u7,{data:g},{timelyActionViewModel:function(m){return _.B(O1v,{data:m.data,maybeLogSmartSkipClientData:function(){O(!0,_.b(g(),L4))}})}}))},"ik");_.BbD=function(c){_.ES.call(this);this.JSC$22816_watchApi=c;c=_.C(_.OT({},void 0,"UN7k5e"));this.timelyActionsOverlay=c.next().value;this.setTimelyActionsOverlay=c.next().value;sOh(this)};
_.K(_.BbD,_.ES);var sOh=function(c){var f,d,q,Z;_.k(function(M){if(M.nextAddress==1)return i1v(c),TbS(c),c.timelyActionsContainer=document.createElement("div"),M.yield(c.JSC$22816_watchApi.playerApi,2);f=M.yieldResult;(q=(d=f).insertTimelyActionUi)==null||q.call(d,c.timelyActionsContainer);Z=_.$5(c.timelyActionsContainer,function(){return _.B(lU8,{data:c.timelyActionsOverlay,playerApi:f})});
c.addOnDisposeCallback(Z);_.Fm(M)})},TbS=function(c){var f=c.JSC$22816_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){i1v(c)});
c.addOnDisposeCallback(function(){c.JSC$22816_watchApi.unsubscribeByKey(f)})},i1v=function(c){var f=c.JSC$22816_watchApi.getWatchNextResponse();
if(f){var d,q;if(f=_.b((d=f.playerOverlays)==null?void 0:(q=d.playerOverlayRenderer)==null?void 0:q.timelyActionsOverlayViewModel,A3M)){var Z;(Z=c.setTimelyActionsOverlay)==null||Z.call(c,f)}}};_.H1h=function(c){_.ES.call(this);this.JSC$22820_watchApi=c;mxM(this)};
_.K(_.H1h,_.ES);var mxM=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22820_watchApi.playerApi,2);f=q.yieldResult;d=function(Z){_.Hh.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.b(Z,_.EPG)},popupType:"TOAST"}})};
f.addEventListener("onYtShowToast",d);c.addOnDisposeCallback(function(){f.removeEventListener("onYtShowToast",d)});
_.Fm(q)})};var A5X,tQv,$xD,YS8,FAW,n6D,KAS,E6v,QOX,SSD;A5X=!1;_.b18=function(c){_.ES.call(this);this.JSC$22823_watchApi=c;this.fullscreen=this.theater=!1;YS8(this);FAW(this);tQv(this)};
_.K(_.b18,_.ES);tQv=function(c){var f,d,q;_.k(function(Z){if(Z.nextAddress==1)return Z.yield(c.JSC$22823_watchApi.playerApi,2);f=Z.yieldResult;if(c.isDisposed())return Z.return();d=c.JSC$22823_watchApi.getElement("CINEMATICS");if(!d)return Z.return();c.JSC$22823_cinematicController=new _.d5(d,f);_.ln(c,c.JSC$22823_cinematicController);_.RlH(c.JSC$22823_cinematicController);KAS(c,_.meM());q=c.JSC$22823_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(M){E6v(c,M)});
c.addOnDisposeCallback(function(){c.JSC$22823_watchApi.unsubscribeByKey(q)});
n6D(c);E6v(c,c.JSC$22823_cinematicController.isAllowed());_.F("web_cinematic_manager_redux_killswitch")?_.JI(c,c.fullscreen,c.theater):$xD(c);QOX(c);_.Fm(Z)})};
$xD=function(c){c.fullscreen=_.D7(_.Gh().getState());c.theater=_.Wr(_.Gh().getState());_.JI(c,c.fullscreen,c.theater);var f=_.bj(_.Gh(),_.D7,function(q){c.fullscreen=q;_.JI(c,c.fullscreen,c.theater)}),d=_.bj(_.Gh(),_.Wr,function(q){c.theater=q;
_.JI(c,c.fullscreen,c.theater)});
c.addOnDisposeCallback(f);c.addOnDisposeCallback(d)};
YS8=function(c){var f=c.JSC$22823_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){n6D(c)});
c.addOnDisposeCallback(function(){c.JSC$22823_watchApi.unsubscribeByKey(f)})};
FAW=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22823_watchApi.playerApi,2);f=q.yieldResult;d=function(Z){KAS(c,Z)};
f.addEventListener("cinematicSettingsToggleChange",d);c.addOnDisposeCallback(function(){f.removeEventListener("cinematicSettingsToggleChange",d)});
_.Fm(q)})};
n6D=function(c){var f=c.JSC$22823_watchApi.getWatchNextResponse(),d;f=_.b(f==null?void 0:(d=f.pageVisualEffects)==null?void 0:d[0],_.YJ);var q;(q=c.JSC$22823_cinematicController)==null||_.pmi(q,f)};
KAS=function(c,f){var d;(d=c.JSC$22823_cinematicController)==null||_.Uir(d,f);SSD(c)};
E6v=function(c,f){var d;_.k(function(q){if(q.nextAddress==1)return _.F("kevlar_watch_cinematics_invisible")&&(f=!1),q.yield(c.JSC$22823_watchApi.playerApi,2);d=q.yieldResult;d.updateCinematicSettings(f);SSD(c);_.Fm(q)})};
QOX=function(c){var f=_.Ft();if(_.F("kevlar_measure_ambient_mode_idle")&&!f.getFlag(192)&&!A5X){A5X=!0;var d=_.Em(_.a7,function(){_.ql().resolve(_.Qhr).start(1E4)},5E3);
c.addOnDisposeCallback(function(){_.a7.cancelJob(d);_.ql().resolve(_.Qhr).stop()})}};
_.JI=function(c,f,d){c.fullscreen=f;c.theater=d;var q;(q=c.JSC$22823_cinematicController)==null||q.setFullscreen(c.fullscreen,c.theater);if(_.F("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(c.theater||c.fullscreen){var Z;(Z=c.JSC$22823_cinematicController)==null||_.xi3(Z)}else if((c=c.JSC$22823_cinematicController)!=null){var M;(M=c.currentCinematicEffect)==null||M.pause()}};
SSD=function(c){if(_.F("web_cinematic_theater_mode")||_.F("web_cinematic_fullscreen")){var f;c.JSC$22823_watchApi.getRoot().toggleCinematicsActive(!((f=c.JSC$22823_cinematicController)==null||!f.isEnabled()))}};_.aUh=function(c){_.ES.call(this);var f=this;this.JSC$22826_watchApi=c;this.commentsReady=!1;this.setCommentsJobId=0;c=_.bj(_.Gh(),_.bL,function(){LAU(f)});
this.addOnDisposeCallback(c);var d=this.JSC$22826_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zWJ(f)}),q=this.JSC$22826_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){zWJ(f)});
this.addOnDisposeCallback(function(){f.JSC$22826_watchApi.unsubscribeByKey(d);f.JSC$22826_watchApi.unsubscribeByKey(q)});
var Z=function(){_.F("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&J58(f,"false")};
this.JSC$22826_watchApi.getRoot().addEventListener("yt-page-data-will-update",Z);this.addOnDisposeCallback(function(){f.JSC$22826_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Z)});
zWJ(this)};
_.K(_.aUh,_.ES);var zWJ=function(c){c.commentsReady=!1;_.a7.cancelJob(c.setCommentsJobId);c.setCommentsJobId=_.Em(_.a7,function(){LAU(c)},1E3)},LAU=function(c){if(!c.commentsReady){_.V_("cmi");
_.a7.cancelJob(c.setCommentsJobId);var f,d,q,Z,M=(f=c.JSC$22826_watchApi.getWatchNextResponse())==null?void 0:(d=f.contents)==null?void 0:(q=d.twoColumnWatchNextResults)==null?void 0:(Z=q.results)==null?void 0:Z.results.contents;f=void 0;if(M&&M.length)for(M=_.C(M),d=M.next();!d.done;d=M.next())if(d=d.value,Z=q=void 0,((q=d)==null?void 0:(Z=q.itemSectionRenderer)==null?void 0:Z.sectionIdentifier)==="comment-item-section"){_.F("web_watch_provide_undefined_comments")?f=d.itemSectionRenderer:c.JSC$22826_watchApi.provideRenderingData("COMMENTS",
d.itemSectionRenderer);J58(c,"true");break}_.F("web_watch_provide_undefined_comments")&&c.JSC$22826_watchApi.provideRenderingData("COMMENTS",f);c.commentsReady=!0;c.JSC$22826_watchApi.dispatchEvent("yt-watch-comments-ready")}},J58=function(c,f){var d;
(d=c.JSC$22826_watchApi.getElement("COMMENTS"))==null||d.setAttribute("canScheduleJobs",f)};_.u$=function(c){_.ES.call(this);var f=this;this.JSC$22829_watchApi=c;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=_.rx("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)VQU(this);
else{var d=this.JSC$22829_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){a4(f);VY(f)}),q=this.JSC$22829_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Xg(f);
VY(f)});
this.JSC$22829_watchApi.getRoot().is==="ytd-watch-grid"&&_.F("swatcheroo_pbs_load_grid")&&(XuM(this),uEW(this));this.addOnDisposeCallback(function(){f.JSC$22829_watchApi.unsubscribeByKey(d);f.JSC$22829_watchApi.unsubscribeByKey(q);_.a7.cancelJob(f.provideRichGridJobId)});
a4(this);Xg(this)}};
_.K(_.u$,_.ES);var VQU=function(c){var f=c.JSC$22829_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){c.providePlayerJobId=_.X8(_.a7,function(){a4(c);VY(c)},c.provideAllDataDelayMs)}),d=c.JSC$22829_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){c.provideWatchNextJobId=_.X8(_.a7,function(){Xg(c);
VY(c)},c.provideAllDataDelayMs)}),q=c.JSC$22829_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){c.provideWatchNextJobId=_.X8(_.a7,function(){Xg(c);
VY(c)},c.provideAllDataDelayMs)});
c.JSC$22829_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Em(_.a7,function(){a4(c);Xg(c);VY(c)},100)});
c.JSC$22829_watchApi.addPageDisposeJob(function(){_.a7.cancelJob(c.provideWatchNextJobId);_.a7.cancelJob(c.providePlayerJobId)});
c.addOnDisposeCallback(function(){c.JSC$22829_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");c.JSC$22829_watchApi.unsubscribeByKey(f);c.JSC$22829_watchApi.unsubscribeByKey(d);c.JSC$22829_watchApi.unsubscribeByKey(q);_.a7.cancelJob(c.providePlayerJobId);_.a7.cancelJob(c.provideWatchNextJobId)});
a4(c);Xg(c)},a4=function(c){var f=c.JSC$22829_watchApi.getPlayerResponse(),d,q,Z=(q=f==null?void 0:(d=f.playabilityStatus)==null?void 0:d.messageRenderers)!=null?q:[],M,g;
f=(g=f==null?void 0:(M=f.playabilityStatus)==null?void 0:M.messages)!=null?g:[];M=_.C(f);for(g=M.next();!g.done;g=M.next())Z.push({alertRenderer:{text:_.pC(g.value),type:"WARNING"}});c.JSC$22829_watchApi.provideRenderingData("ALERTS",Z)},Xg=function(c){var f=[],d,q,Z,M=c.JSC$22829_watchApi.getWatchNextResponse(),g,O,l,m,H=M==null?void 0:(g=M.contents)==null?void 0:(O=g.twoColumnWatchNextResults)==null?void 0:(l=O.results)==null?void 0:(m=l.results)==null?void 0:m.contents;
if(H)for(g=_.C(H),O=g.next();!O.done;O=g.next())if(O=O.value,O.videoPrimaryInfoRenderer)var A=O;else if(O.videoSecondaryInfoRenderer){var Y=O;m=l=void 0;O=Object.assign({},(l=O.videoSecondaryInfoRenderer)==null?void 0:(m=l.metadataRowContainer)==null?void 0:m.metadataRowContainerRenderer);if(O.rows&&O.collapsedItemCount!==void 0){O.rows=O.rows.slice(0,O.collapsedItemCount).filter(function(eu){return!!eu.richMetadataRowRenderer});
O.collapsedItemCount=O.rows.length;var t={metadataRowContainerRenderer:O}}}else if(O.merchandiseShelfRenderer)var E=O;else if(O.ticketShelfRenderer)var J=O;else if(O.expandableMetadataRenderer)var X=O;else if(O.itemSectionRenderer)if(l=O.itemSectionRenderer.contents,m=void 0,c.directlyProvideComments&&((m=O.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section")_.V_("cmi"),c.JSC$22829_watchApi.provideRenderingData("COMMENTS",O.itemSectionRenderer);else if(l)for(O=_.C(l),l=
O.next();!l.done;l=O.next())if(l=l.value,l.commentsEntryPointHeaderRenderer)var u=l;else if(l.clarificationRenderer||l.infoPanelContainerRenderer||l.infoPanelContentRenderer||l.emergencyOneboxRenderer){f.push(l);var W=W||!!Y}else l.limitedStateMessageRenderer?q=l:l.videoMetadataCarouselViewModel&&(Z=l);if(_.F("web_watch_merch_in_sd_when_ticket_shelf_present")&&E&&J){var p=E;E=void 0}if(c.provideWatchNextSecondaryResults){var N,I,R;c.JSC$22829_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
M==null?void 0:(N=M.contents)==null?void 0:(I=N.twoColumnWatchNextResults)==null?void 0:(R=I.secondaryResults)==null?void 0:R.secondaryResults)}if(c.JSC$22829_watchApi.getRoot().is==="ytd-watch-grid"){var qN,kl;c.JSC$22829_watchApi.provideRenderingData("LIVE_CHAT",M==null?void 0:(qN=M.contents)==null?void 0:(kl=qN.twoColumnWatchNextResults)==null?void 0:kl.conversationBar)}var BN,tP,EC,AP;(N=M==null?void 0:(BN=M.contents)==null?void 0:(tP=BN.twoColumnWatchNextResults)==null?void 0:(EC=tP.secondaryResults)==
null?void 0:(AP=EC.secondaryResults)==null?void 0:AP.offerModule)&&(N.donationShelfRenderer||N.donationUnavailableRenderer)&&c.JSC$22829_watchApi.getRoot().is!=="ytd-watch-grid"&&(d=N);BN=c.JSC$22829_watchApi.getPlayerResponse();if(!BN||!_.DyP(BN.playabilityStatus,M==null?void 0:M.playerOverlays)){var eM;if(M==null?0:(eM=M.contents)==null?0:eM.singleColumnWatchNextResults){var ue,BH;var J3=M==null?void 0:(ue=M.contents.singleColumnWatchNextResults.results)==null?void 0:(BH=ue.results)==null?void 0:
BH.contents}else{var lr,xl,Tv,ir;eM=!!(H==null?0:(lr=H[0])==null?0:(xl=lr.itemSectionRenderer)==null?0:(Tv=xl.contents)==null?0:(ir=Tv[0])==null?0:ir.backgroundPromoRenderer);var $_,AH;lr=!!(M==null?0:($_=M.contents)==null?0:(AH=$_.twoColumnWatchNextResults)==null?0:AH.secondaryResults);eM&&!lr&&(J3=H)}}H=f[0];$_=f[1];W&&f.length===1&&($_=H,H=void 0);c.JSC$22829_watchApi.provideRenderingData("PRIMARY_INFO",A);c.JSC$22829_watchApi.provideRenderingData("SECONDARY_INFO",Y);c.JSC$22829_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
u);c.JSC$22829_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Z);c.JSC$22829_watchApi.provideRenderingData("CLARIFICATION",H);c.JSC$22829_watchApi.provideRenderingData("RICH_METADATA",t);c.JSC$22829_watchApi.provideRenderingData("MERCH_SHELF",E);_.F("web_watch_merch_in_sd_when_ticket_shelf_present")&&c.JSC$22829_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",p);c.JSC$22829_watchApi.provideRenderingData("TICKET_SHELF",J);c.JSC$22829_watchApi.provideRenderingData("LIMITED_STATE",q);c.JSC$22829_watchApi.getRoot().is!==
"ytd-watch-grid"&&c.JSC$22829_watchApi.provideRenderingData("DONATION_SHELF",d);c.JSC$22829_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",J3);c.JSC$22829_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",$_);c.JSC$22829_watchApi.provideRenderingData("EXPANDABLE_METADATA",X);if(c.swatcherooProvideAllDataOnScheduledJob){var U3,MN,qH,br,YS,Y_;A=M==null?void 0:(U3=M.contents)==null?void 0:(MN=U3.twoColumnWatchNextResults)==null?void 0:(qH=MN.secondaryResults)==null?void 0:(br=qH.secondaryResults)==
null?void 0:(YS=br.results)==null?void 0:(Y_=YS[0])==null?void 0:Y_.richGridRenderer;c.JSC$22829_watchApi.provideRenderingData("RICH_GRID_RENDERER",A)}};
_.u$.prototype.hasCompanionAds=function(c){var f,d;return(d=c==null?void 0:(f=c.adPlacements)==null?void 0:f.some(function(q){var Z,M,g,O;return(q==null?void 0:(Z=q.adPlacementRenderer)==null?void 0:(M=Z.renderer)==null?void 0:M.actionCompanionAdRenderer)||(q==null?void 0:(g=q.adPlacementRenderer)==null?void 0:(O=g.renderer)==null?void 0:O.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?d:!1};
var VY=function(c){if(!_.F("swaterdoo_ps_wn_handle_ks")){c.swatcherooProvideAllDataOnScheduledJob||uEW(c,3E3);var f=c.JSC$22829_watchApi.getPlayerResponse(),d,q,Z,M,g,O=(d=c.JSC$22829_watchApi.getWatchNextResponse())==null?void 0:(q=d.contents)==null?void 0:(Z=q.twoColumnWatchNextResults)==null?void 0:(M=Z.secondaryResults)==null?void 0:(g=M.secondaryResults)==null?void 0:g.offerModule;f=c.hasCompanionAds(f);var l,m;d=(O==null?void 0:(l=O.tvfilmOfferModuleRenderer)==null?void 0:l.clientShouldSuppressIfCompanionAdDisplayed)||
(O==null?void 0:(m=O.unlimitedOfferModuleRenderer)==null?void 0:m.suppressIfCompanionAds);l=f&&d;c.JSC$22829_watchApi.getRoot().is==="ytd-watch-grid"&&c.JSC$22829_watchApi.provideRenderingData("OFFER_MODULE",l?void 0:O)}},uEW=function(c,f){_.F("swatcheroo_pbs_load_grid")&&(c.provideRichGridJobId&&_.a7.cancelJob(c.provideRichGridJobId),c.provideRichGridJobId=_.X8(_.a7,function(){c.provideRichGridJobId=0;
var d,q,Z,M,g,O,l,m=(d=c.JSC$22829_watchApi.getWatchNextResponse())==null?void 0:(q=d.contents)==null?void 0:(Z=q.twoColumnWatchNextResults)==null?void 0:(M=Z.secondaryResults)==null?void 0:(g=M.secondaryResults)==null?void 0:(O=g.results)==null?void 0:(l=O[0])==null?void 0:l.richGridRenderer;m&&c.JSC$22829_watchApi.provideRenderingData("RICH_GRID_RENDERER",m)},f))},XuM=function(c){var f,d;
_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22829_watchApi.playerApi,2);f=q.yieldResult;d=function(){c.onPlaybackStart()};
f.addEventListener("onPlaybackStartExternal",d);c.addOnDisposeCallback(function(){f.removeEventListener("onPlaybackStartExternal",d)});
_.Fm(q)})};
_.u$.prototype.onPlaybackStart=function(){uEW(this)};_.hW8=function(c){_.ES.call(this);var f=this;this.JSC$22839_watchApi=c;c.playerApi.then(function(d){f.player=d});
this.gestures=new _.CH(this.JSC$22839_watchApi.getRoot(),c.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.jkD(_.Gh().getState())&&_.bL(_.Gh().getState())<=0)if(_.D7(_.Gh().getState())){var d;(d=f.player)==null||d.toggleFullscreen()}else _.gS(f.JSC$22839_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
v6E(this)};
_.K(_.hW8,_.ES);var v6E=function(c){var f=_.bj(_.Gh(),_.D7,function(d){c.onFullscreenChanged(d)});
c.addOnDisposeCallback(f);f=_.bj(_.Gh(),_.bL,function(d){c.gestures&&(d>0?c.gestures.detach():c.gestures.attach())});
c.addOnDisposeCallback(f)};
_.hW8.prototype.onFullscreenChanged=function(c){this.gestures&&this.gestures.update(c)};_.y5q=function(c){_.ES.call(this);var f=this;this.JSC$22842_watchApi=c;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(c.subscribeToActiveChanged(function(d){f.onActiveChanged(d)}));
wuX(this)};
_.K(_.y5q,_.ES);var WA8=function(c){if(_.F("swatcheroo_page_dispose_all_watch_data"))c.pageDisposalDataTypes=Object.values(C58).filter(function(d){return d!=="PLAYLIST"});
else if(_.F("swatcheroo_page_dispose_rich_grid")){var f;(f=c.pageDisposalDataTypes)==null||f.push("RICH_GRID_RENDERER")}},wuX=function(c){_.F("swatcheroo_enable_ghost_cards")&&(WA8(c),c.JSC$22842_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.a7.cancelJob(c.clearDataJobId);
c.clearDataJobId=0}),c.runPageDisposeJob=function(){var f=_.ql().resolve(_.MY).getDestinationPageType()==="watch";
c.clearDataJobId=_.X8(_.a7,c.runClearDataJob,f?0:_.rx("web_watch_delay_page_dispose_ms",1E4))},c.runClearDataJob=function(){DxE(c)},c.runOnYtNavigateAwayFinish=function(){c.clearDataJobId&&(_.a7.cancelJob(c.clearDataJobId),c.clearDataJobId=0,DxE(c))},document.addEventListener("yt-navigate-finish",c.runOnYtNavigateAwayFinish),c.JSC$22842_watchApi.addPageDisposeJob(c.runPageDisposeJob),c.addOnDisposeCallback(function(){c.JSC$22842_watchApi.removePageDisposeJob(c.runPageDisposeJob);
c.JSC$22842_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",c.runOnYtNavigateAwayFinish)}))},DxE=function(c){c.pageDisposalDataTypes.forEach(function(f){c.JSC$22842_watchApi.provideRenderingData(f,void 0)});
c.clearDataJobId=0};
_.y5q.prototype.onActiveChanged=function(c){c&&((c=document.querySelector("#watch-page-skeleton"))&&_.Y6(c),eWW(this),document.body.removeAttribute("no-y-overflow"),_.wi("IS_SHELL_LOAD")&&_.ek3())};
var eWW=function(c){_.k(function(f){if(f.nextAddress==1)return f.yield(c.JSC$22842_watchApi.playerApi,2);_.R9();_.Fm(f)})};var Nb8;Nb8=_.F("kevlar_watch_while_counterfactual")?0:.25;_.vl=function(c){_.ES.call(this);this.JSC$22845_watchApi=c;this.JSC$22845_watchWhileEnabled=_.F("kevlar_watch_while_v2");this.pipEnabled=_.F("web_enable_pip_on_miniplayer");IUW(this);PnJ(this);RW8(this)};
_.K(_.vl,_.ES);var IUW=function(c){c.JSC$22845_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){UxM(c)});
c.addOnDisposeCallback(function(){c.JSC$22845_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},PnJ=function(c){var f,d;
_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22845_watchApi.playerApi,2);f=q.yieldResult;d=function(){UxM(c)};
f.addEventListener("onCollapseMiniplayer",d);c.addOnDisposeCallback(function(){f.removeEventListener("onCollapseMiniplayer",d)});
_.Fm(q)})},RW8=function(c){var f=c.JSC$22845_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&f&&c.JSC$22845_watchWhileEnabled&&(c.playerIntersectionObserver=new IntersectionObserver(function(d){c.handleIntersect(d)},{threshold:[Nb8]}),c.playerIntersectionObserver.observe(f),c.addOnDisposeCallback(function(){var d;
(d=c.playerIntersectionObserver)==null||d.disconnect()}))},UxM=function(c){var f,d,q;
_.k(function(Z){if(Z.nextAddress==1){f=_.ql().resolve(_.MY);d=f.data;q=_.Owz(d.response,d.playerResponse);_.F7().miniplayerButtonActivation=!0;if(c.pipEnabled)return _.F7().watchPipActivation=!0,Z.jumpTo(2);_.ql().resolve(_.yN).collapse();return Z.yield(_.F7().navigationFinishPromise,2)}if(Z.nextAddress!=4)return _.F7().currentEndpoint=q.watchEndpoint||null,Z.yield(_.ql().resolve(_.yN).activate(c.JSC$22845_watchApi.getElement("PLAYER"),q,d),4);_.F7().userActivation=!0;_.Fm(Z)})};
_.vl.prototype.handleIntersect=function(c){puM(this,c[c.length-1])};
var puM=function(c,f){c.watchWhileJobId&&_.a7.cancelJob(c.watchWhileJobId);c.watchWhileJobId=_.a7.addLowPriorityJob(function(){var d,q;return _.k(function(Z){if(Z.nextAddress==1)return c.watchWhileJobId=void 0,d=_.ql().resolve(_.yN),f.intersectionRatio>Nb8?d.isMiniplayerActive()?Z.yield(d.deactivate(),0):Z.jumpTo(0):(q=!d.isMiniplayerActive())?Z.yield(xxM(c),5):Z.jumpTo(4);Z.nextAddress!=4&&(q=Z.yieldResult);if(!q)return Z.jumpTo(0);_.F7().watchWhileActivation=!0;return Z.yield(o6W(c),0)})},100)},
xxM=function(c){return _.k(function(f){return f.nextAddress==1?_.F("kevlar_watch_while_paused")?f.return(!0):f.yield(c.isPlayerPlaying(),2):f.return(f.yieldResult)})};
_.vl.prototype.isPlayerPlaying=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return d.yield(c.JSC$22845_watchApi.playerApi,2);f=d.yieldResult;return d.return(f.getPlayerStateObject().isPlaying)})};
var o6W=function(c){var f,d;return _.k(function(q){f=_.ql().resolve(_.MY).data;d=_.Owz(f.response,f.playerResponse);_.F7().currentEndpoint=d.watchEndpoint||null;return q.yield(_.ql().resolve(_.yN).activate(c.JSC$22845_watchApi.getElement("PLAYER"),d,f),0)})};_.fav=function(c){_.ES.call(this);this.JSC$22849_watchApi=c;GD8(this);coU(this)};
_.K(_.fav,_.ES);var coU=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22849_watchApi.playerApi,2);f=q.yieldResult;d=function(Z){var M;Z.sessionData&&Z.sessionData.itct&&(M=Z.sessionData.itct);var g=Z.watchEndpoint;if(g&&Z.sessionData&&Z.sessionData.autonav)g=_.GIk(g,M);else{var O;g=_.dW(Z.videoId,(O=Z.listId)!=null?O:void 0,M)}M={endpoint:g};Z.sessionData&&(M.tempData=Z.sessionData);c.JSC$22849_watchApi.dispatchEvent("yt-navigate",M)};
f.addEventListener("onPlayVideo",d);c.addOnDisposeCallback(function(){f.removeEventListener("onPlayVideo",d)});
_.Fm(q)})},GD8=function(c){var f=function(d){c.onYtNavigate(d)};
c.JSC$22849_watchApi.getRoot().addEventListener("yt-navigate",f);c.addOnDisposeCallback(function(){c.JSC$22849_watchApi.getRoot().removeEventListener("yt-navigate",f)})};
_.fav.prototype.onYtNavigate=function(c){var f=this,d,q,Z,M,g,O,l,m,H;return _.k(function(A){if(A.nextAddress==1){if(!((d=c.detail)==null?0:(q=d.endpoint)==null?0:q.watchEndpoint))return A.return();Z=c.detail.endpoint.watchEndpoint;M=f.JSC$22849_watchApi.getWatchNextResponse();O=_.b((g=M)==null?void 0:g.currentVideoEndpoint,_.pe);if(!O)return A.return();if(Z.videoId!==O.videoId||Z.playlistId&&Z.playlistId!==O.playlistId||typeof Z.startTimeSeconds!=="number")return A.jumpTo(0);c.stopPropagation();
(l=_.F("kevlar_watch_while_v2")&&!_.F("kevlar_watch_while_counterfactual"))&&_.ql().resolve(_.yN).isMiniplayerActive()||f.JSC$22849_watchApi.scrollWatchTo(0,!0);return A.yield(f.JSC$22849_watchApi.playerApi,3)}m=A.yieldResult;H=Z.startTimeSeconds;m.seekTo(H,void 0,void 0,void 0,84);m.wakeUpControls();H<m.getDuration()&&m.playVideo();_.Fm(A)})};_.juE=function(c){_.ES.call(this);var f=this;this.JSC$22852_watchApi=c;var d=this.JSC$22852_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){daq(f)});
this.addOnDisposeCallback(function(){f.JSC$22852_watchApi.unsubscribeByKey(d)});
daq(this)};
_.K(_.juE,_.ES);var daq=function(c){var f=c.JSC$22852_watchApi.getWatchNextResponse();if(f){var d,q=[].concat(_.LT((d=f==null?void 0:f.engagementPanels)!=null?d:[]));q.unshift.apply(q,_.LT(qTE(f)));c.JSC$22852_watchApi.provideRenderingData("ENGAGEMENT_PANELS",q)}},ZL8=function(c){var f,d,q,Z=(f=c.engagementPanels)==null?void 0:(d=f.find(function(t){var E;
return((E=t.engagementPanelSectionListRenderer)==null?void 0:E.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(q=d.engagementPanelSectionListRenderer.content)==null?void 0:q.structuredDescriptionContentRenderer,M;
if(_.b(Z==null?void 0:(M=Z.items)==null?void 0:M.find(function(t){return!!_.b(t,uyS)}),uyS))return!0;
var g,O,l,m;if(c=(((g=c.contents)==null?void 0:(O=g.twoColumnWatchNextResults)==null?void 0:(l=O.results)==null?void 0:(m=l.results)==null?void 0:m.contents)||[]).find(function(t){return t.videoPrimaryInfoRenderer})){var H,A,Y;
return(((H=c.videoPrimaryInfoRenderer)==null?void 0:(A=H.videoActions)==null?void 0:(Y=A.menuRenderer)==null?void 0:Y.flexibleItems)||[]).some(function(t){t=_.b(t,_.z1j);if(!t)return!1;var E,J;t=(E=t.topLevelButton)==null?void 0:(J=E.buttonViewModel)==null?void 0:J.onTap;if(!t)return!1;E=_.D9(t);if(!E)return!1;var X;return((X=_.b(E,_.VN))==null?void 0:X.panelIdentifier)==="PAyouchat"})}return!1},qTE=function(c){var f=[];
if(!_.F("web_watch_inject_placeholder_fantasy_panel_killswitch")){var d,q,Z,M=(d=c.engagementPanels)==null?void 0:(q=d.find(function(O){var l;return((l=O.engagementPanelSectionListRenderer)==null?void 0:l.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Z=q.engagementPanelSectionListRenderer.content)==null?void 0:Z.structuredDescriptionContentRenderer,g;
_.b(M==null?void 0:(g=M.items)==null?void 0:g.find(function(O){return!!_.b(O,sKv)}),sKv)&&(d=_.SEC("PAsports_fantasy"),d.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f.push(d))}ZL8(c)&&(c=_.SEC("PAyouchat"),c.engagementPanelSectionListRenderer.targetId="PAyouchat",c.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f.push(c));
return f};_.ro8=function(c){_.ES.call(this);this.JSC$22855_watchApi=c;Mhh(this)};
_.K(_.ro8,_.ES);var Mhh=function(c){c.JSC$22855_watchApi.registerActionHandler("yt-loop-command",function(f){CmS(c,f)});
c.JSC$22855_watchApi.registerActionHandler("yt-repeat-chapter-command",function(f){gkh(c,f)});
c.addOnDisposeCallback(function(){c.JSC$22855_watchApi.unregisterActionHandler("yt-loop-command");c.JSC$22855_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},CmS=function(c,f){var d;
_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22855_watchApi.playerApi,2);d=q.yieldResult;_.b(f,ijh).loop?(d.setLoopRange({startTimeMs:Number(_.b(f,ijh).startTimeMs),endTimeMs:Number(_.b(f,ijh).endTimeMs),postId:_.b(f,ijh).postId,type:"clips"}),d.playVideo()):d.setLoopRange(null);_.Fm(q)})},gkh=function(c,f){var d,q;
_.k(function(Z){if(Z.nextAddress==1)return Z.yield(c.JSC$22855_watchApi.playerApi,2);d=Z.yieldResult;q=_.b(f,Y3h).repeat;q==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(d.setLoopRange({startTimeMs:Number(_.b(f,Y3h).startTimeMs),endTimeMs:Number(_.b(f,Y3h).endTimeMs),type:"repeatChapter"}),d.playVideo()):q==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&d.setLoopRange(null);_.Fm(Z)})};_.OLq=function(c){_.ES.call(this);this.JSC$22860_watchApi=c;kZM(this)};
_.K(_.OLq,_.ES);var kZM=function(c){c.JSC$22860_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(f){laE(c,f)});
c.addOnDisposeCallback(function(){c.JSC$22860_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},laE=function(c,f){var d,q,Z,M,g,O,l,m,H,A,Y;
_.k(function(t){if(t.nextAddress==1)return t.yield(c.JSC$22860_watchApi.playerApi,2);d=t.yieldResult;if(M=(Z=(q=_.b(f,FTq))==null?void 0:q.highlightedMenuItemKey)!=null?Z:"")(O=(g=d).highlightSettingsMenuItem)==null||O.call(g,M);if(H=(m=(l=_.b(f,FTq))==null?void 0:l.openMenuItemKey)!=null?m:"")(Y=(A=d).openSettingsMenuItem)==null||Y.call(A,H);_.Fm(t)})};var suh=_.sx("/youtube/app/watch/player_state","playerStateEntity");_.iLX=function(c){_.ES.call(this);this.JSC$22863_watchApi=c;B$X(this)};
_.K(_.iLX,_.ES);var T$8=function(c){switch(c){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"}},B$X=function(c){var f,d;
_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22863_watchApi.playerApi,2);f=q.yieldResult;d=function(Z){c.onPlayerStateChange(Z)};
f.addEventListener("onStateChange",d);c.addOnDisposeCallback(function(){f.removeEventListener("onStateChange",d)});
_.Fm(q)})};
_.iLX.prototype.onPlayerStateChange=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(f.JSC$22863_watchApi.playerApi,2);d=Z.yieldResult;q=d.getVideoData().video_id;_.xE().dispatch(_.ER("playerStateEntity",suh,{key:suh,playerState:T$8(c),videoId:q}));_.Fm(Z)})};_.HLW=function(c){_.ES.call(this);var f=this;this.JSC$22867_watchApi=c;this.enableExternalPlaylistPanelInPlayer=_.F("delhi_web_player_use_external_playlist_panel");_.ql().resolve(_.W_).setPlayer(this.JSC$22867_watchApi.getElement("PLAYER"));c=this.JSC$22867_watchApi.subscribeToActiveChanged(function(d){f.onActiveChanged(d)});
this.addOnDisposeCallback(c);maP(this)};
_.K(_.HLW,_.ES);var maP=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return c.enableExternalPlaylistPanelInPlayer?q.yield(c.JSC$22867_watchApi.playerApi,2):q.return();f=q.yieldResult;d=function(){if(c.playlistPanelElement)c.playlistPanelElement.onToggleExpanded()};
f.addEventListener("onToggleExternalPlaylistPanel",d);c.addOnDisposeCallback(function(){f.removeEventListener("onToggleExternalPlaylistPanel",d)});
_.Fm(q)})};
_.HLW.prototype.onActiveChanged=function(c){var f=this,d=_.ql().resolve(_.W_),q=function(){Aoq(f)};
c?(this.playlistPanelElement=this.JSC$22867_watchApi.getElement("PLAYLIST_PANEL"))?(d.setPlaylistComponent(this.playlistPanelElement),d.addEventListener("yt-playlist-data-updated",q),this.addOnDisposeCallback(function(){d.removeEventListener("yt-playlist-data-updated",q)}),Aoq(this)):_.eZ(Error("zo")):(d.removeEventListener("yt-playlist-data-updated",q),d.cancelVideoSkip())};
var Aoq=function(c){var f=_.ql().resolve(_.W_);c.JSC$22867_watchApi.provideRenderingData("PLAYLIST",f.getPlaylistData())};_.hI=function(c){_.ES.call(this);var f=this;this.JSC$22870_watchApi=c;this.onPageScroll=function(){f.scrollThrottle.fire();f.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Gx(this.onThrottledScroll,200,this);_.ln(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Gx(this.onMastheadThrottledScroll,50,this);_.ln(this,this.mastheadScrollThrottle);this.animation=new _.ID(function(d){f.JSC$22870_watchApi.getRoot().setScrollTop(d)});
c=_.bj(_.Gh(),_.D7,function(){f.onFullscreenChanged()});
this.addOnDisposeCallback(c);YTP(this);FKh(this);this.onThrottledScroll()};
_.K(_.hI,_.ES);
_.hI.prototype.onFullscreenChanged=function(){var c=this,f=this.JSC$22870_watchApi.getRoot();!this.pageScrollElement&&f.pageScrollElement?(this.pageScrollElement=f.pageScrollElement,f.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){c.pageScrollElement&&c.pageScrollElement.removeEventListener("scroll",c.onPageScroll)})):this.pageScrollElement&&!f.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var YTP=function(c){window.addEventListener("scroll",c.onPageScroll);c.addOnDisposeCallback(function(){window.removeEventListener("scroll",c.onPageScroll)})},FKh=function(c){c.JSC$22870_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(f){a:{var d;
if(d=c.JSC$22870_watchApi.getRoot().contains(f)&&!c.animation.isAnimating()){d=f.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var q,Z,M=(f==null?void 0:(q=f.parentElement)==null?void 0:(Z=q.parentElement)==null?void 0:Z.id)==="fixed-secondary";d=!(d&&M)}if(d){if(_.F("kevlar_watch_scroll_manager_absolute_offset_killswitch"))q=f.offsetTop;else for(q=0,Z=f;Z!==null;)q+=Z.offsetTop,q-=Z.scrollTop,Z=Z.offsetParent;Z=q;q=Z-24;f=Z+f.offsetHeight+24;Z=c.JSC$22870_watchApi.getRoot().getPageScrollingElement();
d=c.JSC$22870_watchApi.getRoot().getScrollTop();M=d+Z.clientHeight-56;if(q<d+56)f=q-56;else if(f>M)f-=Z.clientHeight;else break a;c.scrollWatchTo(Math.max(0,f),!0)}}});
c.addOnDisposeCallback(function(){c.JSC$22870_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.hI.prototype.onThrottledScroll=function(){var c=_.Gh(),f=c.dispatch,d=this.JSC$22870_watchApi.getRoot().getScrollTop();f.call(c,_.CC({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:d}}))};
_.hI.prototype.onMastheadThrottledScroll=function(){this.JSC$22870_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22870_watchApi.getRoot().getScrollTop())};
_.hI.prototype.scrollWatchTo=function(c,f){(f===void 0?0:f)?this.animation.start(this.JSC$22870_watchApi.getRoot().getScrollTop(),Math.max(0,c),500):this.JSC$22870_watchApi.getRoot().setScrollTop(c)};_.KKq=function(c){_.ES.call(this);var f=this;this.JSC$22873_watchApi=c;var d=this.JSC$22873_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){thh(f)}),q=this.JSC$22873_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){bLE(f)});
this.addOnDisposeCallback(function(){f.JSC$22873_watchApi.unsubscribeByKey(d);f.JSC$22873_watchApi.unsubscribeByKey(q)});
thh(this);bLE(this)};
_.K(_.KKq,_.ES);
var thh=function(c){var f,d,q,Z=(q=(f=c.JSC$22873_watchApi.getPlayerResponse())==null?void 0:(d=f.videoDetails)==null?void 0:d.title)!=null?q:"";c.JSC$22873_watchApi.dispatchEvent("yt-update-title",Z)},bLE=function(c){var f,d,q,Z,M,g,O,l=(O=((g=(f=c.JSC$22873_watchApi.getWatchNextResponse())==null?void 0:(d=f.contents)==null?void 0:(q=d.twoColumnWatchNextResults)==null?void 0:(Z=q.results)==null?void 0:(M=Z.results)==null?void 0:M.contents)!=null?g:[]).find(function(m){return!!m.videoPrimaryInfoRenderer}))==null?
void 0:O.videoPrimaryInfoRenderer;
(f=_.xC(l==null?void 0:l.title))&&c.JSC$22873_watchApi.dispatchEvent("yt-update-title",f)};_.nk8=function(c){_.ES.call(this);this.JSC$22876_watchApi=c;Ekq(this)};
_.K(_.nk8,_.ES);var Ekq=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$22876_watchApi.playerApi,2);f=q.yieldResult;d=function(){c.onYpcContentRequest()};
f.addEventListener("onYpcContentRequest",d);c.addOnDisposeCallback(function(){f.removeEventListener("onYpcContentRequest",d)});
_.Fm(q)})};
_.nk8.prototype.onYpcContentRequest=function(){var c,f,d,q,Z,M=(c=this.JSC$22876_watchApi.getWatchNextResponse())==null?void 0:(f=c.contents)==null?void 0:(d=f.twoColumnWatchNextResults)==null?void 0:(q=d.secondaryResults)==null?void 0:(Z=q.secondaryResults)==null?void 0:Z.offerModule,g,O,l,m;c=(m=(l=(O=(g=M==null?void 0:M.episodeOfferModuleRenderer)!=null?g:M==null?void 0:M.movieOfferModuleRenderer)!=null?O:M==null?void 0:M.unlimitedOfferModuleRenderer)!=null?l:M==null?void 0:M.liveOfferModuleRenderer)!=
null?m:M==null?void 0:M.tvfilmOfferModuleRenderer;var H,A,Y;M=(Y=M==null?void 0:(H=M.tvfilmOfferModuleRenderer)==null?void 0:(A=H.actionButtons)==null?void 0:A.length)!=null?Y:0;A=Math.max(M-1,0);var t,E,J;H=(J=c==null?void 0:(t=c.offerButton)==null?void 0:t.buttonRenderer)!=null?J:c==null?void 0:(E=c.actionButtons)==null?void 0:E[A].buttonRenderer;var X,u;(t=(u=(X=H==null?void 0:H.navigationEndpoint)!=null?X:H==null?void 0:H.serviceEndpoint)!=null?u:H==null?void 0:H.command)&&_.Hh.instance.resolveCommand(t)};
}catch(e){_._DumpException(e)}
try{
var slS,kAJ,CWH;_.gDC=function(){var c=_.zV.clone(r83),f;return(new _.i6(function(d,q){c.onSuccess=function(Z){_.are(Z)?d(new CWH(Z)):q(new _.k7("Request failed, status="+_.kK(Z),"net.badstatus",Z))};
c.onError=function(Z){q(new _.k7("Unknown request error","net.unknown",Z))};
c.onTimeout=function(Z){q(new _.k7("Request timed out","net.timeout",Z))};
f=_.iF("//googleads.g.doubleclick.net/pagead/id",c)})).thenCatch(function(d){if(d instanceof _.NC){var q;
(q=f)==null||q.abort()}return _.Je(d)})};
_.OhJ=function(c){a:{var f="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(f="EMBEDDED_PLAYER_MODE_PFL");var d=c.raw_embedded_player_response;if(!d&&(c=c.embedded_player_response))try{d=JSON.parse(c)}catch(Z){break a}if(d)b:for(var q in kAJ)if(kAJ[q]==d.embeddedPlayerMode){f=kAJ[q];break b}}return f==="EMBEDDED_PLAYER_MODE_PFL"};
_.lBJ=function(){if(_.F("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("nf");if(!_.dMr())return Error("of");var c=_.hk("PLAYER_VARS",{});if(_.zV.get(c,"privembed",!1)=="1")return Error("pf");if(_.OhJ(c))return Error("qf")};
slS=function(c){switch(c){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:_.WH(c,"unknown result type")}};
_.Buq=function(c,f,d){f=_.dee[f];d={detected:c===0,source:f.sOG,detectionResult:slS(c),contentCpn:d};_.JN("biscottiBasedDetection",d);_.Ol_.increment(f.sOG,c);f.sTT!==void 0&&_.Xr("CATSTAT",_.c2M(c,f))};
_.Of=function(c,f){var d={};d.key=c;d.value=f;return _.XPP().then(function(q){return new Promise(function(Z,M){try{var g=q.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(d);g.onsuccess=function(){Z()};
g.onerror=function(){M()}}catch(O){M(O)}})})};
_.Tup=function(){var c=_.rx("user_engagement_experiments_rate_limit_ms"),f=ihG.get("last-user-engagement-exp-trigger-timestamp");return!f||(0,_.qR)()>=f+c?(ihG.set("last-user-engagement-exp-trigger-timestamp",(0,_.qR)()),!0):!1};
_.lT=function(c,f,d,q,Z){f=f===void 0?null:f;d=d===void 0?null:d;q=q===void 0?null:q;Z=Z===void 0?null:Z;c={youThereEventType:c};d&&(c.lactThresholdMs=d.lactThresholdMs,c.mediaPosSec=d.promptDelaySec,c.lactServerRequestMs=d.lactServerRequestMs,c.triggerReason=d.triggerReason);Z!=null&&(c.renderingMediaPosSec=Math.round(Z));f||(f=_.X2());f&&(c.clientScreenNonce=f);q&&(c.clientPlaybackNonce=q);_.JN("youThere",c)};
kAJ={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"};CWH=function(c){this.xhr=c};
_.k7=function(c,f,d){_.cN.call(this,c+", errorCode="+f);this.errorCode=f;this.xhr=d;this.name="PromiseAjaxError"};
_.K(_.k7,_.cN);var r83={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var ihG=new _.hw("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.MR3=function(c){return _.CC({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:c})};
}catch(e){_._DumpException(e)}
try{
var DA,UaD,xav,okh,GZX,ckM,dD8,O9M,l5P,swS,f5X,pVh,MZJ,Z9E,Tih;_.REv=function(){var c=window.location.hash;c.charAt(0)==="#"&&(c=c.charAt(1)==="!"?c.substring(2):c.substring(1));return _.PC(c)};
DA=function(c,f,d){var q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(f(),2);q=Z.yieldResult;d(q,c);_.Fm(Z)})};
UaD=function(){return _.k(function(c){return c.nextAddress==1?c.yield((_.lBJ()!==void 0?_.Je(Error("rf")):_.gDC()).then(function(){return 1},function(f){if(f.message==="Biscotti id is disabled")return 3;
_.u6("Failed fetching bid");return 0}),2):c.return(c.yieldResult)})};
xav=function(){var c=_.jv("NWcyMTluYWx5dC1oYXZlbi1lbWJlZC1wbGF5ZXIjc2hhdQ=="),f=_.jv("aDZoeWlmcmFtZSMxMTJybHAxbA==");return document.querySelector(f+pVh+c)?0:1};
okh=function(){return _.yxk(_.p5)};
GZX=function(){return _.WRe()===0?0:_.Dsn()};
ckM=function(){return _.Rtk(_.gqN([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
dD8=function(){return _.JxY(f5X)};
_.jwM=function(c){_.k(function(f){switch(f.nextAddress){case 1:return f.yield(DA("b.f_",UaD,c),2);case 2:return f.yield(DA("j.s_",_.LRl,c),3);case 3:return f.yield(DA("r.s_",_.$sk,c),4);case 4:return f.yield(DA("e.h_",dD8,c),5);case 5:if(!_.F("ab_det_sc_inj")){f.jumpTo(6);break}return f.yield(DA("s.i_",_.htP,c),6);case 6:if(_.F("ab_deg_unex_thr")){f.jumpTo(8);break}return f.yield(DA("a.o_",_.uWz,c),8);case 8:if(_.F("ks_get_o_pp")){f.jumpTo(10);break}return f.yield(DA("g.o_",_.XAG,c),10);case 10:if(_.F("ks_det_gpbl")){f.jumpTo(12);
break}return f.yield(DA("p.i_",_.VtN,c),12);case 12:return f.yield(DA("f.i_",_.TtP,c),14);case 14:return f.yield(DA("a.b_",_.Eqk,c),15);case 15:return f.yield(DA("p.m_",_.AxM,c),16);case 16:if(!_.F("ab_det_el_h_v2")){f.jumpTo(17);break}return f.yield(DA("n.h_",ckM,c),17);case 17:return f.yield(DA("o.p_",okh,c),19);case 19:return f.yield(DA("e.i_",xav,c),20);case 20:if(_.F("ab_det_apm"))return f.yield(DA("o.a_",GZX,c),0);f.jumpTo(0)}})};
_.q6X=function(c,f){c={videoId:c};f&&(c.playlistId=f);return c};
_.rkM=function(){if(_.dMr()){var c=_.hk("PLAYER_VARS",{});if(_.zV.get(c,"privembed",!1)!="1"&&!_.OhJ(c)){var f=function(){Z9E=!0;"google_ad_status"in window?_.Xr("DCLKSTAT",1):_.Xr("DCLKSTAT",2)};
try{_.Dz(_.OvF,f)}catch(d){}MZJ.push(_.a7.addLowPriorityJob(function(){if(!(Z9E||"google_ad_status"in window)){try{_.RO4(_.OvF.toString(),f)}catch(d){}Z9E=!0;_.Xr("DCLKSTAT",3)}},5E3))}}};
_.CdM=function(c,f,d){d=d===void 0?!1:d;var q=Math.max(c.width,_.h_X);if(_.F("kevlar_watch_feed_big_thumbs")&&c.width>=1550-_.PE()&&c.height>=800)q-=_.Noh;else if(c.width>=_.Vp){var Z=_.wHh+_.y38+_.aR;_.F("kevlar_watch_feed_big_thumbs")&&(Z=_.e_W);q-=Z}else q-=_.wHh;q=Math.min(q,_.WTD);Z=240;d&&(Z=380);f<.5624||(!_.F("kevlar_watch_flexy_disable_small_window_sizing")&&(c.height<630&&c.width>=657||c.height>=630&&c.width>=_.Vp&&c.width<1327)?Z=360:!_.F("kevlar_watch_flexy_disable_large_window_sizing")&&
c.height>=630&&c.width>=1327&&(Z=480));var M=Math.min(q*f,c.height-(56+_.v_J+_.DHq));M=Math.max(M,Z);f<1?q=M/f:c.width>=_.Vp&&(q=_.CdM(c,.5625,d).width);return new _.AT(Math.round(q),Math.round(M))};
_.g5D=function(c){var f=0;c.indexOf("h")!=-1&&(c=c.split("h"),f=c[0]*60*60,c=c[1]);c.indexOf("m")!=-1&&(c=c.split("m"),f=c[0]*60+f,c=c[1]);c.indexOf("s")!=-1?(c=c.split("s"),f=c[0]*1+f):f=c*1+f;return f};
_.k4h=function(){_.rx("service_worker_push_logged_out_prompt_watches")!=-1&&_.Tm("WatchCount").then(function(c){c>=100||_.Of("WatchCount",c+1)})};
O9M=function(c){var f=c.externalVideoId||"";return f?c.isShortsEligible?"https://www.youtube.com/shorts/"+f:"https://www.youtube.com/watch?v="+f:""};
l5P=function(c){var f=[];c.viewCount&&f.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:c.viewCount});c.likeCount&&f.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:c.likeCount});return f};
swS=function(c){var f,d,q={"@context":"https://schema.org","@type":"VideoObject",description:_.xC(c.description),duration:"PT"+(c.lengthSeconds||"0")+"S",embedUrl:c.embed?c.embed.iframeUrl:"",name:_.xC(c.title),thumbnailUrl:((f=c.thumbnail)==null?void 0:(d=f.thumbnails)==null?void 0:d.map(function(H){return H&&H.url||""}))||[],
uploadDate:c.publishDate};_.F("mweb_video_schema_id_killswitch")||(q["@id"]=O9M(c));f=l5P(c);f.length&&(q.interactionStatistic=f);c.category&&(q.genre=c.category);c.ownerChannelName&&(q.author=c.ownerChannelName);c.liveBroadcastDetails&&(q.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:c.liveBroadcastDetails.startTimestamp,endDate:c.liveBroadcastDetails.endTimestamp}]);if(c.learningResource){c=c.learningResource;q["@type"]=["VideoObject","LearningResource"];var Z;if((Z=c.learningResourceType)==
null?0:Z.length)q.learningResourceType=c.learningResourceType[0];var M;if((M=c.educationalAlignment)==null?0:M.length)q.educationalAlignment={"@type":"AlignmentObject",targetName:c.educationalAlignment[0]};var g;if((g=c.educationalLevel)==null?0:g.length){Z=c.educationalLevel[0];var O;if((O=c.educationalLevelCountry)==null?0:O.length)Z+=" ("+c.educationalLevelCountry+")";q.educationalLevel=Z}var l,m;if(((l=c.learningResourceType)==null?0:l.length)&&c.learningResourceType[0]==="Problem walkthrough"&&
((m=c.problemDescriptions)==null?0:m.length))for(q.hasPart=[],O=_.C(c.problemDescriptions),l=O.next();!l.done;l=O.next())Z=l.value,l=Z.problemDescriptionText,m=Z.startOffset,Z=Z.url,l&&m!==void 0&&Z&&q.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:l,text:l,startOffset:m,url:Z})}return q};
_.Bi8=function(c){return _.CC({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:c}})};
f5X=[[["OHRwcmltYXJ5I2d6czFsNjU4aXA=",null,null],[null,["b2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjZGN5NjZlYWl3ZzBleXRkLXR3by1j","c2NvcGUjaHpkYm8zaW1sZTFjc3R5bGUt"],null],["YWQtYWQjY2oyNnFzZmMzdWx1bWFzdGhl",["NGR0dXhnb3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjd2RpZmM="],null],[null,["cTY1MjlhcXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjdXByN2g=","ZS1zY29wZSM1bmt6dHNmamU4enN0eWw="],null],[null,["OHRpa3l0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjeTdqNmJtYmk=","c2NvcGUjYzI5MWNiZzJjNmV0c3R5bGUt"],null],[null,["N3R2MnQyeWhveXRkLWFkLXNsb3QtcmVuZGVyZXIjaG53"],
null]],[["ZXItYWRzI3Uzc3UyenFhcmliOHBsYXk=",null,null]],[["M2xqanRiMXo0YTRhZGVzY3JpcHRpb24taW5uZXIj",null,null],[null,null,"cWt1ZDN5dGQtbWVyY2gtc2hlbGYtcmVuZGVyZXIjcjhqNG1paA=="],["OXFxZG9nYmptYWluI2N2NzA=",["Y3U1ODR5dGQtbWVyY2gtc2hlbGYtcmVuZGVyZXIjOXZ2ZWpnMQ=="],null]]];pVh="#";MZJ=[];Z9E=!1;_.i9X=["engagement-panel-ads"];Tih=new _.fi("updateSentimentBarStateCommand");_.mDD=new _.fi("showSurveyCommand");_.ed=new _.fi("changeMarkersVisibilityCommand");var Akh,Y6h,Kfh,b9h,tZh,NF;_.H9h=function(c,f){this.playerProvider_=c;this.actionSenderElement_=f;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.H9h.prototype.reset=function(){Akh(this);this.isUserPredictedAbsent_=!1};
Akh=function(c,f){!c.youThereData_||c.showWarningJob_||f!==void 0&&f||(_.lT("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.X2(),c.youThereData_,c.clientPlaybackNonce_),_.ab());_.a7.cancelJob(c.showWarningJob_);c.showWarningJob_=0;_.a7.cancelJob(c.showBlockingWarningJob_);c.showBlockingWarningJob_=0;_.a7.cancelJob(c.pausePlaybackJob_);c.pausePlaybackJob_=0;c.youThereData_=null;c.clientPlaybackNonce_=void 0;c.inYouThereFlow_=!1};
_.Ffh=function(c,f){var d,q,Z;_.k(function(M){if(M.nextAddress==1)return c.reset(),M.yield(c.playerProvider_().getPlayerPromise(),2);d=M.yieldResult;c.clientPlaybackNonce_=d.getVideoData().cpn;c.youThereData_=f.configData.youThereData;if(!c.youThereData_)return M.return();if(c.youThereData_.triggerReason&&c.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Tup())return _.lT("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.X2(),c.youThereData_,c.clientPlaybackNonce_),M.return();q=c.youThereData_.promptDelaySec;
Z=d.getCurrentTime();c.showWarningJob_=_.a7.addLowPriorityJob(function(){return _.k(function(g){c.showWarningJob_=0;return g.yield(Y6h(c),0)})},Math.max(q-Z,0)*1E3);
_.Fm(M)})};
Y6h=function(c){var f,d,q,Z,M,g;return _.k(function(O){if(O.nextAddress==1)return O.yield(c.playerProvider_().getPlayerPromise(),2);if(O.nextAddress!=3)return f=O.yieldResult,d=f.getCurrentTime(),O.yield(tZh(c),3);q=O.yieldResult;if(!q||!c.youThereData_)return O.return();if(_.F("check_user_lact_at_prompt_shown_time_on_web")&&(Z=parseInt(c.youThereData_.lactThresholdMs,10),_.ZZ()<Z))return _.lT("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.X2(),c.youThereData_,c.clientPlaybackNonce_),O.return();if(c.youThereData_.playbackPauseDelayMs<=
0)return b9h(c),O.return();!_.F("external_fullscreen")&&(M=_.q9())&&(c.ignoreFullscreenExitUserActivity_=!0,_.a7.addLowPriorityJob(function(){c.ignoreFullscreenExitUserActivity_=!1},2E3),_.Zr(M));
c.youThereData_.showToastWarningPrompt&&(NF(c,c.youThereData_.showWarningActions),c.inYouThereFlow_=!0,_.lT("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.X2(),c.youThereData_,c.clientPlaybackNonce_,d),_.lT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.X2(),c.youThereData_,c.clientPlaybackNonce_,d));g=0;c.youThereData_.blockingPromptDelayMs&&(g=c.youThereData_.blockingPromptDelayMs);c.showBlockingWarningJob_=_.a7.addLowPriorityJob(function(){return _.k(function(l){c.showBlockingWarningJob_=0;return l.yield(Kfh(c),
0)})},g);
_.Fm(O)})};
Kfh=function(c){var f,d,q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield(tZh(c),2);f=Z.yieldResult;if(!c.youThereData_)return Z.return();f&&(c.youThereData_.showBlockingWarningAction&&(_.lT("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.X2(),c.youThereData_,c.clientPlaybackNonce_),(d=_.b(c.youThereData_.showBlockingWarningAction,_.BO))?NF(c,d.commands):NF(c,[c.youThereData_.showBlockingWarningAction]),c.inYouThereFlow_=!0),q=c.youThereData_.playbackPauseDelayMs,c.pausePlaybackJob_=
_.a7.addLowPriorityJob(function(){return _.k(function(M){c.pausePlaybackJob_=0;return M.yield(b9h(c),0)})},q));
_.Fm(Z)})};
b9h=function(c){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(tZh(c),2);f=d.yieldResult;if(!c.youThereData_)return d.return();f&&(_.lT("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.X2(),c.youThereData_,c.clientPlaybackNonce_),NF(c,c.youThereData_.showPausedActions),c.inYouThereFlow_=!0);_.Fm(d)})};
_.H9h.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var c=_.b(this.youThereData_.userActiveDuringFlowAction,_.BO);c?NF(this,c.commands):NF(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.lT("YOU_THERE_EVENT_TYPE_LACT_RESET",_.X2(),this.youThereData_,this.clientPlaybackNonce_),_.ab());Akh(this,!0)}_.E5P(this,!1)};
_.n5M=function(c){_.lT("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.X2(),c.youThereData_,c.clientPlaybackNonce_)};
tZh=function(c){var f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(c.playerProvider_().getPlayerPromise(),2);f=q.yieldResult;d=f.getPlayerState();return q.return(d==-1||d==1||d==3)})};
_.E5P=function(c,f){var d;_.k(function(q){if(q.nextAddress==1){if(c.isUserPredictedAbsent_==f)return q.jumpTo(0);c.isUserPredictedAbsent_=f;return q.yield(c.playerProvider_().getPlayerPromise(),3)}d=q.yieldResult;d.setUserEngagement(f);f&&_.lT("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.X2(),c.youThereData_,c.clientPlaybackNonce_);_.Fm(q)})};
NF=function(c,f){if(_.F("handle_service_request_actions")||_.F("kevlar_youthere_service_endpoint_actions_killswitch"))_.ll(c.actionSenderElement_,f,c.actionSenderElement_);else{f=_.C(f);for(var d=f.next();!d.done;d=f.next())d=d.value,d.commandMetadata&&d.commandMetadata.webCommandMetadata&&d.commandMetadata.webCommandMetadata.sendPost?_.OX(c.actionSenderElement_,[d]):_.ll(c.actionSenderElement_,[d],c.actionSenderElement_)}};var $DJ;var QwS;var I4=function(){var c=_.z.apply(this,arguments)||this;c.systemIcons=_.F("kevlar_system_icons");c.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return c};
_.K(I4,_.z);I4.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var c=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(c=this.data.percentIfLiked||0,this.activated=!0):(c=this.data.percentIfIndifferent||0,this.activated=!1);_.r1(this.hostElement).querySelector("#like-bar").style.width=c+"%"}};
I4.prototype.handleUpdateSentimentBarStateCommand=function(c){this.data&&this.set("data.likeStatus",_.b(c,Tih).likeStatus)};
I4.prototype.observeLikeStatus=I4.prototype.observeLikeStatus;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],I4.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],I4.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],I4.prototype,"activated",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],I4.prototype,"systemIcons",void 0);_.y([_.m5("data.likeStatus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],I4.prototype,"observeLikeStatus",null);_.y([_.v({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],I4);
_.h(I4,"ytd-sentiment-bar-renderer",function(){if(QwS!==void 0)return QwS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return QwS=c},{mode:1});var S6P;var Pl=function(){var c=_.z.apply(this,arguments)||this;c.small=!0;return c};
_.K(Pl,_.z);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Pl.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Pl.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Pl.prototype,"small",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Pl);
_.h(Pl,"ytd-video-view-count-renderer",function(){if(S6P!==void 0)return S6P;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return S6P=c},{mode:_.lP("kevlar_poly_si_batch_j080")?1:2});var R4=function(){var c=_.z.apply(this,arguments)||this;c.infoFormattedStrings=[];c.wrapVideoActions=_.F("kevar_watch_wrap_video_actions");c.hideSentimentBar=_.F("kevlar_watch_hide_sentiment_bar");c.actionMap={};return c};
_.K(R4,_.z);_.r=R4.prototype;_.r.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"}}}};
_.r.dataChanged=function(){_.F("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.r.computeInfoFormattedStrings=function(c){if(!c)return[];var f=[];c.dateText&&f.push(c.dateText);c.stationName&&f.push(c.stationName);c.rating&&f.push(c.rating);c.startEndTimeTemplate&&c.startTimeUtcMillis&&c.endTimeUtcMillis&&f.push(_.pC(_.CeP(_.xC(c.startEndTimeTemplate),Number(c.startTimeUtcMillis),Number(c.endTimeUtcMillis))));c.upNextProgramText&&f.push(c.upNextProgramText);return f};
_.r.scheduleInitialUpdatedMetadataRequest=function(){var c,f=(c=this.data)==null?void 0:c.updatedMetadataEndpoint;if(f){var d;c=Number((d=_.b(f,_.Cj_))==null?void 0:d.initialDelayMs);d=isNaN(c)?250:c;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),d)}};
_.r.setSentimentBarWidth=function(){var c=this;_.ol(this,function(){var f=_.r1(c.hostElement).querySelector("ytd-menu-renderer");if(f){f=f.topLevelButtons;for(var d=0,q=0;q<f.length;q++){var Z=f[q],M=c.get("toggleButtonSupportedData.toggleButtonIdData.id",Z.data);if(M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||M==="TOGGLE_BUTTON_ID_TYPE_LIKE")d+=Z.clientWidth+8;else break}d&&(c.sentiment.style.width=d-8+" px")}})};
_.r.fetchUpdatedMetadata=function(c){var f;c&&(f={continuation:c});var d;(c=(d=this.data)==null?void 0:d.updatedMetadataEndpoint)&&_.ql().resolve(_.ZM).resolveCommand(c,{form:Object.assign({},f,{element:this.hostElement})})};
_.r.onYtServiceRequestSent=function(c,f){f.endpoint&&_.b(f.endpoint,_.e4)&&(this.hasUpdateSentimentBarStateCommands()&&!_.F("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.b(f.endpoint,_.e4).status),this.setSentimentBarWidth())};
_.r.hasUpdateSentimentBarStateCommands=function(){var c,f,d,q,Z=(q=(c=this.data)==null?void 0:(f=c.videoActions)==null?void 0:(d=f.menuRenderer)==null?void 0:d.topLevelButtons)!=null?q:[];c=_.C(Z);for(f=c.next();!f.done;f=c.next()){f=f.value;Z=q=d=void 0;var M=(d=f.toggleButtonRenderer)==null?void 0:(q=d.toggleButtonSupportedData)==null?void 0:(Z=q.toggleButtonIdData)==null?void 0:Z.id;if(M==="TOGGLE_BUTTON_ID_TYPE_LIKE"||M==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){q=d=void 0;f=(q=_.b((d=f.toggleButtonRenderer)==
null?void 0:d.defaultServiceEndpoint,_.BO))==null?void 0:q.commands;if(!f)break;f=_.C(f);for(d=f.next();!d.done;d=f.next())if(_.b(d.value,Tih))return!0}}return!1};
_.r.onYtServiceRequestCompleted=function(c,f){var d;(c=(d=f.data)==null?void 0:d.loggingDirectives)&&_.XIN(_.bP(),c);this.get("continuation.timedContinuationData",f.data)&&this.data&&this.data.updatedMetadataEndpoint&&(f=f.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,f.continuation),f.timeoutMs))};
_.r.computeHasDateText=function(c){return!!c&&!!c.dateText};
_.ci.Object.defineProperties(R4.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q;return!((q=(c=this.data)==null?void 0:(f=c.videoActions)==null?void 0:(d=f.menuRenderer)==null?void 0:d.flexibleItems)==null||!q.length)}}});
R4.prototype.onYtServiceRequestCompleted=R4.prototype.onYtServiceRequestCompleted;R4.prototype.onYtServiceRequestSent=R4.prototype.onYtServiceRequestSent;R4.prototype.dataChanged=R4.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],R4.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.jI.YtTaskEmitterBehavior),_.D("design:type",Object)],R4.prototype,"ytTaskEmitterBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],R4.prototype,"data",void 0);_.y([_.L({computed:"computeInfoFormattedStrings(data)"}),_.D("design:type",Array)],R4.prototype,"infoFormattedStrings",void 0);
_.y([_.L({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],R4.prototype,"hasDateText",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],R4.prototype,"wrapVideoActions",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],R4.prototype,"hideSentimentBar",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],R4.prototype,"flexMenuEnabled",null);
_.y([_.AY("#sentiment"),_.D("design:type",Object)],R4.prototype,"sentiment",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],R4.prototype,"dataChanged",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],R4.prototype,"onYtServiceRequestSent",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],R4.prototype,"onYtServiceRequestCompleted",null);
_.h(R4,"ytd-video-primary-info-renderer",function(){if($DJ===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);$DJ=c}c=$DJ;return c},{mode:1});var LfX;var Uh=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return c};
_.K(Uh,_.z);_.r=Uh.prototype;_.r.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"}}}};
_.r.dataChanged=function(){var c;this.descriptionToggled=!((c=this.data)==null||!c.defaultExpanded);var f;this.collapsed=this.descriptionAlwaysCollapsed||!((f=this.data)==null?0:f.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.m_(110509);this.showLessClientVe=_.m_(110510);c=_.X2();f=_.V5();c&&f&&_.eO(c,f,[this.showMoreClientVe,this.showLessClientVe])};
_.r.onYtExpanderMoreTapped=function(){var c,f=(c=this.data)==null?void 0:c.showMoreCommand;f&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(f);(c=_.X2())&&this.showMoreClientVe&&_.Rc(c,this.showMoreClientVe)};
_.r.onYtExpanderLessTapped=function(){var c=_.X2();c&&this.showLessClientVe&&_.Rc(c,this.showLessClientVe);var f;(c=(f=this.data)==null?void 0:f.showLessCommand)&&this.componentBehavior.resolveCommand(c)};
_.r.handleUpdateDateTextAction=function(c){this.data&&this.data.dateText&&this.set("data.dateText",_.b(c,_.z_q).dateText)};
_.r.handleUpdateDescriptionAction=function(c){if(c=_.b(c,_.MIr))c.isEmpty||!c.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.he(c.description)):this.set("data.description",c.description)};
_.r.onYtChangeEngagementPanelVisibilityAction=function(c){if(_.F("web_structured_description_show_more")||_.F("web_engagement_panel_open_description")){var f,d=(f=_.b(c,_.w2_))==null?void 0:f.targetId,q;c=((q=_.b(c,_.w2_))==null?void 0:q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";d==="engagement-panel-structured-description"&&c&&(this.descriptionToggled=!0)}};
_.r.updateCollapsedFromBinding=function(c){this.collapsed=c.detail.value};
_.r.updateDescriptionToggledFromBinding=function(c){this.descriptionToggled=c.detail.value};
_.r.updateCanCollapseFromBinding=function(c){this.canCollapse=c.detail.value};
_.ci.Object.defineProperties(Uh.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.data)==null?void 0:(f=c.metadataRowContainer)==null?void 0:f.metadataRowContainerRenderer;return!!d&&!!d.rows&&d.rows.length>d.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.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}}});
Uh.prototype.onYtExpanderLessTapped=Uh.prototype.onYtExpanderLessTapped;Uh.prototype.onYtExpanderMoreTapped=Uh.prototype.onYtExpanderMoreTapped;Uh.prototype.dataChanged=Uh.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Uh.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Uh.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Uh.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],Uh.prototype,"collapsed",void 0);_.y([_.L(),_.D("design:type",Boolean)],Uh.prototype,"descriptionToggled",void 0);
_.y([_.L(),_.D("design:type",Boolean)],Uh.prototype,"canCollapse",void 0);_.y([_.L(),_.D("design:type",Object)],Uh.prototype,"subscribeButtonData",void 0);_.y([_.L(),_.D("design:type",Number)],Uh.prototype,"descriptionCollapsedHeight",void 0);_.y([_.L(),_.D("design:type",Object)],Uh.prototype,"structuredDescriptionContentRenderer",void 0);_.y([_.L({value:function(){return _.F("web_watch_description_always_collapsed")}}),
_.D("design:type",Boolean)],Uh.prototype,"descriptionAlwaysCollapsed",void 0);_.y([_.AY("#description"),_.D("design:type",HTMLDivElement)],Uh.prototype,"description",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Uh.prototype,"dataChanged",null);_.y([_.Ta("yt-expander-more-tapped"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Uh.prototype,"onYtExpanderMoreTapped",null);
_.y([_.Ta("yt-expander-less-tapped"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Uh.prototype,"onYtExpanderLessTapped",null);_.y([_.S("data.metadataRowContainer"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Uh.prototype,"metadataCollapsible",null);_.y([_.S("data","structuredDescriptionContentRenderer"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Uh.prototype,"hasInlineStructuredDescription",null);
_.y([_.S("data.attributedDescription"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Uh.prototype,"hasAttributedDescription",null);_.y([_.S("hasInlineStructuredDescription","collapsed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Uh.prototype,"loadStructuredDescription",null);_.y([_.S("data","structuredDescriptionContentRenderer","collapsed"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Uh.prototype,"showInlineStructuredDescription",null);
_.y([_.S("data","hasInlineStructuredDescription","metadataCollapsible"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Uh.prototype,"descriptionAlwaysCollapsible",null);
_.h(Uh,"ytd-video-secondary-info-renderer",function(){if(LfX===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);LfX=c}c=LfX;return c},{mode:2});var zrD;var pv=function(){return _.z.apply(this,arguments)||this};
_.K(pv,_.z);pv.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"}}}};
pv.prototype.activate=function(c){c.appendTo(this.player);c.getPlayerPromise().then(function(f){f.setMinimized(!0)});
this.active=!0};
pv.prototype.deactivate=function(){var c=this.player.firstElementChild;c.getPlayerPromise().then(function(f){f.setMinimized(!1)});
this.active=!1;return c};
pv.prototype.onScrollUpTap=function(){var c=_.ql().resolve(_.MY).getCurrentPage();c&&c.setScrollTop(0)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],pv.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pv.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],pv.prototype,"active",void 0);
_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.D("design:type",Boolean)],pv.prototype,"darkLaunch",void 0);_.y([_.AY("#player"),_.D("design:type",HTMLDivElement)],pv.prototype,"player",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],pv);
_.h(pv,"ytd-miniplayer-bar-renderer",function(){if(zrD!==void 0)return zrD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return zrD=c},{mode:1});_.g_(_.dN(function(c){var f=_.xz("script");_.$k(function(){var d;if(d=JSON)d=swS(c.data()),d=_.pq(JSON.stringify(d).replace(/</g,"\\u003C"));var q=c.data(),Z=_.xC(q.title).trim().length===0,M=!q.publishDate||q.publishDate.trim().length===0,g,O,l,m,H=!((g=q.thumbnail)==null?0:(O=g.thumbnails)==null?0:O.length)||!((l=q.thumbnail)==null?0:l.thumbnails[0].url)||((m=q.thumbnail)==null?void 0:m.thumbnails[0].url.trim().length)===0;f.value&&d&&!(Z||M||H)&&_.xh(f.value,d)},"I9AhLd");
return _.B("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.B("script",{el:f,type:"application/ld+json"}))},"jk"),"player-microformat-renderer",{props:{data:_.Cs}});
}catch(e){_._DumpException(e)}
try{
var QuM;_.$a8=function(c){return c.watch.watchWindowSize};
QuM=function(c,f,d,q){if(c.isLockupToWatchTransitionEnabled){if(f){var Z={};c.viewTransitionCoordinator.registerElement(f,(Z["lockup-to-watch"]="player-lockup-to-watch",Z["watch-next-appears"]="player-watch-next-loaded",Z))}d&&(f={},c.viewTransitionCoordinator.registerElement(d,(f["lockup-to-watch"]="below-lockup-to-watch",f["watch-next-appears"]="below-watch-next-loaded",f)));q&&(d={},c.viewTransitionCoordinator.registerElement(q,(d["watch-next-appears"]="secondary-watch-next-loaded",d)))}};
_.ST8=function(c){return _.CC({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:c}})};var zE8=function(c){_.ES.call(this);this.JSC$22880_watchApi=c;LKP(this)};
_.K(zE8,_.ES);var LKP=function(c){_.k(function(f){if(f.nextAddress==1)return f.yield(JoJ(c),2);aaX(c);_.Fm(f)})},JoJ=function(c){var f,d,q,Z;
return _.k(function(M){if(M.nextAddress==1)return M.yield(c.JSC$22880_watchApi.playerApi,2);f=M.yieldResult;d=c.JSC$22880_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){aaX(c)});
q=function(g){c.onCueRangeEnter(g)};
f.addEventListener("onCueRangeEnter",q);Z=function(g){c.onCueRangeExit(g)};
f.addEventListener("onCueRangeExit",Z);c.addOnDisposeCallback(function(){c.JSC$22880_watchApi.unsubscribeByKey(d);f.removeEventListener("onCueRangeEnter",q);f.removeEventListener("onCueRangeExit",Z)});
_.Fm(M)})},VhP=function(c){var f,d,q,Z,M,g,O,l,m;
return(M=(f=c.contents)==null?void 0:(d=f.twoColumnWatchNextResults)==null?void 0:(q=d.results)==null?void 0:(Z=q.results)==null?void 0:Z.contents)==null?void 0:(g=M.find(function(H){var A,Y,t;return(A=H.itemSectionRenderer)==null?void 0:(Y=A.contents)==null?void 0:(t=Y[0])==null?void 0:t.shoppingTimelyShelfViewModel}))==null?void 0:(O=g.itemSectionRenderer)==null?void 0:(l=O.contents)==null?void 0:(m=l[0])==null?void 0:m.shoppingTimelyShelfViewModel},aaX=function(c){var f;
_.k(function(d){if(d.nextAddress==1)return(f=c.JSC$22880_watchApi.getWatchNextResponse())?d.yield(XVJ(c),2):d.return();c.shoppingTimelyShelfViewModel=VhP(f);uCE(c);vkW(c);_.Fm(d)})},uCE=function(c){var f,d=(f=c.shoppingTimelyShelfViewModel)==null?void 0:f.offerIdToVariants;
d&&(f=d.filter(function(q){return q.key&&q.value}).map(function(q){return[q.key,
q.value]}),c.variantsMap=new Map(f))},vkW=function(c){var f,d,q,Z,M,g;
_.k(function(O){if(O.nextAddress==1)return(d=(f=c.shoppingTimelyShelfViewModel)==null?void 0:f.cueRanges)?O.yield(c.JSC$22880_watchApi.playerApi,2):O.return();q=O.yieldResult;c.cueRanges=d;Z=_.C(d);for(M=Z.next();!M.done;M=Z.next())g=M.value,g.startTime!==void 0&&g.endTime!==void 0&&g.id!==void 0&&q.addCueRange("shopping_timely_shelf"+g.id,hEE(g.startTime),hEE(g.endTime));_.Fm(O)})},hEE=function(c){return Number(c.seconds||0)+(c.nanos||0)/1E9};
zE8.prototype.onCueRangeEnter=function(c){if(c.startsWith("shopping_timely_shelf")){c=c.substring(21);var f,d,q=(f=this.variantsMap)==null?void 0:(d=f.get(c))==null?void 0:d.shelf;q&&this.JSC$22880_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",q)}};
zE8.prototype.onCueRangeExit=function(c){c.startsWith("shopping_timely_shelf")&&this.JSC$22880_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var XVJ=function(c){var f,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return g.yield(c.JSC$22880_watchApi.playerApi,2);f=g.yieldResult;if(c.cueRanges)for(d=_.C(c.cueRanges),q=d.next();!q.done;q=d.next())Z=q.value,Z.id&&(M="shopping_timely_shelf"+Z.id,f.removeCueRange(M));c.JSC$22880_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});c.shoppingTimelyShelfViewModel=void 0;c.cueRanges=void 0;c.variantsMap=void 0;_.Fm(g)})};var eES=function(c){_.ES.call(this);var f=this;this.JSC$22887_watchApi=c;c=_.bj(_.Gh(),_.syz,function(){wVU(f)});
this.addOnDisposeCallback(c);c=_.bj(_.Gh(),_.$a8,function(){wVU(f)});
this.addOnDisposeCallback(c);yoq(this);WKW(this);Da8()};
_.K(eES,_.ES);var yoq=function(c){var f=function(q){_.Gh().dispatch(_.xNq(q.matches))},d=window.matchMedia("(max-width: "+(999+_.PE())+"px)");
d.addListener(f);c.addOnDisposeCallback(function(){d.removeListener(f)});
f(d)},WKW=function(c){c.JSC$22887_watchApi.registerActionHandler("yt-window-resized",function(){Da8()});
c.addOnDisposeCallback(function(){c.JSC$22887_watchApi.unregisterActionHandler("yt-window-resized")})},Da8=function(){var c=_.KX();
_.Gh().dispatch(_.CC({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:c.width,height:c.height}}}))},wVU=function(c){var f;
_.k(function(d){if(d.nextAddress==1)return d.yield(c.JSC$22887_watchApi.playerApi,2);f=d.yieldResult;f.setSize(NaN,NaN);_.Fm(d)})};var N$W=function(c){_.ES.call(this);var f=_.ql().resolve(_.F0);QuM(f,c.getElement("PLAYER_CONTAINER"),c.getElement("BELOW_THE_PLAYER"),c.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var d=c.getElement("PLAYER_CONTAINER"),q=c.getElement("BELOW_THE_PLAYER"),Z=c.getElement("SECONDARY");f.isLockupToWatchTransitionEnabled&&(d&&_.UR(f.viewTransitionCoordinator,d),q&&_.UR(f.viewTransitionCoordinator,q),Z&&_.UR(f.viewTransitionCoordinator,Z))})};
_.K(N$W,_.ES);_.wM=function(c){_.B7.call(this);var f=this;this.rootElement=c;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return f.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(d){f.initOrDisposeActiveModules(d)}));
this.onAttached()};
_.K(_.wM,_.B7);_.r=_.wM.prototype;_.r.getRoot=function(){return this.rootElement};
_.r.getElement=function(c){return this.rootElement.getElement(c)};
_.r.setPlayerResponse=function(c){this.playerResponse=c;this.publish("PLAYER_RESPONSE_UPDATED",c)};
_.r.getPlayerResponse=function(){return this.playerResponse};
_.r.setWatchNextResponse=function(c){this.watchNextResponse===c?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=c,this.publish("WATCH_NEXT_RESPONSE_UPDATED",c))};
_.r.getWatchNextResponse=function(){return this.watchNextResponse};
_.r.registerActionHandler=function(c,f){var d=this;if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var q={};_.Rb(_.Pw.getInstance(),(q[c]=f,q),this.getRoot())}else this.actionHandlers.has(c)||(this.actionHandlers.set(c,[]),q={},_.Rb(_.Pw.getInstance(),(q[c]=function(){var Z=_.hv.apply(0,arguments);return(d.actionHandlers.get(c)||[]).map(function(M){return M.apply(null,_.LT(Z))})},q),this.getRoot())),this.actionHandlers.get(c).push(f)};
_.r.unregisterActionHandler=function(c){if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.Um(_.Pw.getInstance(),(f[c]=!0,f),this.getRoot())}else(f=this.actionHandlers.get(c))?(f.pop(),f.length===0&&(f={},_.Um(_.Pw.getInstance(),(f[c]=!0,f),this.getRoot()),this.actionHandlers.delete(c))):_.u6(new _.KD("Attempted to unregister an action handler which is not registered.",c))};
_.r.addPageDisposeJob=function(c){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.tMk(this.rootElement.pageDisposeJobs,c)};
_.r.removePageDisposeJob=function(c){this.rootElement.pageDisposeJobs&&_.wz(this.rootElement.pageDisposeJobs,c)};
_.r.dispatchEvent=function(c,f){_.CZ(this.rootElement,c,f)};
_.r.provideRenderingData=function(c,f){this.rootElement.provideRenderingData(c,f)};
_.r.scrollWatchTo=function(c,f){var d;(d=this.watchScrollManager)==null||d.scrollWatchTo(c,f)};
_.r.focusOnPlayer=function(){var c=this.getElement("PLAYER");_.ol(c,function(){if(c&&c.firstElementChild){var f=c.querySelector(".html5-video-player");f&&(_.qe(_.ql().resolve(_.uS)),f.focus())}else _.u6(Error("Ao"))})};
_.r.updateCinematicFullscreenConfig=function(){if(_.F("web_cinematic_manager_redux_killswitch")){var c=!!this.rootElement.theater,f=!!this.rootElement.fullscreen,d;(d=this.watchCinematicManager)==null||_.JI(d,f,c)}};
_.r.subscribeToActiveChanged=function(c,f){f=f===void 0?!0:f;var d=_.bj(_.Gh(),_.jkD,function(q){c(q)});
f&&c(_.jkD(_.Gh().getState()));return d};
_.r.isActive=function(){return _.jkD(_.Gh().getState())};
_.r.onAttached=function(){var c=_.F("external_fullscreen");_.F("use_unified_flag_accessor")&&(c=_.ql().resolve(_.rvi).retriever.getFlag(_.qTT));(c||_.wi("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Iah=function(c){return c.getRoot().is==="ytd-watch-flexy"||c.getRoot().is==="ytd-watch-grid"},yY=function(c){return c.getRoot().is==="ytd-watch-fixie"};
_.wM.prototype.initPersistentModules=function(){if(yY(this)||Iah(this)&&_.F("kevlar_watch_flexy_theater_manager")){var c=new _.dxS(this);_.ln(this,c)}c=new _.y5q(this);_.ln(this,c);c=new _.QY(this);_.ln(this,c);c=new _.u$(this);_.ln(this,c);c=new _.iLX(this);_.ln(this,c);c=new _.Lv(this);_.ln(this,c);if(yY(this)||Iah(this)&&_.F("kevlar_watch_flexy_playlist_manager"))c=new _.HLW(this),_.ln(this,c);_.F("web_thumbnail_to_watch_transition")&&(c=new N$W(this),_.ln(this,c))};
_.wM.prototype.initOrDisposeActiveModules=function(c){c?(this.watchScrollManager=new _.hI(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.fav(this)),_.F("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new zE8(this)),this.activeModules.push(new _.M5S(this)),yY(this)&&this.activeModules.push(new eES(this)),this.activeModules.push(new _.KKq(this)),this.activeModules.push(new _.vl(this)),(yY(this)||_.F("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.kVD(this)),this.activeModules.push(new _.ro8(this)),(yY(this)||_.F("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.nk8(this)),(yY(this)||_.F("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.H1h(this)),_.F("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.b18(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.F("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.OLq(this)),
_.F("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.hW8(this)),c=_.F("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.F("kevlar_watch_flexy_comments_manager")&&!c&&this.activeModules.push(new _.aUh(this)),_.F("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Sd(this)),this.activeModules.push(new _.kDS(this)),this.activeModules.push(new _.juE(this)),_.F("web_enable_timely_actions")&&this.activeModules.push(new _.BbD(this)),
_.F("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.u18(this)),_.F("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.$zh(this)),_.F("web_fullscreen_components")&&this.activeModules.push(new _.BkW(this)),_.F("web_player_rtr_ctrls")&&this.activeModules.push(new _.hRM(this))):(_.cu(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.wM.prototype.disposeInternal=function(){_.B7.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ci.Object.defineProperties(_.wM.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var IIC,tg,PA3,RkD,p4H,xr3,Urr,oJF;IIC=function(){var c=_.bl();c.info||(c.info={});return c.info};
tg=function(c){return Math.round(_.$t()+c)};
PA3=function(){var c;if(_.F("csi_use_performance_navigation_timing")){var f,d,q,Z=_.nZ==null?void 0:(c=_.nZ.getEntriesByType)==null?void 0:(f=c.call(_.nZ,"navigation"))==null?void 0:(d=f[0])==null?void 0:(q=d.toJSON)==null?void 0:q.call(d);Z?(Z.requestStart=tg(Z.requestStart),Z.responseEnd=tg(Z.responseEnd),Z.redirectStart=tg(Z.redirectStart),Z.redirectEnd=tg(Z.redirectEnd),Z.domainLookupEnd=tg(Z.domainLookupEnd),Z.connectStart=tg(Z.connectStart),Z.connectEnd=tg(Z.connectEnd),Z.responseStart=tg(Z.responseStart),
Z.secureConnectionStart=tg(Z.secureConnectionStart),Z.domainLookupStart=tg(Z.domainLookupStart),Z.isPerformanceNavigationTiming=!0,c=Z):c=_.nZ.timing}else c=_.F("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.nZ.timing)):_.nZ.timing;return c};
RkD=function(){if(_.nZ.getEntriesByType){var c=_.nZ.getEntriesByType("paint");if(c=_.ak(c,function(d){return d.name==="first-paint"}))return tg(c.startTime)}var f;
_.F("csi_use_performance_navigation_timing")?f=_.nZ.getEntriesByType("first-paint")[0].startTime:f=_.nZ.timing.msFirstPaint;return f?Math.max(0,f):0};
p4H=function(){var c=window.location.protocol,f=_.nZ.getEntriesByType("resource");f=_.gn(f,function(d){return d.name.indexOf(c+"//fonts.gstatic.com/s/")===0});
(f=Urr(f,function(d,q){return q.duration>d.duration?q:d}))&&f.startTime>0&&f.responseEnd>0&&(_.Q_("wffs",tg(f.startTime)),_.Q_("wffe",tg(f.responseEnd)))};
xr3=function(c,f){c=document.querySelector(c);if(!c)return!1;var d="",q=c.nodeName;q==="SCRIPT"?(d=c.src,d||(d=c.getAttribute("data-timing-href"))&&(d=window.location.protocol+d)):q==="LINK"&&(d=c.href);_.Rh(document)&&c.setAttribute("nonce",_.Rh(document));return d?(c=_.nZ.getEntriesByName(d))&&c[0]&&(c=c[0],d=_.$t(),_.Q_("rsf_"+f,d+Math.round(c.fetchStart)),_.Q_("rse_"+f,d+Math.round(c.responseEnd)),c.transferSize!==void 0&&c.transferSize===0)?!0:!1:!1};
_.bA=function(c,f){_.WC(function(){_.EX("").info.actionType=c;f&&_.Xr("TIMING_AFT_KEYS",f);_.Xr("TIMING_ACTION",c);var d=_.R9r(_.hk("TIMING_INFO",{}));Object.keys(d).length>0&&_.SO(d);d={isNavigation:!0,actionType:_.VlM(_.hk("TIMING_ACTION"))};var q=_.hk("PREVIOUS_ACTION");q&&(d.previousAction=_.VlM(q));if(q=_.hk("CLIENT_PROTOCOL"))d.httpProtocol=q;if(q=_.hk("CLIENT_TRANSPORT"))d.transportProtocol=q;(q=_.X2())&&q!=="UNDEFINED_CSN"&&(d.clientScreenNonce=q);q=_.P0r();if(q===1||q===-1)d.isVisible=!0;
q=_.nXk().loadType==="cold";var Z=IIC();q||(q=Z.yt_lt==="cold");if(q){d.loadType="cold";q=IIC();Z=PA3();var M=_.$t(),g=_.hk("CSI_START_TIMESTAMP_MILLIS",0);g>0&&!_.F("embeds_web_enable_csi_start_override_killswitch")&&(M=g);M&&(_.Q_("srt",Z.responseStart),q.prerender!==1&&_.wd4(M));q=RkD();q>0&&_.Q_("fpt",q);q=PA3();q.isPerformanceNavigationTiming&&_.SO({performanceNavigationTiming:!0},void 0);_.Q_("nreqs",q.requestStart,void 0);_.Q_("nress",q.responseStart,void 0);_.Q_("nrese",q.responseEnd,void 0);
q.redirectEnd-q.redirectStart>0&&(_.Q_("nrs",q.redirectStart,void 0),_.Q_("nre",q.redirectEnd,void 0));q.domainLookupEnd-q.domainLookupStart>0&&(_.Q_("ndnss",q.domainLookupStart,void 0),_.Q_("ndnse",q.domainLookupEnd,void 0));q.connectEnd-q.connectStart>0&&(_.Q_("ntcps",q.connectStart,void 0),_.Q_("ntcpe",q.connectEnd,void 0));q.secureConnectionStart>=_.$t()&&q.connectEnd-q.secureConnectionStart>0&&(_.Q_("nstcps",q.secureConnectionStart,void 0),_.Q_("ntcpe",q.connectEnd,void 0));_.nZ&&"getEntriesByType"in
_.nZ&&p4H();q=[];if(document.querySelector&&_.nZ&&_.nZ.getEntriesByName)for(var O in oJF)oJF.hasOwnProperty(O)&&(Z=oJF[O],xr3(O,Z)&&q.push(Z));if(q.length>0)for(d.resourceInfo=[],O=_.C(q),q=O.next();!q.done;q=O.next())d.resourceInfo.push({resourceCache:q.value})}_.SO(d);d=_.KZ();d.preLoggedGelInfos||(d.preLoggedGelInfos=[]);O=d.preLoggedGelInfos;d=_.QYG();q=void 0;for(Z=0;Z<O.length;Z++)if(M=O[Z],M.loadType){q=M.loadType;break}if(_.nXk().loadType==="cold"&&(d.loadType==="cold"||q==="cold")){q=_.$MY();
Z=_.KZ();Z=Z.gelTicks?Z.gelTicks:Z.gelTicks={};for(var l in q)if(!(l in Z))if(typeof q[l]==="number")_.Q_(l,_.LZ(l));else if(_.F("log_repeated_ytcsi_ticks"))for(M=_.C(q[l]),g=M.next();!g.done;g=M.next())g=g.value,_.Q_(l.slice(1),g);l={};q=!1;O=_.C(O);for(Z=O.next();!Z.done;Z=O.next())q=Z.value,_.w2(d,q),_.w2(l,q),q=!0;q&&_.SO(l)}_.oXk(!0);l=_.hk("TIMING_ACTION");_.D5("ytglobal.timingready_")&&l&&_.Csk()&&_.xMM()&&_.Nh4()})()};
Urr=function(c,f){return Array.prototype.reduce.call(c,f,{duration:0})};
oJF={'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 GTc={};GTc.YtVisibilityRootBehavior=[_.ZAy.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.GV(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.hk("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var c=_.hk("INNERTUBE_CLIENT_NAME")!=="WEB";_.F("kevlar_use_vimio_behavior")&&c&&_.qwj()}}];_.Kw={};_.Kw.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(c){c.detail.contextProvider=this;c.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
GTc.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.c9();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(c){var f=this;this.pageCount+=1;_.F("kevlar_use_vimio_behavior")&&(_.hk("INNERTUBE_CLIENT_NAME")==="WEB"?_.a7.addJob(function(){f.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(c)},
loadPage_:function(c){this.data=c},
ytPageBehaviorActiveObserver_:function(c){var f=this;_.F("kevlar_use_vimio_behavior")&&(c?_.hk("INNERTUBE_CLIENT_NAME")==="WEB"?_.a7.addJob(function(){f.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(c){if(!this.setScrollTopJobId_){var f=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){f.setScrollTopJobId_=0;var d=_.ql().resolve(_.dx(_.uS));d&&_.qe(d);this.getPageScrollingElement().scrollTop=c}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Sj(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var NsC;var FV=function(){var c=_.z.apply(this,arguments)||this;c.playerListenerConfig=null;c.actionMap={"yt-show-watch-page-survey":"openSurvey"};return c};
_.K(FV,_.z);_.r=FV.prototype;_.r.dataChanged=function(){var c=this,f=_.Ca();f&&f.getPlayerPromise().then(function(q){c.maybeRemovePlayerListeners(q)});
var d=this.data&&this.data.survey;d&&((d=(d=d.singleOptionSurveyRenderer||d.checkboxSurveyRenderer||d.multiStageSurveyRenderer)&&d.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(f,d):this.openSurvey())};
_.r.triggerWatchPageSurvey=function(c,f){var d=this,q,Z,M,g,O,l,m,H,A;return _.k(function(Y){if(Y.nextAddress==1)return c?Y.yield(c.getPlayerPromise(),2):Y.return();d.player=Y.yieldResult;if(!d.player)return Y.return();q={};Z=_.C(f);for(M=Z.next();!M.done;M=Z.next())g=M.value,O=_.C(d.createEventListenerPair(g)),l=O.next().value,m=O.next().value,H=l,A=m,H&&A&&(q[H]=A,d.ytPlayerListenerBehavior.listenToPlayerEvent(d.player,H,A));d.playerListenerConfig=q;_.Fm(Y)})};
_.r.createEventListenerPair=function(c){var f=c.playbackEventTrigger;return f?this.handlePlaybackTrigger(f):(c=c.watchTimeTrigger)?this.handleWatchTimeTrigger(c):[void 0,void 0]};
_.r.handleWatchTimeTrigger=function(c){var f=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var d=c.videoWatchFraction,q=c.watchTimeSec;return q&&d?["onVideoProgress",function(){f.player&&f.isWatchTimeConditionMet(f.player,d,q)&&f.showSurvey()}]:[void 0,
void 0]};
_.r.isWatchTimeConditionMet=function(c,f,d){var q=c.getProgressState(),Z=q.current-this.lastKnownPlaybackPosition;Z<5&&(this.accumulatedMediaTime+=Z);this.lastKnownPlaybackPosition=q.current;q=Math.round(this.accumulatedMediaTime/q.duration*1E3)/1E3;return c.getPresentingPlayerType&&c.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>d||q>f)};
_.r.handlePlaybackTrigger=function(c){var f=this;c=c.playbackEvent;if(c==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var d="onStateChange";var q=function(Z){Z===0&&f.showSurvey()}}else c==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(d="onVideoProgress",q=function(Z){f.player&&f.player.getPresentingPlayerType&&f.player.getPresentingPlayerType()===1&&Z&&f.showSurvey()}):c==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(d="onAdEnd",q=this.showSurvey);
return[d,q]};
_.r.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.r.openSurvey=function(){var c=this,f=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.MR3(!!f));_.a7.addJob(function(){c.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:f}})},0,0)};
_.r.maybeRemovePlayerListeners=function(c){if(this.playerListenerConfig){for(var f=_.C(Object.keys(this.playerListenerConfig)),d=f.next();!d.done;d=f.next())d=d.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(c,d,this.playerListenerConfig[d]);this.playerListenerConfig=null}};
FV.prototype.dataChanged=FV.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],FV.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],FV.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],FV.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],FV.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],FV.prototype,"playerListenerConfig",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],FV.prototype,"lastKnownPlaybackPosition",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],FV.prototype,"accumulatedMediaTime",void 0);_.y([_.L(),_.D("design:type",Object)],FV.prototype,"player",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],FV.prototype,"dataChanged",null);_.y([_.v({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],FV);
_.h(FV,"ytd-survey-trigger-renderer",function(){if(NsC!==void 0)return NsC;var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return NsC=c},{mode:1});
}catch(e){_._DumpException(e)}
try{
var yIJ=new _.fi("promotedSparklesWebRenderer");var W2r=new _.fi("relatedChipCommand");var DFC;var eTi;var B$=function(){return _.z.apply(this,arguments)||this};
_.K(B$,_.z);B$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],B$.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],B$);
_.h(B$,"ytd-compact-tvfilm-entry-point-renderer",function(){if(eTi!==void 0)return eTi;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return eTi=c},{mode:1});var NMF;var IAi;var P$G;var iL=function(){return _.z.apply(this,arguments)||this};
_.K(iL,_.z);iL.prototype.ready=function(){this.initializeDefs()};
iL.prototype.initializeDefs=function(){var c=this.meta.byKey("yt-icons"),f=_.r1(c).querySelector("#star"),d=_.r1(c).querySelector("#star_half");c=_.r1(c).querySelector("#star_border");f&&this.defs.appendChild(f.cloneNode(!0));d&&this.defs.appendChild(d.cloneNode(!0));c&&this.defs.appendChild(c.cloneNode(!0))};
iL.prototype.percentChanged=function(){for(var c=this.rating;c.firstChild;)c.removeChild(c.firstChild);var f=Math.round(this.percent/10);c=Math.floor(f/2);f%=2;var d=5-c-f;this.appendStars("star",c,0);this.appendStars("star_half",f,c);this.appendStars("star_border",d,c+f)};
iL.prototype.appendStars=function(c,f,d){for(var q=0;q<f;q++){var Z=(18+this.spacing)*(q+d),M=document.createElementNS("http://www.w3.org/2000/svg","use");_.XVp(M,"#"+c);M.setAttribute("x",""+Z);M.setAttribute("y","0");this.rating.appendChild(M)}};
iL.prototype.percentChanged=iL.prototype.percentChanged;_.y([_.AY("#defs"),_.D("design:type",HTMLElement)],iL.prototype,"defs",void 0);_.y([_.AY("#rating"),_.D("design:type",HTMLElement)],iL.prototype,"rating",void 0);_.y([_.L(),_.D("design:type",Number)],iL.prototype,"percent",void 0);_.y([_.L({value:6}),_.D("design:type",Number)],iL.prototype,"spacing",void 0);_.y([_.L({value:_.n8.create("iron-meta",{type:"iconset"})}),_.D("design:type",_.Sg)],iL.prototype,"meta",void 0);
_.y([_.m5("percent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],iL.prototype,"percentChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-ratings"})],iL);
_.h(iL,"ytd-ratings",function(){if(P$G!==void 0)return P$G;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return P$G=c},{mode:1});var TM=function(){return _.z.apply(this,arguments)||this};
_.K(TM,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],TM.prototype,"data",void 0);_.y([_.v({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],TM);
_.h(TM,"ytd-offer-review-renderer",function(){if(IAi!==void 0)return IAi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return IAi=c},{mode:1});var ml=function(){var c=_.z.apply(this,arguments)||this;c.badges=[{textBadge:{label:_.pC("CC")}}];return c};
_.K(ml,_.z);_.r=ml.prototype;_.r.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.r.dataChanged=function(){var c=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(c&&c.commandMetadata&&_.b(c.commandMetadata,_.z2)&&_.b(c.commandMetadata,_.z2).fireAutomatically)_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}});else{var f;c&&((f=_.b(c,_.z2))==null?0:f.fireAutomatically)&&_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}})}};
_.r.isEmptyContent=function(c){return this.isStorefrontEntryPointEmpty(c)&&this.shouldHideOfferModule(c)};
_.r.isStorefrontEntryPointEmpty=function(c){return!c||!c.storefrontEntryPoint};
_.r.shouldHideOfferModule=function(c){return!!c.hideVideoDetails};
_.r.isOfferModuleNavigationInactive=function(c){return!c.navigationEndpoint&&!c.serviceEndpoint};
_.r.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ml.prototype.dataChanged=ml.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ml.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.D("design:type",Boolean)],ml.prototype,"hidden",void 0);
_.y([_.L(),_.D("design:type",Object)],ml.prototype,"badges",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ml.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],ml);
_.h(ml,"ytd-movie-offer-module-renderer",function(){if(NMF!==void 0)return NMF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return NMF=c},{mode:1});var RTi;var H$=function(){return _.z.apply(this,arguments)||this};
_.K(H$,_.z);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],H$.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],H$.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],H$);
_.h(H$,"ytd-media-masthead-renderer",function(){if(RTi!==void 0)return RTi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return RTi=c},{mode:1});var UFi;_.g_(_.mrF,"course-metadata-view-model",{props:{data:_.Cs,isOverlay:_.Cs}});var An=function(){var c=_.z.apply(this,arguments)||this;c.isMetadataVisible=!1;c.modernPanels=_.F("kevlar_watch_modern_panels");c.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return c};
_.K(An,_.z);_.r=An.prototype;
_.r.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"}}}}};
_.r.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.r.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.r.expanderChanged=function(){var c;if((c=this.data)==null?0:c.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.r.isExpandButtonToggled=function(){var c,f;return(f=_.b((c=this.data)==null?void 0:c.expandMetadataButton,_.Jc))==null?void 0:f.isToggled};
_.r.onVisibilityButtonClick=function(){var c;if((c=this.data)==null?0:c.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.r.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
An.prototype.expanderChanged=An.prototype.expanderChanged;An.prototype.dataChanged=An.prototype.dataChanged;An.prototype.descriptionChanged=An.prototype.descriptionChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q([_.Cy.YtActionHandlerBehavior]),_.D("design:type",Object)],An.prototype,"actionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],An.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],An.prototype,"isMetadataVisible",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],An.prototype,"modernPanels",void 0);_.y([_.AY("#expander"),_.D("design:type",Object)],An.prototype,"expander",void 0);_.y([_.m5("data.description"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],An.prototype,"descriptionChanged",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],An.prototype,"dataChanged",null);_.y([_.m5("isMetadataVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],An.prototype,"expanderChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],An);
_.h(An,"ytd-tvfilm-offer-module-renderer",function(){if(UFi!==void 0)return UFi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return UFi=c},{mode:2});var plQ;var Ym=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return c};
_.K(Ym,_.z);Ym.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Ym.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Ym.prototype.onThumbnailTap=function(c){this.data&&this.data.serviceEndpoint&&(_.ql().resolve(_.ZM).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),c.stopPropagation())};
Ym.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Ym.prototype.dataChanged=Ym.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ym.prototype,"rendererBehaviors",void 0);_.y([_.Q([_.Cy.YtActionHandlerBehavior]),_.D("design:type",Object)],Ym.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ym.prototype,"data",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ym.prototype,"dataChanged",null);_.y([_.v({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Ym);
_.h(Ym,"ytd-unlimited-offer-module-renderer",function(){if(plQ!==void 0)return plQ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return plQ=c},{mode:1});var xFC;var oY3;var FR=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return c};
_.K(FR,_.z);FR.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
FR.prototype.handleRelatedChipCommand=function(c){c=_.b(c,W2r);var f=c.contents;f?_.kt(this.hostElement,"yt-item-section-replace-action",[f,c.targetSectionIdentifier]):_.kt(this.hostElement,"yt-item-section-continuation-action",[c.continuationData,c.targetSectionIdentifier])};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],FR.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],FR.prototype,"data",void 0);_.y([_.vj({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],FR);
_.h(FR,"yt-related-chip-cloud-renderer",function(){if(oY3===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;xFC===void 0&&(xFC=document.createElement("template"));var q=xFC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);oY3=c}c=oY3;return c},{mode:2});var tn=function(){var c=_.z.apply(this,arguments)||this;c.isTwoColumns=!0;c.hideOfferModules=!1;c.watchFeedBigThumbs=_.F("kevlar_watch_feed_big_thumbs");c.watchFeedBigThumbsOnLockup=_.F("web_watch_next_big_thumbs");c.watchNextGridHideChips=_.F("kevlar_watch_grid_hide_chips");c.eligibleToSwitchToGrid=_.F("web_watch_eligible_to_switch_to_grid");c.disableShortsShelfHeightOverride=_.F("web_shorts_wn_shelf_ratio_tuning");c.isWatchNextGrid=!1;c.reuseComponents=!_.F("kevlar_watch_grid");c.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return c};
_.K(tn,_.z);_.r=tn.prototype;
_.r.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}}};
_.r.getItemsPath=function(){return"data.results"};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.r.created=function(){this.ytLazyListBehavior.initialCount=1};
_.r.ready=function(){_.la(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%"})};
_.r.resultsChanged=function(){if(this.data&&this.data.results){for(var c=this.data.results,f=null,d=null,q=0;q<c.length;q++)c[q].relatedChipCloudRenderer?f=c[q].relatedChipCloudRenderer:c[q].itemSectionRenderer&&(d=c[q].itemSectionRenderer);if(f&&d)for(this.set("data.continuations",[]),c=_.b(f.content,_.Vw_).chips,f=0;f<c.length;f++)if(q=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",c[f]),q.loadCached||!q.contents){q.contents=d.contents;break}}};
_.r.dataChanged=function(){var c=this,f;if((f=this.data)!=null&&f.results&&this.hasAllowedInstreamAd(this.playerData)){if(f=this.data.results.filter(function(O){return!!O.promotedSparklesWebRenderer})){for(var d=0;d<f.length;d++){var q=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",f[d]);
if(q)for(var Z=0;Z<q.length;Z++)q[Z]&&q[Z].baseUrl&&_.e6(q[Z].baseUrl)}this.set("data.results",this.data.results.filter(function(O){return!O.promotedSparklesWebRenderer}))}if(f=this.data.results.filter(function(O){return!!c.getSparklesAd(O)})){f=_.C(f);
for(Z=f.next();!Z.done;Z=f.next())if(q=d=void 0,Z=(d=this.getSparklesAd(Z.value))==null?void 0:(q=d.errorCommand)==null?void 0:q.loggingUrls)for(d=_.C(Z),q=d.next();!q.done;q=d.next())(q=q.value)&&q.baseUrl&&_.e6(q.baseUrl);var M,g;this.set("data.results",(M=this.data)==null?void 0:(g=M.results)==null?void 0:g.filter(function(O){return!O.adSlotRenderer}))}}};
_.r.getSparklesAd=function(c){var f,d;c=_.b((f=c.adSlotRenderer)==null?void 0:(d=f.fulfillmentContent)==null?void 0:d.fulfilledLayout,_.h8_);return _.b(c==null?void 0:c.renderingContent,yIJ)};
_.r.hasAllowedInstreamAd=function(c){c=this.get("adPlacements",c)||[];for(var f=0;f<c.length;f++){var d=this.get("adPlacementRenderer.config.adPlacementConfig",c[f]);if(d&&d.suppressDisplayAd)return!0}return!1};
_.r.computeHideUnlimitedOfferModule=function(c,f){return c&&c.offerModule&&f&&c.offerModule.unlimitedOfferModuleRenderer&&c.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(f)?!0:!1};
_.r.hideUnlimitedOfferModuleChanged=function(){var c=_.r1(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");c&&(c.hidden=this.hideUnlimitedOfferModule)};
_.r.updateLockupContainerTypes=function(c){if(this.eligibleToSwitchToGrid){var f;(f=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||f.forEach(function(d){d.containerType=c})}};
_.r.computeHideTvfilmOfferModule=function(c,f){var d,q;return!!((c==null?0:(d=c.offerModule)==null?0:(q=d.tvfilmOfferModuleRenderer)==null?0:q.clientShouldSuppressIfCompanionAdDisplayed)&&f&&this.hasCompanionAds(f))};
_.r.hideTvfilmOfferModuleChanged=function(){var c=_.r1(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");c&&(c.hidden=this.hideTvfilmOfferModule)};
_.r.hasCompanionAds=function(c){c=this.get("adPlacements",c)||[];for(var f=0;f<c.length;f++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",c[f]))return!0;var d=void 0,q=void 0,Z=void 0;if(!_.F("web_watch_top_banner_companion_check_killswitch")&&((d=c[f])==null?0:(q=d.adPlacementRenderer)==null?0:(Z=q.renderer)==null?0:Z.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.r.hasSuppressedResults=function(c){return c==null?!0:c.filter(function(f){return!f.continuationItemRenderer&&!f.compactPromotedVideoRenderer&&!f.promotedSparklesWebRenderer}).length===0};
_.r.computeShowButton=function(c,f){return this.isWatchNextGrid?c:c||this.hasSuppressedResults(f)};
_.r.showButtonChanged=function(){if(this.isWatchNextGrid){var c=_.r1(this.hostElement).querySelector("ytd-rich-grid-renderer");c&&this.showButton!==null&&(c.continuationShowButton=this.showButton)}else{c=_.r1(this.hostElement).querySelector("yt-next-continuation");var f=_.r1(this.hostElement).querySelector("ytd-continuation-item-renderer"),d=_.r1(this.hostElement).querySelector("ytd-item-section-renderer");c&&(c.showButton=this.showButton);f&&(f.showButton=this.showButton);d&&(d.continuationShowButton=
this.showButton)}};
_.r.continuationTap=function(c){var f;if(((f=this.data)==null?void 0:f.continuations)!=null&&c.target.tagName==="TP-YT-PAPER-BUTTON")for(c=this.data.continuations,f=0;f<c.length;f++)c[f].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(c[f].nextContinuationData||{})};
_.r.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("shown-items-changed",this.shownItems))};
_.ci.Object.defineProperties(tn.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 c;return!((c=this.shownItems)==null||!c.some(function(f){return!!f.lockupViewModel||f.compactVideoRenderer}))}}});
tn.prototype.shownItemsChangedForBinding=tn.prototype.shownItemsChangedForBinding;tn.prototype.showButtonChanged=tn.prototype.showButtonChanged;tn.prototype.hideTvfilmOfferModuleChanged=tn.prototype.hideTvfilmOfferModuleChanged;tn.prototype.updateLockupContainerTypes=tn.prototype.updateLockupContainerTypes;tn.prototype.hideUnlimitedOfferModuleChanged=tn.prototype.hideUnlimitedOfferModuleChanged;tn.prototype.dataChanged=tn.prototype.dataChanged;tn.prototype.resultsChanged=tn.prototype.resultsChanged;
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],tn.prototype,"ytLazyListBehavior",void 0);_.y([_.Q(_.RF.YtNextContinuationBehavior),_.D("design:type",Object)],tn.prototype,"ytNextContinuationBehavior",void 0);
_.y([_.Q(_.PX),_.D("design:type",Object)],tn.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],tn.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tn.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],tn.prototype,"playerData",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],tn.prototype,"autoFill",void 0);_.y([_.L({value:60}),_.D("design:type",Number)],tn.prototype,"targetFramerate",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tn.prototype,"isTwoColumns",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tn.prototype,"hideOfferModules",void 0);_.y([_.L(),_.D("design:type",Object)],tn.prototype,"shownItems",void 0);_.y([_.L({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.D("design:type",Boolean)],tn.prototype,"hideUnlimitedOfferModule",void 0);
_.y([_.L({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.D("design:type",Boolean)],tn.prototype,"hideTvfilmOfferModule",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tn.prototype,"watchFeedBigThumbs",void 0);_.y([_.L(),_.D("design:type",Object)],tn.prototype,"watchFeedBigThumbsOnLockup",void 0);_.y([_.L(),_.D("design:type",Object)],tn.prototype,"watchNextGridHideChips",void 0);_.y([_.L(),_.D("design:type",Object)],tn.prototype,"eligibleToSwitchToGrid",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tn.prototype,"disableShortsShelfHeightOverride",void 0);_.y([_.L({selector:_.eC,reflectToAttribute:!0}),_.D("design:type",Object)],tn.prototype,"isGridViewEnabled",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],tn.prototype,"showMoreButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tn.prototype,"isWatchNextGrid",void 0);
_.y([_.L({computed:"computeShowButton(showMoreButton, data.results)"}),_.D("design:type",Boolean)],tn.prototype,"showButton",void 0);_.y([_.ba("data.results.*"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tn.prototype,"resultsChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tn.prototype,"dataChanged",null);
_.y([_.m5("hideUnlimitedOfferModule"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tn.prototype,"hideUnlimitedOfferModuleChanged",null);_.y([_.S("isGridViewEnabled","containsLockups","data"),_.L({reflectToAttribute:!0}),_.D("design:type",Number),_.D("design:paramtypes",[])],tn.prototype,"lockupContainerType",null);
_.y([_.m5("lockupContainerType","data"),_.D("design:type",Function),_.D("design:paramtypes",[Number]),_.D("design:returntype")],tn.prototype,"updateLockupContainerTypes",null);_.y([_.m5("hideTvfilmOfferModule"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tn.prototype,"hideTvfilmOfferModuleChanged",null);_.y([_.m5("showButton"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tn.prototype,"showButtonChanged",null);
_.y([_.m5("shownItems"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tn.prototype,"shownItemsChangedForBinding",null);_.y([_.S("shownItems"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],tn.prototype,"containsLockups",null);
_.h(tn,"ytd-watch-next-secondary-results-renderer",function(){if(DFC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);DFC=c}c=DFC;return c},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Jkh=function(c){if((c==null?void 0:c.value)===void 0||c==null||!c.unit)return"initial";a:{switch(c.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var f="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":f="%";break a}f=void 0}return f?""+c.value+f:"initial"},a58=new _.fi("shoppingContentLineItemViewModel");var VZv=_.dN(function(c){var f=_.ch(c,{}).data;return _.B("yt-shopping-content-line-item-view-model",{class:_.FY("ytShoppingContentLineItemViewModelHost")},_.B(_.J9,{text:function(){var d;return(d=f().text)==null?void 0:d.attributedString}}))},"kk");var XCE=_.dN(function(c){c=_.ch(c,{});var f=c.data;return _.B("yt-shopping-content-line-view-model",{class:_.FY("ytShoppingContentLineViewModelHost",c.className),style:_.$Z({"--shopping-content-line-gap":function(){return f().itemGap?f().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return f().lineHeight?f().lineHeight+"px":void 0}})},_.B(_.bd,{each:function(){return(f().items||[]).map(function(d){return _.b(d,a58)}).filter(function(d){return!!d})}},function(d){return _.B(VZv,{data:d})}))},"lk");_.g_(_.dN(function(c){var f=_.ch(c,{}).data,d=function(){var Z;return((Z=f().image)==null?void 0:Z.width)||40},q=function(){var Z;
return((Z=f().image)==null?void 0:Z.height)||40};
return _.B("yt-shopping-timely-shelf-content-view-model",{el:_.Z7(_.NY(function(){var Z;return(Z=f())==null?void 0:Z.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.FY("ytShoppingTimelyShelfContentViewModelHost"),style:_.$Z({"--shopping-timely-shelf-content-padding-top":function(){var Z;return Jkh((Z=f().padding)==null?void 0:Z.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var Z;return Jkh((Z=f().padding)==null?void 0:Z.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var Z;return Jkh((Z=f().padding)==null?void 0:Z.start)},
"--shopping-timely-shelf-content-padding-end":function(){var Z;return Jkh((Z=f().padding)==null?void 0:Z.end)}})},_.B(_.T,{cond:function(){var Z;
return(Z=f().image)==null?void 0:Z.image},
then:function(Z){return _.B(_.jC,{preserveHeight:!0,preserveWidth:!0,width:d,height:q,data:Z,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.B(_.u7,{data:function(){return f().avatar}},{avatarViewModel:_.ag}),_.B("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.B(_.u7,{data:function(){return f().line1}},{shoppingContentLineViewModel:function(Z){return _.B(XCE,{data:Z.data})}}),_.B(_.u7,{data:function(){return f().line2}},{shoppingContentLineViewModel:function(Z){return _.B(XCE,
{data:Z.data})}})),_.B("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.B(_.bd,{each:function(){var Z;
return(Z=f().button)!=null?Z:[]}},function(Z){return _.B(_.u7,{data:function(){return Z}},{buttonViewModel:_.mN})})))},"mk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.oM}});_.urM={};
_.urM.YtdWatchBehavior=[_.P.YtRendererBehavior,_.xq.YtPlayerListenerBehavior,_.rT.YtRendererstamperBehavior,_.Cy.YtActionHandlerBehavior,_.Kw.YtPageBehavior,_.F4.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 _.wi("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 _.wi("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 _.rx("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.rx("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);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var c={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:_.pB(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.pB(["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")?c.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(c.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},c.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return c},
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 c=this;this.watchController=void 0;this.pageDisposeJobs=[function(){c.showMetadataPlaceholder_()},
function(){_.F("web_watch_dont_clear_comments")||c.clearComments_()},
function(){c.clearPlayerAds_()},
function(){c.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 _.H9h(function(){return _.ry(c)},this.hostElement);
this.pageDisposeJobs.push(function(){c.youThereManager_.reset()});
_.F("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){c.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.ls;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",_.ia(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(c){c&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:c}),c.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(c){_.F("kevlar_watch_flexy_theater_manager")&&(this.theater=c,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(c){!_.F("kevlar_watch_while_v2")&&!_.F("web_watch_pip")||c||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(c){this.active!==void 0&&(this.fullscreen=c,_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(c){this.active!==void 0&&(_.CZ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.F("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(c>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(c){this.initCsi_();this.updatePageData_(c)},
updatePageData_:function(c){var f=this;if(c)if(this.data===c){this.onPageLoadWithSameData_();var d;(d=this.watchController)==null||d.setWatchNextResponse(this.data)}else this.data=c;this.playlist&&_.JQ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.V_("nw");this.loading=!1;_.Em(_.a7,function(){f.initDclkstatus_();var q,Z=((q=f.player)==null?void 0:q.getVideoData().cpn)||"";_.jwM(function(M,g){_.Buq(M,g,Z)})})},
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 c=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!c);this.set("loadingData.playlistLoading",c&&c!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),c=this.watchNextSkeletonEl_.firstElementChild;c;)c.classList.remove("hidden"),c=c.nextElementSibling;if(_.F("kevlar_watch_frame0_loading_state")){var f,d,q;c=(f=this.loadingData)==null?void 0:(d=f.endpoint)==null?void 0:(q=d.watchEndpoint)==null?void 0:q.videoId;var Z;c&&(Z="https://i.ytimg.com/vi/"+c+"/frame0.jpg");_.r1(this.hostElement).querySelector("#player").style.backgroundImage=Z?"url("+Z+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var c=_.r1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&c&&(c.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var f,d;(d=(f=this.watchMetadata).updateSentimentBarWidth)==
null||d.call(f);var q,Z;(Z=(q=this.watchMetadata).resize)==null||Z.call(q)}_.F("kevlar_watch_frame0_loading_state")&&(_.r1(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(c){var f=_.r1(this.hostElement).querySelector(c);f?_.M9(f,!1):_.u6(new _.KD("Overscroll monitor not found for component: ",c))},
removeSplitScrollMouseTrap:function(c){var f=_.r1(this.hostElement).querySelector(c);f?_.rS(f):_.u6(new _.KD("Disposal component for  overscroll monitoring not found: ",c))},
onLoadingChanged_:function(c){c?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.F("web_thumbnail_to_watch_transition")&&!_.QZi||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.F("web_thumbnail_to_watch_transition")&&!_.QZi||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(c){var f=this;c?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.a7.addLowPriorityJob(function(){f.onWindowResized_(_.KX(!0))})},
updateTheaterModeState_:function(c){if(!_.F("kevlar_watch_flexy_theater_manager")){c=c||this.fullWindowMode_;if(this.theater!==void 0||c)this.theater=c;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();c&&_.rPD()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.F("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var c=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.F("external_fullscreen")&&this.fullscreen&&(c=!0);_.F("web_watch_error_screen_fix")&&(c=this.fullBleedPlayer);c=c?_.r1(this.hostElement).querySelector("#player-full-bleed-container"):_.r1(this.hostElement).querySelector("#player-container-inner");var f=this.getPlayerContainer(),d=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip");f.parentElement!==c&&(d&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.ry(this).appendTo(c,f),_.F("web_watch_error_screen_fix")||c.appendChild(_.r1(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var c=_.r1(this.hostElement).querySelector("#error-screen"),f=this.fullBleedPlayer?_.r1(this.hostElement).querySelector("#player-full-bleed-container"):_.r1(this.hostElement).querySelector("#player");c.parentElement!==f&&f.appendChild(c)},
deactivateMiniplayerAndResetPlayer:function(){var c=this;return _.k(function(f){if(f.nextAddress==1)return f.yield(_.ql().resolve(_.yN).deactivate(),2);c.updatePlayerLocation();_.Fm(f)})},
updateCinematicsLocation:function(){var c=this.getElement("CINEMATICS");if(c){var f=this.getCinematicsLocationContainer();c.parentElement!==f&&f.appendChild(c);var d;(d=this.watchController)==null||d.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.r1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.r1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(c,f,d){var q=document.documentElement.hasAttribute("dark"),Z=q&&_.F("web_cinematic_theater_mode"),M=q&&_.F("web_cinematic_fullscreen");q=!q&&this.cinematicLightTheme;return d||c&&Z||f&&M||(f||c)&&q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var c=this,f;(f=this.watchController)==null||f.setWatchNextResponse(this.data);_.F("kevlar_watch_flexy_comments_manager")||this.initComments_();_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ql().resolve(_.W_).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),_.a7.addLowPriorityJob(function(){_.kt(c.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 d,q,Z;if((d=this.data)==null?0:(q=d.contents)==null?0:(Z=q.twoColumnWatchNextResults)==null?0:Z.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var M,g;((M=this.data)==null?0:(g=M.contents)==null?0:g.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(c){var f;(f=this.watchController)==null||f.setPlayerResponse(this.playerData);c&&c.playabilityStatus&&(f=this.isVideoPlayable_(c.playabilityStatus,this.getPlayerOverlays_(this.data)),c=this.isLiveStreamOffline_(c.playabilityStatus),f&&!c||_.ol(this,function(){_.V_("pbu")}));
this.setPlayerAds_();_.kt(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(c,f){if((_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"))&&this.playerData&&f)return this.playerData.videoDetails},
watchPageActiveChanged_:function(c){_.Gh().dispatch(_.ST8(this.active));c?this.activate_():this.deactivate_()},
attached:function(){var c=this;this.watchController=new _.wM(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 f=_.ry(this);_.F("kevlar_disable_prepare_player")||
f.preparePlayer();_.F("kevlar_watch_flexy_playlist_manager")||_.ql().resolve(_.W_).setPlayer(f);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();f={"--ytd-watch-flexy-scrollbar-width":_.PE()+"px"};this.is==="ytd-watch-grid"&&(f["--ytd-watch-flexy-sidebar-width"]=_.y38+"px",f["--ytd-watch-grid-horizontal-page-margins"]=_.aR+"px",f["--ytd-watch-grid-columns-top-margins"]=_.v_J+"px",f["--ytd-watch-grid-min-player-height-medium"]="360px");!_.rx("kv_pl_mx_sz_ks")&&
_.rx("kevlar_watch_max_player_width")&&(f["--ytd-watch-flexy-max-player-width-wide-screen"]=_.WTD+"px");_.rx("kevlar_watch_flexy_metadata_height")&&(f["--ytd-watch-flexy-space-below-player"]=_.DHq+"px");this.safeUpdateStyles(f);_.F("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.CH(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return c.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.r1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var c=_.PE(),f=_.Vp+c,d=f;this.fixedPanels&&(f+=_.y38);var q=657+c;c=1327+c;_.r1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+f+"px)";_.r1(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(q+"px), (min-height: 630px) and (min-width: ")+(f+"px) and (max-width: ")+(c+"px)");_.r1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(c+"px)");
_.r1(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+d+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var c=_.r1(this.hostElement).querySelector("#miniplayer-bar").firstChild,f=this.squeezeback&&!_.F("web_watch_squeezeback_player_size_killswitch");return c&&c.active||this.theater||_.F("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||f||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.AT(NaN,NaN):_.CdM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.CdM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.GV(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var c=this;this.onWindowResized_(_.KX());_.F("browse_skeleton_removal_on_watch_killswitch")||_.wi("IS_SHELL_LOAD")&&_.ek3();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var f=_.ry(this);f.addEventListener("yt-player-updated",_.ia(this,this.onPlayerUpdated_));f.getPlayerPromise().then(function(d){c.playerApiReady_(d)});
_.F("kevlar_watch_flexy_playlist_manager")||(f=_.ql().resolve(_.W_),_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&f.addEventListener("yt-navigate",_.ia(this,this.onYtNavigate_)),f.setPlaylistComponent(_.r1(this.hostElement).querySelector("#playlist")),f.addEventListener("yt-playlist-data-updated",_.ia(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.a7.addLowPriorityJob(function(){_.CZ(c.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.ry(this).removeEventListener("yt-player-updated",_.ia(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.F("kevlar_watch_flexy_playlist_manager")){var c=_.ql().resolve(_.W_);_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&c.removeEventListener("yt-navigate",_.ia(this,this.onYtNavigate_));
c.cancelVideoSkip();c.removeEventListener("yt-playlist-data-updated",_.ia(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.F("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.CZ(this.hostElement,"yt-autonav-pause-player",!1);c=_.q9();_.F("kevlar_exit_fullscreen_leaving_watch")&&c&&_.Zr(c)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(c){this.player&&this.player.updateVideoData({rvs:c.rvs})},
getPageContents:function(c){return c&&c.contents&&c.contents.twoColumnWatchNextResults&&c.contents.twoColumnWatchNextResults.results&&c.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(c){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c)},
onRetrieveLocation_:function(c,f){f.hasComments?f.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):f.locationRetrieved("/related_ajax",void 0);c.stopPropagation()},
onSubscriptionChanged_:function(c,f){this.player&&(f?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.bA("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.r1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.r1(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(c){this.player=c;this.setPlayerState(c.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"))&&_.R9()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(c,f){f=f===void 0?!0:f;_.q9()&&_.F("external_fullscreen")&&_.Zr(document.documentElement);this.theaterRequested_=c;f&&_.YK("wide",c?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.gS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.CZ(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(c){_.wK(c,typeof this.player),this.player&&_.wK(c,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var c;((c=this.player)==null?0:c.isFullscreen())?this.player.toggleFullscreen():_.gS(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(c,f){return this.loading?f:!!Object.keys(c).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(c){if(c){c=_.C(c);for(var f=c.next();!f.done;f=c.next())f=f.value,f.youThereRenderer&&_.Ffh(this.youThereManager_,f.youThereRenderer)}},
setPlaylistData_:function(c){return c||{}},
userEngagementConfigDataChanged_:function(c){if(c)if(c.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var f=this.youThereManager_;_.ZZ()<c.lowEngagementThresholdMs||_.E5P(f,!0)}else c.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.gS(this.hostElement,"yt-autonav-pause-user-engagement",[c])},
isPlayerUnavailable_:function(c,f,d){return!!c&&!this.isVideoPlayable_(c,d)&&!f},
getPlayerOverlays_:function(c){return(c==null?void 0:c.playerOverlays)||null},
isVideoPlayable_:function(c,f){if(!c)return!1;var d=c.status==="OK"||c.status==="LIVE_STREAM_OFFLINE",q=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",c)||this.get("errorScreen.ypcTrailerRenderer",c);c=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",c);var Z;f=f==null?void 0:(Z=f.playerOverlayRenderer)==null?void 0:Z.gatedActionsOverlayRenderer;return!!d||!!q||!!c||!!f},
hasWatchNextResponseErrorRenderer:function(c){var f=this.getPageContents(c),d,q,Z,M,g;return!(c==null?0:(d=c.contents)==null?0:(q=d.twoColumnWatchNextResults)==null?0:q.secondaryResults)&&!!((Z=f[0])==null?0:(M=Z.itemSectionRenderer)==null?0:(g=M.contents[0])==null?0:g.backgroundPromoRenderer)},
isLiveStreamOffline_:function(c){return c?c.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(c,f,d){var q=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f),Z=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Z=_.F("web_no_skip_video_on_verification_checks")?(c==null?void 0:c.status)&&Z.includes(c.status):c&&c.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",c);M==void 0&&(M=!0);!d||this.isVideoPlayable_(c,this.getPlayerOverlays_(f))||
q||Z||!M||_.ql().resolve(_.W_).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.k4h()},
onPlayerFeedbackStartRequest_:function(c){_.gS(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:c}])},
onPlayerFeedbackArticleRequest_:function(c){_.gS(this.hostElement,"yt-help-dialog-requested",[c])},
onPlayerYpcContentRequest_:function(){var c,f,d,q,Z,M,g,O,l=((c=this.data)==null?NaN:(f=c.contents)==null?NaN:(d=f.twoColumnWatchNextResults)==null?NaN:(q=d.secondaryResults)==null?NaN:(Z=q.secondaryResults)==null?NaN:(M=Z.offerModule)==null?NaN:(g=M.tvfilmOfferModuleRenderer)==null?NaN:(O=g.actionButtons)==null?NaN:O.length)-1;c=[".offerButton.buttonRenderer.",".actionButtons."+(l>=0?l:0)+".buttonRenderer."];f=_.C(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(d=f.next();!d.done;d=f.next())for(d=d.value,q=_.C(c),Z=q.next();!Z.done;Z=q.next())if(Z="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+d+Z.value,Z=this.get(Z+"navigationEndpoint",this.data)||this.get(Z+"serviceEndpoint",this.data)||this.get(Z+"command",this.data)){_.Ae(Z,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(c){_.CZ(this.hostElement,"yt-autonav-pause-player",c)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(c){c()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(c){switch(c){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(c){switch(c){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.CZ(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(c)},
setPlayerState:function(c){_.Gh().dispatch(_.mgy(c))},
onPlayerSubscribe_:function(c){_.gS(this.hostElement,"yt-player-subscribe",[c])},
onPlayerUnsubscribe_:function(c){_.gS(this.hostElement,"yt-player-unsubscribe",[c])},
onPlayerAdYtShowToast_:function(c){_.gS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:c.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(c){if(c)return c},
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(c){return!_.F("web_watch_move_summary_to_sd")&&!!c},
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 c,f,d,q;this.watchNextSecondaryResults=(c=this.data)==null?void 0:(f=c.contents)==null?void 0:(d=f.twoColumnWatchNextResults)==null?void 0:(q=d.secondaryResults)==null?void 0:q.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.F("swatcheroo_pbs_load_grid")&&!_.F("swatcheroo_provide_all_data_on_scheduled_job")){_.a7.cancelJob(this.setRichGridJobId_);var c,f,d,q,Z,M,g;this.setRichGridRendererData((c=this.data)==null?void 0:(f=c.contents)==null?void 0:(d=f.twoColumnWatchNextResults)==null?void 0:(q=d.secondaryResults)==null?void 0:(Z=q.secondaryResults)==null?void 0:(M=Z.results)==null?void 0:(g=M[0])==null?
void 0:g.richGridRenderer)}},
setRichGridRendererData:function(c){this.richGridRendererData=c},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var c,f=(c=this.data)==null?void 0:c.engagementPanels;if(f==null?0:f.length){c=null;f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=void 0;if(((q=d.engagementPanelSectionListRenderer)==null?void 0:q.targetId)==="engagement-panel-structured-description"){c=d;break}}var Z,M,g;c=(Z=c)==null?void 0:(M=Z.engagementPanelSectionListRenderer)==null?void 0:(g=M.content)==null?void 0:g.structuredDescriptionContentRenderer;if(c==null?0:c.items){Z=
[];M=_.C(c.items);for(g=M.next();!g.done;g=M.next()){g=g.value;if(!_.F("sd_horizontal_list_show_nav_killswitch")){var O=q=d=f=c=void 0,l=void 0,m=(c=g.horizontalCardListRenderer)==null?void 0:(f=c.header)==null?void 0:(d=f.richListHeaderRenderer)==null?void 0:(q=d.navigationButton)==null?void 0:(O=q.buttonRenderer)==null?void 0:(l=O.command)==null?void 0:l.commandExecutorCommand;m&&m.commands&&(m.commands=m.commands.filter(function(H){return!_.b(H,_.jKJ)}))}(!g.expandableVideoDescriptionBodyRenderer&&
!g.videoDescriptionHeaderRenderer||_.F("web_delhi_colorful_sd"))&&Z.push(g)}return{items:Z}}}},
constructWarning_:function(c){return{text:_.pC(c),type:"WARNING"}},
isPlaShelfEnabled_:function(c){if((this.get("adPlacements",c)||[]).length)return!0;c=this.get("playerAds",c)||[];return!(!c.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",c[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var c=this;_.CZ(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.F("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var f=this.getScrollTop()>0;this.gestures_&&(f?this.gestures_.detach():this.gestures_.attach());f!==this.showFullerscreenEdu_&&_.F("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=f,_.ry(this).getPlayerPromise().then(function(d){d.updateFullerscreenEduButtonVisibility(c.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.CZ(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var c=this;this.commentsReady=!1;_.a7.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Em(_.a7,function(){c.setComments_()},1E3)},
setComments_:function(){if(!_.F("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.V_("cmi");_.a7.cancelJob(this.setCommentsJobId_);var c=this.getPageContents(this.data);if(c&&c.length){c=_.C(c);for(var f=c.next();!f.done;f=c.next())if(f=f.value,this.get("itemSectionRenderer.sectionIdentifier",f)==="comment-item-section"){this.comments=f.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.CZ(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_();_.V_("cmc")},
doRemoveComments_:function(){this.comments={};_.F("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.a7.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.a7.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(c,f){var d=_.b(f.endpoint,_.pe);d&&(!(f=this.get("data.currentVideoEndpoint.watchEndpoint"))||d.videoId!==f.videoId||d.playlistId&&d.playlistId!==f.playlistId||d.index!==void 0&&d.index!==f.index||typeof d.startTimeSeconds!=="number"||(c.stopPropagation(),this.setScrollTop(0),_.ry(this).getPlayerPromise().then(function(q){var Z=d.startTimeSeconds;q.seekTo(Z);q.wakeUpControls();Z<q.getDuration()&&q.playVideo()})))},
updatePlayerStartTime_:function(){var c=_.REv();"t"in c&&(c=_.g5D(c.t),this.player.seekTo(c,!0))},
updateTitleFromWatchNext:function(c){c=this.getPageContents(c);var f,d;(c=_.xC(c==null?void 0:(f=c[0])==null?void 0:(d=f.videoPrimaryInfoRenderer)==null?void 0:d.title))&&_.CZ(this.hostElement,"yt-update-title",c)},
updateTitle_:function(c){c=this.get("videoDetails.title",c)||"";_.CZ(this.hostElement,"yt-update-title",c)},
syncWithRemoteVideo_:function(c,f,d){if(this.active&&this.player){var q=this.player.getVideoData();if(q.video_id===d&&(d=q.list,_.F("polymer_enable_mdx_queue")&&d&&d.startsWith("RQ")&&(d=void 0),q.video_id!==c||d!=f)){var Z;_.F("kevlar_player_watch_endpoint_navigation")?Z=_.GIk(_.q6X(c,f)):Z=this.buildWatchEndpoint_(c,f);_.CZ(this.hostElement,"yt-navigate",{endpoint:Z,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(c,f,d){return _.dW(c,f,d)},
initDclkstatus_:function(){_.rkM()},
attachWatchPageSkeleton_:function(){var c=document.querySelector("#watch-page-skeleton");if(c){var f=c.querySelector("#primary-info"),d=c.querySelector("#secondary-info"),q=c.querySelector("#related");f&&_.r1(this.hostElement).querySelector("#info-skeleton").appendChild(f);d&&_.r1(this.hostElement).querySelector("#meta-skeleton").appendChild(d);q&&(_.r1(this.hostElement).querySelector("#related-skeleton").appendChild(q),this.watchNextSkeletonEl_=q);_.Y6(c)}},
handlePlayerUpdated_:function(){_.ry(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(c,f){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof f!=="undefined"){var d=this.watchNextSkeletonEl_.children,q=c&&c.indexSplices.length?c.indexSplices[0].index:0;c=Math.min(this.watchNextShownItems.length,d.length);f||(q=0,c=d.length);for(f=q;f<c;f++)d[f].classList.add("hidden")}},
onPlayerFullscreenChange_:function(c){_.F("external_fullscreen")||_.gS(this.hostElement,"yt-player-fullscreen",[c.fullscreen])},
onFullscreenChange_:function(c){this.fullscreen=c;this.gestures_&&this.gestures_.update(this.fullscreen);var f=_.ry(this);f.getPlayerPromise().then(function(d){d.setFauxFullscreen(!!_.q9())});
this.updateFullBleedElementLocations();c&&(f.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(c,f){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!f},
computeIsDonationShelfCollapsed_:function(c){return c},
computeShouldShowMerchShelf:function(c,f){return f&&!!c},
computeResponseHasComments:function(c){var f,d,q,Z,M;return!!(c==null?0:(f=c.contents)==null?0:(d=f.twoColumnWatchNextResults)==null?0:(q=d.results)==null?0:(Z=q.results)==null?0:(M=Z.contents)==null?0:M.some(function(g){var O;return(g==null?void 0:(O=g.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(c,f,d,q){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&q?!1:!!c&&!!Object.keys(c).length&&!f},
identity:_.Vn,onWindowResized_:function(c){this.windowSize_=c;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.F("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(c){var f=this;c&&c.type!=="dataloaded"&&c.type!=="dataupdated"||_.ry(this).getPlayerPromise().then(function(d){var q=d.getPlayerState();q!==5&&q!==0&&(d=1/d.getVideoAspectRatio(),f.videoHeightToWidthRatio_!==d&&(f.videoHeightToWidthRatio_=d))})},
schedulePlayerSizeUpdate_:function(c){var f=this,d=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"),q=function(){if(f.watchMetadata){var Z,M;(M=(Z=f.watchMetadata).resize)==null||M.call(Z)}_.ry(f).getPlayerPromise().then(function(g){if(_.F("kevlar_set_internal_player_size")){if(!d||!f.isMiniplayerActive()){var O=f.calculateCurrentPlayerSize_();g.setInternalSize(O.width,O.height)}}else g.setSize(NaN,NaN);_.F("kevlar_watch_while")&&f.updateWatchWhileScrollThreshold_()})};
c?q():_.X8(_.a7,q)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(c){this.set("data.survey",c.detail)},
onYtShowSurveyCommand_:function(c){this.set("data.survey",_.b(c,_.mDD).survey)},
onDownloadedVideoDeleted:function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1){if(!f.active||(d=f.playerData)==null||!d.offlineState||f.videoId!==c)return Z.return();(q=f.player)==null||q.stopVideo();_.F7().navigatingAwayFromWatchDeletedVideo=!0;_.Ae(_.MSG,f.hostElement);return Z.yield(_.F7().navigationFinishPromise,2)}_.F7().navigatingAwayFromWatchDeletedVideo=!1;_.Fm(Z)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var c;this.theater?c=_.uk(.5625*this.windowSize_.width,480,this.windowSize_.height-185):c=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==c&&(this.watchWhileScrollThreshold_=c,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var c=_.r1(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&c){var f=this.windowSize_.height>=624,d=this.active?this.getScrollTop():0;!c.active&&f&&d>=this.watchWhileScrollThreshold_?(c.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):c.active&&(!f||d<this.watchWhileScrollThreshold_&&!_.q9())&&(c.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var c=_.r1(this.hostElement).querySelector("#secondary-inner");if(c){var f=_.r1(this.hostElement).querySelector("#below"),d=_.r1(this.hostElement).querySelector("#secondary"),q=_.r1(this.hostElement).querySelector("#comments");q&&d&&f&&(this.defaultTwoColumnLayout?(c.appendChild(q),d.appendChild(c)):(f.appendChild(q),_.zM(f,c)))}}},
isTwoColumnsChanged_:function(c,f){if(c!==!0||f!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(c=_.r1(this.hostElement).querySelector("#secondary-inner"))){f=_.r1(this.hostElement).querySelector("#below");var d=_.r1(this.hostElement).querySelector("#secondary"),q=_.r1(this.hostElement).querySelector("#comments");q&&d&&f&&(this.isTwoColumns_?(c.appendChild(q),d.appendChild(c)):(f.appendChild(q),
_.zM(f,c)))}}else{c=!_.F("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);f=_.r1(this.hostElement).querySelector("#panels");var Z=_.r1(this.hostElement).querySelector("#alerts");d=_.r1(this.hostElement).querySelector("#playlist");q=_.r1(this.hostElement).querySelector("#related");var M=_.r1(this.hostElement).querySelector("#donation-shelf"),g=_.r1(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Z=_.r1(this.hostElement).querySelector("#secondary-inner"),
c&&(Z.appendChild(f),Z.appendChild(d)),Z.appendChild(M),Z.appendChild(q)):(c&&(_.Vv(f,Z),_.Vv(d,Z)),_.Vv(M,Z),g&&_.Vv(q,g));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 c=_.r1(this.hostElement).querySelector("#chat-container"),f=this.theater&&!this.fullscreen||_.F("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&f?(f=_.r1(this.hostElement).querySelector("#columns"),(c==null?void 0:c.parentElement)!==f&&f.append(c),this.fixedPanels=!0):(this.fixedPanels=
!1,f=_.r1(this.hostElement).querySelector("#playlist"),c&&f?_.XB(c,f):_.u6(new _.KD("Missing element when updating chat location",{"chatContainer defined":!!c,"playlist defined":!!f})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(c,f){return _.F("sw_metadata_vis_toggle_ks")?!0:!!c||!!f},
computeForceDarkPanelTheme:function(c){return _.F("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&c:!1},
safeUpdateStyles:function(c){try{_.la(this.hostElement,c)}catch(f){_.u6(f)}},
videoHeightToWidthRatioChanged_:function(c,f){f&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(c){this.videoHeightToWidthRatio_=1/c},
computeIsVerticalVideo_:function(c){return c>=1},
computeIsFourThreeToSixteenNineVideo_:function(c){return c<=.7501&&c>=.5624},
computeIsExtraWideVideo_:function(c){return c<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.ry(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.ry(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.n5M(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(c){var f=_.T7(c)||0;_.iK(c,f+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var c=_.T7("yt-fullerscreen-edu-button-click-count")||0,f=_.T7("yt-fullerscreen-edu-button-shown-count")||0,d=_.rx("external_fullscreen_button_shown_threshold"),q=c>=_.rx("external_fullscreen_button_click_threshold")||f>=d;_.ry(this).getPlayerPromise().then(function(Z){Z.updateFullerscreenEduButtonSubtleModeState(q)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(c,f){return f},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ql().resolve(_.W_).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var c=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.a7.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.a7.addLowPriorityJob(function(){c.fullHeightPanelPositionUpdateJobId=0;var f=_.r1(c.hostElement).querySelector("#secondary"),d=_.r1(c.hostElement).querySelector("#fixed-secondary");f=f.getBoundingClientRect();var q=f.width;c.swatcherooSqueezeback&&
(q+=_.aR);if(c.swatcherooSqueezeback){var Z=_.r1(c.hostElement).querySelector("#squeezeback-constraining-container");Z.style.width=q+"px";Z.style.flex="0 0 "+q+"px"}d.style.width=q+"px";d.style.left=f.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var c=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.a7.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.a7.addLowPriorityJob(function(){c.panelMaxHeightUpdateJob_=0;var f;!c.isTwoColumns_||c.theater||c.fullscreen?f=460:f=c.calculateNormalPlayerSize_().height;var d=f+"px";_.F("live_chat_taller_height")&&!c.theater&&(d="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.F("live_chat_medium_height")&&!c.theater&&(d="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.F("live_chat_scaled_height")&&!c.theater&&(d="calc(100vh - var(--ytd-toolbar-height) - 238px)");c.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":f+"px","--ytd-watch-flexy-chat-max-height":d,"--ytd-watch-flexy-structured-description-max-height":f+"px","--ytd-watch-flexy-comments-panel-max-height":f+"px","--ytd-comments-engagement-panel-content-height":f+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(c){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",c)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ll(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(c){var f=_.r1(this.hostElement).querySelector("#engagement-panel-scrim");c?f.addEventListener("tap",_.ia(this,this.onEngagementPanelScrimClick_)):f.removeEventListener("tap",_.ia(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(c){if(this.hostElement.contains(c)&&!this.scrollToAnimation_.isAnimating()){var f=c.offsetTop-24;c=c.offsetTop+c.offsetHeight+24;var d=this.getPageScrollingElement(),q=this.getScrollTop(),Z=q+d.clientHeight-56;if(f<q+56)f-=56;else if(c>Z)f=c-d.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtSignalActionScrollToComments:function(){var c=this.hostElement.querySelector("#comments");if(c&&!this.scrollToAnimation_.isAnimating()){c=c.offsetTop-56-24;if(_.F("kevlar_comment_teaser_scroll_to_midpoint")&&(c-=_.Yc().height/3,c<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtEngagementPanelVisibleChanged:function(c,f,d){if(this.active&&this.trackEngagementPanelVisibility&&!_.i9X.includes(d)){if(f==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.kt(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var q=_.ql().resolve(_.SD);this.visiblePanelIdentifiers_.forEach(function(Z){Z!==d&&q.hidePanel(Z)})}this.visiblePanelIdentifiers_.add(d)}f!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&f!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(d);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(c){return c?"":"watch-active-metadata"},
computeNewMetadataClass:function(c){return c?"watch-active-metadata":""},
computeIsSingleColumn:function(c,f){return f&&!c},
computeFullBleedPlayer:function(c,f,d){return _.F("web_watch_error_screen_fix")?_.F("external_fullscreen")&&c||f||this.enableFullBleedSingleColumnDefaultPlayer&&d:c||f||this.enableFullBleedSingleColumnDefaultPlayer&&d},
computeDefaultLayout:function(c){return!c},
computeDefaultTwoColumnLayout:function(c,f){return!c&&f},
updatePanelsLocation:function(){if(_.F("web_watch_enable_fs_squeezeback_panels")){var c=_.r1(this.hostElement).querySelector("#below"),f=_.r1(this.hostElement).querySelector("#panels"),d=_.r1(this.hostElement).querySelector("#playlist"),q=_.r1(this.hostElement).querySelector("#chat-container"),Z=_.r1(this.hostElement).querySelector("#panels-full-bleed-container"),M=_.r1(this.hostElement).querySelector("#secondary-inner");if(c&&f&&d&&q&&Z&&M){var g=this.fullscreen||this.theater&&this.iMaxTheaterMode,
O=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;g?(Z.appendChild(f),Z.appendChild(q),Z.appendChild(d)):this.isTwoColumns_?(O?(c=_.r1(this.hostElement).querySelector("#columns"),(q==null?void 0:q.parentElement)!==c&&c.append(q),this.fixedPanels=!0):_.zM(M,q),_.zM(M,f),_.zM(M,d)):(c.appendChild(f),c.appendChild(q),c.appendChild(d))}}},
swatcherooUpdatePanelsLocation:function(c,f,d,q,Z,M){if(this.is==="ytd-watch-grid"){f=c&&!f;this.swatcherooSplitScroll&&(f?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));d=_.r1(this.hostElement).querySelector("#panels");var g=_.r1(this.hostElement).querySelector("#playlist"),O=_.r1(this.hostElement).querySelector("#fixed-secondary"),l=_.r1(this.hostElement).querySelector("#fixed-below"),
m=_.r1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),H=_.r1(this.hostElement).querySelector("#chat-container");M&&(c?O.appendChild(d):l.appendChild(d));Z?c?O.appendChild(H):l.appendChild(H):_.XB(H,m);q?c?O.appendChild(g):l.appendChild(g):_.XB(g,m);this.swatcherooSplitScroll&&(c=_.r1(this.hostElement).querySelector("#secondary"),q=_.r1(this.hostElement).querySelector("#columns"),Z=_.r1(this.hostElement).querySelector("#fixed-columns-secondary"),f?
Z.appendChild(c):q.appendChild(c))}},
computeMetadataSkinnyMode:function(c,f,d){return this.is!=="ytd-watch-grid"?!1:c?d:f},
computeWatchWhilePanelsActive:function(c,f){return c||f},
computeNoBorderOnChat:function(c){return _.F("web_watch_theater_chat_no_border")&&c},
computeLiveChatPresentAndExpanded:function(c,f){return c&&!f},
computePanelExpanded:function(c,f,d){return c||f||d},
computeSqueezeback:function(c,f,d,q){if(_.F("web_watch_enable_fs_squeezeback_panels")){var Z=this.iMaxTheaterMode&&this.theater;return(c||f||d)&&(q||Z)}},
computeSwatcherooSqueezeback:function(c,f,d){return this.is!=="ytd-watch-grid"||_.F("ww_squeezeback_killswitch")?!1:c&&f&&d},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(c){_.ry(this).getPlayerPromise().then(function(f){var d;(d=f.changeMarkerVisibility)==null||d.call(f,_.b(c,_.ed).isVisible||!1,_.b(c,_.ed).entityKeys||[],_.b(c,_.ed).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(c){this.liveChatCollapsed=c.detail;_.Gh().dispatch(_.Bi8(c.detail));if(!this.liveChatCollapsed&&this.squeezeback){var f=_.ql().resolve(_.SD);this.visiblePanelIdentifiers_.forEach(function(d){f.hidePanel(d)})}},
onSetPlaylistCollapsed:function(c){_.F("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!c)},
provideRenderingData:function(c,f){switch(c){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=f;break;case "PRIMARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=f);this.videoPrimaryInfoRendererValue=f==null?void 0:f.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=f);this.videoSecondaryInfoRendererValue=f==null?void 0:f.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
f;break;case "CLARIFICATION":this.clarifyBoxValue=f;break;case "LIVE_CHAT":this.conversationBar=f;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=f;break;case "PLAYLIST":this.externalPlaylistData_=f!=null?f:{};break;case "MERCH_SHELF":this.merchShelfValue=f==null?void 0:f.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=f;break;case "TICKET_SHELF":this.ticket=f;break;case "OFFER_MODULE":this.offerModule=f;break;case "LIMITED_STATE":this.limitedStateValue=
f;break;case "DONATION_SHELF":this.donation=f;break;case "ALERTS":this.alertsValue=f;break;case "COMMENTS":this.comments=f;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=f;break;case "ENGAGEMENT_PANELS":this.engagementPanels=f;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=f;break;case "RICH_GRID_RENDERER":this.richGridRendererData=f;break;case "EXPANDABLE_METADATA":this.expandableMetadata=f;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
f;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=f}},
toggleCinematicsActive:function(c){this.cinematicsActive=c},
isMiniplayerActive:function(){return _.ql().resolve(_.yN).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Hhr;_.mdr=function(c){if(!(0,_.c7z)(c))throw Error("K``"+String(c));};
_.A8F=function(c){return c.findIndex(function(f){return Hhr.indexOf(f.tagName)>-1})>-1};
_.Yui=function(){var c=_.ql().resolve(_.bK);_.Xhh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(c.isFullscreenEnabled()?_.Zr(document.documentElement):_.kyM(document.documentElement))};
Hhr=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.iT=new Map;_.iT.set(32,59972);_.iT.set(27,50765);_.iT.set(70,60102);_.iT.set(76,60221);_.iT.set(77,60222);_.iT.set(74,60223);_.iT.set(84,60224);_.iT.set(38,61941);_.iT.set(40,61942);_.iT.set(73,62521);_.iT.set(67,62522);_.iT.set(80,63390);_.iT.set(78,63397);_.iT.set(75,59972);_.iT.set(188,63385);_.iT.set(190,63384);_.iT.set(36,63387);
_.iT.set(35,63386);_.iT.set(37,63388);_.iT.set(39,63389);_.iT.set(79,63423);_.iT.set(87,63424);_.iT.set(107,63426);_.iT.set(109,63425);_.iT.set(65,63428);_.iT.set(83,63430);_.iT.set(68,63429);_.iT.set(221,63431);_.iT.set(219,63432);_.iT.set(97,63439);_.iT.set(98,63440);_.iT.set(99,63441);_.iT.set(100,63442);_.iT.set(101,63443);_.iT.set(102,63444);_.iT.set(103,63445);_.iT.set(104,63446);_.iT.set(105,63447);_.T_=new Map;_.T_.set(80,63390);_.T_.set(78,63397);_.T_.set(188,63400);_.T_.set(190,63401);
_.T_.set(191,60765);_.T_.set(13,247917);_.my=new Map;_.H7=new Map;
}catch(e){_._DumpException(e)}
try{
var OL3,B$C,iLC,T$C;_.roJ=function(c){return c.ui.guideIsVisibleButNotPersistent};
_.CmQ=function(c){return c.ui.tabGesturesIsActive};
_.gk3=function(){var c=_.CD("service_worker_scope");try{return navigator.serviceWorker.getRegistration(c)}catch(f){return Promise.reject(f)}};
_.kZq=function(c){return!(!c||!c.pushManager)};
OL3=function(){return _.gk3().then(_.kZq).catch(function(){return!1})};
_.lac=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?OL3():Promise.resolve(!1)};
_.suG=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
B$C=function(){var c,f,d;return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(_.L5.getInstance(),2);case 2:c=q.yieldResult;if(!c){f=void 0;q.jumpTo(3);break}return q.yield(c.get("lmqf"),4);case 4:f=q.yieldResult;case 3:switch((d=f)||(d="SD"),d){case "HD":return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
iLC=function(c){var f,d,q;return _.k(function(Z){if(Z.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.F("disable_av1_setting")){var M=window.localStorage["yt-player-av1-pref"];M=M==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":M==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else M="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(f=c===M)return Z.jumpTo(2);q=d=c;return Z.yield(B$C(),3)}Z.nextAddress!=2&&(f=q===Z.yieldResult);return Z.return(f)})};var maF;var HLr=_.$$.IronButtonState,Ao3=(0,_.EP)(HTMLElement);
_.JY({_template:function(){if(maF!==void 0)return maF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;T$C===void 0&&(T$C=document.createElement("template"));var q=T$C;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return maF=c},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[HLr,_.EU,_.QE,_.z0],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(c){var f=(0,_.YD)(this);f.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:c});f.shadowRoot.appendChild(c);return Ao3.prototype._attachDom.call(this,c)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var c=this.contentElement;c&&c.selectedItem&&this._setSelectedItem(c.selectedItem)},
get contentElement(){for(var c=_.$n(this.$.content).getDistributedNodes(),f=0,d=c.length;f<d;f++)if(c[f].nodeType===Node.ELEMENT_NODE)return c[f]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(c){this._setSelectedItem(c.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(c){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c)===this&&this.open()},
_selectedItemChanged:function(c){var f="";c?f=c.label||c.getAttribute("label")||c.textContent.trim():f="";this.value=f;this._setSelectedItemLabel(f)},
_computeMenuVerticalOffset:function(c,f){return f?f:c?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var c=this.opened?"true":"false",f=this.contentElement;f&&f.setAttribute("aria-expanded",c)}});_.Mf=new _.fi("navigateAction");var YTF=new _.fi("formRenderer");var r6=function(){var c=_.Fj.apply(this,arguments)||this;c.showInput=!1;return c};
_.K(r6,_.Fj);_.r=r6.prototype;_.r.detached=function(){this.showInput&&window.removeEventListener("click",_.ia(this,this.closeOnOutsideClick_))};
_.r.stopPropagation_=function(c){this.showInput&&c.stopPropagation()};
_.r.closeOnOutsideClick_=function(c){this.closeOnOutsideClickCondition(c)&&(this.showInput=!1,window.removeEventListener("click",_.ia(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.r.closeOnOutsideClickCondition=function(){return!0};
_.r.closeOnOutsideClickHandler=function(){};
_.r.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.ia(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.r.openOnClickHandler=function(){};
_.r.showInputChanged=function(){};
_.r.setShowInput=function(c){this.showInput=c};
r6.prototype.setShowInput=r6.prototype.setShowInput;r6.prototype.showInputChanged=r6.prototype.showInputChanged;r6.prototype.openOnClickHandler=r6.prototype.openOnClickHandler;r6.prototype.openOnClick_=r6.prototype.openOnClick_;r6.prototype.closeOnOutsideClickHandler=r6.prototype.closeOnOutsideClickHandler;r6.prototype.closeOnOutsideClickCondition=r6.prototype.closeOnOutsideClickCondition;r6.prototype.closeOnOutsideClick_=r6.prototype.closeOnOutsideClick_;r6.prototype.stopPropagation_=r6.prototype.stopPropagation_;
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],r6.prototype,"showInput",void 0);_.y([_.Ta("click"),_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],r6.prototype,"stopPropagation_",null);_.y([_.m5("showInput"),_.D("design:type",Function),_.D("design:paramtypes",[Boolean]),_.D("design:returntype")],r6.prototype,"showInputChanged",null);_.y([_.tY()],r6);_.FKG=[r6.prototype];var th3;var bLc;var CY=function(){return _.z.apply(this,arguments)||this};
_.K(CY,_.z);_.r=CY.prototype;_.r.computePreselectedOption=function(c,f){return f===this.itemSelected_?c:void 0};
_.r.dataChanged_=function(){var c=this;this.preselectedSubreason=this.itemSelected_=-1;var f;(f=this.data)!=null&&f.key&&_.ol(this,function(){var d,q=Number((d=c.data)==null?void 0:d.key);!Number.isNaN(q)&&(c.itemSelected_=q,d=(d=(c.data.items||[])[q])&&d.optionSelectableItemRenderer&&d.optionSelectableItemRenderer.preselectedIndex)&&(c.preselectedSubreason=d)})};
_.r.isSubReasonHidden_=function(c,f){return c!=f};
_.r.onTopItemSelected_=function(c,f){for(var d=_.r1(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),q=0,Z=d.length;q<Z;q++)d[q].select(0);_.gS(this.hostElement,"yt-report-form-update",[f.item.value]);c.stopPropagation()};
_.r.onItemSelected_=function(c,f){_.gS(this.hostElement,"yt-report-form-update",[f.item.value]);c.stopPropagation()};
_.r.getItem_=function(c){return c.serviceItem?c.serviceItem:c.navigationItem?c.navigationItem:c.optionSelectableItemRenderer?c.optionSelectableItemRenderer:null};
_.r.computeText_=function(c){return(c=this.getItem_(c))?this.ytRendererBehavior.getSimpleString(c.text):null};
_.r.validate=function(){return this.itemSelected_!==-1};
_.r.computeAriaLabel_=function(c){var f=_.xC(c.text);(c=c.accessibility&&c.accessibility.accessibilityData&&c.accessibility.accessibilityData.label)&&(f+=". "+c);return f};
_.r.computeItemSelected_=function(c){return c};
_.r.preventSelection_=function(c){c.stopPropagation();this.tooltipTapped=!0};
_.r.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.r.updateItemSelectedFromBinding=function(c){this.itemSelected_=c.detail.value};
_.r.save=function(){var c;this.validate()&&(c=this.data)!=null&&c.items&&(c=this.data.items[this.itemSelected_],c!=null&&c.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(c.optionSelectableItemRenderer.submitEndpoint)||_.OX(this.hostElement,[c.optionSelectableItemRenderer.submitEndpoint])))};
CY.prototype.onPaperRippleTransitionEnd_=CY.prototype.onPaperRippleTransitionEnd_;CY.prototype.dataChanged_=CY.prototype.dataChanged_;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],CY.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],CY.prototype,"data",void 0);_.y([_.L({value:-1}),_.D("design:type",Number)],CY.prototype,"itemSelected_",void 0);
_.y([_.L({computed:"computeItemSelected_(itemSelected_)"}),_.D("design:type",Number)],CY.prototype,"value",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],CY.prototype,"restoreFocusOnClose",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],CY.prototype,"tooltipTapped",void 0);_.y([_.L({value:-1}),_.D("design:type",Number)],CY.prototype,"preselectedSubreason",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CY.prototype,"dataChanged_",null);_.y([_.Ta("transitionend"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CY.prototype,"onPaperRippleTransitionEnd_",null);_.y([_.vj({is:"yt-options-renderer",disableElementRegistration:!0})],CY);
_.h(CY,"yt-options-renderer",function(){if(bLc===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;th3===void 0&&(th3=document.createElement("template"));var q=th3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);bLc=c}c=bLc;return c},{mode:2});var KK3;var Ek3;var nkJ;var $aJ;var Quq;var STJ;var g6=function(){return _.z.apply(this,arguments)||this};
_.K(g6,_.z);g6.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
g6.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
g6.prototype.onTap=function(c){if(this.hostElement.classList.contains("selected")||_.gS(this.hostElement,"yt-share-panel-can-select-contact-action")[0])c&&c.detail&&(c.detail.x||c.detail.y)&&_.r1(this.hostElement).querySelector("#target").blur(),(c=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),c={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:c?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.gS(this.hostElement,"yt-share-panel-select-contact-action",[c])};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.y([_.L({observer:"onDataChanged"}),_.D("design:type",Object)],g6.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.D("design:type",String)],g6.prototype,"componentTitle",void 0);_.y([_.AY("#thumbnail"),_.D("design:type",Object)],g6.prototype,"thumbnail",void 0);_.y([_.vj({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],g6);
_.h(g6,"yt-enrolled-contact-renderer",function(){if(STJ===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Quq===void 0&&(Quq=document.createElement("template"));var q=Quq;d.call(f,q.content.cloneNode(!0),c.content.firstChild);STJ=c}c=STJ;return c},{mode:2});var LKF;var zEC;var kb=function(){return _.z.apply(this,arguments)||this};
_.K(kb,_.z);kb.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
kb.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
kb.prototype.onTap=function(c){if(this.hostElement.classList.contains("selected")||_.gS(this.hostElement,"yt-share-panel-can-select-contact-action")[0])c&&c.detail&&(c.detail.x||c.detail.y)&&_.r1(this.hostElement).querySelector("#target").blur(),(c=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),c={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:c?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.gS(this.hostElement,"yt-share-panel-select-contact-action",[c])};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.y([_.L({observer:"onDataChanged"}),_.D("design:type",Object)],kb.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.D("design:type",String)],kb.prototype,"componentTitle",void 0);_.y([_.AY("#thumbnail"),_.D("design:type",Object)],kb.prototype,"thumbnail",void 0);_.y([_.vj({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],kb);
_.h(kb,"yt-suggested-contact-renderer",function(){if(zEC===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;LKF===void 0&&(LKF=document.createElement("template"));var q=LKF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);zEC=c}c=zEC;return c},{mode:2});var Ob=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-share-panel-reset-action":"onReset"};return c};
_.K(Ob,_.z);Ob.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"}}}}}};
Ob.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.gS(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Ob.prototype.onReset=function(){for(var c=_.r1(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),f=c.length-1;f>=0;f--)c[f].classList.toggle("selected")};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Ob.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({observer:"onDataChanged"}),_.D("design:type",Object)],Ob.prototype,"data",void 0);
_.y([_.vj({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Ob);
_.h(Ob,"yt-contact-section-renderer",function(){if($aJ===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;nkJ===void 0&&(nkJ=document.createElement("template"));var q=nkJ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);$aJ=c}c=$aJ;return c},{mode:2});var li=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return c};
_.K(li,_.z);_.r=li.prototype;_.r.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"}}}};
_.r.onYtRefreshFormCommand=function(c){var f;(c=_.b((f=_.b(c,_.p2F))==null?void 0:f.formRenderer,YTF))&&this.set("data",c)};
_.r.reset=function(){var c=_.r1(this.hostElement).querySelector("#fields").children;c=_.C(c);for(var f=c.next();!f.done;f=c.next())f=f.value,f.reset&&f.reset()};
_.r.getForm=function(){var c={},f=_.r1(this.hostElement).querySelector("#fields").children;f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;if(!d.validate())return null;c[d.data.key]=d.value}return c};
_.r.submitFormFields=function(){if(this.fields)for(var c=_.C(this.fields),f=c.next();!f.done;f=c.next())f=f.value,f.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?f.save():f.nodeName==="YT-OPTIONS-RENDERER"&&f.save()};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],li.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],li.prototype,"data",void 0);_.y([_.YE("#fields > *"),_.D("design:type",Array)],li.prototype,"fields",void 0);
_.y([_.vj({is:"yt-form-renderer",disableElementRegistration:!0})],li);
_.h(li,"yt-form-renderer",function(){if(Ek3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;KK3===void 0&&(KK3=document.createElement("template"));var q=KK3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);Ek3=c}c=Ek3;return c},{mode:2});var Jop;var sb=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return c};
_.K(sb,_.z);sb.prototype.onCheckboxChange=function(c){this.data&&(c=(this.checked=_.oV(c).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}})};
sb.prototype.handleUpdateCheckboxCommand=function(c){(c=_.b(c,_.s5u))&&this.data&&this.data.id===c.id&&(this.set("data.disabled",c.disabled),this.set("data.title",c.title))};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],sb.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],sb.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],sb.prototype,"checked",void 0);_.y([_.v({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],sb);
_.h(sb,"ytd-settings-checkbox-renderer",function(){if(Jop!==void 0)return Jop;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Jop=c},{mode:1});var aaC;var B8=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return c};
_.K(B8,_.z);B8.prototype.dataChanged=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return c.radio.removeAttribute("checked"),!c.data||!c.data.id||c.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.suG()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(f=c.data&&c.data.id)?d.yield(iLC(c.data.id),4):d.jumpTo(3):(c.set("data.hidden",!0),d.jumpTo(0));d.nextAddress!=3&&(f=d.yieldResult);f&&_.gS(c.hostElement,"yt-select-settings-radio-option",[c.data.id]);_.Fm(d)})};
B8.prototype.onButtonChanged=function(c){_.oV(c).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.gS(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
B8.prototype.onSelectOption=function(c){this.data&&this.data.id&&(this.data.id===c?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
B8.prototype.dataChanged=B8.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],B8.prototype,"ytActionHandlerBehavior",void 0);_.y([_.AY("#radio"),_.D("design:type",Object)],B8.prototype,"radio",void 0);_.y([_.L(),_.D("design:type",Object)],B8.prototype,"data",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],B8.prototype,"dataChanged",null);_.y([_.v({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],B8);
_.h(B8,"ytd-settings-radio-option-renderer",function(){if(aaC!==void 0)return aaC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return aaC=c},{mode:1});var VhF;var ii=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return c};
_.K(ii,_.z);
ii.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"}}}};
ii.prototype.handleUpdateTextCommand=function(c){(c=_.b(c,_.B3r))&&this.data&&this.data.id===c.id&&this.set("data",c)};
ii.prototype.handleUpdateConnectedAppRendererCommand=function(c){if(_.b(c,_.mK_)&&this.data){var f,d;if(c=(f=_.b(c,_.mK_))==null?void 0:(d=f.newConnectedAppRenderer)==null?void 0:d.connectedAppRenderer)this.data=c}};
ii.prototype.computeConnectedAppStyle=function(c){return c.style?c.style.toLowerCase().replace(/_/g,"-"):""};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ii.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ii.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.D("design:type",String)],ii.prototype,"connectedAppStyle",void 0);_.y([_.v({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],ii);
_.h(ii,"ytd-connected-app-renderer",function(){if(VhF!==void 0)return VhF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return VhF=c},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.J5("iuT5Oc");

_.aO();
}catch(e){_._DumpException(e)}
try{
_.J5("L3n37");
var erJ=function(c){return c.watch.isLearningJourneyActive},NiE=_.m_(115994),I5h=_.m_(115993),PdU=function(c,f,d){var q=this;
var Z=d.dragDownAction;this.layer=0;this.JSC$22956_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return q.dragDownAction()}}}};
this.JSC$22956_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return q.dragDownAction()}}}};
this.fullscreen=!1;var M=_.bP();_.ij(M,NiE,this.layer);_.ij(M,I5h,this.layer);this.dragDownAction=function(){Z();_.ps(M,{visualElement:q.fullscreen?NiE:I5h})};
this.gesture=new _.gs(c,f,this.JSC$22956_watchConfig,"pandown");this.attach()};
PdU.prototype.attach=function(){this.gesture.attach()};
PdU.prototype.detach=function(){this.gesture.detach()};
PdU.prototype.update=function(c){this.fullscreen=c;this.gesture.config=c?this.JSC$22956_watchFullScreenConfig:this.JSC$22956_watchConfig};var Rrv=function(c){_.B7.call(this);var f=this;this.rootElement=c;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return f.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(d){f.initOrDisposeActiveModules(d)}));
this.onAttached()};
_.K(Rrv,_.B7);_.r=Rrv.prototype;_.r.getRoot=function(){return this.rootElement};
_.r.getElement=function(c){return this.rootElement.getElement(c)};
_.r.setPlayerResponse=function(c){this.playerResponse=c;this.publish("PLAYER_RESPONSE_UPDATED",c)};
_.r.getPlayerResponse=function(){return this.playerResponse};
_.r.setWatchNextResponse=function(c){this.watchNextResponse===c?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=c,this.publish("WATCH_NEXT_RESPONSE_UPDATED",c))};
_.r.getWatchNextResponse=function(){return this.watchNextResponse};
_.r.registerActionHandler=function(c,f){var d=this;if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var q={};_.Rb(_.Pw.getInstance(),(q[c]=f,q),this.getRoot())}else this.actionHandlers.has(c)||(this.actionHandlers.set(c,[]),q={},_.Rb(_.Pw.getInstance(),(q[c]=function(){var Z=_.hv.apply(0,arguments);return(d.actionHandlers.get(c)||[]).map(function(M){return M.apply(null,_.LT(Z))})},q),this.getRoot())),this.actionHandlers.get(c).push(f)};
_.r.unregisterActionHandler=function(c){if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.Um(_.Pw.getInstance(),(f[c]=!0,f),this.getRoot())}else(f=this.actionHandlers.get(c))?(f.pop(),f.length===0&&(f={},_.Um(_.Pw.getInstance(),(f[c]=!0,f),this.getRoot()),this.actionHandlers.delete(c))):_.u6(new _.KD("Attempted to unregister an action handler which is not registered.",c))};
_.r.addPageDisposeJob=function(c){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.tMk(this.rootElement.pageDisposeJobs,c)};
_.r.removePageDisposeJob=function(c){this.rootElement.pageDisposeJobs&&_.wz(this.rootElement.pageDisposeJobs,c)};
_.r.dispatchEvent=function(c,f){_.CZ(this.rootElement,c,f)};
_.r.provideRenderingData=function(c,f){this.rootElement.provideRenderingData(c,f)};
_.r.scrollWatchTo=function(c,f){var d;(d=this.watchScrollManager)==null||d.scrollWatchTo(c,f)};
_.r.focusOnPlayer=function(){var c=this.getElement("PLAYER");_.ol(c,function(){if(c&&c.firstElementChild){var f=c.querySelector(".html5-video-player");f&&(_.qe(_.ql().resolve(_.uS)),f.focus())}else _.u6(Error("Ao"))})};
_.r.updateCinematicFullscreenConfig=function(){var c=!!this.rootElement.theater,f=!!this.rootElement.fullscreen,d;(d=this.watchCinematicManager)==null||_.JI(d,f,c)};
_.r.subscribeToActiveChanged=function(c,f){f=f===void 0?!0:f;var d=_.bj(_.Gh(),erJ,function(q){c(q)});
f&&c(erJ(_.Gh().getState()));return d};
_.r.isActive=function(){return erJ(_.Gh().getState())};
_.r.onAttached=function(){var c=_.F("external_fullscreen");_.F("use_unified_flag_accessor")&&(c=_.ql().resolve(_.rvi).retriever.getFlag(_.qTT));(c||_.wi("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.r.initPersistentModules=function(){if(_.F("kevlar_watch_flexy_theater_manager")){var c=new _.dxS(this);_.ln(this,c)}c=new _.y5q(this);_.ln(this,c);c=new _.QY(this);_.ln(this,c);c=new _.u$(this);_.ln(this,c);c=new _.iLX(this);_.ln(this,c);c=new _.Lv(this);_.ln(this,c);_.F("kevlar_watch_flexy_playlist_manager")&&(c=new _.HLW(this),_.ln(this,c))};
_.r.initOrDisposeActiveModules=function(c){c?(this.watchScrollManager=new _.hI(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.fav(this)),this.activeModules.push(new _.M5S(this)),this.activeModules.push(new _.KKq(this)),this.activeModules.push(new _.vl(this)),_.F("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.kVD(this)),this.activeModules.push(new _.ro8(this)),_.F("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.nk8(this)),
_.F("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.H1h(this)),_.F("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.b18(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.F("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.OLq(this)),_.F("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.hW8(this)),c=_.F("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.F("kevlar_watch_flexy_comments_manager")&&!c&&this.activeModules.push(new _.aUh(this)),_.F("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Sd(this)),this.activeModules.push(new _.kDS(this)),this.activeModules.push(new _.juE(this)),_.F("web_enable_timely_actions")&&this.activeModules.push(new _.BbD(this)),_.F("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.u18(this)),_.F("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.$zh(this)),
_.F("web_fullscreen_components")&&this.activeModules.push(new _.BkW(this)),_.F("web_player_rtr_ctrls")&&this.activeModules.push(new _.hRM(this))):(_.cu(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.r.disposeInternal=function(){_.B7.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ci.Object.defineProperties(Rrv.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var UDh={},pC8=["learning-journey-engagement-panel","PAlearning_chat"];
UDh.YtdLearningJourneyWatchBehavior=[_.P.YtRendererBehavior,_.xq.YtPlayerListenerBehavior,_.rT.YtRendererstamperBehavior,_.Cy.YtActionHandlerBehavior,_.Kw.YtPageBehavior,_.F4.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 _.wi("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 _.wi("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 _.rx("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.rx("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:_.pB(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.pB(["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 c=this;this.watchController=void 0;this.pageDisposeJobs=[function(){c.showMetadataPlaceholder_()},
function(){_.F("web_watch_dont_clear_comments")||c.clearComments_()},
function(){c.clearPlayerAds_()},
function(){c.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 _.H9h(function(){return _.ry(c)},this.hostElement);
this.pageDisposeJobs.push(function(){c.youThereManager_.reset()});
_.F("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){c.resetFullerscreenEduButtonForNewPlayback_()}));
_.F("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.ls;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",_.ia(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(c){c&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:c}),c.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(c){_.F("kevlar_watch_flexy_theater_manager")&&(this.theater=c,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.F("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(c){!_.F("kevlar_watch_while_v2")&&!_.F("web_watch_pip")||c||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(c){this.active!==void 0&&(this.fullscreen=c,_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(c){this.active!==void 0&&(_.CZ(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.F("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(c>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(c){this.initCsi_();this.updatePageData_(c)},
updatePageData_:function(c){var f=this;if(c)if(this.data===c){this.onPageLoadWithSameData_();var d;(d=this.watchController)==null||d.setWatchNextResponse(this.data)}else this.data=c;this.playlist&&_.JQ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.V_("nw");this.loading=!1;_.Em(_.a7,function(){f.initDclkstatus_();var q,Z=((q=f.player)==null?void 0:q.getVideoData().cpn)||"";_.jwM(function(M,g){_.Buq(M,g,Z)})})},
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 c=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!c);this.set("loadingData.playlistLoading",c&&c!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),c=this.watchNextSkeletonEl_.firstElementChild;c;)c.classList.remove("hidden"),c=c.nextElementSibling;var f,d,q;c=(f=this.loadingData)==null?void 0:(d=f.endpoint)==null?void 0:(q=d.watchEndpoint)==null?void 0:q.videoId;var Z;c&&(Z="https://i.ytimg.com/vi/"+c+"/frame0.jpg");_.r1(this.hostElement).querySelector("#player").style.backgroundImage=Z?"url("+Z+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var c=_.r1(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&c&&(c.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var f,d;(d=(f=this.watchMetadata).updateSentimentBarWidth)==
null||d.call(f);var q,Z;(Z=(q=this.watchMetadata).resize)==null||Z.call(q)}_.r1(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(c){var f=_.r1(this.hostElement).querySelector(c);f?_.M9(f,!1):_.u6(new _.KD("Overscroll monitor not found for component: ",c))},
removeSplitScrollMouseTrap:function(c){var f=_.r1(this.hostElement).querySelector(c);f?_.rS(f):_.u6(new _.KD("Disposal component for  overscroll monitoring not found: ",c))},
onLoadingChanged_:function(c){c?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(c){var f=this;c?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.a7.addLowPriorityJob(function(){f.onWindowResized_(_.KX(!0))})},
updateTheaterModeState_:function(c){if(!_.F("kevlar_watch_flexy_theater_manager")){c=c||this.fullWindowMode_;if(this.theater!==void 0||c)this.theater=c;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();c&&_.rPD()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var c=this.theater;_.F("external_fullscreen")&&this.fullscreen&&(c=!0);c=c?_.r1(this.hostElement).querySelector("#player-full-bleed-container"):_.r1(this.hostElement).querySelector("#player-container-inner");var f=this.getPlayerContainer(),d=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip");f.parentElement!==c&&(d&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.ry(this).appendTo(c,f),c.appendChild(_.r1(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var c=this;return _.k(function(f){if(f.nextAddress==1)return f.yield(_.ql().resolve(_.yN).deactivate(),2);c.updatePlayerLocation();_.Fm(f)})},
updateCinematicsLocation:function(){var c=this.getElement("CINEMATICS");if(c){var f=this.getCinematicsLocationContainer();c.parentElement!==f&&f.appendChild(c);var d;(d=this.watchController)==null||d.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.r1(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.r1(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(c,f){var d=document.documentElement.hasAttribute("dark"),q=d&&_.F("web_cinematic_theater_mode"),Z=d&&_.F("web_cinematic_fullscreen");d=!d&&this.cinematicLightTheme;return c&&q||f&&Z||(f||c)&&d},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var c;(c=this.watchController)==null||c.setWatchNextResponse(this.data);_.F("kevlar_watch_flexy_comments_manager")||this.initComments_();_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ql().resolve(_.W_).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 f,
d,q;if((f=this.data)==null?0:(d=f.contents)==null?0:(q=d.twoColumnWatchNextResults)==null?0:q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Z,M;((Z=this.data)==null?0:(M=Z.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(c){var f;(f=this.watchController)==null||f.setPlayerResponse(this.playerData);c&&c.playabilityStatus&&(f=this.isVideoPlayable_(c.playabilityStatus,this.getPlayerOverlays_(this.data)),c=this.isLiveStreamOffline_(c.playabilityStatus),f&&!c||_.ol(this,function(){_.V_("pbu")}));
this.setPlayerAds_();_.kt(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(c){_.Gh().dispatch(_.CC({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));c?this.activate_():this.deactivate_()},
attached:function(){var c=this;this.watchController=new Rrv(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 f=_.ry(this);_.F("kevlar_disable_prepare_player")||f.preparePlayer();_.F("kevlar_watch_flexy_playlist_manager")||_.ql().resolve(_.W_).setPlayer(f);this.updatePageMediaQueries();f={"--ytd-watch-flexy-scrollbar-width":_.PE()+
"px"};!_.rx("kv_pl_mx_sz_ks")&&_.rx("kevlar_watch_max_player_width")&&(f["--ytd-watch-flexy-max-player-width-wide-screen"]=_.WTD+"px");_.rx("kevlar_watch_flexy_metadata_height")&&(f["--ytd-watch-flexy-space-below-player"]=_.DHq+"px");this.safeUpdateStyles(f);_.F("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new PdU(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return c.onPlayerTouchPanDown_()}}));
_.F("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.r1(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var c=_.PE(),f=_.Vp+c,d=f;this.fixedPanels&&(f+=_.y38);var q=657+c;c=1327+c;_.r1(this.hostElement).querySelector("#two-column-query").query="(min-width: "+f+"px)";_.r1(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(q+"px), (min-height: 630px) and (min-width: ")+(f+"px) and (max-width: ")+(c+"px)");_.r1(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(c+"px)");
_.r1(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+d+"px)"},
calculateCurrentPlayerSize_:function(){var c=_.r1(this.hostElement).querySelector("#miniplayer-bar").firstChild;return c&&c.active||this.theater||_.F("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.AT(NaN,NaN):_.CdM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.CdM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.GV(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var c=this;this.onWindowResized_(_.KX());_.F("browse_skeleton_removal_on_watch_killswitch")||_.wi("IS_SHELL_LOAD")&&_.ek3();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var f=_.ry(this);f.addEventListener("yt-player-updated",_.ia(this,this.onPlayerUpdated_));f.getPlayerPromise().then(function(d){c.playerApiReady_(d)});
_.F("kevlar_watch_flexy_playlist_manager")||(f=_.ql().resolve(_.W_),_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&f.addEventListener("yt-navigate",_.ia(this,this.onYtNavigate_)),f.setPlaylistComponent(_.r1(this.hostElement).querySelector("#playlist")),f.addEventListener("yt-playlist-data-updated",_.ia(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.a7.addLowPriorityJob(function(){_.CZ(c.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.ry(this).removeEventListener("yt-player-updated",_.ia(this,this.onPlayerUpdated_));if(!_.F("kevlar_watch_flexy_playlist_manager")){var c=_.ql().resolve(_.W_);_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&c.removeEventListener("yt-navigate",_.ia(this,this.onYtNavigate_));c.cancelVideoSkip();c.removeEventListener("yt-playlist-data-updated",_.ia(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.F("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.CZ(this.hostElement,"yt-autonav-pause-player",!1);c=_.q9();_.F("kevlar_exit_fullscreen_leaving_watch")&&c&&_.Zr(c)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(c){this.player&&this.player.updateVideoData({rvs:c.rvs})},
getPageContents:function(c){return c&&c.contents&&c.contents.twoColumnWatchNextResults&&c.contents.twoColumnWatchNextResults.results&&c.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(c){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c)},
onRetrieveLocation_:function(c,f){f.hasComments?f.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):f.locationRetrieved("/related_ajax",void 0);c.stopPropagation()},
onSubscriptionChanged_:function(c,f){this.player&&(f?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.bA("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.r1(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.r1(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(c){this.player=c;this.setPlayerState(c.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"))&&_.R9()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(c,f){f=f===void 0?!0:f;_.q9()&&_.F("external_fullscreen")&&_.Zr(document.documentElement);this.theaterRequested_=c;f&&_.YK("wide",c?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.F("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.gS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.CZ(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(c){_.wK(c,typeof this.player),this.player&&_.wK(c,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var c;((c=this.player)==null?0:c.isFullscreen())?this.player.toggleFullscreen():_.gS(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(c,f){return this.loading?f:!!Object.keys(c).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(c){if(c){c=_.C(c);for(var f=c.next();!f.done;f=c.next())f=f.value,f.youThereRenderer&&_.Ffh(this.youThereManager_,f.youThereRenderer)}},
setPlaylistData_:function(c){return c||{}},
userEngagementConfigDataChanged_:function(c){if(c)if(c.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var f=this.youThereManager_;_.ZZ()<c.lowEngagementThresholdMs||_.E5P(f,!0)}else c.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.gS(this.hostElement,"yt-autonav-pause-user-engagement",[c])},
isPlayerUnavailable_:function(c,f,d){return!!c&&!this.isVideoPlayable_(c,d)&&!f},
getPlayerOverlays_:function(c){return(c==null?void 0:c.playerOverlays)||null},
isVideoPlayable_:function(c,f){if(!c)return!1;var d=c.status==="OK"||c.status==="LIVE_STREAM_OFFLINE",q=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",c)||this.get("errorScreen.ypcTrailerRenderer",c);c=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",c);var Z;f=f==null?void 0:(Z=f.playerOverlayRenderer)==null?void 0:Z.gatedActionsOverlayRenderer;return!!d||!!q||!!c||!!f},
hasWatchNextResponseErrorRenderer:function(c){var f=this.getPageContents(c),d,q,Z,M,g;return!(c==null?0:(d=c.contents)==null?0:(q=d.twoColumnWatchNextResults)==null?0:q.secondaryResults)&&!!((Z=f[0])==null?0:(M=Z.itemSectionRenderer)==null?0:(g=M.contents[0])==null?0:g.backgroundPromoRenderer)},
isLiveStreamOffline_:function(c){return c?c.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(c,f,d){var q=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f),Z=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Z=_.F("web_no_skip_video_on_verification_checks")?(c==null?void 0:c.status)&&Z.includes(c.status):c&&c.status==="AGE_CHECK_REQUIRED";var M=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",c);M==void 0&&(M=!0);!d||this.isVideoPlayable_(c,this.getPlayerOverlays_(f))||
q||Z||!M||_.ql().resolve(_.W_).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.k4h()},
onPlayerFeedbackStartRequest_:function(c){_.gS(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:c}])},
onPlayerFeedbackArticleRequest_:function(c){_.gS(this.hostElement,"yt-help-dialog-requested",[c])},
onPlayerYpcContentRequest_:function(){var c,f,d,q,Z,M,g,O,l=((c=this.data)==null?NaN:(f=c.contents)==null?NaN:(d=f.twoColumnWatchNextResults)==null?NaN:(q=d.secondaryResults)==null?NaN:(Z=q.secondaryResults)==null?NaN:(M=Z.offerModule)==null?NaN:(g=M.tvfilmOfferModuleRenderer)==null?NaN:(O=g.actionButtons)==null?NaN:O.length)-1;c=[".offerButton.buttonRenderer.",".actionButtons."+(l>=0?l:0)+".buttonRenderer."];f=_.C(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(d=f.next();!d.done;d=f.next())for(d=d.value,q=_.C(c),Z=q.next();!Z.done;Z=q.next())if(Z="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+d+Z.value,Z=this.get(Z+"navigationEndpoint",this.data)||this.get(Z+"serviceEndpoint",this.data)||this.get(Z+"command",this.data)){_.Ae(Z,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(c){_.CZ(this.hostElement,"yt-autonav-pause-player",c)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(c){c()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(c){switch(c){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(c){switch(c){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.CZ(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(c)},
setPlayerState:function(c){_.Gh().dispatch(_.mgy(c))},
onPlayerSubscribe_:function(c){_.gS(this.hostElement,"yt-player-subscribe",[c])},
onPlayerUnsubscribe_:function(c){_.gS(this.hostElement,"yt-player-unsubscribe",[c])},
onPlayerAdYtShowToast_:function(c){_.gS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:c.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(c){if(c)return c},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(c){return!_.F("web_watch_move_summary_to_sd")&&!!c},
computeWatchMetadataRefresh:function(){return _.F("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var c,f,d,q;this.watchNextSecondaryResults=(c=this.data)==null?void 0:(f=c.contents)==null?void 0:(d=f.twoColumnWatchNextResults)==null?void 0:(q=d.secondaryResults)==null?void 0:q.secondaryResults}},
setRichGridRendererData:function(c){this.richGridRendererData=c},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var c,f=(c=this.data)==null?void 0:c.engagementPanels;if(f==null?0:f.length){c=null;f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=void 0;if(((q=d.engagementPanelSectionListRenderer)==null?void 0:q.targetId)==="engagement-panel-structured-description"){c=d;break}}var Z,M,g;c=(Z=c)==null?void 0:(M=Z.engagementPanelSectionListRenderer)==null?void 0:(g=M.content)==null?void 0:g.structuredDescriptionContentRenderer;if(c==null?0:c.items){Z=
[];M=_.C(c.items);for(g=M.next();!g.done;g=M.next()){g=g.value;if(!_.F("sd_horizontal_list_show_nav_killswitch")){var O=q=d=f=c=void 0,l=void 0,m=(c=g.horizontalCardListRenderer)==null?void 0:(f=c.header)==null?void 0:(d=f.richListHeaderRenderer)==null?void 0:(q=d.navigationButton)==null?void 0:(O=q.buttonRenderer)==null?void 0:(l=O.command)==null?void 0:l.commandExecutorCommand;m&&m.commands&&(m.commands=m.commands.filter(function(H){return!_.b(H,_.jKJ)}))}g.expandableVideoDescriptionBodyRenderer||
g.videoDescriptionHeaderRenderer||Z.push(g)}return{items:Z}}}},
constructWarning_:function(c){return{text:_.pC(c),type:"WARNING"}},
isPlaShelfEnabled_:function(c){if((this.get("adPlacements",c)||[]).length)return!0;c=this.get("playerAds",c)||[];return!(!c.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",c[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var c=this;_.CZ(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.F("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var f=this.getScrollTop()>0;this.gestures_&&(f?this.gestures_.detach():this.gestures_.attach());f!==this.showFullerscreenEdu_&&_.F("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=f,_.ry(this).getPlayerPromise().then(function(d){d.updateFullerscreenEduButtonVisibility(c.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.CZ(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var c=this;this.commentsReady=!1;_.a7.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Em(_.a7,function(){c.setComments_()},1E3)},
setComments_:function(){if(!_.F("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.V_("cmi");_.a7.cancelJob(this.setCommentsJobId_);var c=this.getPageContents(this.data);if(c&&c.length){c=_.C(c);for(var f=c.next();!f.done;f=c.next())if(f=f.value,this.get("itemSectionRenderer.sectionIdentifier",f)==="comment-item-section"){this.comments=f.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.CZ(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_();_.V_("cmc")},
doRemoveComments_:function(){this.comments={};_.F("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.a7.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.a7.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(c,f){var d=_.b(f.endpoint,_.pe);d&&(!(f=this.get("data.currentVideoEndpoint.watchEndpoint"))||d.videoId!==f.videoId||d.playlistId&&d.playlistId!==f.playlistId||d.index!==void 0&&d.index!==f.index||typeof d.startTimeSeconds!=="number"||(c.stopPropagation(),this.setScrollTop(0),_.ry(this).getPlayerPromise().then(function(q){var Z=d.startTimeSeconds;q.seekTo(Z);q.wakeUpControls();Z<q.getDuration()&&q.playVideo()})))},
updatePlayerStartTime_:function(){var c=_.REv();"t"in c&&(c=_.g5D(c.t),this.player.seekTo(c,!0))},
updateTitleFromWatchNext:function(c){c=this.getPageContents(c);var f,d;(c=_.xC(c==null?void 0:(f=c[0])==null?void 0:(d=f.videoPrimaryInfoRenderer)==null?void 0:d.title))&&_.CZ(this.hostElement,"yt-update-title",c)},
updateTitle_:function(c){c=this.get("videoDetails.title",c)||"";_.CZ(this.hostElement,"yt-update-title",c)},
syncWithRemoteVideo_:function(c,f,d){if(this.active&&this.player){var q=this.player.getVideoData();if(q.video_id===d&&(d=q.list,_.F("polymer_enable_mdx_queue")&&d&&d.startsWith("RQ")&&(d=void 0),q.video_id!==c||d!=f)){var Z;_.F("kevlar_player_watch_endpoint_navigation")?Z=_.GIk(_.q6X(c,f)):Z=this.buildWatchEndpoint_(c,f);_.CZ(this.hostElement,"yt-navigate",{endpoint:Z,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(c,f,d){return _.dW(c,f,d)},
initDclkstatus_:function(){_.rkM()},
attachWatchPageSkeleton_:function(){var c=document.querySelector("#watch-page-skeleton");if(c){var f=c.querySelector("#primary-info"),d=c.querySelector("#secondary-info"),q=c.querySelector("#related");f&&_.r1(this.hostElement).querySelector("#info-skeleton").appendChild(f);d&&_.r1(this.hostElement).querySelector("#meta-skeleton").appendChild(d);q&&(_.r1(this.hostElement).querySelector("#related-skeleton").appendChild(q),this.watchNextSkeletonEl_=q);_.Y6(c)}},
handlePlayerUpdated_:function(){_.ry(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(c,f){if(this.watchNextSkeletonEl_&&typeof f!=="undefined"){var d=this.watchNextSkeletonEl_.children,q=c&&c.indexSplices.length?c.indexSplices[0].index:0;c=Math.min(this.watchNextShownItems.length,d.length);f||(q=0,c=d.length);for(f=q;f<c;f++)d[f].classList.add("hidden")}},
onPlayerFullscreenChange_:function(c){_.F("external_fullscreen")||_.gS(this.hostElement,"yt-player-fullscreen",[c.fullscreen])},
onFullscreenChange_:function(c){this.fullscreen=c;this.gestures_&&this.gestures_.update(this.fullscreen);var f=_.ry(this);f.getPlayerPromise().then(function(d){d.setFauxFullscreen(!!_.q9())});
this.updateFullBleedElementLocations();c&&(f.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(c,f){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!f},
computeIsDonationShelfCollapsed_:function(c){return c},
computeShouldShowMerchShelf:function(c,f){return f&&!!c},
computeResponseHasComments:function(c){var f,d,q,Z,M;return!!(c==null?0:(f=c.contents)==null?0:(d=f.twoColumnWatchNextResults)==null?0:(q=d.results)==null?0:(Z=q.results)==null?0:(M=Z.contents)==null?0:M.some(function(g){var O;return(g==null?void 0:(O=g.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(c,f){this.responseHasComments=this.computeResponseHasComments(this.data);return!!c&&!!Object.keys(c).length&&!f},
identity:_.Vn,onWindowResized_:function(c){this.windowSize_=c;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.F("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.F("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(c){var f=this;c&&c.type!=="dataloaded"&&c.type!=="dataupdated"||_.ry(this).getPlayerPromise().then(function(d){var q=d.getPlayerState();q!==5&&q!==0&&(d=1/d.getVideoAspectRatio(),f.videoHeightToWidthRatio_!==d&&(f.videoHeightToWidthRatio_=d))})},
schedulePlayerSizeUpdate_:function(c){var f=this,d=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"),q=function(){if(f.watchMetadata){var Z,M;(M=(Z=f.watchMetadata).resize)==null||M.call(Z)}_.ry(f).getPlayerPromise().then(function(g){if(_.F("kevlar_set_internal_player_size")){if(!d||!f.isMiniplayerActive()){var O=f.calculateCurrentPlayerSize_();g.setInternalSize(O.width,O.height)}}else g.setSize(NaN,NaN);_.F("kevlar_watch_while")&&f.updateWatchWhileScrollThreshold_()})};
c?q():_.X8(_.a7,q)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(c){this.set("data.survey",c.detail)},
onYtShowSurveyCommand_:function(c){this.set("data.survey",_.b(c,_.mDD).survey)},
onDownloadedVideoDeleted:function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1){if(!f.active||(d=f.playerData)==null||!d.offlineState||f.videoId!==c)return Z.return();(q=f.player)==null||q.stopVideo();_.F7().navigatingAwayFromWatchDeletedVideo=!0;_.Ae(_.MSG,f.hostElement);return Z.yield(_.F7().navigationFinishPromise,2)}_.F7().navigatingAwayFromWatchDeletedVideo=!1;_.Fm(Z)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var c;this.theater?c=_.uk(.5625*this.windowSize_.width,480,this.windowSize_.height-185):c=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==c&&(this.watchWhileScrollThreshold_=c,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var c=_.r1(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&c){var f=this.windowSize_.height>=624,d=this.active?this.getScrollTop():0;!c.active&&f&&d>=this.watchWhileScrollThreshold_?(c.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):c.active&&(!f||d<this.watchWhileScrollThreshold_&&!_.q9())&&(c.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(c,f){if(c!==!0||f!==void 0){c=!_.F("live_chat_over_engagement_panels");f=_.r1(this.hostElement).querySelector("#chat-container");var d=_.r1(this.hostElement).querySelector("#plj-sidebar"),q=_.r1(this.hostElement).querySelector("#panels"),Z=_.r1(this.hostElement).querySelector("#plj-panels"),M=_.r1(this.hostElement).querySelector("#plj-playlist"),g=_.r1(this.hostElement).querySelector("#alerts"),O=_.r1(this.hostElement).querySelector("#playlist"),l=_.r1(this.hostElement).querySelector("#related"),
m=_.r1(this.hostElement).querySelector("#donation-shelf"),H=_.r1(this.hostElement).querySelector("#comments");this.isTwoColumns_?(g=_.r1(this.hostElement).querySelector("#secondary-inner"),g.appendChild(d),d.appendChild(M),M.appendChild(O),d.appendChild(Z),c&&g.appendChild(q),_.F("web_watch_theater_chat")||g.appendChild(f),c||g.appendChild(q),g.appendChild(m),g.appendChild(l)):(c&&_.Vv(q,g),_.Vv(O,g),_.F("web_watch_theater_chat")||_.Vv(f,g),c||_.Vv(q,g),_.Vv(m,g),H&&(Z&&_.Vv(Z,H),_.Vv(l,H)));_.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 c=_.r1(this.hostElement).querySelector("#chat-container"),f=this.theater&&!this.fullscreen||_.F("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&f?_.F("web_watch_theater_chat_beside_player")?(f=_.r1(this.hostElement).querySelector("#panels-full-bleed-container"),(c==null?void 0:c.parentElement)!==f&&f.append(c),this.panelsBesidePlayer=!0):_.F("web_watch_theater_fixed_chat")&&
(f=_.r1(this.hostElement).querySelector("#columns"),(c==null?void 0:c.parentElement)!==f&&f.append(c),this.fixedPanels=!0):(_.F("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.F("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),f=_.r1(this.hostElement).querySelector("#playlist"),c&&f?_.XB(c,f):_.u6(new _.KD("Missing element when updating chat location",{"chatContainer defined":!!c,"playlist defined":!!f})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(c,f){return _.F("sw_metadata_vis_toggle_ks")?!0:!!c||!!f},
computeForceDarkPanelTheme:function(c){return _.F("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&c:!1},
safeUpdateStyles:function(c){try{_.la(this.hostElement,c)}catch(f){_.u6(f)}},
videoHeightToWidthRatioChanged_:function(c,f){f&&(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(c){this.videoHeightToWidthRatio_=1/c},
computeIsVerticalVideo_:function(c){return c>=1},
computeIsFourThreeToSixteenNineVideo_:function(c){return c<=.7501&&c>=.5624},
computeIsExtraWideVideo_:function(c){return c<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.ry(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.ry(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.n5M(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(c){var f=_.T7(c)||0;_.iK(c,f+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var c=_.T7("yt-fullerscreen-edu-button-click-count")||0,f=_.T7("yt-fullerscreen-edu-button-shown-count")||0,d=_.rx("external_fullscreen_button_shown_threshold"),q=c>=_.rx("external_fullscreen_button_click_threshold")||f>=d;_.ry(this).getPlayerPromise().then(function(Z){Z.updateFullerscreenEduButtonSubtleModeState(q)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(c,f){return f},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ql().resolve(_.W_).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var c=this;this.panelMaxHeightUpdateJob_&&_.a7.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.a7.addLowPriorityJob(function(){c.panelMaxHeightUpdateJob_=0;var f;!c.isTwoColumns_||c.theater||c.fullscreen?f=460:f=c.calculateNormalPlayerSize_().height;var d=f+"px";_.F("live_chat_taller_height")&&!c.theater&&(d="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.F("live_chat_medium_height")&&
!c.theater&&(d="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.F("live_chat_scaled_height")&&!c.theater&&(d="calc(100vh - var(--ytd-toolbar-height) - 238px)");c.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":f+"px","--ytd-watch-flexy-chat-max-height":d,"--ytd-watch-flexy-structured-description-max-height":f+"px","--ytd-watch-flexy-comments-panel-max-height":f+"px","--ytd-comments-engagement-panel-content-height":f+"px"})})},
onYtShowEngagementPanelScrimAction_:function(c){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",c)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ll(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(c){var f=_.r1(this.hostElement).querySelector("#engagement-panel-scrim");c?f.addEventListener("tap",_.ia(this,this.onEngagementPanelScrimClick_)):f.removeEventListener("tap",_.ia(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(c){if(this.hostElement.contains(c)&&!this.scrollToAnimation_.isAnimating()){var f=c.offsetTop-24;c=c.offsetTop+c.offsetHeight+24;var d=this.getPageScrollingElement(),q=this.getScrollTop(),Z=q+d.clientHeight-56;if(f<q+56)f-=56;else if(c>Z)f=c-d.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtSignalActionScrollToComments:function(){var c=this.hostElement.querySelector("#comments");if(c&&!this.scrollToAnimation_.isAnimating()){c=c.offsetTop-56-24;if(_.F("kevlar_comment_teaser_scroll_to_midpoint")&&(c-=_.Yc().height/3,c<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtEngagementPanelVisibleChanged:function(c,f,d){this.active&&this.trackEngagementPanelVisibility&&!_.i9X.includes(d)&&(f==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(d),f!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&f!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(d),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(c){return c?"":"watch-active-metadata"},
computeNewMetadataClass:function(c){return c?"watch-active-metadata":""},
computeFullBleedPlayer:function(c,f){return c||f},
computeDefaultLayout:function(c){return!c},
computeDefaultTwoColumnLayout:function(c,f){return!c&&f},
computeWatchWhilePanelsActive:function(c,f){return c||f},
computeNoBorderOnChat:function(c){return _.F("web_watch_theater_chat_no_border")&&c},
computeLiveChatPresentAndExpanded:function(c,f){return c&&!f},
computePanelExpanded:function(c,f,d){return c||f||d},
onChangeMarkersVisibility:function(c){_.ry(this).getPlayerPromise().then(function(f){var d;(d=f.changeMarkerVisibility)==null||d.call(f,_.b(c,_.ed).isVisible||!1,_.b(c,_.ed).entityKeys||[],_.b(c,_.ed).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(c){this.liveChatCollapsed=c.detail;_.Gh().dispatch(_.Bi8(c.detail))},
provideRenderingData:function(c,f){switch(c){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=f;break;case "PRIMARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=f);this.videoPrimaryInfoRendererValue=f==null?void 0:f.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=f);this.videoSecondaryInfoRendererValue=f==null?void 0:f.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
f;break;case "CLARIFICATION":this.clarifyBoxValue=f;break;case "LIVE_CHAT":this.conversationBar=f;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=f;break;case "PLAYLIST":this.externalPlaylistData_=f!=null?f:{};break;case "MERCH_SHELF":this.merchShelfValue=f==null?void 0:f.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=f;break;case "OFFER_MODULE":this.offerModule=f;break;case "LIMITED_STATE":this.limitedStateValue=f;break;case "DONATION_SHELF":this.donation=f;break;
case "ALERTS":this.alertsValue=f;break;case "COMMENTS":this.comments=f;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=f;break;case "ENGAGEMENT_PANELS":this.engagementPanels=f;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=f;break;case "RICH_GRID_RENDERER":this.richGridRendererData=f;break;case "EXPANDABLE_METADATA":this.expandableMetadata=f;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=f}},
toggleCinematicsActive:function(c){this.cinematicsActive=c},
isMiniplayerActive:function(){return _.ql().resolve(_.yN).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(c){return pC8.map(function(f){return c.find(function(d){var q;return(d==null?void 0:(q=d.engagementPanelSectionListRenderer)==null?void 0:q.targetId)===f})}).filter(function(f){return f!==void 0})},
getNonLearningJourneyEngagementPanels:function(c){return c.filter(function(f){var d;return!pC8.includes((f==null?void 0:(d=f.engagementPanelSectionListRenderer)==null?void 0:d.targetId)||"")})}}];var xDU;var Gl=function(){var c=_.z.apply(this,arguments)||this;c.flexy=!0;c.learningJourney=!0;c.roundedInfoPanel=!0;c.viewTransitionEnabled=_.F("enable_player_resize_transition");c.smallerChatMinHeight=_.F("live_chat_smaller_min_height");c.cinematicTheaterMode=_.F("web_cinematic_theater_mode");c.transparentTheaterMode=_.F("web_transparent_theater_mode");c.cinematicFullscreen=_.F("web_cinematic_fullscreen");c.useLargerMaxPlayerValue=_.F("kevlar_flexy_use_larger_player_value");c.cinematicFullscreenV2=_.F("web_cinematic_fullscreen_v2");
c.isDarkTheme=document.documentElement.hasAttribute("dark");c.theaterLargerPlayer=_.F("web_watch_theater_larger_player");c.defaultCollapsePlaylist=_.F("web_watch_default_collapse_playlist");return c};
_.K(Gl,_.z);_.r=Gl.prototype;_.r.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.r.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.r.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.r.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.r.ready=function(){var c=this,f=function(){c.onColumnScroll()};
this.primary.addEventListener("scroll",f);this.secondary.addEventListener("scroll",f)};
_.r.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.r.updateIsTwoColumnsFromBinding=function(c){_.F("web_watch_update_narrow_width_killswitch")||_.Gh().dispatch(_.xNq(!c.detail.value));this.ytdWatchBehavior.isTwoColumns_=c.detail.value};
_.r.updateFlexySmallWindowFromBinding=function(c){this.ytdWatchBehavior.flexySmallWindow_=c.detail.value};
_.r.updateFlexyLargeWindowFromBinding=function(c){this.ytdWatchBehavior.flexyLargeWindow_=c.detail.value};
_.r.updateWatchWhileWindowSizeSufficientFromBinding=function(c){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=c.detail.value};
_.r.updateWatchNextCanShowMoreFromBinding=function(c){this.ytdWatchBehavior.watchNextCanShowMore=c.detail.value};
_.r.updateShownItemsFromBinding=function(c){c.detail.path?this.set(c.detail.path,c.detail.value):this.ytdWatchBehavior.watchNextShownItems=c.detail.value};
_.r.getElement=function(c){switch(c){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22965_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22965_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ci.Object.defineProperties(Gl.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null||!c.pageVisualEffects)return!1;for(var f=0;f<this.data.pageVisualEffects.length;f++)if(c=_.b(this.data.pageVisualEffects[f],_.YJ))return f=void 0,(f=c.config)==null?void 0:f.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.learningJourneyEngagementPanels)==null?void 0:c.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var c,f=(c=this.learningJourneyEngagementPanels)==null?void 0:c.find(function(Y){var t;return(Y==null?void 0:(t=Y.engagementPanelSectionListRenderer)==null?void 0:t.panelIdentifier)==="learning-journey-engagement-panel"});
if(f){var d,q,Z,M,g,O,l,m,H;if(c=(m=((l=(g=((M=f==null?void 0:(d=f.engagementPanelSectionListRenderer)==null?void 0:(q=d.content)==null?void 0:(Z=q.sectionListRenderer)==null?void 0:Z.contents)!=null?M:[])[0])==null?void 0:(O=g.itemSectionRenderer)==null?void 0:O.contents)!=null?l:[])[0])==null?void 0:(H=m.accordionViewModel)==null?void 0:H.onTitleTap){var A=_.D9(c);if(A)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Hh.instance.resolveCommand(A)}}}}}}});
_.ci.Object.defineProperties(Gl,{template:{configurable:!0,enumerable:!0,get:function(){if(xDU===void 0){var c=document.createElement("template");_.n(c,'\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="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>\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);xDU=c}c=xDU;return c}}});
Gl.prototype.updateMiniplayerIsActiveValue=Gl.prototype.updateMiniplayerIsActiveValue;Gl.prototype.updateScrollTopValue=Gl.prototype.updateScrollTopValue;Gl.prototype.updateFullscreenValue=Gl.prototype.updateFullscreenValue;Gl.prototype.updateTheaterValue=Gl.prototype.updateTheaterValue;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Gl.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(UDh.YtdLearningJourneyWatchBehavior),_.D("design:type",Object)],Gl.prototype,"ytdWatchBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Gl.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Gl.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Gl.prototype,"playerData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"flexy",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"learningJourney",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"roundedInfoPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"viewTransitionEnabled",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"smallerChatMinHeight",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"cinematicTheaterMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"transparentTheaterMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"cinematicFullscreen",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"useLargerMaxPlayerValue",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"cinematicFullscreenV2",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"isDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gl.prototype,"theaterLargerPlayer",void 0);_.y([_.L(),_.D("design:type",Object)],Gl.prototype,"defaultCollapsePlaylist",void 0);_.y([_.L({selector:_.Wr}),_.D("design:type",Object)],Gl.prototype,"theaterValue",void 0);
_.y([_.L({selector:_.D7}),_.D("design:type",Object)],Gl.prototype,"fullscreenValue",void 0);_.y([_.L({selector:_.bL}),_.D("design:type",Object)],Gl.prototype,"scrollTopValue",void 0);_.y([_.L({selector:_.X5}),_.D("design:type",Object)],Gl.prototype,"miniplayerIsActiveValue",void 0);_.y([_.AY("#ytd-plj-player"),_.D("design:type",HTMLElement)],Gl.prototype,"ytdPlayer",void 0);_.y([_.AY("#playlist"),_.D("design:type",HTMLElement)],Gl.prototype,"JSC$22965_ytdPlaylistPanelRenderer",void 0);
_.y([_.sf("ytd-comments"),_.D("design:type",HTMLElement)],Gl.prototype,"ytdComments",void 0);_.y([_.AY("#primary"),_.D("design:type",HTMLElement)],Gl.prototype,"primary",void 0);_.y([_.AY("#secondary"),_.D("design:type",HTMLElement)],Gl.prototype,"secondary",void 0);_.y([_.AY("#player-container"),_.D("design:type",HTMLElement)],Gl.prototype,"playerContainer",void 0);_.y([_.AY("#cinematics"),_.D("design:type",HTMLElement)],Gl.prototype,"JSC$22965_cinematics",void 0);
_.y([_.m5("theaterValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Gl.prototype,"updateTheaterValue",null);_.y([_.m5("fullscreenValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Gl.prototype,"updateFullscreenValue",null);_.y([_.m5("scrollTopValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Gl.prototype,"updateScrollTopValue",null);
_.y([_.m5("miniplayerIsActiveValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Gl.prototype,"updateMiniplayerIsActiveValue",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Gl.prototype,"cinematicLightTheme",null);_.y([_.L({reflectToAttribute:!0}),_.S("learningJourneyEngagementPanels"),_.D("design:type",Object),_.D("design:paramtypes",[])],Gl.prototype,"hasLearningJourneyPanels",null);
_.y([_.S("learningJourneyEngagementPanels"),_.D("design:type",Object),_.D("design:paramtypes",[])],Gl.prototype,"backButtonData",null);_.y([_.v({is:"ytd-watch-learning-journey"})],Gl);_.O2.registerService(_.ZNM,Gl);
_.aO();
}catch(e){_._DumpException(e)}
try{
_.J5("Tm0L3c");
var hrh;var wCv;var yk8=function(){return _.z.apply(this,arguments)||this};
_.K(yk8,_.z);_.y([_.v({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],yk8);
_.h(yk8,"ytd-ghost-comments-renderer",function(){if(wCv===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);wCv=c}c=wCv;return c},{mode:1});var WfE;var DDU=function(){return _.z.apply(this,arguments)||this};
_.K(DDU,_.z);_.y([_.v({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],DDU);
_.h(DDU,"ytd-ghost-watch-metadata-renderer",function(){if(WfE===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);WfE=c}c=WfE;return c},{mode:1});var o4=function(){var c=_.z.apply(this,arguments)||this;c.ghostGridRenderer={rows:6};c.roundedInfoPanel=!0;c.hideOfferModules=!0;c.smallerChatMinHeight=_.F("live_chat_smaller_min_height");c.cinematicTheaterMode=_.F("web_cinematic_theater_mode");c.transparentTheaterMode=_.F("web_transparent_theater_mode");c.darkerPanels=_.F("web_watch_darker_panels");c.cinematicFullscreen=_.F("web_cinematic_fullscreen");c.cinematicFullscreenV2=_.F("web_cinematic_fullscreen_v2");c.isDarkTheme=document.documentElement.hasAttribute("dark");
return c};
_.K(o4,_.z);_.r=o4.prototype;_.r.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.r.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.r.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.r.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.r.ready=function(){var c=this,f=function(){c.onColumnScroll()};
this.primary.addEventListener("scroll",f);this.secondary.addEventListener("scroll",f)};
_.r.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.r.updateIsTwoColumnsFromBinding=function(c){this.ytdWatchBehavior.isTwoColumns_=c.detail.value};
_.r.updateFlexySmallWindowFromBinding=function(c){this.ytdWatchBehavior.flexySmallWindow_=c.detail.value};
_.r.updateFlexyLargeWindowFromBinding=function(c){this.ytdWatchBehavior.flexyLargeWindow_=c.detail.value};
_.r.updateWatchWhileWindowSizeSufficientFromBinding=function(c){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=c.detail.value};
_.r.updateWatchNextCanShowMoreFromBinding=function(c){this.ytdWatchBehavior.watchNextCanShowMore=c.detail.value};
_.r.updateShownItemsFromBinding=function(c){_.F("swatcheroo_direct_use_rich_grid")||(c.detail.path?this.set(c.detail.path,c.detail.value):this.ytdWatchBehavior.watchNextShownItems=c.detail.value)};
_.r.getElement=function(c){switch(c){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22953_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22953_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ci.Object.defineProperties(o4.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null||!c.pageVisualEffects)return!1;for(var f=0;f<this.data.pageVisualEffects.length;f++)if(c=_.b(this.data.pageVisualEffects[f],_.YJ))return f=void 0,(f=c.config)==null?void 0:f.enableInLightTheme;return!1}}});
o4.prototype.updateMiniplayerIsActiveValue=o4.prototype.updateMiniplayerIsActiveValue;o4.prototype.updateScrollTopValue=o4.prototype.updateScrollTopValue;o4.prototype.updateFullscreenValue=o4.prototype.updateFullscreenValue;o4.prototype.updateTheaterValue=o4.prototype.updateTheaterValue;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],o4.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.urM.YtdWatchBehavior),_.D("design:type",Object)],o4.prototype,"ytdWatchBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],o4.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],o4.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],o4.prototype,"ghostGridRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],o4.prototype,"playerData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"roundedInfoPanel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"hideOfferModules",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"smallerChatMinHeight",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"cinematicTheaterMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"transparentTheaterMode",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"darkerPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"cinematicFullscreen",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"cinematicFullscreenV2",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],o4.prototype,"isDarkTheme",void 0);_.y([_.L({selector:_.Wr}),_.D("design:type",Object)],o4.prototype,"theaterValue",void 0);
_.y([_.L({selector:_.D7}),_.D("design:type",Object)],o4.prototype,"fullscreenValue",void 0);_.y([_.L({selector:_.bL}),_.D("design:type",Object)],o4.prototype,"scrollTopValue",void 0);_.y([_.L({selector:_.X5}),_.D("design:type",Object)],o4.prototype,"miniplayerIsActiveValue",void 0);_.y([_.AY("#ytd-player"),_.D("design:type",HTMLElement)],o4.prototype,"ytdPlayer",void 0);_.y([_.AY("#playlist"),_.D("design:type",HTMLElement)],o4.prototype,"JSC$22953_ytdPlaylistPanelRenderer",void 0);
_.y([_.AY("#ytd-comments"),_.D("design:type",HTMLElement)],o4.prototype,"ytdComments",void 0);_.y([_.AY("#primary"),_.D("design:type",HTMLElement)],o4.prototype,"primary",void 0);_.y([_.AY("#secondary"),_.D("design:type",HTMLElement)],o4.prototype,"secondary",void 0);_.y([_.AY("#player-container"),_.D("design:type",HTMLElement)],o4.prototype,"playerContainer",void 0);_.y([_.AY("#cinematics"),_.D("design:type",HTMLElement)],o4.prototype,"JSC$22953_cinematics",void 0);
_.y([_.m5("theaterValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],o4.prototype,"updateTheaterValue",null);_.y([_.m5("fullscreenValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],o4.prototype,"updateFullscreenValue",null);_.y([_.m5("scrollTopValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],o4.prototype,"updateScrollTopValue",null);
_.y([_.m5("miniplayerIsActiveValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],o4.prototype,"updateMiniplayerIsActiveValue",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],o4.prototype,"cinematicLightTheme",null);
_.h(o4,"ytd-watch-grid",function(){if(hrh===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);hrh=c}c=hrh;return c},{mode:2});_.O2.registerService(_.q0Y,o4);
_.aO();
}catch(e){_._DumpException(e)}
try{
_.J5("CF909");
var v5S;var xY=function(){var c=_.z.apply(this,arguments)||this;c.flexy=!0;c.roundedInfoPanel=!0;c.viewTransitionEnabled=_.F("enable_player_resize_transition");c.smallerChatMinHeight=_.F("live_chat_smaller_min_height");c.cinematicTheaterMode=_.F("web_cinematic_theater_mode");c.transparentTheaterMode=_.F("web_transparent_theater_mode");c.cinematicFullscreen=_.F("web_cinematic_fullscreen");c.useLargerMaxPlayerValue=_.F("kevlar_flexy_use_larger_player_value");c.isDarkTheme=document.documentElement.hasAttribute("dark");
c.defaultCollapsePlaylist=_.F("web_watch_default_collapse_playlist");c.retroModeReduxValue=!1;return c};
_.K(xY,_.z);_.r=xY.prototype;_.r.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.r.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.r.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.r.updateRetroModeReduxValue=function(){_.F("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.r.ready=function(){var c=this,f=function(){c.onColumnScroll()};
this.primary.addEventListener("scroll",f);this.secondary.addEventListener("scroll",f)};
_.r.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.r.updateIsTwoColumnsFromBinding=function(c){_.F("web_watch_update_narrow_width_killswitch")||_.Gh().dispatch(_.xNq(!c.detail.value));this.ytdWatchBehavior.isTwoColumns_=c.detail.value};
_.r.updateFlexySmallWindowFromBinding=function(c){this.ytdWatchBehavior.flexySmallWindow_=c.detail.value};
_.r.updateFlexyLargeWindowFromBinding=function(c){this.ytdWatchBehavior.flexyLargeWindow_=c.detail.value};
_.r.updateWatchWhileWindowSizeSufficientFromBinding=function(c){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=c.detail.value};
_.r.updateWatchNextCanShowMoreFromBinding=function(c){this.ytdWatchBehavior.watchNextCanShowMore=c.detail.value};
_.r.updateShownItemsFromBinding=function(c){c.detail.path?this.set(c.detail.path,c.detail.value):this.ytdWatchBehavior.watchNextShownItems=c.detail.value};
_.r.getElement=function(c){switch(c){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22948_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22948_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.ci.Object.defineProperties(xY.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null||!c.pageVisualEffects)return!1;for(var f=0;f<this.data.pageVisualEffects.length;f++)if(c=_.b(this.data.pageVisualEffects[f],_.YJ))return f=void 0,(f=c.config)==null?void 0:f.enableInLightTheme;return!1}}});
_.ci.Object.defineProperties(xY,{template:{configurable:!0,enumerable:!0,get:function(){if(v5S===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);v5S=c}c=v5S;return c}}});
xY.prototype.updateRetroModeReduxValue=xY.prototype.updateRetroModeReduxValue;xY.prototype.updateScrollTopValue=xY.prototype.updateScrollTopValue;xY.prototype.updateFullscreenValue=xY.prototype.updateFullscreenValue;xY.prototype.updateTheaterValue=xY.prototype.updateTheaterValue;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],xY.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.urM.YtdWatchBehavior),_.D("design:type",Object)],xY.prototype,"ytdWatchBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],xY.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xY.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],xY.prototype,"playerData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"flexy",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"roundedInfoPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"viewTransitionEnabled",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"smallerChatMinHeight",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"cinematicTheaterMode",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"transparentTheaterMode",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"cinematicFullscreen",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"useLargerMaxPlayerValue",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xY.prototype,"isDarkTheme",void 0);_.y([_.L(),_.D("design:type",Object)],xY.prototype,"defaultCollapsePlaylist",void 0);
_.y([_.L({selector:_.Wr}),_.D("design:type",Object)],xY.prototype,"theaterValue",void 0);_.y([_.L({selector:_.D7}),_.D("design:type",Object)],xY.prototype,"fullscreenValue",void 0);_.y([_.L({selector:_.bL}),_.D("design:type",Object)],xY.prototype,"scrollTopValue",void 0);_.y([_.L({selector:_.X5}),_.D("design:type",Object)],xY.prototype,"miniplayerIsActive",void 0);_.y([_.L({selector:function(c){return c.watch.isWatchRetroMode}}),
_.D("design:type",Object)],xY.prototype,"retroModeReduxValue",void 0);_.y([_.sf("ytd-player"),_.D("design:type",HTMLElement)],xY.prototype,"ytdPlayer",void 0);_.y([_.AY("#playlist"),_.D("design:type",HTMLElement)],xY.prototype,"JSC$22948_ytdPlaylistPanelRenderer",void 0);_.y([_.sf("ytd-comments"),_.D("design:type",HTMLElement)],xY.prototype,"ytdComments",void 0);_.y([_.AY("#primary"),_.D("design:type",HTMLElement)],xY.prototype,"primary",void 0);
_.y([_.AY("#secondary"),_.D("design:type",HTMLElement)],xY.prototype,"secondary",void 0);_.y([_.AY("#player-container"),_.D("design:type",HTMLElement)],xY.prototype,"playerContainer",void 0);_.y([_.AY("#below"),_.D("design:type",HTMLElement)],xY.prototype,"below",void 0);_.y([_.AY("#cinematics"),_.D("design:type",HTMLElement)],xY.prototype,"JSC$22948_cinematics",void 0);
_.y([_.m5("theaterValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xY.prototype,"updateTheaterValue",null);_.y([_.m5("fullscreenValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xY.prototype,"updateFullscreenValue",null);_.y([_.m5("scrollTopValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xY.prototype,"updateScrollTopValue",null);
_.y([_.m5("retroModeReduxValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xY.prototype,"updateRetroModeReduxValue",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],xY.prototype,"cinematicLightTheme",null);_.y([_.v({is:"ytd-watch-flexy"})],xY);_.O2.registerService(_.j3z,xY);
_.aO();
}catch(e){_._DumpException(e)}
try{
_.J5("nmfa2d");
var PmP;var Wl=function(){var c=_.z.apply(this,arguments)||this;c.hidden=!1;c.errorScreen=null;c.playlistData={};return c};
_.K(Wl,_.z);_.r=Wl.prototype;_.r.getPlayer=function(){return this.ytdPlayer};
_.r.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:_.pB(["aa","eocs"])}}};
_.r.onActiveChanged=function(){_.Gh().dispatch(_.ST8(this.ytPageBehavior.active))};
_.r.playerDataChanged=function(){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData)};
_.r.dataChanged=function(){var c;(c=this.watchController)==null||c.setWatchNextResponse(this.data)};
_.r.sizeChanged=function(){var c,f;(f=(c=this.metadata).resize)==null||f.call(c)};
_.r.attached=function(){this.watchController=new _.wM(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.r.detached=function(){_.GV(this.watchController);this.watchController=void 0};
_.r.getPlayerContainer=function(){return this.playerContainer};
_.r.getElement=function(c){switch(c){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.r.provideRenderingData=function(c,f){switch(c){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=f;break;case "ERROR_SCREEN":this.errorScreen=f!=null?f:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=f;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=f;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=f;break;case "RICH_METADATA":this.richMetadataRowContainer=f;break;case "CLARIFICATION":this.clarificationData=f;break;case "PLAYLIST":this.playlistData=
f!=null?f:{};break;case "MERCH_SHELF":this.merchShelf=f;break;case "TICKET_SHELF":this.ticketShelf=f;break;case "LIMITED_STATE":this.limitedState=f;break;case "DONATION_SHELF":this.donationShelf=f;break;case "ALERTS":this.alerts=f}};
_.ci.Object.defineProperties(Wl.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return!this.hidden&&!!((c=this.data)==null?0:(f=c.contents)==null?0:(d=f.twoColumnWatchNextResults)==null?0:d.conversationBar)}}});
Wl.prototype.sizeChanged=Wl.prototype.sizeChanged;Wl.prototype.dataChanged=Wl.prototype.dataChanged;Wl.prototype.playerDataChanged=Wl.prototype.playerDataChanged;Wl.prototype.onActiveChanged=Wl.prototype.onActiveChanged;_.y([_.Q(_.Kw.YtPageBehavior),_.D("design:type",Object)],Wl.prototype,"ytPageBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Wl.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Wl.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"playerData",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Wl.prototype,"hidden",void 0);_.y([_.AY("#ytd-player"),_.D("design:type",HTMLElement)],Wl.prototype,"ytdPlayer",void 0);_.y([_.AY("#player-container"),_.D("design:type",HTMLElement)],Wl.prototype,"playerContainer",void 0);_.y([_.AY("#metadata"),_.D("design:type",Object)],Wl.prototype,"metadata",void 0);_.y([_.AY("#playlist"),_.D("design:type",HTMLElement)],Wl.prototype,"playlistPanel",void 0);
_.y([_.L({selector:_.ZrE,reflectToAttribute:!0}),_.D("design:type",Object)],Wl.prototype,"fixie",void 0);_.y([_.L({selector:_.qC8,reflectToAttribute:!0}),_.D("design:type",Object)],Wl.prototype,"singleColumn",void 0);_.y([_.L({selector:function(c){return _.Wr(c)&&!_.D7(c)},
reflectToAttribute:!0}),_.D("design:type",Object)],Wl.prototype,"theater",void 0);_.y([_.L({selector:_.D7,reflectToAttribute:!0}),_.D("design:type",Object)],Wl.prototype,"fullscreen",void 0);_.y([_.L({selector:_.$a8}),_.D("design:type",Object)],Wl.prototype,"windowSize",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"singleColumnContents",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"errorScreen",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"playlistData",void 0);
_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"videoPrimaryInfoRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"videoSecondaryInfoRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"richMetadataRowContainer",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"clarificationData",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"commentsEntryPointHeaderRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"ticketShelf",void 0);
_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"merchShelf",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"donationShelf",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"limitedState",void 0);_.y([_.L(),_.D("design:type",Object)],Wl.prototype,"alerts",void 0);_.y([_.S("playlistData"),_.D("design:type",Object),_.D("design:paramtypes",[])],Wl.prototype,"hasPlaylistData",null);
_.y([_.S("data","hidden"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Wl.prototype,"hasChat",null);_.y([_.m5("active"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Wl.prototype,"onActiveChanged",null);_.y([_.m5("playerData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Wl.prototype,"playerDataChanged",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Wl.prototype,"dataChanged",null);_.y([_.m5("windowSize","singleColumn"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Wl.prototype,"sizeChanged",null);
_.h(Wl,"ytd-watch-fixie",function(){if(PmP===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);PmP=c}c=PmP;return c},{mode:1});_.O2.registerService(_.dwr,Wl);
_.aO();
}catch(e){_._DumpException(e)}
try{
_.J5("xwEKAe");
var oPq=function(c){return _.Gr(c)?c.getAttribute("jsname")==="coFSxe":!1},GJQ=function(c,f){f.id||(f.id="ow"+_.Rk(f));
c.setAttribute("jsowner",f.id);c.__owner=f;var d=_.vv(f,oPq);d&&(_.HWj.has(d)||_.HWj.set(d,[]),_.HWj.get(d).push(c));(d=_.muK.get(f))||_.muK.set(f,d=[]);d.includes(c)||d.push(c);f.setAttribute("__IS_OWNER",!0)},cIq=function(){var c=_.bun(1);
c=_.GD(c,_.SNe);if(!(_.t6k(c)||c[_.PVC]&&!c.__hasBeenSet))return c.value},fA3=function(c){var f=_.Ft();
if(f.getFlag(202))f=f.getFlag(201);else{var d;f=(c==null?void 0:(d=c.config)==null?void 0:d.settingOnByDefault)!==void 0?c.config.settingOnByDefault:!_.F("web_shorts_cinematics_disabled_by_default")}return f},dFq=function(c){var f=_.Ft();
_.tQ(0,201,c);_.tQ(0,202,!0);f.save()},j4D=function(c){return(c=_.OKr(c))?_.sCk(c):0},qhc=function(c){return c.shorts.isSmallScreenSqueezeback},Zvi=function(c){return c.shorts.isPlaybackStarted},C$r=function(c){var f=_.bun(2),d=new Set;
_.Q4(function(){return void d.forEach(function(q){return void q()})});
return function(q){var Z=_.oO(f);try{var M=Mdq(rIp(c),q);d.add(M);return function(){M();d.delete(M)}}finally{_.oO(Z)}}},gYD=function(c){var f=c.children;
var d=c.root;_.QJ(function(){var q=C$r(d)(f);_.Q4(q)});
return document.createTextNode("")},Mdq=function(c,f){var d=klC(c);
(c=cIq())&&GJQ(d,c);f=_.C(_.iO4(f,!0));c=f.next().value;var q=f.next().value;d.append.apply(d,_.LT(c));return function(){q();d.remove()}},rIp=function(c){if(typeof c==="string")return c=document.querySelector(c),_.mdr(c),c;
if(_.MD(c)&&c.nodeType===Node.ELEMENT_NODE)return c;if(!c.__value&&!c.__optional){var f=_.UTC.USE_ELEMENT_NOT_ASSIGNED(c.__expectedTagName);c.__hasErrored=!0;throw f;}return c.value},klC=function(c){var f=document.createElementNS(c.namespaceURI,c.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return c.appendChild(f)},Ovq=function(c,f,d,q){c=f-c;
d=q-d;return Math.sqrt(c*c+d*d)},lA3=function(c,f){c&&_.ql().resolve(_.ZM).resolveCommand(c,{forceClickLogging:!0,
form:{element:f}})},s43=function(c,f,d,q){c=f-c;
d=q-d;return Math.sqrt(c*c+d*d)},BMD=function(c,f){c&&_.ql().resolve(_.ZM).resolveCommand(c,{forceClickLogging:!0,
form:{element:f}})},ivp=function(){return _.ql().resolve(_.bK).dismissedIndices},TMG=function(c){return _.CC({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:c}})},mFJ=function(c){return _.CC({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:c}})},jG=function(c){return _.CC({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:c}})};var qE=function(c,f){if(c instanceof qE)this.array_=c.array_;else{var d;if(d=_.WN(c))a:{for(var q=d=0;q<c.length;q++){if(!_.WN(c[q])||d>0&&c[q].length!=d){d=!1;break a}for(var Z=0;Z<c[q].length;Z++)if(typeof c[q][Z]!=="number"){d=!1;break a}d==0&&(d=c[q].length)}d=d!=0}if(d)this.array_=_.yn(c);else if(c instanceof _.AT)this.array_=Hvp(c.height,c.width);else if(typeof c==="number"&&typeof f==="number"&&c>0&&f>0)this.array_=Hvp(c,f);else throw Error("no");}this.size_=new _.AT(this.array_[0].length,
this.array_.length)},AI3=function(c,f,d){for(var q=0;q<c.getSize().height;q++)for(var Z=0;Z<c.getSize().width;Z++)f.call(d,c.array_[q][Z],q,Z,c)},YhQ=function(c,f){var d=new qE(c.getSize());
AI3(c,function(q,Z,M){d.array_[Z][M]=f.call(void 0,q,Z,M,c)});
return d},Hvp=function(c,f){for(var d=[],q=0;q<c;q++){d[q]=[];
for(var Z=0;Z<f;Z++)d[q][Z]=0}return d};
qE.prototype.add=function(c){if(!_.KWF(this.size_,c.getSize()))throw Error("oo");return YhQ(this,function(f,d,q){return f+c.array_[d][q]})};
qE.prototype.equals=function(c,f){if(this.size_.width!=c.size_.width||this.size_.height!=c.size_.height)return!1;f=f||0;for(var d=0;d<this.size_.height;d++)for(var q=0;q<this.size_.width;q++)if(!_.bHH(this.array_[d][q],c.array_[d][q],f))return!1;return!0};
qE.prototype.getSize=function(){return this.size_};
var Zf=function(c,f,d){return f>=0&&f<c.size_.height&&d>=0&&d<c.size_.width?c.array_[f][d]:null};
qE.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ME=function(c,f,d,q){if(!(f>=0&&f<c.size_.height&&d>=0&&d<c.size_.width))throw Error("po`"+f+"`"+d+"`"+c.size_.height+"`"+c.size_.width);c.array_[f][d]=q};
qE.prototype.multiply=function(c){if(c instanceof qE){if(this.size_.width!=c.getSize().height)throw Error("qo");return F2D(this,c)}if(typeof c==="number")return tdq(this,c);throw Error("ro");};
var F2D=function(c,f){var d=new qE(c.size_.height,f.getSize().width);AI3(d,function(q,Z,M){for(var g=q=0;g<this.size_.width;g++)q+=Zf(this,Z,g)*Zf(f,g,M);ME(d,Z,M,q)},c);
return d},tdq=function(c,f){return YhQ(c,function(d){return d*f})};var bvq=new _.fi("inlineSurveyRenderer");var K2F=new _.fi("interstitialViewModel");var EYp=new _.fi("reelNavigateCommand");var nYG=new _.fi("reelNonVideoContentDismissalCommand");var $FS=new _.fi("showReelsCommentsOverlayCommand");var Q4J=new _.fi("shortsSuggestedActionViewModel");var ShF=new _.fi("videoInteractionPopUpRenderer");var L23;var zTq;var JIC;var r5=function(){var c=_.z.apply(this,arguments)||this;c.ctaVisualElement=null;c.currentCsn=null;return c};
_.K(r5,_.z);_.r=r5.prototype;_.r.onDataChanged=function(){this.maybeLogShows()};
_.r.computeButtonShape=function(){var c=this;if(this.data)return{buttonText:_.xC(this.data.text),state:"active",onTap:function(){c.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.r.maybeCreateCtaVe=function(){var c;if((c=this.data)!=null&&c.badgeInteractionLogging){var f;if(c=(f=this.data.badgeInteractionLogging)==null?void 0:f.trackingParams)this.ctaVisualElement=_.Q1(c)}};
_.r.maybeLogClicks=function(){this.currentCsn=_.X2(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Rc(this.currentCsn,this.ctaVisualElement)};
_.r.maybeLogShows=function(){this.currentCsn=_.X2(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Ic(this.currentCsn,[this.ctaVisualElement])};
_.r.onTap=function(){var c;if((c=this.data)!=null&&c.onClickCommand){var f;this.ytComponentBehavior.resolveCommand((f=this.data)==null?void 0:f.onClickCommand);this.maybeLogClicks()}};
r5.prototype.onDataChanged=r5.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],r5.prototype,"ytComponentBehavior",void 0);_.y([_.L({}),_.D("design:type",Object)],r5.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],r5.prototype,"onDataChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],r5);
_.h(r5,"ytd-shopping-overlay-badge-renderer",function(){if(JIC!==void 0)return JIC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return JIC=c},{mode:1});_.g_(_.QGD,"reel-sound-metadata-view-model",{props:{data:_.Cs,overlayDensity:_.Cs}});_.g_(_.bGG,"player-disclosure-view-model",{props:{data:_.oM}});_.g_(_.nVo,"pivot-button-view-model",{props:{data:_.Cs,className:_.Cs}});_.g_(_.$nv,"reel-action-bar-view-model",{props:{data:_.oM,buttonShapeOverrideables:_.oM}});_.g_(_.dN(function(c){function f(){var kl,BN,tP,EC,AP=(BN=_.b((kl=p())==null?void 0:kl.command,_.EB))==null?void 0:(tP=BN.item)==null?void 0:(EC=tP.notificationTextRenderer)==null?void 0:EC.successResponseText;if(AP)_.gS(q.value,"yt-open-popup-action",[_.fX(AP),q.value]);else if(N())lA3(N(),E.value);else{var eM;lA3((eM=p())==null?void 0:eM.command,E.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var d=c.data;var q=_.xz("yt-player-overlay-video-interactions");c=_.C(_.OT("0px",void 0,"O1N7Ce"));var Z=c.next().value,M=c.next().value;c=_.C(_.OT("0px",void 0,"tTDBdb"));var g=c.next().value,O=c.next().value;c=_.C(_.OT(0,void 0,"fh8Zkc"));var l=c.next().value,m=c.next().value;c=_.C(_.OT(0,void 0,"CUjqGd"));var H=c.next().value,A=c.next().value,Y=function(){var kl;if(((kl=_.Ac())==null?void 0:kl.getPlayerState())!==-1){q.value.style.display="inherit";var BN;(BN=_.Ac())==null||BN.removeEventListener("onStateChange",
Y)}t()},t=function(){var kl=document.querySelector("video");
if(kl){m(kl.getBoundingClientRect().width);A(kl.getBoundingClientRect().height);var BN;M((kl==null?void 0:(BN=kl.style)==null?void 0:BN.left)||"0px");var tP;O((kl==null?void 0:(tP=kl.style)==null?void 0:tP.top)||"0px")}};
_.$k(function(){var kl,BN,tP;if(((kl=_.Ac())==null?void 0:kl.getPlayerState())===-1&&Math.round(((tP=(BN=_.Ac())==null?void 0:BN.getVideoAspectRatio())!=null?tP:0)*100)!==Math.round(l()/H()*100)){q.value.style.display="none";var EC,AP;A(l()/((AP=(EC=_.Ac())==null?void 0:EC.getVideoAspectRatio())!=null?AP:1))}},"VB5m5");
_.QJ(function(){var kl;(kl=_.Ac())==null||kl.addEventListener("onStateChange",Y);window.addEventListener("resize",t);t();var BN,tP,EC;if((EC=(BN=d())==null?void 0:(tP=BN.regions)==null?void 0:tP[0])==null||!EC.transformationMatrix)throw Error("vo");var AP;if((AP=d())==null?0:AP.trackingParams){var eM;_.bP().graftServerVe((eM=d().trackingParams)!=null?eM:"")}_.Q4(function(){var ue;(ue=_.Ac())==null||ue.removeEventListener("onStateChange",Y);window.removeEventListener("resize",t)})});
var E=_.xz("svg"),J=_.C(_.OT(!1,void 0,"TPsTce"));c=J.next().value;var X=J.next().value,u=_.C(_.OT(!1,void 0,"Uz6CHf"));J=u.next().value;var W=u.next().value,p=function(){var kl;return _.b((kl=d())==null?void 0:kl.popUp,ShF)},N=function(){var kl;
return(kl=d())==null?void 0:kl.command},I=function(){return _.b(N(),_.na)!==void 0};
u=_.Ks(function(){f();return!1});
var R={},qN={};return _.B("yt-player-overlay-video-interactions",{el:q},_.B("svg",{"on:mouseover":_.Ks(function(){I()&&X(!0);W(!0);return!1}),
"on:mouseout":_.Ks(function(){X(!1);W(!1);return!1}),
"on:keydown":_.Ks(function(kl){kl.key==="Enter"&&f();return!1}),
"on:focus":_.Ks(function(){I()&&X(!0);return!1}),
"on:blur":_.Ks(function(){I()&&X(!1);return!1}),
el:E,tabindex:0,"aria-label":function(){var kl;return(kl=d())==null?void 0:kl.a11yString},
id:"player-overlay-video-interaction-svg",class:_.FY("yt-player-overlay-video-interactions__interactions-svg",(R["yt-player-overlay-video-interactions__interactions-svg-hover"]=c,R),(qN["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=J,qN)),role:"button",style:function(){var kl,BN,tP,EC=(tP=(kl=d())==null?void 0:(BN=kl.regions)==null?void 0:BN[0].transformationMatrix)!=null?tP:[];kl=l();BN=H();tP=[];for(var AP=0,eM=-1;AP<EC.length;AP++)AP%3===0&&(eM++,tP[eM]=[]),tP[eM].push(EC[AP]);
EC=new qE(tP);tP=new qE([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);tP=EC.multiply(tP);EC=new qE([[0,0],[0,0],[0,0],[0,0]]);for(AP=0;AP<tP.getSize().width;AP++){eM=Zf(tP,0,AP);var ue=Zf(tP,1,AP);if(eM===null||ue===null)throw Error("uo`"+(AP+1).toString());ME(EC,AP,0,eM*kl);ME(EC,AP,1,ue*BN)}kl=Zf(EC,0,0);AP=Zf(EC,1,0);BN=Zf(EC,0,1);eM=Zf(EC,1,1);if(kl===null||AP===null||BN===null||eM===null)throw Error("so");tP=Ovq(kl,AP,BN,eM);ue=Zf(EC,3,0);EC=Zf(EC,3,1);if(ue===null||EC===null)throw Error("to");EC=Ovq(kl,
ue,BN,EC);eM=(Number((eM*-1).toFixed(2))-Number((BN*-1).toFixed(2)))/(Number(AP.toFixed(2))-Number(kl.toFixed(2)));ue=Math.atan(eM)*180/Math.PI;AP=eM===Number.POSITIVE_INFINITY?-90:eM===Number.NEGATIVE_INFINITY?90:Object.is(eM,-0)?180:eM===0?0:eM>0?ue*-1:kl<AP?ue*-1:Math.abs(ue)+180;return"left:calc("+kl+"px + "+Z()+"); top:calc("+(BN+"px + "+g()+"); width:")+(tP+"px; height:")+(EC+"px; transform:rotate(")+(AP+"deg);")},
"on:click":u}))},"Aj"),"yt-player-overlay-video-interactions",{props:{data:_.oM}});_.g_(_.Q8C,"yt-reel-metapanel-view-model",{props:{data:_.oM,overlayDensity:_.oM}});var aAr=_.dN(function(c){var f=c.children;var d=c.region;c=_.C(_.OT(void 0,void 0,"rwJZyc"));var q=c.next().value,Z=c.next().value;c=_.C(_.OT("0px",void 0,"H14H5c"));var M=c.next().value,g=c.next().value;c=_.C(_.OT("0px",void 0,"Mn8Uvf"));var O=c.next().value,l=c.next().value;c=_.C(_.OT(0,void 0,"QQCIqc"));var m=c.next().value,H=c.next().value;c=_.C(_.OT(0,void 0,"HyEvh"));var A=c.next().value,Y=c.next().value,t=function(){var p=q();if(p){var N;if(((N=_.Ac())==null?void 0:N.getPlayerState())!==-1){p.style.display=
"inherit";var I;(I=_.Ac())==null||I.removeEventListener("onStateChange",t)}J()}},E=function(){var p=document.querySelectorAll("video");
return Array.from(p).find(function(N){var I;return N==null?void 0:(I=N.style)==null?void 0:I.width})},J=function(){var p=E();
if(p){H(p.getBoundingClientRect().width);Y(p.getBoundingClientRect().height);var N;g((p==null?void 0:(N=p.style)==null?void 0:N.left)||"0px");var I;l((p==null?void 0:(I=p.style)==null?void 0:I.top)||"0px")}};
_.$k(function(){var p=q();if(p){var N,I,R;if(((N=_.Ac())==null?void 0:N.getPlayerState())===-1&&Math.round(((R=(I=_.Ac())==null?void 0:I.getVideoAspectRatio())!=null?R:0)*100)!==Math.round(m()/A()*100)){p.style.display="none";var qN,kl;Y(m()/((kl=(qN=_.Ac())==null?void 0:qN.getVideoAspectRatio())!=null?kl:1))}}},"RdGxIf");
var X=function(){J()},u;
_.QJ(function(){J();var p;if(!(d==null?0:(p=d())==null?0:p.transformationMatrix))throw Error("vo");var N;(N=_.Ac())==null||N.addEventListener("onStateChange",t);if(window.ResizeObserver){if(p=E())u=new ResizeObserver(X),u.observe(p)}else window.addEventListener("resize",J);_.Q4(function(){var I;(I=_.Ac())==null||I.removeEventListener("onStateChange",t);u?u.disconnect():window.removeEventListener("resize",J)})});
var W=function(){var p,N,I=(N=d==null?void 0:(p=d())==null?void 0:p.transformationMatrix)!=null?N:[];p=m();N=A();for(var R=[],qN=0,kl=-1;qN<I.length;qN++)qN%3===0&&(kl++,R[kl]=[]),R[kl].push(I[qN]);I=new qE(R);R=new qE([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);R=I.multiply(R);I=new qE([[0,0],[0,0],[0,0],[0,0]]);for(qN=0;qN<R.getSize().width;qN++){kl=Zf(R,0,qN);var BN=Zf(R,1,qN);if(kl===null||BN===null)throw Error("uo`"+(qN+1).toString());ME(I,qN,0,kl*p);ME(I,qN,1,BN*N)}p=Zf(I,0,0);qN=Zf(I,1,0);N=Zf(I,0,1);
kl=Zf(I,1,1);if(p===null||qN===null||N===null||kl===null)throw Error("so");R=s43(p,qN,N,kl);BN=Zf(I,3,0);I=Zf(I,3,1);if(BN===null||I===null)throw Error("to");I=s43(p,BN,N,I);kl=(Number((kl*-1).toFixed(2))-Number((N*-1).toFixed(2)))/(Number(qN.toFixed(2))-Number(p.toFixed(2)));BN=Math.atan(kl)*180/Math.PI;qN=kl===Number.POSITIVE_INFINITY?-90:kl===Number.NEGATIVE_INFINITY?90:Object.is(kl,-0)?180:kl===0?0:kl>0?BN*-1:p<qN?BN*-1:Math.abs(BN)+180;return"left:calc("+p+"px + "+M()+"); top:calc("+(N+"px + "+
O()+"); width:")+(R+"px; height:")+(I+"px; transform:rotate(")+(qN+"deg);")};
return _.B(gYD,{root:"#sticker-layer"},function(){return _.B("yt-overlay-sticker",{el:_.Z7(Z),style:W,class:"ytOverlayStickerHost"},f)})},"Bj");var Vd3=_.dN(function(c){function f(){var t,E,J,X,u=(E=_.b((t=l())==null?void 0:t.command,_.EB))==null?void 0:(J=E.item)==null?void 0:(X=J.notificationTextRenderer)==null?void 0:X.successResponseText;if(u)_.gS(q.value,"yt-open-popup-action",[_.fX(u),q.value]);else if(m())BMD(m(),q.value);else{var W;BMD((W=l())==null?void 0:W.command,q.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var d=c.data;var q=_.xz("svg"),Z=_.C(_.OT(!1,void 0,"T9Bq7b"));c=Z.next().value;var M=Z.next().value,g=_.C(_.OT(!1,void 0,"iMHq9c"));Z=g.next().value;var O=g.next().value,l=function(){var t;return _.b((t=d())==null?void 0:t.popUp,ShF)},m=function(){var t;
return(t=d())==null?void 0:t.command},H=function(){return _.b(m(),_.na)!==void 0};
g=_.Ks(function(){f();return!1});
var A={},Y={};return _.B("svg",{"on:mouseover":_.Ks(function(){H()&&M(!0);O(!0);return!1}),
"on:mouseout":_.Ks(function(){M(!1);O(!1);return!1}),
"on:keydown":_.Ks(function(t){t.key==="Enter"&&f();return!1}),
"on:focus":_.Ks(function(){H()&&M(!0);return!1}),
"on:blur":_.Ks(function(){H()&&M(!1);return!1}),
el:q,tabindex:0,"aria-label":function(){var t;return(t=d())==null?void 0:t.a11yString},
id:"player-overlay-video-interaction-svg",class:_.FY("ytPlayerOverlayInteractionInteractionsSvg",(A.ytPlayerOverlayInteractionInteractionsSvgHover=c,A),(Y.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Z,Y)),role:"button","on:click":g})},"Dj");_.g_(_.dN(function(c){var f=c.data;_.QJ(function(){var d;if((d=f())==null?0:d.trackingParams){var q;_.bP().graftServerVe((q=f().trackingParams)!=null?q:"")}});
return _.B("yt-player-overlay-interaction",null,_.B(aAr,{region:function(){var d,q;return(d=f())==null?void 0:(q=d.regions)==null?void 0:q[0]}},_.B(Vd3,Object.assign({},c))))},"Cj"),"yt-player-overlay-interaction",{props:{data:_.oM}});var C4=function(){var c=_.z.apply(this,arguments)||this;c.showScrubber=!1;c.isWatchWhileMode=!1;c.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");c.enableNewStickers=_.F("use_shorts_sticker_overlay_web");c.anchoredPanelActive=!1;c.enableLivingroomLayout=_.F("reels_enable_livingroom_layout");c.enablePlayerMetadataContainer=_.F("reels_web_enable_metadata_container");c.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");c.useAspectRatio=_.F("web_use_aspect_ratio");c.isSqueezebackActive=
!1;c.smallScreenSqueezeback=!1;c.isPlayerStarted=!1;c.overlayDensity=0;c.isOverlay=!1;c.isImmersive=!1;c.isImmersiveHorizontal=!1;c.isFullscreen=!1;c.onWindowResized=function(){var f;c.set("isImmersive",((f=window.getComputedStyle(c.hostElement))==null?void 0:f.getPropertyValue("--immersive-mode-on"))==="1");c.set("isImmersiveHorizontal",c.isImmersive&&c.enableLivingroomLayout&&!c.isWatchWhileMode)};
return c};
_.K(C4,_.z);_.r=C4.prototype;_.r.updateIsOverlay=function(c){this.isOverlay=c.detail.value};
_.r.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};
_.r.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.r.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.r.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.r.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.r.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.r.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.r.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",_.CD("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.CD("reels_action_justified_content")||"flex-start")};
_.r.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}}};
_.r.setFakeLoadingButtons=function(){_.F("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.HO("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.HO("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.HO("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.HO("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.HO("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()};
_.r.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}))};
_.ci.Object.defineProperties(C4.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.infoPanel)}}});
C4.prototype.onIsActiveChanged=C4.prototype.onIsActiveChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],C4.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],C4.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],C4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],C4.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],C4.prototype,"isActive",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],C4.prototype,"hidden",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],C4.prototype,"useShortsIcon",void 0);_.y([_.L({value:"left"}),_.D("design:type",String)],C4.prototype,"buttonTooltipPosition",void 0);
_.y([_.L({value:_.F("reels_enable_livingroom_layout")?"top":"left"}),_.D("design:type",String)],C4.prototype,"likeButtonTooltipPosition",void 0);_.y([_.L({value:"none"}),_.D("design:type",String)],C4.prototype,"textTransform",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"showScrubber",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"isWatchWhileMode",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data.infoPanel"),_.D("design:type",Object),_.D("design:paramtypes",[])],C4.prototype,"hasInfoPanel",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"enableAnchoredPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"enableNewStickers",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"anchoredPanelActive",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"enableLivingroomLayout",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],C4.prototype,"enablePlayerMetadataContainer",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"enableSqueezebackPanels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"useAspectRatio",void 0);
_.y([_.L({selector:_.g8M,reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"isSqueezebackActive",void 0);_.y([_.L({selector:qhc,reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"smallScreenSqueezeback",void 0);_.y([_.L({selector:Zvi}),_.D("design:type",Object)],C4.prototype,"isPlayerStarted",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"overlayDensity",void 0);_.y([_.L(),_.D("design:type",Object)],C4.prototype,"isOverlay",void 0);
_.y([_.L({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.D("design:type",Boolean)],C4.prototype,"isShortsOverlay",void 0);_.y([_.L(),_.D("design:type",Object)],C4.prototype,"isImmersive",void 0);_.y([_.L(),_.D("design:type",Object)],C4.prototype,"isImmersiveHorizontal",void 0);_.y([_.L({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.D("design:type",Boolean)],C4.prototype,"isShortsImmersive",void 0);
_.y([_.L({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.D("design:type",Object)],C4.prototype,"buttonOverride",void 0);_.y([_.L({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.D("design:type",Object)],C4.prototype,"actionBarButtonOverride",void 0);_.y([_.L({selector:_.so,reflectToAttribute:!0}),_.D("design:type",Object)],C4.prototype,"isFullscreen",void 0);
_.y([_.m5("isActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],C4.prototype,"onIsActiveChanged",null);_.y([_.v({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],C4);
_.h(C4,"ytd-reel-player-overlay-renderer",function(){if(zTq!==void 0)return zTq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return zTq=c},{mode:1});var Xlr;var g5=function(){var c=_.z.apply(this,arguments)||this;c.videoDuration=0;c.playedTime=0;c.isActive=!1;c.JSC$22145_playerEvents=new Map;return c};
_.K(g5,_.z);_.r=g5.prototype;_.r.created=function(){this.JSC$22145_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22145_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.r.attached=function(){this.getPlayerAndInitializeListeners()};
_.r.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22145_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.ia(this,this.onPageChanged))};
_.r.getPlayerAndInitializeListeners=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return f=_.Ca(),f?d.yield(f.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ia(c,c.onPageChanged)),d.jumpTo(0));c.player=d.yieldResult;c.initializePlayerListeners();_.Fm(d)})};
_.r.onPageChanged=function(c){var f=this;return _.k(function(d){if(d.nextAddress==1)return c.detail.newPageType!=="ytd-shorts"?d.return():d.yield(_.gy().getPlayerPromise(),2);f.player=d.yieldResult;f.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ia(f,f.onPageChanged));_.Fm(d)})};
_.r.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22145_playerEvents)};
_.r.onVideoDataChange=function(c){var f=this;return _.k(function(d){if(!f.player||c.type!=="newdata")return d.return();f.videoDuration=_.F("web_shorts_use_progress_state_for_gapless")?f.player.getProgressState(c.playertype).seekableEnd:f.player.getDuration(c.playertype);f.playedTime=0;_.Fm(d)})};
_.r.onVideoProgress=function(c){var f=this,d,q;return _.k(function(Z){if(!f.player)return Z.return();d=f.player.getPresentingPlayerType();q=f.player.getPlayerState();f.videoDuration=_.F("web_shorts_use_progress_state_for_gapless")?f.player.getProgressState(d).seekableEnd:f.player.getDuration(d);f.playedTime=q===0?f.videoDuration:c;_.Fm(Z)})};
_.r.getPercentPlayed=function(c,f){return c?_.uk(f/c,0,1):0};
_.ci.Object.defineProperties(g5.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 c="";return c=this.videoDuration&&this.playedTime?c+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):c+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],g5.prototype,"componentBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],g5.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],g5.prototype,"player",void 0);_.y([_.L(),_.D("design:type",Object)],g5.prototype,"videoDuration",void 0);_.y([_.L(),_.D("design:type",Object)],g5.prototype,"playedTime",void 0);_.y([_.L(),_.D("design:type",Object)],g5.prototype,"isActive",void 0);
_.y([_.S("videoDuration","playedTime"),_.D("design:type",Number),_.D("design:paramtypes",[])],g5.prototype,"percentPlayed",null);_.y([_.S("videoDuration","playedTime"),_.D("design:type",Object),_.D("design:paramtypes",[])],g5.prototype,"percentPlayedStyle",null);_.y([_.S("videoDuration","isActive"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],g5.prototype,"hideProgressBar",null);
_.h(g5,"ytd-progress-bar-line",function(){if(Xlr===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);Xlr=c}c=Xlr;return c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var ug3;_.g_(_.MhG,"ytm-closed-captioning-button",{props:{captionIconType:_.oM,onClick:_.Cs,ariaLabel:_.oM,ariaPressed:_.oM,isOverlay:_.Cs,isModern:_.Cs}});_.g_(_.t5Q,"desktop-shorts-volume-controls",{props:{orientation:_.oM}});var km=function(){var c=_.z.apply(this,arguments)||this;c.playerState=null;c.isMuted=!1;c.shortsModernControlsEnabled=_.F("web_shorts_modern_controls");c.volumeControlsOrientationState=_.F("web_shorts_modern_controls")?"vertical_down":"horizontal_right";c.isOverlay=!0;c.captionIconType=-1;c.ariaLabel="";c.overlayDensity=0;c.JSC$22148_playerEvents=new Map;c.onClosedCaptionsButtonClick=function(){c.player&&_.Gk(c.player)&&(c.player.toggleSubtitles(),c.updateCaptionIconType())};
return c};
_.K(km,_.z);_.r=km.prototype;_.r.created=function(){this.JSC$22148_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22148_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22148_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.r.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.m_(28662);this.playPauseButtonClientVE=_.m_(36842);this.fullscreenButtonToggleOffClientVE=_.m_(222256);this.fullscreenButtonToggleOnClientVE=_.m_(222257);var c=_.X2(),f=_.V5();c&&f&&(_.F("combine_ve_grafts")?(_.B_(_.bP(),this.muteButtonClientVE,f),_.B_(_.bP(),this.playPauseButtonClientVE,f)):_.eO(c,f,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.r.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22148_playerEvents),this.player=null)};
_.r.updateCaptionIconType=function(){var c=-1,f=void 0,d=_.HO("CLOSED_CAPTIONS_DISABLED");this.player&&_.Gk(this.player)&&(_.RWJ(this.player)?(f=!0,d=_.HO("CLOSED_CAPTIONS_ON"),c=1):(f=!1,d=_.HO("CLOSED_CAPTIONS_OFF"),c=0));this.captionIconType=c;this.ariaPressedState=f;this.ariaLabel=d};
_.r.getPlayerAndInitializeListeners=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return f=_.Ca(),f?d.yield(f.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ia(c,c.onPageChanged)),d.jumpTo(0));c.player=d.yieldResult;c.initializePlayerListeners();_.Fm(d)})};
_.r.onPageChanged=function(c){var f=this;return _.k(function(d){if(d.nextAddress==1)return c.detail.newPageType!=="ytd-shorts"?d.return():d.yield(_.gy().getPlayerPromise(),2);f.player=d.yieldResult;f.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ia(f,f.onPageChanged));_.Fm(d)})};
_.r.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22148_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.r.onPlayerStateChange=function(c){this.playerState=c};
_.r.onPlayerVolumeChange=function(c){this.isMuted=c.muted};
_.r.onPlayPauseButtonClick=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(_.gy().getPlayerPromise(),2);f=q.yieldResult;(d=_.X2())&&c.playPauseButtonClientVE&&_.Rc(d,c.playPauseButtonClientVE);f.getPlayerState()!==1?f.playVideo():f.pauseVideo();_.Fm(q)})};
_.r.computePlayPauseIcon=function(c){return c===2||c===-1||c===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"};
_.r.computeFullscreenLabel=function(c){return c?_.HO("FULLSCREEN_EXIT_LABEL"):_.HO("FULLSCREEN_ENTER_LABEL")};
_.r.computePlayPauseLabel=function(c){return c===1||c===3?_.HO("PLAYER_LABEL_PAUSE"):_.HO("PLAYER_LABEL_PLAY")};
_.r.onMuteButtonClick=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(_.gy().getPlayerPromise(),2);f=q.yieldResult;(d=_.X2())&&c.muteButtonClientVE&&_.Rc(d,c.muteButtonClientVE);f.isMuted()?f.unMute(!0):f.mute(!0);_.Fm(q)})};
_.r.computeMuteIcon=function(c){return c?"miniplayer:volume-off":"miniplayer:volume-up"};
_.r.computeMuteLabel=function(c){return c?_.HO("PLAYER_LABEL_UNMUTE"):_.HO("PLAYER_LABEL_MUTE")};
_.r.onFullscreenButtonClick=function(){var c=_.X2();c&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Rc(c,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Rc(c,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Yui()};
_.ci.Object.defineProperties(km.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var c=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(){c.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"}}});
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],km.prototype,"componentBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],km.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],km.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],km.prototype,"player",void 0);_.y([_.L(),_.D("design:type",Object)],km.prototype,"playerState",void 0);_.y([_.L(),_.D("design:type",Object)],km.prototype,"isMuted",void 0);
_.y([_.L({computed:"computePlayPauseIcon(playerState)"}),_.D("design:type",String)],km.prototype,"playPauseIcon",void 0);_.y([_.L({computed:"computeMuteIcon(isMuted)"}),_.D("design:type",String)],km.prototype,"muteIcon",void 0);_.y([_.L({selector:_.so}),_.D("design:type",Boolean)],km.prototype,"isFullscreen",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],km.prototype,"shortsModernControlsEnabled",void 0);
_.y([_.L(),_.D("design:type",Object)],km.prototype,"volumeControlsOrientationState",void 0);_.y([_.L(),_.D("design:type",Object)],km.prototype,"isOverlay",void 0);_.y([_.L(),_.D("design:type",Object)],km.prototype,"captionIconType",void 0);_.y([_.L(),_.D("design:type",Object)],km.prototype,"ariaLabel",void 0);_.y([_.L(),_.D("design:type",Object)],km.prototype,"ariaPressedState",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],km.prototype,"overlayDensity",void 0);
_.y([_.S("playerState"),_.D("design:type",Object),_.D("design:paramtypes",[])],km.prototype,"playPauseButtonData",null);_.y([_.S("isFullscreen"),_.D("design:type",Object),_.D("design:paramtypes",[])],km.prototype,"fullscreenButtonData",null);_.y([_.L(),_.D("design:type",Object)],km.prototype,"onClosedCaptionsButtonClick",void 0);_.y([_.S("isFullscreen"),_.D("design:type",String),_.D("design:paramtypes",[])],km.prototype,"fullscreenIcon",null);
_.h(km,"ytd-shorts-player-controls",function(){if(ug3===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);ug3=c}c=ug3;return c},{mode:1});var vYq;_.g_(_.Zvy,"yt-interstitial-view-model",{props:{data:_.oM}});var hTc=_.dN(function(c){var f=c.data;return _.B("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.B("h1",{class:"reelWatchBreakViewModelHostTitle"},_.B(_.J9,{text:function(){return f().title}})),_.B("h2",{class:"reelWatchBreakViewModelHostBody"},_.B(_.J9,{text:function(){return f().body},
isOverlay:!0})),_.B(_.u7,{data:function(){return f().buttons}},{buttonViewModel:function(d,q){return _.B("div",{class:function(){return q()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.B(_.mN,{data:d.data}))}}))},"Ej");
hTc.idomCompat=!0;_.g_(hTc,"reel-watch-break-view-model",{props:{data:_.oM}});var OH=function(){return _.z.apply(this,arguments)||this};
_.K(OH,_.z);OH.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}}};
_.ci.Object.defineProperties(OH.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var c;return!!_.b((c=this.data)==null?void 0:c.renderer,bvq)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var c;return!!_.b((c=this.data)==null?void 0:c.renderer,K2F)}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],OH.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],OH.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data.renderer"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],OH.prototype,"isSurvey",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.renderer"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],OH.prototype,"isInterstitialViewModel",null);_.y([_.v({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],OH);
_.h(OH,"ytd-reel-non-video-content-renderer",function(){if(vYq!==void 0)return vYq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return vYq=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var wl3;_.g_(_.FCQ,"desktop-shorts-player-controls",{});var lL=function(){var c=_.z.apply(this,arguments)||this;c.isPlayerPaused=!1;c.isPlayerStarted=!1;c.showPlayerControls=!1;c.showScrubber=!1;c.autoHideJobId=0;c.modern=_.F("web_button_rework");c.overlayType=_.CD("web_shorts_expanded_overlay_type");c.panelData=void 0;c.isWatchWhileMode=!1;c.hasError=!1;c.panelShowDelayMs=1;c.scrubberComponent={};c.isFullscreen=!1;c.shouldHideOverlay=!1;c.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");c.enablePersistentAnchoredPanel=_.F("desktop_shorts_v2_persistent_anchored_panel");
c.hideWatchWhilePanel=_.F("web_shorts_hide_watch_while_panel");c.useAspectRatio=_.F("web_use_aspect_ratio");c.isPersistentPanelActive=!1;c.anchoredPanelActive=!1;c.isShortsPipActive=!1;c.smallScreenSqueezeback=!1;c.enableFlexibleOverlay=_.F("web_enable_flexible_overlay");c.overlayDensity=0;c.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};c.onWindowResized=function(){_.Ia(c,
"calculateOverlayDensity",function(){c.calculateOverlayDensity()},100)};
return c};
_.K(lL,_.z);_.r=lL.prototype;_.r.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.r.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.r.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var c=_.ql().resolve(_.SD);this.isWatchWhileMode&&(_.F("web_enable_shorts_new_carousel")?_.a7.addJob(function(){c.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):c.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.r.handleShowReelsCommentsOverlayCommand=function(c){c=_.b(c,$FS);this.isActive&&(c==null?0:c.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))};
_.r.updateEngagementPanelVisibility=function(c,f){c&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:f?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:c}})};
_.r.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.r.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.ql().resolve(_.bK).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.r.handleWatchWhilePanelScrimClick=function(){var c=_.ql().resolve(_.SD);this.activeWatchWhilePanel&&(c.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.r.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.r.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}}};
_.r.handlePlayerClick=function(c){var f=this,d,q;if((q=(d=window).matchMedia)!=null&&q.call(d,"(any-pointer: coarse)").matches||!c)this.showPlayerControls=!0,_.a7.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Em(_.a7,function(){f.showPlayerControls=!1},4E3)};
_.r.isFirstReel=function(){return this.index===0};
_.r.handleMouseenter=function(){_.a7.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.r.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.r.handleScrubberEnter=function(){this.showScrubber=!0};
_.r.handleScrubberLeave=function(){this.showScrubber=!1};
_.r.maybeLogNonDefaultAspectRatio=function(){var c;(c=this.data)!=null&&c.thumbnail&&this.isActive&&.5625!==j4D(this.data.thumbnail)&&_.uMN("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.r.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var c=document.querySelector("#shorts-container");if(c){c=c.offsetWidth/2-this.playerContainer.offsetWidth/2;c=c>=368?1:c>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&c===1&&(c=0);this.isPersistentPanelActive&&(c=0);window.innerWidth<=599&&(c=2);this.overlayDensity=c;var f;(f=this.onOverlayDensityChanged)==null||f.call(this,this.index,this.overlayDensity)}}};
_.r.onOverlayDensityChange=function(){var c;(c=this.onOverlayDensityChanged)==null||c.call(this,this.index,this.overlayDensity);(c=_.r1(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&c.set("overlayDensity",this.overlayDensity);if(c=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))c.overlayDensity=this.overlayDensity};
_.r.isVideoContent=function(c){_.ql().resolve(_.bK);return!!_.b(c,_.EO)};
_.r.isNonVideoContent=function(c){_.ql().resolve(_.bK);return!!_.b(c,_.wF)};
_.r.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.ci.Object.defineProperties(lL.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var c,f;return _.F("web_enable_format_first")||((c=this.data)==null?void 0:c.adsOverlay)&&_.F("web_enable_format_first_ads_only")||((f=this.data)==null?void 0:f.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 c;return!this.isActive||!this.isPlayerStarted||(c=this.data)!=null&&c.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var c;if(((c=this.data)==null?0:c.command)&&this.isVideoContent(this.data.command)){var f,d;if(((f=this.data)==null?0:f.adsOverlay)&&Object.keys((d=this.data)==null?void 0:d.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var q,Z;if(((q=this.data)==null?0:q.reelPlayerOverlayRenderer)&&Object.keys((Z=this.data)==null?void 0:Z.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
lL.prototype.onOverlayDensityChange=lL.prototype.onOverlayDensityChange;lL.prototype.calculateOverlayDensity=lL.prototype.calculateOverlayDensity;lL.prototype.maybeLogNonDefaultAspectRatio=lL.prototype.maybeLogNonDefaultAspectRatio;lL.prototype.onEngagementPanelsChanged=lL.prototype.onEngagementPanelsChanged;lL.prototype.onScrubberDataChange=lL.prototype.onScrubberDataChange;lL.prototype.updateShouldHideOverlay=lL.prototype.updateShouldHideOverlay;
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],lL.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],lL.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],lL.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],lL.prototype,"index",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],lL.prototype,"isActive",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],lL.prototype,"isHiddenInDom",void 0);_.y([_.L(),_.D("design:type",Object)],lL.prototype,"isPlayerPaused",void 0);_.y([_.L({selector:Zvi}),_.D("design:type",Object)],lL.prototype,"isPlayerStarted",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"showPlayerControls",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"showScrubber",void 0);_.y([_.L(),_.D("design:type",Object)],lL.prototype,"autoHideJobId",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"overlayType",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],lL.prototype,"ytdReduxBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],lL.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],lL.prototype,"watchWhileEngagementPanels",void 0);_.y([_.L(),_.D("design:type",Object)],lL.prototype,"panelData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"isWatchWhileMode",void 0);_.y([_.L(),_.D("design:type",String)],lL.prototype,"activeWatchWhilePanel",void 0);
_.y([_.L(),_.D("design:type",Object)],lL.prototype,"hasError",void 0);_.y([_.L(),_.D("design:type",Object)],lL.prototype,"panelShowDelayMs",void 0);_.y([_.L(),_.D("design:type",Object)],lL.prototype,"scrubberComponent",void 0);_.y([_.L({selector:_.so,reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"isFullscreen",void 0);_.y([_.L(),_.D("design:type",Object)],lL.prototype,"shouldHideOverlay",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"enableAnchoredPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"enablePersistentAnchoredPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"hideWatchWhilePanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"useAspectRatio",void 0);
_.y([_.L({selector:_.g8M,reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"isPersistentPanelActive",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"anchoredPanelActive",void 0);_.y([_.L({selector:_.BZ,reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"isShortsPipActive",void 0);_.y([_.L({selector:qhc,reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"smallScreenSqueezeback",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],lL.prototype,"enableFormatFirst",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"enableFlexibleOverlay",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lL.prototype,"overlayDensity",void 0);_.y([_.L(),_.D("design:type",Function)],lL.prototype,"onOverlayDensityChanged",void 0);
_.y([_.L(),_.S("isActive","hasError","isPlayerStarted"),_.D("design:type",Object),_.D("design:paramtypes",[])],lL.prototype,"shouldRenderPlayerElements",null);_.y([_.L(),_.S("isActive","isWatchWhileMode"),_.D("design:type",Object),_.D("design:paramtypes",[])],lL.prototype,"watchWhileOrPersistentActive",null);_.y([_.m5("isActive","hasError","showingExpandedOverlay"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lL.prototype,"updateShouldHideOverlay",null);
_.y([_.L({reflectToAttribute:!0}),_.S("isActive","isPlayerStarted","data"),_.D("design:type",Object),_.D("design:paramtypes",[])],lL.prototype,"shouldRenderScrubber",null);_.y([_.m5("shouldRenderScrubber"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lL.prototype,"onScrubberDataChange",null);_.y([_.S("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.D("design:type",Object),_.D("design:paramtypes",[])],lL.prototype,"overlayComponent",null);
_.y([_.m5("watchWhileEngagementPanels"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lL.prototype,"onEngagementPanelsChanged",null);_.y([_.AY("#player-container"),_.D("design:type",HTMLElement)],lL.prototype,"playerContainer",void 0);_.y([_.AY("#cinematic-container"),_.D("design:type",HTMLElement)],lL.prototype,"cinematicContainer",void 0);
_.y([_.m5("isPersistentPanelActive","data.thumbnail"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lL.prototype,"maybeLogNonDefaultAspectRatio",null);_.y([_.m5("isPersistentPanelActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lL.prototype,"calculateOverlayDensity",null);_.y([_.m5("overlayDensity"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lL.prototype,"onOverlayDensityChange",null);
_.y([_.v({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],lL);
_.h(lL,"ytd-reel-video-renderer",function(){if(wl3!==void 0)return wl3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return wl3=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var sH=function(){var c=_.z.apply(this,arguments)||this;c.isPreviousPageShorts=!1;c.index=0;c.delayedActiveIndex=0;c.playablePreviousIndex=null;c.isPlayerPaused=!1;c.isPlayerStarted=!1;c.intersectionObserverThreshold=.6;c.fitToVisibleBounds=!1;c.pageSubtype="shorts";c.enablePreviousContinuation=_.F("shorts_in_playlists_web");c.shortsPipEnabled=_.F("web_shorts_pip");c.isDark=document.documentElement.hasAttribute("dark");c.shortsViewTransitions=_.F("web_shorts_view_transitions");c.isFullscreen=!1;c.isShortsPipActive=
!1;c.buttonOverride={iconPosition:"icon-only",size:"XL"};c.anchoredPanelActive=!1;c.isActive=!1;c.smallScreenPersistentPanel=!1;c.isPersistentPanelActive=!1;c.smallScreenSqueezeBack=!1;c.enableScrollIntoViewCenter=_.F("web_scroll_into_view_center");c.formatFirst=_.F("web_enable_format_first")||_.F("web_enable_format_first_ads_only")||_.F("web_enable_format_first_organic_only");c.enableFlexibleOverlay=_.F("web_enable_flexible_overlay");c.useAspectRatio=_.F("web_use_aspect_ratio");c.isShortsInitialized=
!1;c.hidePreviousButtonImmediately=!1;c.showPreviousButtonImmediately=!1;c.endOfNextContinuation=!1;c.currentPlayerIndex=0;c.nextReelVe=_.m_(56921);c.prevReelVe=_.m_(56922);c.loopToggleOffVe=_.m_(198013);c.loopToggleOnVe=_.m_(198014);c.ambientModeToggleVe=_.m_(227860);c.reelPlayerPausedStateRendererVe=_.m_(141313);c.storedPlaybackSpeed=null;c.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"};c.onOverlayDensityChanged=function(f,d){var q;(q=c.getActiveReelVideo(f))==null||q.setAttribute("overlay-density",String(d))};
return c};
_.K(sH,_.z);_.r=sH.prototype;
_.r.deflateInactivePreviousSlides=function(){var c=_.rx("web_shorts_deflate_inactive_slides_aggressive_distance");if(c>0&&this.shortsProcessedSequence&&this.activeIndex){c=this.activeIndex-c;for(var f=0;f<=c;f++){var d=void 0;((d=this.shortsProcessedSequence[f].reelPlayerOverlayRenderer)==null?0:d.metapanel)&&this.set("shortsProcessedSequence."+f+".reelPlayerOverlayRenderer",{});d=void 0;((d=this.shortsProcessedSequence[f].adsOverlay)==null?0:d.adSlotMetadata)&&this.set("shortsProcessedSequence."+f+
".adsOverlay",{})}}};
_.r.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.r.onResize=function(){var c=_.Gh(),f=c.dispatch,d=this.calculateIsSmallWidth();f.call(c,_.CC({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:d}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.r.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}}};
_.r.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var c=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,f=c,d=0;c<250&&(f=c+this.shortsInnerContainer.clientWidth,d=24);_.la(this.hostElement,{"--ytd-shorts-header-width":f+"px","--ytd-shorts-top-spacing":d+"px"})}};
_.r.isFirstShorts=function(c){return c?this.index===-c.length:this.index===0};
_.r.isActiveReel=function(c,f,d){d&&(f=this.calculatePrevIndex(f,d));return c===f};
_.r.onFullscreenChange=function(){if(_.F("web_fullscreen_shorts")){var c;(c=this.getActiveReelVideo(this.activeIndex))==null||c.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.ql().resolve(_.yN).close(!0)}};
_.r.engagementPanelsChanged=function(){var c;this.watchWhileEngagementPanels=(c=this.data)==null?void 0:c.engagementPanels};
_.r.unregisterPanels=function(){var c=_.ql().resolve(_.SD);if(this.watchWhileEngagementPanels)for(var f=_.C(this.watchWhileEngagementPanels),d=f.next();!d.done;d=f.next()){var q=d.value,Z=void 0,M=void 0;d=(Z=q.engagementPanelSectionListRenderer)==null?void 0:(M=Z.identifier)==null?void 0:M.tag;q=this.getPanelContentIdentifier(q.engagementPanelSectionListRenderer);c&&(d&&c.panelMap.delete(d),q&&_.F("web_shorts_panel_caching_bugfix")&&(Z=d=void 0,(Z=(d=c).unregisterPanelContent)==null||Z.call(d,q)))}};
_.r.isVideoContent=function(c){return this.isVideoContentCommand(c==null?void 0:c.command)};
_.r.getActiveReelVideo=function(c){return _.r1(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+c+'"]')};
_.r.calculatePrevIndex=function(c,f){return f?c-((f==null?void 0:f.length)||0):-1};
_.r.onKeydown=function(c){var f=_.x0(c)||[];if(!_.A8F(f))if(c.code==="ArrowUp")c.preventDefault(),this.handlePrevButtonClick();else if(c.code==="ArrowDown")c.preventDefault(),this.handleNextButtonClick();else if(c.code==="KeyM")this.toggleMuteUnmuteVideo();else if(c.code==="KeyK"||c.code==="Space")this.togglePlayPauseVideo();else if((c.code==="KeyA"||c.code==="ArrowLeft")&&_.F("web_shorts_keyboard_enable_seek_shortcuts")){var d;(d=this.player)==null||d.seekBy(-5)}else if((c.code==="KeyD"||c.code===
"ArrowRight")&&_.F("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var q;(q=this.player)==null||q.seekBy(5)}};
_.r.onServiceRequestCompleted=function(c,f){c=f.data;c.continuationEndpoint&&c.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:c.entries,continuationEndpoint:c.continuationEndpoint}}):c.prevContinuationEndpoint&&c.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:c.prevEntries,prevContinuationEndpoint:c.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.r.handleEngagementPanelVisibilityChanged=function(c,f){var d=_.ql().resolve(_.SD);if(c&&d){var q=this.getPanelIdentifier(c);if(f==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==q){d.hidePanel(this.activePanel);var Z;this.activePanel=((Z=c.identifier)==null?void 0:Z.tag)||c.panelIdentifier}else this.isPersistentPanelActive=!0,_.Gh().dispatch(TMG(!0)),this.anchoredPanelActive=!0,this.activePanel=q;else f==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
q&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Gh().dispatch(TMG(!1)))}};
_.r.handlePanelScrimClick=function(){var c=_.ql().resolve(_.SD);this.activePanel&&(c.hidePanel(this.activePanel),_.Gh().dispatch(TMG(!1)))};
_.r.getShortsLoopSetting=function(){var c,f,d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:return _.F("kevlar_shorts_auto_advance")?M.yield(_.L5.getInstance(),2):M.return(!0);case 2:return(c=M.yieldResult)?M.yield(c.get("sfvles"),3):M.return(!0);case 3:return d=(f=M.yieldResult)!=null?f:!1,M.yield(c.get("sfvle"),4);case 4:return Z=(q=M.yieldResult)!=null?q:!0,d?M.return(Z):M.return(!0)}})};
_.r.handleSignalActionToggleLoopShortsOff=function(){var c=this,f,d,q;return _.k(function(Z){switch(Z.nextAddress){case 1:if(!c.player)return Z.return();c.player.setLoopVideo(!1);f=_.bP();_.TG(f,c.loopToggleOffVe);return Z.yield(_.L5.getInstance(),2);case 2:return(d=Z.yieldResult)?Z.yield(d.set("sfvle",!1),3):Z.return();case 3:return Z.yield(d.set("sfvles",!0),4);case 4:q=_.Ft(),_.tQ(0,203,!1),_.tQ(0,204,!0),q.save(),_.Fm(Z)}})};
_.r.handleSignalActionToggleLoopShortsOn=function(){var c=this,f,d,q;return _.k(function(Z){switch(Z.nextAddress){case 1:if(!c.player)return Z.return();c.player.setLoopVideo(!0);f=_.bP();_.TG(f,c.loopToggleOnVe);return Z.yield(_.L5.getInstance(),2);case 2:return(d=Z.yieldResult)?Z.yield(d.set("sfvle",!0),3):Z.return();case 3:return Z.yield(d.set("sfvles",!0),4);case 4:q=_.Ft(),_.tQ(0,203,!0),_.tQ(0,204,!0),q.save(),_.Fm(Z)}})};
_.r.handleSignalActionToggleCinematicShortsOn=function(){dFq(!0);var c;(c=this.JSC$22172_cinematicController)==null||_.Uir(c,!0);_.TG(_.bP(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.r.handleSignalActionToggleCinematicShortsOff=function(){dFq(!1);var c;(c=this.JSC$22172_cinematicController)==null||_.Uir(c,!1);_.TG(_.bP(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.r.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.r.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.r.unhideCurrentOverlay=function(){if(this.overlayContainer){var c=this.overlayContainer.querySelector("#experiment-overlay");c&&_.a7.addLowPriorityJob(function(){c.style.display="unset"},100)}};
_.r.getCurrentShort=function(){if(this.currentEndpoint){var c=this.currentEndpoint;if(this.isNonVideoContentCommand(c)){var f=_.b(c,_.wF);return{reelNonVideoContentRenderer:_.b(f==null?void 0:f.renderer,_.bzj),command:c}}if(this.data){var d;f=(d=_.b(this.currentEndpoint,_.EO))==null?void 0:d.thumbnail;var q;d=(q=this.data.overlay)==null?void 0:q.reelPlayerOverlayRenderer;_.ql().resolve(_.bK);c=this.data;var Z,M;q=(Z=c.overlay)==null?void 0:(M=Z.shortsAdsRenderer)==null?void 0:M.adSlots;if(q!==void 0)q.length===
0?(_.cZ("Shorts ads returned no ad slots."),c=void 0):(q.length>1&&_.cZ("Shorts ads has more than one ad slots."),c=_.b(q[0],_.yqO));else{var g,O;c=_.b((g=c.overlay)==null?void 0:(O=g.shortsAdsRenderer)==null?void 0:O.overlay,_.yqO)}g=c;c=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.b(this.currentEndpoint,_.EO),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:d,thumbnail:f,command:c,adsOverlay:g}}}};
_.r.created=function(){var c=this;this.scrollToVideoThrottle=new _.Gx(function(f){var d;(d=c.getActiveReelVideo(f))==null||d.scrollIntoView({behavior:"smooth",block:"nearest",inline:c.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Gx(function(f){var d;(d=c.getActiveReelVideo(f))==null||d.scrollIntoView({behavior:"auto",block:"nearest",inline:c.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.r.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.r.attached=function(){var c=this;_.ql().resolve(_.bK).registerRootElement(this);this.pageScrollElement=_.r1(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.ia(this,this.processResetAction));_.F("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var f=c.getActiveReelVideo(c.activeIndex);c.maybeCreateIntersectionObserver();f==null||f.scrollIntoView({behavior:"instant",
block:"nearest",inline:c.enableScrollIntoViewCenter?"center":"start"});c.shortsContainer.style.overflowY="scroll"}))};
_.r.calculateSqueezebackPanelSize=function(){var c=this,f=window.innerWidth-456-(window.innerHeight-106)*.5625;_.a7.addLowPriorityJob(function(){f<360?_.Gh().dispatch(mFJ(!0)):(c.hostElement.style.setProperty("--anchored-panel-width",Math.min(f,480)+"px"),_.Gh().dispatch(mFJ(!1)))})};
_.r.detached=function(){var c=_.ql().resolve(_.bK);c.rootElement=void 0;var f;(f=c.unsubscribeFromStore)==null||f.call(c);c.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.ia(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.r.onResizeFinished=function(c,f){var d=this,q=new ResizeObserver(function(){d.shortsContainer.style.overflowY="hidden";_.a7.addLowPriorityJob(function(){f()},100)});
q.observe(c);return q};
_.r.resetDocumentScrollTop=function(){var c,f;if((c=document)==null?0:(f=c.scrollingElement)==null?0:f.scrollTop)document.scrollingElement.scrollTop=0};
_.r.loadPage_=function(c){var f=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),c){var d;!_.F("web_enable_delay_shorts_sequence_call")&&((d=_.b(this.currentEndpoint,_.EO))==null?0:d.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=c;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){f.isPlayerStarted&&(f.handleOnPlaybackCommand(),f.afterPlayerStarted=function(){})};
this.registerPanel(c)}};
_.r.afterPlayerStarted=function(){};
_.r.handleOnPlaybackCommand=function(){if(_.F("web_shorts_comment_stickers")&&this.isPlayerStarted){var c,f=(c=_.b(this.currentEndpoint,_.EO))==null?void 0:c.onPlaybackCommand;f&&this.ytComponentBehavior.resolveCommand(f)}};
_.r.maybeCreateIntersectionObserver=function(){var c=this,f=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==f){this.intersectionObserverThreshold=f;var d={rootMargin:"0px",threshold:f},q;(q=this.intersectionObserver)==null||q.disconnect();this.intersectionObserver=new IntersectionObserver(function(Z){Z=_.C(Z);for(var M=Z.next();!M.done;M=Z.next())if(M=M.value,M.intersectionRatio>f){M=Number(M.target.id);if(isNaN(M))break;if(M===c.index)break;
_.qUe();c.loadVideo(M);_.ul("r_vtc")}},d);
this.observeShorts()}};
_.r.observeShorts=function(){var c=[].concat(_.LT(_.r1(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));c=_.C(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var d=void 0;(d=this.intersectionObserver)==null||d.observe(f)}};
_.r.initCsi=function(){_.bA("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var c={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"}},f,d;if((f=this.playerData)==null?0:(d=f.cacheMetadata)==null?0:d.isCacheHit)c.isCacheHit=!0;var q;if(f=(q=_.b(this.currentEndpoint,_.EO))==null?void 0:
q.prefetchTaskId)c.prefetchInfo={taskId:f};_.JQ(c)};
_.r.isAd=function(){var c,f;return!!((c=_.b(this.currentEndpoint,_.EO))==null?0:(f=c.adClientParams)==null?0:f.isAd)};
_.r.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.r.getPlayerContainer=function(){var c;return(c=_.r1(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:c.playerContainer};
_.r.onPlayerStateChange=function(c){var f=this;this.isPlayerPaused=c===2;c!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?c===1&&this.index===0&&(this.isPlayerStarted||_.Gh().dispatch(jG(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Gh().dispatch(jG(!0)));this.player&&!this.player.getLoopVideo()&&_.a7.addLowPriorityJob(function(){f.getShortsLoopSetting().then(function(d){var q;(q=f.player)==null||q.setLoopVideo(d)})});
this.isPlayerPaused&&_.F("web_shorts_paused_state_logging")&&_.Ic(_.X2(),[this.reelPlayerPausedStateRendererVe])};
_.r.isInBackground=function(){var c=window.document.visibilityState;return!(!c||c==="visible")};
_.r.isShortPlayable=function(){if(_.F("kevlar_playable_short_killswitch"))return!0;var c;return(c=this.playerData)!=null&&c.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.r.setNormalPlaybackSpeed=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(c.getPlayer().getPlayerPromise(),2);f=q.yieldResult;d=f.getPlaybackRate();d!==1&&(c.storedPlaybackSpeed=d,f.setPlaybackRate(1));_.Fm(q)})};
_.r.restorePlaybackSpeed=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1)return c.storedPlaybackSpeed===null?d.jumpTo(0):d.yield(c.getPlayer().getPlayerPromise(),3);f=d.yieldResult;f.setPlaybackRate(c.storedPlaybackSpeed);c.storedPlaybackSpeed=null;_.Fm(d)})};
_.r.playerDataChanged=function(){var c=this,f,d,q,Z,M,g,O,l,m;return _.k(function(H){if(H.nextAddress==1){f=c.getPlayer();(d=c.intersectionObserver)==null||d.disconnect();if(c.playerData){if(((q=c.playerData.videoDetails)==null?void 0:q.videoId)!==((Z=f.getPlayer())==null?void 0:Z.getVideoData().video_id)){M={};if(g=_.b(c.currentEndpoint,_.EO))M.watch_endpoint=g,g.endTimeSeconds&&(M.end=g.endTimeSeconds);f.loadVideoWithPlayerResponse(c.playerData,M)}}else return H.return();return c.player?H.jumpTo(2):
H.yield(f.getPlayerPromise(),3)}H.nextAddress!=2&&(c.player=H.yieldResult,c.JSC$22172_playerStateChangeListener=c.onPlayerStateChange.bind(c),c.player.addEventListener("onStateChange",c.JSC$22172_playerStateChangeListener),_.F("kevlar_client_enable_shorts_player_bootstrap")&&_.R9(),c.scrollToVideoThrottle.fire(c.index),c.movePlayerToVideo(c.index),_.a7.addLowPriorityJob(function(){c.getShortsLoopSetting().then(function(A){var Y;(Y=c.player)==null||Y.setLoopVideo(A)})}),_.Cgj.resolve(c.player),c.player.syncVolume(),
c.getPlayer().focusOnPlayer());
_.a7.addLowPriorityJob(function(){c.observeShorts()},100);
O=c.player.getPlayerState(c.player.getPresentingPlayerType());O!==1||c.isPlayerStarted||_.Gh().dispatch(jG(!0));c.updateBackNavContainerWidth();l=_.b(c.currentEndpoint,_.EO);((m=l)==null?0:m.startTimeSeconds)&&c.player.seekTo(l.startTimeSeconds);if(c.JSC$22172_cinematicController||c.cinematicsInitializeJobId)return H.return();c.cinematicsInitializeJobId=_.a7.addLowPriorityJob(function(){c.initCinematicController();c.cinematicsInitializeJobId=void 0});
_.Fm(H)})};
_.r.onShortUndoDismiss=function(){var c=this,f=ivp().pop();f!==void 0&&(_.ol(this,function(){c.showCardWithIndex(f)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.r.onShortsDismiss=function(c){if(c=c.detail.reelDismissalActionRenderer)(c=_.b(c.onDismissalCompletionRenderer,_.EPG))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:c}}}),this.scrollAndDismissCard()};
_.r.processReelNonVideoContentDismissalCommand=function(c){var f=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);c=_.b(c,nYG);this.activeDimissalTimeout=setTimeout(function(){f.scrollAndDismissCard()},Number(c==null?void 0:c.delayMs))};
_.r.scrollAndDismissCard=function(){var c=this,f=this.index;ivp().push(f);_.ol(this,function(){var d=c.getPlayableNextIndex();d!==null&&(d=c.getActiveReelVideo(d),c.hideCardWithIndex(f),d==null||d.scrollIntoView({behavior:"smooth",block:"nearest",inline:c.enableScrollIntoViewCenter?"center":"start"}))})};
_.r.hideCardWithIndex=function(c){if(c=this.getActiveReelVideo(c))c.hidden=!0};
_.r.showCardWithIndex=function(c){if(c=this.getActiveReelVideo(c))c.hidden=!1};
_.r.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.r.activeChanged=function(c){_.Gh().dispatch(_.CC({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:c}}));if(c)document.addEventListener("keydown",_.ia(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var f;(f=this.player)==null||f.sendAbandonmentPing()}var d;(d=this.player)==null||d.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.ia(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.r.graftClientVisualElements=function(){if(this.data){var c=_.bP();_.Ccy(c,_.sX({response:this.reelWatchSequenceResponse}));_.B_(c,this.nextReelVe);_.B_(c,this.prevReelVe);_.F("kevlar_shorts_auto_advance")&&(_.B_(c,this.loopToggleOffVe),_.B_(c,this.loopToggleOnVe));_.B_(c,this.ambientModeToggleVe);_.Ic(_.X2(),[this.nextReelVe,this.prevReelVe]);_.F("web_shorts_paused_state_logging")&&_.B_(c,this.reelPlayerPausedStateRendererVe)}};
_.r.graftNvcRenderer=function(){var c,f,d,q,Z=this.index<0?(c=this.shortsProcessedPrevSequence)==null?void 0:(f=c[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:f.command:(d=this.shortsProcessedSequence)==null?void 0:(q=d[this.index])==null?void 0:q.command;if(Z&&this.isNonVideoContentCommand(Z)){c=_.b(Z,_.wF);var M,g;(c=(M=_.b(c==null?void 0:c.renderer,_.bzj))==null?void 0:(g=M.loggingDirectives)==null?void 0:g.trackingParams)&&_.bP().graftServerVe(c)}};
_.r.setActiveIndex=function(){_.ql().resolve(_.bK).setActiveIndex(this.index)};
_.r.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.r.lazyUpdateMiniplayerData=function(){var c=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.a7.addLowPriorityJob(function(){c.updateMiniplayerData();c.updateMiniplayerDataJobId=void 0}))};
_.r.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.a7.cancelJob(this.updateMiniplayerDataJobId)};
_.r.updateMiniplayerData=function(){var c,f,d,q=_.ql().resolve(_.yN),Z={shortsData:this.getCurrentShort(),previousButtonDisabled:!((c=this.prevButtonData)==null||!c.isDisabled),nextButtonDisabled:!((f=this.nextButtonData)==null||!f.isDisabled),playabilityStatus:(d=this.playerData)==null?void 0:d.playabilityStatus};_.WE(q,Z)};
_.r.resetPlayerLocation=function(){var c=this.getPlayer();this.initialPlayerContainer&&c.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.r.movePlayerToVideo=function(c,f){var d=this;f=f===void 0?!0:f;var q=this.getActiveReelVideo(c),Z=this.getPlayer();if(q){this.overlayContainer?q.appendChild(this.overlayContainer):(this.overlayContainer=_.r1(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,q.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Z.appendTo(this.overlayContainer.playerContainer,void 0,!0));var M;(M=this.player)==null||M.setSize(NaN,NaN);this.isActive||_.Em(_.a7,function(){d.isActive=
!0});
Z.style.visibility="visible";_.F("reels_web_disable_rtr_tick")||_.F("reels_web_use_pbs_first_shorts")&&c===0||_.V_("r_tr");this.currentPlayerIndex=c;q.appendChild(this.errorScreenContainer);var g;(g=this.JSC$22172_cinematicController)==null||_.xi3(g)}else f?_.a7.addLowPriorityJob(function(){d.movePlayerToVideo(d.index,!1)}):Math.random()<=_.rx("web_shorts_error_logging_threshold")&&_.XX(new _.KD("Trying to movePlayerToVideo with undefined container.",{firstAttempt:f,
index:c}))};
_.r.enableFormatFirst=function(c){return _.F("web_enable_format_first")||c.adsOverlay&&_.F("web_enable_format_first_ads_only")||c.reelPlayerOverlayRenderer&&_.F("web_enable_format_first_organic_only")};
_.r.getAspectRatio=function(c){if(c!=null&&c.thumbnail&&this.enableFormatFirst(c))return"--ytd-shorts-player-ratio: "+j4D(c.thumbnail)};
_.r.getBackgroundImage=function(c){if(c!=null&&c.thumbnail)return(c=_.OV(c.thumbnail.thumbnails))?'background-image:url("'+c+'");':"background-color:black;"};
_.r.onPersistentPanelActiveChanged=function(){var c=this.getCurrentShort();if(c&&this.enableFormatFirst(c)&&(c==null?0:c.thumbnail)&&j4D(c.thumbnail)!==.5625){var f;(f=this.player)==null||f.setSize(NaN,NaN)}};
_.r.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.r.moveCinematicsToVideo=function(){var c=_.r1(this.hostElement).querySelector("ytd-reel-video-renderer");(c==null?0:c.cinematicContainer)&&c.cinematicContainer!==this.shortsCinematicContainer.parentElement&&c.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.r.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.r.updatePrevButtonData=function(){var c=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(c){var f;this.prevButtonData=c=Object.assign({},c,{accessibility:{label:_.HO("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:c.isDisabled||this.index===-(((f=this.shortsProcessedPrevSequence)==null?void 0:f.length)||0),tooltip:this.isUpArrowHidden?"":_.HO("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=c=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.r.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.r.updateNextButtonData=function(){var c=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(c){var f;this.nextButtonData=c=Object.assign({},c,{accessibility:{label:_.HO("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:c.isDisabled||this.index===((f=this.shortsProcessedSequence)==null?void 0:f.length),tooltip:_.HO("NEXT_VIDEO_LABEL")||""})}};
_.r.getPlayablePreviousIndex=function(){for(var c,f=this.index-1;f>=-(((c=this.prevShortsSequence)==null?void 0:c.length)||0);f--)if(!ivp().includes(f))return f;return null};
_.r.getIndexInSequence=function(c,f){return c.findIndex(function(d){var q;return((q=_.b(d.command,_.EO))==null?void 0:q.videoId)===f})};
_.r.handlePrevButtonClick=function(c){var f=this,d,q;return _.k(function(Z){d=f.getPlayablePreviousIndex();if(d===null)return Z.return();f.gestureType=((q=c)==null?void 0:q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";d===0&&(f.hidePreviousButtonImmediately=!0);if(f.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){f.transitionToVideoThrottle.fire(d)}),Z.return();
f.scrollToVideoThrottle.fire(d);_.Fm(Z)})};
_.r.getPlayableNextIndex=function(){for(var c,f=this.index+1;f<(((c=this.shortsProcessedSequence)==null?void 0:c.length)||0);f++)if(!ivp().includes(f))return f;return null};
_.r.handleNextButtonClick=function(c,f){var d=this,q,Z;return _.k(function(M){q=d.getPlayableNextIndex();if(q===null)return M.return();q===1&&(d.showPreviousButtonImmediately=!0);d.gestureType=((Z=c)==null?void 0:Z.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";f&&(d.gestureType=f);if(d.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){d.transitionToVideoThrottle.fire(q)}),M.return();
d.scrollToVideoThrottle.fire(q);_.Fm(M)})};
_.r.handleReelNavigateCommand=function(c,f,d){(c=_.b(c,EYp))&&f&&c.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(d)};
_.r.loadVideo=function(c,f){f=f===void 0?!1:f;if(c!==this.currentPlayerIndex){_.Gh().dispatch(jG(!1));if(this.isAd()&&!f){var d;(d=this.player)==null||d.notifyShortsAdSwipeEvent()}if((f=this.JSC$22172_cinematicController)!=null){var q;(q=f.currentCinematicEffect)==null||q.pause()}if((q=this.JSC$22172_cinematicController)!=null){var Z;(Z=q.currentCinematicEffect)==null||Z.clear()}q=c>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(q));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var M,g,O,l;Z=c<0?(M=this.shortsProcessedPrevSequence)==null?void 0:(g=M[this.shortsProcessedPrevSequence.length+c])==null?void 0:g.command:(O=this.shortsProcessedSequence)==null?void 0:(l=O[c])==null?void 0:l.command;this.index=c;this.gestureType||(this.gestureType=q?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
Z&&this.isVideoContentCommand(Z)&&(this.ytComponentBehavior.resolveCommand(Z,{form:{createScreenConfig:{clickedVisualElement:q?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Z&&this.isNonVideoContentCommand(Z)){this.currentEndpoint=Z;this.data=void 0;M=_.bP();g=_.b(Z,_.wF);var m,H;(g=(m=_.b(g==null?void 0:g.renderer,_.bzj))==null?void 0:(H=m.screenLoggingData)==null?void 0:H.screenVeType)&&_.s8(M,g);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(m=this.getActiveReelVideo(c))&&m.appendChild(this.overlayContainer)}var A,Y;if(((A=this.reelWatchSequenceResponse)==null?0:A.continuationEndpoint)&&((Y=this.reelWatchSequenceResponse)==null?0:Y.entries)&&c===this.reelWatchSequenceResponse.entries.length-1){var t,E;A={contentPlaybackContext:_.Qa({},(E=_.b((t=this.currentEndpoint)==null?void 0:t.commandMetadata,_.jO))==null?void 0:E.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:A})}var J,X,u;((J=this.reelWatchSequenceResponse)==null?0:J.prevContinuationEndpoint)&&c===-(((X=this.reelWatchSequenceResponse)==null?void 0:(u=X.prevEntries)==null?void 0:u.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.r.setMiniplayerPreview=function(c){c=(c===void 0?0:c)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var f,d,q=_.ql().resolve(_.yN),Z={shortsData:void 0,shortsPreviewThumbnail:c?(f=this.shortsProcessedSequence)==null?void 0:(d=f[c])==null?void 0:d.thumbnail:void 0};_.WE(q,Z)};
_.r.updateTitle=function(c){var f,d;c=(c==null?0:c.adSlots)?"":(d=c==null?void 0:(f=c.videoDetails)==null?void 0:f.title)!=null?d:"";_.CZ(this.hostElement,"yt-update-title",c)};
_.r.registerPanel=function(c){var f=_.ql().resolve(_.SD);if(f){c=_.C(c.engagementPanels||[]);for(var d=c.next();!d.done;d=c.next()){d=d.value;var q=this.getPanelContentIdentifier(d.engagementPanelSectionListRenderer),Z=void 0,M=void 0;(M=(Z=f).registerPanelContent)==null||M.call(Z,q,d)}}};
_.r.getPanelIdentifier=function(c){var f;return(c==null?void 0:(f=c.identifier)==null?void 0:f.tag)||(c==null?void 0:c.panelIdentifier)||(c==null?void 0:c.targetId)};
_.r.getPanelContentIdentifier=function(c){var f;return(c==null?void 0:c.targetId)||(c==null?void 0:c.panelIdentifier)||(c==null?void 0:(f=c.identifier)==null?void 0:f.tag)};
_.r.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;_.Gh().dispatch(jG(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.Gh().dispatch(TMG(!1));var c=_.ql().resolve(_.bK);c.dismissedIndices=[];c.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.ql().resolve(_.yN).close(!0)};
_.r.processAppendReelWatchSequenceContinuationEntriesAction=function(c){var f=this,d;(d=this.intersectionObserver)==null||d.disconnect();c=c.appendReelWatchSequenceContinuationEntriesAction;if(c==null?0:c.entries){var q;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.LT(((q=this.reelWatchSequenceResponse)==null?void 0:q.entries)||[]),_.LT(c.entries)),continuationEndpoint:c.continuationEndpoint})}else if(c==null?0:c.prevEntries){var Z;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.LT(((Z=this.reelWatchSequenceResponse)==null?void 0:Z.prevEntries)||[]),_.LT(c.prevEntries)),prevContinuationEndpoint:c.prevContinuationEndpoint});_.a7.addLowPriorityJob(function(){f.movePlayerToVideo(f.index);var M;(M=f.getActiveReelVideo(f.index))==null||M.scrollIntoView({block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.a7.addLowPriorityJob(function(){f.observeShorts()},100)};
_.r.processWatchSequence=function(c){var f=this;return c.map(function(d){d=d.command;if(f.isVideoContentCommand(d)){var q=_.b(d,_.EO);return{reelPlayerOverlayRenderer:_.b(q==null?void 0:q.overlay,_.Kvr),thumbnail:q.thumbnail,command:d}}return f.isNonVideoContentCommand(d)?(q=_.b(d,_.wF),{reelNonVideoContentRenderer:_.b(q==null?void 0:q.renderer,_.bzj),command:d}):{command:d}})};
_.r.calculateIntersectionObserverThreshold=function(){var c=_.r1(this.hostElement).querySelector("ytd-reel-video-renderer"),f=1;(c==null?0:c.offsetHeight)&&(c==null?0:c.offsetWidth)&&(f=Math.min(c.offsetHeight,this.shortsContainer.offsetHeight)/c.offsetHeight*(Math.min(c.offsetWidth,this.shortsContainer.offsetWidth)/c.offsetWidth));return Math.round(f*.6*10)/10};
_.r.isVideoContentCommand=function(c){_.ql().resolve(_.bK);return!!_.b(c,_.EO)};
_.r.isNonVideoContentCommand=function(c){_.ql().resolve(_.bK);return!!_.b(c,_.wF)};
_.r.initCinematicController=function(){var c=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22172_cinematicController=new _.d5(this.shortsCinematicContainer,this.player);var f,d=_.b((f=this.data)==null?void 0:f.background,_.YJ);_.pmi(this.JSC$22172_cinematicController,d);_.Uir(this.JSC$22172_cinematicController,fA3(d));_.RlH(this.JSC$22172_cinematicController);_.a7.addLowPriorityJob(function(){c.moveCinematicsToVideo()})}};
_.r.handleMiniplayerNavigateShorts=function(c){c==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():c==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.r.handleSignalActionToggleShortsPictureInPicture=function(){if(_.ql().resolve(_.yN).pictureInPictureSupported()){var c=_.ql().resolve(_.bK);if(_.F("web_shorts_pip")){var f=_.ql().resolve(_.yN);c.isShortsPipActive()?f.deactivate():f.isMiniplayerActive()||(_.F7().shortsPipActivation=!0,_.JTC(f))}}else(c=this.player)==null||c.togglePictureInPicture()};
_.ci.Object.defineProperties(sH.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.reelWatchSequenceResponse)!=null&&c.prevEntries)return this.processWatchSequence([].concat(_.LT(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var c=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!c)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var f=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.LT(this.prevShortsSequence.slice(0,f)),[c],_.LT(this.prevShortsSequence.slice(f+
1)))}f=this.index+this.shortsProcessedPrevSequence.length;c.thumbnail=this.shortsProcessedPrevSequence[f].thumbnail;return[].concat(_.LT(this.shortsProcessedPrevSequence.slice(0,f)),[c],_.LT(this.shortsProcessedPrevSequence.slice(f+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.reelWatchSequenceResponse)!=null&&c.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var c=this.getCurrentShort();if(!c||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[c];if(c==null||!c.reelNonVideoContentRenderer){var f=this.getIndexInSequence(this.shortsSequence,_.b(this.currentEndpoint,_.EO).videoId);if(this.index===0&&f!==-1)return this.currentPlayerIndex=this.index=f,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.LT(this.shortsSequence.slice(0,this.index)),[c],_.LT(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){c.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var d,q,Z,M;f=((q=_.b((d=this.shortsProcessedSequence[0])==null?void 0:d.command,_.EO))==null?void 0:q.videoId)===((M=_.b((Z=this.shortsSequence[0])==null?void 0:Z.command,_.EO))==null?void 0:M.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.LT(this.shortsProcessedSequence.slice(0,
this.index)),[c],_.LT(this.shortsSequence.slice(f)))}return[c].concat(_.LT(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var c=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;c&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(c)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 c,f;return this.index===((c=this.reelWatchSequenceResponse)==null?void 0:(f=c.entries)==null?void 0:f.length)}var d;return!((d=this.reelWatchSequenceResponse)==null?0:d.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var c;(c=this.delayedActiveIndexUpdateDebouncer)==null||c.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return this.isShortPlayable()||((f=_.b((c=this.data)==null?void 0:c.watchStatus,_.aj_))==null?void 0:(d=f.style)==null?void 0:d.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var c=this,f=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),d;if((this.data||f)&&(((d=this.data)==null?0:d.engagementPanels)||this.isAd()||f)){f=!1;this.activePanel="shorts-comments-panel";var q;d=_.C(((q=this.data)==null?void 0:q.engagementPanels)||[]);for(q=d.next();!q.done;q=d.next())if(this.getPanelIdentifier(q.value.engagementPanelSectionListRenderer)===this.activePanel){f=!0;break}if(this.isPersistentPanelActive){var Z=
_.ql().resolve(_.SD);_.Em(_.a7,function(){Z.showPanel(c.activePanel,void 0,void 0,void 0,null)},100)}var M;
q=[].concat(_.LT(Object.values(((M=this.data)==null?void 0:M.engagementPanels)||{})));if(_.F("enable_preview_panel_for_shorts_search_suggested_action")){var g,O,l,m,H;((m=_.b((g=this.data)==null?void 0:(O=g.overlay)==null?void 0:(l=O.reelPlayerOverlayRenderer)==null?void 0:l.metapanel,_.tw_))==null?void 0:(H=m.metadataItems)==null?void 0:H.find(function(A){var Y,t;return((Y=_.b(A,Q4J))==null?void 0:(t=Y.icon)==null?void 0:t.iconType)==="SEARCH"}))!==void 0&&q.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}M=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);g=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return M===void 0&&g===void 0||(M==null?0:M.isDisabled)||(g==null?void 0:g.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!f?(f=q==null?void 0:q.findIndex(function(A){var Y,
t;return((Y=A.engagementPanelSectionListRenderer)==null?void 0:(t=Y.identifier)==null?void 0:t.tag)==="shorts-comments-panel"}),f===-1||f===void 0||q!=null&&q.splice(f,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.HO("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.HO("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:_.HO("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.HO("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(_.LT(Object.values(q||
{})))):q}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.shortsProcessedSequence)==null?void 0:c[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var c=this,f,d,q;if((f=this.playerData)==null?0:(d=f.playabilityStatus)==null?0:(q=d.errorScreen)==null?0:q.playerInterstitialRenderer)return _.a7.addLowPriorityJob(function(){c.movePlayerToVideo(c.index)}),this.playerData.playabilityStatus.errorScreen;
var Z,M;return((Z=this.data)==null?void 0:Z.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((M=this.data)==null?0:M.watchStatus)&&_.b(this.data.watchStatus,_.$__)?(_.a7.addLowPriorityJob(function(){c.movePlayerToVideo(c.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.ci.Object.defineProperties(sH,{template:{configurable:!0,enumerable:!0,get:function(){if(L23===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);L23=c}c=L23;return c}}});
sH.prototype.onNextButtonDataChange=sH.prototype.onNextButtonDataChange;sH.prototype.onPrevButtonDataChange=sH.prototype.onPrevButtonDataChange;sH.prototype.onPersistentPanelActiveChanged=sH.prototype.onPersistentPanelActiveChanged;sH.prototype.lazyUpdateMiniplayerData=sH.prototype.lazyUpdateMiniplayerData;sH.prototype.onShortsPipActiveChanged=sH.prototype.onShortsPipActiveChanged;sH.prototype.setActiveIndex=sH.prototype.setActiveIndex;sH.prototype.graftNvcRenderer=sH.prototype.graftNvcRenderer;
sH.prototype.graftClientVisualElements=sH.prototype.graftClientVisualElements;sH.prototype.onActiveChanged=sH.prototype.onActiveChanged;sH.prototype.onShortsDismiss=sH.prototype.onShortsDismiss;sH.prototype.onShortUndoDismiss=sH.prototype.onShortUndoDismiss;sH.prototype.playerDataChanged=sH.prototype.playerDataChanged;sH.prototype.afterPlayerStarted=sH.prototype.afterPlayerStarted;sH.prototype.unhideCurrentOverlay=sH.prototype.unhideCurrentOverlay;sH.prototype.onServiceRequestCompleted=sH.prototype.onServiceRequestCompleted;
sH.prototype.engagementPanelsChanged=sH.prototype.engagementPanelsChanged;sH.prototype.onFullscreenChange=sH.prototype.onFullscreenChange;sH.prototype.onResize=sH.prototype.onResize;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],sH.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Kw.YtPageBehavior),_.D("design:type",Object)],sH.prototype,"ytPageBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],sH.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.aJ),_.D("design:type",Object)],sH.prototype,"ironResizableBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],sH.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],sH.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],sH.prototype,"ytdReduxBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],sH.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"playerData",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"reelWatchSequenceResponse",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"cachedReelWatchSequenceResponse",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"cachedSequenceParams",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"cachedSequenceProvider",void 0);
_.y([_.L(),_.D("design:type",Object)],sH.prototype,"currentEndpoint",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"nextButtonData",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"prevButtonData",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"isPreviousPageShorts",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"index",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"delayedActiveIndex",void 0);
_.y([_.L(),_.D("design:type",Object)],sH.prototype,"playablePreviousIndex",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"player",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"isPlayerPaused",void 0);_.y([_.L({selector:Zvi}),_.D("design:type",Object)],sH.prototype,"isPlayerStarted",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"intersectionObserver",void 0);_.y([_.L(),_.D("design:type",Number)],sH.prototype,"cinematicsInitializeJobId",void 0);
_.y([_.L(),_.D("design:type",Number)],sH.prototype,"updateMiniplayerDataJobId",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"fitToVisibleBounds",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"pageSubtype",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],sH.prototype,"enablePreviousContinuation",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"shortsPipEnabled",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"isDark",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"shortsViewTransitions",void 0);_.y([_.L({selector:_.so,reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"isFullscreen",void 0);_.y([_.L({selector:_.BZ,reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"isShortsPipActive",void 0);
_.y([_.AY("#shorts-inner-container"),_.D("design:type",HTMLElement)],sH.prototype,"shortsInnerContainer",void 0);_.y([_.AY("#back-nav-button ytd-button-renderer"),_.D("design:type",_.jt)],sH.prototype,"backNavButton",void 0);_.y([_.AY("#shorts-container"),_.D("design:type",HTMLElement)],sH.prototype,"shortsContainer",void 0);_.y([_.sf("error-screen"),_.D("design:type",HTMLElement)],sH.prototype,"errorScreenContainer",void 0);
_.y([_.sf("player"),_.D("design:type",Object)],sH.prototype,"playerElement",void 0);_.y([_.sf("shorts-cinematic-container"),_.D("design:type",HTMLElement)],sH.prototype,"shortsCinematicContainer",void 0);_.y([_.sf("initial-player-container"),_.D("design:type",HTMLElement)],sH.prototype,"initialPlayerContainer",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"buttonOverride",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"anchoredPanelActive",void 0);
_.y([_.L(),_.D("design:type",String)],sH.prototype,"activePanel",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"isActive",void 0);_.y([_.L({selector:qhc,reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"smallScreenPersistentPanel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"isPersistentPanelActive",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"smallScreenSqueezeBack",void 0);
_.y([_.L(),_.D("design:type",Object)],sH.prototype,"enableScrollIntoViewCenter",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"formatFirst",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"enableFlexibleOverlay",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],sH.prototype,"useAspectRatio",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"panelContainer",void 0);
_.y([_.L(),_.D("design:type",Object)],sH.prototype,"overlayContainer",void 0);_.y([_.L(),_.D("design:type",Object)],sH.prototype,"isShortsInitialized",void 0);_.y([_.S("reelWatchSequenceResponse"),_.D("design:type",Object),_.D("design:paramtypes",[])],sH.prototype,"prevShortsSequence",null);_.y([_.S("data","prevShortsSequence"),_.D("design:type",Object),_.D("design:paramtypes",[])],sH.prototype,"shortsProcessedPrevSequence",null);
_.y([_.S("reelWatchSequenceResponse"),_.D("design:type",Object),_.D("design:paramtypes",[])],sH.prototype,"shortsSequence",null);_.y([_.S("data","shortsSequence"),_.D("design:type",Object),_.D("design:paramtypes",[])],sH.prototype,"shortsProcessedSequence",null);
_.y([_.L({reflectToAttribute:!0}),_.S("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],sH.prototype,"isUpArrowHidden",null);_.y([_.L({reflectToAttribute:!0}),_.S("reelWatchSequenceResponse","index","endOfNextContinuation"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],sH.prototype,"isDownArrowHidden",null);
_.y([_.L(),_.S("index"),_.D("design:type",Number),_.D("design:paramtypes",[])],sH.prototype,"activeIndex",null);_.y([_.S("isShortPlayable","data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],sH.prototype,"shouldRenderOfflineContent",null);_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"onResize",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],sH.prototype,"anchoredEngagementPanels",null);
_.y([_.L(),_.D("design:type",Object)],sH.prototype,"watchWhileEngagementPanels",void 0);_.y([_.m5("isFullscreen"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"onFullscreenChange",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"engagementPanelsChanged",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],sH.prototype,"onServiceRequestCompleted",null);_.y([_.S("data","shortsSequence","index"),_.D("design:type",Object),_.D("design:paramtypes",[])],sH.prototype,"activeReel",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"unhideCurrentOverlay",null);
_.y([_.m5("isPlayerStarted"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"afterPlayerStarted",null);_.y([_.S("playerData","reelWatchSequenceResponse","data"),_.D("design:type",Object),_.D("design:paramtypes",[])],sH.prototype,"errorScreen",null);_.y([_.S("errorScreen"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],sH.prototype,"hasError",null);
_.y([_.m5("playerData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],sH.prototype,"playerDataChanged",null);_.y([_.Ta("yt-dismissible-item-undo-feedback"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"onShortUndoDismiss",null);_.y([_.Ta("yt-disable-lockup-interaction"),_.D("design:type",Function),_.D("design:paramtypes",[Object]),_.D("design:returntype")],sH.prototype,"onShortsDismiss",null);
_.y([_.ba("active"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"onActiveChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"graftClientVisualElements",null);_.y([_.m5("currentPlayerIndex"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"graftNvcRenderer",null);
_.y([_.m5("index"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"setActiveIndex",null);_.y([_.m5("isShortsPipActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"onShortsPipActiveChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"lazyUpdateMiniplayerData",null);
_.y([_.L(),_.D("design:type",Object)],sH.prototype,"onOverlayDensityChanged",void 0);_.y([_.m5("isPersistentPanelActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"onPersistentPanelActiveChanged",null);_.y([_.m5("index","data","isUpArrowHidden"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"onPrevButtonDataChange",null);
_.y([_.m5("index","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sH.prototype,"onNextButtonDataChange",null);_.y([_.v({is:"ytd-shorts"})],sH);_.O2.registerService(_.f1h,sH);
_.aO();
}catch(e){_._DumpException(e)}
try{
_.J5("JzFVk");
var p$F=function(c){return _.B("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},UEr(c.data.ctaButton,{buttonViewModel:{}}),_.B(_.J9,{text:c.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var xEr;var om3;var zb=function(){return _.z.apply(this,arguments)||this};
_.K(zb,_.z);zb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zb.prototype.computeBlueBottomLink=function(c){return c};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zb.prototype,"data",void 0);_.y([_.L({computed:"computeIcon_(data.bottomIcon)"}),_.D("design:type",String)],zb.prototype,"bottomIcon",void 0);
_.y([_.L({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.D("design:type",Boolean)],zb.prototype,"enableBlueBottomLink",void 0);_.y([_.v({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],zb);
_.h(zb,"ytd-web-answer-renderer",function(){if(om3!==void 0)return om3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return om3=c},{mode:_.lP("kevlar_poly_si_batch_j035")?1:2});var GM3;var JF=function(){var c=_.z.apply(this,arguments)||this;c.hasChipBar=!1;return c};
_.K(JF,_.z);JF.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}}};
JF.prototype.computeHasChipBar=function(c){return!(c==null||!c.chipBar)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],JF.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.D("design:type",Object)],JF.prototype,"hasChipBar",void 0);_.y([_.v({is:"ytd-search-header-renderer",disableElementRegistration:!0})],JF);
_.h(JF,"ytd-search-header-renderer",function(){if(GM3!==void 0)return GM3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return GM3=c},{mode:1});var c7J;var a3=function(){return _.z.apply(this,arguments)||this};
_.K(a3,_.z);a3.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],a3.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],a3.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-page-continuation"})],a3);
_.h(a3,"ytd-page-continuation",function(){if(c7J!==void 0)return c7J;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return c7J=c},{mode:1});var fqr;var diF;var jBH;var Vk=function(){return _.z.apply(this,arguments)||this};
_.K(Vk,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Vk.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Vk);
_.h(Vk,"ytd-watch-card-one-vs-one-event",function(){if(jBH!==void 0)return jBH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return jBH=c},{mode:1});var XF=function(){return _.z.apply(this,arguments)||this};
_.K(XF,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],XF.prototype,"data",void 0);_.y([_.v({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],XF);
_.h(XF,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(diF!==void 0)return diF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return diF=c},{mode:1});var q1F;var ub=function(){return _.z.apply(this,arguments)||this};
_.K(ub,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ub.prototype,"data",void 0);_.y([_.v({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],ub);
_.h(ub,"ytd-banner-and-box-hero-image-renderer",function(){if(q1F!==void 0)return q1F;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return q1F=c},{mode:1});var ZHC;var v0=function(){var c=_.z.apply(this,arguments)||this;c.modern=_.F("web_modern_buttons");return c};
_.K(v0,_.z);v0.prototype.computeIcon=function(){var c,f,d=(c=this.data)==null?void 0:(f=c.icon)==null?void 0:f.iconType;if(d)return _.Tu(d)};
v0.prototype.computeButtonShape=function(){var c;return{buttonText:_.xC((c=this.data)==null?void 0:c.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.ci.Object.defineProperties(v0.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"}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],v0.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],v0.prototype,"modern",void 0);_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.style"),_.D("design:type",Object),_.D("design:paramtypes",[])],v0.prototype,"buttonColor",null);
_.y([_.v({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],v0);
_.h(v0,"ytd-call-to-action-button-renderer",function(){if(ZHC!==void 0)return ZHC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ZHC=c},{mode:1});var MfQ;var hF=function(){return _.z.apply(this,arguments)||this};
_.K(hF,_.z);hF.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.r1(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.kZ(this.data.leftThumbnail.thumbnails,216)+")")};
hF.prototype.onLeftThumbnailChanged=hF.prototype.onLeftThumbnailChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hF.prototype,"data",void 0);_.y([_.m5("data.leftThumbnail"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],hF.prototype,"onLeftThumbnailChanged",null);_.y([_.v({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],hF);
_.h(hF,"ytd-collage-hero-image-renderer",function(){if(MfQ!==void 0)return MfQ;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return MfQ=c},{mode:1});var r7i;var wj=function(){return _.z.apply(this,arguments)||this};
_.K(wj,_.z);wj.prototype.computeStyle=function(c){return c};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wj.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.D("design:type",String)],wj.prototype,"componentStyle",void 0);_.y([_.v({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],wj);
_.h(wj,"ytd-single-hero-image-renderer",function(){if(r7i!==void 0)return r7i;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return r7i=c},{mode:1});var CUS;var yk=function(){return _.z.apply(this,arguments)||this};
_.K(yk,_.z);_.r=yk.prototype;
_.r.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"}}};
_.r.computeSubtitle=function(c){if(this.data){var f;if(this.data.upcomingEventData){c=_.xC(c.subtitle);var d=Number(this.data.upcomingEventData.startTime);isNaN(d)||(f=_.pC(_.hc(c,d)))}else f=c.subtitle;return f}};
_.r.onHeroTap=function(c){c.preventDefault();var f=this.data&&this.data.navigationEndpoint;!f||!_.qY(_.x0(c),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.qY(_.x0(c),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.F("kevlar_watchcard_hero_video_renderer_killswitch")?_.CZ(this.hostElement,"yt-navigate",{navigationEndpoint:f}):this.ytComponentBehavior.resolveCommand(f))};
_.r.computeHeroTabIndex=function(c){return c&&c.simpleText?-1:0};
_.r.computeHeroRole=function(c){return c&&c.simpleText?"":"link"};
_.r.computeIsReminderButtonPresent=function(c){return!(!c||!c.reminderButton)};
_.r.computeHideBottomItems=function(c){return!(this.computeIsReminderButtonPresent(c)||c.subtitle)};
_.r.dataChanged=function(){var c=this.get("data.buttons.buttonRenderer.serviceEndpoint"),f;((f=_.b(c==null?void 0:c.commandMetadata,_.z2))==null?0:f.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(c)};
yk.prototype.dataChanged=yk.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],yk.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yk.prototype,"data",void 0);
_.y([_.L({computed:"computeSubtitle(data)"}),_.D("design:type",String)],yk.prototype,"subtitle",void 0);_.y([_.L({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],yk.prototype,"isReminderButtonPresent",void 0);_.y([_.L({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],yk.prototype,"hideBottomItems",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yk.prototype,"dataChanged",null);_.y([_.v({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],yk);
_.h(yk,"ytd-watch-card-hero-video-renderer",function(){if(CUS!==void 0)return CUS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return CUS=c},{mode:1});var gPC;var W0=function(){return _.z.apply(this,arguments)||this};
_.K(W0,_.z);_.r=W0.prototype;_.r.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"}}}};
_.r.computeTitleBadges=function(c){return c?[c]:[]};
_.r.computeHeaderStyle=function(c){return c?c.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.r.computeAvatarAriaLabel=function(c){if(c){var f,d,q,Z;return(Z=(f=c.avatar)==null?void 0:(d=f.accessibility)==null?void 0:(q=d.accessibilityData)==null?void 0:q.label)!=null?Z:_.xC(c==null?void 0:c.title)}};
_.r.computeAvatarHeight=function(c){return c==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.r.computeBadgeRowClass=function(c){return(c==null?0:c[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],W0.prototype,"data",void 0);_.y([_.L({computed:"computeTitleBadges(data.titleBadge)"}),_.D("design:type",Array)],W0.prototype,"titleBadges",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.D("design:type",String)],W0.prototype,"headerStyle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.D("design:type",String)],W0.prototype,"badgeRowClass",void 0);_.y([_.v({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],W0);
_.h(W0,"ytd-watch-card-rich-header-renderer",function(){if(gPC!==void 0)return gPC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return gPC=c},{mode:1});var kJQ;var OHr;var D1=function(){return _.z.apply(this,arguments)||this};
_.K(D1,_.z);D1.prototype.onMetadataTap=function(c){var f=this.data&&this.data.navigationEndpoint;f&&!_.qY(_.x0(c),this.hostElement,["A".toString()])&&_.CZ(this.hostElement,"yt-navigate",{endpoint:f})};
_.ci.Object.defineProperties(D1.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 c;if(this.data.upcomingEventData){var f=_.xC(this.data.subtitle),d=Number(this.data.upcomingEventData.startTime);isNaN(d)||(c=_.pC(_.hc(f,d)))}else c=this.data.subtitle;return c}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],D1.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data.style"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],D1.prototype,"isCondensed",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],D1.prototype,"subtitle",null);
_.y([_.v({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],D1);
_.h(D1,"ytd-watch-card-compact-video-renderer",function(){if(OHr!==void 0)return OHr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return OHr=c},{mode:1});var lq3;var e0=function(){return _.z.apply(this,arguments)||this};
_.K(e0,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],e0.prototype,"data",void 0);_.y([_.v({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],e0);
_.h(e0,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(lq3!==void 0)return lq3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return lq3=c},{mode:1});var Nw=function(){return _.z.apply(this,arguments)||this};
_.K(Nw,_.z);Nw.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}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Nw.prototype,"ytRendererStamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Nw.prototype,"data",void 0);_.y([_.v({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Nw);
_.h(Nw,"ytd-vertical-watch-card-list-renderer",function(){if(kJQ!==void 0)return kJQ;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return kJQ=c},{mode:1});var sBC;var I3=function(){var c=_.z.apply(this,arguments)||this;c.ariaExpanded="false";return c};
_.K(I3,_.z);_.r=I3.prototype;_.r.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.r.dataChanged=function(){var c;this.currentSeasonIndex=((c=this.data)==null?void 0:c.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.r.computeEpisodesInfo=function(c,f,d){if(c!==void 0&&f.length===c.length)return c[d]};
_.r.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.r.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.r.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.r.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.r.getUppercaseSimpleString=function(c){return this.ytRendererBehavior.getSimpleString(c).toUpperCase()};
_.r.updateCurrentSeasonIndexFromBinding=function(c){this.currentSeasonIndex=c.detail.value};
I3.prototype.onIronOverlayClosed=I3.prototype.onIronOverlayClosed;I3.prototype.currentSeasonIndexChanged=I3.prototype.currentSeasonIndexChanged;I3.prototype.dataChanged=I3.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],I3.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],I3.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",String)],I3.prototype,"label",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],I3.prototype,"currentSeasonIndex",void 0);_.y([_.L({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.D("design:type",Object)],I3.prototype,"episodesInfo",void 0);_.y([_.L({value:"false"}),_.D("design:type",Object)],I3.prototype,"ariaExpanded",void 0);_.y([_.AY("#lists"),_.D("design:type",Object)],I3.prototype,"lists",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],I3.prototype,"dataChanged",null);_.y([_.ba("currentSeasonIndex"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],I3.prototype,"currentSeasonIndexChanged",null);_.y([_.Ta("iron-overlay-closed"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],I3.prototype,"onIronOverlayClosed",null);
_.y([_.v({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],I3);
_.h(I3,"ytd-watch-card-section-dropdown-renderer",function(){if(sBC!==void 0)return sBC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return sBC=c},{mode:1});var Bcp;var P0=function(){var c=_.z.apply(this,arguments)||this;c.isSearch=!1;return c};
_.K(P0,_.z);P0.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}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],P0.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],P0.prototype,"isSearch",void 0);_.y([_.v({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],P0);
_.h(P0,"ytd-watch-card-section-sequence-renderer",function(){if(Bcp!==void 0)return Bcp;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return Bcp=c},{mode:1});var UEr=_.La({buttonViewModel:_.mN});_.ZB(p$F);var iHH=_.dN(function(c){return _.B("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.B(_.u7,{data:function(){return c.data().ctaButton}},{buttonViewModel:_.mN}),_.B(_.J9,{text:function(){return c.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"yj"),TcH=_.F("web_enable_sink_ytd_button_banner_view_model")?iHH:p$F,mip=_.F("web_enable_sink_ytd_button_banner_view_model")?iHH:_.bS(p$F);
iHH.idomCompat=!0;_.F("web_enable_sink_ytd_button_banner_view_model")?_.g_(mip,"ytd-button-banner-view-model",{props:{data:_.oM}}):_.m$(TcH,"ytd-button-banner-view-model",{propNames:["data"]});var R3=function(){var c=_.z.apply(this,arguments)||this;c.isSearch=!1;return c};
_.K(R3,_.z);
R3.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"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],R3.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],R3.prototype,"rounded",void 0);_.y([_.L(),_.D("design:type",Object)],R3.prototype,"isSearch",void 0);
_.y([_.v({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],R3);
_.h(R3,"ytd-universal-watch-card-renderer",function(){if(fqr!==void 0)return fqr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return fqr=c},{mode:1});var HHC;_.g_(_.dN(function(c){var f=c.data;var d;c=!((d=_.ql().resolve(_.dx(_.of)))==null||!d());d={};return _.B("overview-message-view-model",{class:_.FY("ytwOverviewMessageViewModelHost",(d.ytwOverviewMessageViewModelDarkBackground=c,d.ytwOverviewMessageViewModelLightBackground=!c,d))},_.B(_.T,{cond:function(){return f().primaryImage},
then:function(q){return _.B(_.jC,{data:q,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.B(_.T,{cond:function(){return f().primaryText},
then:function(){return _.B("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.B(_.J9,{text:function(){return f().primaryText}}))}}),_.B(_.T,{cond:function(){return f().secondaryText},
then:function(){return _.B("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.B(_.J9,{text:function(){return f().secondaryText}}))}}))},"zj"),"overview-message-view-model",{props:{data:_.oM}});_.g_(_.nJ3,"ytd-overview-answer-view-model",{props:{data:_.oM}});var U0=function(){return _.z.apply(this,arguments)||this};
_.K(U0,_.z);U0.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"}}}};
U0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],U0.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],U0.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],U0.prototype,"isSearch",void 0);
_.y([_.v({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],U0);
_.h(U0,"ytd-secondary-search-container-renderer",function(){if(HHC!==void 0)return HHC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return HHC=c},{mode:1});var A7C;var pN=function(){var c=_.z.apply(this,arguments)||this;c.renderSecondarySearchContainer=!1;c.isSearch=!1;return c};
_.K(pN,_.z);_.r=pN.prototype;_.r.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"}}}};
_.r.created=function(){var c=this;this.boundStampSecondarySearchContainerIfFits=function(){c.stampSecondarySearchContainerIfFits()};
_.Xr("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.r.computeIsSearchFrictionPage=function(c){var f,d,q,Z,M;c=c==null?void 0:(f=c.primaryContents)==null?void 0:(d=f.sectionListRenderer)==null?void 0:(q=d.contents)==null?void 0:(Z=q[0])==null?void 0:(M=Z.itemSectionRenderer)==null?void 0:M.contents;if(!c)return!1;f=_.C(c);for(d=f.next();!d.done;d=f.next())if(q=void 0,(q=d.value)==null?0:q.searchFrictionViewModel)return!0;return!1};
_.r.computeShowSecondaryColumn=function(c,f){return!!(f&&f.secondaryContents&&c)};
_.r.activeChanged=function(){var c=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.ia(this,this.debounceStampSecondarySearchContainerIfFits)),_.Nh(function(){c.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.ia(this,this.debounceStampSecondarySearchContainerIfFits))};
_.r.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.r.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.r.debounceStampSecondarySearchContainerIfFits=function(){_.Ia(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.r.onRetrieveLocation=function(c,f){f.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);c.stopPropagation()};
_.r.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
pN.prototype.dataChanged=pN.prototype.dataChanged;pN.prototype.onRetrieveLocation=pN.prototype.onRetrieveLocation;pN.prototype.persistentGuideChanged=pN.prototype.persistentGuideChanged;pN.prototype.activeChanged=pN.prototype.activeChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],pN.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.Q(_.aJ),_.D("design:type",Object)],pN.prototype,"ironResizableBehavior",void 0);_.y([_.L(),_.D("design:type",Boolean)],pN.prototype,"active",void 0);_.y([_.L(),_.D("design:type",Object)],pN.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.D("design:type",Boolean)],pN.prototype,"useBiggerThumbs",void 0);_.y([_.L({reflectToAttribute:!0,value:function(){return _.CD("desktop_search_bigger_thumbs_style")}}),
_.D("design:type",String)],pN.prototype,"biggerThumbsStyle",void 0);_.y([_.L(),_.D("design:type",Object)],pN.prototype,"renderSecondarySearchContainer",void 0);_.y([_.L({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.D("design:type",Boolean)],pN.prototype,"showSecondaryColumn",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.D("design:type",Boolean)],pN.prototype,"isSearchFrictionPage",void 0);
_.y([_.L(),_.D("design:type",Object)],pN.prototype,"isSearch",void 0);_.y([_.m5("active"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pN.prototype,"activeChanged",null);_.y([_.m5("guidePersistentAndVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pN.prototype,"persistentGuideChanged",null);
_.y([_.Ta("yt-retrieve-location"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],pN.prototype,"onRetrieveLocation",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pN.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],pN);
_.h(pN,"ytd-two-column-search-results-renderer",function(){if(A7C!==void 0)return A7C;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return A7C=c},{mode:1});var xr=function(){var c=_.z.apply(this,arguments)||this;c.hasSearchHeader=!1;c.hasSecondaryContent=!1;c.hasBiggerThumbs=_.F("enable_desktop_search_bigger_thumbs");c.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return c};
_.K(xr,_.z);_.r=xr.prototype;_.r.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:_.pB(["aa","eocs"])}}};
_.r.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.r.loadPage_=function(c){this.initCsi();c&&(this.data=c,_.Xr("REFINEMENTS_TUPLE",["FromSearchResponse",c.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.xO(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.r.initCsi=function(){_.bA("results",["ol","cpt"])};
_.r.updateTitle=function(){var c=_.y2(window.location.href,"q");c||(c=_.y2(window.location.href,"search_query"));_.CZ(this.hostElement,"yt-update-title",c||"")};
_.r.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.r.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.F("web_srp_data_changed_terminate_imp_killswitch")||_.gS(this.hostElement,"yt-terminate-video-preview-action")};
_.r.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.r.computeHasSearchHeader=function(c){var f;c=c==null?void 0:(f=c.header)==null?void 0:f.searchHeaderRenderer;return!!c&&(!!c.searchFilterButton||!!c.chipBar)};
_.r.computeHasSecondaryContent=function(c){var f,d;return!!(c==null?0:(f=c.contents)==null?0:(d=f.twoColumnSearchResultsRenderer)==null?0:d.secondaryContents)};
_.ci.Object.defineProperties(xr,{template:{configurable:!0,enumerable:!0,get:function(){if(xEr===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);xEr=c}c=xEr;return c}}});
xr.prototype.onReloadContinuationFinish=xr.prototype.onReloadContinuationFinish;xr.prototype.dataChanged=xr.prototype.dataChanged;_.y([_.Q(_.Kw.YtPageBehavior),_.D("design:type",Object)],xr.prototype,"ytPageBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],xr.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],xr.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xr.prototype,"data",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],xr.prototype,"monitorScroll",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xr.prototype,"hasSearchHeader",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xr.prototype,"hasSecondaryContent",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],xr.prototype,"hasBiggerThumbs",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xr.prototype,"dataChanged",null);
_.y([_.Ta("yt-reload-continuation-finish"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xr.prototype,"onReloadContinuationFinish",null);_.y([_.v({is:"ytd-search"})],xr);_.O2.registerService(_.cFN,xr);
_.aO();
}catch(e){_._DumpException(e)}
try{
_.J5("h8y2qb");
var cFD=function(c){if(c=_.OKr(c)){var f;(f=c.sources)!=null&&f[0]?(f=_.sCk(c),f=f<1?"VERTICAL":f>1?"HORIZONTAL":"SQUARE"):f=void 0;return f}},E$=function(c){_.EK.call(this,"upload");
this.opts.query=c},dw3=function(c,f){return _.B(f1c,{data:c,
onYtNavigate:f})},j3J=function(c,f){return _.Bb(c.entities,"pageHeaderEntity",f)},ZNF=function(c,f){return c.map(function(d){if(d.tabRenderer)return q0C(d.tabRenderer);
if(d.expandableTabRenderer&&f){var q=d.expandableTabRenderer;return{customTabRenderable:function(){return f(q)}}}return{}})},q0C=function(c){return{identifier:c.tabIdentifier,
aTagConfig:_.NV({innertubeCommand:c.endpoint,forceNewState:!0}),title:c.title,selected:c.selected,disabled:c.unselectable,icon:c.icon}},M0p=function(c){return _.CC({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:c})},rF3=function(c){if(!_.kv(document,"gtm-noscript")){var f=document.createElement("noscript");
f.id="gtm-noscript";f.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+c+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(f)}};_.rn(E$,_.EK);E$.prototype.JSC$10018_setLabel=function(c){E$.superClass_.JSC$10018_setLabel.call(this,c);return this};
E$.prototype.addUploadMetadata=function(c,f){E$.superClass_.addUploadMetadata.call(this,c,f);return this};var Cb3=function(c){if(c!=="youtubebanner"&&c!=="youtube-channel-banner")throw Error("jo");E$.call(this,c)};
_.K(Cb3,E$);Cb3.prototype.JSC$10018_setLabel=function(c){E$.prototype.JSC$10018_setLabel.call(this,c);return this};
Cb3.prototype.addUploadMetadata=function(c,f){E$.prototype.addUploadMetadata.call(this,c,f);return this};var grG=[_.aJ,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(c){_.$n(c).path[0]!==this&&(this.resetLayout(),c.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var c=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.OP(this._layoutDebouncer,_.zu,c);_.l0(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var c=this;requestAnimationFrame(function(){c.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(c){this.resizerShouldNotify(c)&&this._notifyDescendant(c)},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 kb3=[_.EvK,{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(c,f){var d=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[c];if(!d)throw new ReferenceError(this._getUndefinedMsg(c));c=this._boundEffect(d,f||{});c.setUp();return c},
_effectsChanged:function(c,f,d){this._tearDownEffects();c&&d&&(c.split(" ").forEach(function(q){var Z;q!==""&&((Z=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[q])?this._effects.push(this._boundEffect(Z,f[q])):console.warn(this._getUndefinedMsg(q)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(c,f){f=f||{};var d=parseFloat(f.startsAt||0),q=parseFloat(f.endsAt||1),Z=q-d,M=function(){};
q=d===0&&q===1?c.run:function(g,O){c.run.call(this,Math.max(0,(g-d)/Z),O)};
return{setUp:c.setUp?c.setUp.bind(this,f):M,run:c.run?q.bind(this):M,tearDown:c.tearDown?c.tearDown.bind(this):M}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(c){c.setUp()!==!1&&this._effectsRunFn.push(c.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(c){c.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(c,f){this._effectsRunFn&&this._effectsRunFn.forEach(function(d){d(c,f)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var c=this._clampedScrollTop;this._updateScrollState(c);this.threshold>0&&this._setThresholdTriggered(c>=this.threshold)}},
_getDOMRef:function(c){console.warn("_getDOMRef","`"+c+"` is undefined")},
_getUndefinedMsg:function(c){return"Scroll effect `"+c+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+c+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("ko`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(c){var f={};c=parseFloat(c.scalar);f.background=this._getDOMRef("background");f.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");f.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");f.deltaBg=f.backgroundFrontLayer.offsetHeight-f.background.offsetHeight;f.deltaBg===0?(isNaN(c)&&(c=.8),f.deltaBg=(this._dHeight||0)*c):(isNaN(c)&&(c=
1),f.deltaBg*=c);this._fxParallaxBackground=f},
run:function(c){var f=this._fxParallaxBackground;this.transform("translate3d(0px, "+f.deltaBg*Math.min(1,c)+"px, 0px)",f.backgroundFrontLayer);f.backgroundRearLayer&&this.transform("translate3d(0px, "+f.deltaBg*Math.min(1,c)+"px, 0px)",f.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var ONF;var l1S;var s33=function(){};
_.r=s33.prototype;_.r._scrollTargetChanged=function(){};
_.r.scroll=function(){};
_.r._isValidScrollTarget=function(){};
_.r._toggleScrollListener=function(){};
_.r.toggleScrollListener=function(){};
_.r.createEffect=function(){};
_.r._effectsChanged=function(){};
_.r._layoutIfDirty=function(){};
_.r._boundEffect=function(){};
_.r._setUpEffect=function(){};
_.r._tearDownEffects=function(){};
_.r._runEffects=function(){};
_.r._scrollHandler=function(){};
_.r._scrollStateChanged=function(){};
_.r._getUndefinedMsg=function(){};
_.r.notifyResize=function(){};
_.r.assignParentResizable=function(){};
_.r.stopResizeNotificationsFor=function(){};
_.r._subscribeIronResize=function(){};
_.r._unsubscribeIronResize=function(){};
_.r.resizerShouldNotify=function(){};
_.r._onDescendantIronResize=function(){};
_.r._fireResize=function(){};
_.r._onIronRequestResizeNotifications=function(){};
_.r._parentResizableChanged=function(){};
_.r._notifyDescendant=function(){};
_.r._requestResizeNotifications=function(){};
_.r._findParent=function(){};
_.r._appResetLayoutHandler=function(){};
_.r.resetLayout=function(){};
_.r._notifyLayoutChanged=function(){};
_.r._notifyDescendantResize=function(){};
_.r._setThresholdTriggered=function(){};
s33=_.JY({_template:function(){if(l1S!==void 0)return l1S;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;ONF===void 0&&(ONF=document.createElement("template"));var q=ONF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return l1S=c},
is:"tp-yt-app-header",behaviors:[kb3,grG],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 c=_.$n(this.$.slot).getDistributedNodes(),f=0,d;d=c[f];f++)if(d.nodeType===Node.ELEMENT_NODE)if(d.hasAttribute("sticky")){this._stickyElRef=d;break}else this._stickyElRef||(this._stickyElRef=d);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var c=this._clampedScrollTop,f=this._height===0||c===0,d=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;f||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();f?this._updateScrollState(c,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=d}},
_updateScrollState:function(c,f){if(this._height!==0){var d=0,q=this._top;var Z=this._maxHeaderTop;var M=c-this._lastScrollTop,g=Math.abs(M),O=c>this._lastScrollTop,l=performance.now();this._mayMove()&&(d=this._clamp(this.reveals?q+M:c,0,Z));c>=this._dHeight&&(d=this.condenses&&!this.fixed?Math.max(this._dHeight,d):d,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&g<100){if(l-this._initTimestamp>300||this._wasScrollingDown!==O)this._initScrollTop=c,this._initTimestamp=l;c>=Z&&
(Math.abs(this._initScrollTop-c)>30||g>10?(O&&c>=Z?d=Z:!O&&c>=this._dHeight&&(d=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((d-q)/(M/(l-this._lastTimestamp)),0,300)+"ms"):d=this._top)}Z=this._dHeight===0?c>0?1:0:d/this._dHeight;f||(this._lastScrollTop=c,this._top=d,this._wasScrollingDown=O,this._lastTimestamp=l);if(f||Z!==this._progress||q!==d||c===0)this._progress=Z,this._runEffects(Z,d),this._transformHeader(d)}},
_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(c){this.translate3d(0,-c+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&c>=this._stickyElTop?Math.min(c,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(c,f,d){return Math.min(d,Math.max(f,c))},
_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),_.$n(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(c){switch(c){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.$n(this).querySelector("[main-title]");case "condensedTitle":return _.$n(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var BjF;var iNC;_.JY({_template:function(){if(iNC!==void 0)return iNC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;BjF===void 0&&(BjF=document.createElement("template"));var q=BjF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return iNC=c},
is:"tp-yt-app-header-layout",behaviors:[grG],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.$n(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var c=this.header;if(this.isAttached&&c){this.$.wrapper.classList.remove("initializing");c.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)c.style.left=
"",c.style.right="";else{var f=this.getBoundingClientRect(),d=document.documentElement.clientWidth-f.right;c.style.left=f.left+"px";c.style.right=d+"px"}f=this.$.contentContainer.style;d=c.offsetHeight;c.fixed&&!c.condenses&&this.hasScrollingRegion?(f.marginTop=d+"px",f.paddingTop=""):(f.paddingTop=d+"px",f.marginTop="")}}});var TjG=new _.fi("replaceFeedContentAction");var mwJ=new _.fi("alertCommand");var HND=new _.fi("manageLabsStateCommand");var AFD=new _.fi("inlineFormRenderer");var nw=new _.fi("playlistSidebarPrimaryInfoRenderer");var Y0F=new _.fi("productDetailsThumbnailRenderer"),Fkq=new _.fi("productDetailsVariantRenderer"),t0c=new _.fi("productDetailsVariantOptionRenderer"),bNF=new _.fi("productDetailsOffersContainerRenderer"),KkH=new _.fi("productDetailsOfferRenderer");var ErH=new _.fi("shoppingFlaggingRenderer");var nrG=new _.fi("playlistBylineRenderer");var $wq=new _.fi("insertChannelTabCommand");var $J=function(){return _.Fj.apply(this,arguments)||this};
_.K($J,_.Fj);_.r=$J.prototype;_.r.activeChanged=function(){if(this.active){var c=_.r1(this.hostElement).querySelector("#header");c&&_.CZ(c,"iron-resize");window.addEventListener("scroll",_.ia(this,this.onScroll))}else window.removeEventListener("scroll",_.ia(this,this.onScroll)),_.CZ(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.r.guideVisibleChanged=function(){var c=_.r1(this.hostElement).querySelector("#header");c&&_.CZ(c,"iron-resize")};
_.r.onScroll=function(){var c=this;_.Ia(this,"onScroll",function(){var f=_.r1(c.hostElement).querySelector("#header");f&&f.polymerController&&(f=f.polymerController.getScrollState().progress===1?"standard":"seamed",_.CZ(c.hostElement,"yt-request-panel-mode-change",{mode:f}))},10)};
_.r.tabsChanged=function(){if(this.tabs){for(var c=null,f=0,d=this.tabs.length;f<d;++f){var q=this.tabs[f].tabRenderer;if(q&&q.selected){c=f;break}}this.selected=c}};
_.r.onTabsActivate=function(c){_.CZ(this.hostElement,"yt-navigate",{endpoint:this.tabs[c.detail.selected].tabRenderer.endpoint})};
$J.prototype.tabsChanged=$J.prototype.tabsChanged;$J.prototype.guideVisibleChanged=$J.prototype.guideVisibleChanged;$J.prototype.activeChanged=$J.prototype.activeChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],$J.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.L(),_.D("design:type",Array)],$J.prototype,"tabs",void 0);
_.y([_.L(),_.D("design:type",Object)],$J.prototype,"selected",void 0);_.y([_.L(),_.D("design:type",Boolean)],$J.prototype,"active",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],$J.prototype,"disableHeaderFluidWidth",void 0);_.y([_.m5("active"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$J.prototype,"activeChanged",null);
_.y([_.m5("guidePersistentAndVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$J.prototype,"guideVisibleChanged",null);_.y([_.m5("tabs"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$J.prototype,"tabsChanged",null);_.y([_.tY()],$J);var Q3p=[_.P.YtRendererBehavior,_.I0.YtdGuideStateAwareBehavior,$J.prototype];var S0r=2/3,LkG=_.m_(130749),zoF=function(c,f){var d=this;this.element=c;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){d.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:S0r,moveAction:function(q){d.moveAction(q)},
triggerAction:function(){d.element.isReloading=!0;_.ps(_.bP(),{visualElement:LkG});_.Hh.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:d.element}})}}}};
_.ij(_.bP(),LkG,this.layer);this.gesture=new _.gs(c,f,this.refreshConfig,"pan-down");this.attach()};
_.r=zoF.prototype;_.r.attach=function(){this.gesture.attach()};
_.r.detach=function(){this.gesture.detach()};
_.r.reset=function(){this.element.close()};
_.r.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.r.moveAction=function(c){this.element.rotation=c*360};var JFD=_.m_(130750),QA=function(c,f,d,q,Z){var M=this;this.element=c;this.parent=d;this.channelHeader=q;this.ytdReduxDispatch=Z;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){M.tabsStartAtInPx=M.channelHeader.clientHeight-48;var g;(g=M.selectedTab)!=null&&g.title&&(g=_.ql().resolve(_.dx(_.MY)))&&(g=g.getCurrentPage(),M.lastVisitedTabScrollPosition=g.getScrollTop(),M.previousTab&&
((M.lastVisitedTabScrollPosition===void 0?0:M.lastVisitedTabScrollPosition<M.channelHeader.clientHeight-48)?M.scrollPositionForTabs.has(M.selectedTab.title)&&M.scrollPositionForTabs.delete(M.selectedTab.title):M.scrollPositionForTabs.set(M.selectedTab.title,g.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:a1F(),triggerAction:function(){M.navigate(M.previousTab)},
moveAction:function(g,O){M.moveAction(g,O)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-a1F(),triggerAction:function(){M.navigate(M.nextTab)},
moveAction:function(g,O){M.moveAction(g,O)}}}};
_.ij(_.bP(),JFD,this.layer);this.gesture=new _.gs(c,f,this.tabConfig);this.attach()};
QA.prototype.attach=function(){this.gesture.attach()};
QA.prototype.detach=function(){this.gesture.detach()};
QA.prototype.tabsChanged=function(c){if(c){var f=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;c=_.C(c);for(var d=c.next();!d.done;d=c.next()){d=d.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=d);var q=void 0;if((q=d)==null?0:q.selected)this.previousTab=f,this.selectedTab=d;f=d}f=this.gesture;c=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}});
f.config=c;this.scrollPositionNeedsUpdate=!0}};
QA.prototype.moveAction=function(c,f){if(!this.tabsElement){var d;this.tabsElement=(d=this.parent.header)==null?void 0:d.tabsElement;f==="right"&&this.previousTab?_.qI3(_.E2.instance,this.previousTab.endpoint,{},""):f==="left"&&this.nextTab&&_.qI3(_.E2.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}d=this.tabsElement._pos;f==="right"&&(c*=-1);this.tabsElement._positionBar(d.width,d.left*1+d.width*c)};
var a1F=function(){var c,f;return(f=(c=_.ql().resolve(_.MY).getCurrentPage())==null?void 0:c.clientWidth)!=null?f:0};
QA.prototype.navigate=function(c){this.element.data=void 0;if(c=c==null?void 0:c.endpoint)this.ytdReduxDispatch(M0p(!0)),_.ps(_.bP(),{visualElement:JFD}),_.Hh.instance.resolveCommand({navigateAction:{endpoint:c}},{form:{element:this.element}})};var V0F;var X03;var ST=function(){return _.z.apply(this,arguments)||this};
_.K(ST,_.z);ST.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ST.prototype,"data",void 0);_.y([_.v({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],ST);
_.h(ST,"ytd-labs-edit-renderer",function(){if(X03!==void 0)return X03;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return X03=c},{mode:1});var uFS;var Lw=function(){var c=_.z.apply(this,arguments)||this;c.dark=!1;c.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";c.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(Lw,_.z);Lw.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Lw.prototype.ready=function(){var c=document.documentElement.hasAttribute("dark");this.setBackgroundImage(c);this.dark=c};
Lw.prototype.onDarkModeToggledAction=function(c){this.setBackgroundImage(c);this.dark=c};
Lw.prototype.setBackgroundImage=function(c){_.la(this.hostElement,{"--yt-labs-header-background":"url("+(c?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Lw.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Lw.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Lw.prototype,"dark",void 0);
_.y([_.v({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Lw);
_.h(Lw,"ytd-labs-header-renderer",function(){if(uFS!==void 0)return uFS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return uFS=c},{mode:1});var vrc;var zT=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return c};
_.K(zT,_.z);zT.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"}}}}}};
zT.prototype.onYtToggleButton=function(c){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",c.detail.toggled)};
zT.prototype.onManageLabsState=function(c){if(c=_.b(c,HND))c.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?c.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&c.labsItemId===this.data.labsItemId&&(c.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.gS(this.hostElement,"yt-check-labs-opted-in-state").some(function(f){return f})&&this.data.confirmationDialogCommand?_.ll(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.ql().resolve(_.ZM).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&c.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.ql().resolve(_.ZM).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
zT.prototype.onCheckLabsOptedInState=function(){var c=this.get("data.primaryButton.toggleButtonRenderer");return c?c.isToggled:!1};
_.ci.Object.defineProperties(zT.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
zT.prototype.onYtToggleButton=zT.prototype.onYtToggleButton;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],zT.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],zT.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zT.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],zT.prototype,"itemStyle",null);_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],zT.prototype,"onYtToggleButton",null);_.y([_.v({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],zT);
_.h(zT,"ytd-labs-item-renderer",function(){if(vrc!==void 0)return vrc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return vrc=c},{mode:1});var hoC;var w0C;var Jg=function(){return _.z.apply(this,arguments)||this};
_.K(Jg,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Jg.prototype,"data",void 0);_.y([_.v({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Jg);
_.h(Jg,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(w0C!==void 0)return w0C;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return w0C=c},{mode:1});var yFD;var aI=function(){return _.z.apply(this,arguments)||this};
_.K(aI,_.z);aI.prototype.observeSuperchatChip=function(){if(this.data){var c={"--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)};_.la(this.hostElement,c)}};
aI.prototype.colorFromDecimal=function(c){return _.WS(Number(c||0))};
aI.prototype.observeSuperchatChip=aI.prototype.observeSuperchatChip;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],aI.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],aI.prototype,"observeSuperchatChip",null);_.y([_.v({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],aI);
_.h(aI,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(yFD!==void 0)return yFD;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return yFD=c},{mode:1});var VA=function(){return _.z.apply(this,arguments)||this};
_.K(VA,_.z);VA.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"}}}};
_.ci.Object.defineProperties(VA.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.WA),_.D("design:type",Object)],VA.prototype,"ytdDismissibleItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],VA.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],VA.prototype,"hideMessageBlock",null);
_.y([_.v({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],VA);
_.h(VA,"ytd-live-chat-history-entry-renderer",function(){if(hoC!==void 0)return hoC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return hoC=c},{mode:1});var Wk3;var XV=function(){return _.z.apply(this,arguments)||this};
_.K(XV,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],XV.prototype,"data",void 0);_.y([_.v({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],XV);
_.h(XV,"ytd-channel-options-renderer",function(){if(Wk3!==void 0)return Wk3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Wk3=c},{mode:1});var DwF;var uA=function(){return _.z.apply(this,arguments)||this};
_.K(uA,_.z);uA.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],uA.prototype,"data",void 0);_.y([_.v({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],uA);
_.h(uA,"ytd-settings-email-item-renderer",function(){if(DwF!==void 0)return DwF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DwF=c},{mode:1});var eop;var v4=function(){return _.z.apply(this,arguments)||this};
_.K(v4,_.z);v4.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"}}}};
v4.prototype.getExpansionIcon=function(c){return c?"COLLAPSE":"EXPAND"};
v4.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.ci.Object.defineProperties(v4.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],v4.prototype,"data",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],v4.prototype,"expanded",void 0);_.y([_.S("expanded"),_.D("design:type",String),_.D("design:paramtypes",[])],v4.prototype,"emailListExpanded",null);
_.y([_.AY("#options"),_.D("design:type",Object)],v4.prototype,"options",void 0);_.y([_.v({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],v4);
_.h(v4,"ytd-settings-email-list-renderer",function(){if(eop!==void 0)return eop;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return eop=c},{mode:1});var Nj3;var hg=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return c};
_.K(hg,_.z);hg.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"}}}};
hg.prototype.handleSignalActionSubmitForm=function(){var c,f=(c=this.formRenderer)==null?void 0:c.getForm();f&&this.data.serviceEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},f,{element:this.hostElement})})};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],hg.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],hg.prototype,"data",void 0);_.y([_.AY("yt-form-renderer"),_.D("design:type",Object)],hg.prototype,"formRenderer",void 0);
_.y([_.v({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],hg);
_.h(hg,"ytd-settings-gaia-link-renderer",function(){if(Nj3!==void 0)return Nj3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Nj3=c},{mode:1});var I1H;var ws=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return c};
_.K(ws,_.z);ws.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.suG()&&this.set("data.hidden",!1)};
ws.prototype.onSwitchReady=function(){var c=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(){_.lac().then(function(f){f&&(Notification.permission==="default"?c.set("data.hidden",!1):Notification.permission==="granted"&&_.Tm("NotificationsDisabled").then(function(d){d||_.gS(c.hostElement,"yt-toggle-settings-switch",[c.data.id,!d]);c.set("data.hidden",!1)}).catch(function(){}))})})};
ws.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}}}}};
ws.prototype.handleUpdateOptionsCommand=function(c){(c=_.b(c,_.i0v))&&this.data&&this.data.id===c.id&&(this.set("data.hidden",c.hidden),c.text!==void 0&&this.set("data.text",c.text),c.clearOptions&&this.set("data.options",[]))};
ws.prototype.onSwitchReady=ws.prototype.onSwitchReady;ws.prototype.dataChanged=ws.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ws.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ws.prototype,"data",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ws.prototype,"dataChanged",null);_.y([_.Ta("yt-settings-switch-ready"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ws.prototype,"onSwitchReady",null);_.y([_.v({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],ws);
_.h(ws,"ytd-settings-options-renderer",function(){if(I1H!==void 0)return I1H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return I1H=c},{mode:1});var PbF;var yA=function(){return _.z.apply(this,arguments)||this};
_.K(yA,_.z);yA.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
yA.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
yA.prototype.onYtExpanderMoreTapped=yA.prototype.onYtExpanderMoreTapped;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],yA.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yA.prototype,"data",void 0);
_.y([_.Ta("yt-expander-more-tapped"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yA.prototype,"onYtExpanderMoreTapped",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],yA);
_.h(yA,"ytd-product-details-description-renderer",function(){if(PbF!==void 0)return PbF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return PbF=c},{mode:1});var Roc;var W4=function(){var c=_.z.apply(this,arguments)||this;c.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";c.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";c.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";c.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return c};
_.K(W4,_.z);W4.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ci.Object.defineProperties(W4.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:(f=c.offerData)==null?void 0:f.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?void 0:c.purchaseButtonRenderers)!==void 0&&((f=this.data)==null?void 0:f.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null||!c.formattedFromMerchantText)&&(!((f=this.data)==null||!f.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],W4.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],W4.prototype,"data",void 0);
_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.D("design:type",Object)],W4.prototype,"shippingIcon",void 0);_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.D("design:type",Object)],W4.prototype,"shippingAddressIcon",void 0);_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.D("design:type",Object)],W4.prototype,"googleGuaranteeIcon",void 0);
_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.D("design:type",Object)],W4.prototype,"returnPolicyIcon",void 0);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],W4.prototype,"showAdditionalFees",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],W4.prototype,"showMultiPurchaseButtons",null);
_.y([_.S("data","showMultiPurchaseButtons"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],W4.prototype,"showPurchaseData",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],W4);
_.h(W4,"ytd-product-details-hero-offer-renderer",function(){if(Roc!==void 0)return Roc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Roc=c},{mode:1});var UwC;var p0C;var DI=function(){return _.z.apply(this,arguments)||this};
_.K(DI,_.z);_.r=DI.prototype;_.r.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.r.onKeyDown=function(c){c=c.keyCode;c!==13&&c!==32||this.handleSelection()};
_.r.onMouseEnterImage=function(){var c;((c=this.data)==null?void 0:c.thumbnailDetails)!==void 0&&_.kt(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.r.onMouseLeaveImage=function(){_.kt(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.r.handleSelection=function(){this.data&&_.CZ(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.ci.Object.defineProperties(DI.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.isSelected)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],DI.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],DI.prototype,"isSelected",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],DI);
_.h(DI,"ytd-product-details-thumbnail-renderer",function(){if(p0C!==void 0)return p0C;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return p0C=c},{mode:1});var eT=function(){var c=_.z.apply(this,arguments)||this;var f={};c.actionMap=(f["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",f["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",f);c.selectedThumbnailIndex=0;c.selectItem=function(d){d.target.onKeyDown(d)};
return c};
_.K(eT,_.z);_.r=eT.prototype;_.r.handlePreviewImageSelect=function(c){this.hoverThumbnail=c};
_.r.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.r.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.r.onThumbnailSelected=function(c,f){this.selectedThumbnailIndex=f};
_.r.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.r.updateOffset=function(){var c=_.r1(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-c));this.ytdHorizontalListBehavior.reposition_()};
_.ci.Object.defineProperties(eT.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null?0:c.imageRenderer){var f,d;return((f=this.data)==null?void 0:(d=f.imageRenderer)==null?void 0:d.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var c;if((c=this.data)==null?0:c.imageRenderer){var f;return(f=_.b(this.data.imageRenderer[this.selectedThumbnailIndex],Y0F))==null?void 0:f.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var c=this,f,d,q,Z=(q=(f=this.data)==null?void 0:(d=f.imageRenderer)==null?void 0:d.map(function(M,g){return{productDetailsThumbnailRenderer:Object.assign({},_.b(M,Y0F),{index:g,isSelected:g===c.selectedThumbnailIndex})}}))!=null?q:[];
return Object.assign({},this.data,{imageRenderer:Z})}}});
eT.prototype.updateOffset=eT.prototype.updateOffset;eT.prototype.dataChanged=eT.prototype.dataChanged;eT.prototype.onThumbnailSelected=eT.prototype.onThumbnailSelected;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cm.YtdHorizontalListBehavior),_.D("design:type",Object)],eT.prototype,"ytdHorizontalListBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],eT.prototype,"componentBehavior",void 0);_.y([_.Q([_.Cy.YtActionHandlerBehavior]),_.D("design:type",Object)],eT.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],eT.prototype,"data",void 0);_.y([_.L({value:"$.items.children"}),_.D("design:type",String)],eT.prototype,"itemsPath",void 0);_.y([_.L({value:3}),_.D("design:type",Number)],eT.prototype,"initialCount",void 0);
_.y([_.AY("#items"),_.D("design:type",Object)],eT.prototype,"items",void 0);_.y([_.L(),_.D("design:type",Object)],eT.prototype,"selectedThumbnailIndex",void 0);_.y([_.L(),_.D("design:type",Object)],eT.prototype,"hoverThumbnail",void 0);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],eT.prototype,"showThumbnails",null);
_.y([_.Ta("ytd-product-details-thumbnail-renderer-selected"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Number]),_.D("design:returntype")],eT.prototype,"onThumbnailSelected",null);_.y([_.S("data","selectedThumbnailIndex","hoverThumbnail"),_.D("design:type",Object),_.D("design:paramtypes",[])],eT.prototype,"thumbnailDetails",null);_.y([_.S("data","selectedThumbnailIndex"),_.D("design:type",Object),_.D("design:paramtypes",[])],eT.prototype,"populatedData",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],eT.prototype,"dataChanged",null);_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],eT.prototype,"updateOffset",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],eT);
_.h(eT,"ytd-product-details-image-carousel-renderer",function(){if(UwC!==void 0)return UwC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return UwC=c},{mode:_.lP("kevlar_poly_si_batch_j079")?1:2});var xwS;var Nr=function(){return _.z.apply(this,arguments)||this};
_.K(Nr,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Nr.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Nr.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Nr);
_.h(Nr,"ytd-product-details-offer-renderer",function(){if(xwS!==void 0)return xwS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return xwS=c},{mode:1});var orJ;var II=function(){var c=_.z.apply(this,arguments)||this;c.isOffersHidden=!0;return c};
_.K(II,_.z);II.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var c,f=_.b((c=this.data)==null?void 0:c.viewOffersButton,_.WQ);f&&this.ytRendererBehavior.logExplicitClick(f)};
II.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.ci.Object.defineProperties(II.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q;return(d=_.b((c=this.data)==null?void 0:(f=c.offers)==null?void 0:f[0],KkH))==null?void 0:(q=d.offerData)==null?void 0:q.vendorLogoUrl}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],II.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],II.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],II.prototype,"isOffersHidden",void 0);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],II.prototype,"firstOfferVendorLogoUrl",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],II);
_.h(II,"ytd-product-details-offers-container-renderer",function(){if(orJ!==void 0)return orJ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return orJ=c},{mode:1});var GbH;var cnS;var P4=function(){return _.z.apply(this,arguments)||this};
_.K(P4,_.z);P4.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
P4.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.kt(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
P4.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.kt(this,"ytd-product-details-variant-image-unselect")};
_.ci.Object.defineProperties(P4.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 c;return((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.data)==null?void 0:c.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((f=this.data)==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((d=this.data)==null?void 0:d.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var c;if(((c=this.data)==null?void 0:c.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var c,f;return this.isUnavailable?(c=this.data)==null?void 0:c.variantOptionUnavailableAccessibilityLabel:(f=this.data)==null?void 0:f.variantOptionAccessibilityLabel}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],P4.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],P4.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],P4.prototype,"displayType",void 0);
_.y([_.S("displayType","data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],P4.prototype,"isImageButton",null);_.y([_.S("displayType","data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],P4.prototype,"isPillButton",null);_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],P4.prototype,"isActive",null);
_.y([_.S("data"),_.L({reflectToAttribute:!0}),_.D("design:type",Boolean),_.D("design:paramtypes",[])],P4.prototype,"isUnavailable",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],P4.prototype,"thumbnailDetails",null);_.y([_.S("isUnavailable","data"),_.D("design:type",Object),_.D("design:paramtypes",[])],P4.prototype,"accessibilityLabel",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],P4);
_.h(P4,"ytd-product-details-variant-option-renderer",function(){if(cnS!==void 0)return cnS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return cnS=c},{mode:1});var ffF;var RI=function(){var c=_.z.apply(this,arguments)||this;c.variantsExpanded=!1;c.hideShowMoreLessVariantButton=!0;c.initialized=!1;c.computeVariantsDebouncer=null;c.computeVariants=function(f){f=f===void 0?!1:f;c.variantsExpanded||c.showOptions()||!f||(c.variantsExpanded=!0);if(c.variantsExpanded){f=_.C(c.items.children);for(var d=f.next();!d.done;d=f.next())d.value.hidden=!1}c.initialized=!0};
return c};
_.K(RI,_.z);_.r=RI.prototype;_.r.ready=function(){var c=this;setTimeout(function(){c.computeVariants(!0)})};
_.r.showOptions=function(){for(var c=_.C(this.items.children),f=c.next();!f.done;f=c.next())f.value.hidden=!0;var d=this.container.getBoundingClientRect().width,q=0,Z=c=0;f=!1;for(var M=_.C(this.items.children),g=M.next();!g.done;g=M.next()){g=g.value;g.hidden=!1;var O=g.getBoundingClientRect().width;if(q+O<d)q+=O;else if(++Z<2)q=O;else break;c+=1;g.hasAttribute("is-active")&&(f=!0)}for(d=c;d<this.items.children.length;d++)this.items.children[d].hidden=!0;this.hideShowMoreLessVariantButton=c===this.items.children.length;
return f};
_.r.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.OP(this.computeVariantsDebouncer,_.GN.after(100),this.computeVariants)};
_.r.onShowMoreLessVariantsButtonClick=function(){var c;(c=this.data)!=null&&c.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.r.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.ci.Object.defineProperties(RI.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.data)==null?void 0:(f=c.variantOptionRenderers)==null?void 0:f.find(function(M){return _.b(M,t0c).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),q,Z;
return(Z=(q=_.b(d,t0c))==null?void 0:q.name)!=null?Z:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.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"}}}});
RI.prototype.debouncedComputeVariants=RI.prototype.debouncedComputeVariants;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],RI.prototype,"componentBehavior",void 0);_.y([_.Q(_.aJ),_.D("design:type",Object)],RI.prototype,"ironResizableBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],RI.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],RI.prototype,"variantsExpanded",void 0);_.y([_.L(),_.D("design:type",Object)],RI.prototype,"hideShowMoreLessVariantButton",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],RI.prototype,"initialized",void 0);_.y([_.AY("#items"),_.D("design:type",HTMLDivElement)],RI.prototype,"items",void 0);_.y([_.AY("#container"),_.D("design:type",HTMLDivElement)],RI.prototype,"container",void 0);
_.y([_.AY("#more-variants-button"),_.D("design:type",HTMLElement)],RI.prototype,"moreVariantsButton",void 0);_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],RI.prototype,"selectedOptionName",null);_.y([_.m5("data","variantsExpanded"),_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],RI.prototype,"debouncedComputeVariants",null);
_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],RI.prototype,"displayType",null);_.y([_.S("displayType"),_.D("design:type",Object),_.D("design:paramtypes",[])],RI.prototype,"variantItemsClassname",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],RI);
_.h(RI,"ytd-product-details-variant-renderer",function(){if(ffF!==void 0)return ffF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ffF=c},{mode:1});var U$=function(){return _.z.apply(this,arguments)||this};
_.K(U$,_.z);
U$.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"}}}};
_.ci.Object.defineProperties(U$.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(f=_.b((c=this.data)==null?void 0:c.offersContainerRenderer,bNF))==null?void 0:f.offers;return d!==void 0&&(d==null?void 0:d.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 c,f,d;return((d=(c=this.data)==null?void 0:(f=c.variants)==null?void 0:f.map(function(q){var Z,M;q=(M=(Z=_.b(q,Fkq))==null?void 0:Z.variantOptionRenderers)==null?void 0:M.find(function(O){var l;return((l=_.b(O,t0c))==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var g;return(g=_.b(q,t0c))==null?void 0:g.name}).filter(function(q){return typeof q==="string"}))!=null?d:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var c,f,d,q=(f=_.b((c=this.data)==null?void 0:c.shoppingFlaggingRenderer,ErH))==null?void 0:(d=f.reportButton)==null?void 0:d.buttonRenderer;if(q)return{text:q.text,command:q.command,icon:{iconType:"FLAG"},accessibilityData:q.accessibilityData,trackingParams:q.trackingParams,loggingDirectives:q.loggingDirectives}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],U$.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],U$.prototype,"data",void 0);_.y([_.AY("#image-carousel-renderer"),_.D("design:type",Object)],U$.prototype,"imageCarouselRenderer",void 0);
_.y([_.AY("#hero-offer-renderer"),_.D("design:type",Object)],U$.prototype,"productDetailsHeroOfferRenderer",void 0);_.y([_.AY("#variants"),_.D("design:type",Object)],U$.prototype,"productDetailsVariantRenderer",void 0);_.y([_.AY("#offers"),_.D("design:type",Object)],U$.prototype,"productDetailsOffersContainerRenderer",void 0);_.y([_.AY("#description-renderer"),_.D("design:type",Object)],U$.prototype,"productDetailsDescriptionRenderer",void 0);
_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],U$.prototype,"showPurchaseData",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],U$.prototype,"showHeroOfferRenderer",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],U$.prototype,"showBrandText",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],U$.prototype,"showOffers",null);
_.y([_.S("showOffers","showPurchaseData"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],U$.prototype,"showBuySeparator",null);_.y([_.S("showOffers","showPurchaseData"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],U$.prototype,"showBuyCard",null);_.y([_.S("data"),_.D("design:type",String),_.D("design:paramtypes",[])],U$.prototype,"selectedVariantsText",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],U$.prototype,"shoppingReportingButtonData",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],U$);
_.h(U$,"ytd-product-details-renderer",function(){if(GbH!==void 0)return GbH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return GbH=c},{mode:1});var dES;var jRD;var qHp;var pw=function(){return _.z.apply(this,arguments)||this};
_.K(pw,_.z);pw.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ci.Object.defineProperties(pw.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],pw.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pw.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],pw.prototype,"formattedAmount",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pw.prototype,"ariaLabel",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data.style"),_.D("design:type",String),_.D("design:paramtypes",[])],pw.prototype,"vcBalanceWidgetStyle",null);_.y([_.vj({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],pw);
_.h(pw,"yt-vc-balance-renderer",function(){if(qHp===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;jRD===void 0&&(jRD=document.createElement("template"));var q=jRD;d.call(f,q.content.cloneNode(!0),c.content.firstChild);qHp=c}c=qHp;return c},{mode:2});_.w_("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var xJ=function(){return _.z.apply(this,arguments)||this};
_.K(xJ,_.z);_.ci.Object.defineProperties(xJ.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:""}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],xJ.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xJ.prototype,"data",void 0);_.y([_.L({selectorArgs:["data.vcBalanceEntityKey"],selector:function(c,f){return _.Bb(c.entities,"vcBalanceEntity",f)}}),
_.D("design:type",Object)],xJ.prototype,"vcBalanceEntity",void 0);_.y([_.S("vcBalanceEntity"),_.D("design:type",String),_.D("design:paramtypes",[])],xJ.prototype,"formattedAmount",null);_.y([_.S("vcBalanceEntity"),_.D("design:type",String),_.D("design:paramtypes",[])],xJ.prototype,"vcBalanceAriaLabel",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],xJ);
_.h(xJ,"ytd-vc-balance-renderer",function(){if(dES!==void 0)return dES;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return dES=c},{mode:1});var Z4C;var oI=function(){var c=_.z.apply(this,arguments)||this;c.rotation=0;c.isReloading=!1;return c};
_.K(oI,_.z);oI.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
oI.prototype.reset=function(){this.hostElement.style.opacity=""};
oI.prototype.close=function(){var c=this;return _.k(function(f){if(f.nextAddress==1)return f.yield(c.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);c.hostElement.style.opacity="0";_.Fm(f)})};
oI.prototype.rotationChanged=oI.prototype.rotationChanged;_.y([_.L(),_.D("design:type",Object)],oI.prototype,"rotation",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],oI.prototype,"isReloading",void 0);_.y([_.AY("#icon"),_.D("design:type",HTMLElement)],oI.prototype,"icon",void 0);_.y([_.m5("rotation"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],oI.prototype,"rotationChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-refresh"})],oI);
_.h(oI,"ytd-refresh",function(){if(Z4C!==void 0)return Z4C;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Z4C=c},{mode:1});var MGc;var GT=function(){return _.z.apply(this,arguments)||this};
_.K(GT,_.z);GT.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"}}}};
GT.prototype.dataChanged=function(){if(this.data){var c=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var f=_.kZ(this.data.banner.thumbnails,this.hostElement.clientWidth);f&&(f.indexOf("//")===0&&(f="https:"+f),this.hasBannerArt=!0,_.la(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+f+")"}))}this.hasBannerArt!==c&&_.r1(this.hostElement).querySelector("#header").fire("iron-resize")}};
GT.prototype.updateSelectedFromBinding=function(c){this.selected=c.detail.value};
GT.prototype.dataChanged=GT.prototype.dataChanged;_.y([_.Q(Q3p),_.D("design:type",Object)],GT.prototype,"ytdTabbedHeaderBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.et),_.D("design:type",Object)],GT.prototype,"ytdGridStateAwareBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],GT.prototype,"ytdGuideStateAwareBehavior",void 0);
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],GT.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],GT.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],GT.prototype,"selected",void 0);_.y([_.L(),_.D("design:type",Boolean)],GT.prototype,"active",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],GT.prototype,"hasBannerArt",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],GT.prototype,"dataChanged",null);_.y([_.v({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],GT);
_.h(GT,"ytd-interactive-tabbed-header-renderer",function(){if(MGc!==void 0)return MGc;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return MGc=c},{mode:1});var rnr;var c0=function(){return _.z.apply(this,arguments)||this};
_.K(c0,_.z);c0.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
c0.prototype.computeActionsAlignment=function(c){return(c==null?void 0:c.actionsAlignment)||""};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],c0.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.D("design:type",String)],c0.prototype,"actionsAlignment",void 0);_.y([_.v({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],c0);
_.h(c0,"ytd-page-footer-renderer",function(){if(rnr!==void 0)return rnr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return rnr=c},{mode:1});var CLQ;var gmS;var fN=function(){var c=_.z.apply(this,arguments)||this;c.isEditing=!1;c.useSlot=!1;c.isMultiline=!1;return c};
_.K(fN,_.z);_.r=fN.prototype;_.r.onKeydown=function(c){if(c.keyCode===13&&!this.isMultiline)this.onSave();else if(c.keyCode===27)this.onCancel()};
_.r.computeComponentStyle=function(c){return(c==null?0:c.style)?c.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.r.computeisMultiline=function(c){if(this.multilineOverride!==void 0)return this.multilineOverride;var f,d;return!!(c==null?0:(f=c.formField)==null?0:(d=f.textInputFormFieldRenderer)==null?0:d.isMultiline)};
_.r.computeTextDisplayed=function(c,f){if(c)return c;if(f)return f};
_.r.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.r.onSave=function(){if(this.textForm.validate()){this.textForm.save();var c=this.textForm.value;if(c)this.set("data.textDisplayed",_.pC(c));else{var f;((f=this.data)==null?0:f.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Ua("inline-form-changed",this.data));this.isEditing=!1}};
_.r.onCancel=function(){var c=_.xC(this.data.textDisplayed);c===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(c);this.isEditing=!1};
fN.prototype.onKeydown=fN.prototype.onKeydown;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],fN.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fN.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],fN.prototype,"isEditing",void 0);_.y([_.L(),_.D("design:type",Object)],fN.prototype,"useSlot",void 0);_.y([_.L(),_.D("design:type",Boolean)],fN.prototype,"multilineOverride",void 0);_.y([_.L(),_.D("design:type",Boolean)],fN.prototype,"enableOverlayTheme",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.D("design:type",String)],fN.prototype,"componentStyle",void 0);
_.y([_.L({computed:"computeisMultiline(data)"}),_.D("design:type",Object)],fN.prototype,"isMultiline",void 0);_.y([_.AY("#text-form"),_.D("design:type",Object)],fN.prototype,"textForm",void 0);_.y([_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[KeyboardEvent]),_.D("design:returntype")],fN.prototype,"onKeydown",null);_.y([_.v({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],fN);
_.h(fN,"ytd-inline-form-renderer",function(){if(gmS!==void 0)return gmS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return gmS=c},{mode:1});var kM3;var dj=function(){var c=_.z.apply(this,arguments)||this;c.previousSelectValue=void 0;c.selectedItemMessage=void 0;return c};
_.K(dj,_.z);dj.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
dj.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var c,f,d,q,Z=(c=this.data)==null?void 0:(f=c.dropdown)==null?void 0:(d=f.dropdownRenderer)==null?void 0:(q=d.entries)==null?void 0:q.map(function(O){return O.privacyDropdownItemRenderer});
c=_.C(Z!=null?Z:[]);for(f=c.next();!f.done;f=c.next())if((f=f.value)&&f.int32Value===this.selectedValue){this.selectedItemMessage=f.itemMessage;break}}else this.selectedItemMessage=void 0;var M;(M=this.onValueChanged)==null||M.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var g;(g=this.data)!=null&&g.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
dj.prototype.onValueChangedForSelectedValue=function(c){this.selectedValue=c.detail.value};
dj.prototype.selectedValueChanged=dj.prototype.selectedValueChanged;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],dj.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],dj.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dj.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],dj.prototype,"theme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Number)],dj.prototype,"selectedValue",void 0);_.y([_.L(),_.D("design:type",Function)],dj.prototype,"onValueChanged",void 0);
_.y([_.ba("selectedValue"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],dj.prototype,"selectedValueChanged",null);_.y([_.v({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],dj);
_.h(dj,"ytd-dropdown-form-field-renderer",function(){if(kM3!==void 0)return kM3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return kM3=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var O4G;var j0=function(){return _.z.apply(this,arguments)||this};
_.K(j0,_.z);_.ci.Object.defineProperties(j0.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var c=[],f=_.C(this.data||[]),d=f.next();!d.done;d=f.next())(d=_.b(d.value,nrG))&&c.push(d);return c}}});
_.y([_.L(),_.D("design:type",Array)],j0.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],j0.prototype,"byline",null);_.y([_.v({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],j0);
_.h(j0,"ytd-playlist-byline-renderer",function(){if(O4G!==void 0)return O4G;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return O4G=c},{mode:1});var lfS;var qw=function(){var c=_.z.apply(this,arguments)||this;c.rtlBullet=_.F("web_playlist_stats_rtl_bullet_icon_killswitch");c.modern=_.F("web_modern_buttons");c.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return c};
_.K(qw,_.z);_.r=qw.prototype;_.r.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"}}}}};
_.r.attached=function(){};
_.r.computeIsCustomThumbnail=function(c){return c?!!c.playlistCustomThumbnailRenderer:!1};
_.r.onYtNavigate=function(c,f){if(f&&f.actions&&f.actions.indexOf("shuffle")>-1){c=_.ql().resolve(_.W_);var d=f.tempData||{};d.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);f.tempData=d;c.isShuffleNextPlaylist=!0}};
_.r.onUpdatePlaylistAction=function(c){var f;c=(f=_.b(c,_.N7T))==null?void 0:f.updatedRenderer;if(f=_.b(c,nw))this.data=f};
_.r.computeStyleType=function(c){return c?c.toLowerCase().replace(/_/g,"-"):""};
_.r.computeThumbnailWidth=function(c){return c==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.r.computeHideThumbnailAria=function(c){if(c==null?0:c.thumbnailOverlays)for(var f=0;f<c.thumbnailOverlays.length;f++){var d=void 0;if((d=c.thumbnailOverlays[f])==null?0:d.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
qw.prototype.onYtNavigate=qw.prototype.onYtNavigate;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],qw.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],qw.prototype,"ytComponentBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],qw.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],qw.prototype,"rtlBullet",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.D("design:type",String)],qw.prototype,"styleType",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.D("design:type",Number)],qw.prototype,"thumbnailWidth",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],qw.prototype,"modern",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.D("design:type",Boolean)],qw.prototype,"isCustomThumbnail",void 0);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[Event,Object]),_.D("design:returntype")],qw.prototype,"onYtNavigate",null);_.y([_.v({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],qw);
_.h(qw,"ytd-playlist-sidebar-primary-info-renderer",function(){if(lfS!==void 0)return lfS;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return lfS=c},{mode:1});var sRF;var Z1=function(){return _.z.apply(this,arguments)||this};
_.K(Z1,_.z);Z1.prototype.computeOwnerVisibility=function(c){return!(!c.videoOwner&&!c.button)};
Z1.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Z1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Z1.prototype,"data",void 0);_.y([_.v({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Z1);
_.h(Z1,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(sRF!==void 0)return sRF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return sRF=c},{mode:1});var B5c;var Mw=function(){var c=_.z.apply(this,arguments)||this;c.expanded=!1;c.isCompact=!1;return c};
_.K(Mw,_.z);_.r=Mw.prototype;_.r.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.r.dataChanged=function(){this.data&&_.G8(_.r1(this.text),_.$Hj(_.LTv,_.xC(this.data.text||null)))};
_.r.computeAutoScrollEnabled=function(c,f){return c&&!f};
_.r.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.r.toggleOnTap=function(){this.expanded=!this.expanded};
Mw.prototype.expandedChanged=Mw.prototype.expandedChanged;Mw.prototype.dataChanged=Mw.prototype.dataChanged;_.y([_.Q(_.mrq),_.D("design:type",Object)],Mw.prototype,"ytdAutoScrollBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Mw.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Mw.prototype,"expanded",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Mw.prototype,"isCompact",void 0);_.y([_.L({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.D("design:type",Boolean)],Mw.prototype,"autoScrollEnabled",void 0);_.y([_.AY("#text"),_.D("design:type",Object)],Mw.prototype,"text",void 0);_.y([_.AY("#expander-icon"),_.D("design:type",Object)],Mw.prototype,"expanderIcon",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Mw.prototype,"dataChanged",null);_.y([_.m5("expanded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Mw.prototype,"expandedChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Mw);
_.h(Mw,"ytd-channel-legal-info-renderer",function(){if(B5c!==void 0)return B5c;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return B5c=c},{mode:1});var i4F;var T5q=_.HO("DOWNLOAD",{},"Download"),mEr=_.HO("DOWNLOADING",{},"Downloading"),H43=_.HO("DOWNLOADED",{},"Downloaded"),rj=function(){var c=_.z.apply(this,arguments)||this;c.downloadProgress=0;c.isDownloadComplete=!1;c.transferState="TRANSFER_STATE_UNKNOWN";return c};
_.K(rj,_.z);_.r=rj.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.dataChanged=function(){var c;(c=this.data)!=null&&c.tooltip||(c=_.wW(_.Gh().getState(),this.playlistId),this.updateButtonState(c))};
_.r.computePlaylistId=function(c){return c};
_.r.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.r.updateButtonState=function(c){if(this.data&&(this.data.tooltip!==mEr||!_.bI(c))){this.isDownloadComplete=!1;switch(c){case "TRANSFER_STATE_UNKNOWN":c=T5q;var f="OFFLINE_DOWNLOAD";var d="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":c=H43;f="OFFLINE_PIN";d="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":c=mEr;f="OFFLINE_DOWNLOADING_ZERO";d="ACTION_REMOVE_WITH_PROMPT";
break;default:c=T5q,f="OFFLINE_DOWNLOAD",d="ACTION_ADD"}var q=Object.assign({},this.data);q.tooltip=c;q.accessibilityData={accessibilityData:{label:c}};q.icon={iconType:f};q.size="SIZE_DEFAULT";_.b(q.command,_.b7)&&(_.b(q.command,_.b7).action=d);this.set("data",q)}};
_.r.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var c="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?c="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?c="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?c="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?c="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?c="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(c="OFFLINE_PIN",this.isDownloadComplete=!0);var f;c!==((f=this.data.icon)==null?void 0:f.iconType)&&(f=Object.assign({},this.data),f.tooltip=mEr,f.accessibilityData={accessibilityData:{label:mEr}},f.icon={iconType:c},_.b(f.command,_.b7)&&(_.b(f.command,_.b7).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",f))}};
rj.prototype.updateProgress=rj.prototype.updateProgress;rj.prototype.onTransferStateChanged=rj.prototype.onTransferStateChanged;rj.prototype.dataChanged=rj.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],rj.prototype,"ytdReduxBehavior",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],rj.prototype,"forceIconButton",void 0);
_.y([_.L({value:!0}),_.D("design:type",Boolean)],rj.prototype,"forceIconOnly",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],rj.prototype,"overrides",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],rj.prototype,"buttonTooltipPosition",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],rj.prototype,"styleActionButton",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],rj.prototype,"disableTextTransform",void 0);
_.y([_.L({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.D("design:type",String)],rj.prototype,"playlistId",void 0);_.y([_.L(),_.D("design:type",Object)],rj.prototype,"data",void 0);_.y([_.L({selector:_.GGe,selectorArgs:["playlistId"]}),_.D("design:type",Object)],rj.prototype,"downloadProgress",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rj.prototype,"isDownloadComplete",void 0);
_.y([_.L({selector:_.wW,selectorArgs:["playlistId"]}),_.D("design:type",String)],rj.prototype,"transferState",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],rj.prototype,"showTooltips",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],rj.prototype,"sendCommandWhenDisabled",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],rj.prototype,"disabled",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rj.prototype,"dataChanged",null);_.y([_.ba("transferState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rj.prototype,"onTransferStateChanged",null);_.y([_.ba("downloadProgress"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rj.prototype,"updateProgress",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],rj);
_.h(rj,"ytd-download-playlist-button-renderer",function(){if(i4F!==void 0)return i4F;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return i4F=c},{mode:1});var Anq;_.g_(_.d83,"thumbnail-overlay-button-view-model",{props:{data:_.oM,lockupExperiments:_.oM}});var CN=function(){var c=_.z.apply(this,arguments)||this;c.isSquare=!1;c.isVertical=!1;return c};
_.K(CN,_.z);CN.prototype.computeIsSquare=function(c){return c!=null&&c.thumbnail?cFD(c.thumbnail)==="SQUARE":!1};
CN.prototype.computeIsVertical=function(c){return c!=null&&c.thumbnail?cFD(c.thumbnail)==="VERTICAL":!1};
CN.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.D("design:type",Object)],CN.prototype,"isSquare",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.D("design:type",Object)],CN.prototype,"isVertical",void 0);
_.y([_.L(),_.D("design:type",Object)],CN.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],CN);
_.h(CN,"ytd-hero-playlist-thumbnail-renderer",function(){if(Anq!==void 0)return Anq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Anq=c},{mode:1});var gj=function(){var c=_.z.apply(this,arguments)||this;c.isDarkTheme=!1;c.isUltraWide=!1;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return c};
_.K(gj,_.z);_.r=gj.prototype;_.r.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.ql();var c;(c=_.ql().resolve(_.dx(_.M4)))!=null&&(c.headerElement=this.hostElement)};
_.r.detached=function(){var c;(c=_.ql().resolve(_.dx(_.M4)))!=null&&(c.headerElement=void 0)};
_.r.onUpdateHeader=function(c){(c=c.detail)&&this.set("data",c)};
_.r.computeTextDisplayed=function(c){if(c)return c.textDisplayed?c.textDisplayed:c.placeholder};
_.r.gradientColorToLinearGradientStop=function(c){var f=this.isDarkTheme?c.darkThemeColor:c.lightThemeColor;return f?_.WS(f)+" "+((c==null?void 0:c.startLocation)||0)*100+"%":"transparent"};
_.r.onWindowResize=function(){var c;((c=this.data)==null?0:c.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.r.onIronResize=function(c){this.isUltraWide=!c.detail.value};
_.r.onDarkModeToggledAction=function(c){this.isDarkTheme=c};
_.r.onUpdatePlaylistName=function(c){var f=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},c.detail.value));_.ol(this,function(){var d;(d=f.editableTitle)==null||d.resize()})};
_.r.onUpdatePlaylistDescription=function(c){var f=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},c.detail.value));_.ol(this,function(){var d;(d=f.editableDescriptionInlineExpander)==null||d.resize()})};
_.r.getCinematicData=function(c){return _.b(c==null?void 0:c.cinematicContainer,_.YJ)};
_.ci.Object.defineProperties(gj.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 c,f=(c=this.getCinematicData(this.data))==null?void 0:c.config;return(c=this.isDarkTheme?f==null?void 0:f.darkThemeBackgroundColor:f==null?void 0:f.lightThemeBackgroundColor)?"background-color:"+_.ya(c)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var c;return _.b((c=this.data)==null?void 0:c.descriptionForm,AFD)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var c=this,f,d,q;return"background:linear-gradient(to bottom, "+(((q=(f=this.getCinematicData(this.data))==null?void 0:(d=f.gradientColorConfig)==null?void 0:d.map(function(Z){return c.gradientColorToLinearGradientStop(Z)}))==null?void 0:q.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var c;return _.xC((c=this.data)==null?void 0:c.descriptionTapText)}}});
gj.prototype.onUpdateHeader=gj.prototype.onUpdateHeader;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],gj.prototype,"actionHandlerBehavior",void 0);_.y([_.AY("#description-inline-expander"),_.D("design:type",Object)],gj.prototype,"descriptionInlineExpander",void 0);
_.y([_.AY("#editable-description-inline-expander"),_.D("design:type",Object)],gj.prototype,"editableDescriptionInlineExpander",void 0);_.y([_.L(),_.D("design:type",Object)],gj.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],gj.prototype,"isUltraWide",void 0);_.y([_.AY("#editable-title-display"),_.D("design:type",Object)],gj.prototype,"editableTitle",void 0);_.y([_.S("isUltraWide"),_.D("design:type",Object),_.D("design:paramtypes",[])],gj.prototype,"maxDescriptionLines",null);
_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],gj.prototype,"noCinematicData",null);_.y([_.Ta("yt-new-playlist-header"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],gj.prototype,"onUpdateHeader",null);_.y([_.S("data","isDarkTheme"),_.D("design:type",Object),_.D("design:paramtypes",[])],gj.prototype,"backgroundStyle",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],gj.prototype,"descriptionFormData",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],gj.prototype,"getDropdownTheme",null);_.y([_.S("data","isDarkTheme"),_.D("design:type",String),_.D("design:paramtypes",[])],gj.prototype,"gradientStyle",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],gj.prototype,"descriptionTapText",null);
_.y([_.v({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],gj);
_.h(gj,"ytd-playlist-header-renderer",function(){if(CLQ!==void 0)return CLQ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return CLQ=c},{mode:_.lP("kevlar_poly_si_batch_j078")?1:2});var YHQ;var FlC;var kr=function(){return _.z.apply(this,arguments)||this};
_.K(kr,_.z);kr.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],kr.prototype,"data",void 0);_.y([_.v({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],kr);
_.h(kr,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(FlC!==void 0)return FlC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return FlC=c},{mode:1});var O0=function(){return _.z.apply(this,arguments)||this};
_.K(O0,_.z);
O0.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}}}}};
O0.prototype.computeUsePremiumShowStyle=function(c){if(!c||!c.items)return!1;for(var f=0;f<c.items.length;f++)if(_.b(c.items[f],nw)){var d=void 0;return((d=_.b(c.items[f],nw))==null?void 0:d.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],O0.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.D("design:type",Boolean)],O0.prototype,"usePremiumShowStyle",void 0);
_.y([_.v({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],O0);
_.h(O0,"ytd-playlist-sidebar-renderer",function(){if(YHQ!==void 0)return YHQ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return YHQ=c},{mode:1});var tG3;var b43;var KlH=function(c,f,d,q,Z,M,g,O){this.minWidth=c;this.minHeight=f;this.recommendedWidth=d;this.recommendedHeight=q;this.JSC$21932_maxFileSize=Z;this.title=M;this.bannerGalleryTitle=g;this.channelId=O;this.picker_=null;c=_.nQC("yt-banner");f=c.addView;d=(new Cb3("youtubebanner")).addUploadMetadata("silo_id","19");d.opts.ytMaxFileSize=this.JSC$21932_maxFileSize;q=this.recommendedHeight;d.opts.ytRecWidth=this.recommendedWidth;d.opts.ytRecHeight=q;f.call(c,d);c.addView(new _.Qj);f=c.addView;d=new _.Qj;
d.opts.type="ytbanner";f.call(c,d.JSC$10018_setLabel(this.bannerGalleryTitle));f=c.setTitle(this.title).setSize(1E3);f.urlParamMap_.set("thumbs","orig");d=this.minWidth;q=this.minHeight;if(isNaN(d)||isNaN(q))throw Error("gb`"+d+"`"+q);f.urlParamMap_.set("minSize",d+"x"+q);f.urlParamMap_.set("cropMode","ytcb");this.builder_=c};
KlH.prototype.open=function(){var c=this;return new _.i6(function(f,d){_.Txj(c.builder_,function(q){q.action=="picked"?f(q):q.action=="cancel"&&d(Error("lo"))});
c.picker_&&c.picker_.dispose();c.picker_=c.builder_.build();c.picker_.setVisible(!0)})};
KlH.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var EmC=function(c){this.channelId=c};
EmC.prototype.upload=function(c){var f="";c.viewToken&&(f=c.viewToken[2].type);var d=c.docs[0];c=d.crop;f={channel_id:this.channelId,fife_url:d.thumbnails[0].url,photo_id:d.id,is_gallery_image:f=="ytbanner"};c&&(f.crop_top=c.top,f.crop_right=c.right,f.crop_bottom=c.bottom,f.crop_left=c.left);return _.bRC("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:f})};var lb=function(){var c=_.z.apply(this,arguments)||this;c.ariaLabel=null;return c};
_.K(lb,_.z);_.r=lb.prototype;_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.r.detached=function(){this.picker&&this.picker.dispose()};
_.r.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.r.computeAriaLabel=function(c){return c};
_.r.onTap=function(){var c=this,f;if((f=this.data)==null||!f.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new KlH(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 d;(d=this.picker)==null||d.open().then(function(q){c.handleBannerPicked(q)},function(){})}};
_.r.handleBannerPicked=function(c){var f=this;this.uploader||(this.uploader=new EmC(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(c).then(function(d){f.handleBannerUploadSucceeded(d)},function(d){f.handleBannerUploadFailed(d)})};
_.r.handleBannerUploadSucceeded=function(c){c&&c.errors?this.handleBannerUploadFailed(c):(_.CZ(this.hostElement,"yt-banner-updated",c),this.message=null)};
_.r.handleBannerUploadFailed=function(c){this.message=c&&c.errors&&c.errors.length?c.errors[0]:null};
lb.prototype.dataChanged=lb.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],lb.prototype,"componentBehavior",void 0);_.y([_.Q(_.X$),_.D("design:type",Object)],lb.prototype,"ironButtonState",void 0);_.y([_.L(),_.D("design:type",Object)],lb.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.D("design:type",Object)],lb.prototype,"ariaLabel",void 0);
_.y([_.L(),_.D("design:type",Object)],lb.prototype,"message",void 0);_.y([_.L(),_.D("design:type",Object)],lb.prototype,"picker",void 0);_.y([_.L(),_.D("design:type",Object)],lb.prototype,"uploader",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lb.prototype,"dataChanged",null);_.y([_.v({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],lb);
_.h(lb,"ytd-channel-banner-editor-renderer",function(){if(b43!==void 0)return b43;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return b43=c},{mode:1});var nmi;var $E3=_.pp(["#"]),s0=function(){return _.z.apply(this,arguments)||this};
_.K(s0,_.z);s0.prototype.computeHrefWithDefault=function(c){return this.ytComponentBehavior.computeHref_(c,!0)||_.G8k($E3)};
s0.prototype.dataChanged=function(){var c=this.data;c&&c.targetId&&_.YIO(_.Qd(),c.targetId,this.moreIcon)};
s0.prototype.dataChanged=s0.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],s0.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],s0.prototype,"data",void 0);_.y([_.AY("#more-icon"),_.D("design:type",Object)],s0.prototype,"moreIcon",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],s0.prototype,"dataChanged",null);
_.y([_.v({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],s0);
_.h(s0,"ytd-channel-tagline-renderer",function(){if(nmi!==void 0)return nmi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return nmi=c},{mode:1});var QR3;var B0=function(){return _.z.apply(this,arguments)||this};
_.K(B0,_.z);_.r=B0.prototype;_.r.ready=function(){var c=this;_.r1(this.hostElement).querySelector("#form").addEventListener("submit",function(f){c.onSubmit(f)})};
_.r.onDataChanged=function(){var c;((c=this.data)==null?0:c.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.r.onIconButtonKeydown=function(c){c.keyCode===13&&this.iconButton.click()};
_.r.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.r.openOnClickHandler=function(){this.input.focus()};
_.r.onSubmit=function(c){c.preventDefault();return!1};
_.r.submitOnEnterKeyUp=function(c){var f;if(c.keyCode===13&&((f=this.data)==null?0:f.expandedText)){c=this.data.endpoint;f=_.zV.unsafeClone(c);var d;((d=_.b(f==null?void 0:f.commandMetadata,_.jO))==null?0:d.url)?(_.b(f.commandMetadata,_.jO).url=_.Ww(_.b(f.commandMetadata,_.jO).url,"query",this.data.expandedText),_.b(f,_.Fw)&&(_.b(f,_.Fw).query=this.data.expandedText),_.CZ(this.hostElement,"yt-navigate",{endpoint:f,tempData:{disableCache:!0}})):(d=new _.KD("Error: Trying to navigate to an endpoint without url",
c),_.VO(d))}};
_.r.updateDataExpandedTextFromBinding=function(c){this.set("data.expandedText",c.detail.value)};
_.ci.Object.defineProperties(B0.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
B0.prototype.onDataChanged=B0.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.FKG),_.D("design:type",Object)],B0.prototype,"ytdExpandableInputBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],B0.prototype,"data",void 0);_.y([_.AY("#input"),_.D("design:type",Object)],B0.prototype,"input",void 0);_.y([_.AY("#icon-button"),_.D("design:type",HTMLElement)],B0.prototype,"iconButton",void 0);
_.y([_.L(),_.D("design:type",String),_.D("design:paramtypes",[])],B0.prototype,"searchIcon",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],B0.prototype,"onDataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],B0);
var f1c=_.OD()(B0,"ytd-expandable-tab-renderer",function(){if(QR3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);QR3=c}c=QR3;return c},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var SHQ;var ib=function(){var c=_.z.apply(this,arguments)||this;c.avatarSize=80;c.ariaLabel=_.HO("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return c};
_.K(ib,_.z);ib.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ib.prototype.computeHref=function(c){var f;return((f=_.b(c,_.Ib))==null?0:f.url)?this.componentBehavior.computeHref_(c):null};
ib.prototype.onTap=function(){var c,f;(c=this.data)==null||!c.editAvatarServiceEndpoint||((f=_.b(this.data.editAvatarServiceEndpoint,_.Ib))==null?0:f.url)||_.ql().resolve(_.ZM).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.y([_.Q(_.X$),_.D("design:type",Object)],ib.prototype,"ironButtonState",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ib.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ib.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],ib.prototype,"avatarSize",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],ib.prototype,"ariaLabel",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],ib);
_.h(ib,"ytd-channel-avatar-editor",function(){if(SHQ!==void 0)return SHQ;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return SHQ=c},{mode:1});var LlS=_.dN(function(c){var f=c.data;var d=c.noPadding;var q=c.enableBanner;var Z=c.cinematicContainerTopbarOffset;var M=c.allowCinematicContainerOverflow;var g=c.displayAsSidebar;c=c.className;_.$k(function(){f().tagManagerId&&(_.J$(f().tagManagerId,_.hk("GL")),rF3(f().tagManagerId))},"xVTVTe");
var O=_.Ka(j3J,function(){return f().pageHeaderEntityKey});
return _.B("yt-page-header-renderer",{class:_.FY("page-header-renderer-wiz",c)},_.B(_.u7,{data:function(){var l;return((l=O())==null?0:l.header)?O().header:(g==null?0:g())&&f().sidebarContent?f().sidebarContent:f().content}},{pageHeaderViewModel:function(l){return _.B(_.FVu,{data:l.data,
noPadding:d,enableBanner:q,cinematicContainerTopbarOffset:Z,allowCinematicContainerOverflow:M,displayAsSidebar:function(){return(g==null?void 0:g())&&f().enableSidebarView}})}}))},"wj");
LlS.idomCompat=!0;_.g_(LlS,"yt-page-header-renderer",{props:{data:_.oM,noPadding:_.oM,enableBanner:_.oM,cinematicContainerTopbarOffset:_.oM,allowCinematicContainerOverflow:_.oM,displayAsSidebar:_.oM,className:_.oM}});_.g_(_.Dc,"yt-image-banner-view-model",{props:{data:_.oM,isPositionRelative:_.oM}});_.g_(_.vJK,"yt-tab-group-shape",{props:{shape:_.oM}});var Tb=function(){var c=_.z.apply(this,arguments)||this;c.expandableCustomTabRenderable=function(f){return dw3(f,function(){return void c.onSearchNavigate()})};
c.isRichGrid=!1;c.isConstrainedList=!1;c.richGridMiniMode=!1;c.richGridStyle="RICH_GRID_STYLE_UNKNOWN";c.isRichGridShorts=!1;c.responsiveSizing="COMPACT";c.disableGridStateAware=!1;c.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return c};
_.K(Tb,_.z);_.r=Tb.prototype;_.r.computeHeaderDisabled=function(c,f){return f||!c||this.tabsHidden};
_.r.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.r.computeIsRichGridShorts=function(c){return c==="RICH_GRID_STYLE_SHORTS_GRID"||c==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.r.computeImageBannerViewModel=function(){var c,f;return _.b((f=_.b((c=this.data)==null?void 0:c.content,_.NUu))==null?void 0:f.banner,_.vHv)};
_.r.computeHasCinematicContainer=function(){var c,f;return!((f=_.b((c=this.data)==null?void 0:c.content,_.NUu))==null||!f.background)};
_.r.handleHeaderResize=function(){var c=_.r1(this.hostElement).querySelector("#header");c&&_.CZ(c,"iron-resize")};
_.r.handleInsertTabCommand=function(c){var f=_.b(c,$wq);f&&(f.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(d){return d.tabRenderer&&d.tabRenderer.tabIdentifier===f.tabIdentifier})||this.splice("tabs",f.tabIndex||-1,0,f.tab))};
_.r.handleRefreshChannelTabAction=function(c){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===c&&_.CZ(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.r.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.la(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.r.observerRichGridSlimItemsPerRow=function(){_.la(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.r.updateCssVars=function(){this.richGridItemsPerRow&&_.la(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.rx("rich_grid_max_item_width",500))+16)-16+"px"})};
_.r.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.la(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.r.onDataChanged=function(){this.handleHeaderResize()};
_.r.onWindowResize=function(){this.handleHeaderResize()};
_.r.onFocusedChanged=function(c){(c=_.oV(c))&&c.is==="tp-yt-paper-tab"&&c.hasRipple()&&(c.getRipple().holdDown=!c.pointerDown&&c.focused)};
_.r.updateSelectedFromBinding=function(c){this.ytdTabbedHeaderBehavior.selected=c.detail.value};
_.r.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.ci.Object.defineProperties(Tb.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:ZNF(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.imageBannerViewModel)==null?void 0:c.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Tb.prototype.onDataChanged=Tb.prototype.onDataChanged;Tb.prototype.updateCssVarsForResponsiveGrid=Tb.prototype.updateCssVarsForResponsiveGrid;Tb.prototype.updateCssVars=Tb.prototype.updateCssVars;Tb.prototype.observerRichGridSlimItemsPerRow=Tb.prototype.observerRichGridSlimItemsPerRow;Tb.prototype.observerRichGridItemsPerRow=Tb.prototype.observerRichGridItemsPerRow;_.y([_.Q(_.et),_.D("design:type",Object)],Tb.prototype,"ytdGridStateAwareBehavior",void 0);
_.y([_.Q(Q3p),_.D("design:type",Object)],Tb.prototype,"ytdTabbedHeaderBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Tb.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],Tb.prototype,"ytdGuideStateAwareBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],Tb.prototype,"ytdReduxBehavior",void 0);_.y([_.AY("#tabs"),_.D("design:type",Object)],Tb.prototype,"tabsElement",void 0);_.y([_.L(),_.D("design:type",Array)],Tb.prototype,"tabs",void 0);_.y([_.L(),_.D("design:type",Object)],Tb.prototype,"expandableCustomTabRenderable",void 0);_.y([_.S("tabs.*"),_.D("design:type",Object),_.D("design:paramtypes",[])],Tb.prototype,"tabGroupShape",null);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Tb.prototype,"isRichGrid",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Tb.prototype,"isConstrainedList",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Object)],Tb.prototype,"richGridMiniMode",void 0);_.y([_.L({selector:function(c){return c.ui.richGridStyle}}),
_.D("design:type",Object)],Tb.prototype,"richGridStyle",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.D("design:type",Object)],Tb.prototype,"isRichGridShorts",void 0);_.y([_.L({selector:_.VR}),_.D("design:type",Number)],Tb.prototype,"richGridItemsPerRow",void 0);_.y([_.L({selector:function(c){return c.ui.richGridContainerWidth}}),
_.D("design:type",Number)],Tb.prototype,"richGridContainerWidth",void 0);_.y([_.L({selector:_.hek}),_.D("design:type",Number)],Tb.prototype,"richGridSlimItemsPerRow",void 0);_.y([_.L(),_.D("design:type",Object)],Tb.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Tb.prototype,"responsiveSizing",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Tb.prototype,"disableGridStateAware",void 0);
_.y([_.L({computed:"computeImageBannerViewModel(data)"}),_.D("design:type",Object)],Tb.prototype,"imageBannerViewModel",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.D("design:type",Boolean)],Tb.prototype,"hasCinematicContainer",void 0);_.y([_.L({selector:_.roJ,reflectToAttribute:!0}),_.D("design:type",Boolean)],Tb.prototype,"guideIsVisibleButNotPersistent",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("imageBannerViewModel"),_.D("design:type",Object),_.D("design:paramtypes",[])],Tb.prototype,"hasBanner",null);_.y([_.L({reflectToAttribute:!0}),_.S("imageBannerViewModel"),_.D("design:type",Object),_.D("design:paramtypes",[])],Tb.prototype,"hasInsetBanner",null);_.y([_.L({computed:"computeTabsHidden(tabs)",value:!0}),_.D("design:type",Boolean)],Tb.prototype,"tabsHidden",void 0);
_.y([_.m5("richGridItemsPerRow","isRichGrid"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Tb.prototype,"observerRichGridItemsPerRow",null);_.y([_.m5("richGridSlimItemsPerRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Tb.prototype,"observerRichGridSlimItemsPerRow",null);
_.y([_.m5("richGridItemsPerRow","richGridMiniMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Tb.prototype,"updateCssVars",null);_.y([_.m5("richGridContainerWidth"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Tb.prototype,"updateCssVarsForResponsiveGrid",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Tb.prototype,"onDataChanged",null);
_.y([_.v({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Tb);
_.h(Tb,"ytd-tabbed-page-header",function(){if(tG3!==void 0)return tG3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return tG3=c},{mode:1});var zFH;var mk=function(){return _.z.apply(this,arguments)||this};
_.K(mk,_.z);mk.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.la(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.ci.Object.defineProperties(mk.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var c,f;return this.componentBehavior.computeIcon_(((f=_.b((c=this.data)==null?void 0:c.badge,_.nGT))==null?void 0:f.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=_.b((c=this.data)==null?void 0:c.badge,_.nGT))==null?void 0:f.label}}});
mk.prototype.observerRichGridItemsPerRow=mk.prototype.observerRichGridItemsPerRow;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],mk.prototype,"componentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],mk.prototype,"ytdReduxBehavior",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.an}),_.D("design:type",Boolean)],mk.prototype,"richGridMiniMode",void 0);
_.y([_.L({selector:_.VR}),_.D("design:type",Number)],mk.prototype,"richGridItemsPerRow",void 0);_.y([_.L(),_.D("design:type",Object)],mk.prototype,"data",void 0);_.y([_.m5("richGridItemsPerRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mk.prototype,"observerRichGridItemsPerRow",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],mk.prototype,"badgeIconName",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],mk.prototype,"badgeLabel",null);_.y([_.v({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],mk);
_.h(mk,"ytd-member-hub-profile-renderer",function(){if(zFH!==void 0)return zFH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return zFH=c},{mode:1});var Jnc;var H0=function(){return _.z.apply(this,arguments)||this};
_.K(H0,_.z);H0.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],H0.prototype,"data",void 0);_.y([_.v({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],H0);
_.h(H0,"ytd-settings-sidebar-renderer",function(){if(Jnc!==void 0)return Jnc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Jnc=c},{mode:1});var af3;var AF=function(){var c=_.z.apply(this,arguments)||this;c.expandableCustomTabRenderable=function(f){return dw3(f,function(){return void c.onSearchNavigate()})};
return c};
_.K(AF,_.z);AF.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
AF.prototype.onSearchNavigate=function(){this.selected=void 0};
AF.prototype.onTabsChange=function(){var c,f=(c=this.tabs)==null?void 0:c.findIndex(function(d){var q;return d==null?void 0:(q=d.tabRenderer)==null?void 0:q.selected});
f!==void 0&&(this.selected=f)};
AF.prototype.onTabsActive=function(c){if(this.tabs!==void 0){var f,d;(c=(f=this.tabs[c.detail.selected])==null?void 0:(d=f.tabRenderer)==null?void 0:d.endpoint)&&_.CZ(this.hostElement,"yt-navigate",{endpoint:c})}};
_.ci.Object.defineProperties(AF.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:ZNF(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
AF.prototype.onTabsChange=AF.prototype.onTabsChange;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.et),_.D("design:type",Object)],AF.prototype,"ytdGridStateAwareBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],AF.prototype,"ytdGuideStateAwareBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],AF.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Array)],AF.prototype,"tabs",void 0);_.y([_.L(),_.D("design:type",Number)],AF.prototype,"selected",void 0);_.y([_.S("tabs.*"),_.D("design:type",Object),_.D("design:paramtypes",[])],AF.prototype,"tabGroupShape",null);_.y([_.L(),_.D("design:type",Object)],AF.prototype,"expandableCustomTabRenderable",void 0);
_.y([_.S("tabs"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],AF.prototype,"tabsEnabled",null);_.y([_.ba("tabs"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],AF.prototype,"onTabsChange",null);_.y([_.v({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],AF);
_.h(AF,"ytd-topic-channel-details-renderer",function(){if(af3!==void 0)return af3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return af3=c},{mode:1});var VGi;var Yr=function(){var c=_.z.apply(this,arguments)||this;c.disableGridStateAware=!1;return c};
_.K(Yr,_.z);Yr.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]]"}}}}}};
Yr.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Yr.prototype.updateCssVars=function(){_.la(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.rx("rich_grid_max_item_width",500))+16)-16+"px"})};
Yr.prototype.updateCssVars=Yr.prototype.updateCssVars;Yr.prototype.activeChanged=Yr.prototype.activeChanged;_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],Yr.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Yr.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Yr.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Array)],Yr.prototype,"tabs",void 0);_.y([_.L(),_.D("design:type",Boolean)],Yr.prototype,"active",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Yr.prototype,"disableGridStateAware",void 0);
_.y([_.L({selector:_.VR}),_.D("design:type",Number)],Yr.prototype,"richGridItemsPerRow",void 0);_.y([_.L({selector:_.an}),_.D("design:type",Boolean)],Yr.prototype,"richGridMiniMode",void 0);_.y([_.AY("ytd-carousel-item-renderer"),_.D("design:type",Object)],Yr.prototype,"carousel",void 0);_.y([_.m5("active"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Yr.prototype,"activeChanged",null);
_.y([_.m5("richGridItemsPerRow","richGridMiniMode"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Yr.prototype,"updateCssVars",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Yr);
_.h(Yr,"ytd-carousel-header-renderer",function(){if(VGi!==void 0)return VGi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return VGi=c},{mode:1});var X$S;var uRJ=_.pp(["https://www.google-analytics.com/analytics.js"]),FF=function(){var c=_.z.apply(this,arguments)||this;c.scriptAnalyticsAdded=!1;return c};
_.K(FF,_.z);FF.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var c,f=(c=this.data)==null?void 0:c.tagManagerId;f&&(_.J$(f,_.hk("GL")),rF3(f))};
FF.prototype.sendGoogleAnalyticsPageview=function(c){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var d=_.hv.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(d)};
var f=window.ga;f("set","page",window.location.pathname);f.l=+new Date;f("set","forceSSL",!0);f("create",c,"'auto'");f("send","pageview")};
FF.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var c=_.A5("SCRIPT");c.name="ga-analytics";var f=_.CG(uRJ);_.oh(c,f);c.async=!0;_.r1(this.hostElement).appendChild(c)};
FF.prototype.dataChanged=FF.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],FF.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],FF.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],FF);
_.h(FF,"ytd-channel-metadata-renderer",function(){if(X$S!==void 0)return X$S;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return X$S=c},{mode:1});var vmH;var hFq;var tF=function(){return _.z.apply(this,arguments)||this};
_.K(tF,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tF.prototype,"data",void 0);_.y([_.v({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],tF);
_.h(tF,"ytd-sub-feed-option-renderer",function(){if(hFq!==void 0)return hFq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return hFq=c},{mode:1});var w$C;var bb=function(){return _.z.apply(this,arguments)||this};
_.K(bb,_.z);bb.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],bb.prototype,"ytRendererStamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bb.prototype,"data",void 0);_.y([_.v({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],bb);
_.h(bb,"ytd-sub-feed-selector-renderer",function(){if(w$C!==void 0)return w$C;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return w$C=c},{mode:1});var KN=function(){return _.z.apply(this,arguments)||this};
_.K(KN,_.z);
KN.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}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],KN.prototype,"data",void 0);_.y([_.v({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],KN);
_.h(KN,"ytd-browse-feed-actions-renderer",function(){if(vmH!==void 0)return vmH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return vmH=c},{mode:1});var ynJ;var Wl3;var E0=function(){return _.z.apply(this,arguments)||this};
_.K(E0,_.z);E0.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],E0.prototype,"data",void 0);_.y([_.v({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],E0);
_.h(E0,"ytd-mini-channel-renderer",function(){if(Wl3!==void 0)return Wl3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Wl3=c},{mode:1});var DEC;var nN=function(){return _.z.apply(this,arguments)||this};
_.K(nN,_.z);nN.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],nN.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nN.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],nN);
_.h(nN,"ytd-vertical-channel-section-renderer",function(){if(DEC!==void 0)return DEC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return DEC=c},{mode:1});var $r=function(){return _.z.apply(this,arguments)||this};
_.K($r,_.z);$r.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$r.prototype,"data",void 0);_.y([_.v({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],$r);
_.h($r,"ytd-browse-secondary-contents-renderer",function(){if(ynJ!==void 0)return ynJ;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return ynJ=c},{mode:1});var eFF;var Qk=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};c.notActive=!1;c.isConstrainedList=!1;return c};
_.K(Qk,_.z);_.r=Qk.prototype;
_.r.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(c){var f;return(c==null?void 0:(f=c.webComponentHint)==null?void 0:f.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}}}}};
_.r.getPath=function(c,f){var d="data.tabs.#"+f+".";c.tabs[f].tabRenderer?d+="tabRenderer.":c.tabs[f].expandableTabRenderer&&(d+="expandableTabRenderer.");return d+"content.sectionListRenderer"};
_.r.computeDisplayedContent=function(c){this.unlinkPaths("content");if(c&&c.tabs)for(var f=c.tabs.length,d=0;d<f;d++){var q=c.tabs[d].tabRenderer||c.tabs[d].expandableTabRenderer;if(q.selected&&q.content)return this.linkPaths("content",this.getPath(c,d)),q.content}return null};
_.r.computeHasSecondaryColumnData=function(c){return!!c&&!!c.secondaryContents};
_.r.onRetrieveLocation=function(c,f){f.locationRetrieved(f.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);c.stopPropagation()};
_.r.onYtServiceRequestSent=function(c,f){_.F("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(f)};
_.r.onYtServiceRequestCompleted=function(c,f){_.F("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(f)};
_.r.onReplaceFeedContentAction=function(c){if(!_.F("replace_feed_content_action_killswitch")&&!this.notActive){var f;(c=(f=_.b(c,TjG))==null?void 0:f.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(c)}};
_.r.handleServiceRequestActions=function(c){if(c=c.actions){c=_.C(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var d=void 0;((d=_.b(f,TjG))==null?0:d.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.b(f,TjG).items)}}};
Qk.prototype.onYtServiceRequestCompleted=Qk.prototype.onYtServiceRequestCompleted;Qk.prototype.onYtServiceRequestSent=Qk.prototype.onYtServiceRequestSent;Qk.prototype.onRetrieveLocation=Qk.prototype.onRetrieveLocation;_.y([_.Q(_.et),_.D("design:type",Object)],Qk.prototype,"ytdGridStateAwareBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Qk.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Qk.prototype,"data",void 0);_.y([_.L({computed:"computeDisplayedContent(data)"}),_.D("design:type",Object)],Qk.prototype,"content",void 0);
_.y([_.L({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Qk.prototype,"hasSecondaryColumnData",void 0);_.y([_.L({value:function(){return window.outerHeight>1024?3:2}}),
_.D("design:type",Number)],Qk.prototype,"initialCount",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Qk.prototype,"pageSubtype",void 0);_.y([_.AY("ytd-section-list-renderer"),_.D("design:type",Object)],Qk.prototype,"listRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],Qk.prototype,"notActive",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Qk.prototype,"isConstrainedList",void 0);
_.y([_.L(),_.D("design:type",String)],Qk.prototype,"responsiveSizing",void 0);_.y([_.Ta("yt-retrieve-location"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],Qk.prototype,"onRetrieveLocation",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],Qk.prototype,"onYtServiceRequestSent",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],Qk.prototype,"onYtServiceRequestCompleted",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Qk);
_.h(Qk,"ytd-two-column-browse-results-renderer",function(){if(eFF!==void 0)return eFF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return eFF=c},{mode:2});var N5G;var IfF;var S0=function(){var c=_.z.apply(this,arguments)||this;c.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"]);c.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"]);c.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return c};
_.K(S0,_.z);_.r=S0.prototype;_.r.attached=function(){this.requestElementsPerRow()};
_.r.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_]]"}}}}}};
_.r.onUpdateElementsPerRowAction=function(c){c&&this.elementsPerRow!==c&&(this.elementsPerRow=c)};
_.r.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.r.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.r.computeAlertStyle_=function(c){return c};
_.r.observerElementsPerRow=function(){this.elementsPerRow&&_.la(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.r.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.r.requestElementsPerRow=function(){_.CZ(this.hostElement,"yt-request-elements-per-row")};
S0.prototype.onIsVisibleChanged_=S0.prototype.onIsVisibleChanged_;S0.prototype.observerElementsPerRow=S0.prototype.observerElementsPerRow;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],S0.prototype,"actionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],S0.prototype,"data",void 0);_.y([_.L({value:6,reflectToAttribute:!0}),_.D("design:type",Number)],S0.prototype,"elementsPerRow",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],S0.prototype,"wrapButtons",void 0);_.y([_.L({value:_.hk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.D("design:type",Boolean)],S0.prototype,"isMusic",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.D("design:type",String)],S0.prototype,"alertStyle",void 0);_.y([_.L({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.D("design:type",Function)],S0.prototype,"dismissBoundButtonTap_",void 0);_.y([_.L({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.D("design:type",Function)],S0.prototype,"acceptBoundButtonTap_",void 0);_.y([_.m5("elementsPerRow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],S0.prototype,"observerElementsPerRow",null);_.y([_.m5("data.isVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],S0.prototype,"onIsVisibleChanged_",null);_.y([_.vj({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],S0);
_.h(S0,"yt-alert-with-actions-renderer",function(){if(IfF===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;N5G===void 0&&(N5G=document.createElement("template"));var q=N5G;d.call(f,q.content.cloneNode(!0),c.content.firstChild);IfF=c}c=IfF;return c},{mode:2});_.g_(_.dN(function(c){function f(Y){var t={};return _.B(_.J9,{text:Y,className:_.FY("ytPersonalGreetingViewModelHeadline",(t.ytPersonalGreetingViewModelHeadlineSmall=function(){return O()===48},t))})}
function d(Y,t){return _.B("span",{el:Y,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},f(t))}
var q=_.Z7(_.NY(function(){var Y;return(Y=c.data())==null?void 0:Y.rendererContext},void 0,void 0,void 0,!0)),Z=_.xz("span"),M=_.xz("span"),g=function(){return c.data().canvasPromoData},O=function(){var Y;
return(Y=c.data().bannerHeight)!=null?Y:56},l=_.oVl(q,{throttleMs:100}),m=_.oVl(Z,{throttleMs:100}),H=_.oVl(M,{throttleMs:100}),A=function(){return m.width()-l.width()>1};
return _.B("yt-personal-greeting-view-model",{el:q,"aria-hidden":A,class:_.FY(c.className,"ytPersonalGreetingViewModelHost"),style:_.$Z({height:(0,_.Xn)(function(){return A()?0:O()})})},_.B(_.T,{cond:function(){return c.data().avatar&&!(H.width()+(c.data().avatar?48:0)-l.width()>1)},
then:function(){return _.B(_.u7,{data:function(){return c.data().avatar}},{decoratedAvatarViewModel:function(Y){return _.B(_.VV,{data:Y.data,
className:_.FY("ytPersonalGreetingViewModelAvatar")})}})}}),_.B("h1",null,f(function(){var Y;
return(g==null?void 0:(Y=g())==null?void 0:Y.headline)||(H.width()+(c.data().avatar?48:0)-l.width()>1?c.data().shorterGreeting:c.data().greeting)})),d(M,function(){return c.data().greeting}),d(Z,function(){return c.data().shorterGreeting}))},"xj"),"yt-personal-greeting-view-model",{props:{data:_.oM,
className:_.oM}});var LN=function(){var c=_.z.apply(this,arguments)||this;c.hidden=!1;c.isConstrainedList=!1;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.responsiveSizing="COMPACT";c.attachedPlayers=_.F("kevlar_channel_trailer_multi_attach")?[]:void 0;c.player=null;c.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return c};
_.K(LN,_.z);_.r=LN.prototype;
_.r.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}}}}};
_.r.created=function(){var c=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){c.disposeMastheadAd()}]};
_.r.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new zoF(this.refresh,this.contents))};
_.r.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.r.activeChanged=function(){var c=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=c)};
_.r.tabsChanged=function(){var c=this,f,d;if(this.pageSubtype==="channels"||_.F("kevlar_tab_gestures_for_tabbed_header_data")&&((f=this.data)==null?0:(d=f.header)==null?0:d.carouselHeaderRenderer))this.tabGestures=new QA(this.contents,this.contents,this.hostElement,this.header,function(g){c.ytdReduxBehavior.dispatch(g)});
var q,Z,M;f=(q=this.data)==null?void 0:(Z=q.contents)==null?void 0:(M=Z.twoColumnBrowseResultsRenderer)==null?void 0:M.tabs;this.tabGestures&&this.tabGestures.tabsChanged(f)};
_.r.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.r.engagementPanelsChanged=function(){var c=_.ql().resolve(_.SD);if(c){if(this.engagementPanels)for(var f=_.C(this.engagementPanels),d=f.next();!d.done;d=f.next()){var q=void 0;(d=(q=d.value.identifier)==null?void 0:q.tag)&&c.panelMap.delete(d)}this.engagementPanels=[];var Z;f=_.C(((Z=this.data)==null?void 0:Z.panels)||[]);for(Z=f.next();!Z.done;Z=f.next()){Z=_.b(Z.value,_.gJp);var M=d=void 0,g=void 0,O=void 0;if(q=((d=Z)==null?void 0:d.targetId)||((M=Z)==null?void 0:M.panelIdentifier)||((g=Z)==
null?void 0:(O=g.identifier)==null?void 0:O.tag))M=d=void 0,(M=(d=c).registerPanelContent)==null||M.call(d,q,{engagementPanelSectionListRenderer:Z}),this.engagementPanels.push(Z)}}};
_.r.onStampFinished=function(){var c=this;_.ol(this,function(){if(c.tabGestures){var f=c.tabGestures;if(f.scrollPositionNeedsUpdate){var d=_.ql().resolve(_.dx(_.MY)),q;if((q=f.selectedTab)!=null&&q.title&&d&&(q=d.getCurrentPage())){if(f.scrollPositionForTabs.has(f.selectedTab.title)){var Z,M;d=(M=(Z=d.getCurrentPage())==null?void 0:Z.clientHeight)!=null?M:0;Z=f.scrollPositionForTabs.get(f.selectedTab.title);q.setScrollTop(Z);d>Z+100&&(f.scrollPositionNeedsUpdate=!1)}else q.setScrollTop(Math.min(f.lastVisitedTabScrollPosition!==
void 0?f.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,f.tabsStartAtInPx)),f.scrollPositionNeedsUpdate=!1;f.ytdReduxDispatch(M0p(!1))}}}})};
_.r.loadPage_=function(c){this.initCsi();c&&(this.data=c);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.r.getTitle=function(c){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",c))return this.get("microformat.microformatDataRenderer.title",c);if(this.get("header.feedTabbedHeaderRenderer.title",c))return _.xC(this.get("header.feedTabbedHeaderRenderer.title",c));if(this.get("header.interactiveTabbedHeaderRenderer.title",c))return this.get("header.interactiveTabbedHeaderRenderer.title",c);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
c))return _.xC(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",c));var f,d;return _.F("enable_page_header_page_title")&&(c==null?0:(f=c.header)==null?0:(d=f.pageHeaderRenderer)==null?0:d.pageTitle)?c.header.pageHeaderRenderer.pageTitle:""};
_.r.updateTitle=function(c){_.CZ(this.hostElement,"yt-update-title",this.getTitle(c))};
_.r.initCsi=function(){_.bA(this.pageSubtype||"browse",["ol","cpt"])};
_.r.getPlayer=function(){if(_.F("kevlar_channel_trailer_multi_attach")){for(var c=_.C(this.attachedPlayers),f=c.next();!f.done;f=c.next())if(f=f.value,f.isConnected||_.wb(this.hostElement,f))return f;return null}return this.player};
_.r.getPlayerContainer=function(){return null};
_.r.onPlayerAttached=function(c,f){_.F("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(f):this.player=f};
_.r.onPlayerDetached=function(c,f){_.F("kevlar_channel_trailer_multi_attach")?(c=this.attachedPlayers.indexOf(f),c<0||this.attachedPlayers.splice(c,1)):this.player=null};
_.r.getServiceTrackingParams=function(){var c,f;return((c=this.data)==null?void 0:(f=c.responseContext)==null?void 0:f.serviceTrackingParams)||[]};
_.r.setMastheadAd=function(c){c&&c.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=c&&c.mastheadAd};
_.r.dataChanged=function(){var c=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.ek3();_.ol(this,function(){_.kt(c.hostElement,"ytd-update-grid-state-action")})};
_.r.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.r.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var c=this.data.alerts;return c&&c.find(function(f){return!!f.alertWithActionsRenderer})}};
_.r.computeGreetingData=function(){if(this.data&&this.data.alerts){var c=this.data.alerts;return c&&c.find(function(f){return!!f.personalGreetingViewModel})}};
_.r.computeHasMemberHubProfileRenderer=function(c){var f;return!!(c==null?0:(f=c.header)==null?0:f.memberHubProfileRenderer)};
_.r.handleAlertCommand=function(c){this.get("alertCommand.alert.alertWithActionsRenderer",c)&&(c=_.b(c,mwJ),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",c.alert))};
_.r.handleYtPlaylistDeletionRedirect=function(c){c=this.get("playlistDeletionRedirectCommand.redirectEndpoint",c);_.CZ(this.hostElement,"yt-navigate",{endpoint:c})};
_.r.computeFluidWidth=function(c,f,d){if(f==="mini_app"||d)return!0;var q,Z,M;c=c==null?void 0:(q=c.contents)==null?void 0:(Z=q.twoColumnBrowseResultsRenderer)==null?void 0:(M=Z.tabs)==null?void 0:M.find(function(l){var m;return l==null?void 0:(m=l.tabRenderer)==null?void 0:m.selected});
if(!c)return!1;var g,O;return!!((g=c.tabRenderer)==null?0:(O=g.content)==null?0:O.richGridRenderer)&&!["channel","channels","playables"].includes(f)};
_.r.computeHeaderFluidWidth=function(c){return c==="hashtag-landing-page"};
_.r.computeHasSidebar=function(c){var f;return!!(c.sidebar||((f=c.header)==null?0:f.playlistHeaderRenderer))};
_.r.computeHasPageHeaderSidebar=function(c){var f,d;return!!((f=c.header)==null?0:(d=f.pageHeaderRenderer)==null?0:d.enableSidebarView)};
_.r.computeUseUnifiedShowPageLayout=function(c){if(!c||this.pageSubtype!=="show"||!c.sidebar||!c.sidebar.playlistSidebarRenderer)return!1;c=c.sidebar.playlistSidebarRenderer;if(!c.items)return!1;for(var f=0;f<c.items.length;f++)if(_.b(c.items[f],nw)){var d=void 0;return((d=_.b(c.items[f],nw))==null?void 0:d.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.r.computeIsConstrainedList=function(c){return _.F("web_enable_constrained_list_subscriptions_channels")&&c==="subscriptions-channels"};
_.r.computeResponsiveSizing=function(c){return c==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.ci.Object.defineProperties(LN.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var c,f;return((c=this.data)==null?0:(f=c.header)==null?0:f.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var c,f;if(!((c=this.data)==null?0:(f=c.sidebar)==null?0:f.playlistSidebarRenderer))return!1;var d;return(d=this.data)!=null&&d.header?!1:!0}}});
_.ci.Object.defineProperties(LN,{template:{configurable:!0,enumerable:!0,get:function(){if(V0F===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);V0F=c}c=V0F;return c}}});
LN.prototype.dataChanged=LN.prototype.dataChanged;LN.prototype.onPlayerDetached=LN.prototype.onPlayerDetached;LN.prototype.onPlayerAttached=LN.prototype.onPlayerAttached;LN.prototype.onStampFinished=LN.prototype.onStampFinished;LN.prototype.engagementPanelsChanged=LN.prototype.engagementPanelsChanged;LN.prototype.scrollAtTopChanged=LN.prototype.scrollAtTopChanged;LN.prototype.tabsChanged=LN.prototype.tabsChanged;LN.prototype.activeChanged=LN.prototype.activeChanged;
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],LN.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],LN.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],LN.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Kw.YtPageBehavior),_.D("design:type",Object)],LN.prototype,"ytPageBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],LN.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],LN.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],LN.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],LN.prototype,"hidden",void 0);
_.y([_.L(),_.D("design:type",Object)],LN.prototype,"mastheadAdData",void 0);_.y([_.L({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.D("design:type",Object)],LN.prototype,"alertBannerData",void 0);_.y([_.L({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.D("design:type",Object)],LN.prototype,"greetingData",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],LN.prototype,"pageSubtype",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.D("design:type",Boolean)],LN.prototype,"hasMemberHubProfileRenderer",void 0);_.y([_.L({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],LN.prototype,"hasSidebar",void 0);_.y([_.L({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],LN.prototype,"hasPageHeaderSidebar",void 0);
_.y([_.L({reflectToAttribute:!0,value:!0}),_.D("design:type",Boolean)],LN.prototype,"roundedContainer",void 0);_.y([_.L({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],LN.prototype,"useUnifiedShowPageLayout",void 0);_.y([_.L({computed:"computeIsConstrainedList(pageSubtype)"}),_.D("design:type",Object)],LN.prototype,"isConstrainedList",void 0);
_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],LN.prototype,"usePlaylistHeaderRenderer",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],LN.prototype,"useOldPlaylistSidebarRenderer",null);_.y([_.L({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.D("design:type",Boolean)],LN.prototype,"fluidWidth",void 0);_.y([_.L({selector:function(c){return c.ui.scrollAtTop}}),
_.D("design:type",Boolean)],LN.prototype,"scrollAtTop",void 0);_.y([_.L({selector:_.CmQ}),_.D("design:type",Boolean)],LN.prototype,"tabGesturesIsActive",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],LN.prototype,"darkerDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.D("design:type",Boolean)],LN.prototype,"disableHeaderFluidWidth",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.D("design:type",String)],LN.prototype,"responsiveSizing",void 0);_.y([_.AY("ytd-two-column-browse-results-renderer"),_.D("design:type",HTMLElement)],LN.prototype,"contents",void 0);_.y([_.AY("#header"),_.D("design:type",HTMLElement)],LN.prototype,"header",void 0);_.y([_.AY("ytd-refresh"),_.D("design:type",Object)],LN.prototype,"refresh",void 0);
_.y([_.m5("active"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LN.prototype,"activeChanged",null);_.y([_.m5("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LN.prototype,"tabsChanged",null);_.y([_.m5("scrollAtTop"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LN.prototype,"scrollAtTopChanged",null);
_.y([_.L(),_.D("design:type",Object)],LN.prototype,"engagementPanels",void 0);_.y([_.m5("data.panels"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LN.prototype,"engagementPanelsChanged",null);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LN.prototype,"onStampFinished",null);
_.y([_.Ta("yt-player-attached"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Element]),_.D("design:returntype")],LN.prototype,"onPlayerAttached",null);_.y([_.Ta("yt-player-detached"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Element]),_.D("design:returntype")],LN.prototype,"onPlayerDetached",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LN.prototype,"dataChanged",null);
_.y([_.v({is:"ytd-browse"})],LN);_.O2.registerService(_.GTh,LN);
_.aO();
}catch(e){_._DumpException(e)}
try{
_.J5("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 Af,bhp,K4H,EDq,nDq,$dS,Qlr,SuC,L4D,zw3,J8q,aBc,XWq,usc,hwr,wWq,y8r,Ddc,ew3,NuG,IBQ,Y7,RwQ,FM,UdG,pW3,xdi,oDC,GAc,fzG,jSD,ciF,VRq,qcF,Zer,MsG,riC,CVD,gnD,lzC,sSr,B2q,ieQ,mTG,HeF,Ycp,ts3,beJ,KFJ,nnp,QSC,Sc3,LFQ,zgS,JiD,azG,VsG,XiH,u2D,vn3,hgc,wiS,yi3,WFc,DTS,egp,N2c,IzC,PVr,UTr,piD,xTJ,onJ,GcG,cQi,frG,d93,jcH,qXc,ZZJ,MOQ,rQF,Clp,gtq,kir,OZq,lrS,scq,BSp,iZC,TSr,m9C,HZi,AQH,YX3,FnD,tOD,bZr,Kn3,LV,Etq,ntS,$9q,SXr,LnQ,z5S,JQp,arC,VOJ,XOC,h5q,R5q,ot3,Gi3,qxi,ZCr,jnJ,f8G,gCH,l83,HCS,cEJ,BWq,khc,uT,YxJ,
bCQ,nCr,KdS,ECC,$$S,z4r,SxQ,JEC,a8S,LdC,Qni,VUc,yL,W7,yES,WdH,D6,D$J,e4r,NWi,x$D,oCS,eL,NZ,chH,GhQ,fmC,dLH,jVp,IL,P7,RL,OXS,lmF,sVD,pV,HXS,BDq,mLS,Ahq,iXc,Fq3,TDp,KqJ,tvH,bX3,x7,n0C,E0i,LqG,Vv3,f6,dX,JhJ,uw3,amJ,XSi,q3,M3,rX,C6,qkJ,RNC,rYJ,CaF,gEr,kaH,l_D,DLC,eN3,Op,ImQ,gX,kg,Poi,O$Q,Z$H,NDc,sp,B1S,i$c,T1D,H$i,Ykc,F5H,tBJ,b$G,EED,K5F,$hi,QaC,L5c,zB3,a_q,VBq,XjC,ujC,vEi,wj3,yYp,W5p,DhC,eB3,N1C,I_r,RBC,Uhq,pjD,xhC,oEH,ceC,GaF,f9H,dVc,iR,jfr,qDc,TB,Zxq,Mq3,rec,CPr,gpr,kuC,OxC,l9Q,sfS,ixJ,m9,TNG,mVc,
YDD,tq3,bxc,Ep3,KtC,npS,$V3,Qfp,Ltr,zDD,Jep,a9J,Vq3,Xhc,uNC,vpq,hDp,whF,yeH,WtJ,I9S,PPp,eDC,NNr,DVQ,RDq,xVH,UVG,ph3,cp3,opF,GuD,f7C,d5r,jTc,qVD,MCC,rp3,CSq,k3J,OsH,sTC,isD,m5q,Apq,F$C,bs3,EZq,$5J,L$S,zYH,JpF,VCS,a73,uYC,vZ3,hYD,wrc,Am,ypC,W$q,D5F,G3G,fW3,dY3,McG,rcS,C73,gvr,Oa3,kxi,lW3,sep,ByH,iaJ,Tyr,z_,mYr,K6,Hsi,HaC,AcD;
Af=function(c){if(!c)return"browse";var f=c.page,d=c.url,q,Z,M,g=(q=c.response)==null?void 0:(Z=q.responseContext)==null?void 0:(M=Z.webResponseContextExtensionData)==null?void 0:M.pageTheme;if(g)f=g.toLowerCase().replace(/_/g,"-");else if(f!=="watch"&&f!=="learning_journey_watch"){var O,l;if((f==="browse"||f==="settings")&&((O=c.response)==null?0:(l=O.sidebar)==null?0:l.settingsSidebarRenderer))f="WEB_PAGE_TYPE_SETTINGS";else{var m,H;f==="browse"&&((m=c.response)==null?0:(H=m.metadata)==null?0:H.channelMetadataRenderer)?
f="channel":d&&(f=_.Ah(d)||f)}}return f};
bhp=function(){var c=_.D5("yt.aba.att");return c?c:_.Oq.instance!==void 0?_.Oq.instance.tYY.bind(_.Oq.instance):null};
K4H=function(c,f){var d;return _.k(function(q){return(d=bhp())?q.return(d(c,f,6E4)):q.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
EDq=function(c,f,d,q,Z){f=f===void 0?[]:f;Z=Z?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Z}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.jU(c),dialogMessages:f.map(function(M){return _.jU(M)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jU(d),serviceEndpoint:Z}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.jU(q)}}}}}};
nDq=function(c){var f=!!_.P_().queueProxy;var d,q,Z;c=c==null?void 0:(d=c.response)==null?void 0:(q=d.currentVideoEndpoint)==null?void 0:(Z=q.watchEndpoint)==null?void 0:Z.playlistId;return!(!f&&!c)};
$dS=function(c,f){var d=_.F7();if(nDq(c))return d.playlistWatchPageActivation=!0;switch(Af(f)){case "yts-products":return d.productDetailsPageActivation=!0;case "mini_app":return d.miniAppPageActivation=!0;case "playables":return d.playablesDestPageActivation=!0;default:return!1}};
Qlr=function(c,f,d){for(var q=typeof c==="string"?c.split(""):c,Z=c.length-1;Z>=0;--Z)Z in q&&f.call(d,q[Z],Z,c)};
SuC=function(c,f){f=_.YCC(c,f);f>=0&&_.brG(c,f)};
L4D=function(c){return Array.prototype.concat.apply([],arguments)};
zw3=function(c){var f=0;f=f===void 0?0:f;if(!_.RK(c))throw _.GY("uint64");var d=typeof c;switch(f){case 512:switch(d){case "string":return _.n_n(c);case "bigint":return String((0,_.gJ)(64,c));default:return _.KTN(c)}case 1024:switch(d){case "string":return _.$Hr(c);case "bigint":return _.Xy((0,_.gJ)(64,c));default:return _.E_M(c)}case 0:switch(d){case "string":return _.n_n(c);case "bigint":return _.Xy((0,_.gJ)(64,c));default:return _.bjz(c)}default:return _.WH(f,"Unknown format requested type for int64")}};
J8q=function(c){c!=null&&(c=c.JSC$8761_value_||"",c=typeof c==="string"?c:new Uint8Array(c));return c};
aBc=function(c,f){if(/-[a-z]/.test(f))return null;if(_.IpK&&c.dataset){if(_.Ore()&&!(f in c.dataset))return null;c=c.dataset[f];return c===void 0?null:c}return c.getAttribute("data-"+_.Ai(f))};
XWq=function(){var c=VRq;_.D5("yt.ads.biscotti.getId_")||_.fu("yt.ads.biscotti.getId_",c)};
usc=function(c){_.fu("yt.ads.biscotti.lastId_",c)};
hwr=function(){var c={};for(_.SA=new vDp(c.handleError===void 0?_.XX:c.handleError,c.logEvent===void 0?_.JN:c.logEvent);_.J4.length>0;)switch(c=_.J4.shift(),c.type){case "ERROR":_.SA.logError(c.payload);break;case "EVENT":_.SA.logEvent(c.eventType,c.payload)}};
wWq=function(c,f,d){return _.u5r(function(q){return d?q.userIdentifier!==void 0&&!c.includes(q.userIdentifier)&&d.includes(q.publicName):q.userIdentifier!==void 0&&!c.includes(q.userIdentifier)},f)};
y8r=function(c){var f,d;return _.k(function(q){if(q.nextAddress==1)return f=_.t4("YtIdbMeta hasAnyMeta other"),q.yield(_.u5r(function(Z){return Z.userIdentifier!==void 0&&Z.userIdentifier!==f},c),2);
d=q.yieldResult;return q.return(d.length>0)})};
Ddc=function(c,f){W4F||(W4F=_.a7.addLowPriorityJob(function(){var d,q,Z,M,g;return _.k(function(O){switch(O.nextAddress){case 1:return O.yield(_.dR(),2);case 2:d=O.yieldResult;if(!d)return O.return();q=!0;_.iY(O,3);return O.yield(wWq(c,d,f),5);case 5:Z=O.yieldResult;if(!Z.length){q=!1;O.jumpTo(6);break}M=Z[0];return O.yield(_.Ro(M.actualName),7);case 7:return O.yield(_.xK(M.actualName,d),6);case 6:_.Pq(O,4);break;case 3:g=_.Yw(O),_.ao(g),q=!1;case 4:_.a7.cancelJob(W4F),W4F=0,q&&Ddc(c,f),_.Fm(O)}})}))};
ew3=function(){var c;return _.k(function(f){return f.nextAddress==1?f.yield(_.dR(),2):(c=f.yieldResult)?f.return(y8r(c)):f.return(!1)})};
NuG=function(c){var f=100;f=f===void 0?500:f;var d,q,Z,M,g,O;return _.k(function(l){return l.nextAddress==1?(d=_.hk("INNERTUBE_CONTEXT_CLIENT_NAME",0),q=[d,(0,_.qR)()-2592E6],Z=[d,(0,_.qR)()],M=IDBKeyRange.bound(q,Z),l.yield(_.gpC(c),2)):l.nextAddress!=3?(g=l.yieldResult,O=[],l.yield(_.pD(g,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(m){O.length=0;return _.Ze(m.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:M,direction:"prev"},function(H){if(H.getValue()&&O.length<
f)return O.push(H.getValue()),H.delete().then(function(){return H.continue()})})}),3)):l.return(O)})};
IBQ=function(){var c;return _.k(function(f){if(f.nextAddress==1)return f.yield(_.dR(),2);c=f.yieldResult;if(!c||!_.bF()&&!_.F("nwl_init_require_datasync_id_killswitch")||!_.Qf4())return f.jumpTo(0);_.LtC=!0;_.SDh.isNwlInitialized=_.LtC;return f.yield(_.sS3().awaitInitialization(),0)})};
Y7=function(c,f){_.PP4[c]=!0;var d=_.Mu();d&&d.publish.apply(d,arguments);_.PP4[c]=!1};
RwQ=function(){if(_.K5M()&&!PWp){var c=function(d){d=d.data;if(d.op==="serializedGelBatch"){var q=_.RYC.get(d.key);q&&(_.prM(d.serializedBatch,q.client,q.resolve,q.networklessOptions,q.isIsolated,q.useVSSEndpoint,q.dangerousLogToVisitorSession,q.requestsOutstanding),_.RYC.delete(d.key))}},f=_.b$k();
f&&(f.addEventListener("message",c),f.onerror=function(){_.RYC.clear()});
PWp=!0}};
FM=function(){this.relativeTimeStart_=_.M6()};
UdG=function(c,f){c!=null&&this.append.apply(this,arguments)};
pW3=function(){return _.y5("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
xdi=function(c,f,d){d=d===void 0?!1:d;var q,Z,M,g,O;return _.k(function(l){switch(l.nextAddress){case 1:_.YK("SOCS",c,34128E3,"youtube.com",!0);if(_.TK)return Z=fetch(f,{method:"POST",mode:_.Pi(f),credentials:_.IS(f),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),M=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Pi("/upgrade_visitor_cookie?eom=1"),credentials:_.IS("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l.yield(Promise.all([Z,M]).then(function(m){return m[1]}),5);
fetch(f,{method:"POST",mode:_.Pi(f),credentials:_.IS(f),cache:"no-store",headers:{"Content-Type":"text/plain"}});return l.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Pi("/upgrade_visitor_cookie?eom=1"),credentials:_.IS("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:q=l.yieldResult;l.jumpTo(3);break;case 5:q=g=l.yieldResult;case 3:if(!q.ok)throw Error("mf");return l.yield(q.text(),7);case 7:O=l.yieldResult,
!O.includes('"state_switch":true')&&!d||O.includes("skip_reload_for_test")||window.location.reload(),_.Fm(l)}})};
oDC=function(c){return _.k(function(f){return f.nextAddress==1?f.yield(xdi(c.socsCookie,c.savePreferenceUrl,!0),2):f.return()})};
GAc=function(c){return _.k(function(f){return f.nextAddress==1?f.yield(xdi(c.socsCookie,c.savePreferenceUrl),2):f.return()})};
fzG=function(c){c=c.xhr.responseText;if(!_.Z4(c,")]}'"))throw new tf;c=JSON.parse(c.substr(4));if((c.type||1)>1)throw new tf;c=c.id;usc(c);bT=_.xf(c);ciF(18E5,2);return c};
jSD=function(c,f){f=new dTC(f);usc("");bT=_.fs3(f);c>0&&ciF(12E4,c-1);throw f;};
ciF=function(c,f){_.Oz(function(){_.gDC().then(fzG,function(d){return jSD(f,d)}).thenCatch(_.tq)},c)};
VRq=function(){var c=_.lBJ();if(c!==void 0)return _.Je(c);bT||(bT=_.gDC().then(fzG).thenCatch(function(f){return jSD(2,f)}));
return bT};
qcF=function(){var c=document;return _.ak(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(f){return"on"+f.toLowerCase()in c})};
Zer=function(c){c.addEventListener("click",function(f){var d=f.target;d&&d.getAttribute("href")&&(d=d.getAttribute("href"),_.PU(window,d,"_blank"),f.preventDefault(),f.stopImmediatePropagation())})};
MsG=function(c){var f,d,q,Z=(q=(d=((f=c.mainDownloadsListEntity)!=null?f:{})[_.LZY])==null?void 0:d.refresh)!=null?q:"",M;c=(M=c.refresh)==null?void 0:M[Z];Z=c!=null?c:{};return(Z==null?0:Z.refreshTime)?Number(Z==null?void 0:Z.refreshTime):0};
riC=function(c,f){var d=_.QR(c);return f.every(function(q){var Z;q=q==null?void 0:(Z=q.playbackDataEntity)==null?void 0:Z.key;if(!q)return!1;Z=_.sx(_.kC(q).entityId,"mainVideoEntity");return!!d[Z]})};
CVD=function(c){c=_.Ex(c.entities);return _.NFM(c).length};
gnD=function(c,f){if(f){var d;c=(d=_.Bb(c.entities,"downloadQualityPickerEntity",f))!=null?d:void 0}else c=void 0;return c};
lzC=function(){kci||(_.Ux=_.S2Y,kci=new OeQ);return kci};
sSr=function(c){var f=document.getElementsByTagName("ytd-enforcement-message-view-model");f.length===0||getComputedStyle(f[0]).display==="none"?c(0,"p.h_"):c(1,"p.h_")};
B2q=function(){KV=0;var c=[_.KX(!0)];Ef&&_.kt(Ef,"yt-window-resized",c)};
ieQ=function(){KV||(KV=_.a7.addLowPriorityJob(B2q,200))};
mTG=function(){nV=0;T2J=_.Pr3(document);var c=[T2J];Ef&&_.kt(Ef,"yt-window-scrolled",c)};
HeF=function(){nV||(nV=_.a7.addLowPriorityJob(mTG,200))};
Ycp=function(c){c=c===void 0?null:c;AiJ.push(_.dK(window,"resize",ieQ));AiJ.push(_.dK(window,"scroll",HeF));c&&(Ef=c)};
ts3=function(){var c={isWide:_.A4.get("wide","0")==="1"},f=_.Ft();if(f=f.getFlag(165)||f.getFlag(174))c.theme=_.LX(!0);if(_.YjN()){var d=_.Sv()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";c.systemTheme=d}!f&&_.F("parent_tools_enable_app_settings")&&_.Rw(window.location.href).theme!==void 0&&(c.theme=_.LX());if((f=$7)?!_.zV.equals(f,c):c)f={currentValue:c},FFQ&&(f.timeSinceLastSnapshotSecs=Math.round(((0,_.qR)()-FFQ)/1E3)),$7&&(f.previousValue=$7),_.JN("appSettingsCaptured",f),$7=c,FFQ=
(0,_.qR)()};
beJ=function(c){_.k(function(f){if(f.nextAddress==1)return f.yield(c.delete("yt-appshell-assets"),2);_.Fm(f)})};
KFJ=function(c){return _.Uz((0,_.SIH)(),c)};
nnp=function(){var c;_.k(function(f){return f.nextAddress==1?f.yield(QL.getInstance(),2):(c=f.yieldResult)?f.yield(EnS(c),0):f.jumpTo(0)})};
QSC=function(){var c;_.k(function(f){return f.nextAddress==1?f.yield(SL.getInstance(),2):(c=f.yieldResult)?f.yield($TC(c),0):f.jumpTo(0)})};
Sc3=function(c){beJ(c);nnp();QSC()};
LFQ=function(c){var f,d;return _.k(function(q){if(q.nextAddress==1)return q.yield(_.DeY(c),2);if(f=q.yieldResult){var Z;a:{if(f.headers&&(Z=f.headers.get("date"))&&(Z=Date.parse(Z),!isNaN(Z))){Z=Math.round((0,_.qR)()-Z);break a}Z=-1}d=Z;if(d>-1)return q.return(d)}return q.return(-1)})};
zgS=function(){var c=_.dz.caches,f=_.wi("IS_SHELL_LOAD"),d,q;_.k(function(Z){if(Z.nextAddress==1)return d=-1,f?Z.yield(LFQ(c),3):(q=_.$t(),d=Math.round((0,_.qR)()-q),Z.jumpTo(2));Z.nextAddress!=2&&(d=Z.yieldResult);d>=0&&d<2147483648&&_.JQ({appInstallDataAgeMs:d});_.Fm(Z)})};
JiD=function(c){var f=_.DU(_.dz.location.href),d={};"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(q){var Z=f.JSC$9976_queryData_.getValues(q);if(Z==null?0:Z.length)d[q]=Z});
return _.gk(c,new Map(Object.entries(d)))};
azG=function(c){c=c.match(/(.*)::.*::.*/);if(c!==null)return c[1]};
VsG=function(c){if(_.r6C()){var f=Object.keys(window.localStorage);f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=azG(d);q===void 0||c.includes(q)||self.localStorage.removeItem(d)}}};
XiH=function(){if(!_.r6C())return!1;var c=_.t4(),f=Object.keys(window.localStorage);f=_.C(f);for(var d=f.next();!d.done;d=f.next())if(d=azG(d.value),d!==void 0&&d!==c)return!0;return!1};
u2D=function(c){return _.Of("NotificationsDisabled",c)};
vn3=function(){return Notification.permission!="granted"?Promise.resolve():_.gk3().then(function(c){return c?c.pushManager.getSubscription().then(function(f){if(f)return Promise.resolve();f={userVisibleOnly:!0,applicationServerKey:_.pr("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return c.pushManager.subscribe(f).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
hgc=function(c){return _.gk3().then(function(f){if(!f||!f.active)return Promise.reject(new _.KD("serviceworker.postMessage",c,f));try{return f.active.postMessage(c),Promise.resolve()}catch(d){return Promise.reject(d)}})};
wiS=function(){hgc({type:"notifications_register",data:_.hk("ID_TOKEN")})};
yi3=function(){if(!_.wi("LOGGED_IN"))return Promise.resolve(!1);var c=_.CD("service_worker_push_force_notification_prompt_tag");return c?_.Tm("PromptTags").then(function(f){if(!f)return!0;var d=[];try{d=JSON.parse(f)}catch(q){return!1}return d&&d.indexOf(c)==-1}):Promise.resolve(!1)};
WFc=function(){var c=_.rx("service_worker_push_prompt_delay_microseconds");return c?_.Tm("PromptTime").then(function(f){return Promise.resolve(Date.now()-c>(f||0))}):Promise.resolve(!0)};
DTS=function(){var c=_.rx("service_worker_push_logged_out_prompt_watches");return c==-1?Promise.resolve(!1):_.Tm("WatchCount").then(function(f){return f>=c})};
egp=function(){var c=_.kv(document,"yt-push-prompt-modal-bg");c&&_.Y6(c)};
N2c=function(){return _.rx("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Tm("PromptCount").then(function(c){c||(c=0);return Promise.resolve(c<_.rx("service_worker_push_prompt_cap"))})};
IzC=function(c){return _.wi("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.wi("LOGGED_IN")&&(c===void 0?0:c)?yi3().then(function(f){if(f)return!0;f=[N2c(),WFc()];_.wi("LOGGED_IN")||f.push(DTS());return Promise.all(f).then(function(d){return d.every(function(q){return q})})}):Promise.resolve(!1)};
PVr=function(){_.Tm("PromptCount").then(function(c){return _.Of("PromptCount",c+1)}).then(function(){return _.Of("PromptTime",Date.now())}).then(function(){var c=_.CD("service_worker_push_force_notification_prompt_tag");
if(c)return _.Tm("PromptTags").then(function(f){var d=[];if(f)try{d=JSON.parse(f)}catch(q){return!1}d||(d=[]);d.push(c);return _.Of("PromptTags",JSON.stringify(d))})})};
UTr=function(){RgF||egp()};
piD=function(c){c.style.zIndex=2147483648;c.style.pointerEvents="auto";c.style.backgroundColor="rgba(0, 0, 0, 0.6)";c.style.width="100%";c.style.height="100vh";c.style.position="absolute";c.style.top="0";c.style.left="0";c.style.border="none"};
xTJ=function(){var c=_.kv(document,"yt-push-prompt-modal-bg");RgF=_.F("service_worker_push_prompt_modal_ignore_click");c?piD(c):(c=_.Lo("div",{id:"yt-push-prompt-modal-bg"}),piD(c),document.body.appendChild(c),_.DVN(document,"click",UTr))};
onJ=function(){var c=arguments;_.F("service_worker_push_prompt_modal_enable")&&xTJ();return Notification.requestPermission().then(function(f){egp();var d=document.getElementById("ticker");d&&(d.className=d.classList.remove("show"));if(f=="granted")return vn3().then(function(){u2D(!1);wiS();return Promise.resolve(!0)});
f=="denied"&&wiS();return Promise.resolve(!1)}).catch(function(){egp();
return Promise.reject.apply(Promise,_.LT(c))})};
GcG=function(c){c=c===void 0?!1:c;var f=_.EQG().client;if(f&&f.browserVersion){var d=f.browserVersion,q=f.browserName=="CHROME"&&_.ie(d,"50.0.0")<0;f=f.browserName=="OPERA"&&_.ie(d,"42.0.0")<0;if(q||f)return Promise.resolve()}return _.lac().then(function(Z){if(!Z)return Promise.resolve();Z=vn3().then(function(){return hgc({type:"notifications_check_registration",data:_.hk("ID_TOKEN")})});
return Notification.permission!="default"?Z.catch(function(){}):Z.then(function(){return IzC(c)}).then(function(M){if(M)return PVr(),onJ().then(function(){})}).catch(function(){})})};
cQi=function(c){return _.kZq(c)?GcG():Promise.resolve()};
frG=function(c){var f=c.installing||c.waiting;return c.active||!f?Promise.resolve(c):new Promise(function(d){var q=function(Z){Z=Z.target;if(Z.state==="activated"||Z.state==="redundant")f.removeEventListener("statechange",q),d(c)};
f.addEventListener("statechange",q)})};
d93=function(){var c=new _.anN("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.s_(c,{mainAppWeb:_.PS()});var f=_.P1r;_.F("service_worker_forward_exp_params")&&(f=JiD(f));try{var d=_.$Pz(f).catch(function(){_.B5(c,"FAILURE");return new Promise(function(){})});
_.F("service_worker_push_enabled")&&d.then(function(q){_.B5(c,"SUCCESS");return q}).then(frG).then(cQi)}catch(q){if(_.B5(c,"FAILURE"),q.name!=="SecurityError")throw q;
}};
jcH=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&d93()};
qXc=function(c,f){var d={};f&&(d.serializedYpcFamilyCreateLoggingParams=f);_.JN(c,d);_.ab()};
ZZJ=function(c,f){var d={};d.serializedYpcRefundFlowLoggingParams=f;c&&(d.eventType=c);_.JN("ypcRefundFlowEvent",d);_.ab()};
MOQ=function(c){c&&_.Swk("transactionFlowSucceeded",c)};
rQF=function(c){c&&_.UZ("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",c,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
Clp=function(c){c.currentTarget._data&&_.JZz(c.currentTarget._data)};
gtq=function(c,f){if(f=_.b(f,_.Ib))(f==null?void 0:f.target)==="TARGET_NEW_WINDOW"&&(c.target="_blank"),f.nofollow&&(c.rel="nofollow")};
kir=function(c){c=_.b(c==null?void 0:c.commandMetadata,_.jO);return(c==null?0:c.url)?c.url:null};
OZq=function(c){var f,d,q,Z,M,g,O;_.k(function(l){if(l.nextAddress==1)return l.yield(_.OJl(),2);if(l.nextAddress!=3){if(!l.yieldResult)return l.return(!1);f=[];return l.yield(_.iS.keys(),3)}d=l.yieldResult;q=_.C(d);for(Z=q.next();!Z.done;Z=q.next())M=Z.value,g=_.gj4(M),O=g.datasyncId,!O||c.includes(O)||f.push(_.iS.delete(M));return l.return(Promise.all(f).then(function(m){return m.some(function(H){return H})}))})};
lrS=function(){var c,f,d,q,Z,M,g;return _.k(function(O){if(O.nextAddress==1)return O.yield(_.OJl(),2);if(O.nextAddress!=3){if(!O.yieldResult)return O.return(!1);c=_.t4("cache contains other");return O.yield(_.iS.keys(),3)}f=O.yieldResult;d=_.C(f);for(q=d.next();!q.done;q=d.next())if(Z=q.value,M=_.gj4(Z),(g=M.datasyncId)&&g!==c)return O.return(!0);return O.return(!1)})};
scq=function(){var c=_.ql().resolve(_.dx(_.Umr));return c?c.getCurrentTime():0};
BSp=function(){var c,f,d,q,Z,M,g,O,l,m,H,A,Y,t;return _.k(function(E){switch(E.nextAddress){case 1:c={},f=_.mpn(),d=_.C(Object.entries(f)),q=d.next();case 4:if(q.done){E.jumpTo(3);break}Z=q.value;M=_.C(Z);g=M.next().value;O=M.next().value;l=g;m=O;if(!m){E.jumpTo(5);break}return E.yield(m(),8);case 8:c[l]=E.yieldResult;case 5:q=d.next();E.jumpTo(4);break;case 2:H=_.C(void 0),A=H.next();case 9:if(A.done){E.jumpTo(3);break}Y=A.value;t=f[Y];if(!t){E.jumpTo(10);break}return E.yield(t(),13);case 13:c[Y]=
E.yieldResult;case 10:A=H.next();E.jumpTo(9);break;case 3:return E.return(c)}})};
iZC=function(){var c;_.k(function(f){if(f.nextAddress==1)return f.yield(BSp(),2);c=f.yieldResult;return f.yield(navigator.clipboard.writeText(JSON.stringify(c,null,2)),0)})};
TSr=function(c,f){return _.Bb(c.entities,"superThanksSelectedTierEntity",f)};
m9C=function(c,f){var d=_.nWl();_.SZ(function(){var q=c.value;if(q)return _.G_z(q,f),_.cmY(q,f,void 0,void 0,void 0,d)},[f])};
HZi=function(c){var f;return(f=c.sharedUi)==null?void 0:f.currentPageType};
AQH=function(c,f){return{popup:{searchSuggestionReportDialog:{searchQuery:c,title:_.HO("SBOX_INAPPROPRIATE_TITLE"),suggestions:f,categoryLabel:_.HO("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.HO("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.HO("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.HO("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.HO("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.HO("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.HO("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.HO("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.HO("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.HO("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
YX3=function(c){var f,d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p;return _.k(function(N){switch(N.nextAddress){case 1:return N.yield(_.md(),2);case 2:return(f=N.yieldResult)?N.yield(_.T0M(f),3):N.return();case 3:d=N.yieldResult;if(!d)return N.return();Z=((q=d.offlineVideos)==null?void 0:q.length)||0;g=((M=d.offlinePlaylists)==null?void 0:M.length)||0;if(Z===0&&g===0)return N.return();O=0;if(d.offlineVideos)for(l=_.C(d.offlineVideos),m=l.next();!m.done;m=l.next())H=m.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
H.videoState&&(O+=1);c.offline_videos_count=Z.toString();_.F("kevlar_log_offline_current_network_type_ks")||(c.offline_current_network_type=(A=_.OCG())!=null?A:"CONN_INVALID");_.F("kevlar_log_updated_time_for_smart_downloads")&&(Y=_.Gh().getState().entities,t=_.JE(Y),E=MsG(Y),c.offline_smart_downloads_last_sync_time_ms=t.toString(),c.offline_smart_downloads_next_sync_time_ms=E.toString());c.offline_videos_playable=O.toString();c.offline_playlists_count=g.toString();d.offlineVideos&&(J=d.offlineVideos.reduce(function(I,
R){R.downloadedBytes&&(I+=Number(R.downloadedBytes));return I},0).toString())&&(c.offline_used_disk_space_bytes=J);
if(!((X=navigator)==null?0:(u=X.storage)==null?0:u.estimate)){N.jumpTo(4);break}return N.yield(navigator.storage.estimate(),5);case 5:W=N.yieldResult,c.offline_free_disk_space_bytes=(((p=W)==null?void 0:p.quota)||0).toString();case 4:c.offline_client_state=JSON.stringify(d),_.Fm(N)}})};
FnD=function(c){c=_.C(c);for(var f=c.next(),d={};!f.done;d={setter$jscomp$5:void 0},f=c.next()){var q=f.value;f=q.params;q=q.service;f&&q&&(d.setter$jscomp$5=_.OqC[q],d.setter$jscomp$5&&f.forEach(function(Z){return function(M){var g=M.key;M=M.value;g&&M&&(0,Z.setter$jscomp$5)(g,M)}}(d)))}};
tOD=function(c){c=c.match(/(.*)::.*::.*/);if(c!==null)return c[1]};
bZr=function(c){if(_.tVG()){var f=Object.keys(window.sessionStorage);f=_.C(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=tOD(d);q===void 0||c.includes(q)||self.sessionStorage.removeItem(d)}}};
Kn3=function(){if(!_.tVG())return!1;var c=_.t4(),f=Object.keys(window.sessionStorage);f=_.C(f);for(var d=f.next();!d.done;d=f.next())if(d=tOD(d.value),d!==void 0&&d!==c)return!0;return!1};
LV=function(c,f,d){(_.F("desktop_keyboard_shortcut_usage_log")||d&&_.F("web_shorts_keyboard_shortcut_usage_log"))&&(f?_.T_.get(c):_.iT.get(c))&&(c=f?_.H7.get(c):_.my.get(c))&&_.Rc(_.X2(),c)};
Etq=function(c,f){return c.findIndex(function(d){return d.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(f.keyCode):!1};
ntS=function(){var c,f;return typeof CSS!=="undefined"&&((f=(c=CSS).supports)==null?void 0:f.call(c,"selector(:has(*))"))};
$9q=function(c){return c.visibility!=="hidden"&&c.display!=="none"};
SXr=function(c){if(ntS()||c.tagName!=="DETAILS"?!c.matches(QcC):c.querySelector("summary")!==null)return-1;c=c.getAttribute("tabindex")||"0";return Number(c)};
LnQ=function(c){return c.some(function(f){return SXr(f)>0})};
z5S=function(c){if(c.textContent)return!0;if(c instanceof HTMLInputElement){if(!c.labels)return!1;c=_.C(c.labels);for(var f=c.next();!f.done;f=c.next())if(f.value.textContent)return!0}return!1};
JQp=function(c){return c.sort(function(f,d){return SXr(d)-SXr(f)})};
arC=function(c){c=Array.from(c.querySelectorAll(QcC)).filter(function(f){return($9q(f.style)?$9q(window.getComputedStyle(f)):!1)&&z5S(f)});
return LnQ(c)?JQp(c):c};
VOJ=function(c){c=arC(c);c.length>0&&c[0].focus()};
XOC=function(c,f){f.stack&&(c.stack+="\n"+f.stack);return c};
h5q=function(c){var f=z_(c,"Content-Type");if(!f)return null;f=f.toLowerCase();if(f.startsWith("application/json"))return f.startsWith("application/json+protobuf")?new utS:new _.gq;if(f.startsWith("application/x-protobuf")){c=z_(c,"Content-Transfer-Encoding");if(!c)return new Jf;if(c.toLowerCase()=="base64")return new vtG}return null};
R5q=function(c,f,d,q){var Z=new wOD(function(O,l){return yQp.has(l)?O.sentinel==="gal"&&O.event!==void 0:!1},function(O){O.event?(O=Wnr(O.event),O=!O||D9r(q,O)?!0:_.bf(c.lastEvent,aL,2,VL)?!_.bf(O,XM,1,VL)&&!_.bf(O,aL,2,VL):!_.bf(O,XM,1,VL)&&!_.bf(O,aL,3,VL)):O=!0;
return O});
d=_.gk(c.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",e5G(d)]]));if(c.nestedOrigins!==void 0)for(var M=_.C(c.nestedOrigins),g=M.next();!g.done;g=M.next())d=_.gk(d,new Map([["origin",g.value]]));return NS3(Z,d,f).then(function(O){O=IrC(O.event);if(_.bf(O,XM,1,VL)){var l,m=(l=_.vg(O,XM,1,VL))==null?void 0:_.VQ(l,2);m&&q.JSC$19201_logErrorEvent(PlC(m));l=_.vg(O,XM,1,VL);_.VQ(l,2)===4?(O=_.vg(O,XM,1,VL),O={statusCode:11,statusMessage:_.aW(O,
3)}):(O=_.vg(O,XM,1,VL),O={statusCode:12,statusMessage:_.aW(O,3)});return O}_.bf(O,aL,3,VL)?(O=_.vg(O,aL,3,VL),O={statusCode:1,consentLanguageKeys:_.aW(O,2)}):O={statusCode:1};return O}).catch(function(O){return O.errorCode!==void 0?{statusCode:O.errorCode,
statusMessage:O.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
ot3=function(c){var f={};if(c===void 0||c===null)return f;c.getToken()!==void 0&&U9c(c.getToken())&&U9c(c.getToken()).length>0&&(f.scopes=new Set(U9c(c.getToken())));c.getToken()!==void 0&&pOQ(c.getToken())&&pOQ(c.getToken()).length>0&&(f.capabilities=new Set(pOQ(c.getToken())));_.aW(c,3)!==void 0&&(f.consistencyKey=_.aW(c,3));c.getName()!==void 0&&c.getName()!==""&&(f.linkName=c.getName());_.tr(c,x9q,4)&&(c=_.TD(c,x9q,4),c=Object.assign({},_.aW(c,1)&&{userId:_.aW(c,1)},_.aW(c,2)&&{displayName:_.aW(c,
2)},_.aW(c,3)&&{email:_.aW(c,3)},_.aW(c,5)&&{username:_.aW(c,5)},_.aW(c,4)&&{profilePicture:_.aW(c,4)}),f.profile=c);return f};
Gi3=function(c,f){var d=c.flowParams,q;return{serviceId:d.serviceId,sessionId:d.sessionId,currentFlow:c.currentFlow,googleScopesString:f,linkingSessionSerialized:c.session.serialize(),consentLanguageKeys:d.consentLanguageKeys,callerState:c.callerState,dynamicUrlParameters:d.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(q=d.partnerConfigMinReadTimestamp)==null?void 0:q.serialize()}};
qxi=function(c){var f=c.googleScopes!==void 0?Array.from(c.googleScopes).join(","):"";cEJ(Gi3(c,f));f=f8G(c);return f===null?Promise.resolve(d$c):f.start().then(function(d){var q,Z=(q=d.link)==null?void 0:q.consistencyKey;return d.statusCode===1&&c.googleScopes!==void 0&&c.googleScopes.size>0&&Z!==void 0?(q=c.flowParams,jnJ(q.serviceId,q.sessionId,c.googleScopes,Z,q.galService,c.config,d)):d})};
ZCr=function(c){var f=f8G(c);return f===null?Promise.resolve(uT({statusCode:7,statusMessage:"Failed to create flow object"},c.callerState)):f.complete().then(function(d){var q,Z=(q=d.link)==null?void 0:q.consistencyKey;return d.statusCode===1&&c.googleScopes!==void 0&&c.googleScopes.size>0&&Z!==void 0?(q=c.flowParams,jnJ(q.serviceId,q.sessionId,c.googleScopes,Z,q.galService,c.config,d)):uT(d,c.callerState)},function(d){return uT({statusCode:12,
statusMessage:"Failed to complete the flow: "+d.message},c.callerState)})};
jnJ=function(c,f,d,q,Z,M,g){return MUQ(Z,{serviceId:c,sessionId:f,googleScopes:d,consistencyKey:q}).then(function(){return g},function(O){return Z.deleteLink({serviceId:c,
sessionId:f,accountLinkingEntryPoint:M.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+O.message}},function(l){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+l.message}})})};
f8G=function(c){switch(c.currentFlow){case 1:var f=c.flowParams;c=_.TD(c.session,rEc,1);return v7.createOAuthFlow(f,c);case 2:case 3:return f=c.flowParams,c=_.TD(c.session,CID,6),hf.createStreamlinedFlow(f,c);default:return null}};
gCH=function(c,f){c===2&&(c=3);var d=0;wf.indexOf(c)!==-1&&(d=wf.indexOf(c)+1);for(c=d;c<wf.length;c++)if(f.has(wf[c]))return wf[c]};
l83=function(c){var f=c.serviceId;var d=c.sessionId;var q=c.config;var Z=c.galService;var M=c.capabilities;var g=c.scopes;var O=c.loginHint;var l=c.callerState;var m=c.consentLanguageKeys;var H=c.linkName;var A=c.dynamicUrlParameters;var Y=c.partnerConfigMinReadTimestamp;c=q.dataUsageNoticeConfig?q.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Z.startLinkingSession({serviceId:f,sessionId:d,capabilities:M,scopes:g,loginHint:O,callerState:l,supportedFlows:khc(q.supportedFlows),completionUrl:q.completionUrl,
accountLinkingEntryPoint:q.accountLinkingEntryPoint,consentLanguageKeys:m,dataUsageNoticeConfig:c,linkName:H,dynamicUrlParameters:A,partnerConfigMinReadTimestamp:Y}).then(function(t){return new OC3(f,d,q,Z,t,void 0,l,m,A,Y)})};
HCS=function(c,f,d){var q=(new snG).getSession(c);if(q===null)return Promise.resolve({statusCode:2});BWq(c);var Z=iCJ(q.linkingSessionSerialized),M=q.googleScopesString!==""&&q.googleScopesString!==void 0?new Set(q.googleScopesString.split(",")):void 0,g=q.partnerConfigMinReadTimestampSerialized?TWS(q.partnerConfigMinReadTimestampSerialized):void 0;return m$c(new OC3(c,q.sessionId,f,d,Z,M,q.callerState,q.consentLanguageKeys,q.dynamicUrlParameters,g),q.currentFlow,q.consentLanguageKeys)};
cEJ=function(c){var f=new snG;f.storage!==null&&f.storage.set("SAVED_SESSION",c)};
BWq=function(c){var f=new snG;if(f.storage!==null){var d=f.storage.get("SAVED_SESSION");d!==void 0&&d.serviceId===c&&f.storage.remove("SAVED_SESSION")}};
khc=function(c){var f=new Set;c=_.C(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d!==1&&AEQ.has(d)&&f.add(AEQ.get(d));return f};
uT=function(c,f){f!==void 0&&(c.callerState=f);return c};
YxJ=function(c){switch(c){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
bCQ=function(c){return new FdD(c,new tUi(c))};
nCr=function(c,f){f=f===void 0?!1:f;var d=document.createElement("div");c&&(d.style.transform="scaleX(-1)");d.style.backgroundColor=f?"rgba(138,180,248,.24)":"#e8f0fe";d.style.height="4px";d.style.overflow="hidden";d.style.position="absolute";d.style.top="0";d.style.width="100%";d.style.zIndex="1500";d.setAttribute("aria-label","Loading");d.setAttribute("aria-live","polite");c=document.createElement("style");c.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  }";
d.appendChild(c);c=KdS();c.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";c.style.left="-145.166611%";var q=ECC(f);q.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";c.appendChild(q);d.appendChild(c);c=KdS();c.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";c.style.left="-54.888891%";f=ECC(f);f.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
c.appendChild(f);d.appendChild(c);return d};
KdS=function(){var c=document.createElement("div");c.style.height="100%";c.style.position="absolute";c.style.transformOrigin="top left";c.style.width="100%";return c};
ECC=function(c){var f=document.createElement("span");f.style.borderTop=c?"4px solid #669df6":"4px solid #4285f4";f.style.display="inline-block";f.style.position="absolute";f.style.width="100%";return f};
$$S=function(c){return c==null?void 0:_.cvy(c).valueOf()};
z4r=function(c){var f=document.body,d=!1,q=function(){d||(d=!0,Qni(Z,M),setTimeout(function(){f.removeChild(M);f.removeChild(Z)},150))},Z=SxQ(c,getComputedStyle(f).direction==="rtl",q),M=LdC(q);
Qni(Z,M);f.appendChild(M);f.appendChild(Z);window.requestAnimationFrame(function(){M.style.opacity="1";Z.style.opacity="1";Z.style.transform="translate(-50%, -50%) scale(1)";Z.children[0].focus()})};
SxQ=function(c,f,d){var q=document.createElement("div");q.style.position="fixed";q.style.alignItems="center";q.style.backgroundColor=c?"rgb(32, 33, 36)":"white";q.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";q.style.display="flex";q.style.flexDirection="column";q.style.justifyContent="center";q.style.left="50%";q.style.top="50%";q.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";q.style.zIndex="2002";document.body.clientWidth>=
660?(q.style.borderRadius="8px",q.style.minHeight="220px",q.style.maxHeight="90%",q.style.maxWidth="90%",q.style.minWidth="540px"):(q.style.height="100%",q.style.width="100%");q.setAttribute("aria-label","Error");q.setAttribute("aria-modal","true");q.setAttribute("role","alertdialog");q.addEventListener("keydown",function(M){M.key==="Escape"&&d()});
f=JEC(c,f,d);q.appendChild(a8S(f));q.appendChild(f);var Z=document.createElement("img");Z.src=c?"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";Z.style.height="72px";Z.style.width="72px";Z.style.color="#9aa0a6";Z.setAttribute("alt","");q.appendChild(Z);Z=document.createElement("h1");Z.textContent="Something went wrong.  Try again.";
Z.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Z.style.lineHeight="24px";Z.style.fontSize="16px";Z.style.textAlign="center";Z.style.letterSpacing="0.1px";Z.style.color=c?"rgb(232,234,237)":"#3c4043";q.appendChild(Z);q.appendChild(a8S(f));return q};
JEC=function(c,f,d){var q=document.createElement("button");q.style.backgroundColor="transparent";q.style.border="none";q.style.borderRadius="50%";q.style.cursor="pointer";q.style.outline="none";q.style.padding="12px";q.setAttribute("aria-label","Close dialog");q.style.position="absolute";q.style.top="0";f?q.style.right="0":q.style.left="0";q.addEventListener("focus",function(){q.style.backgroundColor=c?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
q.addEventListener("blur",function(){q.style.backgroundColor="transparent"});
q.addEventListener("mouseenter",function(){q.style.backgroundColor=c?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
q.addEventListener("mouseleave",function(){q.style.backgroundColor="transparent"});
q.addEventListener("click",d);q.addEventListener("keydown",function(Z){Z.key!=="Enter"&&Z.key!=="Space"||d()});
f=document.createElement("img");f.src=c?"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";f.style.display="block";f.style.height="24px";f.style.width="24px";f.setAttribute("alt","");q.appendChild(f);return q};
a8S=function(c){var f=document.createElement("div");f.setAttribute("tabindex","0");f.setAttribute("aria-hidden","true");f.addEventListener("focus",function(){return void c.focus()});
return f};
LdC=function(c){var f=document.createElement("div");f.style.backgroundColor="rgba(32,33,36,0.6)";f.style.bottom="0";f.style.left="0";f.style.position="fixed";f.style.right="0";f.style.top="0";f.style.transition=" opacity 150 ms linear";f.style.zIndex="2001";f.addEventListener("click",c);return f};
Qni=function(c,f){f.style.opacity="0";c.style.opacity="0";c.style.transform="translate(-50%, -50%) scale(0.8)"};
VUc=function(c,f){c.sandbox&&c.sandbox.add&&(c.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),c.sandbox.add("allow-downloads"));c.src=f};
yL=function(c){Xbi.call(this,c)};
W7=function(c,f){f=f===void 0?!1:f;this.parsedImageUrl_=null;c instanceof u53||(vCc==void 0&&(vCc=new h4q),c=vCc.parse(c.toString(),f));c=this.parsedImageUrl_=c;c.JSC$19413_parsedOptions_==void 0&&((f=c.getOptions())||(f=""),c.JSC$19413_parsedOptions_=(new wbc).parse(f));Xbi.call(this,c.JSC$19413_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;c=this.parsedImageUrl_;f=c.uri_.JSC$9976_port_;this.JSC$19415_domain_=c.uri_.JSC$9976_domain_+(f?":"+f:"");this.JSC$19415_query_=
this.parsedImageUrl_.uri_.JSC$9976_queryData_.toString()};
yES=function(c){this.mode=4;this.data=c;this.parsedData=[];c=0;for(var f=this.data.length;c<f;c++){var d=[],q=this.data.charCodeAt(c);q>65536?(d[0]=240|(q&1835008)>>>18,d[1]=128|(q&258048)>>>12,d[2]=128|(q&4032)>>>6,d[3]=128|q&63):q>2048?(d[0]=224|(q&61440)>>>12,d[1]=128|(q&4032)>>>6,d[2]=128|q&63):q>128?(d[0]=192|(q&1984)>>>6,d[1]=128|q&63):d[0]=q;this.parsedData.push(d)}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))};
WdH=function(c){this.typeNumber=0;this.errorCorrectLevel=c===void 0?2:c;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
D6=function(c,f){if(c.length==void 0)throw Error("tk`"+c.length+"`"+f);for(var d=0;d<c.length&&c[d]==0;)d++;this.num=Array(c.length-d+f);for(f=0;f<c.length-d;f++)this.num[f]=c[f+d]};
D$J=function(c,f){this.totalCount=c;this.dataCount=f};
e4r=function(){this.buffer=[];this.length=0};
NWi=function(){var c=!1;if(_.irM()){c=_.TY();var f="";_.Hrn()?(f=/Windows (?:NT|Phone) ([0-9.]+)/,f=(c=f.exec(c))?c[1]:"0.0"):_.Lr()?(f=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,f=(c=f.exec(c))&&c[1].replace(/_/g,".")):_.mNz()?(f=/Mac OS X ([0-9_.]+)/,f=(c=f.exec(c))?c[1].replace(/_/g,"."):"10"):_.le(_.TY(),"KaiOS")?(f=/(?:KaiOS)\/(\S+)/i,f=(c=f.exec(c))&&c[1]):_.irM()?(f=/Android\s+([^\);]+)(\)|;)/,f=(c=f.exec(c))&&c[1]):_.APl()&&(f=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,f=(c=f.exec(c))&&c[1]);c=
f||""}return c};
x$D=function(c,f){this.JSC$19438__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(f)for(var d in f)this.JSC$19438__htOption[d]=f[d];this.JSC$19438__htOption.useSVG&&(I8q=PIG);this.JSC$19438__android=NWi();this.JSC$19438__el=c;this._oQRCode=null;this._oDrawing=new I8q(this.JSC$19438__el,this.JSC$19438__htOption);this.JSC$19438__htOption.text&&(c=this.JSC$19438__htOption.text,this._oQRCode=new WdH(this.JSC$19438__htOption.correctLevel),R4Q(this._oQRCode,
c),f=this._oQRCode,U$F(f,!1,pb3(f)),this.JSC$19438__el.title=c,this._oDrawing.draw(this._oQRCode),this.makeImage())};
oCS=function(c,f,d,q,Z){c.save();var M=new Path2D;M.roundRect(f,d,q*7,q*7,q*2);M.roundRect(f+q,d+q,q*5,q*5,q*1.3);M.roundRect(f+2*q,d+2*q,q*3,q*3,q);c.clip(M,"evenodd");c.fillStyle=Z;c.fillRect(0,0,c.canvas.width,c.canvas.height);c.restore()};
eL=function(c,f){if(typeof c!=="function")throw Error("wk");return _.dz.setTimeout(function(){c()},f)};
NZ=function(){};
chH=function(c,f,d,q,Z){(new NZ).debug("TestLoadImageWithRetries: "+Z);if(q==0)d(!1);else{var M=Z||0;q--;GhQ(c,f,function(g){g?d(!0):_.dz.setTimeout(function(){chH(c,f,d,q,M)},M)})}};
GhQ=function(c,f,d){var q=new NZ;q.debug("TestLoadImage: loading "+c);var Z=new Image;Z.onload=function(){try{q.debug("TestLoadImage: loaded"),fmC(Z),d(!0)}catch(M){}};
Z.onerror=function(){try{q.debug("TestLoadImage: error"),fmC(Z),d(!1)}catch(M){}};
Z.onabort=function(){try{q.debug("TestLoadImage: abort"),fmC(Z),d(!1)}catch(M){}};
Z.ontimeout=function(){try{q.debug("TestLoadImage: timeout"),fmC(Z),d(!1)}catch(M){}};
_.dz.setTimeout(function(){if(Z.ontimeout)Z.ontimeout()},f);
Z.src=c};
fmC=function(c){c.onload=null;c.onerror=null;c.onabort=null;c.ontimeout=null};
dLH=function(){this.front_=[];this.back_=[]};
jVp=function(c,f){_.ES.call(this);this.delay_=new _.$6(this.JSC$19564_onTick_,0,this);_.ln(this,this.delay_);this.JSC$19562_interval_=5E3;this.nextTickTime_=0;if(typeof c==="function")f&&(c=(0,_.n1)(c,f));else if(c&&typeof c.handleEvent==="function")c=(0,_.n1)(c.handleEvent,c);else throw Error("ya");this.JSC$19564_listener_=c};
IL=function(c,f,d,q,Z,M,g,O,l,m,H,A,Y,t){d=d===void 0?!1:d;q=q===void 0?function(){return""}:q;
Z=Z===void 0?!1:Z;M=M===void 0?!1:M;g=g===void 0?!1:g;O=O===void 0?function(){return _.sX({})}:O;
l=l===void 0?!1:l;H=H===void 0?!1:H;A=A===void 0?!1:A;Y=Y===void 0?!1:Y;t=t===void 0?!1:t;this.JSC$19565_pathPrefix_=c;this.defaultQueryParams_=f;this.pubsub_=new _.mu;this.reconnectTimer_=new jVp(this.safeReconnect_,this);this.JSC$19565_channel_=null;this.JSC$19565_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19565_pendingMessages_=[];this.enableAsyncTest_=d;this.JSC$19565_getXsrfToken_=q;this.useAsyncBrowserChannelHandler_=M;this.getAuthorizationHeader_=
O;this.getAuthorizationHeaderSync_=m;this.enableCachedUpdateAuthorizationHeader_=g;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.sX();this.enableLoungeTokenRefresh_=Z;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=l;this.disableMdxAuthForNonPlaybackMessages_=H;this.disableMdxAuthForAdMessages_=A;this.enableMdxAuthForConnectionOnly_=Y;this.disableMdxAuthForShortsMessages_=t;this.JSC$19565_channelOpenedCounter=new qOQ;this.JSC$19565_channelClosedCounter=new ZXi;this.channelMessageSentCounter=
new Mvc;this.JSC$19565_channelMessageReceivedCounter=new rh3;this.JSC$19565_channelErrorCounter=new CoH;this.pendingMapsOnClosedCounter=new g0i;this.undeliveredMapsOnClosedCounter=new kXD};
P7=function(c){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;c=c||document.location.href;var f=Number(_.x5(c)[4]||null)||"";f&&(this.port=":"+f);this.domain=_.ow(c)||"";c=_.TY();c.search("MSIE")>=0&&_.ie(c.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
RL=function(c){c=c||{};this.name=c.name||"";this.id=c.id||c.screenId||"";this.token=c.token||c.loungeToken||"";this.uuid=c.uuid||c.dialId||"";this.idType=c.screenIdType||"normal"};
OXS=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var f=Math.random()*16|0;return(c=="x"?f:f&3|8).toString(16)})};
lmF=function(c){return _.JT(c,function(f){return{key:f.id,name:f.name}})};
sVD=function(c,f){return _.ak(c,function(d){return d||f?!d!=!f?!1:d.id==f.id:!0})};
pV=function(c,f){return _.ak(c,function(d){return Uf(d,f)})};
HXS=function(){var c=BDq(),f=iXc();if(TDp()){var d=c,q=_.QkY(d,f);q<0&&_.ElP(d,-(q+1),0,f)}c=mLS(c);if(c.length==0)try{_.rEh("remote_sid")}catch(Z){}else try{_.YK("remote_sid",c.join(","),-1)}catch(Z){}};
BDq=function(){var c=_.T7("yt-remote-connected-devices")||[];c.sort(_.$Nn);return c};
mLS=function(c){if(c.length==0)return[];var f=c[0].indexOf("#"),d=f==-1?c[0]:c[0].substring(0,f);return _.JT(c,function(q,Z){return Z==0?q:q.substring(d.length)})};
Ahq=function(c){_.iK("yt-remote-connected-devices",c,86400)};
iXc=function(){if(YOC)return YOC;var c=_.T7("yt-remote-device-id");c||(c=OXS(),_.iK("yt-remote-device-id",c,31536E3));for(var f=BDq(),d=1,q=c;_.hP(f,q);)d++,q=c+"#"+d;return YOC=q};
Fq3=function(){return _.T7("yt-remote-session-browser-channel")};
TDp=function(){return _.T7("yt-remote-session-screen-id")};
KqJ=function(c){c.length>5&&(c=c.slice(c.length-5));var f=_.JT(tvH(),function(q){return q.loungeToken}),d=_.JT(c,function(q){return q.loungeToken});
_.qwr(d,function(q){return!_.hP(f,q)})&&bX3();
_.iK("yt-remote-local-screens",c,31536E3)};
tvH=function(){return _.T7("yt-remote-local-screens")||[]};
bX3=function(){_.iK("yt-remote-lounge-token-expiration",!0,86400)};
x7=function(c){c||(_.m1("yt-remote-session-screen-id"),_.m1("yt-remote-session-video-id"));HXS();c=BDq();_.wz(c,iXc());Ahq(c)};
n0C=function(){E0i();return oL?!!oL.get("yt-remote-use-staging-server"):!1};
E0i=function(){if(!oL){var c=_.TWl();c&&(oL=new _.Ez(c))}};
LqG=function(c,f,d,q,Z){d=d===void 0?function(){return""}:d;
var M=function(){return new IL(G_(c,"/bc"),f,!1,d,q)};
return _.F("enable_mdx_web_channel_desktop")?new $LG(function(){return new QVi(G_(c,"/wc"),f,d)}):new SOS(M,Z)};
Vv3=function(){var c=zNC;JhJ();c3.push(c);amJ()};
f6=function(c,f){JhJ();var d=XSi(c,String(f));c3.length==0?uw3(d):(amJ(),_.Iw(c3,function(q){q(d)}))};
dX=function(c){f6("CP",c)};
JhJ=function(){c3||(c3=_.D5("yt.mdx.remote.debug.handlers_")||[],_.fu("yt.mdx.remote.debug.handlers_",c3))};
uw3=function(c){var f=(jp+1)%50;jp=f;v0p[f]=c;hN3||(hN3=f==49)};
amJ=function(){var c=c3;if(v0p[0]){var f=hN3?jp:-1,d={};do d={record$jscomp$15:void 0},f=(f+1)%50,d.record$jscomp$15=v0p[f],_.Iw(c,function(q){return function(Z){Z(q.record$jscomp$15)}}(d));
while(f!=jp);v0p=Array(50);jp=-1;hN3=!1}};
XSi=function(c,f){var d=(Date.now()-wSF)/1E3;d.toFixed&&(d=d.toFixed(3));var q=[];q.push("[",d+"s","] ");q.push("[","yt.mdx.remote","] ");q.push(c+": "+f,"\n");return q.join("")};
q3=function(c){_.B7.call(this);this.JSC$19589_logName_=c;this.screens=[]};
M3=function(c){q3.call(this,"LocalScreenService");this.JSC$19596_http_=c;this.loungeTokenRefreshTimer_=NaN;ZS(this);this.info("Initializing with "+yhH(this.screens))};
rX=function(c,f){f=f===void 0?!1:f;q3.call(this,"ScreenService");this.JSC$19602_http_=c;this.disableAutomaticScreenCache_=f;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};WqC(this)};
C6=function(c,f,d){_.B7.call(this);this.JSC$19606_logName_=d;this.JSC$19606_screenService_=c;this.receiver_=f;this.screen_=null};
qkJ=function(c,f,d){d.disableCastApi?gX("Cannot initialize because disabled by Mdx config."):DLC()?eN3(c,d)&&(NDc(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ImQ(f):(window.__onGCastApiAvailable=function(q,Z){q?ImQ(f):(kg("Failed to load cast API: "+Z),Poi(!1),NDc(!1),_.m1("yt-remote-cast-available"),_.m1("yt-remote-cast-receiver"),RNC(),f(!1))},d.loadCastApiSetupScript?_.Dz(ULS):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
pSc()>=60&&xL3():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?o0H():pSc()>=89?GXF():(cYQ(),f_C(dhD.map(jap))))):gX("Cannot initialize because not running Chrome")};
RNC=function(){gX("dispose");var c=Op();c&&c.dispose();_.fu("yt.mdx.remote.cloudview.instance_",null);Z$H(!1);_.RDn(MBr);MBr.length=0};
rYJ=function(){return!!_.T7("yt-remote-cast-installed")};
CaF=function(){var c=_.T7("yt-remote-cast-receiver");return c?c.friendlyName:null};
gEr=function(){gX("clearCurrentReceiver");_.m1("yt-remote-cast-receiver")};
kaH=function(){return rYJ()?Op()?Op().getCastSession():(kg("getCastSelector: Cast is not initialized."),null):(kg("getCastSelector: Cast API is not installed!"),null)};
l_D=function(c,f){O$Q()?Op().setConnectedScreenStatus(c,f):kg("setConnectedScreenStatus called before ready.")};
DLC=function(){var c=_.TY().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.m8||c};
eN3=function(c,f){var d=!1;Op()||(c=new lR(c,f),c.subscribe("yt-remote-cast2-availability-change",function(q){_.iK("yt-remote-cast-available",q);Y7("yt-remote-cast2-availability-change",q)}),c.subscribe("yt-remote-cast2-receiver-selected",function(q){gX("onReceiverSelected: "+q.friendlyName);
_.iK("yt-remote-cast-receiver",q);Y7("yt-remote-cast2-receiver-selected",q)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(q){gX("onReceiverResumed: "+q.friendlyName);
_.iK("yt-remote-cast-receiver",q);Y7("yt-remote-cast2-receiver-resumed",q)}),c.subscribe("yt-remote-cast2-session-change",function(q){gX("onSessionChange: "+saH(q));
q||_.m1("yt-remote-cast-receiver");Y7("yt-remote-cast2-session-change",q)}),_.fu("yt.mdx.remote.cloudview.instance_",c),d=!0);
gX("cloudview.createSingleton_: "+d);return d};
Op=function(){return _.D5("yt.mdx.remote.cloudview.instance_")};
ImQ=function(c){Poi(!0);NDc(!1);Op().init(!1,function(f){f?(Z$H(!0),_.UVk("yt-remote-cast2-api-ready")):(kg("Failed to initialize cast API."),Poi(!1),_.m1("yt-remote-cast-available"),_.m1("yt-remote-cast-receiver"),RNC());c(f)})};
gX=function(c){f6("cloudview",c)};
kg=function(c){f6("cloudview",c)};
Poi=function(c){gX("setCastInstalled_ "+c);_.iK("yt-remote-cast-installed",c)};
O$Q=function(){return!!_.D5("yt.mdx.remote.cloudview.apiReady_")};
Z$H=function(c){gX("setApiReady_ "+c);_.fu("yt.mdx.remote.cloudview.apiReady_",c)};
NDc=function(c){_.fu("yt.mdx.remote.cloudview.initializing_",c)};
sp=function(c){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(c)};
B1S=function(){var c,f;return _.k(function(d){if(d.nextAddress==1)return(_.zDN()||_.F("use_new_nwl"))&&_.$VG().isNetworkAvailable()?d.yield(_.dR(),2):d.return();if(d.nextAddress!=3)return(c=d.yieldResult)?d.yield(NuG(c),3):d.return();f=d.yieldResult;if(!f.length)return d.return();f.forEach(function(q){var Z={timestamp:q.timestamp};q=q.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:q.appShellAssetLoadReport,options:Z}:q.clientError?{payloadName:"clientError",payload:q.clientError,
options:Z}:void 0;q&&_.JN(q.payloadName,q.payload,q.options)});
f.length===100&&_.a7.addLowPriorityJob(B1S);_.Fm(d)})};
i$c=function(c){if(c.playerResponse){if(c=c.playerResponse,c.messages&&c.messages.length>0&&(c=c.messages.find(function(f){return!(!f||!f.mealbarPromoRenderer)}))&&c.mealbarPromoRenderer)return c.mealbarPromoRenderer}else if(c.response&&(c=c.response)&&c.overlay&&c.overlay.mealbarPromoRenderer)return c.overlay.mealbarPromoRenderer};
T1D=function(c){if(c.response){var f=c.response;if(f&&f.overlay&&f.overlay.tooltipRenderer)return f.overlay.tooltipRenderer}if(c.playerResponse&&(c=c.playerResponse,c.messages&&c.messages.length>0&&(c=c.messages.find(function(d){return!(!d||!d.tooltipRenderer)}))&&c.tooltipRenderer))return c.tooltipRenderer};
H$i=function(c){if(!mhr&&(c=c||_.hk("ZWIEBACK_PING_URLS"))&&c.length){mhr=!0;for(var f=0;f<c.length;f++)_.e6(c[f])}};
Ykc=function(c){if(_.zV.get(_.hk("PLAYER_VARS",{}),"privembed",!1)!="1"){c&&XWq();try{AYC().then(function(){},function(){}),_.Oz(Ykc,18E5)}catch(f){_.yJ(f)}}};
F5H=function(){var c=_.Ft(),f=c.getFlag(119),d=window.devicePixelRatio>1;document.body&&_.NU(document.body,"exp-invert-logo")&&(d&&!_.NU(document.body,"inverted-hdpi")?_.q5(document.body,"inverted-hdpi"):!d&&_.NU(document.body,"inverted-hdpi")&&_.d_(document.body,"inverted-hdpi"));f!=d&&(_.tQ(0,119,d),c.save())};
tBJ=function(c){return c.filter(function(f){return"ypcGetCartEndpoint"in f||"ypcFixInstrumentEndpoint"in f})};
b$G=function(c){return c.filter(function(f){return!_.b(f,_.wxH)})};
EED=function(c,f){var d,q,Z,M,g,O,l;_.k(function(m){switch(m.nextAddress){case 1:d=_.aV.getInstance();q=_.Hh.instance;Z=_.xZ.instance;if(!Z)return K5F(c,q,f),m.return();_.iY(m,2);c.onLoadingCommand&&q.resolveCommand(c.onLoadingCommand);return m.yield(d.getCurrentPositionFromGeolocation(),4);case 4:M=m.yieldResult;if(!c.resolveLocationCommand){m.jumpTo(5);break}g=d.createLocationInfo(M);return m.yield(_.G3(Z,c.resolveLocationCommand,{locationInfo:g}),6);case 6:O=m.yieldResult;if(!O||"error"in O&&O.error||
O.errorMetadata)return K5F(c,q,f),m.return();var H;if(O==null?0:(H=O.onResponseReceivedActions)==null?0:H.length){H=_.C(O.onResponseReceivedActions);for(var A=H.next();!A.done;A=H.next())q.resolveCommand(A.value)}(_.b(c.onSuccessCommand,_.pe)||_.b(c.onSuccessCommand,_.Fw))&&_.CZ(f.hostElement,"yt-navigate",{endpoint:c.onSuccessCommand,reload:!0});case 5:_.Pq(m,0);break;case 2:l=_.Yw(m);if(l instanceof GeolocationPositionError&&l.code===GeolocationPositionError.PERMISSION_DENIED)return c.onDeniedCommand&&
q.resolveCommand(c.onDeniedCommand),m.return();K5F(c,q,f);_.Fm(m)}})};
K5F=function(c,f,d){c.onFailureCommand&&(f.resolveCommand(c.onFailureCommand),_.gS(d.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
$hi=function(c,f){var d=_.b(c,_.IH3);if(d&&f){c=d.videoIds||[d.videoId];var q;f=(q=_.CZ(f,"yt-lockup-requested",{videoIds:c}).detail)==null?void 0:q.returnValue;var Z;d.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Z=f?f:c.map(function(M){return{videoId:M,navigationEndpoint:d.videoCommand}}):f&&(Z=f);
Z&&(q=Z.map(function(M){var g=Object,O=g.assign;var l=M.navigationEndpoint;if(!_.b(l,_.EO)){var m=_.b(l,_.pe);if(m){if(delete m.index,delete m.playlistId,m=_.b(l==null?void 0:l.commandMetadata,_.jO),m==null?0:m.url){var H=m.url;H=_.fZ(H,"list");H=_.fZ(H,"index");m.url=H}}else l=void 0}return O.call(g,{},M,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:l})}),nEr(q,d))}};
QaC=function(c){var f=_.P_();if(c=_.b(c,_.PpO))c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&f.clearQueue(),c.closeMiniplayer&&_.ql().resolve(_.yN).close(!0)};
L5c=function(c){Sk3(_.P_(),c)};
zB3=function(c){var f;(c=(f=_.b(c,_.eqO))==null?void 0:f.setVideoIds)&&c.forEach(function(d){_.pXo(_.P_(),d)})};
a_q=function(c){JYC(_.P_(),c)};
VBq=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(c){return!1}};
XjC=function(c){var f=["h","m","s"],d=_.yn(f);d.reverse();var q={};c=(c.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(g){var O=(g.match(/[hms]/)||[""])[0];return O?(q[O]=parseInt(g.match(/\d+/)[0],10),!1):!0});
for(c.reverse();c.length&&d.length;){var Z=d.shift();Z in q||(q[Z]=parseInt(c.shift(),10))}if(c.length||q.s>59||q.m>59||q.h>9)return null;var M="";f.forEach(function(g){q[g]&&(M+=""+q[g]+g)});
return M||null};
ujC=function(c){c=c.data;return _.B("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.B("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.B(_.jC,{data:{thumbnails:[{url:c.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.B("div",{class:"profile-badge-view-model-wiz__content"},_.B("div",{class:"profile-badge-view-model-wiz__badge-description"},c.badgeDesc),c.badgeSubtitle?_.B("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},c.badgeSubtitle):
null))};
vEi=function(c){c=c.data;var f=_.xz("yt-comment-interaction-view-model");m9C(f,c.rendererContext);return _.B("yt-comment-interaction-view-model",{el:f,class:"yt-comment-interaction-view-model-wiz"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":c.onTapA11yLabel,"on:keydown":_.UZk(),tabindex:0},_.B("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},c.headerPrefix,' "',c.videoTitle),
_.B("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.B("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},c.commentContent),_.B("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.B(_.jC,{data:{thumbnails:[{url:c.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))};
wj3=function(c){c=c.data;return _.B("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},hBc(c.avatar),_.B("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},c.channelName))};
yYp=function(c,f){var d=function(q){q.preventDefault()};
_.SZ(function(){var q=c.value;if(q)return(q._data=f)?(q.addEventListener("touchstart",_.zs4,{passive:!0}),q.addEventListener("click",Clp),f.clickTrackingParams&&(q.params={itct:f.clickTrackingParams}),gtq(q,f),_.yM(q,kir(f)||"")):q.addEventListener("click",d),function(){f?(q.removeEventListener("touchstart",_.zs4,{passive:!0}),q.removeEventListener("click",Clp)):q.removeEventListener("click",d)}},[f,
void 0])};
W5p=function(c){c=c.data;var f;return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},_.B("div",{class:"yt-profile-info-view-model-wiz__header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title"},c.commentsInteractionTitle)),(f=c.comments)==null?void 0:f.map(function(d){return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},B3(d))}))};
DhC=function(c){c=c.data;var f=_.NV({elementsCommand:c.subscriptionsAccessButtonCommand}),d=_.xz("a");yYp(d,_.D9(c.subscriptionsAccessButtonCommand));var q;return _.B("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.B("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.B("a",{el:d,"on:click":_.Ks(function(Z){if(f==null?0:f.onclick)f.onclick(Z);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},c.sharedSubscriptionsTitle),_.B("div",null,B3(c.subscriptionsAccessButton)))),_.B("div",{class:"yt-profile-info-view-model-wiz__subs"},(q=c.sharedSubscriptions)==null?void 0:q.slice(0,5).map(function(Z){return _.B("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",B3(Z))})))};
eB3=function(c){c=c.data;var f;return _.B("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.B("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.B("h2",{class:"yt-profile-info-view-model-wiz__section-title"},c.sharedSubscriptionsTitle)),_.B("div",{class:"yt-profile-info-view-model-wiz__subs"},(f=c.sharedSubscriptions)==null?void 0:f.slice(0,5).map(function(d){return _.B("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",B3(d))})))};
N1C=function(c){c=c.data;return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},[c.profileBadgeInfoYtWide,c.profileBadgeInfoChannelWide].map(function(f){var d,q,Z,M,g;return f?_.B(_.qD,null,_.B("div",{class:"yt-profile-info-view-model-wiz__header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title"},f==null?void 0:f.profileSectionTitle),_.B("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},f==
null?void 0:(d=f.commentBadge)==null?void 0:d.commentDesc),(f==null?0:(q=f.commentBadge)==null?0:q.blackHeartDesc)?_.B("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.B("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.B(_.jC,{data:{thumbnails:[{url:f==null?void 0:(Z=f.commentBadge)==null?void 0:Z.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.B("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},
f==null?void 0:(M=f.commentBadge)==null?void 0:M.blackHeartDesc))),_.B("div",{class:"yt-profile-info-view-model-wiz__badge"},f==null?void 0:(g=f.badges)==null?void 0:g.map(function(O){return _.B(ujC,{data:O})}))):null}))};
I_r=function(c){c=c.data;return _.B("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.B(N1C,{data:c}),c.videosHorizontalShelf?_.B("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},B3(c.videosHorizontalShelf)):null,c.comments?_.B(W5p,{data:c}):null,c.sharedSubscriptionsTitle?c.subscriptionsAccessButtonCommand?_.B(DhC,{data:c}):_.B(eB3,{data:c}):null)};
RBC=function(c){c=c.data;if(c){var f=c.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";f=PaC(c.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:f,isChannelInfoCard:f}})}else f=void 0;c=c?PaC(c.profileInfo):void 0;return _.B("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},f,c)};
Uhq=function(c,f){var d=_.T4_(f,{},c,!0);return new Promise(function(q,Z){d.listenOnce("n",function(){Z(Error("hl`"+d.JSC$29243_getErrorDescription()))});
d.listenOnce("l",function(){var M=d.getResponseCode();if(M!==200)Z(Error("il`"+f+"`"+c.type+"`"+c.size+"`"+M));else try{q(JSON.parse(d.getResponseText()).encryptedBlobId)}catch(g){Z(g)}});
d.run()})};
pjD=function(c){return c.substring(c.indexOf(":")+1,c.indexOf(";"))};
xhC=function(c){return new Promise(function(f,d){var q=new FileReader;q.onloadend=function(){try{var Z=new Uint8Array(q.result);Z.length<8&&d(void 0);var M=Z.subarray(0,8);Z="";for(var g=0;g<M.length;g++)Z+=("0"+M[g].toString(16)).substr(-2);Z.startsWith("ffd8ff")?f("image/jpeg"):Z.startsWith("47494638")?f("image/gif"):Z.startsWith("89504e470d0a1a0a")?f("image/png"):Z.startsWith("424d")?f("image/bmp"):f(void 0)}catch(O){d(O)}};
q.onerror=d;q.readAsArrayBuffer(c)})};
oEH=function(c){return new Promise(function(f,d){var q=new Image;q.crossOrigin="anonymous";q.onload=function(){var Z=document.createElement("canvas");Z.width=q.naturalWidth;Z.height=q.naturalHeight;var M=Z.getContext("2d");if(!M)throw Error("jl");M.drawImage(q,0,0);M=pjD(c);Z.toBlob(function(g){g?f(g):d()},M)};
q.src=c})};
ceC=function(c,f){var d;if(((d=_.b(c,_.EO))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var q;_.CZ((q=f.hostElement)!=null?q:f,"yt-shorts-reset");_.cUv(_.ql().resolve(_.bK),c).then(function(M){GaF(M,f,c)})}else{var Z;
_.OX((Z=f.hostElement)!=null?Z:f,[c]).then(function(M){M&&GaF(M.data,f,c)})}};
GaF=function(c,f,d){if(c){var q=_.b(c.replacementEndpoint,_.EO);if(q){c.sequenceContinuation&&(q.sequenceParams=c.sequenceContinuation);var Z;_.CZ((Z=f.hostElement)!=null?Z:f,"yt-navigate",{endpoint:c.replacementEndpoint})}else if((c==null?void 0:c.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(c==null?0:c.watchStatus)&&_.b(c.watchStatus,_.$__)){var M;_.CZ((M=f.hostElement)!=null?M:f,"yt-navigate",{endpoint:d})}}};
f9H=function(c){var f=_.ql().resolve(_.WL),d=HZi(f.getState())||"";f=_.Vpk(f.getState())||"";d=d==="ytd-browse"&&f==="home";return _.F("web_guide_entry_enable_cache_for_non_home_pages")?(c=(c==null?void 0:c.navigationEndpoint)&&_.Y0(c.navigationEndpoint)==="home",{disableCache:d&&c}):{disableCache:d}};
dVc=function(c){if(!c)return!1;try{if(c.host&&c.host.tagName==="YT-FORMATTED-STRING"&&c.host.id==="contenteditable-textarea"||c.nodeType===Node.ELEMENT_NODE&&c.tagName==="YTD-COMMENT-INPUT")return!0}catch(f){return!1}return dVc(c.parentNode)};
iR=function(c){return c?c.tagName==="A"&&c.href&&c.classList.contains("yt-simple-endpoint"):!1};
jfr=function(c){return c?c.tagName==="IMG"&&c.classList.contains("emoji"):!1};
qDc=function(c,f,d){if(!c)return null;var q=iR(c);if(q&&d)return f=c.pathname.substring(c.pathname.indexOf("/channel/")+9),document.createTextNode("@"+f);if(q&&!d)return document.createTextNode("");if(jfr(c))return d=c.alt,c=c.dataset.emojiId,!c&&f&&(f=_.T6(f,d))&&f.isCustomEmoji&&(c=f.emojiId),c?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+c+">"):document.createTextNode(d);q=c.cloneNode(!1);for(var Z=0;Z<c.childNodes.length;++Z){var M=qDc(c.childNodes[Z],f,d);M&&q.appendChild(M)}return q};
TB=function(c){return c?iR(c)?c:TB(c.lastChild):null};
Zxq=function(c){return c?iR(c)?c:Zxq(c.firstChild):null};
Mq3=function(c){if(!c)return null;for(var f=c.previousSibling;f;)if(f.nodeType===Node.ELEMENT_NODE&&f.nodeName==="BR")f=f.previousSibling;else if(f.nodeType===Node.TEXT_NODE&&/\s+/.test(f.textContent))f=f.previousSibling;else break;(f=TB(f))?c=f:c=(c=c.parentNode)?TB(c.previousElementSibling):null;return c};
rec=function(c){if(!c)return null;for(var f=c.nextSibling;f;)if(f.nodeType===Node.ELEMENT_NODE&&f.nodeName==="BR")f=f.nextSibling;else if(f.nodeType===Node.TEXT_NODE&&/\s+/.test(f.textContent))f=f.nextSibling;else break;return(f=Zxq(f))?f:rec(c.parentNode)};
CPr=function(c){var f=_.HZ(),d=f.JSC$11236_getStartNode();if(!dVc(d.parentNode))return null;f=f.JSC$11236_getStartOffset();if(d.nodeType===Node.TEXT_NODE){var q=_.vv(d,iR);if(q){if(c&&f===0||!c&&f===d.length)return q}else{if(c&&f===d.length)return!d||d.nodeName==="BR"||d.nextElementSibling&&_.A9(d.nextElementSibling,"display")==="block"?null:Zxq(d.nextElementSibling);if(!c&&f===0)return d?TB(d.previousElementSibling):null}}if(d.nodeType===Node.ELEMENT_NODE)if(c){if(0<=f&&f<d.childNodes.length)return Zxq(d.childNodes[f])}else if(0<
f&&f<=d.childNodes.length)return TB(d.childNodes[f-1]);return null};
gpr=function(c,f,d){if(!c)return null;if(c.nodeType===Node.TEXT_NODE)if(d){var q=Mq3(c);if(q&&!/^\s+\S/.test(c.wholeText.substr(0,f)))return q}else if((q=rec(c))&&!/\S\s+/.test(c.wholeText.substr(f,c.wholeText.length)))return q;return c.nodeType===Node.ELEMENT_NODE?d?Mq3(c.childNodes[f]):rec(c.childNodes[f]):gpr(c.parentNode,f,d)};
kuC=function(c){if(c.hasChildNodes())switch(c.tagName){case "DIV":case "A":case "SPAN":var f="";for(c=c.firstChild;c;c=c.nextSibling)f+=kuC(c);return f;default:return""}else switch(c.nodeType){case 3:return c.textContent;default:return""}};
OxC=function(c){c=c.data;return _.B("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.B("div",null,_.B(_.J9,{text:c.title})),c.subtitle?_.B("div",{class:"ytd-menu-title-renderer__subtitle"},_.B(_.J9,{text:c.subtitle})):null)};
l9Q=function(c){switch(c){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"}};
sfS=function(c){return c.map(function(f){return{settingsRadioOptionRenderer:{title:_.Z8(f.name),asideText:_.Z8(f.approximateSize),id:l9Q(f.format)}}})};
ixJ=function(c){if(c&&c.length!==0)return c.filter(BNC()).map(function(f){return{settingsRadioOptionRenderer:{title:f.name,asideText:f.approximateSize,id:l9Q(f.formatType)}}})};
m9=function(c){if(c)return c.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
TNG=function(c,f){c=new Set(c!=null?c:[]);if(c.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(c.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(c.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(c.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(c.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(f)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
mVc=function(c){var f=c.indexOf("(");return f!==-1?c.substring(f+1,c.length-1):c};
_.Ae3=function(c,f,d,q,Z){d||(d=HxJ);var M;(M=_.b(d.commandMetadata,_.jO))!=null&&M.url||(d=Error("ol`"+JSON.stringify(d)),_.VO(d),d=HxJ);d=_.zV.unsafeClone(d);M=_.Ww(_.b(d.commandMetadata,_.jO).url,"search_query",c);_.y2(location.href,"sv")==="1"&&(_.b(d,_.th).params="EgOAAgE%3D",M=_.Ww(M,"sv","1"));_.b(d,_.th)&&(_.b(d,_.th).query=c);M=M.replace(/%20/g,"+");_.b(d.commandMetadata,_.jO).url=M;Z=_.F("desktop_enable_entity_suggest")?{entityMid:Z}:{};_.ql().resolve(_.ZM).resolveCommand(d,{form:{tempData:Object.assign({},
{gs_l:f,oq:q!=null?q:c},Z)}})};
YDD=function(c){switch(c){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
tq3=function(c,f,d,q,Z,M){var g=_.zV.clone(Fti);g.locale=_.hk("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;g.report={description:Z||"<empty>"};Z=_.hk("SBOX_SETTINGS",{});f=f.join(",");var O=Date.now();c={choice_cc:q,choice_id_cc:d,choices_sc:f,gl:Z.REQUEST_DOMAIN,hl:Z.REQUEST_LANGUAGE,query:c,time:O};M&&(c.choice_additional_comment_cc=M);_.tju(g,c)};
bxc=function(c){var f=new Map;f.set("authuser",_.hk("SESSION_INDEX","0"));return _.gk(c,f)};
Ep3=function(c){var f;return _.k(function(d){switch(d.nextAddress){case 1:if(!c||!KtC(c))return d.return(null);f=null;switch(_.hk("INNERTUBE_CLIENT_NAME")){case "WEB":return d.jumpTo(2);case "WEB_REMIX":f=c.getPlayer()}d.jumpTo(3);break;case 2:return d.yield(c.getPlayerPromise(),4);case 4:f=d.yieldResult;d.jumpTo(3);break;case 3:return d.return(f)}})};
KtC=function(c){return["ytd-player","ytmusic-player"].includes(String(c.tagName||"").toLowerCase())};
npS=function(c){c=Math.round(c);return c%2?c-1:c};
$V3=function(c){c=Math.round(c);return c%2===0?c-1:c};
Qfp=function(c){var f,d,q;if(c=(f=c.createPlaylistDialogFormSchema)==null?void 0:(d=f.fieldSchemas)==null?void 0:(q=d.title)==null?void 0:q.validationSchema)for(f=[c.syncStep,c.asyncStep].filter(function(Z){return Z!==void 0}),f=_.C(f),d=f.next();!d.done;d=f.next()){d=d.value.rules;
if(!d)break;d=_.C(d);for(d=d.next();!d.done;d=d.next())return _.b(d.value,_.zri)}};
Ltr=function(c){var f,d,q;if(c=(f=c.createPlaylistDialogFormSchema)==null?void 0:(d=f.fieldSchemas)==null?void 0:(q=d.visibility)==null?void 0:q.validationSchema)for(f=[c.syncStep,c.asyncStep].filter(function(Z){return Z!==void 0}),f=_.C(f),d=f.next();!d.done;d=f.next()){d=d.value.rules;
if(!d)break;d=_.C(d);for(q=d.next();!q.done;q=d.next())if(q=_.b(q.value,SDc))return f=void 0,(f=q.translations)==null?void 0:f.visibilityNotValidErrorMessage}};
zDD=function(){var c,f;return(f=(c=_.ql().resolve(_.dx(_.of)))==null?void 0:c())!=null?f:!1};
Jep=function(c){var f=21;if(!c)return f;f+=c.headerTitle?27:0;f+=c.headerTitle&&c.hasHeaderActionHeader?4:0;return f+=c.headerTitle&&c.headerSubtitle?16:0};
a9J=function(c){var f=0;if(!c)return f;f+=c.hasFooterPrimaryButton||c.hasFooterSecondaryButton?48:0;f+=c.footerTrailingLabel||c.footerLeadingLabel?30:0;return f+=c.hasFooterPrimaryButton||c.hasFooterSecondaryButton||!c.footerTrailingLabel&&!c.footerLeadingLabel?0:12};
Vq3=function(c){var f=new _.mu,d=c;return{subscribe:function(q){f.subscribe("changed",q)},
dispatch:function(q,Z){var M=d;q==="Touch Start"?d=Object.assign({},M,{isAnimating:!1,initialY:Z.event.touches[0].clientY}):q==="Touch Move"?(q=Math.min(Z.fullContentWrapperHeight,Z.contentHeightMap[Z.contentWrapperId]+Jep(Z.header)-a9J(Z.footer)),d=Object.assign({},M,{currentY:Math.max(Z.contentScrollable?-1*(M.initialY-24):0,Z.event.touches[0].clientY-M.initialY),maxHeightForContentWrapper:Math.min(q,Math.max(0,(M.isFullScreen?q:Z.contentWrapperHeight)-M.currentY))})):d=q==="Snap To Full Screen"?
Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Z.maxHeight}):q==="Snap To Neutral Position"?Object.assign({},M,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Z.maxHeight}):q==="Close Sheet"?Object.assign({},M,{isAnimating:!0,currentY:Z.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Z.maxHeight}):M;f.publish("changed",d)}}};
Xhc=function(c){return _.Ks(function(f){c(f);return!1})};
uNC=function(){_.ql().resolve(_.Lm).closeSheet()};
vpq=function(c){var f,d,q,Z,M,g,O,l,m,H,A;return{headerTitle:(f=c.headerTitle)==null?void 0:f.call(c),headerSubtitle:(d=c.headerSubtitle)==null?void 0:d.call(c),headerActionHeader:c.headerActionHeader,footerPrimaryButton:c.footerPrimaryButton,footerSecondaryButton:c.footerSecondaryButton,footerButtonType:(q=c.footerButtonType)==null?void 0:q.call(c),footerLeadingLabel:(Z=c.footerLeadingLabel)==null?void 0:Z.call(c),footerTrailingLabel:(M=c.footerTrailingLabel)==null?void 0:M.call(c),shouldShowIcons:(g=
c.shouldShowIcons)==null?void 0:g.call(c),skipContentClick:(O=c.skipContentClick)==null?void 0:O.call(c),additionalClassName:(l=c.additionalClassName)==null?void 0:l.call(c),onClosedCallback:c.onClosedCallback,focusOnClose:(m=c.focusOnClose)==null?void 0:m.call(c),isDisabled:(H=c.isDisabled)==null?void 0:H.call(c),disabledCommand:(A=c.disabledCommand)==null?void 0:A.call(c),headerFn:c.headerFn,contentFn:c.contentFn,footerFn:c.footerFn,hasHeaderFn:c.hasHeaderFn(),hasContentFn:c.hasContentFn(),hasFooterFn:c.hasFooterFn(),
hasFooterPrimaryButton:c.hasFooterPrimaryButton(),hasFooterSecondaryButton:c.hasFooterSecondaryButton(),hasHeaderActionHeader:c.hasHeaderActionHeader()}};
hDp=function(c){switch(c){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""}};
whF=function(c){switch(c){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""}};
yeH=function(c){switch(c){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""}};
WtJ=function(c,f,d){f.forEach(function(q){_.mZ(_.ql().resolve(_.z1),q)});
_.gS(c,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",d])};
I9S=function(c,f,d,q){var Z=_.b(d,_.PQ).commandLifeCycleConfig;Z&&Z.onStartCommand&&_.ll(c,[Z.onStartCommand],f);_.I9(f);var M=_.xZ.instance;M&&_.oT(M,d)?_.G3(M,d,q).then(function(g){if(!g||(g==null?0:g.error))return g=_.b(d,_.PQ).serializedTransactionFlowLoggingParams,_.PZ(f),_.Je(new H3("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",g));_.PZ(f);return{data:g}}).then(function(g){_.PZ(f);
DVQ(g.data);var O=g.data.command;O&&_.ll(c,[O],f);O=eDC(d,g.data);if(!O){var l=g.data;g=!1;if(l&&l.command&&_.b(l.command,_.BO)){var m;l=((m=_.b(l.command,_.BO))==null?void 0:m.commands)||[];for(m=0;m<l.length;m++)if(_.b(l[m],_.tIj)){g=!0;break}}g||_.aM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!O&&Z&&Z.onSuccessCommand?_.ll(c,[Z.onSuccessCommand],f):O&&Z&&Z.onFailureCommand&&_.ll(c,[Z.onFailureCommand],f)},function(){_.PZ(f);
Z&&Z.onFailureCommand&&_.ll(c,[Z.onFailureCommand],f);NNr(d)}):_.VO(Error("Al"),"ERROR")};
PPp=function(c,f,d){var q=[f];d&&q.push(d);return _.OX(c,q).then(function(Z){var M=_.b(f,_.PQ).serializedTransactionFlowLoggingParams,g=Z.data,O=eDC(f,g);O?Z=_.Je(new H3(O,M)):DVQ(g);return Z},function(){var Z=_.b(f,_.PQ).serializedTransactionFlowLoggingParams;
NNr(f);return _.Je(new H3("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Z))})};
eDC=function(c,f){c=_.b(c,_.PQ).serializedTransactionFlowLoggingParams;var d=null;switch(f.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":d="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":d="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":d="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}d?_.UO(d,c):MOQ(c);return d};
NNr=function(c){_.UO("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.b(c,_.PQ).serializedTransactionFlowLoggingParams)};
DVQ=function(c){if(c.trackingParams){var f=_.X2(),d=_.V5();f&&d&&_.Dr(f,d,_.Q1(c.trackingParams))}};
RDq=function(c,f,d){var q=_.xZ.instance,Z=_.D1r(_.hk("YPC_MB_URL")),M=(new _.yjn).init(),g=_.Wmh(),O=_.b(d,_.Hyu).languageCode;O===void 0?_.VO(Error("Ei"),"ERROR"):_.$o([M,Z]).then(function(){var l={ctk:payments.business.integration.ClientTokenFactory.createClientToken(O,g)};q&&_.oT(q,d)?_.G3(q,d,l).then(function(m){return{data:m}}).then(function(m){_.CZ(f,"yt-service-request-completed",m);
m.code!=="ERROR"&&(m=m.data.command)&&_.ll(c,[m],f)}):_.VO(Error("Al"),"ERROR")})};
xVH=function(c,f,d,q){var Z=_.xZ.instance;Z&&_.oT(Z,d)?_.G3(Z,d,q).then(function(M){return{data:M}}).then(function(M){UVG(c,f,d,M)},function(){ph3(d)}):(Z=_.ql().resolve(_.dx(_.Xw)))&&Z.requestDataForServiceEndpoint(d,q).then(function(M){UVG(c,f,d,M)},function(){ph3(d)})};
UVG=function(c,f,d,q){_.CZ(f,"yt-service-request-completed",q);if(q.code&&q.code=="ERROR")ph3(d);else{(q=q.data.commands)&&_.ll(c,q,f);var Z;(c=(Z=_.b(d,_.KNj))==null?void 0:Z.serializedYpcPauseFlowLoggingParams)&&c&&_.UZ("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",c)}};
ph3=function(c){var f;(c=(f=_.b(c,_.KNj))==null?void 0:f.serializedYpcPauseFlowLoggingParams)&&c&&_.UZ("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",c,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
cp3=function(c,f,d){var q=_.xZ.instance;q&&_.oT(q,d)?_.G3(q,d).then(function(Z){return{data:Z}}).then(function(Z){opF(c,f,d,Z)},function(){GuD(d)}):(q=_.ql().resolve(_.dx(_.Xw)))&&q.requestDataForServiceEndpoint(d).then(function(Z){opF(c,f,d,Z)},function(){GuD(d)})};
opF=function(c,f,d,q){_.CZ(f,"yt-service-request-completed",q);q.code&&q.code=="ERROR"?GuD(d):((q=q.data.commands)&&_.ll(c,q,f),(c=_.b(d,_.Ed3).serializedYpcResumeFlowLoggingParams)&&c&&_.UZ("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",c))};
GuD=function(c){(c=_.b(c,_.Ed3).serializedYpcResumeFlowLoggingParams)&&c&&_.UZ("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",c,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
f7C=function(c){c=c===void 0?{}:c;_.ql().resolve(_.oPF).showFeedbackDialog(c.customProductData,c.feedbackContent,c.onFeedbackSubmitted,c.bucket)};
d5r=function(c){c=c===void 0?{}:c;_.ql().resolve(_.oPF).showHelpDialog(c.helpContext,c.articleId,c.productData)};
jTc=function(){d5r()};
qVD=function(){f7C()};
MCC=function(c,f,d){var q,Z,M,g,O,l,m;return _.k(function(H){switch(H.nextAddress){case 1:q=_.b(c,ZsJ);if((Z=q)==null?0:Z.productId){l={productId:q.productId,bucket:q.bucket,enableAnonymousFeedback:(O=q.enableAnonymousFeedback)!=null?O:!0,allowNonLoggedInFeedback:!0};m={feedbackChoice:d.feedbackChoice};if(!_.F("web_collect_offline_state")){H.jumpTo(8);break}_.iY(H,9);return H.yield(YX3(m),11)}g={bucket:(M=q)==null?void 0:M.bucket};if(!_.F("web_collect_offline_state")){H.jumpTo(4);break}g.customProductData=
{};_.iY(H,5);return H.yield(YX3(g.customProductData),7);case 7:_.Pq(H,4);break;case 5:_.Yw(H);case 4:f7C(g);H.jumpTo(0);break;case 11:_.Pq(H,8);break;case 9:_.Yw(H);case 8:_.LXz(m),_.Snn("GFEEDBACK",m),q.productId==="5295751"&&(m.client_attestation=Number(_.hk("CATSTAT",0))),q.productId==="5295751"&&(m.client_time=Date.now()/1E3/3600),q.productId==="5295751"&&(m.original_playback_id=_.rbH||""),_.tju(l,m),_.Fm(H)}})};
rp3=function(c){if(c=_.b(c,_.xJY)){var f={bucket:c.bucketIdentifier};c.additionalDatas&&(f.customProductData={},c.additionalDatas.forEach(function(d){if(d=d.userFeedbackEndpointProductSpecificValueData)f.customProductData[d.key]=d.value}));
f7C(f)}};
CSq=function(c){var f=_.Pw.getInstance();var d=_.HO("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var q=_.HO("DELETE",void 0,"Delete"),Z=_.HO("CANCEL",void 0,"Cancel");d=EDq(d,void 0,q,Z,{signal:"DELETE_ALL_DOWNLOADS"});_.hW(f,[{openPopupAction:d}],c)};
k3J=function(){return _.k(function(c){return c.nextAddress==1?c.yield(_.ql().resolve(_.BE),2):c.yield(gZJ(),0)})};
OsH=function(c){var f,d;return _.k(function(q){return q.nextAddress==1?(d=(f=_.b(c,_.e_))==null?void 0:f.targetId)?q.yield(_.ql().resolve(_.BE),3):q.jumpTo(0):q.yield(_.ql().resolve(_.sZ).deleteVideo(d),0)})};
sTC=function(c){var f,d;return _.k(function(q){return q.nextAddress==1?(d=(f=_.b(c,_.e_))==null?void 0:f.targetId)?q.yield(_.ql().resolve(_.BE),3):q.jumpTo(0):q.yield(l7J(_.ql().resolve(_.sZ),d),0)})};
isD=function(c){var f,d;return _.k(function(q){return(d=(f=_.b(c,_.e_))==null?void 0:f.targetId)?q.yield(B_G(d),0):q.jumpTo(0)})};
m5q=function(){_.F("kevlar_woffle_refresh_dl_load_killswitch")||T_G()};
Apq=function(){_.F("kevlar_woffle")&&_.Jh.instance&&Hsi()};
F$C=function(c){var f;if((f=_.b(c,_.tc))==null||!f.videoId)return!1;YVc(_.ql().resolve(_.sZ),_.b(c,_.tc),c.clickTrackingParams);return!0};
bs3=function(c){var f;if((f=_.b(c,_.b7))==null||!f.playlistId)return!1;tCi(_.ql().resolve(_.sZ),_.b(c,_.b7),c.clickTrackingParams);return!0};
EZq=function(c){var f=_.b(c,_.kGy);(f==null?void 0:f.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(f==null?void 0:f.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||K$q(_.ql().resolve(_.sZ),_.b(c,_.kGy))};
$5J=function(c){c=_.b(c,_.W3H);var f;(c==null?0:(f=c.actions)==null?0:f.length)&&nZi(c)};
L$S=function(c){var f,d;return _.k(function(q){f=_.b(c,QTi);return(d=f)!=null&&d.localWatchHistoryCommandType?q.yield(SVp(f),0):q.return()})};
zYH=function(c){setTimeout(function(){requestAnimationFrame(c)},80)};
JpF=function(c){return Object.entries(c).map(function(f){return f.join(":")}).join(";")};
VCS=function(c){var f,d,q;_.k(function(Z){if(Z.nextAddress==1)return Z.yield(a73(),2);f=Z.yieldResult;d=_.Hh.instance;switch(f){case "granted":q=c.getLocationCommand;break;case "denied":q=c.openDeniedDialogAction;break;case "prompt":q=c.openCollectionDialogAction;break;default:q=c.openCollectionDialogAction}q&&d.resolveCommand(q);_.Fm(Z)})};
a73=function(){var c,f;return _.k(function(d){if(d.nextAddress==1)return c="prompt",navigator.permissions?d.yield(navigator.permissions.query({name:"geolocation"}),3):d.jumpTo(2);d.nextAddress!=2&&(f=d.yieldResult,c=f.state);return d.return(c)})};
uYC=function(){_.k(function(c){return c.yield(_.XrG(),0)})};
vZ3=function(){var c,f,d;return _.k(function(q){if(q.nextAddress==1)return c=_.ql().resolve(_.uo),c?q.yield(_.G3(c,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.u6(Error("Dl")),q.return(void 0));if(f=q.yieldResult){if(f.errorMetadata)return _.u6(Error("El`"+f.errorMetadata.status+"`"+f.error)),q.return(void 0);d=f.datasyncIds;_.f4S=d.length;return q.return(d)}_.u6(Error("Fl"));return q.return(void 0)})};
hYD=function(){vZ3().then(function(c){c&&(Ddc(c),OZq(c),VsG(c),bZr(c))})};
wrc=function(c){_.a7.addLowPriorityJob(function(){var f,d,q,Z,M;return _.k(function(g){switch(g.nextAddress){case 1:if(_.F("ytidb_clear_optimizations_killswitch")){g.jumpTo(2);break}f=_.t4("clear");if(f.startsWith("V")&&f.endsWith("||")){var O=[f];Ddc(O);OZq(O);VsG(O);bZr(O);return g.return()}d=XiH();q=Kn3();return g.yield(lrS(),3);case 3:return Z=g.yieldResult,g.yield(ew3(),4);case 4:if(M=g.yieldResult,!(d||q||Z||M))return g.return();case 2:c.isNetworkAvailable()?hYD():c.listenOnce("publicytnetworkstatus-online",
hYD),_.Fm(g)}})})};
Am=function(c){c={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.pC(c)}}}};_.Hh.instance&&_.Hh.instance.resolveCommand(c)};
ypC=function(c){if(c){var f=_.bP();_.s8(f,3854,void 0,{layer:0,parentLayer:4});switch(c){case 1:var d=238708;break;case 2:d=238715;break;case 3:d=238710;break;case 6:d=238709}d&&(c=_.te(f,{veType:d}))&&_.TG(f,c)}};
W$q=function(c){if(c){var f=_.bP();_.s8(f,3854,void 0,{layer:0,parentLayer:4});switch(c){case 1:var d=238714;break;case 2:d=238711;break;case 8:d=238709;break;case 7:d=238713;break;case 3:case 4:case 5:d=238712}d&&(c=_.te(f,{veType:d}))&&_.TG(f,c)}};
D5F=function(c){switch(c.latencyType){case 0:_.ac("consent_primitive_flow");_.V_("cpit",c.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.V_("cpist",c.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.V_("cprtif",c.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.V_("cprtli",c.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.V_("cprt",c.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.V_("cpdt",c.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.V_("cpjct",c.timestampEpochMillis,"consent_primitive_flow")}};
G3G=function(c,f){var d,q,Z,M,g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N,I;return _.k(function(R){switch(R.nextAddress){case 1:_.iY(R,2);(q=(d=_.b(c,eYQ))==null?void 0:d.serializedConsentRequest)||(q=(Z=_.b(c,N_i))==null?void 0:Z.serializedConsentRequest);q&&(M=I7S(_.pr(q)));if(M===void 0)return R.return();g=PSS(M);g.latencyCallback=D5F;f&&RYr(g,function(){f.then(function(qN){qN.pauseVideo();(new U5D).increment()})});
return((O=_.b(c,eYQ))==null?void 0:O.consentAction)==="CONSENT_ACTION_PREWARM"||((l=_.b(c,N_i))==null?void 0:l.consentAction)==="CONSENT_ACTION_PREWARM"?R.yield(prF(g),5):R.yield(x5J(g),6);case 6:m=R.yieldResult;H=_.nS(m,Yg);if(H===1){if(((A=_.vg(m,Ff,1,Yg))==null?void 0:_.VQ(A,1))===1||((Y=_.vg(m,Ff,1,Yg))==null?void 0:_.VQ(Y,1))===2||((t=_.vg(m,Ff,1,Yg))==null?void 0:_.VQ(t,1))===3)_.b(c,N_i)?Am(_.HO("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Am(_.HO("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));ypC((E=_.vg(m,Ff,1,Yg))==null?void 0:_.VQ(E,1),_.db(m,oZi,3,_.jQ()))}else H===2?(((J=tm(m))==null?void 0:_.VQ(J,1))===5?_.b(c,N_i)?Am(_.HO("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Am(_.HO("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((X=tm(m))==null?void 0:_.VQ(X,1))===1||((u=tm(m))==null?void 0:_.VQ(u,1))===4?Am(_.HO("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((W=tm(m))==null?void 0:_.VQ(W,1))===7&&((p=M)==null?void 0:(N=_.TD(p,bR,4))==null?void 0:_.VQ(N,4))!==1&&Am(_.HO("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),W$q((I=tm(m))==null?void 0:_.VQ(I,1))):Am(_.HO("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));R.jumpTo(5);break;case 5:_.Pq(R,0);break;case 2:_.Yw(R),Am(_.HO("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Fm(R)}})};
fW3=function(){if(!ccD.has("Worker")){ccD.set("Worker",!0);var c={api:"BROWSER_API_WEB_WORKER"};c.available="Worker"in window?!0:!1;_.JN("apiTest",c)}};
dY3=function(c){return typeof c==="undefined"?"-1":String(Math.ceil(c/1048576))};
McG=function(c,f){jeC(new qRJ(_.b(f,ZaJ).addToken,_.b(f,ZaJ).commonToken)).then(function(){_.CZ(c,"yt-invoke-instrument-manager-action-completed")},function(d){_.CZ(c,"yt-invoke-instrument-manager-action-error",d)})};
rcS=function(){var c,f;return(f=(c=window).matchMedia)==null?void 0:f.call(c,"(prefers-reduced-motion: reduce)").matches};
C73=function(c){var f=_.ql().resolve(_.dx(_.F0));if(f&&f.isAnyTransitionEnabled){var d={};f.viewTransitionCoordinator.registerElement(c,(d.slide="miniplayer-page-transition",d["lockup-to-watch"]="miniplayer-page-transition",d["learning-journey"]="miniplayer-page-transition",d))}};
gvr=function(c,f,d){return{horizontalAlignment:c.x+d.width/2<f.width/2?"west":"east",verticalAlignment:c.y+d.height/2<f.height/2?"north":"south"}};
Oa3=function(c,f,d,q,Z){Z=Z===void 0?new _.a8(0,0):Z;c=kxi(c,f,d,q);return new _.a8(c.x+Z.x,c.y+Z.y)};
kxi=function(c,f,d,q){return new _.a8(c==="west"?16:d.width-q.width-16,f==="north"?16:d.height-q.height-16)};
lW3=function(c,f){var d=0;c&&(d+=76);f&&(d+=285);return d};
sep=function(c){return _.D2(c)};
ByH=function(c){var f=1;c=c.split(":");for(var d=[];f>0&&c.length;)d.push(c.shift()),f--;c.length&&d.push(c.join(":"));return d};
iaJ=function(c){var f=new _.lp;return _.hr(f,11,c)};
Tyr=function(c){var f={};c=c.getAllResponseHeaders().split("\r\n");for(var d=0;d<c.length;d++)if(!_.gz(c[d])){var q=ByH(c[d]),Z=q[0];q=q[1];if(typeof q==="string"){q=q.trim();var M=f[Z]||[];f[Z]=M;M.push(q)}}return _.zV.map(f,function(g){return g.join(", ")})};
z_=function(c,f){return c.JSC$9739_xhr_?c.JSC$9739_xhr_.getResponseHeader(f):null};
mYr=function(c,f){if(c.isDisposed())throw Error("Ea");c.uY.w1("n");var d=_.X9(c.uY,function(){return c.km2([f.hI,f.qRm,f.jaf,f.hJz])},"n");
c.uY.byO(d.length);c.uY.fc();return d};
K6=function(c,f,d){Array.isArray(d)||(d=[String(d)]);_.GZr(c.JSC$9976_queryData_,f,d);return c};
Hsi=function(){var c=_.Jh.instance;_.k(function(f){return c.deferredInstallPrompt?f.yield(c.deferredInstallPrompt.prompt(),0):f.jumpTo(0)})};
HaC=function(c,f,d){if(_.WN(c))_.Iw(c,f,d);else for(c=_.lBo(c);;){var q=c.next();if(q.done)break;f.call(d,q.value,void 0,c)}};
AcD={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}"]};
AcD={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 YRr=function(c,f){var d=[];HaC(f,function(q){try{var Z=_.g2.prototype.getWrapper.call(this,q,!0)}catch(M){if(M=="Storage: Invalid value was encountered")return;throw M;}Z===void 0?d.push(q):_.Oho(Z)&&d.push(q)},c);
return d},F_F=function(c,f){YRr(c,f).forEach(function(d){_.g2.prototype.remove.call(this,d)},c)},tcH=function(c){var f=_.IJ;
f._minimumZ=Math.max(f._minimumZ,c)},bac=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],K_S=function(c,f){_.GV(c.vm);c.vm=f},EvG=function(c,f,d,q){c.setState(5);
var Z=!!c.aKq&&bac.includes(_.ow(c.aKq)||"");try{var M=new _.up({program:f,globalName:d,evG:{disable:!_.F("att_web_record_metrics")||!_.F("att_skip_metrics_for_cookieless_domains_ks")&&Z,qJ:"aGIf"}});M.yaP.then(function(){c.setState(6);q&&q(f)});
K_S(c,M)}catch(g){c.setState(7),g instanceof Error&&_.u6(g)}},nvS=function(c,f,d,q,Z,M){var g=g===void 0?"trayride":g;
d?(c.setState(2),_.Dz(_.Q2(d),function(){if(window[g])EvG(c,q,g,Z);else{c.setState(3);var O=_.U_e(d),l=document.getElementById(O);l&&(_.xVP(O),l.parentNode.removeChild(l));_.u6(new _.KD("BL:ULB",d))}},M)):f?(M=_.A5("SCRIPT"),f instanceof _.UW?_.xh(M,f):M.textContent=f,M.nonce=_.Rh(document),document.head.appendChild(M),document.head.removeChild(M),window[g]?EvG(c,q,g,Z):(c.setState(4),_.u6(new _.KD("BL:ULBJ")))):_.u6(new _.KD("BL:ULV"))},$Yq=function(){this.state=1;
this.vm=null;this.aKq=void 0};
_.r=$Yq.prototype;_.r.initialize=function(c,f,d,q){this.aKq=q;if(c.program){var Z;q=(Z=c.interpreterUrl)!=null?Z:null;if(c.interpreterSafeScript)Z=_.AYe(c.interpreterSafeScript);else{var M;Z=(M=c.interpreterScript)!=null?M:null}c.interpreterSafeUrl&&(q=_.Vm(c.interpreterSafeUrl).toString());nvS(this,Z,q,c.program,f,d)}else _.u6(Error("kf"))};
_.r.isInitialized=function(){return!!this.vm};
_.r.getState=function(){return this.state};
_.r.isLoading=function(){return this.state===2};
_.r.invoke=function(c){c=c===void 0?{}:c;var f;this.vm?f=mYr(this.vm,{hI:c}):f=null;return f};
_.r.dispose=function(){K_S(this,null);this.setState(8)};
_.r.setState=function(c){this.state=c};
var QeQ=function(c,f){return c.vm.snapshot(f)},SR3=function(c,f){var d=_.rx("botguard_async_snapshot_timeout_ms",3E3);
f=f===void 0?{}:f;d=d===void 0?3E3:d;return c.vm?new Promise(function(q,Z){var M=!1,g=_.a7.addJob(function(){M=!0;Z(Error("lf"))},1,d);
c.vm?QeQ(c,{hI:f}).then(function(O){_.a7.cancelJob(g);M||q(O)}).catch(function(O){_.a7.cancelJob(g);
M||Z(O)}):(_.a7.cancelJob(g),q(null))}):Promise.resolve(null)},L_Q=["att/log"],HxJ;
HxJ={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var zc3={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},JcC=function(c,f){return _.YC(c,{mode:"readwrite",enableRetries:!0},function(d){return _.SBl(d,f,"settingEntity")})},aWJ=function(c,f,d){return _.YC(c,{mode:"readonly",
enableRetries:!0},function(q){return _.NY_(q,f,d)})},Vcp=function(c){if(!c.storage)return!1;
a:{if(c.storage){try{var f=c.storage.get("TLPQtimestamp")}catch(d){}c=Number(f);if(!isNaN(c))break a}c=void 0}return c?Date.now()-c<864E5:!1},X9F=function(c){if(c.storage){try{var f=c.storage.get("TLPQindex")}catch(d){}c=Number(f);
if(!isNaN(c))return c}},u8C=function(c,f){c.queueProxy&&f.forEach(function(d){if(d.videoId&&d.trackingParams&&c.queueProxy instanceof _.hu){var q=_.X2();
c.queueProxy.attributionData.set(d.videoId,{enqueueingVe:_.Q1(d.trackingParams).getAsJson(),enqueueingCsn:q?q:void 0,clientEnqueueingTimeMs:Math.floor((0,_.qR)()).toString()})}})},vvH=function(c){var f=_.Euj(c);
f!=c.currentSnapState_&&(c.currentSnapState_=f,c.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Ep=function(c){this.JSC$13042_networkManager_=c;
this.partCallbacks_=[]};
Ep.prototype.getCacheKeyForEndpoint=function(c){return _.lbh(c,!1)};
Ep.prototype.onPartsCallback_=function(c){this.partCallbacks_.forEach(function(f){c&&f(c)})};
var n6=function(c,f,d){Ep.call(this,c);this.player_=f;this.autoplayData_=d};
_.K(n6,Ep);n6.prototype.getCacheKeyForEndpoint=function(c){return _.lbh(c,!!this.autoplayData_)};
n6.prototype.getTempData=function(c,f){f=f.timeBeforeNextVideo;c={itct:c.clickTrackingParams,lact:_.ZZ(),pbis:f,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(c.autonav=1);return c};
n6.prototype.getXhrParams=function(c){return Object.assign({pbj:"prefetch"},c)};
n6.prototype.getParams=function(c){c={frags:c.fragmentsRequested.join(",")};_.F("kevlar_droppable_prefetchable_requests")&&(c.prefetch=1);return c};
var hcC=function(c){c.playerEvents_.forEach(function(f){c.player.removeEventListener(f.eventName,f.callback)});
c.playerEvents_.length=0},$g=function(c,f,d){this.player=c;
this.JSC$13052_taskManager=f;this.prefetchDelay=d;this.completionResolver_=null;this.playerEvents_=[]};
$g.prototype.start=function(){var c=this;this.completionResolver_=_.c9();_.QS(this.completionResolver_.promise,function(){hcC(c);c.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var w9q=function(c,f,d){c.player.addEventListener(f,d);c.playerEvents_.push({eventName:f,callback:d})},ycS={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},W_G={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},DYJ=function(c,f,d){$g.call(this,c,f,d);this.cueId_="playbackTrigger-"+Math.random()};
_.K(DYJ,$g);
DYJ.prototype.prepareTrigger=function(c){var f=this,d=this.player.getDuration(),q=this.player.getVideoData(),Z=q.isLive&&q.hasProgressBarBoundaries;if(Z&&q.progressBarEndPositionUtcTimeMillis){var M=q.progressBarEndPositionUtcTimeMillis/1E3;isNaN(M)||(d=M)}var g=0;this.prefetchDelay>=0?Z?q.progressBarStartPositionUtcTimeMillis&&(q=q.progressBarStartPositionUtcTimeMillis/1E3,isNaN(q)||(g=q+this.prefetchDelay)):g=this.prefetchDelay:g=d+this.prefetchDelay;Z?this.player.addUtcCueRange(this.cueId_,g,d):
this.player.addCueRange(this.cueId_,g,d);_.QS(c.promise,function(){f.player.removeCueRange(f.cueId_)});
w9q(this,"onCueRangeEnter",function(O){O==f.cueId_&&c.resolve(d-g)})};
var ecq=function(c,f){c.fragmentConfiguration_[f].requiredKeys.every(function(d){return!!c.prefetchedData_[d]})&&(c.validatedFragments_.push(f),f=c.missingFragments_.indexOf(f),f!==-1&&c.missingFragments_.splice(f,1))},Nyp=function(c){c.prefetchedFragments_.forEach(function(f){ecq(c,f)})},IWp=function(c,f,d){this.pageFragments_=c;
this.prefetchedFragments_=f;this.fragmentConfiguration_=W_G;this.prefetchedData_=d;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Nyp(this)},P7r=function(){},RcH=function(c){this.JSC$13066_playlistManager_=c};
_.K(RcH,P7r);RcH.prototype.getPrefetchEndpoint=function(){return this.JSC$13066_playlistManager_.getAutoplayEndpoint()};
var UYi=function(c){this.autonavEndpoints_=c};
_.K(UYi,P7r);UYi.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var p9C=function(c,f,d,q,Z){this.autonavEndpoints=c;this.foregroundTrigger=f;this.backgroundTrigger=d;this.pageType=q;this.isInPlaylist=Z},xYC=function(c,f){if(c.webPrefetchData&&c.webPrefetchData.navigationEndpoints&&c.webPrefetchData.navigationEndpoints.length){c=c.webPrefetchData.navigationEndpoints;
var d=_.b(c[0],_.pe);if(d.watchEndpointSupportedPrefetchConfig&&d.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var q=d.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;d=q.playbackRelativeSecondsPrefetchCondition;d=typeof d==="number"&&Math.abs(d)<f.videoDuration?d:void 0;q=q.countdownUiRelativeSecondsPrefetchCondition;q=typeof q!=="number"||_.F("prefetch_job_config_cleanup_ks")&&f.inPlaylist?void 0:q;if(typeof q==="number")return new p9C(c,f.makeUpNextTrigger(q),f.makePlaybackTrigger(q),
"watch",f.inPlaylist);if(typeof d==="number")return new p9C(c,f.makePlaybackTrigger(d),null,"watch",f.inPlaylist)}}},ov3=function(c){return c.prefetchJobConfig_.backgroundTrigger?_.WC(_.P0r)()==0?c.prefetchJobConfig_.backgroundTrigger:c.prefetchJobConfig_.foregroundTrigger:c.prefetchJobConfig_.foregroundTrigger},Gx3=function(c){_.bp(document,"visibilitychange",c.onVisibilityChange_,!1,c)},QZ=function(c){Ep.call(this,c)};
_.K(QZ,Ep);QZ.prototype.getCacheKeyForEndpoint=function(c){return Ep.prototype.getCacheKeyForEndpoint.call(this,c)};
QZ.prototype.getTempData=function(){return{}};
QZ.prototype.getXhrParams=function(c){return c};
QZ.prototype.getParams=function(){return{}};
var c93=function(c,f,d){var q=c.prefetchDelay*1E3;if(Math.abs(q)>f)d.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Z=q,M=f-q;q<0&&(Z=f+q,M=Math.abs(q));var g=c.JSC$13052_taskManager.addJob(function(){d.resolve(M/1E3)},10,Z);
d.promise.thenCatch(function(){c.JSC$13052_taskManager.cancelJob(g)})}},fL3=function(c,f,d){$g.call(this,c,f,d)};
_.K(fL3,$g);fL3.prototype.prepareTrigger=function(c){var f=this;w9q(this,"onAutonavCoundownStarted",function(d){c93(f,d,c)})};
var dCG=function(c){c.pendingPrefetchJob_&&(c.pendingPrefetchJob_.cancel(),c.pendingPrefetchJob_=null)},j9G=function(c,f,d){if(!c.triggeredTargets.has(f)){var q=_.AU_(c,f);
q.action=d;_.mky(c,f,q)}},qoS=function(c){_.ZMF();
_.rsC("cpt")&&_.u6(Error("kh"));_.dz.requestAnimationFrame(function(){_.dz.setTimeout(function(){_.V_("cpt");var f=_.vO("vpl"),d=_.vO("cpt");f&&d&&_.V_("ol",Math.max(f,d))})});
try{_.V_("fr_s"),c()}catch(f){_.VO(f)}_.dz.requestAnimationFrame(function(){_.V_("bcp")})},ZOp=function(c,f){c.serviceEndpointHandlers.push(f)},M4c=function(c,f){f=c.pendingPages_.indexOf(f);
f>-1&&c.pendingPages_.splice(f,1)},r9c=function(c,f){var d=_.VHr.indexOf(f);
d>-1&&_.VHr.splice(d,1);c.targetPage_==f?(c.abort(),_.uUH(c)):M4c(c,f)},Chp=function(c,f,d,q){f={challenge:f};
d&&(f.webResponse=d);return _.y9(c.innertubeTransportService,f,_.cS(L_Q),q)},gsc=function(c,f,d){if(!f.challenge)throw Error("mi");
if(f.botguardData&&f.botguardData.program){var q=new $Yq;q.initialize(f.botguardData,function(){SR3(q,{atr_challenge:f.challenge}).then(function(Z){if(!Z)throw Error("ni");return Chp(c,f.challenge,Z,d)}).catch(function(Z){_.u6(Z);
return Chp(c,f.challenge,void 0,d)})},void 0)}else Chp(c,f.challenge,void 0,d)},k6r=function(c,f,d){var q={};
f.ids&&(q.ids=[].concat(_.LT(f.ids)));f.engagementType&&(q.engagementType=f.engagementType);return _.y9(c.innertubeTransportService,q,_.cS(_.ktu),d).then(function(Z){if(!Z)throw new _.KD("GetAttestationChallenge returned falsy");gsc(c,Z,d)}).thenCatch(function(Z){_.VO(Z)})},OO3=function(c,f,d){return new _.i6(function(q,Z){var M;
return _.k(function(g){if(g.nextAddress==1){var O=g.yield,l=f.engagementType,m=f.ids,H={};m=_.C(m!=null?m:[]);for(var A=m.next();!A.done;A=m.next())A=A.value,A.encryptedVideoId?H.encryptedVideoId=A.encryptedVideoId:A.externalChannelId?H.externalChannelId=A.externalChannelId:A.commentId?H.commentId=A.commentId:A.externalOwnerId?H.externalOwnerId=A.externalOwnerId:A.artistId?H.artistId=A.artistId:A.playlistId?H.playlistId=A.playlistId:A.externalPostId?H.externalPostId=A.externalPostId:A.shareId&&(H.shareId=
A.shareId);return O.call(g,K4H(l,H),2)}M=g.yieldResult;if(!M.challenge)return _.u6(Error("oi")),k6r(c,f,d).then(q,Z),g.return();O=M;l={challenge:O.challenge};l.webResponse=O.webResponse;l.engagementType=f.engagementType;l.ids=f.ids;_.y9(c.innertubeTransportService,l,_.cS(L_Q),d).then(q,Z);_.Fm(g)})})},JYC=function(c,f){var d,q,Z,M;
_.k(function(g){if(g.nextAddress==1){d=_.b(f,_.UUv);if(!(d&&d.listId&&c.response&&c.response.playingVideoId)||c.listId!==d.listId)return g.return();c.index===void 0&&(c.index=0);return g.yield(_.$gK(c.JSC$12797_playlistNetworkManager,d.listId,c.index,c.response.playingVideoId),2)}q=g.yieldResult;if(!q)return g.return();Z=q.playlistId;M=q.playlistPanelRenderer;c.setPlaylistData(Z,M,q.autoplayRenderer);_.Fm(g)})},lLi=function(c,f,d){var q=c.getParams(d),Z=_.QeN(f,q),M=c.getTempData(f,d);
M.endpoint=JSON.stringify(f);_.F("enable_unknown_lact_fix_on_html5")&&(_.ql().resolve(_.uS),M.lact=_.ZZ());var g={headers:{"X-YouTube-STS":_.hk("STS"),"x-youtube-csoc":1}};_.cO(Z,M);return new _.i6(function(O,l){var m=c.getXhrParams(q),H;_.F("kevlar_cache_on_ttl_player")&&(H=_.E2.instance);H&&_.pBr(H,f)?_.qI3(H,f,M,window.location.href).then(function(A){A?O(A):l()},l):_.Lsy(c.JSC$13042_networkManager_,f,m,c.onPartsCallback_.bind(c),g).then(function(A){A?O(A):l()},l)})},s9G=function(c,f){c.triggerPromise_=
f.start();
c.triggerPromise_.then(function(d){var q=c.prefetchEndpointProvider_.getPrefetchEndpoint();if(q){var Z=ycS[c.prefetchJobConfig_.pageType].prefetchedFragments;c.prefetchRequestPromise_=lLi(c.JSC$13078_networkPrefetchRequest_,q,{fragmentsRequested:Z,timeBeforeNextVideo:d});c.prefetchResponseCacheKey_=c.JSC$13078_networkPrefetchRequest_.getCacheKeyForEndpoint(q);Gx3(c);c.prefetchRequestPromise_.then(function(M){c.storePrefetchedDataCallback_(c.prefetchResponseCacheKey_,M);if(_.F("web_prefetch_preload_video")&&
Z.length===1&&Z[0]==="pl"&&M&&!M.playerAds&&!M.adPlacements){var g=_.b(q,_.EO),O=g!=null,l={raw_player_response:M,watch_endpoint:g};(M=_.ql().resolve(O?_.g4F:_.sR))&&q&&M.then(function(m){O&&_.F("web_queue_preload_video")?(l.prefer_gapless=!0,m.queueNextVideo(l)):m.preloadVideoByPlayerVars(l)})}})}})},Sp=function(c,f,d,q){this.prefetchEndpointProvider_=c;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=f;this.prefetchJobConfig_=d;this.JSC$13078_networkPrefetchRequest_=q;this.prefetchResponseCacheKey_=null};
Sp.prototype.enqueue=function(){this.triggerPromise_||(s9G(this,ov3(this)),_.Lx(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Sp.prototype.resolve=function(){this.cancel()};
Sp.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.");Gx3(this)};
Sp.prototype.onVisibilityChange_=function(){var c=this;_.WC(_.P0r)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){c.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||s9G(this,ov3(this))};
var BB3=function(c,f,d,q,Z){f&&(f==null?0:f.videoId)&&d&&d.entries&&_.F("kevlar_enable_shorts_prefetch_in_sequence")&&(dCG(c),f=d.entries.map(function(M){var g;return(g=_.b(M.command,_.EO))==null?void 0:g.videoId}).indexOf(f.videoId),d=d.entries[f+1],d!=null&&d.command&&!_.b(d==null?void 0:d.command,_.wF)&&(q=new p9C([d.command],new DYJ(q,_.a7,1),null,"shorts",!1),c.pendingPrefetchJob_=new Sp(new UYi(q.autonavEndpoints),function(){return!1},q,new QZ(Z)),c.pendingPrefetchJob_.enqueue()))},iOp=function(c,
f,d,q,Z,M){var g=_.jY.getInstance();
if(!_.F("block_all_player_prefetch_requests")){dCG(c);var O=!!d.getPlaylistId(),l=d.getVideoData().isLive&&d.getVideoData().hasProgressBarBoundaries;if((g.getState()==2||O||l)&&(!d.getVideoData().isLive||l)){g={inPlaylist:O,videoDuration:d.getDuration(),makeUpNextTrigger:function(H){return new fL3(d,_.a7,H)},
makePlaybackTrigger:function(H){return new DYJ(d,_.a7,H)}};
var m=xYC(f,g);m&&(c.pendingPrefetchJob_=new Sp(m.isInPlaylist?new RcH(Z):new UYi(m.autonavEndpoints),function(H,A){A=new IWp(ycS[m.pageType].pageFragments,ycS[m.pageType].prefetchedFragments,A);return _.C1H(A)?(c.prefetchCache_.set(H,A),!0):!1},m,new n6(q,d,M,Z)),c.pendingPrefetchJob_.enqueue())}}},TBC=function(){var c=_.P_();
c.signals.parkOrScheduleJob(function(){var f=c.storage;if(f.storage)if(Vcp(f)){var d=f.getPlaylistId();f=X9F(f);d=!!d&&f!==void 0}else f.clear(),d=!1;else d=!1;if(d){d=c.pageManager.isOnWatch();a:{var q=c.storage;if(q.storage&&Vcp(q)&&(f=q.getPlaylistId(),q=X9F(q),f&&q!==void 0)){d={recoverPlaylistCommand:{listId:f,index:q,openMiniplayer:!d,openListPanel:d,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}d=void 0}d&&_.hW(c.JSC$12797_actionRouter,[d],null)}},0,"ma")},mCQ=function(c,f,d,q,Z,M){var g=
_.m_(7111);
_.B_(c.JSC$18168_screenManager,g,M?_.Q1(M):void 0);_.TG(c.JSC$18168_screenManager,g,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:q,offlineId:f,offlineabilityFormatType:d,isDefaultFormatType:Z==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Z}})},HOJ=function(c,f,d,q,Z){var M,g,O,l,m;
return _.k(function(H){if(H.nextAddress==1)return H.yield(c.JSC$18168_playerApiPromise,2);M=H.yieldResult;mCQ(c,f,d,"OFFLINE_OBJECT_TYPE_PLAYLIST",q,Z);if(O=_.oej[c.entityTypeMap.listEntityType])m={},g=(m[O]={maximumDownloadQuality:(l=d)!=null?l:void 0},m);return H.yield(M.queueOfflineAction(f,c.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",g),0)})},A9c=function(c,f){var d,q,Z,M;
return _.k(function(g){if(g.nextAddress==1)return g.yield(c.JSC$18168_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){d=g.yieldResult;if(!d)return _.u6(new _.KD("PES is undefined")),g.return();q=_.sx(f,"downloadStatusEntity");return g.yield(aWJ(d,q,"downloadStatusEntity"),3)}Z=g.yieldResult;return g.return((M=Z)==null?void 0:M.downloadState)})},YoG=function(c,f,d,q,Z){var M,g,O,l,m,H;
return _.k(function(A){switch(A.nextAddress){case 1:return A.yield(c.JSC$18168_playerApiPromise,2);case 2:M=A.yieldResult;mCQ(c,f,d,"OFFLINE_OBJECT_TYPE_VIDEO",q,Z);if(O=_.oej[c.entityTypeMap.singleEntityType])m={},g=(m[O]={maximumDownloadQuality:(l=d)!=null?l:void 0},m);return A.yield(A9c(c,f),3);case 3:H=A.yieldResult;if(H!=="DOWNLOAD_STATE_USER_DELETED"){A.jumpTo(4);break}return A.yield(c.deleteVideo(f),4);case 4:return A.yield(M.queueOfflineAction(f,c.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
g),0)}})},FoC=function(c,f,d,q,Z){return _.k(function(M){return M.nextAddress==1?M.yield(c.deleteVideo(f,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):M.yield(YoG(c,f,d,q,Z),0)})},t43=function(c,f,d){var q,Z;
return _.k(function(M){if(M.nextAddress==1)return M.yield(c.JSC$18168_playerApiPromise,2);q=M.yieldResult;Z=_.sx(f,"mainVideoDownloadStateEntity");return M.yield(q.updateDownloadState(Z,d),0)})},B_G=function(c){var f=_.ql().resolve(_.sZ);
return _.k(function(d){if(d.nextAddress==1)return f.previousDownloadStateForVideo[c]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&f.previousDownloadStateForVideo[c]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?d.jumpTo(2):d.yield(f.resumeVideoDownload(c),2);if(d.nextAddress!=4)return d.yield(t43(f,c,f.previousDownloadStateForVideo[c]),4);delete f.previousDownloadStateForVideo[c];_.Fm(d)})},l7J=function(c,f){var d;
return _.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$18168_playerApiPromise,2);d=q.yieldResult;return q.yield(d.queueOfflineAction(f,c.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},gZJ=function(){var c=_.ql().resolve(_.sZ),f,d;
return _.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$18168_playerApiPromise,2);if(q.nextAddress!=3)return f=q.yieldResult,d={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},q.yield(f.queueOfflineAction("!*$_ALL_ENTITIES_!*$",c.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",d),3);var Z=c.JSC$18168_commandHandler,M=Z.resolveCommand,g=_.HO("DELETING_ALL",void 0,"Downloads are being deleted");M.call(Z,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.jU(g)}},
popupType:"TOAST"}});_.Fm(q)})},bOG=function(c,f){var d,q,Z,M,g,O;
return _.k(function(l){if(l.nextAddress==1)return l.yield(c.JSC$18168_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3)return d=l.yieldResult,d?l.yield(aWJ(d,_.SU,"downloadsPageViewConfigurationEntity"),3):(_.u6(new _.KD("PES is undefined")),l.return());Z=(q=l.yieldResult)!=null?q:{};O=(g=(M=Z)==null?void 0:M.downloadsUpsellBannerVisibility)!=null?g:{};return O.visibleWithConnection?l.yield(f.refreshAllStaleEntities(0),0):l.jumpTo(0)})},KoF=function(c){var f,d;
return _.k(function(q){if(q.nextAddress==1)return q.yield(c.JSC$18168_prefStorage,2);f=q.yieldResult;return q.return((d=f)==null?void 0:d.get("sdois"))})},EsD=function(c){var f,d,q,Z,M,g;
return _.k(function(O){if(O.nextAddress==1)return O.yield(c.JSC$18168_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3){f=O.yieldResult;if(!f)return _.u6(new _.KD("PES is undefined")),O.return();d=_.sx("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return O.yield(aWJ(f,d,"settingEntity"),3)}q=O.yieldResult;return O.return((g=(Z=q)==null?void 0:(M=Z.settingOptionValue)==null?void 0:M.boolValue)!=null?g:!1)})},nsC=function(c,f){var d,q,Z,M;
return _.k(function(g){switch(g.nextAddress){case 1:return((d=f)==null?void 0:d.formatType)===void 0?g.return():g.yield(c.JSC$18168_prefStorage,2);case 2:q=g.yieldResult;if(q===void 0)return g.return();if(((Z=f)==null?void 0:Z.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return g.yield(q.set("lmqf",f.formatType),8);if(((M=f)==null?void 0:M.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){g.jumpTo(0);break}return g.yield(q.set("lmqf",f.formatType),6);case 6:return g.yield(q.set("lmqflst",
Math.floor((0,_.qR)())),0);case 8:return g.yield(q.remove("lmqflst"),0)}})},$CH=function(c){var f,d;
return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(c.JSC$18168_prefStorage,2);case 2:f=q.yieldResult;if(!f){q.jumpTo(3);break}return q.yield(f.get("lmqflst"),4);case 4:if(d=q.yieldResult,d!==void 0)return q.return(d);case 3:return q.return(0)}})},Q9C=function(c){var f,d;
return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(c.JSC$18168_prefStorage,2);case 2:f=q.yieldResult;if(f===void 0){q.jumpTo(3);break}return q.yield(f.get("lmqf"),4);case 4:if(d=q.yieldResult,d!==void 0)return q.return(d);case 3:return q.return("SD")}})},tCi=function(c,f,d){var q,Z,M,g,O,l,m,H;
_.k(function(A){switch(A.nextAddress){case 1:return A.yield(nsC(c,(q=f)==null?void 0:q.actionParams),2);case 2:Z=f.playlistId;if(!Z)return A.return();if(f.action==="ACTION_ADD")return((g=f.actionParams)==null?0:g.formatType)?A.yield(HOJ(c,Z,f.actionParams.formatType,(H=f.actionParams)==null?void 0:H.settingsAction,d),0):A.yield(c.offlineWebClientEligibility,14);if(f.action==="ACTION_REMOVE_WITH_PROMPT"){var Y=c.JSC$18168_commandHandler,t=Y.resolveCommand,E=_.hk("INNERTUBE_CLIENT_NAME");var J=E===
"WEB_REMIX"?_.HO("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.HO("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var X=E==="WEB_REMIX"?[_.HO("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];E=E==="WEB_REMIX"?_.HO("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.HO("DELETE",void 0,"Delete");var u=_.HO("CANCEL",void 0,"Cancel");J=EDq(J,X,E,u,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Z});t.call(Y,{openPopupAction:J});return A.return()}if(f.action===
"ACTION_REMOVE")return A.yield(l7J(c,Z),0);if(f.action!=="ACTION_SYNC"){A.jumpTo(0);break}return A.yield(c.JSC$18168_playerApiPromise,9);case 9:return M=A.yieldResult,A.yield(M.queueOfflineAction(Z,c.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return O=A.yieldResult,A.yield(Q9C(c),15);case 15:return l=A.yieldResult,A.yield($CH(c),16);case 16:m=A.yieldResult,f.onAddCommand&&c.JSC$18168_commandHandler.resolveCommand(f.onAddCommand,{form:{preferredFormatType:l,
offlineWebClientEligibility:O,lastOfflineQualitySettingsSavedMs:m.toString()}}),A.jumpTo(0)}})},YVc=function(c,f,d){var q,Z,M,g,O,l,m,H,A,Y,t,E,J,X;
_.k(function(u){switch(u.nextAddress){case 1:return u.yield(nsC(c,(q=f)==null?void 0:q.actionParams),2);case 2:Z=f.videoId;if(!Z)return u.return();if(f.action==="ACTION_REMOVE_WITH_PROMPT"){var W=c.JSC$18168_commandHandler,p=W.resolveCommand,N=_.hk("INNERTUBE_CLIENT_NAME");var I=N==="WEB_REMIX"?_.HO("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.HO("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var R=N==="WEB_REMIX"?[_.HO("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];N=N==="WEB_REMIX"?_.HO("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.HO("DELETE",void 0,"Delete");var qN=_.HO("CANCEL",void 0,"Cancel");I=EDq(I,R,N,qN,{signal:"DELETE_DOWNLOAD",targetId:Z});p.call(W,{openPopupAction:I});return u.return()}if(f.action==="ACTION_ADD")return((Y=f.actionParams)==null?0:Y.formatType)?u.yield(YoG(c,Z,f.actionParams.formatType,(X=f.actionParams)==null?void 0:X.settingsAction,d),0):u.yield(c.offlineWebClientEligibility,23);if(f.action==="ACTION_RETRY")return u.yield(Q9C(c),
19);if(f.action==="ACTION_PAUSE")return u.yield(c.pauseVideoDownload(Z),0);if(f.action==="ACTION_RESUME")return u.yield(c.resumeVideoDownload(Z),0);if(f.action!=="ACTION_REMOVE"){u.jumpTo(0);break}return u.yield(A9c(c,Z),13);case 13:return M=u.yieldResult,c.previousDownloadStateForVideo[Z]=(g=M)!=null?g:"DOWNLOAD_STATE_UNKNOWN",u.yield(t43(c,Z,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(c.previousDownloadStateForVideo[Z]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&c.previousDownloadStateForVideo[Z]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){u.jumpTo(15);break}return u.yield(c.pauseVideoDownload(Z),15);case 15:W=_.HO("DELETED_VIDEO",void 0,"Video deleted from downloads.");p=_.HO("UNDO_ACTION",void 0,"Undo");I=_.HO("CLOSE",void 0,"Close");O={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.jU(W),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.jU(p),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Z}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:W+" "+p}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Z}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:I}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};c.JSC$18168_commandHandler.resolveCommand(O);
u.jumpTo(0);break;case 19:l=u.yieldResult;l==="UNKNOWN_FORMAT_TYPE"&&(l="SD");m="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((H=f.actionParams)==null?0:H.formatType)l=f.actionParams.formatType,m=(A=f.actionParams)==null?void 0:A.settingsAction;return u.yield(FoC(c,Z,l,m,d),20);case 20:return u.return();case 23:return t=u.yieldResult,u.yield(Q9C(c),24);case 24:return E=u.yieldResult,u.yield($CH(c),25);case 25:J=u.yieldResult,f.onAddCommand&&c.JSC$18168_commandHandler.resolveCommand(f.onAddCommand,
{form:{preferredFormatType:E,offlineWebClientEligibility:t,lastOfflineQualitySettingsSavedMs:J.toString()}}),u.jumpTo(0)}})},Soc=function(c,f){var d,q,Z,M,g,O,l;
return _.k(function(m){if(m.nextAddress==1)return m.yield(c.JSC$18168_persistentStorePromiseAccessor(),2);d=m.yieldResult;if(!d)return _.u6(new _.KD("PES is undefined")),m.return();if((q=f)==null||!q.settingItemId)return m.return();Z=f;M=Z.settingItemId;g=Z.boolValue;O=_.sx(M,"settingEntity");l={key:O,settingOptionValue:{boolValue:g}};return m.yield(JcC(d,l),0)})},Loc=function(c,f){var d,q,Z,M,g,O,l;
return _.k(function(m){switch(m.nextAddress){case 1:return m.yield(c.JSC$18168_prefStorage,2);case 2:return d=m.yieldResult,q=_.Ft(),m.yield(c.JSC$18168_persistentStorePromiseAccessor(),3);case 3:return Z=m.yieldResult,d?Z?m.yield(d.get("sdois"),4):(_.u6(new _.KD("PES is undefined")),m.return()):(_.u6(new _.KD("prefStorage is undefined")),m.return());case 4:M=m.yieldResult;O=(g=f)==null?void 0:g.boolValue;O===void 0||_.F("kevlar_set_sd_enabled_flag_killswitch")||_.tQ(0,197,!0);M===void 0&&O===void 0&&
(O=!1);if(O===void 0){m.jumpTo(0);break}return m.yield(d.set("sdois",O),6);case 6:return _.F("kevlar_set_sd_enabled_flag_killswitch")||(_.tQ(0,196,O),q.save()),l={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:O},m.yield(Soc(c,l),0)}})},zaH=function(c,f,d){var q,Z,M,g,O;
return _.k(function(l){switch(l.nextAddress){case 1:return l.yield(KoF(c),2);case 2:return q=l.yieldResult,l.yield(Loc(c,d),3);case 3:return l.yield(KoF(c),4);case 4:return Z=l.yieldResult,M=Z!==q,l.yield(EsD(c),5);case 5:g=l.yieldResult&&!_.F("kevlar_modern_downloads_page");if((O=!Z&&!g)||M)return l.yield(f.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);l.jumpTo(0)}})},T_G=function(){var c=_.ql().resolve(_.sZ),
f;
_.k(function(d){switch(d.nextAddress){case 1:return d.yield(c.JSC$18168_playerApiPromise,2);case 2:f=d.yieldResult;if(!_.F("kevlar_force_refresh_smart_downloads")){d.jumpTo(3);break}return d.yield(f.refreshAllStaleEntities(0),4);case 4:return d.return();case 3:return d.yield(f.refreshAllStaleEntities(),5);case 5:return d.yield(zaH(c,f),6);case 6:if(_.F("enable_download_pep_for_premium_countries_web"))return d.yield(bOG(c,f),0);d.jumpTo(0)}})},K$q=function(c,f){var d,q;
_.k(function(Z){switch(Z.nextAddress){case 1:return Z.yield(c.JSC$18168_playerApiPromise,2);case 2:d=Z.yieldResult;switch((q=f)==null?void 0:q.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Z.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Z.jumpTo(4)}Z.jumpTo(0);break;case 3:return Z.yield(zaH(c,d,f),6);case 6:Z.jumpTo(0);break;case 4:return Z.yield(Soc(c,f),7);case 7:Z.jumpTo(0)}})},J9C=function(c,f){var d,q,Z;
return _.k(function(M){if(M.nextAddress==1)return M.yield(c.JSC$18168_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){d=M.yieldResult;if(!d)return _.u6(new _.KD("PES is undefined")),M.return(!1);if(!f)return M.return(!1);q=_.sx(f,"mainVideoEntity");return M.yield(aWJ(d,q,"mainVideoEntity"),3)}Z=M.yieldResult;return M.return(Z!==void 0)})},nZi=function(c){var f=_.ql().resolve(_.sZ),d,q,Z,M,g,O,l,m,H,A,Y;
_.k(function(t){switch(t.nextAddress){case 1:return t.yield(f.JSC$18168_playerApiPromise,2);case 2:d=t.yieldResult;Z=(q=c)==null?void 0:q.actions;if(!Z)return t.return();M=_.C(Z);g=M.next();case 3:if(g.done){t.jumpTo(0);break}O=g.value;m=l=void 0;if(!(((l=O)==null?0:l.entityKey)&&((m=O)==null?0:m.actionType))){t.jumpTo(4);break}H=_.kC(O.entityKey);A=H.entityId;Y=H.entityType;return t.yield(d.queueOfflineAction(A,Y,O.actionType),4);case 4:g=M.next(),t.jumpTo(3)}})},aLc=function(c,f){var d,q,Z,M,g;
return _.k(function(O){if(O.nextAddress==1)return O.yield(c.JSC$18168_prefStorage,2);if(O.nextAddress!=3)return(d=O.yieldResult)?O.yield(d.get("psi"),3):O.return();q=O.yieldResult;g={isPaused:f,lastSyncTimestamp:(M=(Z=q)==null?void 0:Z.lastSyncTimestamp)!=null?M:"0"};return O.yield(d.set("psi",g),0)})},SVp=function(c){var f=_.ql().resolve(_.sZ),d,q,Z,M,g,O,l,m;
return _.k(function(H){switch(H.nextAddress){case 1:return H.yield(f.JSC$18168_playerApiPromise,2);case 2:d=H.yieldResult;Z=((q=c)==null?void 0:q.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((O=c)==null?void 0:O.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":M="!*$_ALL_ENTITIES_!*$";g="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return H.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return H.jumpTo(4)}H.jumpTo(5);break;case 3:return H.yield(aLc(f,Z),6);case 6:H.jumpTo(5);break;case 4:return H.yield(J9C(f,(l=c)==null?void 0:l.videoId),7);case 7:H.yieldResult&&(M=(m=c)==null?void 0:m.videoId,g="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");H.jumpTo(5);break;case 5:if(M&&g)return H.yield(d.queueOfflineAction(M,"videoPlaybackPositionEntity",g),0);H.jumpTo(0)}})},V4Q=function(c,f){var d;
f!==1||((d=c.currentPersistentToast)==null?0:d.isOpened())?c.openToast():c.currentPersistentToast=void 0},XZC=function(c,f){var d;
return(d=c.transitionTasksMap.get(f))!=null?d:[]},udD=function(c,f){var d=[];
c.elementTasksMap.forEach(function(q){(q=q.get(f))&&d.push(q)});
return d},vsq=function(c,f,d,q){q=q===void 0?{}:q;
var Z=c.defaultViewTransitionOptions;return Object.assign({},Z,q,{beforeTransition:function(){d.forEach(function(l){l.beforeTransition()});
var M;(M=Z.beforeTransition)==null||M.call(Z);var g,O;(O=(g=q).beforeTransition)==null||O.call(g);f.forEach(function(l){l.beforeTransition()})},
afterTransition:function(){d.forEach(function(l){l.afterTransition()});
var M;(M=Z.afterTransition)==null||M.call(Z);var g,O;(O=(g=q).afterTransition)==null||O.call(g);f.forEach(function(l){l.afterTransition()})}})},har=function(c,f,d){c.transitionTasksMap.has(f)?c.transitionTasksMap.get(f).push(d):(c=new _.KD("Transition task registered for unknown transition type",f),_.VO(c))},wZG=function(c,f,d){if(c.transitionTasksMap.has(f)){var q=c.transitionTasksMap.get(f).filter(function(Z){return Z!==d});
c.transitionTasksMap.set(f,q)}},y93=function(c,f){var d=XZC(c,f);
d=_.C(d);for(var q=d.next();!q.done;q=d.next())q=q.value,q.runOnce&&wZG(c,f,q);c.elementTasksMap.forEach(function(Z,M){Z.forEach(function(g,O){g.runOnce&&f===O&&(Z.delete(O),Z.size===0&&c.elementTasksMap.delete(M))})})},Woi=function(c,f,d){var q,Z,M,g,O,l,m,H,A;
_.k(function(Y){if(Y.nextAddress==1){if(c.config.disableAllTransitions)return Y.return(f());if((q=d)==null||!q.transitionType)return Y.return(_.Xuq(f,(Z=d)==null?void 0:Z.viewTransitionOptions));M=d;g=M.transitionType;O=M.viewTransitionOptions;l=c.config.transitionConfigs.get(g);if(!l)return Y.return(f());m=XZC(c,g);H=udD(c,g);A=_.Xuq(f,vsq(l,m,H,O));return Y.yield(A,2)}y93(c,g);_.Fm(Y)})},DCi=function(){var c,f,d,q;
return _.k(function(Z){if(Z.nextAddress==1)return c=navigator,(f=c.storage)!=null&&f.persisted?Z.yield((d=c.storage)==null?void 0:d.persisted(),2):Z.return("PERSISTED_STATE_NOT_SUPPORTED");q=Z.yieldResult;return Z.return(q?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},eaF=function(){var c,f,d,q;
return _.k(function(Z){if(Z.nextAddress==1)return c=navigator,(f=c.storage)!=null&&f.persist?Z.yield((d=c.storage)==null?void 0:d.persist(),2):Z.return("PERSISTED_STATE_NOT_SUPPORTED");q=Z.yieldResult;return Z.return(q?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},NBi=function(){var c,f;
return _.k(function(d){switch(d.nextAddress){case 1:return c="PERSISTED_STATE_NOT_SUPPORTED",_.iY(d,2),d.yield(DCi(),4);case 4:c=d.yieldResult;if(c!=="PERSISTED_STATE_NOT_GRANTED"){d.jumpTo(5);break}return d.yield(eaF(),6);case 6:c=d.yieldResult;case 5:_.Pq(d,3);break;case 2:f=_.Yw(d),f instanceof Error&&_.VO(f);case 3:return _.JN("persistentStorageStateChecked",{persistedState:c}),d.return(c)}})},ILQ=function(c,f){var d=[],q=!1;
f=_.C(f);for(var Z=f.next();!Z.done;Z=f.next()){Z=c.moduleRegistry[Z.value];var M=void 0,g=void 0;((M=Z)==null?0:M.isFetching)&&((g=Z)==null?0:g.resolver)?(d.push(Z.resolver.promise),q=!0):(Z=new _.BS,Z.resolve(void 0),d.push(Z.promise))}return q?Promise.all(d):void 0},Phq=function(c,f,d){if(c.isAnyTransitionEnabled){var q={beforeTransition:function(){d(!0);
f.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){f.style.viewTransitionName&&(f.style.viewTransitionName="",d(!1))}};
har(c.viewTransitionCoordinator,"slide",q);har(c.viewTransitionCoordinator,"lockup-to-watch",q);har(c.viewTransitionCoordinator,"watch-next-appears",q);har(c.viewTransitionCoordinator,"learning-journey",q)}},Rac=function(c,f){c.isBrowseTransitionEnabled?Woi(c.viewTransitionCoordinator,f,{transitionType:"slide"}):(f(),Promise.resolve())},UC3=function(c,f){c.isLockupToWatchTransitionEnabled?Woi(c.viewTransitionCoordinator,f,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){c.registeredLockupThumbnail=void 0;c.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(f(),Promise.resolve())},pZr=function(c,f){c.isLockupToWatchTransitionEnabled?Woi(c.viewTransitionCoordinator,f,{transitionType:"watch-next-appears"}):(f(),Promise.resolve())},xCC=function(c,f){c.isLearningJourneyTransitionEnabled?Woi(c.viewTransitionCoordinator,f,{transitionType:"learning-journey"}):(f(),Promise.resolve())},osH=function(c,f,d){if(c.isInitialized()){var q=
Af(d),Z=q==="watch";
q=q==="shorts";var M=Af(f)==="watch";if(Z)M||(c.backgroundPageData=f),c.watchPipMode&&M||c.deactivate(d.endpoint);else if(q){if(Af(f)!=="shorts"){var g;(g=c.getPlayerElement())==null||g.pause()}}else M&&!c.watchPipMode&&($dS(f,d)?(c.watchWhileMode&&_.vcc(c,!1),_.zRS(c,f)):c.isMiniplayerActive()&&c.watchWhileMode&&c.deactivate());M&&_.wvi(c);c.shortsPipMode&&!q&&(window.focus(),c.deactivate());if(c.pictureInPictureEnabled())if(q&&c.shortsPipEnabled||Z&&c.watchPipEnabled)_.KI4(c.handleMediaSessionPipActivation);
else if(!c.isMiniplayerActive()&&(c.shortsPipEnabled||c.watchPipEnabled)&&window.documentPictureInPicture&&_.Qn()&&_.BzP("Chromium")>=120){c=_.bE4().mediaSession;try{c.setActionHandler("enterpictureinpicture",null)}catch(O){}}}},G6S=function(c,f){var d,q;
_.k(function(Z){if(Z.nextAddress==1){if(!c||!c.navigationEndpoint)return Z.return();_.F7().lockupActivation=!0;var M;f?M=_.pC(_.HO("QUEUE",void 0,"Queue")):M=c.longBylineText;q=(d=M)&&c.title?{miniplayerTitle:c.title,miniplayerSubtitle:d,playlistData:null}:void 0;return Z.yield(_.T0u(_.ql().resolve(_.yN),c.navigationEndpoint,!0,q),2)}_.F7().userActivation=!0;_.Fm(Z)})},Sk3=function(c,f){var d,q,Z,M,g,O;
_.k(function(l){if(l.nextAddress==1){d=_.b(f,_.Rq_);if(!d||!d.listId)return l.return();c.index=d.index||c.index||0;q=c.response&&c.response.playingVideoId||void 0;return l.yield(_.$gK(c.JSC$12797_playlistNetworkManager,d.listId,c.index,q),2)}Z=l.yieldResult;if(!Z)return l.return();M=Z.playlistId;g=Z.playlistPanelRenderer;!c.queueProxy&&M&&g&&M.startsWith("TLPQ")&&(c.queueProxy=new _.hu(c.JSC$12797_playlistNetworkManager,M,c.setPlaylistData.bind(c),c.clearQueue.bind(c),_.qie(g),c.storage));if(d.openMiniplayer&&
(O=_.ZgG(g))&&!c.pageManager.isOnWatch()){var m=O,H=d.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";c.isMiniplayerActive()?c.openToast(m):G6S(m,H)}c.setPlaylistData(M,g,Z.autoplayRenderer);_.Fm(l)})},nEr=function(c,f){var d=_.P_();
d.index===void 0&&(d.index=0);d.temporaryItems.push.apply(d.temporaryItems,_.LT(c));if((f.videoId||f.videoIds)&&d.index!==void 0&&f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!d.queueProxy){var q=[];if(d.response){var Z=_.ql().resolve(_.yN).isMiniplayerActive();if(d.response.playlistPanelRenderer&&d.response.playlistId&&!d.response.playlistId.startsWith("TLPQ")){if(d.pageManager.isOnWatch()||Z)q=_.qie(d.response.playlistPanelRenderer)}else d.response.playingVideoId&&!f.openMiniplayer?q.push(d.response.playingVideoId):
Z&&d.response.playingVideoId&&f.openMiniplayer&&q.push(d.response.playingVideoId)}d.queueProxy=new _.hu(d.JSC$12797_playlistNetworkManager,"",d.setPlaylistData.bind(d),d.clearQueue.bind(d),q,d.storage);d.queueProxy.JSC$12743_setCurrentIndex(d.index)}d.queueProxy.addVideos(f.videoIds||[f.videoId],f)}u8C(d,c);d.response&&_.RX(d,_.U8(d,d.response.autoplayRenderer));d.pageManager.isOnWatch()?d.isMiniplayerActive()&&d.openToast(c[0]):(c=c[0],f=f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",d.isMiniplayerActive()?
d.openToast(c):G6S(c,f))},cK3=function(c){var f=_.IK(c);
if(f=="object"||f=="array"){if(typeof c.clone==="function")return c.clone();if(typeof Map!=="undefined"&&c instanceof Map)return new Map(c);if(typeof Set!=="undefined"&&c instanceof Set)return new Set(c);f=f=="array"?[]:{};for(var d in c)f[d]=cK3(c[d]);return f}return c},L6=function(c,f){return _.kvG(_.Fv(c,f,void 0,_.Y9))},zB=function(c,f){return _.f3(_.Fv(c,f,void 0,_.Y9))},Jm=function(c,f){return _.z_r(_.Fv(c,f,void 0,_.Y9))},aU=function(c,f){return _.Fv(c,f,void 0,_.Y9,_.CrY)},fhD=_.qS(function(c,
f,d){if(c.nextWireType_!==0)return!1;
_.ZJ(f,d,_.Wg(c.decoder_,_.Muk));return!0},_.g8,_.IW),doC=_.qS(function(c,f,d,q){if(c.nextWireType_!==0)return!1;
_.EJ(f,d,q,_.Wg(c.decoder_,_.Muk));return!0},_.g8,_.IW),jv3=_.qS(function(c,f,d){if(c.nextWireType_!==1)return!1;
var q=c.decoder_;c=_.e7(q);q=_.e7(q);c=_.wo(c,q);_.ZJ(f,d,c);return!0},_.QhC,_.hlP),q_S=_.qS(function(c,f,d){if(c.nextWireType_!==5)return!1;
_.ZJ(f,d,_.e7(c.decoder_));return!0},function(c,f,d){f=_.sKP(f);
f!=null&&(_.r8(c,d,5),_.Cq(c.encoder_,f))},_.vPn),Zp3=_.qS(function(c,f,d){if(c.nextWireType_!==0)return!1;
c=_.HHY(c.decoder_);_.ZJ(f,d,c===!1?void 0:c);return!0},_.SWk,_.aql),MJQ=_.qS(function(c,f,d){if(c.nextWireType_!==2)return!1;
c=_.KWM(c);_.ZJ(f,d,c===""?void 0:c);return!0},_.zhP,_.VfP),rKJ=_.qS(function(c,f,d){if(c.nextWireType_!==2)return!1;
c=_.EPk(c);_.ZJ(f,d,c===_.QF()?void 0:c);return!0},_.aJC,_.WWz),CkC=_.Avn(function(c,f,d){if(c.nextWireType_!==0&&c.nextWireType_!==2)return!1;
f=_.QGN(f,f[_.MH]|0,d);c.nextWireType_==2?_.nPM(c,sep,f):f.push(_.D2(c.decoder_));return!0},function(c,f,d){f=_.Hqk(_.f3,f,!0);
if(f!=null&&f.length){d=_.DQG(c,d);for(var q=0;q<f.length;q++)_.EhG(c.encoder_,f[q]);_.e3z(c,d)}},_.Die),gRC=_.qS(function(c,f,d){if(c.nextWireType_!==0)return!1;
c=_.D2(c.decoder_);_.ZJ(f,d,c===0?void 0:c);return!0},_.VPM,_.Die),kdF=_.qS(function(c,f,d,q){if(c.nextWireType_!==0)return!1;
_.EJ(f,d,q,_.D2(c.decoder_));return!0},_.VPM,_.Die),OpQ=function(c){return c.previousElementSibling!==void 0?c.previousElementSibling:_.cHF(c.previousSibling,!1)},lhJ=function(c,f){var d=[];
for(f=f||0;f<c.length;f+=2)_.DQ_(c[f],c[f+1],d);return d.join("&")},svS=function(c,f){var d=arguments.length==2?lhJ(arguments[1],0):lhJ(arguments,1);
return _.Wco(c,d)},TWS=_.lX(_.vZ),BOJ=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(BOJ,_.d8);BOJ.prototype.getTypeName=function(){return _.aW(this,1).split("/").pop()};
BOJ.prototype.getValue=function(){var c=_.Fv(this,2);if(Array.isArray(c)||c instanceof _.d8)throw Error("W");return _.KS(this,2)};
var qOQ=function(){var c=_.gD();this.JSC$9862_streamzService=c;c.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.rb("channel_type"))};
qOQ.prototype.increment=function(c){this.JSC$9862_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",c)};
var ZXi=function(){var c=_.gD();this.JSC$9865_streamzService=c;c.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.rb("channel_type"))};
ZXi.prototype.increment=function(c){this.JSC$9865_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",c)};
var rh3=function(){var c=_.gD();this.JSC$9868_streamzService=c;c.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.rb("channel_type"))};
rh3.prototype.increment=function(c){this.JSC$9868_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",c)};
var Mvc=function(){var c=_.gD();this.JSC$9871_streamzService=c;c.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Mvc.prototype.increment=function(){this.JSC$9871_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var CoH=function(){var c=_.gD();this.JSC$9874_streamzService=c;c.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.rb("channel_type"),_.rb("error_type"))};
CoH.prototype.increment=function(c,f){this.JSC$9874_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",c,f)};
var g0i=function(){var c=_.gD();this.JSC$9877_streamzService=c;c.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
g0i.prototype.increment=function(){this.JSC$9877_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var kXD=function(){var c=_.gD();this.JSC$9880_streamzService=c;c.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
kXD.prototype.increment=function(){this.JSC$9880_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var U5D=function(){var c=_.gD();this.JSC$9886_streamzService=c;c.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
U5D.prototype.increment=function(){this.JSC$9886_streamzService.JSC$9730_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ipJ=function(c){return c.getCount&&typeof c.getCount=="function"?c.getCount():_.WN(c)||typeof c==="string"?c.length:_.zV.getCount(c)},TOr=function(c,f){if(typeof c.every=="function")return c.every(f,void 0);
if(_.WN(c)||typeof c==="string")return Array.prototype.every.call(c,f,void 0);for(var d=_.eEH(c),q=_.cf(c),Z=q.length,M=0;M<Z;M++)if(!f.call(void 0,q[M],d&&d[M],c))return!1;return!0},moG=function(c,f,d,q){var Z=new _.xn(null);
c&&_.f0(Z,c);f&&_.d3(Z,f);d&&_.jn(Z,d);q&&_.qK(Z,q);return Z},HpH=function(){var c=_.wx&&_.ie(_.qNH,10)>=0,f;
if(f=_.Jnh)f=_.ie(_.j7F,10)>=0;var d=_.m8&&_.ie(_.qNH,85)>=0;return _.lf||c||f||d},AKJ=function(c){var f=_.tFr(c);
return f&&HpH()?-c.scrollLeft:f&&_.h5(c,"overflowX")!="visible"?c.scrollWidth-c.clientWidth-c.scrollLeft:c.scrollLeft},Y_J=function(c,f){f=Math.max(f,0);
_.tFr(c)?HpH()?c.scrollLeft=-f:c.scrollLeft=c.scrollWidth-f-c.clientWidth:c.scrollLeft=f},W4F=0,PWp=!1;
FM.prototype.set=function(c){this.relativeTimeStart_=c};
FM.prototype.reset=function(){this.set(_.M6())};
FM.prototype.get=function(){return this.relativeTimeStart_};
var Fa3=null,tJc=function(){Fa3||(Fa3=new FM)},bp3=function(){Fa3||(Fa3=new FM)};
_.rn(bp3,tJc);_.r=UdG.prototype;_.r.JSC$11245_buffer_="";_.r.set=function(c){this.JSC$11245_buffer_=""+c};
_.r.append=function(c,f,d){this.JSC$11245_buffer_+=String(c);if(f!=null)for(var q=1;q<arguments.length;q++)this.JSC$11245_buffer_+=arguments[q];return this};
_.r.clear=function(){this.JSC$11245_buffer_=""};
_.r.getLength=function(){return this.JSC$11245_buffer_.length};
_.r.toString=function(){return this.JSC$11245_buffer_};
var KaS=function(){var c={type:"unit",style:"narrow"};this.listType_=c&&c.type?c.type:"conjunction";this.listStyle_=c&&c.style?c.style:"long";this.listSymbols_=AcD;c=0;switch(this.listStyle_){case "short":c=1;break;case "narrow":c=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[c];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[c];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[c];this.listEndPattern_=
this.listSymbols_.AND_END[c];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[c];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[c];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[c];this.listEndPattern_=this.listSymbols_.OR_END[c];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[c],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[c],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[c],this.listEndPattern_=this.listSymbols_.UNIT_END[c]}};
KaS.prototype.format=function(c){return ERc(this,c)};
var ERc=function(c,f){var d=f.length;switch(d){case 0:return"";case 1:return String(f[0]);case 2:return c.listTwoPattern_.replace("{0}",String(f[0])).replace("{1}",String(f[1]))}for(var q=c.listStartPattern_.replace("{0}",String(f[0])).replace("{1}",String(f[1])),Z=2;Z<d-1;++Z)q=c.listMiddlePattern_.replace("{0}",q).replace("{1}",String(f[Z]));return c.listEndPattern_.replace("{0}",q).replace("{1}",String(f[d-1]))},OeQ=function(){var c={style:1};
this.style_=(c==null?void 0:c.style)||0;this.durationSymbols_=_.cdr||_.Dhr},nR3=function(c,f){switch(f){default:case "years":return c.durationSymbols_.YEAR;
case "months":return c.durationSymbols_.MONTH;case "weeks":return c.durationSymbols_.WEEK;case "days":return c.durationSymbols_.DAY;case "hours":return c.durationSymbols_.HOUR;case "minutes":return c.durationSymbols_.MINUTE;case "seconds":return c.durationSymbols_.SECOND}},VZ=function(c,f,d){a:{d=nR3(c,d);
switch(c.style_){case 1:if(d.LONG!=void 0){c=d.LONG;break a}case 2:if(d.NARROW!=void 0){c=d.NARROW;break a}default:c=d.SHORT;break a}c=void 0}return c?(new _.Oxv("{DURATION_VALUE,plural,"+c+"}")).format({DURATION_VALUE:f}):""};
OeQ.prototype.format=function(c){var f=[],d=c.years,q=c.months,Z=c.weeks,M=c.days,g=c.hours,O=c.minutes;c=c.seconds;d!=null&&f.push(VZ(this,d,"years"));q!=null&&f.push(VZ(this,q,"months"));Z!=null&&f.push(VZ(this,Z,"weeks"));M!=null&&f.push(VZ(this,M,"days"));g!=null&&f.push(VZ(this,g,"hours"));O!=null&&f.push(VZ(this,O,"minutes"));c!=null&&f.push(VZ(this,c,"seconds"));return(new KaS).format(f)};
var $o3=!1,dTC=function(c){_.cN.call(this,c.message||c.description||c.name);this.isMissing=c instanceof tf;this.isTimeout=c instanceof _.k7&&c.errorCode=="net.timeout";this.isCanceled=c instanceof _.NC};
_.K(dTC,_.cN);dTC.prototype.name="BiscottiError";var tf=function(){_.cN.call(this,"Biscotti ID is missing from server")};
_.K(tf,_.cN);tf.prototype.name="BiscottiMissingError";var bT=null,AYC=function(){try{var c=_.D5("yt.ads.biscotti.getId_");return c?c():VRq()}catch(f){return _.Je(f)}},kci,QvH=function(c,f){return _.CC({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:c,command:f}})},S_D=function(c){return _.CC({type:"SET_GUIDE_IS_EXPANDED",
payload:c})},LaC=function(c){return _.CC({type:"SET_ONLINE_STATUS",
payload:c})},zJC=function(c,f){return _.CC({type:"SET_TRANSCRIPTION_STATE",
payload:{high:c,low:f}})},JKq=function(c){return _.CC({type:"SET_OVERLAY_STATE",
payload:c})},ahS=0,VJQ=function(c,f,d){var q=this;
this.priority=f;this.delay=d;this.jobId=0;this.completionCallback=_.tq;this.wrappedJob=function(){c();q.completionCallback()};
this.id=++ahS};
VJQ.prototype.enqueue=function(c){this.completionCallback=c;this.jobId=_.a7.addJob(this.wrappedJob,this.priority,this.delay)};
var Xf=function(){_.M_.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.K(Xf,_.M_);Xf.prototype.addJob=function(c,f,d){c=new VJQ(c,f,d);this.taskIdToTask.set(c.id,c);this.isActive?X5i(this,c):this.suspendedTasks.add(c);return c.id};
var X5i=function(c,f){c.scheduledTasks.add(f);f.enqueue(function(){c.scheduledTasks.delete(f)})};
Xf.prototype.cancelJob=function(c){(c=this.taskIdToTask.get(c))&&(this.scheduledTasks.delete(c)?_.a7.cancelJob(c.jobId):this.suspendedTasks.delete(c))};
Xf.prototype.pause=function(){var c=this;this.isActive=!1;this.scheduledTasks.forEach(function(f){_.a7.cancelJob(f.jobId);c.suspendedTasks.add(f)});
this.scheduledTasks.clear()};
Xf.prototype.start=function(){var c=this;this.isActive=!0;this.suspendedTasks.forEach(function(f){X5i(c,f)});
this.suspendedTasks.clear()};
Xf.prototype.reset=function(){this.scheduledTasks.forEach(function(c){_.a7.cancelJob(c.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var uR=function(c,f){this.JSC$12926_networkService_=c;this.pageRequestPromise=f};
uR.prototype.fetchData=function(c){ubH(this,this.JSC$12926_networkService_.fetchData(c))};
uR.prototype.postData=function(c,f){ubH(this,this.JSC$12926_networkService_.postData(c,f))};
uR.prototype.requestDataForServiceEndpoint=function(c,f){ubH(this,this.JSC$12926_networkService_.requestDataForServiceEndpoint(c,f))};
var ubH=function(c,f){f.then(c.pageRequestPromise.onSuccess,c.pageRequestPromise.onFailure,c.pageRequestPromise)};
uR.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var v3=function(c){this.buildNetworkRequest_=c;this.pendingRequests_=new Set};
v3.prototype.reset=function(){this.pendingRequests_.forEach(function(c){c.cancel()});
this.pendingRequests_.clear()};
v3.prototype.fetchData=function(c){var f=vRr(this);f.fetchData(c);return f.pageRequestPromise};
v3.prototype.postData=function(c,f){var d=vRr(this);d.postData(c,f);return d.pageRequestPromise};
v3.prototype.requestDataForServiceEndpoint=function(c,f){var d=vRr(this);d.requestDataForServiceEndpoint(c,f);return d.pageRequestPromise};
var vRr=function(c){var f=c.buildNetworkRequest_();c.pendingRequests_.add(f);var d=function(){c.pendingRequests_.delete(f)};
f.pageRequestPromise.then(d,d);return f},hJ3=function(c){var f=new Xf;
this.JSC$12933_networkService_=c;this.JSC$12933_taskManager_=f;this.JSC$12933_networkManager_=new v3(this.networkRequestFactory_.bind(this))};
_.r=hJ3.prototype;_.r.networkRequestFactory_=function(){return new uR(this.JSC$12933_networkService_,new _.Ct(this.JSC$12933_taskManager_))};
_.r.reset=function(){this.JSC$12933_taskManager_.reset();this.JSC$12933_networkManager_.reset()};
_.r.start=function(){this.JSC$12933_taskManager_.start()};
_.r.pause=function(){this.JSC$12933_taskManager_.pause()};
_.r.getTaskManager=function(){return this.JSC$12933_taskManager_};
_.r.getNetworkManager=function(){return this.JSC$12933_networkManager_};
var T2J=null,AiJ=[],KV=0,nV=0,Ef=null,w5c=!1,$7=null,FFQ=void 0,yKG=function(){var c=(0,_.yb3)();c&&F_F(c,c.mechanism.__iterator__(!0))},SL=function(c){this.token=c};
SL.getInstance=function(){var c;return _.k(function(f){if(f.nextAddress==1)return f.yield(_.dR(),2);c=f.yieldResult;if(!c)return f.return();SL.instance||(SL.instance=new SL(c));return f.return(SL.instance)})};
var $TC=function(c){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(KFJ(c.token),2);f=d.yieldResult;return d.return(f.clear("resource-manifest-assets"))})},QL=function(c){this.token=c};
QL.getInstance=function(){var c;return _.k(function(f){if(f.nextAddress==1)return f.yield(_.dR(),2);c=f.yieldResult;if(!c)return f.return();QL.instance||(QL.instance=new QL(c));return f.return(QL.instance)})};
var EnS=function(c){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(KFJ(c.token),2);f=d.yieldResult;return d.yield(f.clear("auth"),0)})},RgF=!1,War=function(c){_.cN.call(this,c)};
_.K(War,_.At_);var DoS="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(" ");ntS()&&DoS.push("details:not(:has(summary))");var QcC=DoS.join(",");var pSc=function(){var c=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return c?parseInt(c[1],10):0},eJi=function(c){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+c)!=-1||document.currentScript.src.indexOf("&"+c)!=-1)},NOS=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},f_C=function(c){c.length?Ihc(c.shift(),function(){f_C(c)}):o0H()},jap=function(c){return"chrome-extension://"+c+"/cast_sender.js"},Ihc=function(c,
f,d){var q=document.createElement("script");
q.onerror=f;d&&(q.onload=d);_.oh(q,_.Q2(c));(document.head||document.documentElement).appendChild(q)},PkG=function(){var c=pSc(),f=[];
if(c>1){var d=c-1;f.push("//www.gstatic.com/eureka/clank/"+c+"/cast_sender.js");f.push("//www.gstatic.com/eureka/clank/"+d+"/cast_sender.js")}return f},o0H=function(){var c=NOS();
c&&c(!1,"No cast extension found")},cYQ=function(){if(RJG){var c=2,f=NOS(),d=function(){c--;
c==0&&f&&f(!0)};
window.__onGCastApiAvailable=d;Ihc("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",o0H,d)}},xL3=function(){cYQ();
var c=PkG();c.push("//www.gstatic.com/eureka/clank/cast_sender.js");f_C(c)},GXF=function(){cYQ();
var c=PkG();c.push.apply(c,_.LT(dhD.map(jap)));c.push("//www.gstatic.com/eureka/clank/cast_sender.js");f_C(c)},RJG=eJi("loadCastFramework")||eJi("loadCastApplicationFramework"),dhD=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var UoQ=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(UoQ,_.d8);var p5r=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(p5r,_.d8);var xoc=function(){var c=new p5r;return _.wn(c,1,3)};var hm=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(hm,_.d8);var x9q=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(x9q,_.d8);var oR3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(oR3,_.d8);oR3.prototype.getToken=function(){return _.aW(this,1)};
oR3.prototype.setToken=function(c){return _.pO(this,1,c)};
var U9c=function(c){return _.Dp(c,3,_.TC,_.jQ())},pOQ=function(c){return _.Dp(c,6,_.TC,_.jQ())};var wX=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(wX,_.d8);wX.prototype.getToken=function(){return _.TD(this,oR3,2)};
wX.prototype.setToken=function(c){return _.BU(this,2,c)};
wX.prototype.getName=function(){return _.aW(this,6)};
var GdD=_.lX(wX);var cri=function(c,f,d){this.requestMessage=c;this.methodDescriptor=f;this.metadata=d};
cri.prototype.getMetadata=function(){return this.metadata};var f2q=function(c,f){f=f===void 0?{}:f;this.responseMessage=c;this.metadata=f;this.status=null};
f2q.prototype.getMetadata=function(){return this.metadata};
f2q.prototype.getStatus=function(){return this.status};var yZ=function(c,f,d,q,Z){this.name=c;this.methodType="unary";this.requestType=f;this.responseType=d;this.requestSerializeFn=q;this.responseDeserializeFn=Z},d6J=function(c,f,d){d=d===void 0?{}:d;
return new cri(f,c,d)};
yZ.prototype.getName=function(){return this.name};var W3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(W3,_.d8);W3.prototype.getHeader=function(){return _.TD(this,hm,1)};
W3.prototype.setHeader=function(c){return _.BU(this,1,c)};
W3.prototype.hasHeader=function(){return _.tr(this,hm,1)};var jWc=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(jWc,_.d8);var qJS=new yZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",W3,jWc,function(c){return c.serialize()},_.lX(jWc));var DS=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(DS,_.d8);DS.prototype.getHeader=function(){return _.TD(this,hm,1)};
DS.prototype.setHeader=function(c){return _.BU(this,1,c)};
DS.prototype.hasHeader=function(){return _.tr(this,hm,1)};var ZSC=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ZSC,_.d8);var M73=new yZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",DS,ZSC,function(c){return c.serialize()},_.lX(ZSC));var ep=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(ep,_.d8);ep.prototype.getHeader=function(){return _.TD(this,hm,1)};
ep.prototype.setHeader=function(c){return _.BU(this,1,c)};
ep.prototype.hasHeader=function(){return _.tr(this,hm,1)};var rrD=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(rrD,_.d8);rrD.prototype.getLink=function(){return _.TD(this,wX,1)};var Cfp=new yZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",ep,rrD,function(c){return c.serialize()},_.lX(rrD));var N3=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(N3,_.d8);N3.prototype.getHeader=function(){return _.TD(this,hm,1)};
N3.prototype.setHeader=function(c){return _.BU(this,1,c)};
N3.prototype.hasHeader=function(){return _.tr(this,hm,1)};var g9H=new yZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",N3,wX,function(c){return c.serialize()},GdD);var kKC=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(kKC,_.d8);var OSr=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(OSr,_.d8);OSr.prototype.getUrl=function(){return _.aW(this,2)};
OSr.prototype.setUrl=function(c){return _.pO(this,2,c)};var l2q=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(l2q,_.d8);var sWC=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(sWC,_.d8);var BnS=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(BnS,_.d8);var CID=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(CID,_.d8);var rEc=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(rEc,_.d8);var iSH=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(iSH,_.d8);var iCJ=_.lX(iSH);var TnQ=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(TnQ,_.d8);var m6r=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(m6r,_.d8);_.r=m6r.prototype;_.r.getHeader=function(){return _.TD(this,hm,1)};
_.r.setHeader=function(c){return _.BU(this,1,c)};
_.r.hasHeader=function(){return _.tr(this,hm,1)};
_.r.getCompletionUrl=function(){return _.aW(this,6)};
_.r.getDeviceId=function(){return _.aW(this,11)};var HSG=new yZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",m6r,iSH,function(c){return c.serialize()},iCJ);var ArC=new Set(["SAPISIDHASH","APISIDHASH"]);var YJC=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(YJC,_.d8);YJC.prototype.getMessage=function(){return _.aW(this,2)};
var F8F=_.lX(YJC);var IU=function(c,f){this.xhrNodeReadableStream_=c.nodeReadableStream;this.grpcResponseDeserializeFn_=f;this.JSC$19128_xhr_=c.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19128_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&t7c(this)},QW3=function(c,f){var d=new bSc;
_.Lx(c.JSC$19128_xhr_,"complete",function(){if(c.JSC$19128_xhr_.isSuccess()){var q=c.JSC$19128_xhr_.getResponseText();var Z;if(Z=f)Z=c.JSC$19128_xhr_,Z.JSC$9739_xhr_&&Z.isComplete()?(Z=Z.JSC$9739_xhr_.getResponseHeader("Content-Type"),Z=Z===null?void 0:Z):Z=void 0,Z=Z==="text/plain";if(Z){if(!atob)throw Error("Nj");q=atob(q)}try{var M=c.grpcResponseDeserializeFn_(q)}catch(O){P3(c,XOC(new _.LF(13,"Error when deserializing response data; error: "+O+(", response: "+q)),d));return}q=_.pCY(c.JSC$19128_xhr_.getStatus());
K8r(c,E9C(c));q==0?n9r(c,M):P3(c,XOC(new _.LF(q,"Xhr succeeded but the status code is not 200"),d))}else{q=c.JSC$19128_xhr_.getResponseText();M=E9C(c);if(q){var g=$6i(c,q);q=g.code;Z=g.details;g=g.metadata}else q=2,Z="Rpc failed due to xhr error. uri: "+String(c.JSC$19128_xhr_.JSC$9739_lastUri_)+", error code: "+c.JSC$19128_xhr_.JSC$9739_lastErrorCode_+", error: "+c.JSC$19128_xhr_.getLastError(),g=M;K8r(c,M);P3(c,XOC(new _.LF(q,Z,g),d))}})},t7c=function(c){c.xhrNodeReadableStream_.on("data",function(f){if("1"in
f){var d=f["1"];
try{var q=c.grpcResponseDeserializeFn_(d)}catch(Z){P3(c,new _.LF(13,"Error when deserializing response data; error: "+Z+(", response: "+d)))}q&&n9r(c,q)}if("2"in f)for(f=$6i(c,f["2"]),d=0;d<c.onStatusCallbacks_.length;d++)c.onStatusCallbacks_[d](f)});
c.xhrNodeReadableStream_.on("end",function(){K8r(c,E9C(c));for(var f=0;f<c.onEndCallbacks_.length;f++)c.onEndCallbacks_[f]()});
c.xhrNodeReadableStream_.on("error",function(){if(c.JSC$19128_onErrorCallbacks_.length!=0){var f=c.JSC$19128_xhr_.JSC$9739_lastErrorCode_;f!==0||c.JSC$19128_xhr_.isSuccess()||(f=6);var d=-1;switch(f){case 0:var q=2;break;case 7:q=10;break;case 8:q=4;break;case 6:d=c.JSC$19128_xhr_.getStatus();q=_.pCY(d);break;default:q=14}K8r(c,E9C(c));f=_.t5H(f)+", error: "+c.JSC$19128_xhr_.getLastError();d!=-1&&(f+=", http status code: "+d);P3(c,new _.LF(q,f))}})},E9C=function(c){var f={},d=Tyr(c.JSC$19128_xhr_);
Object.keys(d).forEach(function(q){f[q]=d[q]});
return f},$6i=function(c,f){var d=2,q={};
try{var Z=F8F(f);d=_.qx(Z,1);var M=Z.getMessage();_.db(Z,BOJ,3,_.jQ()).length&&(q["grpc-web-status-details-bin"]=f)}catch(g){c.JSC$19128_xhr_&&c.JSC$19128_xhr_.getStatus()===404?(d=5,M="Not Found: "+String(c.JSC$19128_xhr_.JSC$9739_lastUri_)):(d=14,M="Unable to parse RpcStatus: "+g)}return{code:d,details:M,metadata:q}};
IU.prototype.on=function(c,f){c=="data"?this.onDataCallbacks_.push(f):c=="metadata"?this.onMetadataCallbacks_.push(f):c=="status"?this.onStatusCallbacks_.push(f):c=="end"?this.onEndCallbacks_.push(f):c=="error"&&this.JSC$19128_onErrorCallbacks_.push(f);return this};
var RU=function(c,f){f=c.indexOf(f);f>-1&&c.splice(f,1)};
IU.prototype.removeListener=function(c,f){c=="data"?RU(this.onDataCallbacks_,f):c=="metadata"?RU(this.onMetadataCallbacks_,f):c=="status"?RU(this.onStatusCallbacks_,f):c=="end"?RU(this.onEndCallbacks_,f):c=="error"&&RU(this.JSC$19128_onErrorCallbacks_,f);return this};
IU.prototype.cancel=function(){this.JSC$19128_xhr_.abort()};
var n9r=function(c,f){for(var d=0;d<c.onDataCallbacks_.length;d++)c.onDataCallbacks_[d](f)},K8r=function(c,f){for(var d=0;d<c.onMetadataCallbacks_.length;d++)c.onMetadataCallbacks_[d](f)},P3=function(c,f){for(var d=0;d<c.JSC$19128_onErrorCallbacks_.length;d++)c.JSC$19128_onErrorCallbacks_[d](f)};
IU.prototype.cancel=IU.prototype.cancel;IU.prototype.removeListener=IU.prototype.removeListener;IU.prototype.on=IU.prototype.on;var bSc=function(){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.K(bSc,Error);var Up=function(c){this.JSC$19137_worker_=c.worker||null;this.JSC$19137_streamBinaryChunks_=c.streamBinaryChunks||!1;this.JSC$19137_credentialsMode_=void 0};
_.rn(Up,_.o5C);Up.prototype.createInstance=function(){var c=new p6(this.JSC$19137_worker_,this.JSC$19137_streamBinaryChunks_);this.JSC$19137_credentialsMode_&&c.setCredentialsMode(this.JSC$19137_credentialsMode_);return c};
Up.prototype.setCredentialsMode=function(c){this.JSC$19137_credentialsMode_=c};
var p6=function(c,f){_.KF.call(this);this.JSC$19141_worker_=c;this.JSC$19141_streamBinaryChunks_=f;this.JSC$19141_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$19141_responseHeaders_=null;this.JSC$19141_method_="GET";this.JSC$19141_url_="";this.inProgress_=!1;this.JSC$19141_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.rn(p6,_.KF);p6.prototype.open=function(c,f){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$19141_method_=c;this.JSC$19141_url_=f;this.readyState=1;xg(this)};
p6.prototype.send=function(c){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var f={headers:this.requestHeaders_,method:this.JSC$19141_method_,credentials:this.JSC$19141_credentialsMode_,cache:void 0,signal:this.abortController_.signal};c&&(f.body=c);(this.JSC$19141_worker_||_.dz).fetch(new Request(this.JSC$19141_url_,f)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
p6.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,oU(this));this.readyState=0};
p6.prototype.handleResponse_=function(c){if(this.inProgress_&&(this.fetchResponse_=c,this.JSC$19141_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19141_responseHeaders_=c.headers,this.readyState=2,xg(this)),this.inProgress_&&(this.readyState=3,xg(this),this.inProgress_)))if(this.responseType==="arraybuffer")c.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.dz.ReadableStream!==
"undefined"&&"body"in c){this.currentReader_=c.body.getReader();if(this.JSC$19141_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$19141_textDecoder_=new TextDecoder;SJD(this)}else c.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var SJD=function(c){c.currentReader_.read().then(c.handleDataFromStream_.bind(c)).catch(c.handleSendFailure_.bind(c))};
p6.prototype.handleDataFromStream_=function(c){if(this.inProgress_){if(this.JSC$19141_streamBinaryChunks_&&c.value)this.response.push(c.value);else if(!this.JSC$19141_streamBinaryChunks_){var f=c.value?c.value:new Uint8Array(0);if(f=this.JSC$19141_textDecoder_.decode(f,{stream:!c.done}))this.response=this.responseText+=f}c.done?oU(this):xg(this);this.readyState==3&&SJD(this)}};
p6.prototype.handleResponseText_=function(c){this.inProgress_&&(this.response=this.responseText=c,oU(this))};
p6.prototype.handleResponseArrayBuffer_=function(c){this.inProgress_&&(this.response=c,oU(this))};
p6.prototype.handleSendFailure_=function(){this.inProgress_&&oU(this)};
var oU=function(c){c.readyState=4;c.fetchResponse_=null;c.currentReader_=null;c.JSC$19141_textDecoder_=null;xg(c)};
p6.prototype.setRequestHeader=function(c,f){this.requestHeaders_.append(c,f)};
p6.prototype.getResponseHeader=function(c){return this.JSC$19141_responseHeaders_?this.JSC$19141_responseHeaders_.get(c.toLowerCase())||"":""};
p6.prototype.getAllResponseHeaders=function(){if(!this.JSC$19141_responseHeaders_)return"";for(var c=[],f=this.JSC$19141_responseHeaders_.entries(),d=f.next();!d.done;)d=d.value,c.push(d[0]+": "+d[1]),d=f.next();return c.join("\r\n")};
p6.prototype.setCredentialsMode=function(c){this.JSC$19141_credentialsMode_=c};
var xg=function(c){c.onreadystatechange&&c.onreadystatechange.call(c)};
Object.defineProperty(p6.prototype,"withCredentials",{get:function(){return this.JSC$19141_credentialsMode_==="include"},
set:function(c){this.setCredentialsMode(c?"include":"same-origin")}});var L8S=function(c){var f="";_.zV.forEach(c,function(d,q){f+=q;f+=":";f+=d;f+="\r\n"});
return f},zHH=function(c,f,d){if(_.zV.isEmpty(d))return c;
d=L8S(d);if(typeof c==="string")return _.I_(c,_.ND(f),d);_.Nx(c,f,d);return c};var Jrr=function(){this.isInputValid_=!0;this.JSC$19146_streamPos_=0;this.leftoverInput_=""};
Jrr.prototype.isInputValid=function(){return this.isInputValid_};
Jrr.prototype.decode=function(c){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Sj`"+this.JSC$19146_streamPos_+"`stream already broken`"+c);this.leftoverInput_+=c;c=Math.floor(this.leftoverInput_.length/4);if(c==0)return null;try{var f=_.IPl(this.leftoverInput_.slice(0,c*4))}catch(d){throw f=this.leftoverInput_,c=d.message,this.isInputValid_=!1,Error("Sj`"+this.JSC$19146_streamPos_+"`"+c+"`"+f);}this.JSC$19146_streamPos_+=c*4;this.leftoverInput_=this.leftoverInput_.slice(c*4);return f};var Jf=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19149_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Jf.prototype.isInputValid=function(){return this.state_!=3};
var GB=function(c,f,d,q){c.state_=3;c.errorMessage_="The stream is broken @"+c.JSC$19149_streamPos_+"/"+d+". Error: "+q+". With input:\n"+f;throw Error(c.errorMessage_);};
Jf.prototype.acceptsBinaryInput=function(){return!0};
Jf.prototype.parse=function(c){function f(l){l&128&&GB(M,g,O,"invalid tag");(l&7)!=2&&GB(M,g,O,"invalid wire type");M.tag_=l>>>3;M.tag_!=1&&M.tag_!=2&&M.tag_!=15&&GB(M,g,O,"unexpected tag");M.state_=1;M.length_=0;M.countLengthBytes_=0}
function d(l){M.countLengthBytes_++;M.countLengthBytes_==5&&l&240&&GB(M,g,O,"message length too long");M.length_|=(l&127)<<(M.countLengthBytes_-1)*7;l&128||(M.state_=2,M.countMessageBytes_=0,typeof Uint8Array!=="undefined"?M.messageBuffer_=new Uint8Array(M.length_):M.messageBuffer_=Array(M.length_),M.length_==0&&Z())}
function q(l){M.messageBuffer_[M.countMessageBytes_++]=l;M.countMessageBytes_==M.length_&&Z()}
function Z(){if(M.tag_<15){var l={};l[M.tag_]=M.messageBuffer_;M.result_.push(l)}M.state_=0}
for(var M=this,g=c instanceof Array?c:new Uint8Array(c),O=0;O<g.length;){switch(M.state_){case 3:GB(M,g,O,"stream already broken");break;case 0:f(g[O]);break;case 1:d(g[O]);break;case 2:q(g[O]);break;default:throw Error("Tj`"+M.state_);}M.JSC$19149_streamPos_++;O++}c=M.result_;M.result_=[];return c.length>0?c:null};var vtG=function(){this.errorMessage_=null;this.JSC$19152_streamPos_=0;this.base64Decoder_=new Jrr;this.pbParser_=new Jf};
vtG.prototype.isInputValid=function(){return this.errorMessage_===null};
var a2S=function(c,f,d){c.errorMessage_="The stream is broken @"+c.JSC$19152_streamPos_+". Error: "+d+". With input:\n"+f;throw Error(c.errorMessage_);};
vtG.prototype.acceptsBinaryInput=function(){return!1};
vtG.prototype.parse=function(c){this.errorMessage_!==null&&a2S(this,c,"stream already broken");var f=null;try{var d=this.base64Decoder_.decode(c);f=d===null?null:this.pbParser_.parse(d)}catch(q){a2S(this,c,q.message)}this.JSC$19152_streamPos_+=c.length;return f};var utS=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19155_streamPos_=0;this.result_=[];this.statusParsed_=!1};
utS.prototype.isInputValid=function(){return this.errorMessage_===null};
utS.prototype.acceptsBinaryInput=function(){return!1};
utS.prototype.parse=function(c){function f(l){M.state_=6;M.errorMessage_="The stream is broken @"+M.JSC$19155_streamPos_+"/"+g+". Error: "+l+". With input:\n";throw Error(M.errorMessage_);}
function d(){M.jsonStreamParser_=new _.gq({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function q(l){if(l)for(var m=0;m<l.length;m++){var H={};H[1]=l[m];M.result_.push(H)}}
function Z(l){if(l){(M.statusParsed_||l.length>1)&&f("extra status: "+l);M.statusParsed_=!0;var m={};m[2]=l[0];M.result_.push(m)}}
for(var M=this,g=0;g<c.length;){var O;if(O=M.state_!==2){a:{for(;g<c.length;){if(!_.Cn(c[g])){O=!0;break a}g++;M.JSC$19155_streamPos_++}O=!1}O=!O}if(O)return null;switch(M.state_){case 6:f("stream already broken");break;case 0:c[g]==="["?(M.state_=1,g++,M.JSC$19155_streamPos_++):f("unexpected input token");break;case 1:c[g]==="["?(M.state_=2,d()):c[g]===","||c.slice(g,g+5)=="null,"?M.state_=3:c[g]==="]"?(M.state_=5,g++,M.JSC$19155_streamPos_++):f("unexpected input token");break;case 2:O=M.jsonStreamParser_.parse(c.substring(g));
q(O);M.jsonStreamParser_.done()?(M.state_=3,O=M.jsonStreamParser_.JSC$11372_buffer_,M.JSC$19155_streamPos_+=c.length-g-O.length,c=O,g=0):(M.JSC$19155_streamPos_+=c.length-g,g=c.length);break;case 3:c[g]===","||c.slice(g,g+5)=="null,"?(M.state_=4,d(),M.jsonStreamParser_.parse("["),g+=c[g]===","?1:5,M.JSC$19155_streamPos_++):c[g]==="]"&&(M.state_=5,g++,M.JSC$19155_streamPos_++);break;case 4:O=M.jsonStreamParser_.parse(c.substring(g));Z(O);M.jsonStreamParser_.done()?(M.state_=5,O=M.jsonStreamParser_.JSC$11372_buffer_,
M.JSC$19155_streamPos_+=c.length-g-O.length,c=O,g=0):(M.JSC$19155_streamPos_+=c.length-g,g=c.length);break;case 5:f("extra input after stream end")}}return M.result_.length>0?(c=M.result_,M.result_=[],c):null};var V7c=function(c){this.JSC$19158_xhr_=c;this.JSC$19158_parser_=null;this.status_=this.JSC$19158_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19158_textDecoder_=null;this.JSC$19158_eventHandler_=new _.r2(this);this.JSC$19158_eventHandler_.listen(this.JSC$19158_xhr_,"readystatechange",this.JSC$19160_readyStateChangeHandler_)},ct=function(c,f){c.status_!=f&&(c.status_=f,c.statusHandler_&&c.statusHandler_())},f7=function(c){c.JSC$19158_eventHandler_.removeAll();
if(c.JSC$19158_xhr_){var f=c.JSC$19158_xhr_;c.JSC$19158_xhr_=null;f.abort();f.dispose()}};
V7c.prototype.getStatus=function(){return this.status_};
V7c.prototype.JSC$19160_readyStateChangeHandler_=function(c){c=c.target;try{if(c==this.JSC$19158_xhr_)a:{var f=_.ap(this.JSC$19158_xhr_),d=this.JSC$19158_xhr_.JSC$9739_lastErrorCode_,q=this.JSC$19158_xhr_.getStatus(),Z=this.JSC$19158_xhr_.getResponseText();c=[];if(this.JSC$19158_xhr_.getResponse()instanceof Array){var M=this.JSC$19158_xhr_.getResponse();M.length>0&&M[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,c=M)}if(!(f<3||f==3&&!Z&&c.length==0))if(q=q==200||q==206,f==4&&(d==8?ct(this,
7):d==7?ct(this,8):q||ct(this,3)),this.JSC$19158_parser_||(this.JSC$19158_parser_=h5q(this.JSC$19158_xhr_),this.JSC$19158_parser_==null&&ct(this,5)),this.status_>2)f7(this);else{if(c.length>this.JSC$19158_pos_){var g=c.length;d=[];try{if(this.JSC$19158_parser_.acceptsBinaryInput())for(var O=0;O<g;O++){var l=this.JSC$19158_parser_.parse(Array.from(c[O]));l&&(d=d.concat(l))}else{l="";if(!this.JSC$19158_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$19158_textDecoder_=new TextDecoder}for(O=
0;O<g;O++)l+=this.JSC$19158_textDecoder_.decode(c[O],{stream:f==4&&O==g-1});d=this.JSC$19158_parser_.parse(l)}c.splice(0,g);d&&this.dataHandler_(d)}catch(H){ct(this,5);f7(this);break a}}else if(Z.length>this.JSC$19158_pos_){O=Z.slice(this.JSC$19158_pos_);this.JSC$19158_pos_=Z.length;try{var m=this.JSC$19158_parser_.parse(O);m!=null&&this.dataHandler_&&this.dataHandler_(m)}catch(H){ct(this,5);f7(this);break a}}f==4?(Z.length!=0||this.hasStreamingResponseData_?ct(this,2):ct(this,4),f7(this)):ct(this,
1)}}}catch(H){ct(this,6),f7(this)}};var Xgi=function(c){c=this.xhrReader_=c;var f=(0,_.n1)(this.onData_,this);c.dataHandler_=f;c=this.xhrReader_;f=(0,_.n1)(this.onStatusChange_,this);c.statusHandler_=f;this.JSC$19162_callbackMap_={};this.callbackOnceMap_={}};
_.r=Xgi.prototype;_.r.on=function(c,f){var d=this.JSC$19162_callbackMap_[c];d||(d=[],this.JSC$19162_callbackMap_[c]=d);d.push(f);return this};
_.r.addListener=function(c,f){this.on(c,f);return this};
_.r.removeListener=function(c,f){var d=this.JSC$19162_callbackMap_[c];d&&_.wz(d,f);(c=this.callbackOnceMap_[c])&&_.wz(c,f);return this};
_.r.once=function(c,f){var d=this.callbackOnceMap_[c];d||(d=[],this.callbackOnceMap_[c]=d);d.push(f);return this};
_.r.onData_=function(c){var f=this.JSC$19162_callbackMap_.data;f&&uv3(c,f);(f=this.callbackOnceMap_.data)&&uv3(c,f);this.callbackOnceMap_.data=[]};
var uv3=function(c,f){for(var d={},q=0;q<c.length;d={message$jscomp$1002:void 0},q++)d.message$jscomp$1002=c[q],f.forEach(function(Z){return function(M){try{M(Z.message$jscomp$1002)}catch(g){}}}(d))};
Xgi.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:v9S(this,"readable");break;case 5:case 6:case 4:case 7:case 3:v9S(this,"error");break;case 8:v9S(this,"close");break;case 2:v9S(this,"end")}};
var v9S=function(c,f){var d=c.JSC$19162_callbackMap_[f];d&&d.forEach(function(q){try{q()}catch(Z){}});
(d=c.callbackOnceMap_[f])&&d.forEach(function(q){q()});
c.callbackOnceMap_[f]=[]};var hHc=function(){var c={format:"jspb"};c=c===void 0?{}:c;this.suppressCorsPreflight=c.suppressCorsPreflight||_.D5("suppressCorsPreflight",c)||!1;this.withCredentials=c.withCredentials||_.D5("withCredentials",c)||!1;this.streamInterceptors=c.streamInterceptors||[];this.unaryInterceptors=c.unaryInterceptors||[];this.workerScope=c.workerScope;this.chunkedServerStreaming=c.useFetchDownloadStreams||!1},W8J=function(c,f,d,q,Z,M){M=M===void 0?{}:M;
var g=f.substring(0,f.length-Z.name.length),O,l=(O=M)==null?void 0:O.signal;return wg3(function(m){return new Promise(function(H,A){if(l==null?0:l.aborted){var Y=new _.LF(1,"Aborted");Y.cause=l.reason;A(Y)}else{var t={},E=yri(c,m,g);E.on("error",function(J){return void A(J)});
E.on("metadata",function(J){t=J});
E.on("data",function(J){var X=t;X=X===void 0?{}:X;H(new f2q(J,X))});
l&&l.addEventListener("abort",function(){E.cancel();var J=new _.LF(1,"Aborted");J.cause=l.reason;A(J)})}})},c.unaryInterceptors).call(c,d6J(Z,d,q)).then(function(m){return m.responseMessage})},dr=function(c,f,d,q,Z,M){M=M===void 0?{}:M;
return W8J(c,f,d,q,Z,M)};
hHc.prototype.serverStreaming=function(c,f,d,q){var Z=this,M=c.substring(0,c.length-q.name.length);return D6C(function(g){var O=g.methodDescriptor,l=g.getMetadata(),m=eHi(Z,!1);l=NnH(Z,l,m,M+O.getName());var H=I2D(m,O.responseDeserializeFn,!0);g=O.requestSerializeFn(g.requestMessage);m.send(l,"POST",g);return H},this.streamInterceptors).call(this,d6J(q,f,d))};
var yri=function(c,f,d){var q=f.methodDescriptor,Z=f.getMetadata(),M=eHi(c,!0);c=NnH(c,Z,M,d+q.getName());d=I2D(M,q.responseDeserializeFn,!1);QW3(d,Z["X-Goog-Encode-Response-If-Executable"]==="base64");f=q.requestSerializeFn(f.requestMessage);M.send(c,"POST",f);return d},eHi=function(c,f){f=c.chunkedServerStreaming&&!f;
return c.workerScope||f?new _.JC(new Up({worker:c.workerScope,streamBinaryChunks:f})):new _.JC},NnH=function(c,f,d,q){f["Content-Type"]="application/json+protobuf";
f["X-User-Agent"]="grpc-web-javascript/0.1";var Z=f.Authorization;if(Z&&ArC.has(Z.split(" ")[0])||c.withCredentials)d.JSC$9739_withCredentials_=!0;if(c.suppressCorsPreflight)q=zHH(q,"$httpHeaders",f);else for(c=_.C(Object.keys(f)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,d.headers.set(Z,f[Z]);return q},I2D=function(c,f,d){if(d){d=new V7c(c);
var q=new Xgi(d)}return new IU({xhr:c,nodeReadableStream:q},f)},D6C=function(c,f){return f.reduce(function(d,q){return function(Z){return q.intercept(Z,d)}},c)},wg3=function(c,f){return f.reduce(function(d,q){return function(Z){return q.intercept(Z,d)}},c)};var PfS=function(c){this.client_=new hHc;this.hostname_=c==void 0?c:c.replace(/\/+$/,"")};
_.r=PfS.prototype;_.r.JSC$19180_depositGoogleCredential=function(c,f,d){return dr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",c,f||{},M73,d)};
_.r.deleteLink=function(c,f,d){return dr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",c,f||{},qJS,d)};
_.r.JSC$19180_finishOAuth=function(c,f,d){return dr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",c,f||{},Cfp,d)};
_.r.getLink=function(c,f,d){return dr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",c,f||{},g9H,d)};
_.r.startLinkingSession=function(c,f,d){return dr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",c,f||{},HSG,d)};var RHH=[0,Zp3,1,CkC,[0,_.oW,[0,MJQ,-1]],[0,rKJ],[0,gRC,-1]];var U6G=function(){this.storage=new Map},x6r=function(c,f,d,q,Z){if(!c.storage.has(f))return null;
c=_.C(c.storage.get(f));for(f=c.next();!f.done;f=c.next())if(f=f.value,!Z||f.linkName===Z)if(d&&f.scopes&&pgG(f.scopes,d)||q&&f.capabilities&&pgG(f.capabilities,q))return f;return null},o9q=function(c,f,d){if(!d)c.storage.delete(f);
else if(c.storage.has(f)){var q=c.storage.get(f).filter(function(Z){return Z.linkName!==d});
q.length>0?c.storage.set(f,q):c.storage.delete(f)}},pgG=function(c,f){f=_.C(f);
for(var d=f.next();!d.done;d=f.next())if(!c.has(d.value))return!1;return!0};var GK3=function(){var c=_.hk("LINK_GAL_DOMAIN");this.alsDomain1p=_.hk("LINK_GAL_DOMAIN");this.alsDomain3p=c;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},cqC=function(c,f){c.apiKey=f;
return c};
GK3.prototype.build=function(){var c={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");c.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");c.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(c.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)c.apiKey=
this.apiKey,c.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Yj");c.oauthToken=this.oauthToken;c.alsDomain=this.alsDomain3p}c.clientXd3=this.clientXd3;c.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(c.authUser=this.authUser);this.bucket!==void 0&&(c.bucket=this.bucket);this.completionUrl!==void 0&&(c.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(c.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(c.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(c.locale=this.locale);c.loggerType=this.loggerType;c.clientEnvironment=this.clientEnvironment;c.colorScheme=this.colorScheme;c.showCloseOption=this.showCloseOption;return c};var aL=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(aL,_.d8);var fDr=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(fDr,_.d8);var d0C=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(d0C,_.d8);var XM=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(XM,_.d8);var j_F=function(c){return _.VQ(c,1)};var q5p=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(q5p,_.d8);var IrC=_.lX(q5p),VL=[1,2,3,4,5];var Wnr=function(c){try{return IrC(c)}catch(f){return null}},Zoi=function(){},D9r=function(c,f){switch(_.nS(f,VL)){case 4:return(f=_.vg(f,d0C,4,VL))&&c.logStateTransition(_.VQ(f,1)),!0;
case 5:return(f=_.vg(f,fDr,5,VL))&&c.logInternalEvent(_.VQ(f,1)),!0}return!1},PlC=function(c){switch(c){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.WH(c)}};var wOD=function(c,f){var d=this;this.validator=c;this.messageListener=f;this.dismissCallback=function(){MjD(d,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19209_receiveMessage=function(q){q.type==="message"&&(q=q.event_,q!==null&&(new URL(d.iframe.src)).origin===q.origin&&d.validator(q.data,q.origin)&&!d.messageListener(q.data)&&(d.JSC$19209_resolveCb!==void 0&&d.JSC$19209_resolveCb(q.data),rqD(d)))}},NS3=function(c,f,d){c.uiHandler!==void 0&&MjD(c,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(q,Z){c.JSC$19209_resolveCb=q;c.JSC$19209_rejectCb=Z;c.iframe=document.createElement("iframe");_.NS(c.iframe,f);c.uiHandler=d.displayContent(c.iframe,c.dismissCallback);_.Lx(window,"message",c.JSC$19209_receiveMessage,!1,c)})},MjD=function(c,f){c.JSC$19209_rejectCb!==void 0&&c.JSC$19209_rejectCb(f);
rqD(c)},rqD=function(c){c.uiHandler!==void 0&&c.uiHandler.hideContent();
_.bp(window,"message",c.JSC$19209_receiveMessage,!1,c);c.JSC$19209_resolveCb=void 0;c.JSC$19209_rejectCb=void 0;c.uiHandler=void 0;c.iframe=void 0};var C4r=function(c){if(c===2){var f;c=((f=window)==null?0:f.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return c},e5G=function(c){c=C4r(c);
switch(c){case 0:return"light";case 1:return"dark";default:_.WH(c)}};var yQp=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),gx3=function(c,f){this.JSC$19221_linkingSession=c;this.noticeConfig=f;this.displayInfoMap=new Map;var d=new Map;if(_.tr(this.JSC$19221_linkingSession,l2q,7))for(c=_.TD(this.JSC$19221_linkingSession,l2q,7),c=_.db(c,OSr,1,_.jQ()),c=_.C(c),f=c.next();!f.done;f=c.next())f=f.value,d.set(_.VQ(f,1),_.soY(_.TD(f,_.xcY,3)));if(d.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){f=this.noticeConfig.enabledDataUsageNoticeUis;c=f.has(0)?d.get(1):void 0;f=f.has(1)?d.get(2):void 0;d=c!==void 0&&f!==void 0?d.get(3):void 0;var q=this.noticeConfig.nestedOrigins;var Z=new q5p;var M=new aL;Z=_.iX(Z,2,VL,M);M=new q5p;var g=new aL;M=_.iX(M,3,VL,g);g=[];c!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:c,lastEvent:Z,nestedOrigins:q}]),g.push({trustedUrl:c,lastEvent:Z,nestedOrigins:q}));f!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:f,lastEvent:M,nestedOrigins:q}]),g.push({trustedUrl:f,lastEvent:M,nestedOrigins:q}));d!==void 0?this.displayInfoMap.set(3,[{trustedUrl:d,lastEvent:M,nestedOrigins:q}]):this.displayInfoMap.set(3,g)}};var kUH=function(c){var f=new U6G;this.galService=c;this.galCache=f};
kUH.prototype.getLink=function(c){var f=c.serviceId;var d=c.scopes;var q=c.capabilities;var Z=c.linkName;var M=this,g;return _.k(function(O){if(q!==void 0&&d!==void 0)throw Error("Zj");g=x6r(M.galCache,f,d,q,Z);return g!==null?O.return(g):O.return(M.galService.getLink({serviceId:f,sessionId:Math.floor(Math.random()*2147483648),scopes:d,capabilities:q,linkName:Z}).then(function(l){l=ot3(l);var m=M.galCache;m.storage.has(f)?m.storage.get(f).push(l):m.storage.set(f,[l]);return l}))})};
kUH.prototype.deleteLink=function(c,f,d){var q=this;return _.k(function(Z){o9q(q.galCache,c,d);return Z.return(q.galService.deleteLink({serviceId:c,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:f,linkName:d}).then(function(){return!0}))})};var lDC=function(c,f){var d=this;this.validator=c;this.msgHandler=f;this.closedPopupTimeout=this.JSC$19243_rejectCb=this.JSC$19243_resolveCb=this.popup=null;this.JSC$19243_receiveMessage=function(q){if(q!==null&&(q=q.event_,q.source===d.popup)){var Z=q.data;if(d.validator(Z,q.origin)){var M;(M=d.msgHandler)!=null&&M.call(d,Z)||(d.JSC$19243_resolveCb!==null&&d.JSC$19243_resolveCb(Z),OoG(d))}}}};
lDC.prototype.open=function(c,f){var d=this;this.popup!==null&&s_S(this);return new Promise(function(q,Z){d.JSC$19243_resolveCb=q;d.JSC$19243_rejectCb=Z;d.popup=_.PU(window,c,"",f);_.Lx(window,"message",d.JSC$19243_receiveMessage,!1,d);B4F(d)})};
var s_S=function(c,f){c.JSC$19243_rejectCb!==null&&c.JSC$19243_rejectCb(f);OoG(c)},OoG=function(c){c.closedPopupTimeout&&(c.closedPopupTimeout.cancel(),c.closedPopupTimeout=null);
c.popup&&c.popup.close();_.bp(window,"message",c.JSC$19243_receiveMessage,!1,c);c.popup=null;c.JSC$19243_resolveCb=null;c.JSC$19243_rejectCb=null},B4F=function(c){c.closedPopupTimeout=_.mzv(100).then(function(){c.popup?c.popup.closed?io3(c):B4F(c):s_S(c,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},io3=function(c){c.closedPopupTimeout=_.mzv(100).then(function(){s_S(c,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var T4S=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),m03=function(c,f,d,q,Z,M,g,O,l,m){var H=this;this.serviceId=c;this.sessionId=f;this.galService=d;this.oauthDetails=q;this.galLogger=Z;this.interactionMode=M;this.redirectServiceUrl=g;this.consentLanguageKeys=O;this.dynamicUrlParameters=l;this.partnerConfigMinReadTimestamp=m;this.started=!1;this.JSC$19249_dataValidator=function(A,
Y){var t=T4S.has(Y);t||H.redirectServiceUrl===void 0||(t=H.redirectServiceUrl===Y);return t?A.sentinel==="gdi":!1}};
m03.prototype.complete=function(){var c=this,f;return _.k(function(d){if(c.interactionMode!==1)return d.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));f=v7.getRedirectStateFromUri();return f===null?d.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):d.return(Hoc(c,f))})};
m03.prototype.start=function(){var c=this,f;return _.k(function(d){if(c.started)return d.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.aW(c.oauthDetails,1))return d.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(c.interactionMode===1)return v7.setLocation(_.aW(c.oauthDetails,1)),d.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));c.started=!0;c.galLogger.logStateTransition(5);
f=v7.getPostMessagePopup(c.JSC$19249_dataValidator);return d.return(f.open(_.aW(c.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(q){c.started=!1;var Z=c.galLogger;if((q==null?void 0:q.error)!==void 0)throw Z.logInternalEvent(59),Error("$j");if((q==null?void 0:q.redirect_state)===void 0)throw Z.logInternalEvent(131),Error("ak");return Hoc(c,q.redirect_state)}).catch(function(q){c.started=
!1;
return q.errorCode!==void 0?{statusCode:q.errorCode,statusMessage:q.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Hoc=function(c,f){return _.k(function(d){return d.return(Aqp(c.galService,{serviceId:c.serviceId,sessionId:c.sessionId,dynamicUrlParameters:c.dynamicUrlParameters,redirectState:f,consentLanguageKeys:c.consentLanguageKeys,partnerConfigMinReadTimestamp:c.partnerConfigMinReadTimestamp}).then(function(q){var Z={statusCode:1,link:ot3(q.getLink())};J8q(_.KS(q,3))!==void 0&&(Z.callerState=J8q(_.KS(q,3)));c.galLogger.logInternalEvent(134);return Z}))})},v7={getPostMessagePopup:function(c){return new lDC(c)},
getRedirectStateFromUri:function(){var c=_.DU(v7.getLocation()).fragment_;return(new _.C0(c)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(c){_.OTY(window.location,_.XD(c))},
createOAuthFlow:function(c,f){return new m03(c.serviceId,c.sessionId,c.galService,f,c.galLogger,c.interactionMode,c.redirectServiceUrl,c.consentLanguageKeys,c.dynamicUrlParameters,c.partnerConfigMinReadTimestamp)}};var Y5D=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Y5D,_.d8);var FbC=_.lX(Y5D);var tjF=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),boi=function(c,f,d,q,Z,M,g,O,l){var m=this;this.serviceId=c;this.sessionId=f;this.galService=d;this.gsiWebFlowDetails=q;this.colorScheme=Z;this.showCloseOption=M;this.galLogger=g;this.interactionMode=O;this.redirectServiceUrl=l;this.started=!1;this.JSC$19261_dataValidator=function(H,A){var Y=tjF.has(A);Y||m.redirectServiceUrl===
void 0||(Y=m.redirectServiceUrl===A);return Y?H.sentinel==="gal":!1};
this.logEventProcessor=function(H){return H.result?(H=Wnr(H.result))?D9r(m.galLogger,H):!1:!1}};
boi.prototype.complete=function(){var c=this,f,d;return _.k(function(q){if(c.interactionMode!==1)return q.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));f=hf.getRedirectStateFromUri();if(f===void 0)return c.galLogger.JSC$19201_logErrorEvent(131),q.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return d=Kbr(c,f),q.return(ExH(c,d))}catch(Z){return q.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
boi.prototype.start=function(){var c=this,f;return _.k(function(d){if(c.started)return d.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.aW(c.gsiWebFlowDetails,1))return d.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(c.interactionMode===1)return hf.setLocation(nxQ(c,_.aW(c.gsiWebFlowDetails,1))),d.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
c.started=!0;f=hf.getPostMessagePopup(c.JSC$19261_dataValidator,c.logEventProcessor);return d.return(f.open(nxQ(c,_.aW(c.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(q){c.started=!1;if((q==null?void 0:q.result)===void 0)throw c.galLogger.JSC$19201_logErrorEvent(131),Error("ak");q=Kbr(c,q.result);return ExH(c,q)}).catch(function(q){c.started=!1;
return q.errorCode!==void 0?{statusCode:q.errorCode,statusMessage:q.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var nxQ=function(c,f){c=["result_channel",c.interactionMode===1?"2":"1","color_scheme",e5G(c.colorScheme),"show_close_option",c.showCloseOption];return svS(f,c)},ExH=function(c,f){if(f!==null&&_.tr(f,XM,2)){var d,q=f==null?void 0:(d=_.TD(f,XM,2))==null?void 0:_.VQ(d,2);
q&&c.galLogger.JSC$19201_logErrorEvent(PlC(q));return j_F(_.TD(f,XM,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 c.galService.getLink({serviceId:c.serviceId,sessionId:c.sessionId,consistencyKey:_.aW(f,1)}).then(function(Z){Z=ot3(Z);c.galLogger.logInternalEvent(134);return{statusCode:1,link:Z}})},Kbr=function(c,f){f=FbC(f);
if(!_.tr(f,XM,2)&&_.aW(f,1)==="")throw c.galLogger.JSC$19201_logErrorEvent(5),Error("bk");return f},hf={getPostMessagePopup:function(c,f){return new lDC(c,f)},
getRedirectStateFromUri:function(){return _.eQ(_.DU(hf.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(c){_.OTY(window.location,_.XD(c))},
createStreamlinedFlow:function(c,f){return new boi(c.serviceId,c.sessionId,c.galService,f,c.colorScheme,c.showCloseOption,c.galLogger,c.interactionMode,c.redirectServiceUrl)}};var snG=function(){var c=_.m$h("GAL");this.storage=c?new _.Ez(c):null};
snG.prototype.getSession=function(c){if(this.storage!==null)try{var f=this.storage.get("SAVED_SESSION");if(f===void 0)return null;if(f.serviceId===c)return f}catch(d){}return null};var j9=function(){};
_.K(j9,Zoi);j9.prototype.logStateTransition=function(){};
j9.prototype.logInternalEvent=function(){};
j9.prototype.JSC$19201_logErrorEvent=function(){};var $0C=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K($0C,_.d8);$0C.prototype.getCompletionUrl=function(){return _.aW(this,15)};var q8=function(c,f,d,q,Z,M){this.serviceId=c;this.environment=f;this.sessionId=d;this.colorSchemeSelected=q;this.colorThemeDisplayed=Z;this.JSC$19274_transport=M;this.currentState=1};
_.K(q8,Zoi);q8.prototype.logStateTransition=function(c){var f=Q_p(this);f=_.rR(f,3,this.currentState);f=_.rR(f,1,c);this.currentState=c;c=iaJ(1);this.dispatch(f,c)};
q8.prototype.logInternalEvent=function(c){c=iaJ(c);this.dispatch(Q_p(this),c)};
q8.prototype.JSC$19201_logErrorEvent=function(c){var f=Q_p(this);f=_.rR(f,1,10);c=iaJ(c);this.dispatch(f,c)};
var Q_p=function(c){var f=new $0C;f=_.rR(f,1,c.currentState);f=_.b5(f,7,c.serviceId);var d,q;var Z=((d=window)==null?0:(q=d.location)==null?0:q.href)?_.DU(window.location.href).JSC$9976_domain_:"NO_PACKAGE_NAME";d=_.b5(f,8,Z);d=_.rR(d,6,c.environment);d=_.b5(d,5,"100");d=_.rR(d,11,c.colorSchemeSelected);return _.rR(d,12,c.colorThemeDisplayed)};
q8.prototype.dispatch=function(c,f){f===void 0&&(f=new _.lp);var d=f;c=c.serialize();d=_.b5(d,8,c);_.b6(d,12,this.sessionId);this.JSC$19274_transport.dispatch(f)};var S5S=function(c,f){this.loggerType=c;this.sessionIndex=f!=null?f:0},Lbr;
S5S.prototype.create=function(c,f,d,q,Z){switch(this.loggerType){case 0:return new j9;case 1:return Lbr||(Lbr=(new _.OS(555,this.sessionIndex.toString())).build()),new q8(c,f,d,q,Z,Lbr);default:_.WH(this.loggerType,"unknown logger type")}};var wf=[6,2,3,1],AEQ=new Map([[4,1],[1,6],[2,2],[3,3]]),d$c={statusCode:7,statusMessage:"Failed to create flow object"},OC3=function(c,f,d,q,Z,M,g,O,l,m){this.serviceId=c;this.sessionId=f;this.config=d;this.galService=q;this.JSC$19281_linkingSession=Z;this.googleScopes=M;this.callerState=g;this.consentLanguageKeys=O;this.dynamicUrlParameters=l;this.partnerConfigMinReadTimestamp=m;this.currentFlow=0;q=this.JSC$19281_linkingSession;Z=new Set;_.tr(q,rEc,1)&&Z.add(1);_.tr(q,BnS,2)&&_.tr(q,CID,6)&&Z.add(2);
_.tr(q,sWC,3)&&_.tr(q,CID,6)&&Z.add(3);_.tr(q,kKC,4)&&Z.add(6);this.supportedFlows=Z;q=d.loggerType;Z=d.clientEnvironment;a:{M=d.colorScheme;switch(M){case 0:M=1;break a;case 1:M=2;break a;case 2:M=3;break a;default:_.WH(M)}M=void 0}a:{g=d.colorScheme;g=C4r(g);switch(g){case 0:g=1;break a;case 1:g=2;break a;default:_.WH(g)}g=void 0}this.galLogger=(new S5S(q,d.authUser)).create(c,Z,f,M,g)},JqD=function(c){return new Promise(function(f){var d,q,Z,M,g,O,l,m,H,A;
return _.k(function(Y){switch(Y.nextAddress){case 1:d=gCH(c.currentFlow,c.supportedFlows),q=!1,Z=new gx3(c.JSC$19281_linkingSession,c.config.dataUsageNoticeConfig);case 2:if(d===void 0){Y.jumpTo(4);break}_.iY(Y,5);var t=Z,E=d,J=void 0;q?E===1&&(J=t.displayInfoMap.get(2)):E===2||E===3?J=t.displayInfoMap.get(1):E===1&&(J=t.displayInfoMap.get(3));M=J?J:[];g=c.consentLanguageKeys;O=_.C(M);l=O.next();case 7:if(l.done)return c.currentFlow=d,Y.yield(qxi(z8S(c,g)),11);m=l.value;return Y.yield(R5q(m,c.config.dataUsageNoticeConfig.uiAdapter,
c.config.colorScheme,c.galLogger),10);case 10:H=Y.yieldResult;if(H.statusCode!==1)return BWq(c.serviceId),c.currentFlow=0,f(uT({statusCode:H.statusCode,statusMessage:H.statusMessage},c.callerState)),Y.return();H.consentLanguageKeys!==void 0&&(g=H.consentLanguageKeys);l=O.next();Y.jumpTo(7);break;case 11:A=Y.yieldResult;if(A.statusCode!==10)return A.statusCode!==6&&(BWq(c.serviceId),c.currentFlow=0),A.statusCode!==1&&c.callerState!==void 0&&(A.callerState=c.callerState),f(A),Y.return();_.Pq(Y,6);break;
case 5:_.Yw(Y);case 6:d=gCH(c.currentFlow,c.supportedFlows);q=!0;Y.jumpTo(2);break;case 4:BWq(c.serviceId),c.currentFlow=0,f(uT({statusCode:12,statusMessage:"Linking failed"},c.callerState)),_.Fm(Y)}})})},m$c=function(c,f,d){c.currentFlow=f;
return ZCr(z8S(c,d)).then(function(q){return q.statusCode===10&&c.config.interactionMode===1&&gCH(c.currentFlow,c.supportedFlows)!==void 0?JqD(c):q})},z8S=function(c,f){return{flowParams:{serviceId:c.serviceId,
sessionId:c.sessionId,galService:c.galService,galLogger:c.galLogger,interactionMode:c.config.interactionMode,redirectServiceUrl:c.config.redirectServiceUrl,colorScheme:c.config.colorScheme,consentLanguageKeys:f,dynamicUrlParameters:c.dynamicUrlParameters,showCloseOption:c.config.showCloseOption,partnerConfigMinReadTimestamp:c.partnerConfigMinReadTimestamp},currentFlow:c.currentFlow,config:c.config,session:c.JSC$19281_linkingSession,googleScopes:c.googleScopes,callerState:c.callerState}};var FdD=function(c,f){this.config=c;this.galService=f.getService();this.JSC$19294_galRepository=f.JSC$19312_galRepository};
FdD.prototype.getLink=function(c,f){return aDF(this,c,f)};
var aDF=function(c,f,d){return c.JSC$19294_galRepository.getLink({serviceId:f,scopes:void 0,capabilities:void 0,linkName:d}).then(function(q){return{statusCode:1,link:q}}).catch(function(q){return{statusCode:YxJ(q.code),
statusMessage:q.message}})};
FdD.prototype.deleteLink=function(c,f){return this.JSC$19294_galRepository.deleteLink(c,this.config.accountLinkingEntryPoint,f).then(function(){return{statusCode:1}}).catch(function(d){return{statusCode:YxJ(d.code),
statusMessage:d.message}})};
FdD.prototype.startLinkingSession=function(c){var f=c.serviceId;var d=c.sessionId;return l83({serviceId:f,sessionId:d!==void 0?d:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:c.loginHint,callerState:c.callerState,consentLanguageKeys:c.consentLanguageKeys,linkName:c.linkName,dynamicUrlParameters:c.dynamicUrlParameters,partnerConfigMinReadTimestamp:c.partnerConfigMinReadTimestamp})};var ZC=function(c,f,d,q,Z,M,g){this.apiKey=f;this.authUser=d;this.oauthToken=q;this.bucket=Z;this.locale=M;this.galSdkEventHandler=g;if(q===void 0){if(f===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new PfS(c)};
ZC.prototype.deleteLink=function(c){var f=c.serviceId;var d=c.sessionId;var q=c.accountLinkingEntryPoint;var Z=c.linkName;var M=this,g;return _.k(function(O){var l=(new W3).setHeader(M.getHeader(d));var m=Vj3({serviceId:f,linkName:Z});l=_.BU(l,2,m);g=_.wn(l,3,q);return O.return(M.makeRequest(M.galServiceClient.deleteLink,g,[1,3],[2,4]))})};
var Aqp=function(c,f){var d=f.serviceId;var q=f.sessionId;var Z=f.dynamicUrlParameters;var M=f.redirectState;var g=f.consentLanguageKeys;var O=f.partnerConfigMinReadTimestamp;var l;return _.k(function(m){var H=(new ep).setHeader(c.getHeader(q,Z));H=_.pO(H,2,d);l=_.pO(H,4,M);g!==void 0&&_.pO(l,5,g);O!==void 0&&_.BU(l,6,O);return m.return(c.makeRequest(c.galServiceClient.JSC$19180_finishOAuth,l,[1,3],[2,4]))})};
ZC.prototype.getLink=function(c){var f=c.serviceId;var d=c.sessionId;var q=c.scopes;var Z=c.capabilities;var M=c.consistencyKey;var g=c.linkName;var O=this,l;return _.k(function(m){var H=(new N3).setHeader(O.getHeader(d)),A=Vj3({serviceId:f,scopes:q,capabilities:Z,linkName:g});l=_.BU(H,2,A);M!==void 0&&(H=xoc(),H=_.pO(H,2,M),_.BU(l,3,H));return m.return(O.makeRequest(O.galServiceClient.getLink,l,[1,3],[2,4]))})};
var MUQ=function(c,f){var d=f.serviceId;var q=f.sessionId;var Z=f.googleScopes;var M=f.consistencyKey;var g;return _.k(function(O){var l=(new DS).setHeader(c.getHeader(q));l=_.pO(l,2,d);var m=Array.from(Z.values());l=_.RG(l,3,m,_.kS);m=xoc();m=_.pO(m,2,M);g=_.BU(l,4,m);return O.return(c.makeRequest(c.galServiceClient.JSC$19180_depositGoogleCredential,g,[1,3],[2,4]))})};
ZC.prototype.startLinkingSession=function(c){var f=c.serviceId;var d=c.sessionId;var q=c.scopes;var Z=c.capabilities;var M=c.loginHint;var g=c.supportedFlows;var O=c.completionUrl;var l=c.usePingPong;var m=c.twoWayLinking;var H=c.accountLinkingEntryPoint;var A=c.callerState;var Y=c.consentLanguageKeys;var t=c.googleScopes;var E=c.dataUsageNoticeConfig;var J=c.linkName;var X=c.dynamicUrlParameters;var u=c.partnerConfigMinReadTimestamp;var W=this,p,N;return _.k(function(I){if(Z!==void 0&&q!==void 0)throw Error("Zj");
var R=(new m6r).setHeader(W.getHeader(d,X));p=_.pO(R,2,f);J!==void 0&&_.pO(p,14,J);if(Z!==void 0){R=p;var qN=Array.from(Z.values());_.RG(R,5,qN,_.kS)}else q!==void 0&&(R=p,qN=Array.from(q.values()),_.RG(R,3,qN,_.kS));O!==void 0&&_.pO(p,6,O);l!==void 0&&_.zc(p,15,l);g!==void 0&&(R=p,qN=Array.from(g.values()),_.RG(R,4,qN,_.pj));if(m!==void 0){if(m&&(!t||t.size===0))throw Error("dk");_.zc(p,8,m)}H!==void 0&&_.wn(p,9,H);M!==void 0&&_.pO(p,13,M);A!==void 0&&(R=p,qN=(new TextEncoder).encode(A),_.p3(R,12,
_.Su(qN,!1),_.QF()));Y!==void 0&&_.pO(p,16,Y);u!==void 0&&_.BU(p,18,u);if(E!==void 0&&E.size>0||t!==void 0&&t.size>0)N=new TnQ,t!==void 0&&t.size>0&&(R=N,qN=Array.from(t.values()),_.RG(R,1,qN,_.kS)),E!==void 0&&(E.has(0)&&_.XDN(N,2,_.pj,1,_.oK),E.has(1)&&_.XDN(N,2,_.pj,2,_.oK)),_.BU(p,17,N);return I.return(W.makeRequest(W.galServiceClient.startLinkingSession,p,[1],[2]))})};
ZC.prototype.getMetadata=function(){var c=this,f,d;return _.k(function(q){f={};c.useFpa?(f["X-Goog-Api-Key"]=c.apiKey,f["X-Goog-AuthUser"]=c.authUser!==void 0?c.authUser.toString():"0",(d=_.Dhe([]))&&(f.Authorization=d)):f.Authorization="Bearer "+c.oauthToken;c.locale&&(f["accept-language"]=c.locale);return q.return(f)})};
ZC.prototype.makeRequest=function(c,f,d,q){var Z=this,M;return _.k(function(g){if(g.nextAddress==1)return g.yield(Z.getMetadata(),2);M=g.yieldResult;X1Q(Z,d);return g.return(c.bind(Z.galServiceClient)(f,M).finally(function(){X1Q(Z,q)}))})};
var X1Q=function(c,f){c.galSdkEventHandler!==void 0&&f.forEach(function(d){c.galSdkEventHandler.onEvent(d)})};
ZC.prototype.getHeader=function(c,f){var d=new hm;c=_.p3(d,2,_.cD(c),0);c=_.wn(c,5,3);f=_.RG(c,8,f,_.kS);this.bucket!==void 0&&_.pO(f,1,this.bucket);return f};
var Vj3=function(c){var f=c.serviceId;var d=c.scopes;var q=c.capabilities;c=c.linkName;if(q!==void 0&&d!==void 0)throw Error("Zj");var Z=new UoQ;f=_.pO(Z,1,f);q!==void 0?(d=Array.from(q.values()),_.RG(f,5,d,_.kS)):d!==void 0&&(d=Array.from(d.values()),_.RG(f,3,d,_.kS));c!==void 0&&_.pO(f,6,c);return f};var tUi=function(c){this.galService=new ZC(c.alsDomain,c.apiKey,c.authUser,c.oauthToken,c.bucket,c.locale,c.galSdkEventHandler);this.JSC$19312_galRepository=new kUH(this.galService)};
tUi.prototype.getService=function(){return this.galService};var uBH=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(uBH,_.d8);var vxC=function(c){var f=new uBH;return _.rR(f,1,c)};
uBH.prototype.setErrorMessage=function(c){return _.b5(this,2,c)};var h83=[0,_.c1,_.x9,_.c1];var M8=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(M8,_.d8);var w1c=[0,[1,2,3],_.GK,[0,fhD,q_S,-1],_.GK,[0,jv3,-1],_.cIn];var yqp=[0,_.UJ,1,_.c1,_.x9,-1,1,_.j4N,_.RW,_.c1,-1,w1c];var Wb3=[0,_.c1,[0,_.j4N,_.RW,[0,_.x9]],_.pS,[0,_.c1,-1]];var bR=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(bR,_.d8);var D0J=[0,_.x9,_.c1,-2,_.UJ,_.c1,_.UJ,_.c1,-2,1,_.pS];var e8r=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(e8r,_.d8);var N4i=[0,_.UJ];var IDi=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(IDi,_.d8);var P43=[0,_.c1,Wb3,N4i,D0J,yqp];var I7S=_.kh(IDi,P43);var R8G=[0,RHH];var oZi=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(oZi,_.d8);var U0D=[0,[1,3],kdF,_.c1,kdF];var Ff=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(Ff,_.d8);var p1Q=[0,_.c1];var x0G=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(x0G,_.d8);var tm=function(c){return _.vg(c,uBH,2,Yg)},oxi=function(c){var f=new x0G;
return _.iX(f,2,Yg,c)},Yg=[1,
2];var GUp=[0,Yg,_.GK,p1Q,_.GK,h83,_.oW,U0D,1,_.c1,R8G];var cCc=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(cCc,_.d8);var dUJ=function(c){var f=new cCc;return _.iX(f,3,fHC,c)},fHC=[2,
3];var rr=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(rr,_.d8);var jpH=function(c,f){return _.BU(c,2,f)},qA3=function(c,f){return _.BU(c,8,f)},ZF3=function(c,f){return _.BU(c,3,f)};var MWr=[0,_.c1,GUp,P43,_.lJ_,[0,[5,6],[0,_.c1,-2],[0,_.UJ,_.c1,_.x9],[0,w1c],[0,_.x9,_.c1,-1,_.Oqr,_.c1],_.GK,[0,[0,_.UJ],_.c1,-1],_.GK,[0,[3,4],_.c1,-1,_.GK,[0,[0,_.c1,_.pS]],_.GK,[0,[0,[0,[1,2],_.GK,[0],_.GK,[0]]]]]],_.lJ_,-1,[0,fHC,_.c1,_.GK,p1Q,_.GK,h83,_.oW,U0D,[0,RHH]]];var rCc=_.kh(rr,MWr),Cp3=_.OW(MWr);var goi=function(){_.ES.call(this)};
_.K(goi,_.ES);goi.prototype.init=function(){};
new goi;var koJ=_.pp(["data-"]),OFG=_.pp(["aria-"]),lHi=_.pp(["aria-"]),C7=function(c,f){this.isLatencyMeasurementExperiment=c===void 0?!1:c;this.enableDialogA11yFix=f===void 0?!1:f;this.JSC$19341_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.vSj(_.dz.location.href)},RYr=function(c,f){c.onConsentPrimitiveShownCallback=f},spF=function(c,f){return c.overriddenIframeLoadTimeout?c.overriddenIframeLoadTimeout:f!==void 0?f:5E3},prF=function(c){if(c.prewarmPromise!==void 0)return c.prewarmPromise;
c.prewarmPromise=new Promise(function(f,d){gr(c,1);B7C(c,iFF(c,!0),T7C(c));c.iframe?c.prewarmChannel||mUr(c,c.iframe,f):d(Error("ek"))});
c.prewarmPromise.finally(function(){c.prewarmPromise=void 0});
return c.prewarmPromise};
C7.prototype.showPrimitive=function(){var c=this;if(this.consentPromise!==void 0)return this.consentPromise;var f=Date.now();HFD(this,f);this.consentPromise=new Promise(function(d,q){gr(c,0,f);var Z=c.isDarkTheme();c.isLatencyMeasurementExperiment||c.initialLoadingStrategy===1||c.initialLoadingStrategy===2||(c.loadingBar||(c.loadingBar=nCr(getComputedStyle(document.body).direction==="rtl",Z),c.loadingBar.style.position="fixed",c.loadingBar.style.zIndex="15000"),document.body.appendChild(c.loadingBar));
B7C(c,iFF(c),T7C(c));c.iframe?c.channel||ACF(c,c.iframe,d,q):(YAp(c),q(Error("ek")))});
this.consentPromise.finally(function(){c.consentPromise=void 0});
return this.consentPromise};
var ACF=function(c,f,d,q){var Z,M;_.k(function(g){switch(g.nextAddress){case 1:gr(c,3);Z=!1;setTimeout(function(){if(!Z){YAp(c);FJr(c);tWr(c);var O=vxC(7).setErrorMessage("Timeout connecting to iframe");d(qA3(jpH(new rr,oxi(O)),dUJ(O)))}},spF(c,bFq(c)));
if(!c.prewarmPromise){g.jumpTo(2);break}_.iY(g,3);return g.yield(c.prewarmPromise,5);case 5:_.Pq(g,2);break;case 3:_.Yw(g),M=vxC(4).setErrorMessage("Error while prewarming."),d(qA3(jpH(new rr,oxi(M)),dUJ(M)));case 2:c.prewarmChannel&&c.prewarmChannel.send(Cp3(ZF3(new rr,c.consentPrimitiveRequest))),c.channel=_.jj({destination:c.JSC$19341_win,iframe:f,origin:KJC(c),channelName:"cpw",onEstablished:function(){Z=!0;YAp(c);c.isLatencyMeasurementExperiment||(c.JSC$19341_previousBodyOverflow=document.body.style.overflow,
c.JSC$19341_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,c.JSC$19341_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",c.enableDialogA11yFix&&window.addEventListener("blur",c.focusChangeListener));var O=c.iframe;O.style.bottom="0";O.style.position="fixed";O.style.right="0";O.style.border="none";O.style.left="0";O.style.top=
"0";O.style.zIndex="5000";O.style.pointerEvents="";O.style.visibility="";c.initialLoadingStrategy===2||c.initialLoadingStrategy===3?gr(c,4):gr(c,6);var l;(l=c.onConsentPrimitiveShownCallback)==null||l.call(c)},
onMessage:function(O){O=rCc(O.data);switch(_.VQ(O,1)){case 1:FJr(c);var l=$$S(_.TD(O,_.vZ,7));l&&(c.initialLoadingStrategy!==2&&c.initialLoadingStrategy!==3||gr(c,6,l),gr(c,5,l));if(l=$$S(_.TD(O,_.vZ,6)))gr(c,7,l),gr(c,8);var m,H;((m=_.TD(O,x0G,2))==null?void 0:_.nS(m,Yg))!==0&&((H=_.TD(O,cCc,8))==null?void 0:_.nS(H,fHC))!==0||q(Error("fk"));d(O);break;case 2:tWr(c)}}}),_.Fm(g)}})},mUr=function(c,f,d){c.prewarmChannel=_.jj({destination:c.JSC$19341_win,
iframe:f,origin:KJC(c),channelName:"pwcp",onEstablished:function(){gr(c,2);d()}})},KJC=function(c){var f=_.Kq(c.src).toString();
return f&&f.indexOf("://")<0&&f.indexOf("//")!==0?c.origin:_.vSj(f)},iFF=function(c,f){f=f===void 0?!1:f;
var d,q=new Map([["origin",c.origin],["hl",(d=EoQ(c))!=null?d:null]]);f&&q.set("pw","1");f=_.C([["cpr",c.consentPrimitiveRequest.serialize()]]);for(d=f.next();!d.done;d=f.next()){var Z=_.C(d.value);d=Z.next().value;Z=Z.next().value;q.set(d,Z)}c.isDarkTheme()&&q.set("color_scheme","dark");return _.gk(c.src,q)},YAp=function(c){c.isLatencyMeasurementExperiment||c.loadingBar&&document.body.removeChild(c.loadingBar)};
C7.prototype.getSrc=function(){var c=_.ow(this.origin),f;var d=(f=_.TD(this.consentPrimitiveRequest,e8r,3))==null?void 0:_.qx(f,1);f="consent.google.com";d=d?"/u/"+encodeURIComponent(d.toString()):"";(c==null?0:c.endsWith("youtube.com"))?f="consent.youtube.com":(c=c==null?void 0:c.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(f="consent.google."+((c[1]?"co.":"")+encodeURIComponent(c[2])));return _.bX("https://"+f+"/signedin"+d+"/landing")};
var B7C=function(c,f,d){c.iframe||(c.iframe=document.createElement("iframe"),c.iframe.style.width="100%",c.iframe.style.height="100%",d!==112496729&&(c.iframe.style.colorScheme="auto"),c.isLatencyMeasurementExperiment&&(c.iframe.style.display="none"),_.NS(c.iframe,f),c.iframe.setAttribute("jsname","C5o1O"),noJ(c.iframe),document.body.appendChild(c.iframe))},noJ=function(c){c.style.bottom="-200vh";
c.style.position="fixed";c.style.right="-200vw";c.style.border="";c.style.left="";c.style.top="";c.style.zIndex="";c.style.pointerEvents="none";c.style.visibility="hidden"},FJr=function(c){c.iframe&&(c.isLatencyMeasurementExperiment||(c.JSC$19341_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=c.JSC$19341_previousHtmlOverscroll),c.JSC$19341_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=c.JSC$19341_previousBodyOverscroll),c.JSC$19341_previousBodyOverflow!==
void 0&&(document.body.style.overflow=c.JSC$19341_previousBodyOverflow),c.enableDialogA11yFix&&$U3(c,!1)),noJ(c.iframe))};
C7.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&($U3(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var $U3=function(c,f){var d,q,Z=(d=c.iframe)==null?void 0:(q=d.parentElement)==null?void 0:q.children;if(Z)for(d=0;d<Z.length;d++)q=Z[d],q!==c.iframe&&(f?(q.hasAttribute("aria-hidden")&&_.ck([_.j5(koJ)],q,"data-old-aria-hidden",q.getAttribute("aria-hidden")),_.ck([_.j5(OFG)],q,"aria-hidden","true")):(q.removeAttribute("aria-hidden"),q.hasAttribute("data-old-aria-hidden")&&(_.ck([_.j5(lHi)],q,"aria-hidden",q.getAttribute("data-old-aria-hidden")),q.removeAttribute("data-old-aria-hidden"))))},gr=function(c,
f,d){var q;
(q=c.latencyCallback)==null||q.call(c,{latencyType:f,timestampEpochMillis:d!=null?d:Date.now()})};var QpF=function(c,f,d){C7.call(this,f,d===void 0?!1:d);this.consentPrimitiveRequest=c;c=EoQ(this);_.mdr(c);this.src=this.getSrc();var q;this.initialLoadingStrategy=(q=_.TD(this.consentPrimitiveRequest,bR,4))==null?void 0:_.VQ(q,4)},SAp;
_.K(QpF,C7);var PSS=function(c){var f=_.F("enable_primitive_dialog_aria_hide_siblings");c={request:c,enableDialogA11yFix:f===void 0?!1:f};SAp||(SAp=new QpF(c.request,c.isLatencyMeasurementExperiment||_.VQ(c.request,1)===2,c.enableDialogA11yFix));return SAp},EoQ=function(c){var f;
return(f=_.TD(c.consentPrimitiveRequest,bR,4))==null?void 0:_.aW(f,1)},HFD=function(c,f){if(!_.tr(c.consentPrimitiveRequest,M8,5)){var d=c.consentPrimitiveRequest,q=new M8;
_.BU(d,5,q)}var Z;if((Z=_.TD(c.consentPrimitiveRequest,M8,5))==null||_.S34(_.Fv(Z,8))==null){var M;(M=_.TD(c.consentPrimitiveRequest,M8,5))!=null&&_.b6(M,8,f)}},T7C=function(c){var f;
return(f=_.TD(c.consentPrimitiveRequest,M8,5))==null?void 0:_.qx(f,1)};
QpF.prototype.isDarkTheme=function(){var c;return((c=_.TD(this.consentPrimitiveRequest,bR,4))==null?void 0:_.VQ(c,2))===2};
var bFq=function(c){var f;return((f=_.TD(c.consentPrimitiveRequest,bR,4))==null?void 0:_.qx(f,5))||void 0},tWr=function(c){c.channel=void 0;
c.prewarmChannel=void 0;c.iframe&&(document.body.contains(c.iframe)&&document.body.removeChild(c.iframe),c.iframe=void 0);SAp=void 0},x5J=function(c){return C7.prototype.showPrimitive.call(c).then(function(f){return _.TD(f,x0G,2)})};for(var kN={},LJ3=(kN[64]="ma",kN[73]="ogb",kN[89]="cr",kN[21]="test",kN[0]="unkn",kN[137]="con",kN[155]="hl",kN[78]="yt",kN[171]="lp",kN[172]="ap",kN[177]="amo",kN[178]="pqe",kN[74]="gg",kN[1]="gm",kN[140]="am",kN[193]="sc",kN),zqr=_.C(Object.keys(LJ3)),JCi=zqr.next();!JCi.done;JCi=zqr.next());var aHF=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(aHF,_.d8);var VWC=[0,[2,3,4],_.c1,doC,kdF,_.cIn];var X2J=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(X2J,_.d8);var u9F=_.kh(X2J,[0,gRC,_.x9,_.c1,_.x9,_.c1,VWC]);var voq=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(voq,_.d8);voq.prototype.getCommand=function(){return _.VQ(this,1)};
var hqi=function(){var c=new voq;return _.wn(c,1,0)};var w2S=_.OW([0,gRC,_.x9,[0,_.c1,_.x9,-1]]);var yCi=new _.H2("s"),WJc=new _.H2("t"),DUH=new _.H2("u"),eqp=new _.H2("v"),N7c=function(c,f,d){_.AC.call(this,yCi);this.mediaKey=c;this.photoUrl=f;this.photoSource=d};
_.K(N7c,_.AC);var IHH=function(){_.AC.call(this,WJc)};
_.K(IHH,_.AC);var Ppp=function(c){c=c===void 0?!1:c;_.AC.call(this,DUH);this.isError=c};
_.K(Ppp,_.AC);var RqS=function(){_.AC.call(this,eqp)};
_.K(RqS,_.AC);var UUC=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Go3=function(c){if(typeof c=="string"){if(c.charAt(0)==".")return p2q(c.substr(1));if(c.charAt(0)=="["){var f=UUC.exec(c);c=c.indexOf("=")==-1?void 0:f[3];return xUq(f[1],c)}return ooC(c)}return c},p2q=function(c){return function(f){return f.getAttribute&&_.NU(f,c)}},xUq=function(c,f){return function(d){return f!==void 0?d.getAttribute&&d.getAttribute(c)==f:d.hasAttribute&&d.hasAttribute(c)}},ooC=function(c){c=c.toUpperCase();
return function(f){return(f=f.tagName)&&f.toUpperCase()==c}},cMp=function(){return!0};var Og=function(c,f){this.JSC$19369_key_=c;this.JSC$19369_value_=f},l_=function(c){throw Error("gk`"+c.JSC$19369_key_);
},fkr=function(c,f){return new TypeError("hk`"+f+"`"+c.JSC$19369_key_+"`"+c.JSC$19369_value_+"`"+typeof c.JSC$19369_value_)};
Og.prototype.string=function(c){return arguments.length==0?dKC(this):j5Q(this,c)};
var j5Q=function(c,f){var d;return(d=qKr(c))!=null?d:f},dKC=function(c){var f=qKr(c);
f===null&&l_(c);return f},qKr=function(c){var f=c.JSC$19369_value_;
if(f==null)return null;if(typeof f==="string")return f;throw fkr(c,"string");};
Og.prototype.bool=function(c){if(arguments.length==0){var f=this.optionalBool();f===null&&l_(this)}else{var d;f=(d=this.optionalBool())!=null?d:c}return f};
Og.prototype.optionalBool=function(){var c=this.JSC$19369_value_;if(c==null)return null;if(typeof c==="boolean")return c;if(typeof c==="string"){c=c.toLowerCase();if(c==="true"||c==="1")return!0;if(c==="false"||c==="0")return!1}throw fkr(this,"boolean");};
Og.prototype.number=function(c){if(arguments.length==0){var f=Z0r(this);f===null&&l_(this)}else f=Mni(this,c);return f};
var Mni=function(c,f){var d;return(d=Z0r(c))!=null?d:f},Z0r=function(c){var f=c.JSC$19369_value_;
if(f==null)return null;if(typeof f==="number")return f;if(typeof f==="string"){var d=Number(f);if(!isNaN(d)&&(d!==0||f.trim().length!==0))return d}throw fkr(c,"number");};
Og.prototype.toString=function(){return dKC(this)};
Og.prototype.enum=function(c,f){var d=!0,q=void 0,Z;for(Z in c){var M=c[Z];d&&(d=!1,q=typeof M==="number"?Mni(this,f):j5Q(this,f));if(M==q)return q}JSON.stringify(c);return q};
Og.prototype.array=function(c){if(arguments.length==0){var f=rMp(this);f===null&&l_(this);return f}f=rMp(this);return f==null?c:f};
var rMp=function(c){var f=c.JSC$19369_value_;if(f==null)return null;Array.isArray(f)||(typeof f!=="string"?f=[f]:(f=f.trim(),f=f==""?[]:f.split(",").map(function(d){return d.trim()})));
return CJH(c,f)},CJH=function(c,f){var d=c.JSC$19369_key_+"[";
return Array.from(f,function(q,Z){return new Og(d+Z+"]",q)})};
Og.prototype.object=function(c){var f=this.JSC$19369_value_;if(f==null)return c===void 0&&l_(this),c;if(typeof f==="object"&&f.constructor===Object){c={};var d=this.JSC$19369_key_+".",q;for(q in f)c[q]=new Og(d+q,f[q]);return c}throw fkr(this,"object");};var sg=function(c){this.list_=gGJ(c)},gGJ=function(c){if(c instanceof sg)c=c.list_;
else if(c[0]instanceof sg){for(var f=new Set,d=0;d<c.length;d++)for(var q=_.C(c[d].list_),Z=q.next();!Z.done;Z=q.next())f.add(Z.value);c=f}return[].concat(_.LT(c))};
_.r=sg.prototype;_.r.each=function(c,f,d){((d===void 0?0:d)?Qlr:_.Iw)(this.list_,c,f);return this};
_.r.size=function(){return this.list_.length};
_.r.isEmpty=function(){return this.list_.length===0};
_.r.get=function(c){return this.list_[c]||null};
_.r.el=function(){return this.list_[0]||null};
_.r.map=function(c,f){return _.JT(this.list_,c,f)};
_.r.equals=function(c){return this===c||_.UC(this.list_,c.list_)};
_.r.first=function(){return this.list_.length==0?null:new Bt(this.list_[0])};
_.r.last=function(){return this.list_.length==0?null:new Bt(this.list_[this.list_.length-1])};
_.r.find=function(c){var f=[];this.each(function(d){d=d.querySelectorAll(String(c));for(var q=0;q<d.length;q++)f.push(d[q])});
return new sg(f)};
_.r.parent=function(){var c=[];this.each(function(f){(f=f.parentElement||null)&&!_.hP(c,f)&&c.push(f)});
return new sg(c)};
_.r.children=function(){var c=[];this.each(function(f){f=_.u4(f);for(var d=0;d<f.length;d++)c.push(f[d])});
return new sg(c)};
_.r.filter=function(c){c=_.gn(this.list_,Go3(c));return new sg(c)};
_.r.closest=function(c){var f=[],d=Go3(c),q=function(Z){return _.Gr(Z)&&d(Z)};
this.each(function(Z){(Z=_.vv(Z,q,!0))&&!_.hP(f,Z)&&f.push(Z)});
return new sg(f)};
_.r.next=function(c){return keC(this,_.fp3,c)};
_.r.prev=function(c){return keC(this,OpQ,c)};
var keC=function(c,f,d){var q=[];var Z=d?Go3(d):cMp;c.each(function(M){(M=f(M))&&Z(M)&&q.push(M)});
return new sg(q)};
sg.prototype.setClass=function(c){return this.each(function(f){_.eW(f,c)})};
var O0H=function(c,f){return c.each(function(d){_.q5(d,f)})},lkS=function(c,f){return c.each(function(d){_.d_(d,f)})};
sg.prototype.toggleClass=function(c,f){return f===!0?O0H(this,c):f===!1?lkS(this,c):this.each(function(d){_.NU(d,c)?_.d_(d,c):_.q5(d,c)})};
sg.prototype.setText=function(c){return this.each(function(f){_.v1(f,c)})};
var s5F=function(c){c.each(function(f){f.removeAttribute("aria-hidden")})};
sg.prototype.getStyle=function(c){if(this.list_.length>0){var f=this.list_[0],d=f.style[_.Yn(c)];return typeof d!=="undefined"?d:f.style[_.BJj(f,c)]||""}};
sg.prototype.getData=function(c){if(this.list_.length===0)return new Og(c,null);var f=aBc(this.list_[0],c);return new Og(c,f)};
sg.prototype.focus=function(c){try{c?this.el().focus(c):this.el().focus()}catch(f){}return this};
sg.prototype.click=function(){var c=_.X1(this.el());if(c.createEvent){var f=c.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,c.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(f)}else c=c.createEventObject(),c.clientX=0,c.clientY=0,c.screenX=0,c.screenY=0,c.altKey=!1,c.ctrlKey=!1,c.shiftKey=!1,c.button=0,this.el().fireEvent("onclick",c)};
var i_=function(c,f,d,q){function Z(O,l,m){var H=l;l&&l.parentNode&&(H=l.cloneNode(!0));O(H,m)}
q=q===void 0?!1:q;if(c.list_.length==1){var M=c.list_[0],g=function(O){return f(O,M)};
d instanceof sg?d.each(g,void 0,q):Array.isArray(d)?(q?Qlr:_.Iw)(d,g):g(d);return c}return c.each(function(O){d instanceof sg?d.each(function(l){Z(f,l,O)}):Array.isArray(d)?_.Iw(d,function(l){Z(f,l,O)}):Z(f,d,O)})};
_.r=sg.prototype;_.r.append=function(c){return i_(this,function(f,d){f&&d.appendChild(f)},c)};
_.r.appendTo=function(c){(new sg([c])).append(this);return this};
_.r.remove=function(){return i_(this,function(c,f){_.Y6(f)},null)};
_.r.empty=function(){return i_(this,function(c,f){_.a_(f)},null)};
_.r.after=function(c,f){return i_(this,function(d,q){d&&_.XB(d,q)},c,!(f===void 0||f))};
_.r.before=function(c){return i_(this,function(f,d){f&&_.Vv(f,d)},c)};
_.r.replaceWith=function(c){return i_(this,function(f,d){f&&_.o_y(f,d)},c)};
_.r.toggle=function(c){return this.each(function(f){_.IO(f,c)})};
_.r.show=function(){return this.toggle(!0)};
_.r.hide=function(){return this.toggle(!1)};
_.r.trigger=function(c,f,d,q){return B3C(this,c,f,d,q)};
var B3C=function(c,f,d,q,Z){return c.each(function(M){_.YNN(_.X1(M)).triggerWizEventInternal(M,f,d,q,Z)})},Bt=function(c,f){c instanceof sg&&(f=c.list_,c=null);
this.list_=gGJ(c!=null?[c]:f)};
_.rn(Bt,sg);_.r=Bt.prototype;_.r.children=function(){return new sg(Array.prototype.slice.call(_.u4(this.list_[0])))};
_.r.each=function(c,f){c.call(f,this.list_[0],0);return this};
_.r.size=function(){return 1};
_.r.el=function(){return this.list_[0]};
_.r.first=function(){return this};var Ts=function(c,f){f=f===void 0?window:f;this.hostId=c;this.JSC$19380_win=f;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$19380_previousHtmlOverscroll=this.JSC$19380_previousBodyOverscroll=this.JSC$19380_previousBodyOverflow="";this.eventTarget=new _.KF;this.JSC$19380_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
mK3=function(c){var f=i0C(i0C(i0C(new T3i(78),"po"),"hppp"),"hhc");
f.authUser=Number(_.hk("SESSION_INDEX","0"));f.colorScheme=c;return f};
Ts.prototype.getOrigin=function(){return this.origin?this.origin:_.jn(_.d3(_.f0(new _.xn,this.JSC$19380_win.location.protocol),this.JSC$19380_win.location.hostname),this.JSC$19380_win.location.port).toString()};
Ts.prototype.getTargetOrigin=function(){return _.jn(_.d3(_.f0(new _.xn,this.scheme),this.domain),this.port)};
Ts.prototype.preloadIframe=function(c){var f=this;if(this.iframeLoadPromise===void 0){var d=document.createElement("iframe");this.iframe=d;VUc(d,c);this.iframeLoadPromise=new Promise(function(q,Z){var M=!1,g=function(O){O.stopPropagation();d.removeEventListener("error",g);d.removeEventListener("securitypolicyviolation",g);Z(Error("ik",{cause:O}))};
d.addEventListener("error",g);d.addEventListener("securitypolicyviolation",g);setTimeout(function(){M||Z(Error("jk"))},3E4);
H0H(f,d,function(){M=!0;d.removeEventListener("error",g);d.removeEventListener("securitypolicyviolation",g);q()})});
AMC(this);c=this.getTargetOrigin().toString();d.setAttribute("allow","camera "+c+"; display-capture "+c);this.parentElement.appendChild(d)}return this.iframeLoadPromise};
var tnJ=function(c,f){var d,q;return _.k(function(Z){if(Z.nextAddress==1)return d=nCr(getComputedStyle(c.parentElement).direction==="rtl"),c.parentElement.appendChild(d),document.activeElement instanceof HTMLElement&&(c.elementToFocusAfterClose=document.activeElement),_.iY(Z,2),Z.yield(c.preloadIframe(f),4);if(Z.nextAddress!=2){c.parentElement.removeChild(d);c.JSC$19380_previousBodyOverflow=c.parentElement.style.overflow;c.JSC$19380_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
c.JSC$19380_previousBodyOverscroll=c.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";c.parentElement.style.overscrollBehavior="contain";c.parentElement.style.overflow="hidden";var M=c.iframe;M.style.bottom="0";M.style.border="none";M.style.height="100%";M.style.left="0";M.style.position=c.iframePosition;M.style.right="0";M.style.top="0";M.style.width="100%";M.style.zIndex="2202";M.setAttribute("aria-hidden","false");M.setAttribute("aria-modal","true");
c.opened=!0;YKq(c);return _.Pq(Z,0)}q=_.Yw(Z);c.parentElement.removeChild(d);z4r(c.isDarkTheme());F6i(c,!1);throw Error("kk",{cause:q});})},F6i=function(c,f){f=f===void 0?!0:f;
c.iframe!==void 0&&(b0C(c),document.documentElement.style.overscrollBehavior=c.JSC$19380_previousHtmlOverscroll,c.parentElement.style.overscrollBehavior=c.JSC$19380_previousBodyOverscroll,c.parentElement.style.overflow=c.JSC$19380_previousBodyOverflow,c.elementToFocusAfterClose!==void 0&&(c.elementToFocusAfterClose.focus(),c.elementToFocusAfterClose=void 0),f?AMC(c):(c.parentElement.removeChild(c.iframe),c.iframe=void 0,c.iframeLoadPromise=void 0,c.mainChannel=void 0),c.opened=!1)},b0C=function(c){c.backgroundElementsAriaHiddenIsNull&&
(s5F(c.backgroundElementsAriaHiddenIsNull),c.backgroundElementsAriaHiddenIsNull=void 0);
c.backgroundElementsAriaHiddenIsFalse&&(c.backgroundElementsAriaHiddenIsFalse.each(function(f){f.setAttribute("aria-hidden","false")}),c.backgroundElementsAriaHiddenIsFalse=void 0);
c.backgroundElementsWithoutInert&&(c.backgroundElementsWithoutInert.each(function(f){f.removeAttribute("inert")}),c.backgroundElementsWithoutInert=void 0)},YKq=function(c){c.backgroundElementsAriaHiddenIsNull=(new Bt(c.iframe.parentElement)).children().filter(function(f){return f.getAttribute("aria-hidden")===null&&f!==c.iframe});
c.backgroundElementsAriaHiddenIsNull.each(function(f){f.setAttribute("aria-hidden","true")});
c.backgroundElementsAriaHiddenIsFalse=(new Bt(c.iframe.parentElement)).children().filter(function(f){return f.getAttribute("aria-hidden")==="false"&&f!==c.iframe});
c.backgroundElementsAriaHiddenIsFalse.each(function(f){f.setAttribute("aria-hidden","true")});
c.backgroundElementsWithoutInert=(new Bt(c.iframe.parentElement)).children().filter(function(f){return!f.hasAttribute("inert")&&f!==c.iframe});
c.backgroundElementsWithoutInert.each(function(f){f.setAttribute("inert","true")})},AMC=function(c){c=c.iframe;
c.style.bottom="-1000px";c.style.position="fixed";c.style.right="-1000px";c.style.border="";c.style.height="";c.style.left="";c.style.top="";c.style.width="";c.style.zIndex="";c.setAttribute("aria-hidden","true");c.setAttribute("aria-modal","false")};
Ts.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var T3i=function(c,f){Ts.call(this,LJ3[c],f);this.options=[];this.style=""};
_.K(T3i,Ts);var K6i=function(c){c.style="youtube";return c},EGG=function(c,f){c.eventTarget.listen(DUH,f);
return c},nGc=function(c,f){c.eventTarget.listen(yCi,f);
return c},i0C=function(c,f){c.options.push(f);
return c},$KS=function(c){var f=[c.getOrigin()];
c.ancestorOrigins&&f.push.apply(f,_.LT(c.ancestorOrigins));var d=new _.xn(c.JSC$19380_win.location.href),q=c.startUrl?c.startUrl:c.options.includes("po")?"profile-picture/art":"profile-picture";f=K6(_.qK(c.getTargetOrigin(),q),"origin",f);c.startUrl&&_.Nx(f,"startPath",c.startUrl);c.authUser>0&&_.Nx(f,"authuser",c.authUser);c.pageId!==void 0&&_.Nx(f,"pageId",c.pageId);_.Nx(f,"hostId",c.hostId);c.jsMode!==void 0&&_.Nx(f,"jsmode",c.jsMode);c.rectangleRatio!==void 0&&_.Nx(f,"rectangleRatio",c.rectangleRatio);
c.options.length>0&&_.Nx(f,"opts",c.options.join(","));try{for(var Z=_.C(["utm_source","utm_medium","utm_campaign","utm_content"]),M=Z.next();!M.done;M=Z.next()){var g=M.value;_.eQ(d,g)&&_.Nx(f,g,_.eQ(d,g))}var O,l=(O=c.hl)!=null?O:_.eQ(d,"hl");l!==void 0&&_.Nx(f,"hl",l)}catch(m){if(!(m instanceof URIError))throw m;}c.colorScheme&&_.Nx(f,"theme",c.colorScheme);c.style&&_.Nx(f,"style",c.style);return f},Q5J=function(c,f){c.mainChannel=_.jj({destination:c.JSC$19380_win,
iframe:f,origin:c.getTargetOrigin().toString(),channelName:"ow",onMessage:function(d){d=u9F(d.data);if(f===c.iframe)switch(_.VQ(d,1)){case 1:c.eventTarget.dispatchEvent(new Ppp);F6i(c);break;case 2:c.eventTarget.dispatchEvent(new N7c(_.aW(d,4),_.aW(d,2),_.VQ(d,5),_.TD(d,aHF,6)));break;case 0:var q;c.eventTarget.dispatchEvent(new IHH(_.aW(d,2),(q=_.VQ(d,3))!=null?q:0));break;case 3:c.eventTarget.dispatchEvent(new Ppp(!0));F6i(c,!1);break;case 4:c.eventTarget.dispatchEvent(new RqS)}}})},H0H=function(c,
f,d){_.jj({destination:c.JSC$19380_win,
iframe:f,origin:_.jn(_.d3(_.f0(new _.xn,c.scheme),c.domain),c.port).toString(),channelName:"owi",onMessage:function(q){f===c.iframe&&(d!==void 0&&d(),Q5J(c,f),c.opened&&c.mainChannel.send(w2S(hqi())),q.reply(),H0H(c,f))}})};
T3i.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Ts.prototype.preloadIframe.call(this,$KS(this).toString()):this.iframeLoadPromise};
T3i.prototype.openPicker=function(c){var f=this;return _.k(function(d){if(d.nextAddress==1)return f.startUrl=c?c:f.options.includes("po")?"profile-picture/art":"profile-picture",d.yield(tnJ(f,$KS(f).toString()),2);if(f.mainChannel){var q=f.mainChannel,Z=q.send;var M=hqi();M=_.b5(M,2,f.startUrl);Z.call(q,w2S(M))}_.Fm(d)})};var SKG=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(SKG,_.d8);_.r=SKG.prototype;_.r.getSize=function(){return zB(this,1)};
_.r.setSize=function(c){return _.hr(this,1,c)};
_.r.getWidth=function(){return zB(this,12)};
_.r.getHeight=function(){return zB(this,13)};
_.r.setCenterCrop=function(c){return _.C1(this,20,c)};
_.r.getHtml=function(){return _.LS(this,4)};
_.r.getToken=function(){return _.Hu(this,24)};
_.r.setToken=function(c){return _.b5(this,24,c)};
_.r.getBackgroundColor=function(){return zB(this,87)};
_.r.hasBackgroundColor=function(){return _.f3(_.Fv(this,87))!=null};
_.r.getStoryboardLevel=function(){return zB(this,109)};var mi=function(c){this.JSC$19388_value_=void 0;this.childNodes_={};if(c){var f=_.eEH(c);c=_.cf(c);for(var d=0;d<f.length;d++)this.set(f[d],c[d])}};
mi.prototype.set=function(c,f){L63(this,c,f,!1)};
mi.prototype.add=function(c,f){L63(this,c,f,!0)};
var L63=function(c,f,d,q){for(var Z=0;Z<f.length;Z++){var M=f.charAt(Z);c.childNodes_[M]||(c.childNodes_[M]=new mi);c=c.childNodes_[M]}if(q&&c.JSC$19388_value_!==void 0)throw Error("lk`"+f);c.JSC$19388_value_=d},zIQ=function(c,f){for(var d=0;d<f.length;d++)if(c=c.childNodes_[f.charAt(d)],!c)return;
return c};
mi.prototype.get=function(c){return(c=zIQ(this,c))?c.JSC$19388_value_:void 0};
mi.prototype.getValues=function(){var c=[];JMS(this,c);return c};
var JMS=function(c,f){c.JSC$19388_value_!==void 0&&f.push(c.JSC$19388_value_);for(var d in c.childNodes_)JMS(c.childNodes_[d],f)};
mi.prototype.getKeys=function(c){var f=[];if(c){for(var d=this,q=0;q<c.length;q++){var Z=c.charAt(q);if(!d.childNodes_[Z])return[];d=d.childNodes_[Z]}akJ(d,c,f)}else akJ(this,"",f);return f};
var akJ=function(c,f,d){c.JSC$19388_value_!==void 0&&d.push(f);for(var q in c.childNodes_)akJ(c.childNodes_[q],f+q,d)};
_.r=mi.prototype;_.r.containsKey=function(c){return this.get(c)!==void 0};
_.r.containsValue=function(c){if(this.JSC$19388_value_===c)return!0;for(var f in this.childNodes_)if(this.childNodes_[f].containsValue(c))return!0;return!1};
_.r.clear=function(){this.childNodes_={};this.JSC$19388_value_=void 0};
_.r.remove=function(c){for(var f=this,d=[],q=0;q<c.length;q++){var Z=c.charAt(q);if(!f.childNodes_[Z])throw Error("mk`"+c);d.push([f,Z]);f=f.childNodes_[Z]}c=f.JSC$19388_value_;for(delete f.JSC$19388_value_;d.length>0;)if(q=d.pop(),f=q[0],q=q[1],f.childNodes_[q].isEmpty())delete f.childNodes_[q];else break;return c};
_.r.clone=function(){return new mi(this)};
_.r.getCount=function(){return ipJ(this.getValues())};
_.r.isEmpty=function(){return this.JSC$19388_value_===void 0&&_.zV.isEmpty(this.childNodes_)};var wbc=function(){if(!VnQ){var c=VnQ=new mi,f;for(f in Xfc)c.add(f,Xfc[f])}},VnQ,Ht=function(c,f){this.types=c;
this.setters=f},Xfc={a:new Ht([3,
0],[function(c,f){_.C1(c,21,f)},
function(c,f){_.hr(c,56,f)}]),
al:new Ht([3],[function(c,f){_.C1(c,74,f)}]),
b:new Ht([3,0],[function(c,f){_.C1(c,23,f)},
function(c,f){_.hr(c,38,f)}]),
ba:new Ht([0],[function(c,f){_.hr(c,85,f)}]),
bc:new Ht([0],[function(c,f){_.hr(c,87,f)}]),
br:new Ht([0],[function(c,f){_.hr(c,86,f)}]),
c:new Ht([3,0],[function(c,f){_.C1(c,2,f)},
function(c,f){_.hr(c,39,f)}]),
cc:new Ht([3],[function(c,f){_.C1(c,51,f)}]),
ci:new Ht([3],[function(c,f){_.C1(c,32,f)}]),
ckm:new Ht([3],[function(c,f){_.C1(c,104,f)}]),
cp:new Ht([0],[function(c,f){_.hr(c,92,f)}]),
cr:new Ht([3],[function(c,f){_.C1(c,108,f)}]),
cv:new Ht([0],[function(c,f){_.hr(c,94,f)}]),
d:new Ht([3],[function(c,f){_.C1(c,3,f)}]),
dc:new Ht([5],[function(c,f){_.b5(c,99,f)}]),
df:new Ht([3],[function(c,f){_.C1(c,80,f)}]),
dv:new Ht([3],[function(c,f){_.C1(c,90,f)}]),
e:new Ht([0],[function(c,f){_.hr(c,15,f)}]),
em:new Ht([0],[function(c,f){_.hr(c,107,f)}]),
f:new Ht([4],[function(c,f){_.b5(c,16,f)}]),
fg:new Ht([3],[function(c,f){_.C1(c,34,f)}]),
fh:new Ht([3],[function(c,f){_.C1(c,30,f)}]),
fm:new Ht([3],[function(c,f){_.C1(c,84,f)}]),
fo:new Ht([2],[function(c,f){_.Cu(c,79,_.DO(f))}]),
ft:new Ht([3],[function(c,f){_.C1(c,50,f)}]),
fv:new Ht([3],[function(c,f){_.C1(c,31,f)}]),
g:new Ht([3],[function(c,f){_.C1(c,14,f)}]),
gce:new Ht([4],[function(c,f){_.b5(c,112,f)}]),
gd:new Ht([3],[function(c,f){_.C1(c,83,f)}]),
gm:new Ht([3],[function(c,f){_.C1(c,105,f)}]),
h:new Ht([3,0],[function(c,f){_.C1(c,4,f)},
function(c,f){_.hr(c,13,f)}]),
i:new Ht([3],[function(c,f){_.C1(c,22,f)}]),
ic:new Ht([0],[function(c,f){_.hr(c,71,f)}]),
id:new Ht([3],[function(c,f){_.C1(c,70,f)}]),
il:new Ht([3],[function(c,f){_.C1(c,96,f)}]),
ip:new Ht([3],[function(c,f){_.C1(c,54,f)}]),
iv:new Ht([0],[function(c,f){_.b6(c,75,f)}]),
j:new Ht([1],[function(c,f){f=f==null?f:zw3(f);_.Cu(c,29,f)}]),
k:new Ht([3,0],[function(c,f){_.C1(c,17,f)},
function(c,f){_.hr(c,42,f)}]),
l:new Ht([0],[function(c,f){_.hr(c,44,f)}]),
lf:new Ht([3],[function(c,f){_.C1(c,65,f)}]),
lo:new Ht([3],[function(c,f){_.C1(c,97,f)}]),
m:new Ht([0],[function(c,f){_.hr(c,63,f)}]),
md:new Ht([3],[function(c,f){_.C1(c,91,f)}]),
mm:new Ht([4],[function(c,f){_.b5(c,81,f)}]),
mo:new Ht([3],[function(c,f){_.C1(c,73,f)}]),
mp:new Ht([0],[function(c,f){_.hr(c,115,f)}]),
mv:new Ht([3],[function(c,f){_.C1(c,66,f)}]),
n:new Ht([3],[function(c,f){c.setCenterCrop(f)}]),
nc:new Ht([3],[function(c,f){_.C1(c,55,f)}]),
nd:new Ht([3],[function(c,f){_.C1(c,53,f)}]),
ng:new Ht([3],[function(c,f){_.C1(c,95,f)}]),
ngm:new Ht([3],[function(c,f){_.C1(c,106,f)}]),
no:new Ht([3],[function(c,f){_.C1(c,37,f)}]),
ns:new Ht([3],[function(c,f){_.C1(c,40,f)}]),
nt0:new Ht([4],[function(c,f){_.b5(c,36,f)}]),
ntm:new Ht([3],[function(c,f){_.C1(c,114,f)}]),
nu:new Ht([3],[function(c,f){_.C1(c,46,f)}]),
nw:new Ht([3],[function(c,f){_.C1(c,48,f)}]),
o:new Ht([1,3],[function(c,f){f=f==null?f:zw3(f);_.Cu(c,7,f)},
function(c,f){_.C1(c,27,f)}]),
p:new Ht([3,0],[function(c,f){_.C1(c,19,f)},
function(c,f){_.hr(c,43,f)}]),
pa:new Ht([3],[function(c,f){_.C1(c,61,f)}]),
pc:new Ht([0],[function(c,f){_.hr(c,88,f)}]),
pd:new Ht([3],[function(c,f){_.C1(c,60,f)}]),
pf:new Ht([3],[function(c,f){_.C1(c,67,f)}]),
pg:new Ht([3],[function(c,f){_.C1(c,72,f)}]),
pi:new Ht([2],[function(c,f){_.Cu(c,76,_.DO(f))}]),
pp:new Ht([3],[function(c,f){_.C1(c,52,f)}]),
pt:new Ht([4],[function(c,f){_.b5(c,111,f)}]),
q:new Ht([4],[function(c,f){_.b5(c,28,f)}]),
r:new Ht([3,0],[function(c,f){_.C1(c,6,f)},
function(c,f){_.hr(c,26,f)}]),
ra:new Ht([3],[function(c,f){_.C1(c,103,f)}]),
rf:new Ht([3],[function(c,f){_.C1(c,100,f)}]),
rg:new Ht([3],[function(c,f){_.C1(c,59,f)}]),
rh:new Ht([3],[function(c,f){_.C1(c,49,f)}]),
rj:new Ht([3],[function(c,f){_.C1(c,57,f)}]),
ro:new Ht([2],[function(c,f){_.Cu(c,78,_.DO(f))}]),
rp:new Ht([3],[function(c,f){_.C1(c,58,f)}]),
rw:new Ht([3],[function(c,f){_.C1(c,35,f)}]),
rwa:new Ht([3],[function(c,f){_.C1(c,64,f)}]),
rwu:new Ht([3],[function(c,f){_.C1(c,41,f)}]),
s:new Ht([3,0],[function(c,f){_.C1(c,33,f)},
function(c,f){c.setSize(f)}]),
sb:new Ht([0],[function(c,f){_.hr(c,110,f)}]),
sc:new Ht([0],[function(c,f){_.hr(c,89,f)}]),
sg:new Ht([3],[function(c,f){_.C1(c,82,f)}]),
sl:new Ht([0],[function(c,f){_.hr(c,109,f)}]),
sm:new Ht([3],[function(c,f){_.C1(c,93,f)}]),
t:new Ht([4],[function(c,f){c.setToken(f)}]),
tm:new Ht([3],[function(c,f){_.C1(c,113,f)}]),
u:new Ht([3],[function(c,f){_.C1(c,18,f)}]),
ut:new Ht([3],[function(c,f){_.C1(c,45,f)}]),
v:new Ht([0],[function(c,f){_.hr(c,62,f)}]),
vb:new Ht([0],[function(c,f){_.b6(c,68,f)}]),
vf:new Ht([4],[function(c,f){_.b5(c,102,f)}]),
vl:new Ht([0],[function(c,f){_.b6(c,69,f)}]),
vm:new Ht([3],[function(c,f){_.C1(c,98,f)}]),
w:new Ht([0],[function(c,f){_.hr(c,12,f)}]),
x:new Ht([0],[function(c,f){_.hr(c,9,f)}]),
y:new Ht([0],[function(c,f){_.hr(c,10,f)}]),
ya:new Ht([2],[function(c,f){_.Cu(c,77,_.DO(f))}]),
z:new Ht([0],[function(c,f){_.hr(c,11,f)}])};
wbc.prototype.parse=function(c){var f=new SKG,d=new SKG;if(c=="")c=!0;else{c=c.split("-");for(var q=!0,Z=0;Z<c.length;Z++){var M=c[Z];if(M.length==0)q=!1;else{var g=M,O=!1;var l=g;var m=g.charAt(0);m!=m.toLowerCase()&&(O=!0,l=g.charAt(0).toLowerCase()+g.substring(1));var H=VnQ;for(m=1;m<=l.length;++m){var A=H,Y=l.substring(0,m);if(Y.length==0?A.isEmpty():!zIQ(A,Y))break}l=m==1?null:(l=H.get(l.substring(0,m-1)))?{option:g.substring(0,m-1),value:g.substring(m-1),signed:O,attributes:l}:null;if(l){g=
[];O=[];m=!1;for(H=0;H<l.attributes.types.length;H++){A=l.attributes.types[H];var t=l.value;Y=Z;if(l.signed&&A==1)for(var E=t.length;E<12&&Y<c.length-1;)t+="-"+c[Y+1],E=t.length,++Y;else if(A==2)for(;Y<c.length-1&&c[Y+1].match(/^[\d\.]/);)t+="-"+c[Y+1],++Y;E=l.attributes.setters[H];t=ulG(this,A)(l.option,t,f,d,E);if(t===null){m=!0;Z=Y;break}else g.push(A),O.push(t)}if(!m)for(l=0;l<O.length;l++)H=g[l],t=O[l],vGF(this,H)(M,t);q=q&&m}else q=!1}}c=q}return new hIC(f,d,c)};
var AV=function(c,f,d,q,Z,M){Z(d,f);c=c.charAt(0);M=M(c==c.toUpperCase());Z(q,M)};
_.r=wbc.prototype;_.r.parseAndSetIntOption_=function(c,f,d,q,Z){if(f=="")return 0;isFinite(f)&&(f=String(f));f=typeof f==="string"?/^\s*-?0x/i.test(f)?parseInt(f,16):parseInt(f,10):NaN;if(isNaN(f))return 1;AV(c,f,d,q,Z,Number);return null};
_.r.logIntParseError_=function(){};
_.r.parseAndSetFloatOption_=function(c,f,d,q,Z){if(f=="")return 0;var M=Number(f);f=M==0&&_.gz(f)?NaN:M;if(isNaN(f))return 1;AV(c,f,d,q,Z,Number);return null};
_.r.logFloatParseError_=function(){};
_.r.parseAndSetBoolOption_=function(c,f,d,q,Z){if(f!="")return 2;AV(c,!0,d,q,Z,Boolean);return null};
_.r.logBoolParseError_=function(){};
_.r.parseAndSetStringOption_=function(c,f,d,q,Z){if(f=="")return 0;AV(c,f,d,q,Z,function(M){return M?"1":""});
return null};
_.r.logStringParseError_=function(){};
_.r.parseAndSetUint64Base64Option_=function(c,f,d,q,Z){if(f=="")return 0;AV(c,f,d,q,Z,function(M){return M?1:0});
return null};
var ulG=function(c,f){switch(f){case 0:return(0,_.n1)(c.parseAndSetIntOption_,c);case 2:return(0,_.n1)(c.parseAndSetFloatOption_,c);case 3:return(0,_.n1)(c.parseAndSetBoolOption_,c);case 4:return(0,_.n1)(c.parseAndSetStringOption_,c);case 1:return(0,_.n1)(c.parseAndSetUint64Base64Option_,c);default:return function(){}}},vGF=function(c,f){switch(f){case 0:return(0,_.n1)(c.logIntParseError_,c);
case 2:return(0,_.n1)(c.logFloatParseError_,c);case 3:return(0,_.n1)(c.logBoolParseError_,c);case 4:case 1:return(0,_.n1)(c.logStringParseError_,c);default:return function(){}}},hIC=function(c,f,d){this.valueProto_=c;
this.signatureFlagProto_=f;this.JSC$19400_valid_=d};
hIC.prototype.isValid=function(){return this.JSC$19400_valid_};var Xbi=function(c){this.JSC$19401_parser_=null;this.JSC$19401_components_=[];this.JSC$19401_parsedOptions_=null;wfS(this,c)},yMc=function(c){c.JSC$19401_parser_==null&&(c.JSC$19401_parser_=new wbc);
return c.JSC$19401_parser_},wfS=function(c,f){c.JSC$19401_parsedOptions_=f?typeof f==="string"?yMc(c).parse(f):f:yMc(c).parse("")},YN=function(c,f){return c==f?!1:!0};
_.r=Xbi.prototype;_.r.JSC$19403_setCrop=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,_.LS(d,2),_.LS(f.signatureFlagProto_,2))&&_.C1(d,2,c);return this};
_.r.JSC$19403_setCircleCrop=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,L6(d,51),L6(f.signatureFlagProto_,51))&&_.C1(d,51,c);return this};
_.r.JSC$19403_setImageCrop=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,L6(d,32),L6(f.signatureFlagProto_,32))&&_.C1(d,32,c);return this};
_.r.JSC$19403_setHeight=function(c){var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,d.getHeight(),f.signatureFlagProto_.getHeight())&&_.hr(d,13,c);return this};
_.r.setCenterCrop=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,_.LS(d,20),_.LS(f.signatureFlagProto_,20))&&d.setCenterCrop(c);return this};
_.r.JSC$19403_setSmartCrop=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,_.LS(d,19),_.LS(f.signatureFlagProto_,19))&&_.C1(d,19,c);return this};
_.r.JSC$19403_setPad=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,L6(d,60),L6(f.signatureFlagProto_,60))&&_.C1(d,60,c);return this};
_.r.JSC$19403_setSmartCropUseFace=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,_.LS(d,67),_.LS(f.signatureFlagProto_,67))&&_.C1(d,67,c);return this};
_.r.JSC$19403_setSmartCropNoClip=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,_.LS(d,52),_.LS(f.signatureFlagProto_,52))&&_.C1(d,52,c);return this};
_.r.setSize=function(c){var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,d.getSize(),f.signatureFlagProto_.getSize())&&d.setSize(c);return this};
_.r.setToken=function(c){c=c||void 0;var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,d.getToken(),f.signatureFlagProto_.getToken())&&d.setToken(c);return this};
_.r.JSC$19403_setWidth=function(c){var f=this.JSC$19401_parsedOptions_,d=f.valueProto_;YN(c,d.getWidth(),f.signatureFlagProto_.getWidth())&&_.hr(d,12,c);return this};
_.r.clearOptions=function(){wfS(this,"");return this};
_.r.build=function(){this.JSC$19401_components_.length=0;var c=this.JSC$19401_parsedOptions_,f=c.valueProto_;c=c.signatureFlagProto_;Fu(this,"s",f.getSize(),c.getSize());Fu(this,"w",f.getWidth(),c.getWidth());tV(this,"c",_.LS(f,2),_.LS(c,2));tV(this,"d",_.LS(f,3),_.LS(c,3));Fu(this,"h",f.getHeight(),c.getHeight());tV(this,"s",L6(f,33),L6(c,33));tV(this,"h",f.getHtml(),c.getHtml());tV(this,"p",_.LS(f,19),_.LS(c,19));tV(this,"pp",_.LS(f,52),_.LS(c,52));tV(this,"pf",_.LS(f,67),_.LS(c,67));tV(this,"n",
_.LS(f,20),_.LS(c,20));Fu(this,"r",zB(f,26),zB(c,26));tV(this,"r",_.LS(f,6),_.LS(c,6));tV(this,"o",L6(f,27),L6(c,27));var d=_.S7(f,7,_.Y9);b_(this,"o",d,_.S7(c,7,_.Y9));d=_.S7(f,29,_.Y9);b_(this,"j",d,_.S7(c,29,_.Y9));Fu(this,"x",zB(f,9),zB(c,9));Fu(this,"y",zB(f,10),zB(c,10));Fu(this,"z",zB(f,11),zB(c,11));tV(this,"g",_.LS(f,14),_.LS(c,14));Fu(this,"e",zB(f,15),zB(c,15));b_(this,"f",_.Hu(f,16),_.Hu(c,16));tV(this,"k",L6(f,17),L6(c,17));tV(this,"u",L6(f,18),!0);tV(this,"ut",L6(f,45),!0);tV(this,"i",
L6(f,22),!0);tV(this,"a",L6(f,21),L6(c,21));tV(this,"b",_.LS(f,23),_.LS(c,23));Fu(this,"b",zB(f,38),zB(c,38));Fu(this,"c",zB(f,39),zB(c,39),16,8);b_(this,"q",_.Hu(f,28),_.Hu(c,28));tV(this,"fh",L6(f,30),L6(c,30));tV(this,"fv",L6(f,31),L6(c,31));tV(this,"fg",_.LS(f,34),_.LS(c,34));tV(this,"ci",L6(f,32),L6(c,32));b_(this,"t",f.getToken(),c.getToken());b_(this,"nt0",_.Hu(f,36),_.Hu(c,36));tV(this,"rw",_.LS(f,35),_.LS(c,35));tV(this,"rwu",_.LS(f,41),_.LS(c,41));tV(this,"rwa",_.LS(f,64),_.LS(c,64));tV(this,
"nw",_.LS(f,48),_.LS(c,48));tV(this,"rh",_.LS(f,49),_.LS(c,49));tV(this,"no",_.LS(f,37),_.LS(c,37));tV(this,"ns",L6(f,40),L6(c,40));Fu(this,"k",zB(f,42),zB(c,42));Fu(this,"p",zB(f,43),zB(c,43));Fu(this,"l",zB(f,44),zB(c,44));Fu(this,"v",zB(f,62),zB(c,62));tV(this,"nu",L6(f,46),L6(c,46));tV(this,"ft",L6(f,50),L6(c,50));tV(this,"cc",L6(f,51),L6(c,51));tV(this,"nd",L6(f,53),L6(c,53));tV(this,"ip",L6(f,54),L6(c,54));tV(this,"nc",L6(f,55),L6(c,55));Fu(this,"a",zB(f,56),zB(c,56));tV(this,"rj",L6(f,57),
L6(c,57));tV(this,"rp",L6(f,58),L6(c,58));tV(this,"rg",L6(f,59),L6(c,59));tV(this,"pd",L6(f,60),L6(c,60));tV(this,"pa",L6(f,61),L6(c,61));Fu(this,"m",zB(f,63),zB(c,63));Fu(this,"vb",Jm(f,68),Jm(c,68));Fu(this,"vl",Jm(f,69),Jm(c,69));tV(this,"lf",L6(f,65),L6(c,65));tV(this,"mv",L6(f,66),L6(c,66));tV(this,"id",L6(f,70),L6(c,70));Fu(this,"ic",zB(f,71),!0);tV(this,"pg",_.LS(f,72),_.LS(c,72));tV(this,"mo",L6(f,73),L6(c,73));tV(this,"al",L6(f,74),L6(c,74));Fu(this,"iv",Jm(f,75),Jm(c,75));Fu(this,"pi",aU(f,
76),aU(c,76));Fu(this,"ya",aU(f,77),aU(c,77));Fu(this,"ro",aU(f,78),aU(c,78));Fu(this,"fo",aU(f,79),aU(c,79));tV(this,"df",L6(f,80),L6(c,80));b_(this,"mm",_.Hu(f,81),_.Hu(c,81));tV(this,"sg",L6(f,82),L6(c,82));tV(this,"gd",L6(f,83),L6(c,83));tV(this,"fm",L6(f,84),L6(c,84));Fu(this,"ba",zB(f,85),zB(c,85));Fu(this,"br",zB(f,86),zB(c,86));Fu(this,"bc",f.getBackgroundColor(),c.getBackgroundColor(),16,8);Fu(this,"pc",zB(f,88),zB(c,88),16,8);Fu(this,"sc",zB(f,89),zB(c,89),16,8);tV(this,"dv",L6(f,90),L6(c,
90));tV(this,"md",L6(f,91),L6(c,91));Fu(this,"cp",zB(f,92),zB(c,92));tV(this,"sm",L6(f,93),L6(c,93));Fu(this,"cv",zB(f,94),zB(c,94));tV(this,"ng",L6(f,95),L6(c,95));tV(this,"il",L6(f,96),L6(c,96));tV(this,"lo",L6(f,97),L6(c,97));tV(this,"vm",L6(f,98),L6(c,98));b_(this,"dc",_.Hu(f,99),_.Hu(c,99));tV(this,"rf",L6(f,100),L6(c,100));b_(this,"vf",_.Hu(f,102),_.Hu(c,102));tV(this,"ra",_.LS(f,103),_.LS(c,103));tV(this,"ckm",L6(f,104),L6(c,104));tV(this,"gm",L6(f,105),L6(c,105));tV(this,"ngm",L6(f,106),L6(c,
106));Fu(this,"em",zB(f,107),zB(c,107));tV(this,"cr",L6(f,108),L6(c,108));Fu(this,"sl",f.getStoryboardLevel(),c.getStoryboardLevel());Fu(this,"sb",zB(f,110),zB(c,110));b_(this,"pt",_.Hu(f,111),_.Hu(c,111));b_(this,"gce",_.Hu(f,112),_.Hu(c,112));tV(this,"tm",L6(f,113),L6(c,113));tV(this,"ntm",L6(f,114),L6(c,114));Fu(this,"mp",zB(f,115),zB(c,115));return this.JSC$19401_components_.join("-")};
var Fu=function(c,f,d,q,Z,M){if(d!=null){var g=Z==void 0||Z!=10&&Z!=16?10:Z;d=Number(d).toString(g);Z=new UdG;Z.append(g==16?"0x":"");g=Z.append;M==void 0?M="":(M-=d.length,M=M<=0?"":(0,_.vlo)("0",M));g.call(Z,M);Z.append(d);W63(c,f,Z.toString(),!!Number(q))}},tV=function(c,f,d,q){d&&W63(c,f,"",!!q)},b_=function(c,f,d,q){d&&W63(c,f,String(d),!!Number(q))},W63=function(c,f,d,q){q&&(f=f.charAt(0).toUpperCase()+f.substring(1));
c.JSC$19401_components_.push(f+d)};_.rn(yL,Xbi);_.r=yL.prototype;_.r.JSC$19403_setCrop=function(c){c&&K7(this);return yL.superClass_.JSC$19403_setCrop.call(this,c)};
_.r.JSC$19403_setHeight=function(c){c=c==null||c<0?void 0:c;c!=null&&this.setSize();return yL.superClass_.JSC$19403_setHeight.call(this,c)};
_.r.JSC$19403_setImageCrop=function(c){c&&K7(this);return yL.superClass_.JSC$19403_setImageCrop.call(this,c)};
_.r.JSC$19403_setCircleCrop=function(c){c&&K7(this);return yL.superClass_.JSC$19403_setCircleCrop.call(this,c)};
_.r.setSize=function(c){_.Ik(c)&&(c=Math.max(c.width,c.height));c=c==null||c<0?void 0:c;c!=null&&(this.JSC$19403_setWidth(),this.JSC$19403_setHeight());return yL.superClass_.setSize.call(this,c)};
_.r.JSC$19403_setSmartCrop=function(c){c&&K7(this);return yL.superClass_.JSC$19403_setSmartCrop.call(this,c)};
_.r.JSC$19403_setSmartCropNoClip=function(c){c&&K7(this);return yL.superClass_.JSC$19403_setSmartCropNoClip.call(this,c)};
_.r.JSC$19403_setSmartCropUseFace=function(c){c&&K7(this);return yL.superClass_.JSC$19403_setSmartCropUseFace.call(this,c)};
_.r.setCenterCrop=function(c){c&&K7(this);return yL.superClass_.setCenterCrop.call(this,c)};
_.r.JSC$19403_setPad=function(c){c&&K7(this);return yL.superClass_.JSC$19403_setPad.call(this,c)};
_.r.JSC$19403_setWidth=function(c){c=c==null||c<0?void 0:c;c!=null&&this.setSize();return yL.superClass_.JSC$19403_setWidth.call(this,c)};
var DKq=function(c){c.clearOptions();var f=c.JSC$19401_parsedOptions_,d=f.valueProto_;YN(!0,_.LS(d,3),_.LS(f.signatureFlagProto_,3))&&_.C1(d,3,!0);return c},K7=function(c){c.setCenterCrop();
c.JSC$19403_setCircleCrop();c.JSC$19403_setCrop();c.JSC$19403_setImageCrop();c.JSC$19403_setPad();c.JSC$19403_setSmartCrop();c.JSC$19403_setSmartCropNoClip();c.JSC$19403_setSmartCropUseFace()};
yL.prototype.build=function(){var c=this.JSC$19401_parsedOptions_.valueProto_;L6(c,18)||L6(c,45)?c.getSize()||this.setSize(0):(c=this.JSC$19401_parsedOptions_.valueProto_,c.getSize()||c.getWidth()||c.getHeight()||(this.setSize(),this.JSC$19403_setHeight(),this.JSC$19403_setWidth(),K7(this)));return yL.superClass_.build.call(this)};var eI3=/^[^\/]*\/\//,Eg=function(c,f){f=f===void 0?!1:f;this.original_=c;this.originalPrefix_="";(c=this.original_.match(eI3))&&c[0]?(this.originalPrefix_=c[0],c=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):c="http://"+this.original_;this.uri_=_.DU(c,!0);this.isFreeformUrl_=f;this.JSC$19407_valid_=!0;this.obfuscated_=!1},N3G=function(c,f){c.JSC$19409_pathPrefix_=c.JSC$19409_pathPrefix_?c.JSC$19409_pathPrefix_+("/"+f):f},n7=function(c){if(c.JSC$19409_components_==
void 0){var f=c.uri_.getPath().substring(1);
c.JSC$19409_pathPrefix_=null;if(c.isFreeformUrl_){c.JSC$19409_components_=[];if((f.match(/=/g)||[]).length>1)return c.JSC$19407_valid_=!1,c.JSC$19409_components_;var d=f.indexOf("=");d!=-1?(c.JSC$19409_components_.push(f.substr(0,d)),c.JSC$19409_components_.push(f.substr(d+1))):c.JSC$19409_components_.push(f);return c.JSC$19409_components_}c.JSC$19409_components_=f.split("/");f=c.JSC$19409_components_.length;f>2&&c.JSC$19409_components_[0]=="u"&&(N3G(c,c.JSC$19409_components_[0]+"/"+c.JSC$19409_components_[1]),
c.JSC$19409_components_.shift(),c.JSC$19409_components_.shift(),f-=2);if(f==0||f==4||f>7)return c.JSC$19407_valid_=!1,c.JSC$19409_components_;if(f==2)N3G(c,c.JSC$19409_components_[0]);else if(c.JSC$19409_components_[0]=="image")N3G(c,c.JSC$19409_components_[0]);else if(f==7||f==3)return c.JSC$19407_valid_=!1,c.JSC$19409_components_;if(f<=3){c.obfuscated_=!0;f==3&&(N3G(c,c.JSC$19409_components_[1]),c.JSC$19409_components_.shift(),--f);--f;d=c.JSC$19409_components_[f];var q=d.indexOf("=");q!=-1&&(c.JSC$19409_components_[f]=
d.substr(0,q),c.JSC$19409_components_.push(d.substr(q+1)))}}return c.JSC$19409_components_};
Eg.prototype.isValid=function(){n7(this);return this.JSC$19407_valid_};
Eg.prototype.isObfuscated=function(){n7(this);return this.obfuscated_};
var IkS=function(c){n7(c);return c.isFreeformUrl_},$N=function(c){n7(c);
c.JSC$19409_pathPrefix_==void 0&&(c.JSC$19409_pathPrefix_=null);return c.JSC$19409_pathPrefix_},PJ3=function(c){switch(n7(c).length){case 7:return!0;
case 6:return $N(c)==null;case 5:return!1;case 3:return!0;case 2:return $N(c)==null;case 1:return!1;default:return!1}},Qh=function(c,f){if(IkS(c))a:{switch(f){case 7:f=0;
break;case 4:if(!PJ3(c)){c=null;break a}f=1;break;default:c=null;break a}c=n7(c)[f]}else if(c.isObfuscated())a:{var d=$N(c)!=null?1:0;switch(f){case 6:f=d;break;case 4:if(!PJ3(c)){c=null;break a}f=1+d;break;default:c=null;break a}c=n7(c)[f]}else a:{d=$N(c)!=null?1:0;switch(f){case 0:f=d;break;case 1:f=1+d;break;case 2:f=2+d;break;case 3:f=3+d;break;case 4:if(!PJ3(c)){c=null;break a}f=4+d;break;case 5:f=PJ3(c)?1:0;f=4+d+f;break;default:c=null;break a}c=n7(c)[f]}return c};
Eg.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Qh(this,4));return this.options_};var h4q=function(){};
h4q.prototype.parse=function(c,f){return new u53(c,f===void 0?!1:f)};
var u53=function(c,f){Eg.call(this,c,f===void 0?!1:f)};
_.K(u53,Eg);_.rn(W7,yL);var vCc;W7.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
W7.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var c=W7.superClass_.build.call(this),f=[];$N(this.parsedImageUrl_)!=null&&f.push($N(this.parsedImageUrl_));var d=IkS(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var q=this.parsedImageUrl_;q.obfuscatedData_==void 0&&(q.obfuscatedData_=Qh(q,6));f.push(q.obfuscatedData_+(c?"="+c:""))}else if(d){q=f.push;var Z=this.parsedImageUrl_;Z.freeformUrlPath_===void 0&&(Z.freeformUrlPath_=Qh(Z,
7));q.call(f,Z.freeformUrlPath_);c&&f.push(c)}else q=f.push,Z=this.parsedImageUrl_,Z.obfuscatedGaiaId_==void 0&&(Z.obfuscatedGaiaId_=Qh(Z,0)),q.call(f,Z.obfuscatedGaiaId_),q=f.push,Z=this.parsedImageUrl_,Z.photoId_==void 0&&(Z.photoId_=Qh(Z,1)),q.call(f,Z.photoId_),q=f.push,Z=this.parsedImageUrl_,Z.imageVersion_==void 0&&(Z.imageVersion_=Qh(Z,2)),q.call(f,Z.imageVersion_),q=f.push,Z=this.parsedImageUrl_,Z.signature_==void 0&&(Z.signature_=Qh(Z,3)),q.call(f,Z.signature_),c&&f.push(c),c=f.push,q=this.parsedImageUrl_,
q.filename_==void 0&&(q.filename_=Qh(q,5)),c.call(f,q.filename_);f=d?f.join("="):f.join("/");f=_.DU(this.protocolPrefix_+this.JSC$19415_domain_+"/"+f+(this.JSC$19415_query_?"?"+this.JSC$19415_query_:"")).toString();f.startsWith("%3a//")&&(f=f.replace("%3a//","://"));return f};var RI3=_.pp(["viewBox"]),UKC=_.pp(["width"]),pfG=_.pp(["height"]),xKp=_.pp(["fill"]),oGr=_.pp(["id"]),GeS=_.pp(["x"]),cWq=_.pp(["y"]);yES.prototype.getLength=function(){return this.parsedData.length};
yES.prototype.write=function(c){for(var f=0,d=this.parsedData.length;f<d;f++)c.put(this.parsedData[f],8)};
var R4Q=function(c,f){var d=new yES(f);c.dataList.push(d);d=c.errorCorrectLevel;var q=1,Z=encodeURI(f).toString().replace(/%[0-9a-fA-F]{2}/g,"a");f=Z.length+(Z.length!=f?3:0);Z=0;for(var M=S9.length;Z<=M;Z++){var g=0;switch(d){case 1:g=S9[Z][0];break;case 0:g=S9[Z][1];break;case 3:g=S9[Z][2];break;case 2:g=S9[Z][3]}if(f<=g)break;else q++}if(q>S9.length)throw Error("vk");c.typeNumber=q;c.dataCache=null};
WdH.prototype.isDark=function(c,f){if(c<0||this.moduleCount<=c||f<0||this.moduleCount<=f)throw Error("nk`"+c+"`"+f);return this.modules[c][f]};
for(var U$F=function(c,f,d){c.moduleCount=c.typeNumber*4+17;c.modules=Array(c.moduleCount);for(var q=0;q<c.moduleCount;q++){c.modules[q]=Array(c.moduleCount);for(var Z=0;Z<c.moduleCount;Z++)c.modules[q][Z]=null}fnq(c,0,0);fnq(c,c.moduleCount-7,0);fnq(c,0,c.moduleCount-7);q=d_3[c.typeNumber-1];for(Z=0;Z<q.length;Z++)for(var M=0;M<q.length;M++){var g=q[Z],O=q[M];if(c.modules[g][O]==null)for(var l=-2;l<=2;l++)for(var m=-2;m<=2;m++)c.modules[g+l][O+m]=l==-2||l==2||m==-2||m==2||l==0&&m==0?!0:!1}for(q=
8;q<c.moduleCount-8;q++)c.modules[q][6]==null&&(c.modules[q][6]=q%2==0);for(q=8;q<c.moduleCount-8;q++)c.modules[6][q]==null&&(c.modules[6][q]=q%2==0);q=c.errorCorrectLevel<<3|d;for(Z=q<<10;L7(Z)-L7(1335)>=0;)Z^=1335<<L7(Z)-L7(1335);q=(q<<10|Z)^21522;for(Z=0;Z<15;Z++)M=!f&&(q>>Z&1)==1,Z<6?c.modules[Z][8]=M:Z<8?c.modules[Z+1][8]=M:c.modules[c.moduleCount-15+Z][8]=M;for(Z=0;Z<15;Z++)M=!f&&(q>>Z&1)==1,Z<8?c.modules[8][c.moduleCount-Z-1]=M:Z<9?c.modules[8][15-Z-1+1]=M:c.modules[8][15-Z-1]=M;c.modules[c.moduleCount-
8][8]=!f;if(c.typeNumber>=7){q=c.typeNumber;for(Z=q<<12;L7(Z)-L7(7973)>=0;)Z^=7973<<L7(Z)-L7(7973);q=q<<12|Z;for(Z=0;Z<18;Z++)M=!f&&(q>>Z&1)==1,c.modules[Math.floor(Z/3)][Z%3+c.moduleCount-8-3]=M;for(Z=0;Z<18;Z++)M=!f&&(q>>Z&1)==1,c.modules[Z%3+c.moduleCount-8-3][Math.floor(Z/3)]=M}if(c.dataCache==null){Z=c.typeNumber;M=c.dataList;f=c.errorCorrectLevel;q=j$C(Z,f);if(q==void 0)throw Error("uk`"+Z+"`"+f);g=q.length/3;f=[];for(O=0;O<g;O++){l=q[O*3];m=q[O*3+1];for(var H=q[O*3+2],A=0;A<l;A++)f.push(new D$J(m,
H))}q=new e4r;for(g=0;g<M.length;g++)O=M[g],q.put(O.mode,4),q.put(O.getLength(),q4J(O.mode,Z)),O.write(q);for(g=Z=0;g<f.length;g++)Z+=f[g].dataCount;if(q.length>Z*8)throw Error("ok`"+q.length+"`"+Z*8);for(q.length+4<=Z*8&&q.put(0,4);q.length%8!=0;)ZiC(q,!1);for(;!(q.length>=Z*8);){q.put(236,8);if(q.length>=Z*8)break;q.put(17,8)}M=Z=m=0;g=Array(f.length);O=Array(f.length);for(l=0;l<f.length;l++){A=f[l].dataCount;var Y=f[l].totalCount-A;Z=Math.max(Z,A);M=Math.max(M,Y);g[l]=Array(A);for(H=0;H<g[l].length;H++)g[l][H]=
255&q.buffer[H+m];m+=A;H=Y;A=new D6([1],0);for(Y=0;Y<H;Y++)A=A.multiply(new D6([1,Mk3(Y)],0));H=A;A=(new D6(g[l],H.getLength()-1)).mod(H);O[l]=Array(H.getLength()-1);for(H=0;H<O[l].length;H++)Y=H+A.getLength()-O[l].length,O[l][H]=Y>=0?A.get(Y):0}for(H=q=0;H<f.length;H++)q+=f[H].totalCount;q=Array(q);for(H=m=0;H<Z;H++)for(l=0;l<f.length;l++)H<g[l].length&&(q[m++]=g[l][H]);for(H=0;H<M;H++)for(l=0;l<f.length;l++)H<O[l].length&&(q[m++]=O[l][H]);c.dataCache=q}f=c.dataCache;q=-1;Z=c.moduleCount-1;M=7;g=
0;for(O=c.moduleCount-1;O>0;O-=2)for(O==6&&O--;;){for(l=0;l<2;l++)c.modules[Z][O-l]==null&&(m=!1,g<f.length&&(m=(f[g]>>>M&1)==1),rWc(d,Z,O-l)&&(m=!m),c.modules[Z][O-l]=m,M--,M==-1&&(g++,M=7));Z+=q;if(Z<0||c.moduleCount<=Z){Z-=q;q=-q;break}}},fnq=function(c,f,d){for(var q=-1;q<=7;q++)if(!(f+q<=-1||c.moduleCount<=f+q))for(var Z=-1;Z<=7;Z++)d+Z<=-1||c.moduleCount<=d+Z||(c.modules[f+q][d+Z]=0<=q&&q<=6&&(Z==0||Z==6)||0<=Z&&Z<=6&&(q==0||q==6)||2<=q&&q<=4&&2<=Z&&Z<=4?!0:!1)},pb3=function(c){for(var f=0,
d=0,q=0;q<8;q++){U$F(c,!0,q);
var Z=c;for(var M=Z.moduleCount,g=0,O=0;O<M;O++)for(var l=0;l<M;l++){for(var m=0,H=Z.isDark(O,l),A=-1;A<=1;A++)if(!(O+A<0||M<=O+A))for(var Y=-1;Y<=1;Y++)l+Y<0||M<=l+Y||(A!=0||Y!=0)&&H==Z.isDark(O+A,l+Y)&&m++;m>5&&(g+=3+m-5)}for(O=0;O<M-1;O++)for(l=0;l<M-1;l++)if(m=0,Z.isDark(O,l)&&m++,Z.isDark(O+1,l)&&m++,Z.isDark(O,l+1)&&m++,Z.isDark(O+1,l+1)&&m++,m==0||m==4)g+=3;for(O=0;O<M;O++)for(l=0;l<M-6;l++)Z.isDark(O,l)&&!Z.isDark(O,l+1)&&Z.isDark(O,l+2)&&Z.isDark(O,l+3)&&Z.isDark(O,l+4)&&!Z.isDark(O,l+5)&&
Z.isDark(O,l+6)&&(g+=40);for(l=0;l<M;l++)for(O=0;O<M-6;O++)Z.isDark(O,l)&&!Z.isDark(O+1,l)&&Z.isDark(O+2,l)&&Z.isDark(O+3,l)&&Z.isDark(O+4,l)&&!Z.isDark(O+5,l)&&Z.isDark(O+6,l)&&(g+=40);for(l=m=0;l<M;l++)for(O=0;O<M;O++)Z.isDark(O,l)&&m++;Z=g+=Math.abs(100*m/M/M-50)/5*10;if(q==0||f>Z)f=Z,d=q}return d},d_3=[[],
[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]],L7=function(c){for(var f=0;c!=0;)f++,c>>>=1;return f},rWc=function(c,f,d){switch(c){case 0:return(f+d)%2==0;
case 1:return f%2==0;case 2:return d%3==0;case 3:return(f+d)%3==0;case 4:return(Math.floor(f/2)+Math.floor(d/3))%2==0;case 5:return f*d%2+f*d%3==0;case 6:return(f*d%2+f*d%3)%2==0;case 7:return(f*d%3+(f+d)%2)%2==0;default:throw Error("pk`"+c);}},q4J=function(c,f){if(1<=f&&f<10)switch(c){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+c);}else if(f<27)switch(c){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+c);}else if(f<41)switch(c){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+c);}else throw Error("rk`"+f);},zs=function(c){if(c<1)throw Error("sk`"+c);
return CBc[c]},Mk3=function(c){for(;c<0;)c+=255;
for(;c>=256;)c-=255;return JV[c]},JV=Array(256),CBc=Array(256),g3F=0;g3F<8;g3F++)JV[g3F]=1<<g3F;
for(var ai=8;ai<256;ai++)JV[ai]=JV[ai-4]^JV[ai-5]^JV[ai-6]^JV[ai-8];for(var kNq=0;kNq<255;kNq++)CBc[JV[kNq]]=kNq;D6.prototype.get=function(c){return this.num[c]};
D6.prototype.getLength=function(){return this.num.length};
D6.prototype.multiply=function(c){for(var f=Array(this.getLength()+c.getLength()-1),d=0;d<this.getLength();d++)for(var q=0;q<c.getLength();q++)f[d+q]^=Mk3(zs(this.get(d))+zs(c.get(q)));return new D6(f,0)};
D6.prototype.mod=function(c){if(this.getLength()-c.getLength()<0)return this;for(var f=zs(this.get(0))-zs(c.get(0)),d=Array(this.getLength()),q=0;q<this.getLength();q++)d[q]=this.get(q);for(q=0;q<c.getLength();q++)d[q]^=Mk3(zs(c.get(q))+f);return(new D6(d,0)).mod(c)};
var OiC=[[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]],j$C=function(c,f){switch(f){case 1:return OiC[(c-1)*4];case 0:return OiC[(c-1)*4+1];case 3:return OiC[(c-1)*4+2];case 2:return OiC[(c-1)*4+3]}};
e4r.prototype.get=function(c){return(this.buffer[Math.floor(c/8)]>>>7-c%8&1)==1};
e4r.prototype.put=function(c,f){for(var d=0;d<f;d++)ZiC(this,(c>>>f-d-1&1)==1)};
var ZiC=function(c,f){var d=Math.floor(c.length/8);c.buffer.length<=d&&c.buffer.push(0);f&&(c.buffer[d]|=128>>>c.length%8);c.length++},S9=[[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]],PIG=function(){var c=function(f,d){this.JSC$19435__el=f;this.JSC$19435__htOption=d};
c.prototype.draw=function(f){function d(H,A){H=document.createElementNS("http://www.w3.org/2000/svg",H);for(var Y in A)A.hasOwnProperty(Y)&&(Y==="href"?_.XVp(H,A[Y]):_.ck([_.j5(RI3),_.j5(UKC),_.j5(pfG),_.j5(xKp),_.j5(oGr),_.j5(GeS),_.j5(cWq)],H,Y,A[Y]));return H}
var q=this.JSC$19435__htOption,Z=this.JSC$19435__el,M=f.moduleCount;this.clear();var g=d("svg",{viewBox:"0 0 "+String(M)+" "+String(M),width:"100%",height:"100%",fill:q.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Z.appendChild(g);g.appendChild(d("rect",{fill:q.colorLight,width:"100%",height:"100%"}));g.appendChild(d("rect",{fill:q.colorDark,width:"1",height:"1",id:"template"}));for(var O=0;O<M;O++)for(var l=0;l<M;l++)if(f.isDark(O,l)){var m=d("use",{x:String(O),y:String(l),href:"#template"});
g.appendChild(m)}};
c.prototype.clear=function(){for(;this.JSC$19435__el.hasChildNodes();)this.JSC$19435__el.removeChild(this.JSC$19435__el.lastChild)};
return c}(),I8q=document.documentElement.tagName.toLowerCase()==="svg"?PIG:typeof CanvasRenderingContext2D!="undefined"?function(){var c=function(f,d){this._bIsPainted=!1;
NWi();this.JSC$19435__htOption=d;this._elCanvas=document.createElement("canvas");this._elCanvas.width=d.width;this._elCanvas.height=d.height;f.appendChild(this._elCanvas);this.JSC$19435__el=f;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$19435__el.appendChild(this._elImage);this._bSupportDataURI=null};
c.prototype._onMakeImage=function(){var f=this._elCanvas.toDataURL("image/png");this._elImage.src=f;this._elImage.style.display="block";this._elCanvas.style.display="none"};
c.prototype._safeSetDataURI=function(f,d){var q=this;q._fFail=d;q._fSuccess=f;q._bSupportDataURI===null?(f=_.A5("IMG"),d=function(){q._bSupportDataURI=!1;q._fFail&&q._fFail.call(q)},f.onabort=d,f.onerror=d,f.onload=function(){q._bSupportDataURI=!0;
q._fSuccess&&q._fSuccess.call(q)},f.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):q._bSupportDataURI===!0&&q._fSuccess?q._fSuccess.call(q):q._bSupportDataURI===!1&&q._fFail&&q._fFail.call(q)};
c.prototype.draw=function(f){var d=this._oContext,q=this.JSC$19435__htOption,Z=f.moduleCount,M=q.width/Z,g=q.height/Z,O=Math.round(M),l=Math.round(g);this._elImage.style.display="none";this.clear();for(var m=0;m<Z;m++)for(var H=0;H<Z;H++){var A=f.isDark(m,H),Y=H*M,t=m*g;d.strokeStyle=A?q.colorDark:q.colorLight;d.lineWidth=1;d.fillStyle=A?q.colorDark:q.colorLight;d.fillRect(Y,t,M,g);d.strokeRect(Math.floor(Y)+.5,Math.floor(t)+.5,O,l);d.strokeRect(Math.ceil(Y)-.5,Math.ceil(t)-.5,O,l)}this._bIsPainted=
!0};
c.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
c.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
c.prototype.round=function(f){return f?Math.floor(f*1E3)/1E3:f};
return c}():function(){var c=function(f,d){this.JSC$19435__el=f;
this.JSC$19435__htOption=d};
c.prototype.draw=function(f){for(var d=this.JSC$19435__htOption,q=this.JSC$19435__el,Z=f.moduleCount,M=Math.floor(d.width/Z),g=Math.floor(d.height/Z),O=['<table style="border:0;border-collapse:collapse;">'],l=0;l<Z;l++){O.push("<tr>");for(var m=0;m<Z;m++)O.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+M+"px;height:"+g+"px;background-color:"+(f.isDark(l,m)?d.colorDark:d.colorLight)+';"></td>');O.push("</tr>")}O.push("</table>");f=O.join("");f=_.$Hj(_.S3O,f);_.G8(q,f);
f=q.childNodes[0];Z=(d.width-f.offsetWidth)/2;M=(d.height-f.offsetHeight)/2;Z>0&&M>0&&(f.style.margin=M+"px "+Z+"px")};
c.prototype.clear=function(){this.JSC$19435__el.textContent=""};
return c}();
x$D.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19438__android||this.JSC$19438__android>=3)&&this._oDrawing.makeImage()};
x$D.prototype.clear=function(){this._oDrawing.clear()};
_.dz.QRCode=x$D;var ln3={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Vh=function(){};
Vh.prototype.stringify=function(c){return _.dz.JSON.stringify(c,void 0)};
Vh.prototype.parse=function(c){return _.dz.JSON.parse(c,void 0)};var s$S=function(){_.AC.call(this,"z")};
_.rn(s$S,_.AC);var BEC=function(){_.AC.call(this,"y")};
_.rn(BEC,_.AC);var iiC=null,TES=function(){return iiC=iiC||new _.KF},m_H=function(c){_.AC.call(this,"serverreachability",c)};
_.rn(m_H,_.AC);var Xu=function(c){var f=TES();f.dispatchEvent(new m_H(f,c))},Hir=function(c,f){_.AC.call(this,"statevent",c);
this.stat=f};
_.rn(Hir,_.AC);var u_=function(c){var f=TES();f.dispatchEvent(new Hir(f,c))},AWi=function(c,f,d,q){_.AC.call(this,"timingevent",c);
this.size=f;this.rtt=d;this.retries=q};
_.rn(AWi,_.AC);var Y4G=function(c,f,d){var q=TES();q.dispatchEvent(new AWi(q,c,f,d))},vt=function(c,f){if(typeof c!=="function")throw Error("wk");
return _.dz.setTimeout(function(){c()},f)};var hV=function(){this.redactEnabled_=!0};
hV.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Fpi=function(c,f,d,q,Z,M){c.info(function(){if(c.redactEnabled_)if(M){var g="";for(var O=M.split("&"),l=0;l<O.length;l++){var m=O[l].split("=");if(m.length>1){var H=m[0];m=m[1];var A=H.split("_");g=A.length>=2&&A[1]=="type"?g+(H+"="+m+"&"):g+(H+"=redacted&")}}}else g=null;else g=M;return"XMLHTTP REQ ("+q+") [attempt "+Z+"]: "+f+"\n"+d+"\n"+g})},tkp=function(c,f,d,q,Z,M,g){c.info(function(){return"XMLHTTP RESP ("+q+") [ attempt "+Z+"]: "+f+"\n"+d+"\n"+M+" "+g})},wr=function(c,f,d,q){c.info(function(){return"XMLHTTP TEXT ("+
f+"): "+biF(c,d)+(q?" "+q:"")})},KpH=function(c,f){c.info(function(){return"TIMEOUT: "+f})};
hV.prototype.debug=function(){};
hV.prototype.info=function(){};
hV.prototype.warning=function(){};
var biF=function(c,f){if(!c.redactEnabled_)return f;if(!f)return null;try{var d=JSON.parse(f);if(d)for(var q=0;q<d.length;q++)if(Array.isArray(d[q])){var Z=d[q];if(!(Z.length<2)){var M=Z[1];if(Array.isArray(M)&&!(M.length<1)){var g=M[0];if(g!="noop"&&g!="stop"&&g!="close")for(var O=1;O<M.length;O++)M[O]=""}}}return(0,_.zo)(d)}catch(l){return c.debug("Exception parsing expected JS array - probably was not JS"),f}};var yh=function(c,f,d,q,Z){this.JSC$19460_channel_=c;this.JSC$19460_channelDebug_=f;this.sid_=d;this.JSC$19460_rid_=q;this.JSC$19460_retryId_=Z||1;this.JSC$19460_eventHandler_=new _.r2(this);this.timeout_=45E3;this.JSC$19460_extraHeaders_=null;this.JSC$19460_successful_=!1;this.JSC$19460_postData_=this.JSC$19460_requestUri_=this.JSC$19460_baseUri_=this.JSC$19460_type_=this.JSC$19460_requestStartTime_=this.JSC$19460_watchDogTimeoutTime_=this.JSC$19460_watchDogTimerId_=null;this.JSC$19460_pendingMessages_=
[];this.JSC$19460_xmlHttp_=null;this.JSC$19460_xmlHttpChunkStart_=0;this.JSC$19460_lastError_=this.JSC$19460_verb_=null;this.JSC$19460_lastStatusCode_=-1;this.JSC$19460_cancelled_=!1;this.JSC$19460_readyStateChangeThrottleMs_=0;this.JSC$19460_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new E33},E33=function(){this.JSC$19462_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},n3S=function(c,f){switch(c){case 0:return"Non-200 return code ("+f+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},$_3={},Q$S={};
yh.prototype.setTimeout=function(c){this.timeout_=c};
var Lpq=function(c,f,d){c.JSC$19460_type_=1;c.JSC$19460_baseUri_=_.kG(f.clone());c.JSC$19460_postData_=d;c.decodeChunks_=!0;S4G(c,null)},S4G=function(c,f){c.JSC$19460_requestStartTime_=Date.now();
zOr(c);c.JSC$19460_requestUri_=c.JSC$19460_baseUri_.clone();K6(c.JSC$19460_requestUri_,"t",c.JSC$19460_retryId_);c.JSC$19460_xmlHttpChunkStart_=0;var d=c.JSC$19460_channel_.JSC$19479_supportsCrossDomainXhrs_;c.fetchResponseState_=new E33;c.JSC$19460_xmlHttp_=JWQ(c.JSC$19460_channel_,d?f:null,!c.JSC$19460_postData_);c.JSC$19460_readyStateChangeThrottleMs_>0&&(c.JSC$19460_readyStateChangeThrottle_=new _.Gx((0,_.n1)(c.JSC$19464_xmlHttpHandler_,c,c.JSC$19460_xmlHttp_),c.JSC$19460_readyStateChangeThrottleMs_));
c.JSC$19460_eventHandler_.listen(c.JSC$19460_xmlHttp_,"readystatechange",c.JSC$19464_readyStateChangeHandler_);f=c.JSC$19460_extraHeaders_?_.zV.clone(c.JSC$19460_extraHeaders_):{};c.JSC$19460_postData_?(c.JSC$19460_verb_||(c.JSC$19460_verb_="POST"),f["Content-Type"]="application/x-www-form-urlencoded",c.JSC$19460_xmlHttp_.send(c.JSC$19460_requestUri_,c.JSC$19460_verb_,c.JSC$19460_postData_,f)):(c.JSC$19460_verb_="GET",c.JSC$19460_xmlHttp_.send(c.JSC$19460_requestUri_,c.JSC$19460_verb_,null,f));Xu(1);
Fpi(c.JSC$19460_channelDebug_,c.JSC$19460_verb_,c.JSC$19460_requestUri_,c.JSC$19460_rid_,c.JSC$19460_retryId_,c.JSC$19460_postData_)};
yh.prototype.JSC$19464_readyStateChangeHandler_=function(c){c=c.target;var f=this.JSC$19460_readyStateChangeThrottle_;f&&_.ap(c)==3?(this.JSC$19460_channelDebug_.debug("Throttling readystatechange."),f.fire()):this.JSC$19464_xmlHttpHandler_(c)};
yh.prototype.JSC$19464_xmlHttpHandler_=function(c){try{c==this.JSC$19460_xmlHttp_?anQ(this):this.JSC$19460_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(f){this.JSC$19460_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Vkr(this)}finally{}};
var anQ=function(c){var f=_.ap(c.JSC$19460_xmlHttp_),d=c.JSC$19460_xmlHttp_.JSC$9739_lastErrorCode_,q=c.JSC$19460_xmlHttp_.getStatus();if(!(f<3||f==3&&!Vkr(c))){c.JSC$19460_cancelled_||f!=4||d==7||(d==8||q<=0?Xu(3):Xu(2));Xac(c);var Z=c.JSC$19460_xmlHttp_.getStatus();c.JSC$19460_lastStatusCode_=Z;d=ueG(c);Vkr(c)||c.JSC$19460_channelDebug_.debug(function(){return"No response text for uri "+c.JSC$19460_requestUri_+" status "+Z});
c.JSC$19460_successful_=Z==200;tkp(c.JSC$19460_channelDebug_,c.JSC$19460_verb_,c.JSC$19460_requestUri_,c.JSC$19460_rid_,c.JSC$19460_retryId_,f,Z);if(c.JSC$19460_successful_){if(c.decodeInitialResponse_&&!c.initialResponseDecoded_)if(q=v3H(c))wr(c.JSC$19460_channelDebug_,c.JSC$19460_rid_,q,"Initial handshake response via X-HTTP-Initial-Response"),c.initialResponseDecoded_=!0,hO3(c,q);else{c.JSC$19460_successful_=!1;c.JSC$19460_lastError_=3;u_(12);c.JSC$19460_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
c.JSC$19460_rid_+")");Wt(c);DC(c);return}c.decodeChunks_?wac(c,f,d):(wr(c.JSC$19460_channelDebug_,c.JSC$19460_rid_,d,null),hO3(c,d));f==4&&Wt(c);c.JSC$19460_successful_&&!c.JSC$19460_cancelled_&&(f==4?yW3(c.JSC$19460_channel_,c):(c.JSC$19460_successful_=!1,zOr(c)))}else Tyr(c.JSC$19460_xmlHttp_),Z==400&&d.indexOf("Unknown SID")>0?(c.JSC$19460_lastError_=3,u_(12),c.JSC$19460_channelDebug_.warning("XMLHTTP Unknown SID ("+c.JSC$19460_rid_+")")):(c.JSC$19460_lastError_=0,u_(13),c.JSC$19460_channelDebug_.warning("XMLHTTP Bad status "+
Z+" ("+c.JSC$19460_rid_+")")),Wt(c),DC(c)}},v3H=function(c){return c.JSC$19460_xmlHttp_&&(c=z_(c.JSC$19460_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.gz(c)?c:null},ueG=function(c){if(!WpC(c))return c.JSC$19460_xmlHttp_.getResponseText();
var f=c.JSC$19460_xmlHttp_.getResponse();if(f==="")return"";var d="",q=f.length,Z=_.ap(c.JSC$19460_xmlHttp_)==4;if(!c.fetchResponseState_.JSC$19462_textDecoder){if(typeof TextDecoder==="undefined")return Wt(c),DC(c),"";c.fetchResponseState_.JSC$19462_textDecoder=new _.dz.TextDecoder}for(var M=0;M<q;M++)c.fetchResponseState_.responseArrivedForFetch=!0,d+=c.fetchResponseState_.JSC$19462_textDecoder.decode(f[M],{stream:!(Z&&M==q-1)});f.length=0;c.fetchResponseState_.responseBuffer+=d;c.JSC$19460_xmlHttpChunkStart_=
0;return c.fetchResponseState_.responseBuffer},Vkr=function(c){return c.JSC$19460_xmlHttp_?c.fetchResponseState_.responseArrivedForFetch?!0:!(!c.JSC$19460_xmlHttp_.getResponseText()&&!c.JSC$19460_xmlHttp_.getResponse()):!1},WpC=function(c){return c.JSC$19460_xmlHttp_?c.JSC$19460_verb_=="GET"&&c.JSC$19460_type_!=2&&c.JSC$19460_channel_.usesFetchStreams_:!1},wac=function(c,f,d){for(var q=!0,Z;!c.JSC$19460_cancelled_&&c.JSC$19460_xmlHttpChunkStart_<d.length;)if(Z=D_r(c,d),Z==Q$S){f==4&&(c.JSC$19460_lastError_=
4,u_(14),q=!1);
wr(c.JSC$19460_channelDebug_,c.JSC$19460_rid_,null,"[Incomplete Response]");break}else if(Z==$_3){c.JSC$19460_lastError_=4;u_(15);wr(c.JSC$19460_channelDebug_,c.JSC$19460_rid_,d,"[Invalid Chunk]");q=!1;break}else wr(c.JSC$19460_channelDebug_,c.JSC$19460_rid_,Z,null),hO3(c,Z);WpC(c)&&c.JSC$19460_xmlHttpChunkStart_!=0&&(c.fetchResponseState_.responseBuffer=c.fetchResponseState_.responseBuffer.slice(c.JSC$19460_xmlHttpChunkStart_),c.JSC$19460_xmlHttpChunkStart_=0);f!=4||d.length!=0||c.fetchResponseState_.responseArrivedForFetch||
(c.JSC$19460_lastError_=1,u_(16),q=!1);c.JSC$19460_successful_=c.JSC$19460_successful_&&q;q?d.length>0&&!c.firstByteReceived_&&(c.firstByteReceived_=!0,f=c.JSC$19460_channel_,f.JSC$19479_backChannelRequest_==c&&f.detectBufferingProxy_&&!f.bpDetectionDone_&&(f.JSC$19479_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+d.length),eOJ(f),f.bpDetectionDone_=!0,u_(11))):(wr(c.JSC$19460_channelDebug_,c.JSC$19460_rid_,d,"[Invalid Chunked Response]"),Wt(c),DC(c))},D_r=function(c,f){var d=
c.JSC$19460_xmlHttpChunkStart_,q=f.indexOf("\n",d);
if(q==-1)return Q$S;d=Number(f.substring(d,q));if(isNaN(d))return $_3;q+=1;if(q+d>f.length)return Q$S;f=f.slice(q,q+d);c.JSC$19460_xmlHttpChunkStart_=q+d;return f};
yh.prototype.cancel=function(){this.JSC$19460_cancelled_=!0;Wt(this)};
var zOr=function(c){c.JSC$19460_watchDogTimeoutTime_=Date.now()+c.timeout_;NEJ(c,c.timeout_)},NEJ=function(c,f){if(c.JSC$19460_watchDogTimerId_!=null)throw Error("xk");
c.JSC$19460_watchDogTimerId_=vt((0,_.n1)(c.JSC$19464_onWatchDogTimeout_,c),f)},Xac=function(c){c.JSC$19460_watchDogTimerId_&&(_.dz.clearTimeout(c.JSC$19460_watchDogTimerId_),c.JSC$19460_watchDogTimerId_=null)};
yh.prototype.JSC$19464_onWatchDogTimeout_=function(){this.JSC$19460_watchDogTimerId_=null;var c=Date.now();c-this.JSC$19460_watchDogTimeoutTime_>=0?(KpH(this.JSC$19460_channelDebug_,this.JSC$19460_requestUri_),this.JSC$19460_type_!=2&&(Xu(3),u_(17)),Wt(this),this.JSC$19460_lastError_=2,DC(this)):(this.JSC$19460_channelDebug_.warning("WatchDog timer called too early"),NEJ(this,this.JSC$19460_watchDogTimeoutTime_-c))};
var DC=function(c){c.JSC$19460_channel_.state_==0||c.JSC$19460_cancelled_||yW3(c.JSC$19460_channel_,c)},Wt=function(c){Xac(c);
_.GV(c.JSC$19460_readyStateChangeThrottle_);c.JSC$19460_readyStateChangeThrottle_=null;c.JSC$19460_eventHandler_.removeAll();if(c.JSC$19460_xmlHttp_){var f=c.JSC$19460_xmlHttp_;c.JSC$19460_xmlHttp_=null;f.abort();f.dispose()}};
yh.prototype.getLastError=function(){return this.JSC$19460_lastError_};
var hO3=function(c,f){try{var d=c.JSC$19460_channel_;if(d.state_!=0&&(d.JSC$19479_backChannelRequest_==c||InG(d.forwardChannelRequestPool_,c)))if(!c.initialResponseDecoded_&&InG(d.forwardChannelRequestPool_,c)&&d.state_==3){try{var q=d.wireCodec_.JSC$19474_parser_.parse(f)}catch(O){q=null}if(Array.isArray(q)&&q.length==3){f=q;if(f[0]==0)a:if(d.JSC$19479_channelDebug_.debug("Server claims our backchannel is missing."),d.JSC$19479_backChannelTimerId_)d.JSC$19479_channelDebug_.debug("But we are currently starting the request.");
else{if(d.JSC$19479_backChannelRequest_)if(d.JSC$19479_backChannelRequest_.JSC$19460_requestStartTime_+3E3<c.JSC$19460_requestStartTime_)PBc(d),ROp(d);else break a;else d.JSC$19479_channelDebug_.warning("We do not have a BackChannel established");U_C(d);u_(18)}else{d.JSC$19479_lastPostResponseArrayId_=f[1];var Z=d.JSC$19479_lastPostResponseArrayId_-d.JSC$19479_lastArrayId_;if(0<Z){var M=f[2];d.JSC$19479_channelDebug_.debug(M+" bytes (in "+Z+" arrays) are outstanding on the BackChannel");M<37500&&
d.enableStreaming_&&d.JSC$19479_backChannelRetryCount_==0&&!d.JSC$19479_deadBackChannelTimerId_&&(d.JSC$19479_deadBackChannelTimerId_=vt((0,_.n1)(d.JSC$19481_onBackChannelDead_,d),6E3))}}if(pa3(d.forwardChannelRequestPool_)<=1&&d.forwardChannelFlushedCallback_){try{d.forwardChannelFlushedCallback_()}catch(O){}d.forwardChannelFlushedCallback_=void 0}}else d.JSC$19479_channelDebug_.debug("Bad POST response data returned"),e9(d,11)}else if((c.initialResponseDecoded_||d.JSC$19479_backChannelRequest_==
c)&&PBc(d),!_.gz(f)){var g=d.wireCodec_.JSC$19474_parser_.parse(f);d.onInput_(g,c)}Xu(4)}catch(O){}};var x_G=function(c,f){this.JSC$19467_mapId=c;this.map=f;this.context=null};var o3C=function(c){this.maxPoolSizeConfigured_=c||10;_.dz.PerformanceNavigationTiming?(c=_.dz.performance.getEntriesByType("navigation"),c=c.length>0&&(c[0].nextHopProtocol=="hq"||c[0].nextHopProtocol=="h2")):c=!!(_.dz.chrome&&_.dz.chrome.loadTimes&&_.dz.chrome.loadTimes()&&_.dz.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19470_maxSize_=c?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19470_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19470_request_=null;this.JSC$19470_pendingMessages_=
[]},GNi=function(c){return c.JSC$19470_request_?!0:c.requestPool_?c.requestPool_.size>=c.JSC$19470_maxSize_:!1},pa3=function(c){return c.JSC$19470_request_?1:c.requestPool_?c.requestPool_.size:0},InG=function(c,f){return c.JSC$19470_request_?c.JSC$19470_request_==f:c.requestPool_?c.requestPool_.has(f):!1},cRC=function(c,f){c.requestPool_?c.requestPool_.add(f):c.JSC$19470_request_=f},fuS=function(c,f){c.JSC$19470_request_&&c.JSC$19470_request_==f?c.JSC$19470_request_=null:c.requestPool_&&c.requestPool_.has(f)&&
c.requestPool_.delete(f)};
o3C.prototype.cancel=function(){this.JSC$19470_pendingMessages_=dM3(this);if(this.JSC$19470_request_)this.JSC$19470_request_.cancel(),this.JSC$19470_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var c=_.C(this.requestPool_.values()),f=c.next();!f.done;f=c.next())f.value.cancel();this.requestPool_.clear()}};
var dM3=function(c){if(c.JSC$19470_request_!=null)return c.JSC$19470_pendingMessages_.concat(c.JSC$19470_request_.JSC$19460_pendingMessages_);if(c.requestPool_!=null&&c.requestPool_.size!==0){var f=c.JSC$19470_pendingMessages_;c=_.C(c.requestPool_.values());for(var d=c.next();!d.done;d=c.next())f=f.concat(d.value.JSC$19460_pendingMessages_);return f}return _.yn(c.JSC$19470_pendingMessages_)},jYp=function(c,f){c.JSC$19470_pendingMessages_=c.JSC$19470_pendingMessages_.concat(f)};var qPQ=function(c,f){var d=new hV;d.debug("TestLoadImage: loading "+c);if(_.dz.Image){var q=new Image;q.onload=_.Yt(N8,d,"TestLoadImage: loaded",!0,f,q);q.onerror=_.Yt(N8,d,"TestLoadImage: error",!1,f,q);q.onabort=_.Yt(N8,d,"TestLoadImage: abort",!1,f,q);q.ontimeout=_.Yt(N8,d,"TestLoadImage: timeout",!1,f,q);_.dz.setTimeout(function(){if(q.ontimeout)q.ontimeout()},1E4);
q.src=c}else f(!1)},Z8p=function(c,f){var d=new hV,q=new AbortController,Z=setTimeout(function(){q.abort();
N8(d,"TestPingServer: timeout",!1,f)},1E4);
fetch(c,{signal:q.signal}).then(function(M){clearTimeout(Z);M.ok?N8(d,"TestPingServer: ok",!0,f):N8(d,"TestPingServer: server error",!1,f)}).catch(function(){clearTimeout(Z);
N8(d,"TestPingServer: error",!1,f)})},N8=function(c,f,d,q,Z){try{c.debug(f),Z&&(Z.onload=null,Z.onerror=null,Z.onabort=null,Z.ontimeout=null),q(d)}catch(M){}};var Mli=function(){this.JSC$19474_parser_=new Vh};var Ii=function(c,f,d){return d&&d.internalChannelParams?d.internalChannelParams[c]||f:f},Pt=function(c){this.serverVersion_=0;
this.JSC$19479_outgoingMaps_=[];this.JSC$19479_channelDebug_=new hV;this.JSC$19479_hostPrefix_=this.JSC$19479_backChannelUri_=this.JSC$19479_forwardChannelUri_=this.JSC$19479_path_=this.JSC$19479_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19479_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19479_extraHeaders_=null;this.JSC$19479_nextMapId_=this.JSC$19479_nextRid_=0;this.JSC$19479_failFast_=Ii("failFast",!1,c);this.enableStreaming_=this.JSC$19479_deadBackChannelTimerId_=
this.JSC$19479_backChannelTimerId_=this.JSC$19479_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19479_lastPostResponseArrayId_=this.JSC$19479_lastArrayId_=-1;this.JSC$19479_backChannelAttemptId_=this.JSC$19479_backChannelRetryCount_=this.JSC$19479_forwardChannelRetryCount_=0;this.JSC$19479_baseRetryDelayMs_=Ii("baseRetryDelayMs",5E3,c);this.JSC$19479_retryDelaySeedMs_=Ii("retryDelaySeedMs",1E4,c);this.JSC$19479_forwardChannelMaxRetries_=
Ii("forwardChannelMaxRetries",2,c);this.JSC$19479_forwardChannelRequestTimeoutMs_=Ii("forwardChannelRequestTimeoutMs",2E4,c);this.JSC$19479_xmlHttpFactory_=c&&c.xmlHttpFactory||void 0;this.networkTestUrl_=c&&c.networkTestUrl||void 0;this.usesFetchStreams_=c&&c.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19479_supportsCrossDomainXhrs_=c&&c.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new o3C(c&&c.concurrentRequestLimit);this.wireCodec_=new Mli;this.fastHandshake_=
c&&c.fastHandshake||!1;this.encodeInitMessageHeaders_=c&&c.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19479_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=c&&c.blockingHandshake||!1;c&&c.disableRedact&&this.JSC$19479_channelDebug_.disableRedact();c&&c.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
c&&c.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;c&&c.longPollingTimeout&&c.longPollingTimeout>0&&(this.longPollingTimeout_=c.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Pt.prototype.JSC$19481_channelVersion_=8;Pt.prototype.state_=1;
Pt.prototype.connect=function(c,f,d,q){this.JSC$19479_channelDebug_.debug("connect()");u_(0);this.JSC$19479_path_=c;this.JSC$19479_extraParams_=f||{};d&&q!==void 0&&(this.JSC$19479_extraParams_.OSID=d,this.JSC$19479_extraParams_.OAID=q);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19479_channelDebug_.debug("connectChannel_()");c=rRH(this,null,this.JSC$19479_path_);this.JSC$19479_channelDebug_.debug("GetForwardChannelUri: "+c);this.JSC$19479_forwardChannelUri_=c;C0C(this)};
Pt.prototype.disconnect=function(){this.JSC$19479_channelDebug_.debug("disconnect()");gXF(this);if(this.state_==3){var c=this.JSC$19479_nextRid_++,f=this.JSC$19479_forwardChannelUri_.clone();_.Nx(f,"SID",this.sid_);_.Nx(f,"RID",c);_.Nx(f,"TYPE","terminate");Ri(this,f);c=new yh(this,this.JSC$19479_channelDebug_,this.sid_,c);c.JSC$19460_type_=2;c.JSC$19460_baseUri_=_.kG(f.clone());f=!1;if(_.dz.navigator&&_.dz.navigator.sendBeacon)try{f=_.dz.navigator.sendBeacon(c.JSC$19460_baseUri_.toString(),"")}catch(d){}!f&&
_.dz.Image&&((new Image).src=c.JSC$19460_baseUri_,f=!0);f||(c.JSC$19460_xmlHttp_=JWQ(c.JSC$19460_channel_,null),c.JSC$19460_xmlHttp_.send(c.JSC$19460_baseUri_));c.JSC$19460_requestStartTime_=Date.now();zOr(c)}kyF(this)};
var ROp=function(c){c.JSC$19479_backChannelRequest_&&(eOJ(c),c.JSC$19479_backChannelRequest_.cancel(),c.JSC$19479_backChannelRequest_=null)},gXF=function(c){ROp(c);
c.JSC$19479_backChannelTimerId_&&(_.dz.clearTimeout(c.JSC$19479_backChannelTimerId_),c.JSC$19479_backChannelTimerId_=null);PBc(c);c.forwardChannelRequestPool_.cancel();c.JSC$19479_forwardChannelTimerId_&&(typeof c.JSC$19479_forwardChannelTimerId_==="number"&&_.dz.clearTimeout(c.JSC$19479_forwardChannelTimerId_),c.JSC$19479_forwardChannelTimerId_=null)};
Pt.prototype.getState=function(){return this.state_};
var C0C=function(c){GNi(c.forwardChannelRequestPool_)||c.JSC$19479_forwardChannelTimerId_||(c.JSC$19479_forwardChannelTimerId_=!0,_.nF(c.JSC$19481_onStartForwardChannelTimer_,c),c.JSC$19479_forwardChannelRetryCount_=0)},lup=function(c,f){if(pa3(c.forwardChannelRequestPool_)>=c.forwardChannelRequestPool_.JSC$19470_maxSize_-(c.JSC$19479_forwardChannelTimerId_?1:0))return!1;
if(c.JSC$19479_forwardChannelTimerId_)return c.JSC$19479_channelDebug_.debug("Use the retry request that is already scheduled."),c.JSC$19479_outgoingMaps_=f.JSC$19460_pendingMessages_.concat(c.JSC$19479_outgoingMaps_),!0;if(c.state_==1||c.state_==2||c.JSC$19479_forwardChannelRetryCount_>=(c.JSC$19479_failFast_?0:c.JSC$19479_forwardChannelMaxRetries_))return!1;c.JSC$19479_channelDebug_.debug("Going to retry POST");c.JSC$19479_forwardChannelTimerId_=vt((0,_.n1)(c.JSC$19481_onStartForwardChannelTimer_,
c,f),O83(c,c.JSC$19479_forwardChannelRetryCount_));c.JSC$19479_forwardChannelRetryCount_++;return!0};
Pt.prototype.JSC$19481_onStartForwardChannelTimer_=function(c){if(this.JSC$19479_forwardChannelTimerId_)if(this.JSC$19479_forwardChannelTimerId_=null,this.JSC$19479_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!c){this.JSC$19479_channelDebug_.debug("open_()");this.JSC$19479_nextRid_=Math.floor(Math.random()*1E5);c=this.JSC$19479_nextRid_++;var f=new yh(this,this.JSC$19479_channelDebug_,"",c),d=this.JSC$19479_extraHeaders_;this.initHeaders_&&(d?(d=_.zV.clone(d),_.zV.extend(d,this.initHeaders_)):
d=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(f.JSC$19460_extraHeaders_=d,d=null);var q;if(this.fastHandshake_)a:{for(var Z=q=0;Z<this.JSC$19479_outgoingMaps_.length;Z++){b:{var M=this.JSC$19479_outgoingMaps_[Z];if("__data__"in M.map&&(M=M.map.__data__,typeof M==="string")){M=M.length;break b}M=void 0}if(M===void 0)break;q+=M;if(q>4096){q=Z;break a}if(q===4096||Z===this.JSC$19479_outgoingMaps_.length-1){q=Z+1;break a}}q=1E3}else q=1E3;q=sYF(this,f,q);
Z=this.JSC$19479_forwardChannelUri_.clone();_.Nx(Z,"RID",c);_.Nx(Z,"CVER",22);this.httpSessionIdParam_&&_.Nx(Z,"X-HTTP-Session-Id",this.httpSessionIdParam_);Ri(this,Z);d&&(this.encodeInitMessageHeaders_?q="headers="+_.ND(L8S(d))+"&"+q:this.httpHeadersOverwriteParam_&&zHH(Z,this.httpHeadersOverwriteParam_,d));cRC(this.forwardChannelRequestPool_,f);this.blockingHandshake_&&_.Nx(Z,"TYPE","init");this.fastHandshake_?(_.Nx(Z,"$req",q),_.Nx(Z,"SID","null"),f.decodeInitialResponse_=!0,Lpq(f,Z,null)):Lpq(f,
Z,q);this.state_=2}}else this.state_==3&&(c?Bhi(this,c):this.JSC$19479_outgoingMaps_.length==0?this.JSC$19479_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):GNi(this.forwardChannelRequestPool_)||(Bhi(this),this.JSC$19479_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Bhi=function(c,f){var d;f?d=f.JSC$19460_rid_:d=c.JSC$19479_nextRid_++;var q=c.JSC$19479_forwardChannelUri_.clone();_.Nx(q,"SID",c.sid_);_.Nx(q,"RID",d);_.Nx(q,"AID",c.JSC$19479_lastArrayId_);Ri(c,q);c.httpHeadersOverwriteParam_&&c.JSC$19479_extraHeaders_&&zHH(q,c.httpHeadersOverwriteParam_,c.JSC$19479_extraHeaders_);d=new yh(c,c.JSC$19479_channelDebug_,c.sid_,d,c.JSC$19479_forwardChannelRetryCount_+1);c.httpHeadersOverwriteParam_===null&&(d.JSC$19460_extraHeaders_=c.JSC$19479_extraHeaders_);f&&
(c.JSC$19479_outgoingMaps_=f.JSC$19460_pendingMessages_.concat(c.JSC$19479_outgoingMaps_));f=sYF(c,d,1E3);d.setTimeout(Math.round(c.JSC$19479_forwardChannelRequestTimeoutMs_*.5)+Math.round(c.JSC$19479_forwardChannelRequestTimeoutMs_*.5*Math.random()));cRC(c.forwardChannelRequestPool_,d);Lpq(d,q,f)},Ri=function(c,f){c.JSC$19479_extraParams_&&_.zV.forEach(c.JSC$19479_extraParams_,function(d,q){_.Nx(f,q,d)});
c.handler_&&_.zV.forEach({},function(d,q){_.Nx(f,q,d)})},sYF=function(c,f,d){d=Math.min(c.JSC$19479_outgoingMaps_.length,d);
var q=c.handler_?(0,_.n1)(c.handler_.JSC$19485_badMapError,c.handler_,c):null;a:{for(var Z=c.JSC$19479_outgoingMaps_,M=-1;;){var g=["count="+d];M==-1?d>0?(M=Z[0].JSC$19467_mapId,g.push("ofs="+M)):M=0:g.push("ofs="+M);for(var O=!0,l=0;l<d;l++){var m=Z[l].JSC$19467_mapId,H=Z[l].map;m-=M;if(m<0)M=Math.max(0,Z[l].JSC$19467_mapId-100),O=!1;else try{m="req"+m+"_"||"";try{var A=H instanceof Map?H:Object.entries(H);for(var Y=_.C(A),t=Y.next();!t.done;t=Y.next()){var E=_.C(t.value),J=E.next().value,X=E.next().value,
u=X;_.Ik(X)&&(u=(0,_.zo)(X));g.push(m+J+"="+encodeURIComponent(u))}}catch(W){throw g.push(m+"type="+encodeURIComponent("_badmap")),W;}}catch(W){q&&q(H)}}if(O){A=g.join("&");break a}}A=void 0}c=c.JSC$19479_outgoingMaps_.splice(0,d);f.JSC$19460_pendingMessages_=c;return A},i8F=function(c){c.JSC$19479_backChannelRequest_||c.JSC$19479_backChannelTimerId_||(c.JSC$19479_backChannelAttemptId_=1,_.nF(c.JSC$19481_onStartBackChannelTimer_,c),c.JSC$19479_backChannelRetryCount_=0)},U_C=function(c){if(c.JSC$19479_backChannelRequest_||
c.JSC$19479_backChannelTimerId_||c.JSC$19479_backChannelRetryCount_>=3)return!1;
c.JSC$19479_channelDebug_.debug("Going to retry GET");c.JSC$19479_backChannelAttemptId_++;c.JSC$19479_backChannelTimerId_=vt((0,_.n1)(c.JSC$19481_onStartBackChannelTimer_,c),O83(c,c.JSC$19479_backChannelRetryCount_));c.JSC$19479_backChannelRetryCount_++;return!0};
Pt.prototype.JSC$19481_onStartBackChannelTimer_=function(){this.JSC$19479_backChannelTimerId_=null;ThH(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19479_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19479_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19479_backChannelRequest_+" "+this.handshakeRttMs_);else{var c=4*this.handshakeRttMs_;this.JSC$19479_channelDebug_.info("BP detection timer enabled: "+c);this.bpDetectionTimerId_=vt((0,_.n1)(this.onBpDetectionTimer_,
this),c)}};
Pt.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19479_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19479_backChannelRequest_.JSC$19460_xmlHttp_!=null){var c=this.JSC$19479_backChannelRequest_.JSC$19460_xmlHttp_.getResponseText();c&&this.JSC$19479_channelDebug_.warning("Timer should have been cancelled : "+c)}this.JSC$19479_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;u_(10);ROp(this);ThH(this)}else this.JSC$19479_channelDebug_.warning("Invalid operation.")};
var eOJ=function(c){c.bpDetectionTimerId_!=null&&(c.JSC$19479_channelDebug_.debug("Cancel the BP detection timer."),_.dz.clearTimeout(c.bpDetectionTimerId_),c.bpDetectionTimerId_=null)},ThH=function(c){c.JSC$19479_channelDebug_.debug("Creating new HttpRequest");
c.JSC$19479_backChannelRequest_=new yh(c,c.JSC$19479_channelDebug_,c.sid_,"rpc",c.JSC$19479_backChannelAttemptId_);c.httpHeadersOverwriteParam_===null&&(c.JSC$19479_backChannelRequest_.JSC$19460_extraHeaders_=c.JSC$19479_extraHeaders_);c.JSC$19479_backChannelRequest_.JSC$19460_readyStateChangeThrottleMs_=0;var f=c.JSC$19479_backChannelUri_.clone();_.Nx(f,"RID","rpc");_.Nx(f,"SID",c.sid_);_.Nx(f,"AID",c.JSC$19479_lastArrayId_);_.Nx(f,"CI",c.enableStreaming_?"0":"1");!c.enableStreaming_&&c.longPollingTimeout_&&
_.Nx(f,"TO",c.longPollingTimeout_);_.Nx(f,"TYPE","xmlhttp");Ri(c,f);c.httpHeadersOverwriteParam_&&c.JSC$19479_extraHeaders_&&zHH(f,c.httpHeadersOverwriteParam_,c.JSC$19479_extraHeaders_);c.backChannelRequestTimeoutMs_&&c.JSC$19479_backChannelRequest_.setTimeout(c.backChannelRequestTimeoutMs_);var d=c.JSC$19479_backChannelRequest_,q=c.JSC$19479_hostPrefix_;d.JSC$19460_type_=1;d.JSC$19460_baseUri_=_.kG(f.clone());d.JSC$19460_postData_=null;d.decodeChunks_=!0;S4G(d,q);c.JSC$19479_channelDebug_.debug("New Request created")};
Pt.prototype.JSC$19481_onBackChannelDead_=function(){this.JSC$19479_deadBackChannelTimerId_!=null&&(this.JSC$19479_deadBackChannelTimerId_=null,ROp(this),U_C(this),u_(19))};
var PBc=function(c){c.JSC$19479_deadBackChannelTimerId_!=null&&(_.dz.clearTimeout(c.JSC$19479_deadBackChannelTimerId_),c.JSC$19479_deadBackChannelTimerId_=null)},yW3=function(c,f){c.JSC$19479_channelDebug_.debug("Request complete");
var d=null;if(c.JSC$19479_backChannelRequest_==f){PBc(c);eOJ(c);c.JSC$19479_backChannelRequest_=null;var q=2}else if(InG(c.forwardChannelRequestPool_,f))d=f.JSC$19460_pendingMessages_,fuS(c.forwardChannelRequestPool_,f),q=1;else return;if(c.state_!=0)if(f.JSC$19460_successful_)q==1?(Y4G(f.JSC$19460_postData_?f.JSC$19460_postData_.length:0,Date.now()-f.JSC$19460_requestStartTime_,c.JSC$19479_forwardChannelRetryCount_),C0C(c)):i8F(c);else{var Z=f.JSC$19460_lastStatusCode_,M=f.getLastError();if(M==3||
M==0&&Z>0)c.JSC$19479_channelDebug_.debug("Not retrying due to error type"),Z>200&&(c.errorResponseStatusCode_=f.JSC$19460_lastStatusCode_);else{c.JSC$19479_channelDebug_.debug(function(){return"Maybe retrying, last error: "+n3S(M,c.errorResponseStatusCode_)});
if(q==1&&lup(c,f)||q==2&&U_C(c))return;c.JSC$19479_channelDebug_.debug("Exceeded max number of retries")}d&&d.length>0&&jYp(c.forwardChannelRequestPool_,d);c.JSC$19479_channelDebug_.debug("Error: HTTP request failed");switch(M){case 1:e9(c,5);break;case 4:e9(c,10);break;case 3:e9(c,6);break;default:e9(c,2)}}},O83=function(c,f){var d=c.JSC$19479_baseRetryDelayMs_+Math.floor(Math.random()*c.JSC$19479_retryDelaySeedMs_);
c.isActive()||(c.JSC$19479_channelDebug_.debug("Inactive channel"),d*=2);return d*f};
Pt.prototype.onInput_=function(c,f){for(var d=0;d<c.length;d++){var q=c[d];this.JSC$19479_lastArrayId_=q[0];q=q[1];if(this.state_==2)if(q[0]=="c"){this.sid_=q[1];this.JSC$19479_hostPrefix_=q[2];var Z=q[3];Z!=null&&(this.JSC$19481_channelVersion_=Z,this.JSC$19479_channelDebug_.info("VER="+this.JSC$19481_channelVersion_));Z=q[4];Z!=null&&(this.serverVersion_=Z,this.JSC$19479_channelDebug_.info("SVER="+this.serverVersion_));q=q[5];q!=null&&typeof q==="number"&&q>0&&(this.backChannelRequestTimeoutMs_=
q*=1.5,this.JSC$19479_channelDebug_.info("backChannelRequestTimeoutMs_="+q));if(q=f.JSC$19460_xmlHttp_){var M=z_(q,"X-Client-Wire-Protocol");M&&(Z=this.forwardChannelRequestPool_,!Z.requestPool_&&(_.OC(M,"spdy")||_.OC(M,"quic")||_.OC(M,"h2"))&&(Z.JSC$19470_maxSize_=Z.maxPoolSizeConfigured_,Z.requestPool_=new Set,Z.JSC$19470_request_&&(cRC(Z,Z.JSC$19470_request_),Z.JSC$19470_request_=null)));this.httpSessionIdParam_&&((q=z_(q,"X-HTTP-Session-Id"))?(this.httpSessionId_=q,_.Nx(this.JSC$19479_forwardChannelUri_,
this.httpSessionIdParam_,q)):this.JSC$19479_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19485_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-f.JSC$19460_requestStartTime_,this.JSC$19479_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));q=f;Z=rRH(this,this.JSC$19479_supportsCrossDomainXhrs_?this.JSC$19479_hostPrefix_:null,this.JSC$19479_path_);this.JSC$19479_channelDebug_.debug("GetBackChannelUri: "+
Z);this.JSC$19479_backChannelUri_=Z;q.initialResponseDecoded_?(this.JSC$19479_channelDebug_.debug("Upgrade the handshake request to a backchannel."),fuS(this.forwardChannelRequestPool_,q),Z=q,(M=this.backChannelRequestTimeoutMs_)&&Z.setTimeout(M),Z.JSC$19460_watchDogTimerId_&&(Xac(Z),zOr(Z)),this.JSC$19479_backChannelRequest_=q):i8F(this);this.JSC$19479_outgoingMaps_.length>0&&C0C(this)}else q[0]!="stop"&&q[0]!="close"||e9(this,7);else this.state_==3&&(q[0]=="stop"||q[0]=="close"?q[0]=="stop"?e9(this,
7):this.disconnect():q[0]!="noop"&&this.handler_&&this.handler_.JSC$19485_channelHandleArray(q),this.JSC$19479_backChannelRetryCount_=0)}};
var e9=function(c,f){c.JSC$19479_channelDebug_.info("Error code "+f);if(f==2){var d=(0,_.n1)(c.testNetworkCallback_,c),q=c.networkTestUrl_,Z=!q;q=new _.xn(q||"//www.google.com/images/cleardot.gif");_.dz.location&&_.dz.location.protocol=="http"||_.f0(q,"https");_.kG(q);Z?qPQ(q.toString(),d):Z8p(q.toString(),d)}else u_(2);c.onError_(f)};
Pt.prototype.testNetworkCallback_=function(c){c?(this.JSC$19479_channelDebug_.info("Successfully pinged google.com"),u_(2)):(this.JSC$19479_channelDebug_.info("Failed to ping google.com"),u_(1))};
Pt.prototype.onError_=function(c){this.JSC$19479_channelDebug_.debug("HttpChannel: error - "+c);this.state_=0;this.handler_&&this.handler_.JSC$19485_channelError(c);kyF(this);gXF(this)};
var kyF=function(c){c.state_=0;c.nonAckedMapsAtChannelClose_=[];if(c.handler_){var f=dM3(c.forwardChannelRequestPool_);if(f.length!=0||c.JSC$19479_outgoingMaps_.length!=0)c.JSC$19479_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+f.length+", outgoing: "+c.JSC$19479_outgoingMaps_.length}),_.D4(c.nonAckedMapsAtChannelClose_,f),_.D4(c.nonAckedMapsAtChannelClose_,c.JSC$19479_outgoingMaps_),c.forwardChannelRequestPool_.JSC$19470_pendingMessages_.length=0,_.yn(c.JSC$19479_outgoingMaps_),
c.JSC$19479_outgoingMaps_.length=0;
c.handler_.JSC$19485_channelClosed()}},mMH=function(c){if(c.state_==0)return c.nonAckedMapsAtChannelClose_;
var f=[];_.D4(f,dM3(c.forwardChannelRequestPool_));_.D4(f,c.JSC$19479_outgoingMaps_);return f},rRH=function(c,f,d){var q=_.DU(d);
q.JSC$9976_domain_!=""?(f&&_.d3(q,f+"."+q.JSC$9976_domain_),_.jn(q,q.JSC$9976_port_)):(q=_.dz.location,q=moG(q.protocol,f?f+"."+q.hostname:q.hostname,+q.port,d));f=c.httpSessionIdParam_;d=c.httpSessionId_;f&&d&&_.Nx(q,f,d);_.Nx(q,"VER",c.JSC$19481_channelVersion_);Ri(c,q);return q},JWQ=function(c,f,d){if(f&&!c.JSC$19479_supportsCrossDomainXhrs_)throw Error("yk");
f=c.usesFetchStreams_&&!c.JSC$19479_xmlHttpFactory_?new _.JC(new Up({streamBinaryChunks:d})):new _.JC(c.JSC$19479_xmlHttpFactory_);f.JSC$9739_withCredentials_=c.JSC$19479_supportsCrossDomainXhrs_;return f};
Pt.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var H8J=function(){};
_.r=H8J.prototype;_.r.JSC$19485_channelOpened=function(){};
_.r.JSC$19485_channelHandleArray=function(){};
_.r.JSC$19485_channelError=function(){};
_.r.JSC$19485_channelClosed=function(){};
_.r.isActive=function(){return!0};
_.r.JSC$19485_badMapError=function(){};var AR3=function(){},p7=function(c,f){_.KF.call(this);
this.JSC$19488_channel_=new Pt(f);this.JSC$19488_url_=c;this.messageUrlParams_=f&&f.messageUrlParams||null;c=f&&f.messageHeaders||null;f&&f.clientProtocolHeaderRequired&&(c?_.zV.set(c,"X-Client-Protocol","webchannel"):c=_.zV.create("X-Client-Protocol","webchannel"));this.JSC$19488_channel_.JSC$19479_extraHeaders_=c;c=f&&f.initMessageHeaders||null;f&&f.messageContentType&&(c?_.zV.set(c,"X-WebChannel-Content-Type",f.messageContentType):c=_.zV.create("X-WebChannel-Content-Type",f.messageContentType));
f&&f.clientProfile&&(c?_.zV.set(c,"X-WebChannel-Client-Profile",f.clientProfile):c=_.zV.create("X-WebChannel-Client-Profile",f.clientProfile));this.JSC$19488_channel_.initHeaders_=c;(c=f&&f.httpHeadersOverwriteParam)&&!_.gz(c)&&(this.JSC$19488_channel_.httpHeadersOverwriteParam_=c);this.supportsCrossDomainXhr_=f&&f.supportsCrossDomainXhr||!1;this.sendRawJson_=f&&f.sendRawJson||!1;(f=f&&f.httpSessionIdParam)&&!_.gz(f)&&(this.JSC$19488_channel_.httpSessionIdParam_=f,_.zV.containsKey(this.messageUrlParams_,
f)&&_.zV.remove(this.messageUrlParams_,f));this.channelHandler_=new Ug(this)};
_.rn(p7,_.KF);p7.prototype.open=function(){this.JSC$19488_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19488_channel_.JSC$19479_supportsCrossDomainXhrs_=!0);this.JSC$19488_channel_.connect(this.JSC$19488_url_,this.messageUrlParams_||void 0)};
p7.prototype.close=function(){this.JSC$19488_channel_.disconnect()};
p7.prototype.send=function(c){var f=this.JSC$19488_channel_;if(typeof c==="string"){var d={};d.__data__=c;c=d}else this.sendRawJson_&&(d={},d.__data__=(0,_.zo)(c),c=d);f.JSC$19479_outgoingMaps_.push(new x_G(f.JSC$19479_nextMapId_++,c));f.state_==3&&C0C(f)};
p7.prototype.disposeInternal=function(){this.JSC$19488_channel_.handler_=null;delete this.channelHandler_;this.JSC$19488_channel_.disconnect();delete this.JSC$19488_channel_;p7.superClass_.disposeInternal.call(this)};
var YP3=function(c){s$S.call(this);c.__headers__&&(this.headers=c.__headers__,this.statusCode=c.__status__,delete c.__headers__,delete c.__status__);var f=c.__sm__;f?this.data=(this.metadataKey=_.zV.getAnyKey(f))?_.zV.get(f,this.metadataKey):f:this.data=c};
_.rn(YP3,s$S);var FPD=function(c){BEC.call(this);this.status=1;this.errorCode=c};
_.rn(FPD,BEC);var Ug=function(c){this.JSC$19495_channel_=c};
_.rn(Ug,H8J);Ug.prototype.JSC$19485_channelOpened=function(){this.JSC$19495_channel_.dispatchEvent("w")};
Ug.prototype.JSC$19485_channelHandleArray=function(c){this.JSC$19495_channel_.dispatchEvent(new YP3(c))};
Ug.prototype.JSC$19485_channelError=function(c){this.JSC$19495_channel_.dispatchEvent(new FPD(c))};
Ug.prototype.JSC$19485_channelClosed=function(){this.JSC$19495_channel_.dispatchEvent("x")};
var tlp=function(c,f){this.transportChannel_=c;this.JSC$19498_channel_=f},b8C=function(c){return mMH(c.JSC$19498_channel_).map(function(f){var d=c.transportChannel_;
f=f.map;"__data__"in f?(f=f.__data__,d=d.sendRawJson_?(0,_.FCH)(f):f):d=f;return d})};
tlp.prototype.commit=function(c){this.JSC$19498_channel_.forwardChannelFlushedCallback_=c};var xN=function(c){KPr.dispatchEvent(new EXi(KPr,c))},KPr=new _.KF,EXi=function(c,f){_.AC.call(this,"statevent",c);
this.stat=f};
_.K(EXi,_.AC);var oi=function(c,f,d,q,Z){this.JSC$19503_channel_=c;this.JSC$19503_channelDebug_=f;this.sid_=d;this.JSC$19503_rid_=q;this.JSC$19503_retryId_=Z||1;this.timeout_=45E3;this.JSC$19503_eventHandler_=new _.r2(this);this.pollingTimer_=new _.MT;this.pollingTimer_.setInterval(250)};
_.r=oi.prototype;_.r.JSC$19505_extraHeaders_=null;_.r.JSC$19505_successful_=!1;_.r.JSC$19505_watchDogTimerId_=null;_.r.JSC$19505_watchDogTimeoutTime_=null;_.r.JSC$19505_requestStartTime_=null;_.r.JSC$19505_type_=null;_.r.JSC$19505_baseUri_=null;_.r.JSC$19505_requestUri_=null;_.r.JSC$19505_postData_=null;_.r.JSC$19505_xmlHttp_=null;_.r.JSC$19505_xmlHttpChunkStart_=0;_.r.trident_=null;_.r.JSC$19505_verb_=null;_.r.JSC$19505_lastError_=null;_.r.JSC$19505_lastStatusCode_=-1;_.r.sendClose_=!0;
_.r.JSC$19505_cancelled_=!1;_.r.JSC$19505_readyStateChangeThrottleMs_=0;_.r.JSC$19505_readyStateChangeThrottle_=null;var nXG=function(c,f){switch(c){case 0:return"Non-200 return code ("+f+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},$MC={},QY3={};
oi.prototype.setTimeout=function(c){this.timeout_=c};
var Y8S=function(c,f,d){c.JSC$19505_type_=1;c.JSC$19505_baseUri_=_.kG(f.clone());c.JSC$19505_postData_=d;c.decodeChunks_=!0;SP3(c,null)},FZp=function(c,f,d,q,Z){c.JSC$19505_type_=1;
c.JSC$19505_baseUri_=_.kG(f.clone());c.JSC$19505_postData_=null;c.decodeChunks_=d;Z&&(c.sendClose_=!1);SP3(c,q)},SP3=function(c,f){c.JSC$19505_requestStartTime_=Date.now();
tYH(c);c.JSC$19505_requestUri_=c.JSC$19505_baseUri_.clone();K6(c.JSC$19505_requestUri_,"t",c.JSC$19503_retryId_);c.JSC$19505_xmlHttpChunkStart_=0;c.JSC$19505_xmlHttp_=c.JSC$19503_channel_.JSC$19512_createXhrIo(c.JSC$19503_channel_.JSC$19512_shouldUseSecondaryDomains()?f:null);c.JSC$19505_readyStateChangeThrottleMs_>0&&(c.JSC$19505_readyStateChangeThrottle_=new _.Gx((0,_.n1)(c.JSC$19505_xmlHttpHandler_,c,c.JSC$19505_xmlHttp_),c.JSC$19505_readyStateChangeThrottleMs_));c.JSC$19503_eventHandler_.listen(c.JSC$19505_xmlHttp_,
"readystatechange",c.JSC$19505_readyStateChangeHandler_);f=c.JSC$19505_extraHeaders_?_.zV.clone(c.JSC$19505_extraHeaders_):{};c.JSC$19505_postData_?(c.JSC$19505_verb_="POST",f["Content-Type"]="application/x-www-form-urlencoded",c.JSC$19505_xmlHttp_.send(c.JSC$19505_requestUri_,c.JSC$19505_verb_,c.JSC$19505_postData_,f)):(c.JSC$19505_verb_="GET",c.sendClose_&&!_.sJ&&(f.Connection="close"),c.JSC$19505_xmlHttp_.send(c.JSC$19505_requestUri_,c.JSC$19505_verb_,null,f));c.JSC$19503_channel_.notifyServerReachabilityEvent(1);
f=c.JSC$19503_channelDebug_;var d=c.JSC$19505_postData_;if(d){var q="";d=d.split("&");for(var Z=0;Z<d.length;Z++){var M=d[Z].split("=");if(M.length>1){var g=M[0];M=M[1];var O=g.split("_");q=O.length>=2&&O[1]=="type"?q+(g+"="+M+"&"):q+(g+"=redacted&")}}}else q=null;f.info("XMLHTTP REQ ("+c.JSC$19503_rid_+") [attempt "+c.JSC$19503_retryId_+"]: "+c.JSC$19505_verb_+"\n"+c.JSC$19505_requestUri_+"\n"+q)};
oi.prototype.JSC$19505_readyStateChangeHandler_=function(c){c=c.target;var f=this.JSC$19505_readyStateChangeThrottle_;f&&_.ap(c)==3?(this.JSC$19503_channelDebug_.debug("Throttling readystatechange."),f.fire()):this.JSC$19505_xmlHttpHandler_(c)};
oi.prototype.JSC$19505_xmlHttpHandler_=function(c){try{if(c==this.JSC$19505_xmlHttp_)a:{var f=_.ap(this.JSC$19505_xmlHttp_),d=this.JSC$19505_xmlHttp_.JSC$9739_lastErrorCode_,q=this.JSC$19505_xmlHttp_.getStatus();if(_.sJ&&!_.Bg("420+")){if(f<4)break a}else if(f<3||f==3&&!this.JSC$19505_xmlHttp_.getResponseText())break a;this.JSC$19505_cancelled_||f!=4||d==7||(d==8||q<=0?this.JSC$19503_channel_.notifyServerReachabilityEvent(3):this.JSC$19503_channel_.notifyServerReachabilityEvent(2));b53(this);var Z=
this.JSC$19505_xmlHttp_.getStatus();this.JSC$19505_lastStatusCode_=Z;var M=this.JSC$19505_xmlHttp_.getResponseText();M||this.JSC$19503_channelDebug_.debug("No response text for uri "+this.JSC$19505_requestUri_+" status "+Z);this.JSC$19505_successful_=Z==200;this.JSC$19503_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19503_rid_+") [ attempt "+this.JSC$19503_retryId_+"]: "+this.JSC$19505_verb_+"\n"+this.JSC$19505_requestUri_+"\n"+f+" "+Z);if(this.JSC$19505_successful_){f==4&&Gs(this);if(this.decodeChunks_){for(c=
!0;!this.JSC$19505_cancelled_&&this.JSC$19505_xmlHttpChunkStart_<M.length;){var g=KZr(this,M);if(g==QY3){f==4&&(this.JSC$19505_lastError_=4,xN(15),c=!1);c6(this.JSC$19503_channelDebug_,this.JSC$19503_rid_,null,"[Incomplete Response]");break}else if(g==$MC){this.JSC$19505_lastError_=4;xN(16);c6(this.JSC$19503_channelDebug_,this.JSC$19503_rid_,M,"[Invalid Chunk]");c=!1;break}else c6(this.JSC$19503_channelDebug_,this.JSC$19503_rid_,g,null),E2F(this,g)}f==4&&M.length==0&&(this.JSC$19505_lastError_=1,
xN(17),c=!1);this.JSC$19505_successful_=this.JSC$19505_successful_&&c;c||(c6(this.JSC$19503_channelDebug_,this.JSC$19503_rid_,M,"[Invalid Chunked Response]"),Gs(this),n2r(this))}else c6(this.JSC$19503_channelDebug_,this.JSC$19503_rid_,M,null),E2F(this,M);this.JSC$19505_successful_&&!this.JSC$19505_cancelled_&&(f==4?this.JSC$19503_channel_.JSC$19512_onRequestComplete(this):(this.JSC$19505_successful_=!1,tYH(this)))}else Z==400&&M.indexOf("Unknown SID")>0?(this.JSC$19505_lastError_=3,xN(13),this.JSC$19503_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19503_rid_+")")):(this.JSC$19505_lastError_=0,xN(14),this.JSC$19503_channelDebug_.warning("XMLHTTP Bad status "+Z+" ("+this.JSC$19503_rid_+")")),Gs(this),n2r(this)}else this.JSC$19503_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(O){this.JSC$19503_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var KZr=function(c,f){var d=c.JSC$19505_xmlHttpChunkStart_,q=f.indexOf("\n",d);if(q==-1)return QY3;d=Number(f.substring(d,q));if(isNaN(d))return $MC;q+=1;if(q+d>f.length)return QY3;f=f.slice(q,q+d);c.JSC$19505_xmlHttpChunkStart_=q+d;return f};
oi.prototype.cancel=function(){this.JSC$19505_cancelled_=!0;Gs(this)};
var tYH=function(c){c.JSC$19505_watchDogTimeoutTime_=Date.now()+c.timeout_;$I3(c,c.timeout_)},$I3=function(c,f){if(c.JSC$19505_watchDogTimerId_!=null)throw Error("xk");
c.JSC$19505_watchDogTimerId_=eL((0,_.n1)(c.JSC$19505_onWatchDogTimeout_,c),f)},b53=function(c){c.JSC$19505_watchDogTimerId_&&(_.dz.clearTimeout(c.JSC$19505_watchDogTimerId_),c.JSC$19505_watchDogTimerId_=null)};
oi.prototype.JSC$19505_onWatchDogTimeout_=function(){this.JSC$19505_watchDogTimerId_=null;var c=Date.now();c-this.JSC$19505_watchDogTimeoutTime_>=0?(this.JSC$19503_channelDebug_.info("TIMEOUT: "+this.JSC$19505_requestUri_),this.JSC$19505_type_!=2&&this.JSC$19503_channel_.notifyServerReachabilityEvent(3),Gs(this),this.JSC$19505_lastError_=2,xN(18),n2r(this)):(this.JSC$19503_channelDebug_.warning("WatchDog timer called too early"),$I3(this,this.JSC$19505_watchDogTimeoutTime_-c))};
var n2r=function(c){c.JSC$19503_channel_.JSC$19512_isClosed()||c.JSC$19505_cancelled_||c.JSC$19503_channel_.JSC$19512_onRequestComplete(c)},Gs=function(c){b53(c);
_.GV(c.JSC$19505_readyStateChangeThrottle_);c.JSC$19505_readyStateChangeThrottle_=null;c.pollingTimer_.stop();c.JSC$19503_eventHandler_.removeAll();if(c.JSC$19505_xmlHttp_){var f=c.JSC$19505_xmlHttp_;c.JSC$19505_xmlHttp_=null;f.abort();f.dispose()}c.trident_&&(c.trident_=null)};
oi.prototype.getLastError=function(){return this.JSC$19505_lastError_};
var E2F=function(c,f){try{c.JSC$19503_channel_.JSC$19512_onRequestData(c,f),c.JSC$19503_channel_.notifyServerReachabilityEvent(4)}catch(d){}};var c6=function(c,f,d,q){var Z=c.info;a:if(d&&d!="y2f%"){try{var M=JSON.parse(d);if(M)for(var g=0;g<M.length;g++)if(Array.isArray(M[g])){var O=M[g];if(!(O.length<2)){var l=O[1];if(Array.isArray(l)&&!(l.length<1)){var m=l[0];if(m!="noop"&&m!="stop")for(var H=1;H<l.length;H++)l[H]=""}}}var A=(0,_.zo)(M);break a}catch(Y){c.debug("Exception parsing expected JS array - probably was not JS");A=d;break a}A=void 0}else A=d;Z.call(c,"XMLHTTP TEXT ("+f+"): "+A+(q?" "+q:""))};
NZ.prototype.debug=function(c){this.info(c)};
NZ.prototype.info=function(){};
NZ.prototype.warning=function(){};var QXc=function(c,f){this.JSC$19510_channel_=c;this.JSC$19510_channelDebug_=f;this.JSC$19510_parser_=new Vh};
_.r=QXc.prototype;_.r.JSC$19512_extraHeaders_=null;_.r.JSC$19512_request_=null;_.r.receivedIntermediateResult_=!1;_.r.JSC$19512_path_=null;_.r.state_=null;_.r.JSC$19512_lastStatusCode_=-1;_.r.JSC$19512_hostPrefix_=null;_.r.blockedPrefix_=null;
_.r.connect=function(c){this.JSC$19512_path_=c;c=S8Q(this.JSC$19510_channel_,this.JSC$19512_path_);xN(3);Date.now();var f=this.JSC$19510_channel_.firstTestResults_;f!=null?(this.JSC$19512_hostPrefix_=f[0],(this.blockedPrefix_=f[1])?(this.state_=1,LZC(this)):(this.state_=2,zeC(this))):(K6(c,"MODE","init"),this.JSC$19512_request_=new oi(this,this.JSC$19510_channelDebug_),this.JSC$19512_request_.JSC$19505_extraHeaders_=this.JSC$19512_extraHeaders_,FZp(this.JSC$19512_request_,c,!1,null,!0),this.state_=
0)};
var LZC=function(c){var f=JuC(c.JSC$19510_channel_,c.blockedPrefix_,"/mail/images/cleardot.gif");_.kG(f);chH(f.toString(),5E3,(0,_.n1)(c.checkBlockedCallback_,c),3,2E3);c.notifyServerReachabilityEvent(1)};
QXc.prototype.checkBlockedCallback_=function(c){if(c)this.state_=2,zeC(this);else{xN(4);var f=this.JSC$19510_channel_;f.JSC$19513_channelDebug_.debug("Test Connection Blocked");f.JSC$19517_lastStatusCode_=f.connectionTest_.JSC$19512_lastStatusCode_;fc(f,9)}c&&this.notifyServerReachabilityEvent(2)};
var zeC=function(c){c.JSC$19510_channelDebug_.debug("TestConnection: starting stage 2");var f=c.JSC$19510_channel_.secondTestResults_;f!=null?(c.JSC$19510_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+f?"Buffered":"Unbuffered"),xN(5),f?(xN(11),dC(c.JSC$19510_channel_,c,!1)):(xN(12),dC(c.JSC$19510_channel_,c,!0))):(c.JSC$19512_request_=new oi(c,c.JSC$19510_channelDebug_),c.JSC$19512_request_.JSC$19505_extraHeaders_=c.JSC$19512_extraHeaders_,f=aKF(c.JSC$19510_channel_,
c.JSC$19512_hostPrefix_,c.JSC$19512_path_),xN(5),K6(f,"TYPE","xmlhttp"),FZp(c.JSC$19512_request_,f,!1,c.JSC$19512_hostPrefix_,!1))};
_.r=QXc.prototype;_.r.JSC$19512_createXhrIo=function(c){return this.JSC$19510_channel_.JSC$19512_createXhrIo(c)};
_.r.abort=function(){this.JSC$19512_request_&&(this.JSC$19512_request_.cancel(),this.JSC$19512_request_=null);this.JSC$19512_lastStatusCode_=-1};
_.r.JSC$19512_isClosed=function(){return!1};
_.r.JSC$19512_onRequestData=function(c,f){this.JSC$19512_lastStatusCode_=c.JSC$19505_lastStatusCode_;if(this.state_==0)if(this.JSC$19510_channelDebug_.debug("TestConnection: Got data for stage 1"),f){try{var d=this.JSC$19510_parser_.parse(f)}catch(q){VYC(this.JSC$19510_channel_,this);return}this.JSC$19512_hostPrefix_=d[0];this.blockedPrefix_=d[1]}else this.JSC$19510_channelDebug_.debug("TestConnection: Null responseText"),VYC(this.JSC$19510_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(xN(7),Date.now()):f=="11111"?(xN(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19512_lastStatusCode_=200,this.JSC$19512_request_.cancel(),this.JSC$19510_channelDebug_.debug("Test connection succeeded; using streaming connection"),xN(12),dC(this.JSC$19510_channel_,this,!0)):(xN(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.r.JSC$19512_onRequestComplete=function(){this.JSC$19512_lastStatusCode_=this.JSC$19512_request_.JSC$19505_lastStatusCode_;this.JSC$19512_request_.JSC$19505_successful_?this.state_==0?(this.JSC$19510_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,LZC(this)):(this.state_=2,zeC(this))):this.state_==2&&(this.JSC$19510_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19510_channelDebug_.debug("Test connection succeeded; using streaming connection"),
xN(12),dC(this.JSC$19510_channel_,this,!0)):(this.JSC$19510_channelDebug_.debug("Test connection failed; not using streaming"),xN(11),dC(this.JSC$19510_channel_,this,!1))):(this.JSC$19510_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?xN(9):this.state_==2&&xN(10),VYC(this.JSC$19510_channel_,this,this.JSC$19512_request_.getLastError()))};
_.r.JSC$19512_shouldUseSecondaryDomains=function(){return this.JSC$19510_channel_.JSC$19512_shouldUseSecondaryDomains()};
_.r.isActive=function(){return this.JSC$19510_channel_.isActive()};
_.r.notifyServerReachabilityEvent=function(c){this.JSC$19510_channel_.notifyServerReachabilityEvent(c)};var j2=function(c,f,d){this.state_=1;this.JSC$19513_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19513_channelDebug_=new NZ;this.JSC$19513_parser_=new Vh;this.firstTestResults_=c||null;this.secondTestResults_=f!=null?f:null;this.asyncTest_=d||!1},X_c=function(c,f){this.JSC$19515_mapId=c;
this.map=f;this.context=null};
_.r=j2.prototype;_.r.JSC$19517_extraHeaders_=null;_.r.JSC$19517_extraParams_=null;_.r.forwardChannelRequest_=null;_.r.JSC$19517_backChannelRequest_=null;_.r.JSC$19517_path_=null;_.r.JSC$19517_forwardChannelUri_=null;_.r.JSC$19517_backChannelUri_=null;_.r.JSC$19517_hostPrefix_=null;_.r.JSC$19517_nextRid_=0;_.r.JSC$19517_nextMapId_=0;_.r.handler_=null;_.r.JSC$19517_forwardChannelTimerId_=null;_.r.JSC$19517_backChannelTimerId_=null;_.r.JSC$19517_deadBackChannelTimerId_=null;_.r.connectionTest_=null;
_.r.useChunked_=null;_.r.JSC$19517_lastArrayId_=-1;_.r.JSC$19517_lastPostResponseArrayId_=-1;_.r.JSC$19517_lastStatusCode_=-1;_.r.JSC$19517_forwardChannelRetryCount_=0;_.r.JSC$19517_backChannelRetryCount_=0;_.r.JSC$19517_channelVersion_=8;var u73={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},v2G=function(c,f,d,q){_.AC.call(this,"timingevent",c);this.size=f;this.rtt=d;this.retries=q};
_.rn(v2G,_.AC);var heG=function(c){_.AC.call(this,"serverreachability",c)};
_.rn(heG,_.AC);j2.prototype.connect=function(c,f,d,q,Z){this.JSC$19513_channelDebug_.debug("connect()");xN(0);this.JSC$19517_path_=f;this.JSC$19517_extraParams_=d||{};q&&Z!==void 0&&(this.JSC$19517_extraParams_.OSID=q,this.JSC$19517_extraParams_.OAID=Z);this.asyncTest_?(eL((0,_.n1)(this.connectTest_,this,c),100),w_3(this)):this.connectTest_(c)};
j2.prototype.disconnect=function(){this.JSC$19513_channelDebug_.debug("disconnect()");yuH(this);if(this.state_==3){var c=this.JSC$19517_nextRid_++,f=this.JSC$19517_forwardChannelUri_.clone();_.Nx(f,"SID",this.sid_);_.Nx(f,"RID",c);_.Nx(f,"TYPE","terminate");qt(this,f);c=new oi(this,this.JSC$19513_channelDebug_,this.sid_,c);c.JSC$19505_type_=2;c.JSC$19505_baseUri_=_.kG(f.clone());(new Image).src=c.JSC$19505_baseUri_.toString();c.JSC$19505_requestStartTime_=Date.now();tYH(c)}WZ3(this)};
j2.prototype.connectTest_=function(c){this.JSC$19513_channelDebug_.debug("connectTest_()");this.connectionTest_=new QXc(this,this.JSC$19513_channelDebug_);this.connectionTest_.JSC$19512_extraHeaders_=this.JSC$19517_extraHeaders_;this.connectionTest_.JSC$19510_parser_=this.JSC$19513_parser_;this.connectionTest_.connect(c)};
var w_3=function(c){c.JSC$19513_channelDebug_.debug("connectChannel_()");c.JSC$19517_ensureInState_(1,0);c.JSC$19517_forwardChannelUri_=S8Q(c,c.JSC$19517_path_);DIp(c)},yuH=function(c){c.connectionTest_&&(c.connectionTest_.abort(),c.connectionTest_=null);
c.JSC$19517_backChannelRequest_&&(c.JSC$19517_backChannelRequest_.cancel(),c.JSC$19517_backChannelRequest_=null);c.JSC$19517_backChannelTimerId_&&(_.dz.clearTimeout(c.JSC$19517_backChannelTimerId_),c.JSC$19517_backChannelTimerId_=null);eeG(c);c.forwardChannelRequest_&&(c.forwardChannelRequest_.cancel(),c.forwardChannelRequest_=null);c.JSC$19517_forwardChannelTimerId_&&(_.dz.clearTimeout(c.JSC$19517_forwardChannelTimerId_),c.JSC$19517_forwardChannelTimerId_=null)},Nli=function(c,f){if(c.state_==0)throw Error("Ak");
c.JSC$19513_outgoingMaps_.length==1E3&&c.JSC$19513_parser_.stringify(f);c.JSC$19513_outgoingMaps_.push(new X_c(c.JSC$19517_nextMapId_++,f));c.state_!=2&&c.state_!=3||DIp(c)};
j2.prototype.JSC$19512_isClosed=function(){return this.state_==0};
j2.prototype.getState=function(){return this.state_};
var DIp=function(c){c.forwardChannelRequest_||c.JSC$19517_forwardChannelTimerId_||(c.JSC$19517_forwardChannelTimerId_=eL((0,_.n1)(c.JSC$19517_onStartForwardChannelTimer_,c),0),c.JSC$19517_forwardChannelRetryCount_=0)};
j2.prototype.JSC$19517_onStartForwardChannelTimer_=function(c){this.JSC$19517_forwardChannelTimerId_=null;IKS(this,c)};
var IKS=function(c,f){c.JSC$19513_channelDebug_.debug("startForwardChannel_");if(c.state_==1){if(!f){c.JSC$19513_channelDebug_.debug("open_()");c.JSC$19517_nextRid_=Math.floor(Math.random()*1E5);f=c.JSC$19517_nextRid_++;var d=new oi(c,c.JSC$19513_channelDebug_,"",f);d.JSC$19505_extraHeaders_=c.JSC$19517_extraHeaders_;var q=PjF(c),Z=c.JSC$19517_forwardChannelUri_.clone();_.Nx(Z,"RID",f);_.Nx(Z,"CVER","1");qt(c,Z);Y8S(d,Z,q);c.forwardChannelRequest_=d;c.state_=2}}else c.state_==3&&(f?Rei(c,f):c.JSC$19513_outgoingMaps_.length==
0?c.JSC$19513_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):c.forwardChannelRequest_||(Rei(c),c.JSC$19513_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Rei=function(c,f){if(f)if(c.JSC$19517_channelVersion_>6){c.JSC$19513_outgoingMaps_=c.pendingMaps_.concat(c.JSC$19513_outgoingMaps_);
c.pendingMaps_.length=0;var d=c.JSC$19517_nextRid_-1;f=PjF(c)}else d=f.JSC$19503_rid_,f=f.JSC$19505_postData_;else d=c.JSC$19517_nextRid_++,f=PjF(c);var q=c.JSC$19517_forwardChannelUri_.clone();_.Nx(q,"SID",c.sid_);_.Nx(q,"RID",d);_.Nx(q,"AID",c.JSC$19517_lastArrayId_);qt(c,q);d=new oi(c,c.JSC$19513_channelDebug_,c.sid_,d,c.JSC$19517_forwardChannelRetryCount_+1);d.JSC$19505_extraHeaders_=c.JSC$19517_extraHeaders_;d.setTimeout(1E4+Math.round(1E4*Math.random()));c.forwardChannelRequest_=d;Y8S(d,q,f)},
qt=function(c,f){c.handler_&&(c=c.handler_.JSC$19524_getAdditionalParams())&&_.zV.forEach(c,function(d,q){_.Nx(f,q,d)})},PjF=function(c){var f=Math.min(c.JSC$19513_outgoingMaps_.length,1E3),d=["count="+f];
if(c.JSC$19517_channelVersion_>6&&f>0){var q=c.JSC$19513_outgoingMaps_[0].JSC$19515_mapId;d.push("ofs="+q)}else q=0;for(var Z={},M=0;M<f;Z={mapId$jscomp$3:void 0},M++){Z.mapId$jscomp$3=c.JSC$19513_outgoingMaps_[M].JSC$19515_mapId;var g=c.JSC$19513_outgoingMaps_[M].map;Z.mapId$jscomp$3=c.JSC$19517_channelVersion_<=6?M:Z.mapId$jscomp$3-q;try{_.zV.forEach(g,function(O){return function(l,m){d.push("req"+O.mapId$jscomp$3+"_"+m+"="+encodeURIComponent(l))}}(Z))}catch(O){d.push("req"+Z.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}c.pendingMaps_=c.pendingMaps_.concat(c.JSC$19513_outgoingMaps_.splice(0,f));
return d.join("&")},UID=function(c){c.JSC$19517_backChannelRequest_||c.JSC$19517_backChannelTimerId_||(c.JSC$19517_backChannelAttemptId_=1,c.JSC$19517_backChannelTimerId_=eL((0,_.n1)(c.JSC$19517_onStartBackChannelTimer_,c),0),c.JSC$19517_backChannelRetryCount_=0)},xID=function(c){if(c.JSC$19517_backChannelRequest_||c.JSC$19517_backChannelTimerId_||c.JSC$19517_backChannelRetryCount_>=3)return!1;
c.JSC$19513_channelDebug_.debug("Going to retry GET");c.JSC$19517_backChannelAttemptId_++;c.JSC$19517_backChannelTimerId_=eL((0,_.n1)(c.JSC$19517_onStartBackChannelTimer_,c),p_J(c,c.JSC$19517_backChannelRetryCount_));c.JSC$19517_backChannelRetryCount_++;return!0};
j2.prototype.JSC$19517_onStartBackChannelTimer_=function(){this.JSC$19517_backChannelTimerId_=null;this.JSC$19513_channelDebug_.debug("Creating new HttpRequest");this.JSC$19517_backChannelRequest_=new oi(this,this.JSC$19513_channelDebug_,this.sid_,"rpc",this.JSC$19517_backChannelAttemptId_);this.JSC$19517_backChannelRequest_.JSC$19505_extraHeaders_=this.JSC$19517_extraHeaders_;this.JSC$19517_backChannelRequest_.JSC$19505_readyStateChangeThrottleMs_=0;var c=this.JSC$19517_backChannelUri_.clone();_.Nx(c,
"RID","rpc");_.Nx(c,"SID",this.sid_);_.Nx(c,"CI",this.useChunked_?"0":"1");_.Nx(c,"AID",this.JSC$19517_lastArrayId_);qt(this,c);_.Nx(c,"TYPE","xmlhttp");FZp(this.JSC$19517_backChannelRequest_,c,!0,this.JSC$19517_hostPrefix_,!1);this.JSC$19513_channelDebug_.debug("New Request created")};
var dC=function(c,f,d){c.JSC$19513_channelDebug_.debug("Test Connection Finished");c.useChunked_=c.secondTestResults_==null?d:!c.secondTestResults_;c.JSC$19517_lastStatusCode_=f.JSC$19512_lastStatusCode_;c.asyncTest_||w_3(c)},VYC=function(c,f){c.JSC$19513_channelDebug_.debug("Test Connection Failed");
c.JSC$19517_lastStatusCode_=f.JSC$19512_lastStatusCode_;fc(c,2)};
j2.prototype.JSC$19512_onRequestData=function(c,f){if(this.state_!=0&&(this.JSC$19517_backChannelRequest_==c||this.forwardChannelRequest_==c))if(this.JSC$19517_lastStatusCode_=c.JSC$19505_lastStatusCode_,this.forwardChannelRequest_==c&&this.state_==3)if(this.JSC$19517_channelVersion_>7){try{var d=this.JSC$19513_parser_.parse(f)}catch(q){d=null}if(Array.isArray(d)&&d.length==3)if(f=d,f[0]==0)a:if(this.JSC$19513_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19517_backChannelTimerId_)this.JSC$19513_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19517_backChannelRequest_)if(this.JSC$19517_backChannelRequest_.JSC$19505_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19505_requestStartTime_)eeG(this),this.JSC$19517_backChannelRequest_.cancel(),this.JSC$19517_backChannelRequest_=null;else break a;else this.JSC$19513_channelDebug_.warning("We do not have a BackChannel established");xID(this);xN(19)}else this.JSC$19517_lastPostResponseArrayId_=f[1],c=this.JSC$19517_lastPostResponseArrayId_-this.JSC$19517_lastArrayId_,0<
c&&(f=f[2],this.JSC$19513_channelDebug_.debug(f+" bytes (in "+c+" arrays) are outstanding on the BackChannel"),f<37500&&this.useChunked_&&this.JSC$19517_backChannelRetryCount_==0&&!this.JSC$19517_deadBackChannelTimerId_&&(this.JSC$19517_deadBackChannelTimerId_=eL((0,_.n1)(this.JSC$19517_onBackChannelDead_,this),6E3)));else this.JSC$19513_channelDebug_.debug("Bad POST response data returned"),fc(this,11)}else f!="y2f%"&&(this.JSC$19513_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
fc(this,11));else this.JSC$19517_backChannelRequest_==c&&eeG(this),_.gz(f)||(c=this.JSC$19513_parser_.parse(f),this.onInput_(c))};
j2.prototype.JSC$19517_onBackChannelDead_=function(){this.JSC$19517_deadBackChannelTimerId_!=null&&(this.JSC$19517_deadBackChannelTimerId_=null,this.JSC$19517_backChannelRequest_.cancel(),this.JSC$19517_backChannelRequest_=null,xID(this),xN(20))};
var eeG=function(c){c.JSC$19517_deadBackChannelTimerId_!=null&&(_.dz.clearTimeout(c.JSC$19517_deadBackChannelTimerId_),c.JSC$19517_deadBackChannelTimerId_=null)};
j2.prototype.JSC$19512_onRequestComplete=function(c){this.JSC$19513_channelDebug_.debug("Request complete");if(this.JSC$19517_backChannelRequest_==c){eeG(this);this.JSC$19517_backChannelRequest_=null;var f=2}else if(this.forwardChannelRequest_==c)this.forwardChannelRequest_=null,f=1;else return;this.JSC$19517_lastStatusCode_=c.JSC$19505_lastStatusCode_;if(this.state_!=0)if(c.JSC$19505_successful_)if(f==1){f=c.JSC$19505_postData_?c.JSC$19505_postData_.length:0;c=Date.now()-c.JSC$19505_requestStartTime_;
var d=KPr;d.dispatchEvent(new v2G(d,f,c,this.JSC$19517_forwardChannelRetryCount_));DIp(this);this.handler_&&this.handler_.JSC$19524_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else UID(this);else{d=c.getLastError();if(d==3||d==7||d==0&&this.JSC$19517_lastStatusCode_>0)this.JSC$19513_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19513_channelDebug_.debug("Maybe retrying, last error: "+nXG(d,this.JSC$19517_lastStatusCode_));var q;if(q=f==1)this.forwardChannelRequest_||
this.JSC$19517_forwardChannelTimerId_||this.state_==1||this.JSC$19517_forwardChannelRetryCount_>=2?q=!1:(this.JSC$19513_channelDebug_.debug("Going to retry POST"),this.JSC$19517_forwardChannelTimerId_=eL((0,_.n1)(this.JSC$19517_onStartForwardChannelTimer_,this,c),p_J(this,this.JSC$19517_forwardChannelRetryCount_)),this.JSC$19517_forwardChannelRetryCount_++,q=!0);if(q||f==2&&xID(this))return;this.JSC$19513_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19513_channelDebug_.debug("Error: HTTP request failed");
switch(d){case 1:fc(this,5);break;case 4:fc(this,10);break;case 3:fc(this,6);break;case 7:fc(this,12);break;default:fc(this,2)}}};
var p_J=function(c,f){var d=5E3+Math.floor(Math.random()*1E4);c.isActive()||(c.JSC$19513_channelDebug_.debug("Inactive channel"),d*=2);return d*f};
j2.prototype.onInput_=function(c){for(var f=0;f<c.length;f++){var d=c[f];this.JSC$19517_lastArrayId_=d[0];d=d[1];this.state_==2?d[0]=="c"?(this.sid_=d[1],this.JSC$19517_hostPrefix_=d[2],d=d[3],d!=null?this.JSC$19517_channelVersion_=d:this.JSC$19517_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19524_channelOpened(),this.JSC$19517_backChannelUri_=aKF(this,this.JSC$19517_hostPrefix_,this.JSC$19517_path_),UID(this)):d[0]=="stop"&&fc(this,7):this.state_==3&&(d[0]=="stop"?fc(this,7):
d[0]!="noop"&&this.handler_&&this.handler_.JSC$19524_channelHandleArray(d),this.JSC$19517_backChannelRetryCount_=0)}};
j2.prototype.JSC$19517_ensureInState_=function(c){if(!_.hP(arguments,this.state_))throw Error("Bk`"+this.state_);};
var fc=function(c,f){c.JSC$19513_channelDebug_.info("Error code "+f);if(f==2||f==9){var d=null;c.handler_&&(d=null);var q=(0,_.n1)(c.testGoogleComCallback_,c);d||(d=new _.xn("//www.google.com/images/cleardot.gif"),_.kG(d));GhQ(d.toString(),1E4,q)}else xN(2);c.onError_(f)};
j2.prototype.testGoogleComCallback_=function(c){c?(this.JSC$19513_channelDebug_.info("Successfully pinged google.com"),xN(2)):(this.JSC$19513_channelDebug_.info("Failed to ping google.com"),xN(1),this.onError_(8))};
j2.prototype.onError_=function(c){this.JSC$19513_channelDebug_.debug("HttpChannel: error - "+c);this.state_=0;this.handler_&&this.handler_.JSC$19524_channelError(c);WZ3(this);yuH(this)};
var WZ3=function(c){c.state_=0;c.JSC$19517_lastStatusCode_=-1;if(c.handler_)if(c.pendingMaps_.length==0&&c.JSC$19513_outgoingMaps_.length==0)c.handler_.JSC$19524_channelClosed();else{c.JSC$19513_channelDebug_.debug("Number of undelivered maps, pending: "+c.pendingMaps_.length+", outgoing: "+c.JSC$19513_outgoingMaps_.length);var f=_.yn(c.pendingMaps_),d=_.yn(c.JSC$19513_outgoingMaps_);c.pendingMaps_.length=0;c.JSC$19513_outgoingMaps_.length=0;c.handler_.JSC$19524_channelClosed(f,d)}},S8Q=function(c,
f){f=JuC(c,null,f);
c.JSC$19513_channelDebug_.debug("GetForwardChannelUri: "+f);return f},aKF=function(c,f,d){f=JuC(c,c.JSC$19512_shouldUseSecondaryDomains()?f:null,d);
c.JSC$19513_channelDebug_.debug("GetBackChannelUri: "+f);return f},JuC=function(c,f,d){var q=_.DU(d);
if(q.JSC$9976_domain_!="")f&&_.d3(q,f+"."+q.JSC$9976_domain_),_.jn(q,q.JSC$9976_port_);else{var Z=window.location;q=moG(Z.protocol,f?f+"."+Z.hostname:Z.hostname,+Z.port,d)}c.JSC$19517_extraParams_&&_.zV.forEach(c.JSC$19517_extraParams_,function(M,g){_.Nx(q,g,M)});
_.Nx(q,"VER",c.JSC$19517_channelVersion_);qt(c,q);return q};
j2.prototype.JSC$19512_createXhrIo=function(c){if(c)throw Error("yk");c=new _.JC;c.JSC$9739_withCredentials_=!1;return c};
j2.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
j2.prototype.notifyServerReachabilityEvent=function(c){var f=KPr;f.dispatchEvent(new heG(f,c))};
j2.prototype.JSC$19512_shouldUseSecondaryDomains=function(){return!1};
new bp3;var o2q=function(){};
_.r=o2q.prototype;_.r.JSC$19524_channelOpened=function(){};
_.r.JSC$19524_channelHandleArray=function(){};
_.r.JSC$19524_channelSuccess=function(){};
_.r.JSC$19524_channelError=function(){};
_.r.JSC$19524_channelClosed=function(){};
_.r.JSC$19524_getAdditionalParams=function(){return{}};
_.r.isActive=function(){return!0};var GGC=function(c){c.front_.length===0&&(c.front_=c.back_,c.front_.reverse(),c.back_=[])};
_.r=dLH.prototype;_.r.enqueue=function(c){this.back_.push(c)};
_.r.peek=function(){GGC(this);return _.zY(this.front_)};
_.r.getCount=function(){return this.front_.length+this.back_.length};
_.r.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.r.clear=function(){this.front_=[];this.back_=[]};
_.r.contains=function(c){return _.hP(this.front_,c)||_.hP(this.back_,c)};
_.r.remove=function(c){var f=this.front_;var d=Array.prototype.lastIndexOf.call(f,c,f.length-1);d>=0?(_.brG(f,d),f=!0):f=!1;return f||_.wz(this.back_,c)};
_.r.getValues=function(){for(var c=[],f=this.front_.length-1;f>=0;--f)c.push(this.front_[f]);f=this.back_.length;for(var d=0;d<f;++d)c.push(this.back_[d]);return c};var ZE=function(c){this.JSC$19528_map_=new _.ls;this.size=0;c&&this.addAll(c)},c$3=function(c){var f=typeof c;
return f=="object"&&c||f=="function"?"o"+_.Rk(c):f.charAt(0)+c};
_.r=ZE.prototype;_.r.getCount=function(){return this.JSC$19528_map_.size};
_.r.add=function(c){this.JSC$19528_map_.set(c$3(c),c);this.size=this.JSC$19528_map_.size};
_.r.addAll=function(c){c=_.cf(c);for(var f=c.length,d=0;d<f;d++)this.add(c[d]);this.size=this.JSC$19528_map_.size};
_.r.removeAll=function(c){c=_.cf(c);for(var f=c.length,d=0;d<f;d++)this.remove(c[d]);this.size=this.JSC$19528_map_.size};
_.r.delete=function(c){c=this.JSC$19528_map_.remove(c$3(c));this.size=this.JSC$19528_map_.size;return c};
_.r.remove=function(c){return this.delete(c)};
_.r.clear=function(){this.JSC$19528_map_.clear();this.size=0};
_.r.isEmpty=function(){return this.JSC$19528_map_.size===0};
_.r.has=function(c){return this.JSC$19528_map_.containsKey(c$3(c))};
_.r.contains=function(c){return this.JSC$19528_map_.containsKey(c$3(c))};
_.r.getValues=function(){return this.JSC$19528_map_.getValues()};
_.r.values=function(){return this.JSC$19528_map_.values()};
_.r.clone=function(){return new ZE(this)};
_.r.equals=function(c){return this.getCount()==ipJ(c)&&fV3(this,c)};
var fV3=function(c,f){var d=ipJ(f);if(c.getCount()>d)return!1;!(f instanceof ZE)&&d>5&&(f=new ZE(f));return TOr(c,function(q){var Z=f;return Z.contains&&typeof Z.contains=="function"?Z.contains(q):Z.containsValue&&typeof Z.containsValue=="function"?Z.containsValue(q):_.WN(Z)||typeof Z==="string"?_.hP(Z,q):_.zV.containsValue(Z,q)})};
ZE.prototype.__iterator__=function(){return this.JSC$19528_map_.__iterator__(!1)};
ZE.prototype[Symbol.iterator]=function(){return this.values()};var d2i={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(c){return(this._clampValue(c)-this.min)/(this.max-this.min)},
_clampValue:function(c){return Math.min(this.max,Math.max(this.min,this._calcStep(c)))},
_calcStep:function(c){c=parseFloat(c);if(!this.step)return c;c=Math.round((c-this.min)/this.step);return this.step<1?c/(1/this.step)+this.min:c*this.step+this.min},
_validateValue:function(){var c=this._clampValue(this.value);this.value=this.oldValue=isNaN(c)?this.oldValue:c;return this.value!==c},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var jMi;var q2G;_.JY({_template:function(){if(q2G!==void 0)return q2G;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;jMi===void 0&&(jMi=document.createElement("template"));var q=jMi;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return q2G=c},
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(){_.ol(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(c){c.keyCode===27&&(c.preventDefault(),this.close())},
_track:function(c){if(!this.persistent&&!this.disableSwipe)switch(c.preventDefault(),c.detail.state){case "start":this._trackStart(c);break;case "track":this._trackMove(c);break;case "end":this._trackEnd(c)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var c=this.$.contentContainer.getBoundingClientRect();this._savedWidth=c.width;this._translateOffset=this.position==="left"?c.left:c.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(c){this._trackDetails&&(this._translateDrawer(c.detail.dx+this._translateOffset),this._trackDetails.push({dx:c.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(c){if(this._trackDetails){var f=c.detail.dx+this._translateOffset,d=this.getWidth();f=this.position==="left"?f>=0||f<=-d:f<=0||f>=d;if(!f){var q=this._trackDetails;this._trackDetails=null;this._flingDrawer(c,q);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}d/=2;c.detail.dx<-d?this.opened=this.position==="right":c.detail.dx>d&&(this.opened=this.position==="left");f?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(c,f){for(var d=Date.now(),q=d-100,Z,M=0,g=f.length-1;M<=g;){var O=M+g>>1,l=f[O];l.timeStamp>=q?(Z=l,g=O-1):M=O+1}return Z?(c.detail.dx-Z.dx)/(d-Z.timeStamp||1):0},
_flingDrawer:function(c,f){f=this._calculateVelocity(c,f);if(!(Math.abs(f)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;c=c.detail.dx+this._translateOffset;var d=this.getWidth(),q=this.position==="left",Z=f>0;Z?(f=Math.max(f,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(f=Math.min(f,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");f=this._FLING_INITIAL_SLOPE*(!Z&&q?-(c+d):Z&&!q?d-c:-c)/f;this._styleTransitionDuration(f);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,f)}},
_styleTransitionDuration:function(c){this.style.transitionDuration=c+"ms";this.$.contentContainer.style.transitionDuration=c+"ms";this.$.scrim.style.transitionDuration=c+"ms"},
_styleTransitionTimingFunction:function(c){this.$.contentContainer.style.transitionTimingFunction=c;this.$.scrim.style.transitionTimingFunction=c},
_translateDrawer:function(c){var f=this.getWidth();this.position==="left"?(c=Math.max(-f,Math.min(c,0)),this.$.scrim.style.opacity=1+c/f):(c=Math.max(0,Math.min(c,f)),this.$.scrim.style.opacity=1-c/f);this.translate3d(c+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var c=this._drawerState;c===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;c!==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=""),c!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var c=_.$n(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"])');c.length>0?(this._firstTabStop=c[0],this._lastTabStop=c[c.length-1]):
this._lastTabStop=this._firstTabStop=null;(c=this.getAttribute("tabindex"))&&parseInt(c,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(c){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||c.keyCode!==9||(c.shiftKey?this._firstTabStop&&_.$n(c).localTarget===this._firstTabStop&&(c.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.$n(c).localTarget===this._lastTabStop&&(c.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(c,f){this.toggleClass("visible",c&&!f,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 ZtD;var M3C;_.JY({_template:function(){if(M3C!==void 0)return M3C;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;ZtD===void 0&&(ZtD=document.createElement("template"));var q=ZtD;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return M3C=c},
is:"tp-yt-paper-progress",behaviors:[d2i],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(c){this.toggleClass("indeterminate",c,this.$.primaryProgress)},
_transformProgress:function(c,f){c.style.transform=c.style.webkitTransform="scaleX("+f/100+")"},
_mainRatioChanged:function(c){this._transformProgress(this.$.primaryProgress,c)},
_progressChanged:function(c,f,d,q,Z){c=this._clampValue(c);f=this._clampValue(f);var M=this._calcRatio(c)*100,g=this._calcRatio(f)*100;this._setSecondaryRatio(M);this._transformProgress(this.$.secondaryProgress,M);this._transformProgress(this.$.primaryProgress,g);this.secondaryProgress=c;Z?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",f);this.setAttribute("aria-valuemin",d);this.setAttribute("aria-valuemax",q)},
_disabledChanged:function(c){this.setAttribute("aria-disabled",c?"true":"false")},
_hideSecondaryProgress:function(c){return c===0}});var r$C;var CKF;var gH3=function(){};
_.r=gH3.prototype;_.r.registered=function(){};
_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._tapHandler=function(){};
_.r._focusChanged=function(){};
_.r._detectKeyboardFocus=function(){};
_.r._userActivate=function(){};
_.r._upHandler=function(){};
_.r._spaceKeyDownHandler=function(){};
_.r._spaceKeyUpHandler=function(){};
_.r._asyncClick=function(){};
_.r._pressedChanged=function(){};
_.r._ariaActiveAttributeChanged=function(){};
_.r._activeChanged=function(){};
_.r._controlStateChanged=function(){};
_.r._changedButtonState=function(){};
_.r._focusBlurHandler=function(){};
_.r._disabledChanged=function(){};
_.r._changedControlState=function(){};
_.r._buttonStateChanged=function(){};
_.r._downHandler=function(){};
_.r.ensureRipple=function(){};
_.r.getRipple=function(){};
_.r.hasRipple=function(){};
_.r._noinkChanged=function(){};
_.r._calcRatio=function(){};
_.r._clampValue=function(){};
_.r._calcStep=function(){};
_.r._validateValue=function(){};
_.r._update=function(){};
_.r._setImmediateValue=function(){};
_.r._setExpand=function(){};
_.r._setDragging=function(){};
_.r._setTransiting=function(){};
_.r._setMarkers=function(){};
_.r._setPressed=function(){};
_.r._setPointerDown=function(){};
_.r._setReceivedFocusFromKeyboard=function(){};
_.r._setFocused=function(){};
_.r._setRatio=function(){};
gH3=_.JY({_template:function(){if(CKF!==void 0)return CKF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;r$C===void 0&&(r$C=document.createElement("template"));var q=r$C;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return CKF=c},
is:"tp-yt-paper-slider",behaviors:[_.Kn,_.QE,_.gRv,d2i],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&&_.uW(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(c,f,d){this.setAttribute("aria-valuemin",f);this.setAttribute("aria-valuemax",d);this.setAttribute("aria-valuenow",c);this._positionKnob(this._calcRatio(c)*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(c){this._setImmediateValue(this._calcStep(this._calcKnobPosition(c)));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(c){return(this.max-this.min)*c/100+this.min},
_onTrack:function(c){c.stopPropagation();switch(c.detail.state){case "start":this._trackStart(c);break;case "track":this._trackX(c);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(c){this.dragging||this._trackStart(c);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,c.detail.dx*(this._isRTL?-1:1)));c=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(c);c=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(c+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var c=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;c.transform=c.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(c){this._expandKnob();c.preventDefault();this.focus()},
_bartrack:function(c){this._allowBarEvent(c)&&this._onTrack(c)},
_barclick:function(c){this._w=this.$.sliderBar.offsetWidth;var f=this.$.sliderBar.getBoundingClientRect();f=(c.detail.x-f.left)/this._w*100;this._isRTL&&(f=100-f);var d=this.ratio;this._setTransiting(!0);this._positionKnob(f);d===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
c.preventDefault();this.focus()},
_bardown:function(c){this._allowBarEvent(c)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(c))},
_knobTransitionEnd:function(c){c.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(c,f,d,q){q||this._setMarkers([]);f=Math.round((d-f)/this.step);f>c&&(f=c);if(f<0||!isFinite(f))f=0;this._setMarkers(Array(f))},
_mergeClasses:function(c){return Object.keys(c).filter(function(f){return c[f]}).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(c){return!this.ignoreBarTouch||c.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(c){this._isRTL?this._incrementKey(c):this._decrementKey(c)},
_rightKey:function(c){this._isRTL?this._decrementKey(c):this._incrementKey(c)},
_incrementKey:function(c){this.disabled||(c.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),c.preventDefault())},
_decrementKey:function(c){this.disabled||(c.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),c.preventDefault())},
_changeValue:function(c){this.value=c.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(c){c.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Ckr._createRipple.call(this)},
_focusedChanged:function(c){c&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=c?"":"none",this._ripple.holdDown=c)}});var k7J;var OtQ;var Mt=null,lVr=function(){};
_.r=lVr.prototype;_.r.fit=function(){};
_.r._discoverInfo=function(){};
_.r.resetFit=function(){};
_.r.refit=function(){};
_.r.position=function(){};
_.r.constrain=function(){};
_.r._sizeDimension=function(){};
_.r.__sizeDimension=function(){};
_.r.center=function(){};
_.r.__getNormalizedRect=function(){};
_.r.__getOffscreenArea=function(){};
_.r.__getPosition=function(){};
_.r.notifyResize=function(){};
_.r.assignParentResizable=function(){};
_.r.stopResizeNotificationsFor=function(){};
_.r._subscribeIronResize=function(){};
_.r._unsubscribeIronResize=function(){};
_.r.resizerShouldNotify=function(){};
_.r._onDescendantIronResize=function(){};
_.r._fireResize=function(){};
_.r._onIronRequestResizeNotifications=function(){};
_.r._parentResizableChanged=function(){};
_.r._notifyDescendant=function(){};
_.r._requestResizeNotifications=function(){};
_.r._findParent=function(){};
_.r.toggle=function(){};
_.r.open=function(){};
_.r.close=function(){};
_.r.cancel=function(){};
_.r.invalidateTabbables=function(){};
_.r._ensureSetup=function(){};
_.r._canceledChanged=function(){};
_.r._withBackdropChanged=function(){};
_.r._prepareRenderOpened=function(){};
_.r._finishRenderOpened=function(){};
_.r._finishRenderClosed=function(){};
_.r._preparePositioning=function(){};
_.r._finishPositioning=function(){};
_.r._applyFocus=function(){};
_.r._onCaptureClick=function(){};
_.r._onCaptureFocus=function(){};
_.r._onCaptureEsc=function(){};
_.r._onCaptureTab=function(){};
_.r._onIronResize=function(){};
_.r._onNodesChange=function(){};
_.r.__ensureFirstLastFocusables=function(){};
_.r.__openedChanged=function(){};
_.r.__deraf=function(){};
_.r.__updateScrollObservers=function(){};
_.r.__addScrollListeners=function(){};
_.r.__removeScrollListeners=function(){};
_.r.__isValidScrollAction=function(){};
_.r.__onCaptureScroll=function(){};
_.r.__saveScrollPosition=function(){};
_.r.__restoreScrollPosition=function(){};
_.r._setCanceled=function(){};
lVr=_.JY({_template:function(){if(OtQ!==void 0)return OtQ;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;k7J===void 0&&(k7J=document.createElement("template"));var q=k7J;d.call(f,q.content.cloneNode(!0),c.content.firstChild);return OtQ=c},
is:"tp-yt-paper-toast",behaviors:[_.RJ],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(){_.n8._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.DG.requestAvailability()},
show:function(c){typeof c=="string"&&(c={text:c});for(var f in c)f.indexOf("_")===0?_.n8._warn('The property "'+f+'" is private and was not set.'):f in this?this[f]=c[f]:_.n8._warn('The property "'+f+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(c){c&&c.target===this&&c.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Mt&&Mt!==this&&Mt.close(),Mt=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Mt===this&&(Mt=null);_.PK._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(c){this.positionTarget=c},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var sMS=new _.fi("disablePersonalizationAction");var eYQ=new _.fi("showDmaConsentFlowCommand");var N_i=new _.fi("showMmgNoticeCommand");var BUJ=new _.fi("saveConsentAction");var itC=function(c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zC(c)};
_.K(itC,_.d8);var TUF=_.vhY(itC);var m2Q=new _.fi("updateTopbarAvatarAction");var HtF=new _.fi("channelHandleValidationResultRenderer");var A$Q=new _.fi("generateHandleFromNameResultRenderer");var Y2c=new _.fi("channelHandleInputRenderer");var F1r=new _.fi("copyLinkRenderer");var t3G=new _.fi("timedCommand");var btc=new _.fi("clearCookieAction");var K1F=new _.fi("getMultiPageMenuAction");var EHi=new _.fi("addToGuideSectionAction"),nHC=new _.fi("removeFromGuideSectionAction");var $2H=new _.fi("updateNotificationsUnseenCountAction");var QMF=new _.fi("resetChannelUnreadCountCommand");var S2C=new _.fi("resetSubscriptionsUnreadDotCommand");var L1C=new _.fi("selectLanguageCommand");var ZsJ=new _.fi("sendFeedbackAction");var zzH=new _.fi("uploadImageToScottyCommand");var J$F=new _.fi("registerPromoCommand");var aV3=new _.fi("setPushNotificationsEnabledCommand");var V3q=new _.fi("desktopTopbarRenderer");var XLc=new _.fi("surveyFollowUpRenderer");var uQi=new _.fi("handlesClaimingRadioOptionRenderer");var vHC=new _.fi("hotkeyDialogRenderer");var hzq=new _.fi("modifyReportFormCommand");var wLF=new _.fi("accountLinkCommand");var y$q=new _.fi("accountUnlinkCommand");var W1H=new _.fi("logAccountLinkingEventCommand");var D2D=new _.fi("guideCollapsibleEntryRenderer");var ezr=new _.fi("guideDownloadsEntryRenderer");var rC=new _.fi("guideEntryRenderer");var NUF=new _.fi("getLocationCommand");var IVr=new _.fi("locationCollectionCommand");var PKS=new _.fi("storiesItemViewModel");var Rzr=new _.fi("addToRemoteQueueAction");var U2Q=new _.fi("insertInRemoteQueueAction");var pLq=new _.fi("removeFromRemoteQueueAction");var x2r=new _.fi("notificationRenderer");var QTi=new _.fi("localWatchHistoryCommand");var oHD=new _.fi("pdgBuyFlowHeaderRenderer");var G7F=new _.fi("pdgColorSliderRenderer");var cLQ=new _.fi("pdgCommentOptionRenderer");var f$J=new _.fi("pdgCommentPreviewRenderer");var djJ=new _.fi("superVodSelectableItemButtonRenderer");var jNq=new _.fi("switchButtonRenderer");var qaF=new _.fi("upsellDialogRenderer");var Zyc=new _.fi("feedbackQuestionRenderer"),MIC=new _.fi("feedbackOptionRenderer");var rLr=new _.fi("sponsorshipsTierRenderer"),CwF=new _.fi("sponsorshipsPromotionChannelRenderer");var gd3=new _.fi("simpleSurveyMessageRenderer");var ZaJ=new _.fi("invokeInstrumentManagerAction");var k1H=new _.fi("logYpcFlowDismissCommand");var OyD=new _.fi("logYpcFlowStartCommand");var l$F=new _.fi("unlimitedCreateFamilyEndpoint");var sND=new _.fi("iconBadgeRenderer");var SDc=new _.fi("collaborativePlaylistVisibilityValidationRule");var BT3=function(c){_.AC.call(this,"channelMessage");this.message=c};
_.K(BT3,_.AC);var iyQ=function(c){_.AC.call(this,"channelError");this.error=c};
_.K(iyQ,_.AC);var TTJ={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"},mj3={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",
CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},HyF={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},ALG={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},YaF={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Cc=function(c){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 _.ls;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;c&&(this.id=c.id||c.name,this.name=c.name,this.clientName=c.clientName?c.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=c.app,this.type=c.type||"REMOTE_CONTROL",this.username=c.user||"",this.avatar=c.userAvatarUri||"",this.obfuscatedGaiaId=c.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=c.ownerObfuscatedGaiaId||"",this.castUserId=c.castUserId||"",this.theme=c.theme||"u",FNC(this,c.capabilities||""),tI3(this,
c.compatibleSenderThemes||""),byD(this,c.experiments||""),this.remoteControllerUrl=c.remoteControllerUrl||"",this.localChannelEncryptionKey=c.localChannelEncryptionKey||"",this.deviceContext=c.deviceContext,this.brand=c.brand||"",this.model=c.model||"",this.year=c.year||0,this.os=c.os||"",this.osVersion=c.osVersion||"",this.chipset=c.chipset||"",this.mdxDialServerType=c.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=c.pairingType||"unknown",c=c.deviceInfo)&&(c=JSON.parse(c),this.brand=
c.brand||"",this.model=c.model||"",this.year=c.year||0,this.os=c.os||"",this.osVersion=c.osVersion||"",this.chipset=c.chipset||"",this.clientName=c.clientName?c.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=c.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Cc.prototype.copy=function(){var c={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&&(c.brand=this.brand);
this.model&&(c.model=this.model);this.year&&(c.year=this.year);this.os&&(c.os=this.os);this.osVersion&&(c.osVersion=this.osVersion);this.chipset&&(c.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(c.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(c.mdxDialServerType=this.mdxDialServerType);c=new Cc(c);c.connected=this.connected;c.remoteControllerUrl=this.remoteControllerUrl;c.localChannelEncryptionKey=this.localChannelEncryptionKey;c.deviceContext=
this.deviceContext;c.castUserId=this.castUserId;return c};
Cc.prototype.equals=function(c){return c?this.id==c.id:!1};
var FNC=function(c,f){c.capabilities.clear();_.gn(f.split(","),_.Yt(_.zV.contains,TTJ)).forEach(function(d){c.capabilities.add(d)})},tI3=function(c,f){c.compatibleSenderThemes.clear();
_.gn(f.split(","),_.Yt(_.zV.contains,mj3)).forEach(function(d){c.compatibleSenderThemes.add(d)})},byD=function(c,f){c.experiments.clear();
f.split(",").forEach(function(d){c.experiments.add(d)})};var KN3=function(c,f){this.action=c;this.params=f||{}};_.rn(jVp,_.ES);_.r=jVp.prototype;_.r.JSC$19564_onTick_=function(){this.JSC$19562_interval_=Math.min(3E5,this.JSC$19562_interval_*2);this.JSC$19564_listener_();this.nextTickTime_&&this.start()};
_.r.start=function(){var c=this.JSC$19562_interval_+15E3*Math.random(),f=this.delay_;f.isActive()||f.start(c);this.nextTickTime_=Date.now()+c};
_.r.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.r.isActive=function(){return this.delay_.isActive()};
_.r.reset=function(){this.delay_.stop();this.JSC$19562_interval_=5E3};_.rn(IL,o2q);_.r=IL.prototype;_.r.subscribe=function(c,f,d){return this.pubsub_.subscribe(c,f,d)};
_.r.unsubscribe=function(c,f,d){return this.pubsub_.unsubscribe(c,f,d)};
_.r.unsubscribeByKey=function(c){return this.pubsub_.unsubscribeByKey(c)};
_.r.publish=function(c,f){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.r.dispose=function(){this.JSC$19565_disposed_||(this.JSC$19565_disposed_=!0,_.GV(this.pubsub_),this.disconnect(),_.GV(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19565_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.sX({})})};
_.r.isDisposed=function(){return this.JSC$19565_disposed_};
_.r.connect=function(c,f,d){var q=this,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1)return _.Hk(l,2),q.useAsyncBrowserChannelHandler_?l.yield(q.connectPromise_,2):l.jumpTo(2);_.m0(l);if(q.JSC$19565_disposed_||q.JSC$19565_channel_&&q.JSC$19565_channel_.getState()==2)return l.return();q.sCookie_="";q.reconnectTimer_.stop();q.connectionParams_=c||null;q.connectUi_=f||0;Z=q.JSC$19565_pathPrefix_+"/test";M=q.JSC$19565_pathPrefix_+"/bind";g=new j2(d?d.firstTestResults:null,d?d.secondTestResults:null,
q.enableAsyncTest_);if(O=q.JSC$19565_channel_)O.handler_=null;g.handler_=q;q.JSC$19565_channel_=g;if(q.useAsyncBrowserChannelHandler_)return q.connectPromise_=EdH(q).then(function(){return nd3(q,Z,M,O,d)}),l.return(q.connectPromise_.then(function(){q.connectPromise_=_.sX()}));
nd3(q,Z,M,O,d);return _.AD(l,0)})};
var nd3=function(c,f,d,q,Z){$jD(c);if(c.JSC$19565_channel_){var M=_.hk("ID_TOKEN"),g=c.JSC$19565_channel_.JSC$19517_extraHeaders_||{};M?g["x-youtube-identity-token"]=M:delete g["x-youtube-identity-token"];c.JSC$19565_channel_.JSC$19517_extraHeaders_=g}QNG(c);q?(q.getState(),c.JSC$19565_channel_.connect(f,d,c.defaultQueryParams_,q.sid_,q.JSC$19517_lastArrayId_)):Z?c.JSC$19565_channel_.connect(f,d,c.defaultQueryParams_,Z.sessionId,Z.arrayId):c.JSC$19565_channel_.connect(f,d,c.defaultQueryParams_)};
IL.prototype.disconnect=function(c){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.sX())}finally{this.disconnectUi_=c||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),$jD(this),this.JSC$19565_channel_&&(this.JSC$19565_channel_.getState()==3&&IKS(this.JSC$19565_channel_),this.JSC$19565_channel_.disconnect()),this.disconnectUi_=0}};
IL.prototype.sendMessage=function(c,f){var d=this,q;return _.k(function(Z){switch(Z.nextAddress){case 1:_.Hk(Z,2);if(!d.useAsyncBrowserChannelHandler_){Z.jumpTo(2);break}return Z.yield(d.connectPromise_,2);case 2:_.m0(Z);if(d.JSC$19565_disposed_)return Z.return();q={_sc:c};f&&_.zV.extend(q,f);if(d.reconnectTimer_.isActive()||(d.JSC$19565_channel_?d.JSC$19565_channel_.getState():0)==2){d.JSC$19565_pendingMessages_.push(q);Z.jumpTo(6);break}if(!d.isChannelOpened()){Z.jumpTo(6);break}_.Hk(Z,8);if(!d.useAsyncBrowserChannelHandler_||
Sa3(d,c)){Z.jumpTo(8);break}return Z.yield(EdH(d),8);case 8:_.m0(Z,0,0,1);d.isChannelOpened()&&(Sa3(d,c)||QNG(d),$jD(d),Nli(d.JSC$19565_channel_,q));_.AD(Z,6,1);break;case 6:_.AD(Z,0)}})};
var Sa3=function(c,f){return c.enableMdxAuthForConnectionOnly_?!0:c.disableMdxAuthForAdMessages_?Object.values(HyF).includes(f):c.disableMdxAuthForNonPlaybackMessages_?!Object.values(ALG).includes(f):c.disableMdxAuthForShortsMessages_?Object.values(YaF).includes(f):!1};
IL.prototype.JSC$19524_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19565_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)LNG(this);else{var c=this.JSC$19565_pendingMessages_;this.JSC$19565_pendingMessages_=[];var f=c.length;QNG(this);zxc(this,c,f);JLr(this)}else JLr(this)};
var LNG=function(c){var f,d;_.k(function(q){if(q.nextAddress==1)return _.Hk(q,2),q.yield(EdH(c),2);_.m0(q);f=c.JSC$19565_pendingMessages_;c.JSC$19565_pendingMessages_=[];d=f.length;zxc(c,f,d);JLr(c);return _.AD(q,0)})},zxc=function(c,f,d){for(var q=0;q<d;++q)Nli(c.JSC$19565_channel_,f[q]);
JLr(c)},JLr=function(c){c.publish("handlerOpened");
c.JSC$19565_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.r=IL.prototype;_.r.JSC$19524_channelError=function(c){var f=c==2&&this.JSC$19565_channel_.JSC$19517_lastStatusCode_==401;c==4||f||this.reconnectTimer_.start();this.publish("handlerError",c,f);f=Object.keys(u73).find(function(d){return u73[d]===c});
this.JSC$19565_channelErrorCounter.increment("BROWSER_CHANNEL",f!=null?f:"UNKNOWN")};
_.r.JSC$19524_channelClosed=function(c,f){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(f)for(var d=f.length,q=0;q<d;++q){var Z=f[q].map;Z&&this.JSC$19565_pendingMessages_.push(Z)}this.JSC$19565_channelClosedCounter.increment("BROWSER_CHANNEL");c&&this.pendingMapsOnClosedCounter.JSC$9877_streamzService.JSC$9730_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",c.length);f&&this.undeliveredMapsOnClosedCounter.JSC$9880_streamzService.JSC$9730_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
f.length)};
_.r.JSC$19524_channelSuccess=function(c,f){f!=null&&c!=null&&this.channelMessageSentCounter.increment()};
_.r.JSC$19524_getAdditionalParams=function(){var c={v:2};this.sCookie_&&(c.gsessionid=this.sCookie_);this.connectUi_!=0&&(c.ui=""+this.connectUi_);this.disconnectUi_!=0&&(c.ui=""+this.disconnectUi_);this.connectionParams_&&_.zV.extend(c,this.connectionParams_);return c};
_.r.JSC$19524_channelHandleArray=function(c){c[0]=="S"?this.sCookie_=c[1]:c[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19565_channel_.disconnect()):this.publish("handlerMessage",new KN3(c[0],c[1]));this.JSC$19565_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.r.isChannelOpened=function(){return!!this.JSC$19565_channel_&&this.JSC$19565_channel_.getState()==3};
var $jD=function(c){if(c.JSC$19565_channel_){var f=c.JSC$19565_getXsrfToken_(),d=c.JSC$19565_channel_.JSC$19517_extraHeaders_||{};f?d["x-youtube-lounge-xsrf-token"]=f:delete d["x-youtube-lounge-xsrf-token"];c.JSC$19565_channel_.JSC$19517_extraHeaders_=d}},EdH=function(c){if(c.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.sX();
if(!c.enableCachedUpdateAuthorizationHeader_)return a$Q(c);c.updateAuthorizationHeaderPromise_===null&&(c.updateAuthorizationHeaderPromise_=a$Q(c));return c.updateAuthorizationHeaderPromise_},a$Q=function(c){return _.QS(c.getAuthorizationHeader_().then(function(f){VIq(c,f)}).thenCatch(function(){}),function(){c.updateAuthorizationHeaderPromise_=null})},VIq=function(c,f){if(c.JSC$19565_channel_){var d=c.JSC$19565_channel_.JSC$19517_extraHeaders_||{};
f&&Object.keys(f).length>0?d=Object.assign({},d,f):delete d.Authorization;c.JSC$19565_channel_.JSC$19517_extraHeaders_=d}},QNG=function(c){c.getAuthorizationHeaderSync_&&!c.useAsyncBrowserChannelHandler_&&VIq(c,c.getAuthorizationHeaderSync_())};
_.r=IL.prototype;_.r.setLoungeToken=function(c){(this.defaultQueryParams_.loungeIdToken=c)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19565_channel_){var f=this.JSC$19565_channel_.JSC$19517_extraHeaders_||{};c?f["X-YouTube-LoungeId-Token"]=c:delete f["X-YouTube-LoungeId-Token"];this.JSC$19565_channel_.JSC$19517_extraHeaders_=f}};
_.r.getDeviceId=function(){return this.defaultQueryParams_.id};
_.r.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.r.reconnect=function(){var c=this.reconnectTimer_;c.delay_.fire();c.start()};
_.r.safeReconnect_=function(){var c=this.JSC$19565_channel_,f=0;c.JSC$19517_backChannelRequest_&&f++;c.forwardChannelRequest_&&f++;f==0&&this.connect(this.connectionParams_,this.connectUi_)};var G_=function(c,f){var d=c.basePath;c.supportCors&&(d=c.scheme+"://"+c.domain+c.port+c.basePath);return _.p9(d+f,{})};
P7.prototype.sendRequest=function(c,f,d,q,Z,M,g){c={format:M?"RAW":"JSON",method:c,context:this,timeout:5E3,withCredentials:!!g,onSuccess:_.Yt(this.JSC$19570_onSuccess_,q,!M),onError:_.Yt(this.onError_,Z),onTimeout:_.Yt(this.JSC$19570_onTimeout_,Z)};d&&(c.postParams=d,c.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.iF(f,c)};
P7.prototype.JSC$19570_onSuccess_=function(c,f,d,q){f?c(q):c({text:d.responseText})};
P7.prototype.onError_=function(c,f){c(Error("Ck`"+f.status))};
P7.prototype.JSC$19570_onTimeout_=function(c){c(Error("Dk"))};var Uf=function(c,f){return!!f&&(c.id==f||c.uuid==f)},Xx3=function(c){return{name:c.name,
screenId:c.id,loungeToken:c.token,dialId:c.uuid,screenIdType:c.idType}},u4C=function(c){return new RL(c)},vdC=function(c){return Array.isArray(c)?_.JT(c,u4C):[]},saH=function(c){if(!c)return"null";
var f=c.token?".."+c.token.slice(-6):"-",d=c.uuid?".."+c.uuid.slice(-6):"-";return'{name:"'+c.name+'",id:'+c.id.substr(0,6)+"..,token:"+(f+",uuid:"+d+",idType:"+c.idType+"}")},yhH=function(c){return Array.isArray(c)?"["+_.JT(c,saH).join(",")+"]":"null"};var YOC="",oL=null;var SOS=function(c,f){_.KF.call(this);var d=this;this.handler=c();this.handler.subscribe("handlerOpened",this.JSC$19577_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(q,Z){d.onError(Z)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=f};
_.K(SOS,_.KF);_.r=SOS.prototype;_.r.connect=function(c,f,d){this.handler.connect(c,f,d)};
_.r.disconnect=function(c){this.handler.disconnect(c)};
_.r.reconnect=function(){this.handler.reconnect()};
_.r.getDeviceId=function(){return this.handler.getDeviceId()};
_.r.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.r.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.r.JSC$19577_onOpened=function(){this.dispatchEvent("channelOpened");var c=this.handler,f=this.currentScreenId;_.iK("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!c.JSC$19565_channel_.useChunked_,sessionId:c.JSC$19565_channel_.sid_,arrayId:c.JSC$19565_channel_.JSC$19517_lastArrayId_});_.iK("yt-remote-session-screen-id",f);c=BDq();f=iXc();_.hP(c,f)||c.push(f);Ahq(c);HXS()};
_.r.onClosed=function(){this.dispatchEvent("channelClosed")};
_.r.onMessage=function(c){this.dispatchEvent(new BT3(c))};
_.r.onError=function(c){this.dispatchEvent(new iyQ(c?1:0))};
_.r.sendMessage=function(c,f){this.handler.sendMessage(c,f)};
_.r.setLoungeToken=function(c){this.handler.setLoungeToken(c)};
_.r.dispose=function(){this.handler.dispose()};var QVi=function(c,f,d){var q=this;d=d===void 0?function(){return""}:d;
var Z=Z===void 0?new AR3:Z;var M=M===void 0?new _.mu:M;this.pathPrefix=c;this.defaultQueryParams=f;this.getXsrfToken=d;this.JSC$19580_pubsub=M;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new jVp(function(){var g;((g=q.channel)==null?void 0:pa3((new tlp(g,g.JSC$19488_channel_)).JSC$19498_channel_.forwardChannelRequestPool_))===0&&q.connect(q.connectionParams,q.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19580_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19580_channelOpenedCounter=new qOQ;this.JSC$19580_channelClosedCounter=new ZXi;this.JSC$19580_channelMessageReceivedCounter=new rh3;this.JSC$19580_channelErrorCounter=new CoH};
QVi.prototype.connect=function(c,f){c=c===void 0?{}:c;f=f===void 0?0:f;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=c,this.connectUi=f,hxr(this),(c=_.hk("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=c: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 p7(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,wxD(this))};
var wxD=function(c){_.Lx(c.channel,"w",function(){c.channelState=3;c.reconnectTimer.reset();c.connectionParams=null;c.connectUi=0;for(var f=_.C(c.nonAckedMessagesOnChannelClosed),d=f.next();!d.done;d=f.next())d=d.value,c.channel&&c.channel.send(d);c.nonAckedMessagesOnChannelClosed=[];c.publish("webChannelOpened");c.JSC$19580_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Lx(c.channel,"x",function(){c.channelState=0;c.reconnectTimer.isActive()||c.publish("webChannelClosed");var f,d=(f=c.channel)==null?void 0:b8C(new tlp(f,f.JSC$19488_channel_));d&&(c.nonAckedMessagesOnChannelClosed=[].concat(_.LT(d)));c.JSC$19580_channelClosedCounter.increment("WEB_CHANNEL")});
_.Lx(c.channel,"z",function(f){var d=f.data;d[0]==="gracefulReconnect"?(c.reconnectTimer.start(),c.channel&&c.channel.close()):c.publish("webChannelMessage",new KN3(d[0],d[1]));c.lastStatusCode=f.statusCode;c.JSC$19580_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Lx(c.channel,"y",function(){c.lastStatusCode===401||c.reconnectTimer.start();c.publish("webChannelError");c.JSC$19580_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.r=QVi.prototype;_.r.disconnect=function(c){this.disconnectUi=c===void 0?0:c;this.reconnectTimer.stop();hxr(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.r.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.r.reconnect=function(){var c=this.reconnectTimer;c.delay_.fire();c.start()};
_.r.sendMessage=function(c,f){this.channel&&(hxr(this),c=Object.assign({},{_sc:c},f),this.channel.send(c))};
_.r.setLoungeToken=function(c){c||this.reconnectTimer.stop();c?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=c:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var hxr=function(c){var f=c.getXsrfToken();f?c.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=f:delete c.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.r=QVi.prototype;_.r.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.r.publish=function(c){return this.JSC$19580_pubsub.publish.apply(this.JSC$19580_pubsub,[c].concat(_.LT(_.hv.apply(1,arguments))))};
_.r.subscribe=function(c,f,d){return this.JSC$19580_pubsub.subscribe(c,f,d)};
_.r.unsubscribe=function(c,f,d){return this.JSC$19580_pubsub.unsubscribe(c,f,d)};
_.r.unsubscribeByKey=function(c){return this.JSC$19580_pubsub.unsubscribeByKey(c)};
_.r.dispose=function(){this.JSC$19580_disposed||(this.JSC$19580_disposed=!0,_.GV(this.JSC$19580_pubsub),this.disconnect(),_.GV(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.r.isDisposed=function(){return this.JSC$19580_disposed};var $LG=function(c){_.KF.call(this);this.webChannelService=c();this.webChannelService.subscribe("webChannelOpened",this.JSC$19588_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.K($LG,_.KF);_.r=$LG.prototype;_.r.connect=function(c,f){this.webChannelService.connect(c,f)};
_.r.disconnect=function(c){this.webChannelService.disconnect(c)};
_.r.reconnect=function(){this.webChannelService.reconnect()};
_.r.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.r.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.r.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.r.JSC$19588_onOpened=function(){this.dispatchEvent("channelOpened")};
_.r.onClosed=function(){this.dispatchEvent("channelClosed")};
_.r.onMessage=function(c){this.dispatchEvent(new BT3(c))};
_.r.onError=function(){this.dispatchEvent(new iyQ(this.webChannelService.lastStatusCode===401?1:0))};
_.r.sendMessage=function(c,f){this.webChannelService.sendMessage(c,f)};
_.r.setLoungeToken=function(c){this.webChannelService.setLoungeToken(c)};
_.r.dispose=function(){this.webChannelService.dispose()};var wSF=Date.now(),c3=null,v0p=Array(50),jp=-1,hN3=!1;_.rn(q3,_.B7);q3.prototype.getScreens=function(){return this.screens};
q3.prototype.contains=function(c){return!!sVD(this.screens,c)};
q3.prototype.get=function(c){return c?pV(this.screens,c):null};
var yLp=function(c,f){var d=c.get(f.uuid)||c.get(f.id);if(d)return c=d.name,d.id=f.id||d.id,d.name=f.name,d.token=f.token,d.uuid=f.uuid||d.uuid,d.name!=c;c.screens.push(f);return!0},WNF=function(c,f){var d=c.screens.length!=f.length;
c.screens=_.gn(c.screens,function(M){return!!sVD(f,M)});
for(var q=f.length,Z=0;Z<q;Z++)d=yLp(c,f[Z])||d;return d},DjS=function(c,f){var d=c.screens.length;
c.screens=_.gn(c.screens,function(q){return!(q||f?!q!=!f?0:q.id==f.id:1)});
return c.screens.length<d};
q3.prototype.info=function(c){f6(this.JSC$19589_logName_,c)};var exC=function(c,f,d,q,Z){_.B7.call(this);this.JSC$19592_http_=c;this.pairingCode_=f;this.deviceId_=d;this.friendlyName_=q;this.enableShortLivedLoungeToken_=Z;this.pollIndex_=0;this.JSC$19592_xhr_=null;this.JSC$19592_timer_=NaN};
_.K(exC,_.B7);_.r=exC.prototype;_.r.start=function(){!this.JSC$19592_xhr_&&isNaN(this.JSC$19592_timer_)&&this.poll_()};
_.r.stop=function(){this.JSC$19592_xhr_&&(this.JSC$19592_xhr_.abort(),this.JSC$19592_xhr_=null);isNaN(this.JSC$19592_timer_)||(_.sz(this.JSC$19592_timer_),this.JSC$19592_timer_=NaN)};
_.r.disposeInternal=function(){this.stop();_.B7.prototype.disposeInternal.call(this)};
_.r.poll_=function(){this.JSC$19592_timer_=NaN;this.JSC$19592_xhr_=_.iF(G_(this.JSC$19592_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.n1)(this.JSC$19594_onSuccess_,this),onError:(0,_.n1)(this.onError_,this),onTimeout:(0,_.n1)(this.JSC$19594_onTimeout_,this)})};
_.r.JSC$19594_onSuccess_=function(c,f){this.JSC$19592_xhr_=null;c=f.screen||{};c.dialId=this.deviceId_;c.name=this.friendlyName_;f=-1;this.enableShortLivedLoungeToken_&&c.shortLivedLoungeToken&&c.shortLivedLoungeToken.value&&c.shortLivedLoungeToken.refreshIntervalMs&&(c.screenIdType="shortLived",c.loungeToken=c.shortLivedLoungeToken.value,f=c.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new RL(c),f)};
_.r.onError_=function(c){this.JSC$19592_xhr_=null;c.status&&c.status==404?this.pollIndex_>=NT3.length?this.publish("pairingFailed",Error("Ek")):(c=NT3[this.pollIndex_],this.JSC$19592_timer_=_.Oz((0,_.n1)(this.poll_,this),c),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+c.status))};
_.r.JSC$19594_onTimeout_=function(){this.JSC$19592_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var NT3=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.rn(M3,q3);_.r=M3.prototype;_.r.start=function(){ZS(this)&&this.publish("screenChange");!_.T7("yt-remote-lounge-token-expiration")&&I$r(this);_.sz(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Oz((0,_.n1)(this.start,this),1E4)};
_.r.add=function(c,f){ZS(this);yLp(this,c);PwC(this,!1);this.publish("screenChange");f(c);c.token||I$r(this)};
_.r.remove=function(c,f){var d=ZS(this);DjS(this,c)&&(PwC(this,!1),d=!0);f(c);d&&this.publish("screenChange")};
_.r.updateName=function(c,f,d,q){var Z=ZS(this),M=this.get(c.id);M?(M.name!=f&&(M.name=f,PwC(this,!1),Z=!0),d(c)):q(Error("Hk"));Z&&this.publish("screenChange")};
_.r.disposeInternal=function(){_.sz(this.loungeTokenRefreshTimer_);M3.superClass_.disposeInternal.call(this)};
var I$r=function(c){if(c.screens.length){var f=_.JT(c.screens,function(q){return q.id}),d=G_(c.JSC$19596_http_,"/pairing/get_lounge_token_batch");
c.JSC$19596_http_.sendRequest("POST",d,{screen_ids:f.join(",")},(0,_.n1)(c.handleLoungeTokens_,c),(0,_.n1)(c.handleLoungeTokenError_,c))}};
M3.prototype.handleLoungeTokens_=function(c){ZS(this);var f=this.screens.length;c=c&&c.screens||[];for(var d=c.length,q=0;q<d;++q){var Z=c[q],M=this.get(Z.screenId);M&&(M.token=Z.loungeToken,--f)}PwC(this,!f);f&&f6(this.JSC$19589_logName_,"Missed "+f+" lounge tokens.")};
M3.prototype.handleLoungeTokenError_=function(c){f6(this.JSC$19589_logName_,"Requesting lounge tokens failed: "+c)};
var ZS=function(c){if(_.F("deprecate_pair_servlet_enabled"))return WNF(c,[]);var f=vdC(tvH());f=_.gn(f,function(d){return!d.uuid});
return WNF(c,f)},PwC=function(c,f){KqJ(_.JT(c.screens,Xx3));
f&&bX3()};var gC=function(c,f){_.B7.call(this);this.getScreensToCheck_=f;f=(f=_.T7("yt-remote-online-screen-ids")||"")?f.split(","):[];for(var d={},q=this.getScreensToCheck_(),Z=q.length,M=0;M<Z;++M){var g=q[M].id;d[g]=_.hP(f,g)}this.screenIdSet_=d;this.JSC$19599_http_=c;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Rxq("Initialized with "+(0,_.zo)(this.screenIdSet_))};
_.K(gC,_.B7);gC.prototype.isOnline=function(c){return!!this.screenIdSet_[c]};
gC.prototype.start=function(){var c=parseInt(_.T7("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.M6()-144E5<c?0:c)?Ujr(this):(this.fastCheckEndTime_=_.M6()+3E5,_.iK("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
gC.prototype.isEmpty=function(){return _.zV.isEmpty(this.screenIdSet_)};
gC.prototype.update=function(){Rxq("Updating availability on schedule.");var c=this.getScreensToCheck_(),f=_.zV.filter(this.screenIdSet_,function(d,q){return d&&!!pV(c,q)},this);
pxQ(this,f)};
var xjq=function(c,f,d){var q=G_(c.JSC$19599_http_,"/pairing/get_screen_availability");c.JSC$19599_http_.sendRequest("POST",q,{lounge_token:f.token},(0,_.n1)(function(Z){Z=Z.screens||[];for(var M=Z.length,g=0;g<M;++g)if(Z[g].loungeToken==f.token){d(Z[g].status=="online");return}d(!1)},c),(0,_.n1)(function(){d(!1)},c))};
gC.prototype.disposeInternal=function(){_.sz(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.B7.prototype.disposeInternal.call(this)};
var pxQ=function(c,f){a:if(_.zV.getCount(f)!=_.zV.getCount(c.screenIdSet_))var d=!1;else{d=_.zV.getKeys(f);for(var q=d.length,Z=0;Z<q;++Z)if(!c.screenIdSet_[d[Z]]){d=!1;break a}d=!0}d||(Rxq("Updated online screens: "+(0,_.zo)(c.screenIdSet_)),c.screenIdSet_=f,c.publish("screenChange"));odD(c)},Ujr=function(c){isNaN(c.refreshTimer_)||_.sz(c.refreshTimer_);
c.refreshTimer_=_.Oz((0,_.n1)(c.requestScreenAvailability_,c),c.fastCheckEndTime_>0&&c.fastCheckEndTime_<_.M6()?2E4:1E4)};
gC.prototype.requestScreenAvailability_=function(){_.sz(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var c=G1c(this);if(_.zV.getCount(c)){var f=G_(this.JSC$19599_http_,"/pairing/get_screen_availability"),d={lounge_token:_.zV.getKeys(c).join(",")};this.currentRequest_=this.JSC$19599_http_.sendRequest("POST",f,d,(0,_.n1)(this.onScreenAvailability_,this,c),(0,_.n1)(this.onScreenAvailabilityError_,this))}else pxQ(this,{}),Ujr(this)};
gC.prototype.onScreenAvailability_=function(c,f){this.currentRequest_=null;var d=_.zV.getKeys(G1c(this));if(_.UC(d,_.zV.getKeys(c))){f=f.screens||[];d={};for(var q=f.length,Z=0;Z<q;++Z)d[c[f[Z].loungeToken]]=f[Z].status=="online";pxQ(this,d);Ujr(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
gC.prototype.onScreenAvailabilityError_=function(c){this.warn_("Screen availability failed: "+c);this.currentRequest_=null;Ujr(this)};
var Rxq=function(c){f6("OnlineScreenService",c)};
gC.prototype.warn_=function(c){f6("OnlineScreenService",c)};
var G1c=function(c){var f={};_.Iw(c.getScreensToCheck_(),function(d){d.token?f[d.token]=d.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return f},odD=function(c){c=_.zV.getKeys(_.zV.filter(c.screenIdSet_,function(f){return f}));
c.sort(_.$Nn);c.length?_.iK("yt-remote-online-screen-ids",c.join(","),60):_.m1("yt-remote-online-screen-ids")};_.rn(rX,q3);_.r=rX.prototype;_.r.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.r.add=function(c,f,d){this.localScreenService_.add(c,f,d)};
_.r.remove=function(c,f,d){this.localScreenService_.remove(c,f,d);this.onlineScreenService_.update()};
_.r.updateName=function(c,f,d,q){this.localScreenService_.contains(c)?this.localScreenService_.updateName(c,f,d,q):(c="Updating name of unknown screen: "+c.name,f6(this.JSC$19589_logName_,c),q(Error(c)))};
_.r.getScreens=function(c){return c?this.screens:L4D(this.screens,_.gn(this.automaticScreens_,function(f){return!this.contains(f)},this))};
_.r.JSC$19604_getOnlineScreens=function(){return _.gn(this.getScreens(!0),function(c){return this.onlineScreenService_.isOnline(c.id)},this)};
var fsr=function(c,f,d,q,Z,M){c.info("getAutomaticScreenByIds "+d+" / "+f);d||(d=c.deviceToScreenId_[f]);var g=c.getScreens(),O=d?pV(g,d):null;d&&(c.disableAutomaticScreenCache_||O)||(O=pV(g,f));if(O){O.uuid=f;var l=k8(c,O);xjq(c.onlineScreenService_,l,function(m){Z(m?l:null)})}else d?cx3(c,d,(0,_.n1)(function(m){var H=k8(this,new RL({name:q,
screenId:d,loungeToken:m,dialId:f||""}));xjq(this.onlineScreenService_,H,function(A){Z(A?H:null)})},c),M):Z(null)};
rX.prototype.JSC$19604_getScreenByPollingPairingCode=function(c,f,d,q,Z,M){var g=this;this.info("getDialScreenByPairingCode "+c+" / "+f);var O=new exC(this.JSC$19602_http_,c,f,d,q);O.subscribe("pairingComplete",function(l,m){_.GV(O);Z(k8(g,l),m)});
O.subscribe("pairingFailed",function(l){_.GV(O);M(l)});
O.start();return(0,_.n1)(O.stop,O)};
var dsq=function(c,f){for(var d=c.screens.length,q=0;q<d;++q)if(c.screens[q].name==f)return c.screens[q];return null};
rX.prototype.JSC$19604_getScreenByPairingCode=function(c,f,d,q){_.iF(G_(this.JSC$19602_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:c},timeout:5E3,onSuccess:(0,_.n1)(function(Z,M){Z=new RL(M.screen||{});if(!Z.name||dsq(this,Z.name)){a:{M=Z.name;for(var g=2,O=f(M,g);dsq(this,O);){g++;if(g>20)break a;O=f(M,g)}M=O}Z.name=M}d(k8(this,Z))},this),
onError:(0,_.n1)(function(Z){q(Error("Ik`"+Z.status))},this),
onTimeout:(0,_.n1)(function(){q(Error("Jk"))},this)})};
var j0C=function(c,f,d){xjq(c.onlineScreenService_,f,d)};
rX.prototype.disposeInternal=function(){_.GV(this.localScreenService_);_.GV(this.onlineScreenService_);rX.superClass_.disposeInternal.call(this)};
var cx3=function(c,f,d,q){c.info("requestLoungeToken_ for "+f);var Z={postParams:{screen_ids:f},method:"POST",context:c,onSuccess:function(M,g){M=g&&g.screens||[];M[0]&&M[0].screenId==f?d(M[0].loungeToken):q(Error("Kk"))},
onError:function(){q(Error("Lk"))}};
_.iF(G_(c.JSC$19602_http_,"/pairing/get_lounge_token_batch"),Z)},qiC=function(c){c.screens=c.localScreenService_.getScreens();
for(var f=_.zV.transpose(c.deviceToScreenId_),d=c.screens.length,q=0;q<d;++q){var Z=c.screens[q];Z.uuid=f[Z.id]||""}c.info("Updated manual screens: "+yhH(c.screens))};
rX.prototype.handleScreenChange_=function(){qiC(this);this.publish("screenChange");this.onlineScreenService_.update()};
var WqC=function(c){Zg3(c);c.localScreenService_=new M3(c.JSC$19602_http_);c.localScreenService_.subscribe("screenChange",(0,_.n1)(c.handleScreenChange_,c));qiC(c);c.disableAutomaticScreenCache_||(c.automaticScreens_=vdC(_.T7("yt-remote-automatic-screen-cache")||[]));Zg3(c);c.info("Initializing automatic screens: "+yhH(c.automaticScreens_));c.onlineScreenService_=new gC(c.JSC$19602_http_,(0,_.n1)(c.getScreens,c,!0));c.onlineScreenService_.subscribe("screenChange",(0,_.n1)(function(){this.publish("onlineScreenChange")},
c))},k8=function(c,f){var d=c.get(f.id);
d?(d.uuid=f.uuid,f=d):((d=pV(c.automaticScreens_,f.uuid))?(d.id=f.id,d.token=f.token,f=d):c.automaticScreens_.push(f),c.disableAutomaticScreenCache_||Mtp(c));Zg3(c);c.deviceToScreenId_[f.uuid]=f.id;_.iK("yt-remote-device-id-map",c.deviceToScreenId_,31536E3);return f},Mtp=function(c){c=_.gn(c.automaticScreens_,function(f){return f.idType!="shortLived"});
_.iK("yt-remote-automatic-screen-cache",_.JT(c,Xx3))},Zg3=function(c){c.deviceToScreenId_=_.T7("yt-remote-device-id-map")||{}};
rX.prototype.dispose=rX.prototype.dispose;_.rn(C6,_.B7);var OL=function(c,f){c.screen_=f;c.publish("sessionScreen",c.screen_)},rxS=function(c,f){c.screen_&&(c.screen_.token=f,k8(c.JSC$19606_screenService_,c.screen_));
c.publish("sessionScreen",c.screen_)};
C6.prototype.onSessionStopped=function(c){this.isDisposed()||(c&&(lE(this,""+c),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
C6.prototype.info=function(c){f6(this.JSC$19606_logName_,c)};
var lE=function(c,f){f6(c.JSC$19606_logName_,f)};
C6.prototype.JSC$19608_getCastSession=function(){return null};
C6.prototype.setDisplayStatus=function(c){var f=this.receiver_;c?(f.displayStatus=new chrome.cast.ReceiverDisplayStatus(c,[]),f.displayStatus.showStop=!0):f.displayStatus=null;chrome.cast.setReceiverDisplayStatus(f,(0,_.n1)(function(){this.info("Updated receiver status for "+f.friendlyName+": "+c)},this),(0,_.n1)(function(){lE(this,"Failed to update receiver status for: "+f.friendlyName)},this))};
C6.prototype.disposeInternal=function(){this.setDisplayStatus("");C6.superClass_.disposeInternal.call(this)};var sL=function(c,f,d){C6.call(this,c,f,"CastSession");var q=this;this.config_=d;this.JSC$19611_session_=null;this.JSC$19611_boundSessionUpdate_=(0,_.n1)(this.JSC$19613_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.n1)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Oz(function(){C2p(q,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19611_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19611_isInitLoungeToken_=!1;this.JSC$19611_lastLoungeTokenRefreshError_="unknown"};
_.K(sL,C6);_.r=sL.prototype;
_.r.setCastSession=function(c){if(this.JSC$19611_session_){if(this.JSC$19611_session_==c)return;lE(this,"Overriding cast session with new session object");gqD(this);this.JSC$19611_isInitLoungeToken_=!1;this.JSC$19611_lastLoungeTokenRefreshError_="unknown";this.JSC$19611_session_.removeUpdateListener(this.JSC$19611_boundSessionUpdate_);this.JSC$19611_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19611_session_=c;this.JSC$19611_session_.addUpdateListener(this.JSC$19611_boundSessionUpdate_);this.JSC$19611_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);ktF(this,"getMdxSessionStatus")};
_.r.launchWithParams=function(c){this.info("launchWithParams no-op for Cast: "+(0,_.zo)(c))};
_.r.stop=function(){if(this.JSC$19611_session_)this.JSC$19611_session_.stop((0,_.n1)(function(){this.onSessionStopped()},this),(0,_.n1)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.r.setDisplayStatus=function(){};
_.r.disposeInternal=function(){this.info("disposeInternal");gqD(this);this.JSC$19611_session_&&(this.JSC$19611_session_.removeUpdateListener(this.JSC$19611_boundSessionUpdate_),this.JSC$19611_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19611_session_=null;C6.prototype.disposeInternal.call(this)};
var ls3=function(c,f){_.sz(c.getLoungeTokenTimeoutKey_);c.getLoungeTokenTimeoutKey_=0;f==0?OgS(c):c.getLoungeTokenTimeoutKey_=_.Oz(function(){OgS(c)},f)},OgS=function(c){ktF(c,"getLoungeToken");
_.sz(c.onLoungeTokenTimeoutKey_);c.onLoungeTokenTimeoutKey_=_.Oz(function(){s0J(c,null)},3E4)},ktF=function(c,f){c.info("sendYoutubeMessage_: "+f+" "+(0,_.zo)(void 0));
var d={};d.type=f;c.JSC$19611_session_?c.JSC$19611_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",d,function(){},(0,_.n1)(function(){lE(this,"Failed to send message: "+f+".")},c)):lE(c,"Sending yt message without session: "+(0,_.zo)(d))};
sL.prototype.onYoutubeMessage_=function(c,f){if(!this.isDisposed())if(f)if(f=(0,_.Le)(f),_.Ik(f))switch(c=""+f.type,f=f.data||{},this.info("onYoutubeMessage_: "+c+" "+(0,_.zo)(f)),c){case "mdxSessionStatus":C2p(this,f);break;case "loungeToken":s0J(this,f);break;default:lE(this,"Unknown youtube message: "+c)}else lE(this,"Unable to parse message.");else lE(this,"No data in message.")};
var BtQ=function(c,f){if(f)c.info("onConnectedScreenId_: Received screenId: "+f),c.screen_&&c.screen_.id==f||c.getScreen_(f,function(d){OL(c,d)},function(){return c.onSessionStopped()},5);
else c.onSessionStopped(Error("Ok"))},TtH=function(c,f,d){c.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(f));
var q=new RL(f);ig3(c,q,function(Z){Z?(c.JSC$19611_isInitLoungeToken_=!0,k8(c.JSC$19606_screenService_,q),OL(c,q),c.JSC$19611_lastLoungeTokenRefreshError_="unknown",ls3(c,d)):(_.yJ(Error("Pk`"+JSON.stringify(f))),c.onSessionStopped())},5)},C2p=function(c,f){_.sz(c.sessionStatusTimeoutKey_);
c.sessionStatusTimeoutKey_=0;if(f)c.config_.enableCastLoungeToken&&f.loungeToken?f.deviceId?c.screen_&&c.screen_.uuid==f.deviceId||(f.loungeTokenRefreshIntervalMs?TtH(c,{name:c.receiver_.friendlyName,screenId:f.screenId,loungeToken:f.loungeToken,dialId:f.deviceId,screenIdType:"shortLived"},f.loungeTokenRefreshIntervalMs):(_.yJ(Error("Rk`"+JSON.stringify(f))),BtQ(c,f.screenId))):(_.yJ(Error("Qk`"+JSON.stringify(f))),BtQ(c,f.screenId)):BtQ(c,f.screenId);else c.onSessionStopped(Error("Ok"))},s0J=function(c,
f){_.sz(c.onLoungeTokenTimeoutKey_);
c.onLoungeTokenTimeoutKey_=0;var d=null;if(f)if(f.loungeToken){var q;((q=c.screen_)==null?void 0:q.token)==f.loungeToken&&(d="staleLoungeToken")}else d="missingLoungeToken";else d="noLoungeTokenResponse";d?(c.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(f)+", error: "+d)),c.JSC$19611_lastLoungeTokenRefreshError_=d,ls3(c,3E4)):(rxS(c,f.loungeToken),c.JSC$19611_isInitLoungeToken_=!1,c.JSC$19611_lastLoungeTokenRefreshError_="unknown",ls3(c,f.loungeTokenRefreshIntervalMs))};
sL.prototype.getScreen_=function(c,f,d,q){_.sz(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;fsr(this.JSC$19606_screenService_,this.receiver_.label,c,this.receiver_.friendlyName,(0,_.n1)(function(Z){Z?f(Z):q>=0?(lE(this,"Screen "+c+" appears to be offline. "+q+" retries left."),this.getScreenTimeoutKey_=_.Oz((0,_.n1)(this.getScreen_,this,c,f,d,q-1),300)):d(Error("Sk"))},this),d)};
var ig3=function(c,f,d,q){_.sz(c.JSC$19611_checkScreenAvailabilityTimeoutKey_);c.JSC$19611_checkScreenAvailabilityTimeoutKey_=0;j0C(c.JSC$19606_screenService_,f,function(Z){Z||q<0?d(Z):c.JSC$19611_checkScreenAvailabilityTimeoutKey_=_.Oz(function(){ig3(c,f,d,q-1)},300)})};
sL.prototype.JSC$19608_getCastSession=function(){return this.JSC$19611_session_};
sL.prototype.JSC$19613_onSessionUpdate_=function(c){this.isDisposed()||c||(lE(this,"Cast session died."),this.onSessionStopped())};
var gqD=function(c){_.sz(c.getScreenTimeoutKey_);c.getScreenTimeoutKey_=0;_.sz(c.JSC$19611_checkScreenAvailabilityTimeoutKey_);c.JSC$19611_checkScreenAvailabilityTimeoutKey_=0;_.sz(c.sessionStatusTimeoutKey_);c.sessionStatusTimeoutKey_=0;_.sz(c.onLoungeTokenTimeoutKey_);c.onLoungeTokenTimeoutKey_=0;_.sz(c.getLoungeTokenTimeoutKey_);c.getLoungeTokenTimeoutKey_=0};var B6=function(c,f,d,q){C6.call(this,c,f,"DialSession");this.config_=q;this.JSC$19615_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19615_theme_=d;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19615_deferredLaunchDeadlineTimer_=NaN;this.JSC$19615_boundSessionUpdate_=(0,_.n1)(this.JSC$19617_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19615_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19615_isInitLoungeToken_=!1;this.JSC$19615_lastLoungeTokenRefreshError_="unknown"};
_.K(B6,C6);B6.prototype.setCastSession=function(c){this.JSC$19615_session_=c;this.JSC$19615_session_.addUpdateListener(this.JSC$19615_boundSessionUpdate_)};
B6.prototype.launchWithParams=function(c){this.connectData_=c;this.deferredLaunch_()};
B6.prototype.stop=function(){msD(this);if(this.JSC$19615_session_)this.JSC$19615_session_.stop((0,_.n1)(this.onSessionStopped,this,null),(0,_.n1)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
B6.prototype.disposeInternal=function(){msD(this);this.JSC$19615_session_&&this.JSC$19615_session_.removeUpdateListener(this.JSC$19615_boundSessionUpdate_);this.JSC$19615_session_=null;C6.prototype.disposeInternal.call(this)};
var HgD=function(c){var f;return!!(c.config_.enableDialLoungeToken&&((f=c.JSC$19615_session_)==null?0:f.getDialAppInfo))},AxF=function(c){c.cancelPolling_=c.JSC$19606_screenService_.JSC$19604_getScreenByPollingPairingCode(c.reversePairingCode_,c.receiver_.label,c.receiver_.friendlyName,HgD(c),function(f,d){c.cancelPolling_=function(){};
c.JSC$19615_isInitLoungeToken_=!0;OL(c,f);f.idType=="shortLived"&&d>0&&iE(c,d)},function(f){c.cancelPolling_=function(){};
c.onSessionStopped(f)})};
B6.prototype.JSC$19617_onSessionUpdate_=function(c){this.isDisposed()||c||(lE(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Yiq=function(c){var f={};f.pairingCode=c.reversePairingCode_;f.theme=c.JSC$19615_theme_;n0C()&&(f.env_useStageMdx=1);return _.Tf(f)},FRQ=function(c){return new Promise(function(f){c.reversePairingCode_=OXS();
if(c.connectData_){var d=new chrome.cast.DialLaunchResponse(!0,Yiq(c));f(d);AxF(c)}else c.deferredLaunch_=function(){_.sz(c.JSC$19615_deferredLaunchDeadlineTimer_);c.deferredLaunch_=function(){};
c.JSC$19615_deferredLaunchDeadlineTimer_=NaN;var q=new chrome.cast.DialLaunchResponse(!0,Yiq(c));f(q);AxF(c)},c.JSC$19615_deferredLaunchDeadlineTimer_=_.Oz(function(){c.deferredLaunch_()},100)})},bgQ=function(c,f,d){c.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(f));
var q=new RL(f);return(new Promise(function(Z){ttr(c,q,function(M){M?(c.JSC$19615_isInitLoungeToken_=!0,k8(c.JSC$19606_screenService_,q),OL(c,q),iE(c,d)):_.yJ(Error("Uk`"+JSON.stringify(f)));Z(M)},5)})).then(function(Z){return Z?new chrome.cast.DialLaunchResponse(!1):FRQ(c)})},KRG=function(c,f){var d=c.launchData_.receiver.label,q=c.receiver_.friendlyName;
return(new Promise(function(Z){fsr(c.JSC$19606_screenService_,d,f,q,function(M){M&&M.token&&OL(c,M);Z(M)},function(M){lE(c,"Failed to get DIAL screen: "+M);
Z(null)})})).then(function(Z){return Z&&Z.token?new chrome.cast.DialLaunchResponse(!1):FRQ(c)})},ttr=function(c,f,d,q){_.sz(c.JSC$19615_checkScreenAvailabilityTimeoutKey_);
c.JSC$19615_checkScreenAvailabilityTimeoutKey_=0;j0C(c.JSC$19606_screenService_,f,function(Z){Z||q<0?d(Z):c.JSC$19615_checkScreenAvailabilityTimeoutKey_=_.Oz(function(){ttr(c,f,d,q-1)},300)})},iE=function(c,f){c.info("getDialAppInfoWithTimeout_ "+f);
HgD(c)&&(_.sz(c.getDialAppInfoTimeoutKey_),c.getDialAppInfoTimeoutKey_=0,f==0?Eqi(c):c.getDialAppInfoTimeoutKey_=_.Oz(function(){Eqi(c)},f))},Eqi=function(c){HgD(c)&&c.JSC$19615_session_.getDialAppInfo(function(f){c.info("getDialAppInfo dialLaunchData: "+JSON.stringify(f));
f=f.extraData||{};var d=null;if(f.loungeToken){var q;((q=c.screen_)==null?void 0:q.token)==f.loungeToken&&(d="staleLoungeToken")}else d="missingLoungeToken";d?(c.JSC$19615_lastLoungeTokenRefreshError_=d,iE(c,3E4)):(c.JSC$19615_isInitLoungeToken_=!1,c.JSC$19615_lastLoungeTokenRefreshError_="unknown",rxS(c,f.loungeToken),iE(c,f.loungeTokenRefreshIntervalMs))},function(f){c.info("getDialAppInfo error: "+f);
c.JSC$19615_lastLoungeTokenRefreshError_="noLoungeTokenResponse";iE(c,3E4)})},msD=function(c){_.sz(c.JSC$19615_checkScreenAvailabilityTimeoutKey_);
c.JSC$19615_checkScreenAvailabilityTimeoutKey_=0;_.sz(c.getDialAppInfoTimeoutKey_);c.getDialAppInfoTimeoutKey_=0;c.cancelPolling_();c.cancelPolling_=function(){};
_.sz(c.JSC$19615_deferredLaunchDeadlineTimer_)};var TL=function(c,f){C6.call(this,c,f,"ManualSession");this.JSC$19619_deferredLaunchDeadlineTimer_=_.Oz((0,_.n1)(this.launchWithParams,this,null),150)};
_.K(TL,C6);TL.prototype.stop=function(){this.onSessionStopped()};
TL.prototype.setCastSession=function(){};
TL.prototype.launchWithParams=function(){_.sz(this.JSC$19619_deferredLaunchDeadlineTimer_);this.JSC$19619_deferredLaunchDeadlineTimer_=NaN;var c=pV(this.JSC$19606_screenService_.getScreens(),this.receiver_.label);if(c)OL(this,c);else this.onSessionStopped(Error("Vk"))};
TL.prototype.disposeInternal=function(){_.sz(this.JSC$19619_deferredLaunchDeadlineTimer_);this.JSC$19619_deferredLaunchDeadlineTimer_=NaN;C6.prototype.disposeInternal.call(this)};var lR=function(c,f){_.B7.call(this);this.config_=f;this.JSC$19622_screenService_=c;this.JSC$19622_appId_=f.appId||"233637DE";this.JSC$19622_theme_=f.theme||"cl";this.disableDial_=f.disableCastApi||!1;this.forceMirroring_=f.forceMirroring||!1;this.JSC$19622_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.n1)(this.onReceiverAction_,this)};
_.K(lR,_.B7);
lR.prototype.init=function(c,f){chrome.cast.timeout.requestSession=3E4;var d=new chrome.cast.SessionRequest(this.JSC$19622_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.F("desktop_enable_cast_connect")&&(d.androidReceiverCompatible=!0);this.disableDial_||(d.dialRequest=new chrome.cast.DialRequest("YouTube"));var q=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;c=c||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Z=(0,_.n1)(this.onReceiverUpdated_,
this);d=new chrome.cast.ApiConfig(d,(0,_.n1)(this.onSessionEstablished_,this),Z,q,c);d.customDialLaunchCallback=(0,_.n1)(this.onDialLaunchRequested_,this);chrome.cast.initialize(d,(0,_.n1)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Vv3(),this.JSC$19622_screenService_.subscribe("onlineScreenChange",(0,_.n1)(this.JSC$19624_onScreenChange_,this)),this.customReceivers_=nq3(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.n1)(function(M){this.warn_("Failed to set initial custom receivers: "+(0,_.zo)(M))},this)),this.publish("yt-remote-cast2-availability-change",mx(this)),f(!0))},this),(0,_.n1)(function(M){this.warn_("Failed to initialize API: "+(0,_.zo)(M));
f(!1)},this))};
lR.prototype.setConnectedScreenStatus=function(c,f){H6("Setting connected screen ID: "+c+" -> "+f);if(this.JSC$19622_session_){var d=this.JSC$19622_session_.screen_;if(!c||d&&d.id!=c)H6("Unsetting old screen status: "+this.JSC$19622_session_.receiver_.friendlyName),At(this,null)}if(c&&f){if(!this.JSC$19622_session_){c=pV(this.JSC$19622_screenService_.getScreens(),c);if(!c){H6("setConnectedScreenStatus: Unknown screen.");return}if(c.idType=="shortLived"){H6("setConnectedScreenStatus: Screen with id type to be short lived.");
return}d=$sG(this,c);d||(H6("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(d),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.n1)(function(q){this.warn_("Failed to set initial custom receivers: "+(0,_.zo)(q))},this)));
H6("setConnectedScreenStatus: new active receiver: "+d.friendlyName);At(this,new TL(this.JSC$19622_screenService_,d),!0)}this.JSC$19622_session_.setDisplayStatus(f)}else H6("setConnectedScreenStatus: no screen.")};
var $sG=function(c,f){return f?_.ak(c.customReceivers_,function(d){return Uf(f,d.label)},c):null};
lR.prototype.setLaunchParams=function(c){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19622_session_?this.JSC$19622_session_.launchWithParams(c):this.warn_("Setting connection data without a session")};
lR.prototype.JSC$19624_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19622_session_?(this.JSC$19622_session_.stop(),At(this,null)):H6("Stopping non-existing session")};
lR.prototype.requestSession=function(){chrome.cast.requestSession((0,_.n1)(this.onSessionEstablished_,this),(0,_.n1)(this.onSessionRequestFailed_,this))};
lR.prototype.disposeInternal=function(){this.JSC$19622_screenService_.unsubscribe("onlineScreenChange",(0,_.n1)(this.JSC$19624_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.wz(_.D5("yt.mdx.remote.debug.handlers_")||[],zNC);_.GV(this.JSC$19622_session_);_.B7.prototype.disposeInternal.call(this)};
var H6=function(c){f6("Controller",c)};
lR.prototype.warn_=function(c){f6("Controller",c)};
var zNC=function(c){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(c)},mx=function(c){return c.hasCastReceiver_||!!c.customReceivers_.length||!!c.JSC$19622_session_},At=function(c,f,d){f!=c.JSC$19622_session_&&(_.GV(c.JSC$19622_session_),(c.JSC$19622_session_=f)?(d?c.publish("yt-remote-cast2-receiver-resumed",f.receiver_):c.publish("yt-remote-cast2-receiver-selected",f.receiver_),f.subscribe("sessionScreen",(0,_.n1)(c.onSessionScreen_,c,f)),f.subscribe("sessionFailed",
function(){return Q0c(c,f)}),f.screen_?c.publish("yt-remote-cast2-session-change",f.screen_):d&&c.JSC$19622_session_.launchWithParams(null)):c.publish("yt-remote-cast2-session-change",null))},Q0c=function(c,f){c.JSC$19622_session_==f&&c.publish("yt-remote-cast2-session-failed")};
_.r=lR.prototype;_.r.onSessionScreen_=function(c,f){this.JSC$19622_session_==c&&(f||At(this,null),this.publish("yt-remote-cast2-session-change",f))};
_.r.onReceiverAction_=function(c,f){if(!this.isDisposed())if(c)switch(c.friendlyName=chrome.cast.unescape(c.friendlyName),H6("onReceiverAction_ "+c.label+" / "+c.friendlyName+"-- "+f),f){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19622_session_)if(this.JSC$19622_session_.receiver_.label!=c.label)H6("onReceiverAction_: Stopping active receiver: "+this.JSC$19622_session_.receiver_.friendlyName),this.JSC$19622_session_.stop();else{H6("onReceiverAction_: Casting to active receiver.");this.JSC$19622_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19622_session_.screen_);break}switch(c.receiverType){case chrome.cast.ReceiverType.CUSTOM:At(this,new TL(this.JSC$19622_screenService_,c));break;case chrome.cast.ReceiverType.DIAL:At(this,new B6(this.JSC$19622_screenService_,c,this.JSC$19622_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:At(this,new sL(this.JSC$19622_screenService_,c,this.config_));break;default:this.warn_("Unknown receiver type: "+c.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19622_session_&&
this.JSC$19622_session_.receiver_.label==c.label?this.JSC$19622_session_.stop():this.warn_("Stopping receiver w/o session: "+c.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.r.onDialLaunchRequested_=function(c){if(this.isDisposed())return Promise.reject(Error("Wk"));var f=c.receiver;f.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+f.friendlyName),f.receiverType=chrome.cast.ReceiverType.DIAL);var d=this.JSC$19622_session_?this.JSC$19622_session_.receiver_:null;if(!d||d.label!=f.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+f.friendlyName),Promise.reject(Error("Xk"));if(d&&d.label==f.label&&d.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19622_session_.screen_)return H6("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19622_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+d.receiverType+'" to "dial" for '+f.friendlyName);At(this,new B6(this.JSC$19622_screenService_,f,this.JSC$19622_theme_,this.config_))}f=this.JSC$19622_session_;f.launchData_=c;f.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(c=f.launchData_.extraData||{},d=c.screenId||null,HgD(f)&&c.loungeToken?c.loungeTokenRefreshIntervalMs?c=bgQ(f,{name:f.receiver_.friendlyName,screenId:c.screenId,loungeToken:c.loungeToken,dialId:f.launchData_.receiver.label,screenIdType:"shortLived"},c.loungeTokenRefreshIntervalMs):(_.yJ(Error("Tk`"+JSON.stringify(c))),c=KRG(f,d)):c=KRG(f,d)):c=FRQ(f);return c};
_.r.onSessionEstablished_=function(c){var f=this;if(!this.isDisposed()&&!this.forceMirroring_){H6("New cast session ID: "+c.sessionId);var d=c.receiver;if(d.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19622_session_)if(d.receiverType==chrome.cast.ReceiverType.CAST)H6("Got resumed cast session before resumed mdx connection."),d.friendlyName=chrome.cast.unescape(d.friendlyName),At(this,new sL(this.JSC$19622_screenService_,d,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var q=this.JSC$19622_session_.receiver_,Z=pV(this.JSC$19622_screenService_.getScreens(),q.label);Z&&Uf(Z,d.label)&&q.receiverType!=chrome.cast.ReceiverType.CAST&&d.receiverType==chrome.cast.ReceiverType.CAST&&(H6("onSessionEstablished_: manual to cast session change "+d.friendlyName),_.GV(this.JSC$19622_session_),this.JSC$19622_session_=new sL(this.JSC$19622_screenService_,d,this.config_),this.JSC$19622_session_.subscribe("sessionScreen",(0,_.n1)(this.onSessionScreen_,this,this.JSC$19622_session_)),
this.JSC$19622_session_.subscribe("sessionFailed",function(){return Q0c(f,f.JSC$19622_session_)}),this.JSC$19622_session_.launchWithParams(null));
this.JSC$19622_session_.setCastSession(c)}}};
_.r.JSC$19624_getCastSession=function(){return this.JSC$19622_session_?this.JSC$19622_session_.JSC$19608_getCastSession():null};
_.r.onSessionRequestFailed_=function(c){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.zo)(c)),c.code!=chrome.cast.ErrorCode.CANCEL&&At(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.r.onReceiverUpdated_=function(c){H6("Receiver availability updated: "+c);if(!this.isDisposed()){var f=mx(this);this.hasCastReceiver_=c==chrome.cast.ReceiverAvailability.AVAILABLE;mx(this)!=f&&this.publish("yt-remote-cast2-availability-change",mx(this))}};
var nq3=function(c){var f=c.JSC$19622_screenService_.JSC$19604_getOnlineScreens(),d=c.JSC$19622_session_&&c.JSC$19622_session_.receiver_;c=_.JT(f,function(q){d&&Uf(q,d.label)&&(d=null);var Z=q.uuid?q.uuid:q.id,M=$sG(this,q);M?(M.label=Z,M.friendlyName=q.name):(M=new chrome.cast.Receiver(Z,q.name),M.receiverType=chrome.cast.ReceiverType.CUSTOM);return M},c);
d&&(d.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(d=new chrome.cast.Receiver(d.label,d.friendlyName),d.receiverType=chrome.cast.ReceiverType.CUSTOM),c.push(d));return c};
lR.prototype.JSC$19624_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=nq3(this),H6("Updating custom receivers: "+(0,_.zo)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.n1)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",mx(this)))};
lR.prototype.setLaunchParams=lR.prototype.setLaunchParams;lR.prototype.setConnectedScreenStatus=lR.prototype.setConnectedScreenStatus;lR.prototype.stopSession=lR.prototype.JSC$19624_stopSession;lR.prototype.getCastSession=lR.prototype.JSC$19624_getCastSession;lR.prototype.requestSession=lR.prototype.requestSession;lR.prototype.init=lR.prototype.init;lR.prototype.dispose=lR.prototype.dispose;var Sii=_.pp(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),MBr=[],ULS=_.CG(Sii);var LRS=function(c){c.audioTrackId=null;c.trackData=null;c.playerState=-1;c.hasPrevious=!1;c.hasNext=!1;c.playerTime_=0;c.playerTimeAt_=_.M6();c.seekableStart_=0;c.seekableEnd_=0;c.duration_=0;c.loadedTime=0;c.liveIngestionTime_=NaN;c.isLive_=!1};
_.r=sp.prototype;
_.r.reset=function(c){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;c&&(this.index=c.index,this.listId=c.listId,this.videoId=c.videoId,this.playerState=c.playerState,this.volume=c.volume,this.muted=c.muted,this.audioTrackId=c.audioTrackId,this.trackData=c.trackData,this.hasPrevious=c.hasPrevious,this.hasNext=c.hasNext,this.playerTime_=c.playerTime,this.playerTimeAt_=c.playerTimeAt,this.seekableStart_=c.seekableStart,this.seekableEnd_=c.seekableEnd,this.duration_=c.duration,this.loadedTime=
c.loadedTime,this.liveIngestionTime_=c.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.r.stopPlayer=function(){this.index=-1;this.videoId="";LRS(this)};
_.r.isPlaying=function(){return this.playerState==1};
_.r.isBuffering=function(){return this.playerState==3};
_.r.isAdPlaying=function(){return this.playerState==1081};
var Y8=function(c,f){c.playerTime_=f;c.playerTimeAt_=_.M6()},ztC=function(c){switch(c.playerState){case 1:case 1081:return(_.M6()-c.playerTimeAt_)/1E3+c.playerTime_;
case -1E3:return 0}return c.playerTime_};
sp.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.M6()-this.playerTimeAt_)/1E3:0):this.duration_};
var JxC=function(c,f,d){var q=c.videoId;c.videoId=f;c.index=d;f!=q&&LRS(c)},asD=function(c){var f={};
f.index=c.index;f.listId=c.listId;f.videoId=c.videoId;f.playerState=c.playerState;f.volume=c.volume;f.muted=c.muted;f.audioTrackId=c.audioTrackId;f.trackData=_.zV.unsafeClone(c.trackData);f.hasPrevious=c.hasPrevious;f.hasNext=c.hasNext;f.playerTime=c.playerTime_;f.playerTimeAt=c.playerTimeAt_;f.seekableStart=c.seekableStart_;f.seekableEnd=c.seekableEnd_;f.duration=c.duration_;f.loadedTime=c.loadedTime;f.liveIngestionTime=c.liveIngestionTime_;return f};
sp.prototype.clone=function(){return new sp(asD(this))};var F3=function(c,f){_.B7.call(this);var d=this;this.state_=0;this.connection_=c;this.contextSubscriptions_=[];this.actionQueue_=new dLH;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.n1)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.n1)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.n1)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.n1)(this.onCloudviewAvailabilityChange_,this);var q=0;c?(q=c.getProxyState(),
q!=3&&(c.subscribe("proxyStateChange",this.setState_,this),VtQ(this))):q=3;q!=0&&(f?this.setState_(q):_.Oz(function(){d.setState_(q)},0));
(c=kaH())&&XA3(this,c);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.K(F3,_.B7);F3.prototype.getState=function(){return this.state_};
F3.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
F3.prototype.reconnect=function(){this.connection_.reconnect()};
var tt=function(c){return new sp(c.connection_.getPlayerContextData())};
_.r=F3.prototype;_.r.play=function(){bE(this)?(this.castMedia_?this.castMedia_.play(null,_.tq,uWJ(this,"play")):Kc(this,"play"),vq3(this,1,ztC(tt(this))),this.publish("remotePlayerChange")):EL(this,this.play)};
_.r.pause=function(){bE(this)?(this.castMedia_?this.castMedia_.pause(null,_.tq,uWJ(this,"pause")):Kc(this,"pause"),vq3(this,2,ztC(tt(this))),this.publish("remotePlayerChange")):EL(this,this.pause)};
_.r.seekTo=function(c){if(bE(this)){if(this.castMedia_){var f=tt(this),d=new chrome.cast.media.SeekRequest;d.currentTime=c;f.isPlaying()||f.isBuffering()?d.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:d.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(d,_.tq,uWJ(this,"seekTo",{newTime:c}))}else Kc(this,"seekTo",{newTime:c});vq3(this,3,c);this.publish("remotePlayerChange")}else EL(this,_.Yt(this.seekTo,c))};
_.r.stop=function(){if(bE(this)){this.castMedia_?this.castMedia_.stop(null,_.tq,uWJ(this,"stopVideo")):Kc(this,"stopVideo");var c=tt(this);c.stopPlayer();nc(this,c);this.publish("remotePlayerChange")}else EL(this,this.stop)};
_.r.setVolume=function(c,f){if(bE(this)){var d=tt(this);if(this.castSession_){if(d.volume!=c){var q=Math.round(c)/100;this.castSession_.setReceiverVolumeLevel(q,(0,_.n1)(function(){dX("set receiver volume: "+q)},this),(0,_.n1)(function(){this.warn_("failed to set receiver volume.")},this))}d.muted!=f&&this.castSession_.setReceiverMuted(f,(0,_.n1)(function(){dX("set receiver muted: "+f)},this),(0,_.n1)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Z={volume:c,
muted:f};d.volume!=-1&&(Z.delta=c-d.volume);Kc(this,"setVolume",Z)}d.muted=f;d.volume=c;nc(this,d)}else EL(this,_.Yt(this.setVolume,c,f))};
_.r.setAudioTrack=function(c,f){bE(this)?(f=f.getLanguageInfo().getId(),Kc(this,"setAudioTrack",{videoId:c,audioTrackId:f}),c=tt(this),c.audioTrackId=f,nc(this,c)):EL(this,_.Yt(this.setAudioTrack,c,f))};
_.r.addVideo=function(c){bE(this)?Kc(this,"addVideo",{videoId:c}):EL(this,_.Yt(this.addVideo,c))};
_.r.addPlaylist=function(c){bE(this)?Kc(this,"addVideos",{listId:c}):EL(this,_.Yt(this.addPlaylist,c))};
_.r.addVideos=function(c){c.length==0?this.warn_("Ignore add videos request due to empty list"):bE(this)?Kc(this,"addVideos",{videoIds:c.join(",")}):EL(this,_.Yt(this.addVideos,c))};
_.r.JSC$19634_removeVideo=function(c){bE(this)?Kc(this,"removeVideo",{videoId:c}):EL(this,_.Yt(this.JSC$19634_removeVideo,c))};
_.r.JSC$19634_insertVideo=function(c){bE(this)?Kc(this,"insertVideo",{videoId:c}):EL(this,_.Yt(this.JSC$19634_insertVideo,c))};
_.r.playVideo=function(c,f,d,q,Z,M,g){q=q===void 0?null:q;Z=Z===void 0?null:Z;M=M===void 0?null:M;g=g===void 0?null:g;var O=tt(this),l={videoId:c};d!==void 0&&(l.currentIndex=d);JxC(O,c,d||0);f!==void 0&&(Y8(O,f),l.currentTime=f);q&&(l.listId=q);Z&&(l.playerParams=Z);M&&(l.clickTrackingParams=M);g&&(l.locationInfo=(0,_.zo)(g));Kc(this,"setPlaylist",l);q||nc(this,O)};
_.r.nextVideo=function(c,f){if(bE(this)){if(c&&f){var d=tt(this);JxC(d,c,f);nc(this,d)}Kc(this,"next")}else EL(this,_.Yt(this.nextVideo,c,f))};
_.r.clearPlaylist=function(){if(bE(this)){Kc(this,"clearPlaylist");var c=tt(this);c.reset();nc(this,c);this.publish("remotePlayerChange")}else EL(this,this.clearPlaylist)};
_.r.dispose=function(){if(this.state_!=3){var c=this.state_;this.state_=3;this.publish("proxyStateChange",c,this.state_)}_.B7.prototype.dispose.call(this)};
_.r.disposeInternal=function(){htH(this);this.connection_=null;this.actionQueue_.clear();XA3(this,null);_.B7.prototype.disposeInternal.call(this)};
var VtQ=function(c){_.Iw("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(f){this.contextSubscriptions_.push(this.connection_.subscribe(f,_.Yt(this.onProxyEvent_,f),this))},c)},htH=function(c){_.Iw(c.contextSubscriptions_,function(f){this.connection_.unsubscribeByKey(f)},c);
c.contextSubscriptions_.length=0},bE=function(c){return c.getState()==1},EL=function(c,f){c.actionQueue_.getCount()<50&&c.actionQueue_.enqueue(f)},vq3=function(c,f,d){var q=tt(c);
Y8(q,d);q.playerState!=-1E3&&(q.playerState=f);nc(c,q)},Kc=function(c,f,d){c.connection_.sendMessage(f,d)},nc=function(c,f){htH(c);
c.connection_.setPlayerContextData(asD(f));VtQ(c)};
F3.prototype.setState_=function(c){if((c!=this.state_||c==2)&&this.state_!=3&&c!=0){var f=this.state_;this.state_=c;this.publish("proxyStateChange",f,c);if(c==1)for(;!this.actionQueue_.isEmpty();)c=this.actionQueue_,GGC(c),c.front_.pop().apply(this);else c==3&&this.dispose()}};
F3.prototype.onProxyEvent_=function(c,f){this.publish(c,f)};
var XA3=function(c,f){c.castSession_&&(c.castSession_.removeUpdateListener(c.boundCastStatusListener_),c.castSession_.removeMediaListener(c.boundCastMediaListener_),c.onCastMediaChange_(null));c.castSession_=f;if(c.castSession_&&(dX("Setting cast session: "+c.castSession_.sessionId),c.castSession_.addUpdateListener(c.boundCastStatusListener_),c.castSession_.addMediaListener(c.boundCastMediaListener_),c.castSession_.media.length))c.onCastMediaChange_(c.castSession_.media[0])};
F3.prototype.onCastStatusUpdate_=function(c){if(!c)this.onCastMediaChange_(null),XA3(this,null);else if(this.castSession_.receiver.volume){c=this.castSession_.receiver.volume;var f=tt(this),d=Math.round(100*c.level||0);if(f.volume!=d||f.muted!=c.muted)dX("Cast volume update: "+c.level+(c.muted?" muted":"")),f.volume=d,f.muted=!!c.muted,nc(this,f)}};
F3.prototype.onCastMediaChange_=function(c){dX("Cast media: "+!!c);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=c)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),wAQ(this),this.publish("remotePlayerChange")};
var wAQ=function(c){var f=c.castMedia_.media,d=c.castMedia_.customData;if(f&&d){var q=tt(c);f.contentId!=q.videoId&&dX("Cast changing video to: "+f.contentId);q.videoId=f.contentId;q.playerState=d.playerState;Y8(q,c.castMedia_.getEstimatedTime());nc(c,q)}else dX("No cast media video. Ignoring state update.")};
F3.prototype.onCastMediaUpdate_=function(c){if(c)wAQ(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
F3.prototype.onCloudviewAvailabilityChange_=function(){var c=kaH();c&&XA3(this,c)};
F3.prototype.warn_=function(c){f6("CP",c)};
var uWJ=function(c,f,d){return(0,_.n1)(function(q){this.warn_("Failed to "+f+" with cast v2 channel. Error code: "+q.code);q.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+f+" using MDx browser channel."),Kc(this,f,d))},c)};var Qx=function(c,f,d,q){q=q===void 0?!1:q;_.B7.call(this);var Z=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$19641_http_=c;this.enableConnectWithInitialState_=q;this.listeners_.push(_.dK(window,"beforeunload",function(){Z.JSC$19644_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new sp;this.currentScreenId_=f.id;this.currentScreenIdType_=f.idType;this.channelService=LqG(this.JSC$19641_http_,d,this.JSC$19644_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){yxi(Z)});
this.channelService.listen("channelClosed",function(){$8("Channel closed");isNaN(Z.connectTimerId_)?x7(!0):x7();Z.dispose()});
this.channelService.listen("channelError",function(M){x7();isNaN(Z.getReconnectTimeout_())?(M==1&&Z.currentScreenIdType_=="shortLived"&&Z.publish("browserChannelAuthError",M),$8("Channel error: "+M+" without reconnection"),Z.dispose()):(Z.reconnecting_=!0,$8("Channel error: "+M+" with reconnection in "+Z.getReconnectTimeout_()+" ms"),WRC(Z,2))});
this.channelService.listen("channelMessage",function(M){Dsq(Z,M)});
this.channelService.setLoungeToken(f.token);this.subscribe("remoteQueueChange",function(){var M=Z.playerContext_.videoId;TDp()&&_.iK("yt-remote-session-video-id",M)})};
_.K(Qx,_.B7);
Qx.prototype.connect=function(c,f){if(f){var d=f.listId,q=f.videoId,Z=f.videoIds,M=f.playerParams,g=f.clickTrackingParams,O=f.index,l={videoId:q},m=f.currentTime,H=f.locationInfo;f=f.loopMode;m!==void 0&&(l.currentTime=m<=5?0:m);M&&(l.playerParams=M);H&&(l.locationInfo=H);g&&(l.clickTrackingParams=g);d&&(l.listId=d);Z&&Z.length>0&&(l.videoIds=Z.join(","));O!==void 0&&(l.currentIndex=O);this.enableConnectWithInitialState_&&(l.loopMode=f||"LOOP_MODE_OFF");d&&(this.playerContext_.listId=d);this.playerContext_.videoId=
q;this.playerContext_.index=O||0;this.playerContext_.state=3;Y8(this.playerContext_,m);this.autoplayMode_="UNSUPPORTED";d=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";$8("Connecting with "+d+" and params: "+(0,_.zo)(l));this.channelService.connect({method:d,params:(0,_.zo)(l)},c,Fq3())}else $8("Connecting without params"),this.channelService.connect({},c,Fq3());etS(this)};
Qx.prototype.setLoungeToken=function(c){this.channelService.setLoungeToken(c)};
Qx.prototype.dispose=function(){this.isDisposed()||(_.fu("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),WRC(this,3));_.B7.prototype.dispose.call(this)};
Qx.prototype.disposeInternal=function(){Nt3(this);IsJ(this);P23(this);_.sz(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.sz(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Wtz(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.B7.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Rti=function(c){return _.ak(c.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"})},$8=function(c){f6("conn",c)},WRC=function(c,f){c.publish("proxyStateChange",f)},etS=function(c){c.connectTimerId_=_.Oz(function(){$8("Connecting timeout");
c.JSC$19644_disconnect_(1)},2E4)},Nt3=function(c){_.sz(c.connectTimerId_);
c.connectTimerId_=NaN},P23=function(c){_.sz(c.reconnectedCheckScreenTimeout_);
c.reconnectedCheckScreenTimeout_=NaN},Usc=function(c){IsJ(c);
c.playingSyncTimerId_=_.Oz(function(){S2(c,"getNowPlaying")},2E4)},IsJ=function(c){_.sz(c.playingSyncTimerId_);
c.playingSyncTimerId_=NaN},yxi=function(c){$8("Channel opened");
c.reconnecting_&&(c.reconnecting_=!1,P23(c),c.reconnectedCheckScreenTimeout_=_.Oz(function(){$8("Timing out waiting for a screen.");c.JSC$19644_disconnect_(1)},15E3))},xsi=function(c,f){var d=null;
if(f){var q=Rti(c);q&&(d={clientName:q.clientName,deviceMake:q.brand,deviceModel:q.model,osVersion:q.osVersion})}_.fu("yt.mdx.remote.remoteClient_",d);f&&(Nt3(c),P23(c));d=c.channelService.isChannelOpened()&&isNaN(c.connectTimerId_);f==d?f&&(WRC(c,1),S2(c,"getSubtitlesTrack")):f?(c.getOtherConnectedRemoteId_()&&c.playerContext_.reset(),WRC(c,1),S2(c,"getNowPlaying"),pA3(c)):c.JSC$19644_disconnect_(1)},oqp=function(c,f){var d=f.params.videoId;
delete f.params.videoId;d==c.playerContext_.videoId&&(_.zV.isEmpty(f.params)?c.playerContext_.trackData=null:c.playerContext_.trackData=f.params,c.publish("remotePlayerChange"))},GtQ=function(c,f,d){var q=f.params.videoId||f.params.video_id,Z=parseInt(f.params.currentIndex,10);
c.playerContext_.listId=f.params.listId||c.playerContext_.listId;JxC(c.playerContext_,q,Z);c.publish("remoteQueueChange",d)},c2F=function(c,f){f.params=f.params||{};
GtQ(c,f,"NOW_PLAYING_MAY_CHANGE");c.onStateChange_(f);c.publish("autoplayDismissed")};
Qx.prototype.onStateChange_=function(c){var f=parseInt(c.params.currentTime||c.params.current_time,10);Y8(this.playerContext_,isNaN(f)?0:f);f=parseInt(c.params.state,10);f=isNaN(f)?-1:f;f==-1&&this.playerContext_.playerState==-1E3&&(f=-1E3);this.playerContext_.playerState=f;f=Number(c.params.loadedTime);this.playerContext_.loadedTime=isNaN(f)?0:f;f=Number(c.params.duration);this.playerContext_.duration_=isNaN(f)?0:f;f=this.playerContext_;var d=Number(c.params.liveIngestionTime);f.liveIngestionTime_=
d;f.isLive_=isNaN(d)?!1:!0;f=this.playerContext_;d=Number(c.params.seekableStartTime);c=Number(c.params.seekableEndTime);f.seekableStart_=isNaN(d)?0:d;f.seekableEnd_=isNaN(c)?0:c;this.playerContext_.playerState==1?Usc(this):IsJ(this);this.publish("remotePlayerChange")};
Qx.prototype.onAdStateChange_=function(c){if(this.playerContext_.playerState!=-1E3){var f=1085;switch(parseInt(c.params.adState,10)){case 1:f=1081;break;case 2:f=1084;break;case 0:f=1083}this.playerContext_.playerState=f;c=parseInt(c.params.currentTime,10);Y8(this.playerContext_,isNaN(c)?0:c);this.publish("remotePlayerChange")}};
var fbr=function(c,f){var d=f.params.muted=="true";c.playerContext_.volume=parseInt(f.params.volume,10);c.playerContext_.muted=d;c.publish("remotePlayerChange")},deC=function(c,f){c.autoplayVideoId_=f.params.videoId;
c.publish("nowAutoplaying",parseInt(f.params.timeout,10))},jQC=function(c,f){c.autoplayVideoId_=f.params.videoId||null;
c.publish("autoplayUpNext",c.autoplayVideoId_)},qji=function(c,f){c.autoplayMode_=f.params.autoplayMode;
c.publish("autoplayModeChange",c.autoplayMode_);c.autoplayMode_=="DISABLED"&&c.publish("autoplayDismissed")},Zmi=function(c,f){var d=f.params.hasNext=="true";
c.playerContext_.hasPrevious=f.params.hasPrevious=="true";c.playerContext_.hasNext=d;c.publish("previousNextChange")};
Qx.prototype.isCapabilitySupportedOnConnectedDevices_=function(c){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var f=_.C(this.connectedDevices_),d=f.next();!d.done;d=f.next())if(!d.value.capabilities.has(c))return!1;return!0};
var Dsq=function(c,f){f=f.message;f.params?$8("Received: action="+f.action+", params="+(0,_.zo)(f.params)):$8("Received: action="+f.action+" {}");switch(f.action){case "loungeStatus":f=(0,_.Le)(f.params.devices);c.connectedDevices_=_.JT(f,function(q){return new Cc(q)});
f=!!_.ak(c.connectedDevices_,function(q){return q.type=="LOUNGE_SCREEN"});
xsi(c,f);f=c.isCapabilitySupportedOnConnectedDevices_("mlm");c.publish("multiStateLoopEnabled",f);break;case "loungeScreenDisconnected":SuC(c.connectedDevices_,function(q){return q.type=="LOUNGE_SCREEN"});
xsi(c,!1);break;case "remoteConnected":var d=new Cc((0,_.Le)(f.params.device));_.ak(c.connectedDevices_,function(q){return q.equals(d)})||_.tMk(c.connectedDevices_,d);
break;case "remoteDisconnected":d=new Cc((0,_.Le)(f.params.device));SuC(c.connectedDevices_,function(q){return q.equals(d)});
break;case "gracefulDisconnect":break;case "playlistModified":GtQ(c,f,"QUEUE_MODIFIED");break;case "nowPlaying":c2F(c,f);break;case "onStateChange":c.onStateChange_(f);break;case "onAdStateChange":c.onAdStateChange_(f);break;case "onVolumeChanged":fbr(c,f);break;case "onSubtitlesTrackChanged":oqp(c,f);break;case "nowAutoplaying":deC(c,f);break;case "autoplayDismissed":c.publish("autoplayDismissed");break;case "autoplayUpNext":jQC(c,f);break;case "onAutoplayModeChanged":qji(c,f);break;case "onHasPreviousNextChanged":Zmi(c,
f);break;case "requestAssistedSignIn":c.publish("assistedSignInRequested",f.params.authCode);break;case "onLoopModeChanged":c.publish("loopModeChange",f.params.loopMode);break;default:$8("Unrecognized action: "+f.action)}};
_.r=Qx.prototype;_.r.getProxyState_=function(){var c=3;this.isDisposed()||(c=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(c=1):c=2);return c};
_.r.JSC$19644_disconnect_=function(c){$8("Disconnecting with "+c);_.fu("yt.mdx.remote.remoteClient_",null);Nt3(this);this.publish("beforeDisconnect",c);c==1&&x7();this.channelService.disconnect(c);this.dispose()};
_.r.getPlayerContextData_=function(){var c=this.playerContext_;this.clientVideoId_&&(c=this.playerContext_.clone(),JxC(c,this.clientVideoId_,c.index));return asD(c)};
_.r.setPlayerContextData_=function(c){var f=this,d=new sp(c);d.videoId&&d.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=d.videoId,_.sz(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Oz(function(){if(f.clientVideoId_){var Z=f.clientVideoId_;f.clientVideoId_=null;f.playerContext_.videoId!=Z&&S2(f,"getNowPlaying")}},5E3));
var q=[];this.playerContext_.listId==d.listId&&this.playerContext_.videoId==d.videoId&&this.playerContext_.index==d.index||q.push("remoteQueueChange");this.playerContext_.playerState==d.playerState&&this.playerContext_.volume==d.volume&&this.playerContext_.muted==d.muted&&ztC(this.playerContext_)==ztC(d)&&(0,_.zo)(this.playerContext_.trackData)==(0,_.zo)(d.trackData)||q.push("remotePlayerChange");this.playerContext_.reset(c);_.Iw(q,function(Z){this.publish(Z)},this)};
_.r.getOtherConnectedRemoteId_=function(){var c=this.channelService.getDeviceId(),f=_.ak(this.connectedDevices_,function(d){return d.type=="REMOTE_CONTROL"&&d.id!=c});
return f?f.id:""};
_.r.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.r.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.r.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.r.JSC$19644_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var pA3=function(c){_.sz(c.idleDisconnectTimerId_);c.idleDisconnectTimerId_=_.Oz(function(){c.JSC$19644_disconnect_(1)},864E5)},S2=function(c,f,d){d?$8("Sending: action="+f+", params="+(0,_.zo)(d)):$8("Sending: action="+f);
c.channelService.sendMessage(f,d)};
Qx.prototype.sendMessageWithUserAction_=function(c,f){S2(this,c,f);pA3(this)};
Qx.prototype.JSC$19644_getXsrfToken_=function(){var c=_.A4.get("SAPISID","")||_.A4.get("__Secure-1PAPISID",void 0)||"",f=_.A4.get("__Secure-3PAPISID","")||"";if(!c&&!f)return"";c=_.$S(_.K1(c),2);f=_.$S(_.K1(f),2);return _.$S(_.K1(","+c+","+f),2)};
Qx.prototype.subscribe=Qx.prototype.subscribe;Qx.prototype.unsubscribeByKey=Qx.prototype.unsubscribeByKey;Qx.prototype.getProxyState=Qx.prototype.getProxyState_;Qx.prototype.disconnect=Qx.prototype.JSC$19644_disconnect_;Qx.prototype.getPlayerContextData=Qx.prototype.getPlayerContextData_;Qx.prototype.setPlayerContextData=Qx.prototype.setPlayerContextData_;Qx.prototype.getOtherConnectedRemoteId=Qx.prototype.getOtherConnectedRemoteId_;Qx.prototype.getReconnectTimeout=Qx.prototype.getReconnectTimeout_;
Qx.prototype.getAutoplayMode=Qx.prototype.getAutoplayMode_;Qx.prototype.getAutoplayVideoId=Qx.prototype.getAutoplayVideoId_;Qx.prototype.reconnect=Qx.prototype.JSC$19644_reconnect_;Qx.prototype.sendMessage=Qx.prototype.sendMessageWithUserAction_;Qx.prototype.getXsrfToken=Qx.prototype.JSC$19644_getXsrfToken_;Qx.prototype.isCapabilitySupportedOnConnectedDevices=Qx.prototype.isCapabilitySupportedOnConnectedDevices_;var MDq=function(c){q3.call(this,"ScreenServiceProxy");this.instance_=c;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.n1)(this.JSC$19647_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.n1)(this.onOnlineScreenChange_,this)))};
_.K(MDq,q3);_.r=MDq.prototype;_.r.getScreens=function(c){return this.instance_.$_gs(c)};
_.r.contains=function(c){return!!this.instance_.$_c(c)};
_.r.get=function(c){return this.instance_.$_g(c)};
_.r.start=function(){this.instance_.$_st()};
_.r.add=function(c,f,d){this.instance_.$_a(c,f,d)};
_.r.remove=function(c,f,d){this.instance_.$_r(c,f,d)};
_.r.updateName=function(c,f,d,q){this.instance_.$_un(c,f,d,q)};
_.r.disposeInternal=function(){for(var c=this.subscriptionKeys_.length,f=0;f<c;++f)this.instance_.$_ubk(this.subscriptionKeys_[f]);this.subscriptionKeys_.length=0;this.instance_=null;q3.prototype.disposeInternal.call(this)};
_.r.JSC$19647_onScreenChange_=function(){this.publish("screenChange")};
_.r.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
rX.prototype.$_st=rX.prototype.start;rX.prototype.$_gspc=rX.prototype.JSC$19604_getScreenByPairingCode;rX.prototype.$_gsppc=rX.prototype.JSC$19604_getScreenByPollingPairingCode;rX.prototype.$_c=rX.prototype.contains;rX.prototype.$_g=rX.prototype.get;rX.prototype.$_a=rX.prototype.add;rX.prototype.$_un=rX.prototype.updateName;rX.prototype.$_r=rX.prototype.remove;rX.prototype.$_gs=rX.prototype.getScreens;rX.prototype.$_gos=rX.prototype.JSC$19604_getOnlineScreens;rX.prototype.$_s=rX.prototype.subscribe;
rX.prototype.$_ubk=rX.prototype.unsubscribeByKey;var sQ3=function(c){E0i();if(!oL||!oL.get("yt-remote-disable-remote-module-for-dev")){c=_.hk("MDX_CONFIG")||c;yKG();HXS();Lc||(Lc=new P7(c?c.loungeApiHost:void 0),n0C()&&(Lc.basePath="/api/loungedev"));zL||(zL=_.D5("yt.mdx.remote.deferredProxies_")||[],_.fu("yt.mdx.remote.deferredProxies_",zL));r2C();var f=Jt();if(!f){var d=new rX(Lc,c?c.disableAutomaticScreenCache||!1:!1);_.fu("yt.mdx.remote.screenService_",d);f=Jt();var q={};c&&(q={appId:c.appId,disableDial:c.disableDial,theme:c.theme,loadCastApiSetupScript:c.loadCastApiSetupScript,
disableCastApi:c.disableCastApi,enableDialLoungeToken:c.enableDialLoungeToken,enableCastLoungeToken:c.enableCastLoungeToken,forceMirroring:c.forceMirroring});_.fu("yt.mdx.remote.enableConnectWithInitialState_",c?c.enableConnectWithInitialState||!1:!1);qkJ(d,function(M){M?a6()&&l_D(a6(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){Y7("yt-remote-receiver-availability-change")})},q)}if(c&&!_.D5("yt.mdx.remote.initialized_")){_.fu("yt.mdx.remote.initialized_",!0);
Vx("Initializing: "+(0,_.zo)(c));X3.push(_.gK("yt-remote-cast2-api-ready",function(){Y7("yt-remote-api-ready")}));
X3.push(_.gK("yt-remote-cast2-availability-change",function(){Y7("yt-remote-receiver-availability-change")}));
X3.push(_.gK("yt-remote-cast2-receiver-selected",function(){C9C();Y7("yt-remote-auto-connect","cast-selector-receiver")}));
X3.push(_.gK("yt-remote-cast2-receiver-resumed",function(){Y7("yt-remote-receiver-resumed","cast-selector-receiver")}));
X3.push(_.gK("yt-remote-cast2-session-change",gQr));X3.push(_.gK("yt-remote-connection-change",function(M){M?l_D(a6(),"YouTube TV"):k9H()||(l_D(null,null),gEr())}));
X3.push(_.gK("yt-remote-cast2-session-failed",function(){Y7("yt-remote-connection-failed")}));
q=OmS();c.isAuto&&(q.id+="#dial");var Z=c.capabilities||[];Z.length>0&&(q.capabilities=Z);q.name=c.device;q.app=c.app;(c=c.theme)&&(q.theme=c);Vx(" -- with channel params: "+(0,_.zo)(q));q?(_.iK("yt-remote-session-app",q.app),_.iK("yt-remote-session-name",q.name)):(_.m1("yt-remote-session-app"),_.m1("yt-remote-session-name"));_.fu("yt.mdx.remote.channelParams_",q);f.start();a6()||lbc()}}},imJ=function(){var c=Jt().instance_.$_gos();
var f=B9C();f&&uE()&&(sVD(c,f)||c.push(f));return lmF(c)},T9r=function(){var c=imJ(),f=B9C();
f||(f=k9H());return _.ak(c,function(d){return f&&Uf(f,d.key)?!0:!1})},B9C=function(){var c=a6();
if(!c)return null;var f=Jt().getScreens();return pV(f,c)},gQr=function(c){Vx("remote.onCastSessionChange_: "+saH(c));
if(c){var f=B9C();f&&f.id==c.id?(l_D(f.id,"YouTube TV"),c.idType=="shortLived"&&(c=c.token)&&(f=uE())&&f.setLoungeToken(c)):(f&&meF(),Hmc(c,1))}else uE()&&meF()},meF=function(){O$Q()?Op().stopSession():kg("stopSession called before API ready.");
var c=uE();c&&(c.disconnect(1),A2J(null))},YjD=function(){var c=uE();
return c&&c.getProxyState()!=3?new F3(uE(),void 0):null},Vx=function(c){f6("remote",c)},Jt=function(){if(!FDC){var c=_.D5("yt.mdx.remote.screenService_");
FDC=c?new MDq(c):null}return FDC},a6=function(){return _.D5("yt.mdx.remote.currentScreenId_")},tD3=function(c){_.fu("yt.mdx.remote.currentScreenId_",c)},C9C=function(){_.fu("yt.mdx.remote.connectData_",null)},uE=function(){return _.D5("yt.mdx.remote.connection_")},A2J=function(c){var f=uE();
C9C();c||tD3("");_.fu("yt.mdx.remote.connection_",c);zL&&(_.Iw(zL,function(d){d(c)}),zL.length=0);
f&&!c?Y7("yt-remote-connection-change",!1):!f&&c&&Y7("yt-remote-connection-change",!0)},k9H=function(){var c=TDp();
if(!c)return null;var f=Jt();if(!f)return null;f=f.getScreens();return pV(f,c)},Hmc=function(c,f){tD3(c.id);
c=new Qx(Lc,c,OmS(),_.D5("yt.mdx.remote.enableConnectWithInitialState_")||!1);c.connect(f,_.D5("yt.mdx.remote.connectData_"));c.subscribe("beforeDisconnect",function(d){Y7("yt-remote-before-disconnect",d)});
c.subscribe("beforeDispose",function(){uE()&&A2J(null)});
c.subscribe("browserChannelAuthError",function(){var d=B9C();d&&d.idType=="shortLived"&&(O$Q()?Op().handleBrowserChannelAuthError():kg("refreshLoungeToken called before API ready."))});
A2J(c)},lbc=function(){var c=k9H();
c?(Vx("Resume connection to: "+saH(c)),Hmc(c,0)):(x7(),gEr(),Vx("Skipping connecting because no session screen found."))},Lc=null,zL=null,FDC=null,r2C=function(){var c=OmS();
if(_.zV.isEmpty(c)){c=iXc();var f=_.T7("yt-remote-session-name")||"",d=_.T7("yt-remote-session-app")||"";c={device:"REMOTE_CONTROL",id:c,name:f,app:d,mdxVersion:3};c.authuser=String(_.hk("SESSION_INDEX","0"));(f=_.hk("DELEGATED_SESSION_ID"))&&(c.pageId=String(f));_.fu("yt.mdx.remote.channelParams_",c)}},OmS=function(){return _.D5("yt.mdx.remote.channelParams_")||{}},X3=[];var bmi=new _.hw("yt-menu"),KDp=function(){},nQr=function(c,f,d){c=f=="right-click"?d.rightClickMenuPopupHint:d.menuPopupHint;
if(!(EQ3(f)>10))return f=f||"default",bmi.set(f+"-impression",EQ3(f)+1),c},EQ3=function(c){return parseInt(bmi.get((c||"default")+"-impression")||0,10)};
_.Z2(KDp);var $eF=function(){this.contexts_=new WeakMap;this.JSC$19653_networkService_=this.activeContext_=null},QQH=function(c,f,d){var q=c.contexts_.get(f);
q||(q=new hJ3(c.JSC$19653_networkService_),c.contexts_.set(f,q));c.activeContext_=q;d&&c.activeContext_.reset();c.activeContext_.start();return c.activeContext_};var v6=function(){};
v6.prototype.enqueue=function(){var c=this,f;return _.k(function(d){if(c.isCounterfactual())return(f=c.getCounterfactualData())&&c.shouldLogCounterfactualImpression()&&c.sendImpressionEndpoints(f),d.return();c.doEnqueue();_.Fm(d)})};
v6.prototype.sendImpressionEndpoints=function(c){_.Pw.getInstance().triggerOptionalAction("yt-service-request",{},c[0])};var ht=function(c,f){this.renderer=c;this.page=f};
_.K(ht,v6);ht.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
ht.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
ht.prototype.shouldLogCounterfactualImpression=function(){return!0};
ht.prototype.doEnqueue=function(){var c=_.ry(this.page);c&&c.pause();this.renderer.impressionCommand&&_.Pw.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.hW(_.Pw.getInstance(),[this.renderer.promoCommand],this.page)};var SjF=function(c,f){this.renderer=c;this.resolver=_.c9();this.JSC$19665_enforcementCounter=new _.DxT;f?this.JSC$19665_playerManager=_.ry(f):this.JSC$19665_playerManager=null;_.HS(1,!0)};
_.K(SjF,v6);_.r=SjF.prototype;_.r.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var c=[];this.renderer.impressionEndpoints.forEach(function(f){(f=_.D9(f))&&c.push(f)});
return c}};
_.r.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.r.shouldLogCounterfactualImpression=function(){var c=_.wYN();c?(this.JSC$19665_enforcementCounter.increment("POPUP"),_.HS(3)):_.HS(2);return c};
_.r.cancel=function(){this.resolver.promise.cancel()};
_.r.doEnqueue=function(){var c=this;_.wYN()?(this.JSC$19665_enforcementCounter.increment("POPUP"),_.HS(3),LDD(this)):this.JSC$19665_playerManager?(this.resolver.promise.then(function(){LDD(c)}),zmJ(this.resolver,this.JSC$19665_playerManager)):_.HS(2)};
var zmJ=function(c,f){var d=_.c9();f.getPlayerPromise().then(function(q){d.resolve(q)});
d.promise.then(function(q){q.addEventListener("onAbnormalityDetected",c.resolve);_.QS(c.promise,function(){q.removeEventListener("onAbnormalityDetected",c.resolve)})});
c.promise.thenCatch(function(){d.promise.cancel()})},LDD=function(c){_.HS(3);
var f={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:c.renderer}};f=_.Pw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:f},{});Promise.all(f).then(function(){J2r();c.JSC$19665_playerManager&&c.JSC$19665_playerManager.pause()})},J2r=function(){sSr(function(c,f){_.Buq(c,f);
c===0?_.HS(7):_.HS(4)})};var abc=function(c,f){this.renderer=c;this.page=f;this.resolver=_.c9()};
_.K(abc,v6);_.r=abc.prototype;_.r.cancel=function(){this.resolver.promise.cancel()};
_.r.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.r.isCounterfactual=function(){return!this.renderer.isVisible};
_.r.shouldLogCounterfactualImpression=function(){return!0};
_.r.doEnqueue=function(){var c=this;this.resolver.promise.then(function(){var d={popup:{mealbarPromoRenderer:c.renderer},popupType:"MEALBAR"};_.Pw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:d},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var f=_.ry(this.page);f&&VD3(this.resolver,f)}break;default:this.resolver.resolve()}};
var VD3=function(c,f){var d=_.c9();f.getPlayerPromise().then(function(q){d.resolve(q)});
d.promise.then(function(q){q.addEventListener("onAdEnd",c.resolve);_.QS(c.promise,function(){q.removeEventListener("onAdEnd",c.resolve)})});
c.promise.thenCatch(function(){d.promise.cancel()})};var XPH=function(c,f){this.renderer=c;this.page=f};
_.K(XPH,v6);_.r=XPH.prototype;_.r.cancel=function(){this.JSC$19673_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19673_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19673_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.r.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.r.isCounterfactual=function(){return!this.renderer.isVisible};
_.r.shouldLogCounterfactualImpression=function(){return!0};
_.r.doEnqueue=function(){var c=this,f,d;((f=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(d=f.playbackUpsellDialogTriggerConditionData)==null?void 0:d.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19673_downloadedVideosCountSelectorUnsubscriber=_.bj(_.Gh(),CVD,function(q,Z){q>Z&&(uTH(c),c.cancel())}):uTH(this)};
var uTH=function(c){var f={popup:{upsellDialogRenderer:c.renderer},popupType:"MODAL"};_.Pw.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:f},{});(c=_.ry(c.page))&&c.pause()};var wC={},vQG=(wC.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",wC.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",wC.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",wC.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",wC.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",wC.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",wC.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",wC),hmc=function(c,f){this.renderer=c;this.targetManager=
f};
_.K(hmc,v6);_.r=hmc.prototype;_.r.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19680_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19680_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19680_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.r.getCounterfactualData=function(){if(this.isCounterfactual()){var c;return(c=this.renderer.promoConfig)==null?void 0:c.impressionEndpoints}};
_.r.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.r.shouldLogCounterfactualImpression=function(){return!0};
_.r.doEnqueue=function(){var c=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19680_downloadedVideosCountSelectorUnsubscriber=_.bj(_.Gh(),CVD,function(f,d){c.renderer.targetId&&f>d&&(j9G(c.targetManager,c.renderer.targetId,wPp(c)),c.cancel())});
break;default:j9G(this.targetManager,this.renderer.targetId,wPp(this))}};
var wPp=function(c){var f;if((f=c.renderer.suggestedPosition)==null?0:f.type)var d=vQG[c.renderer.suggestedPosition.type];d||(d="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:c.renderer},popupType:"HINT",position:d}}};var y2C=function(){this.previousPage=null},WDG;
y2C.prototype.registerPromoCommand=function(c,f){DeC(this,void 0,void 0,_.b(c.roadblock,qaF),void 0,void 0,f)};
var DeC=function(c,f,d,q,Z,M,g){c.previousPage!==g&&c.pendingTooltipPromo&&c.pendingTooltipPromo.cancel();c.previousPage=g;Z?(c.pendingEnforcementPromo&&c.pendingEnforcementPromo.cancel(),c.pendingEnforcementPromo=new SjF(Z,g),c.pendingEnforcementPromo.enqueue()):M?(c.pendingCommandWrapperPromo=new ht(M,g),c.pendingCommandWrapperPromo.enqueue()):q?(c.pendingRoadblockPromo&&c.pendingRoadblockPromo.cancel(),c.pendingRoadblockPromo=new XPH(q,g),c.pendingRoadblockPromo.enqueue()):f?(c.pendingMealbarPromo&&
c.pendingMealbarPromo.cancel(),c.pendingMealbarPromo=new abc(f,g),c.pendingMealbarPromo.enqueue()):d&&(c.pendingTooltipPromo&&c.pendingTooltipPromo.cancel(),c.pendingTooltipPromo=new hmc(d,_.Qd()),c.pendingTooltipPromo.enqueue())},emc=function(){WDG||(WDG=new y2C);
return WDG};var mhr=!1;var qRJ=function(c,f){var d=_.hk("SESSION_INDEX");this.actionToken_=c;this.commonToken_=f;this.sessionIndex_=d},jeC=function(c){var f=_.c9(),d=_.D5("payments.business.integration.bootstrap"),q=_.D5("payments.business.integration"),Z=q.Style.create().withMaterialDesignStyle(),M=q.mashupMode.popup("instrument-manager");
d.asMashupMode(M).usingUserIndex(c.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Z).inStandaloneContext(q.standaloneContextAuthId.forUserId()).instrumentManager(c.actionToken_,c.commonToken_.length>0?c.commonToken_:void 0,function(g){var O=g.instrumentId;O?f.resolve(O):(O=_.D5("payments.business.integration.scenario.InstrumentManager"),f.reject(g.errorCode&&g.errorCode===O.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(g){_.yJ(g);
f.reject("instrumentManagerLoadError")});
return f.promise};var H3=function(c,f,d){this.payloadName="transactionFlowFailed";this.payload={errorType:c,serializedTransactionFlowLoggingParams:f,isUserDismiss:d===void 0?!1:d}};
_.fu("yt.ypc.shared.YpcTransactionFlowError",H3);var yx=function(){return _.Fj.apply(this,arguments)||this};
_.K(yx,_.Fj);yx.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
yx.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
yx.prototype.onErrorMessageDismiss=yx.prototype.onErrorMessageDismiss;_.y([_.L({readOnly:!0,observer:"errorRendererChanged"}),_.D("design:type",Object)],yx.prototype,"errorRenderer",void 0);_.y([_.Ta("yt-live-chat-error-message-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yx.prototype,"onErrorMessageDismiss",null);_.y([_.tY()],yx);var N9G=[yx.prototype];var Ib3;var P9F;var Rmq=new _.hw("yt-live-chat"),Ueq=new Map;Ueq.set("timestamp_toggle","show-timestamps");Ueq.set("reactions_toggle","allow-reactions");var W6=function(){return _.z.apply(this,arguments)||this};
_.K(W6,_.z);_.r=W6.prototype;_.r.menuItemIdentifierChanged=function(){var c;(c=this.data)!=null&&c.menuItemIdentifier&&(c=Ueq.get(this.data.menuItemIdentifier))&&(_.F("enable_lwe_web_mute")?(c=Rmq.get(c),this.isToggled=!(c===void 0?!this.data.isToggled:!c)):this.isToggled=Rmq.get(c))};
_.r.onFocus=function(){this.toggleButton.focus()};
_.r.onTap=function(){var c=this.data.command;c&&this.componentBehavior.resolveCommand(c)};
_.r.computeText=function(c,f,d){return this.componentBehavior.getSimpleString(c?d:f)};
_.r.computeIcon=function(c,f,d){return(c=c?d:f)&&c.iconType?_.Tu(c.iconType):""};
W6.prototype.onTap=W6.prototype.onTap;W6.prototype.onFocus=W6.prototype.onFocus;W6.prototype.menuItemIdentifierChanged=W6.prototype.menuItemIdentifierChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],W6.prototype,"componentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],W6.prototype,"data",void 0);
_.y([_.L({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.D("design:type",String)],W6.prototype,"icon",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],W6.prototype,"isToggled",void 0);_.y([_.AY("tp-yt-paper-toggle-button"),_.D("design:type",Object)],W6.prototype,"toggleButton",void 0);_.y([_.m5("data.menuItemIdentifier"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],W6.prototype,"menuItemIdentifierChanged",null);
_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],W6.prototype,"onFocus",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],W6.prototype,"onTap",null);_.y([_.vj({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],W6);
_.h(W6,"yt-live-chat-toggle-renderer",function(){if(P9F===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;Ib3===void 0&&(Ib3=document.createElement("template"));var q=Ib3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);P9F=c}c=P9F;return c},{mode:_.F("live_chat_enable_sink_wrapper")?2:0});var pPq=new _.jk("NAVIGATION_PROGRESS_TOKEN");var xeJ={},oQS={},G9r=(oQS[IVr.name]=!0,oQS),DE=function(){var c=_.Fj.apply(this,arguments)||this;c._noAccessors=!0;c.tabGesturesIsActive=!1;c.actionRouterIsRoot=!0;c.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"};c.pageTitle="";c.titleSuffix="YouTube";c.unseenNotificationCount=
0;c.hasNavigated=!1;c.hasSetScrollTopForNavigation=!1;c.pagePreparer=null;c.zwiebackInitJobId=0;c.dataUpdatePromise=null;c.loadDepsPromise=_.sX();c.hasPendingNavigation=!1;c.pendingPlayerOnResponseReceivedActions=[];return c};
_.K(DE,_.Fj);DE.prototype.attached=function(){c6D(this);document.addEventListener("yt-navigate-cache",_.ia(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var c=e2();c.init();c.dispatchElement=this.hostElement};
var c6D=function(c,f){f=f===void 0?0:f;var d=_.ql().resolve(_.dx(_.$H));if(d)f3r(c,d);else{if(f>=5)throw Error("Yk");setTimeout(function(){c6D(c,f+1)},0)}},f3r=function(c,f){f.addEventListener("yt-navigate-start",_.ia(c,c.onYtNavigateStart));
f.addEventListener("yt-navigate-finish",_.ia(c,c.onYtNavigateFinish));f.addEventListener("yt-navigate-error",_.ia(c,c.onYtNavigateError));f.addEventListener("yt-page-data-fetched",_.ia(c,c.onYtPageDataFetched))};
_.r=DE.prototype;_.r.detached=function(){var c=_.ql().resolve(_.$H);c.removeEventListener("yt-navigate-start",_.ia(this,this.onYtNavigateStart));c.removeEventListener("yt-navigate-finish",_.ia(this,this.onYtNavigateFinish));c.removeEventListener("yt-navigate-error",_.ia(this,this.onYtNavigateError));c.removeEventListener("yt-page-data-fetched",_.ia(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.ia(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.r.setPageOffset=function(c,f){c?_.gS(this.hostElement,"yt-set-page-offset",[c,f]):_.VO(Error("Zk"))};
_.r.setPageOffsetForNavigation=function(c,f){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(c,f))};
_.r.onYtNavigateSetPageOffset=function(c,f){this.setPageOffsetForNavigation(f.page,f.offset)};
_.r.getPageOffset=function(){var c=_.r1(this.hostElement).querySelector("#page-manager").getCurrentPage(),f=0;c&&(f=_.gS(this.hostElement,"yt-get-page-offset",[c])[0]);return f};
_.r.onYtHistoryPop=function(c,f){if(_.wi("DISABLE_WARM_LOADS"))c.preventDefault(),window.location.reload();else{var d=_.ql().resolve(_.$H);d.hasPendingNavigation()&&c.preventDefault();d.cancelPendingNavigation();_.kt(this.hostElement,"yt-pending-navigation-cancelled");f.errorMsg&&(c=f.errorMsg.split(" - "),f=Error(c[0]),c.length==2&&c[1]&&(_.wK(f,c[1]),_.u6(f)),window.location.reload())}};
_.r.onYtHistoryLoad=function(c,f){var d=this;if(_.wi("DISABLE_WARM_LOADS"))window.location.reload();else{(c=f.endpoint)&&Object.keys(c).length||(c=null);var q=f.historyEntry,Z=_.ql().resolve(_.$H),M=_.ql().resolve(_.MY),g=null;q&&q.rootData&&(g=q.rootData);var O=g&&dPC(g);!g||O||g.filler?c?(Z.navigate(c,!0),jgi(this,c)):(f.legacyBorder||O||(f.JSC$29948_savedComponentState==null&&g==null?_.u6(new _.KD("Incomplete history entry",f.forward)):_.XX(new _.KD("Malformed history entry",f.JSC$29948_savedComponentState,
f.forward,g))),window.location.reload()):(_.qUe({isHot:!0}),_.JQ({webInfo:{navigationReason:"h"}}),_.nAe(),_.V_("srt"),_.V_("pdc"),this.cancelPendingTasks(),qw3(this,f.forward,g),g.player&&(g.player.loaded=!1),jgi(this,c),_.Aa_(Z,c||{},g,2,{},!1,f).then(function(){d.setPageOffset(M.getCurrentPage(),q.scrollTop||0)}))}};
_.r.initHistoryManager=function(c){if(!this.hasNavigated){this.hasNavigated=!0;var f=_.r1(this.hostElement).querySelector("#page-manager").getCurrentData();c=isNaN(c)?this.getPageOffset():c;var d=_.ql().resolve(_.$H).currentEndpoint;this.replaceState(d,f,c)}};
_.r.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.r.onYtNavigateStart=function(c,f){this.cancelPendingTasks();f.noProgressBar||(c=_.ql().resolve(_.dx(pPq)))&&c.start();c=this.hasPendingNavigation?null:this.data;var d=_.ql().resolve(_.MY),q,Z,M;_.F("kevlar_use_vimio_behavior")&&!((q=f.endpoint)==null?0:(Z=q.commandMetadata)==null?0:(M=Z.webCommandMetadata)==null?0:M.ignoreNavigation)&&(q=d.getCurrentPage())&&q.disconnectVisibilityRoot();d.prepareForNavigation(f.pageType,f.endpoint);_.F("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Z$(1,
"pcl"),_.Mj(this.pagePreparer,d.preparePage.bind(d,f.pageType,f.endpoint)));q=this.getPageOffset();this.initHistoryManager(q);f.reload||this.hasPendingNavigation?this.replaceState(f.endpoint,c,q):(c==null?void 0:c.page)==="watch"&&f.pageType==="watch"&&_.F("kevlar_replace_watch_to_watch_history_state")?this.replaceState(f.endpoint,c,q):(c==null?void 0:c.page)!=="shorts"||f.pageType!=="shorts"||f.endpoint.reelWatchEndpoint.sequenceParams||_.F("short_to_short_back_nav_killswitch")?f.type!="navigate-back"&&
f.type!="navigate-forward"&&(f.pageType==="shorts"&&_.CZ(this.hostElement,"yt-shorts-reset"),this.saveAndPush(f.url,f.endpoint,c,q)):(_.F("web_enable_delay_shorts_sequence_call")&&(f.endpoint.reelWatchEndpoint.sequenceParams=c==null?void 0:c.cachedSequenceParams,f.endpoint.reelWatchEndpoint.sequenceProvider=c==null?void 0:c.cachedSequenceProvider),this.replaceState(f.endpoint,c,0));this.hasPendingNavigation=!0};
var ZdJ=function(c){c.hasPendingNavigation=!1;(c=_.ql().resolve(_.dx(pPq)))&&c.finish()};
DE.prototype.onYtNavigateError=function(c,f){ZdJ(this);c=this.get("endpoint.commandMetadata.webCommandMetadata.url",f);var d=_.Rw(window.location.href);c&&!d.pbjreload&&(f=f.navigationErrorReason||"10",_.F("kevlar_parent_on_pbjreload")&&(d={csn:_.X2()},this.get("data.endpoint.clickTrackingParams")&&(d.itct=this.data.endpoint.clickTrackingParams),_.cO(c,d)),_.IV(_.U6(c,{pbjreload:f})))};
DE.prototype.onYtNavigateCache=function(c,f){var d=this,q=f.url,Z=f.endpoint,M=f.data;c=!!f.miniplayer;f=!!f.skipHistory;if(q&&Z&&M){var g=this.getPageOffset(),O=this.data||null;f||this.saveAndPush(q,Z,O,g);q=_.Aa_(_.ql().resolve(_.$H),Z,M,c?4:3,{},c);c&&q.then(function(){d.dataUpdatePromise&&d.dataUpdatePromise.then(function(){var l=_.ql().resolve(_.MY);d.setPageOffset(l.getCurrentPage(),0)})})}};
DE.prototype.onYtNavigateFinish=function(c,f){var d=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){MXc(d,f.fromHistory)})};
var MXc=function(c,f){ZdJ(c);if(c.pendingPlayerOnResponseReceivedActions){for(var d=_.C(c.pendingPlayerOnResponseReceivedActions),q=d.next();!q.done;q=d.next())_.Ae(q.value,c.hostElement);c.pendingPlayerOnResponseReceivedActions=[]}d=_.ql().resolve(_.MY);f||!c.hasNavigated||_.F("web_disable_scroll_on_navigate_finish")||((f=d.getCurrentPage())?f.is==="ytd-shorts"||c.tabGesturesIsActive||c.setPageOffsetForNavigation(f,0):_.u6(Error("$k")));_.Nh(function(){_.Nh(function(){_.V_("pda")})})};
DE.prototype.onYtNavigate=function(c){if(!c.detail.endpoint){var f=new _.KD("Error: Missing yt-navigate endpoint from target:",c.target,c.target.nodeName);_.VO(f)}if(f=_.F("cold_missing_history"))f=e2(),f.init(!1),f=!(f.browserHistory.boundHistoryReplaceState&&f.browserHistory.boundHistoryPushState);if(f){_.Xr("DISABLE_WARM_LOADS",!0);f=new _.KD("Failed to initialize history manager",this.getDebugString());var d=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
d?_.u6(f):_.VO(f)}f=c.detail.endpoint;var q,Z;_.F("debug_forward_web_query_parameters")&&((q=f.commandMetadata)==null?0:(Z=q.webCommandMetadata)==null?0:Z.url)&&(f=JSON.parse(JSON.stringify(f)),f.commandMetadata.webCommandMetadata.url=_.WnC(f.commandMetadata.webCommandMetadata.url,window.location.search));c={type:0,command:f,form:{params:c.detail.params,tempData:c.detail.tempData||{},requestType:c.detail.type,createScreenConfig:c.detail.createScreenConfig,reload:c.detail.reload?c.detail.reload:!1,
requestForm:c.detail}};_.F("kevlar_yt_navigate_command_handler")?(q=_.ql().resolve(_.ZM),c.form.skipDefaultElement=!0,q.resolveCommand(f,{form:c.form})):this.handleNavigate(c)};
DE.prototype.handleNavigate=function(c){this.hasSetScrollTopForNavigation=!1;var f=_.ql().resolve(_.$H),d=c.form||{};f.navigate(c.command,d.reload,d.params,d.tempData,d.requestType,d.createScreenConfig,d.ignoreConfirmation,d.requestForm)&&jgi(this,c.command,d.tempData)};
DE.prototype.onYtPageDataFetched=function(c,f){try{_.ZMF().reset();this.data=f.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.ql().resolve(_.MY).updatePageData(this.data);if(!_.F("web_service_params_response_processor")){var d=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);d&&FnD(d);var q=this.get("response.responseContext.serviceTrackingParams",
this.data);q&&FnD(q)}var Z=this.get("playerResponse.onResponseReceivedActions",this.data);Z&&(Z=r6r(this,Z));Z&&_.ll(this.hostElement,Z,this.hostElement);var M=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),g=this.get("response.responseContext.consistencyTokenJar",this.data);if(M||g){var O=_.KD4(),l=(0,_.zV.getValues)(O.tokenJars);M&&O.replace(l,M);g&&O.replace(l,g)}}catch(m){_.VO(m)}};
var jgi=function(c,f,d){try{c.onYtEndpointChangeHandler(f,d)}catch(q){_.VO(q)}};
_.r=DE.prototype;_.r.onYtEndpointChangeHandler=function(){};
_.r.setPageTitle=function(c){c=(this.pageTitle=c)?c+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+c};
_.r.onYtUpdateTitle=function(c,f){this.setPageTitle(f)};
_.r.setUnseenNotificationCount=function(c){this.unseenNotificationCount=c;this.setPageTitle(this.pageTitle)};
_.r.handleUpdateNotificationsUnseenCountAction=function(c){_.b(c,$2H)&&((c=_.b(c,$2H).unseenCount)?this.setUnseenNotificationCount(c):this.setUnseenNotificationCount(0))};
_.r.handleClearCookieAction=function(c){var f;(c=(f=_.b(c,btc))==null?void 0:f.cookieName)&&_.rEh(c)};
_.r.onYtUpdateUnseenNotificationCount=function(c,f){this.setUnseenNotificationCount(f)};
_.r.loadData=function(c){var f=this;this.loadDepsPromise.then(function(){var d=_.ql().resolve(_.dx(_.$H));d||_.VO(Error("al"));if(c&&c.response){if(!c.endpoint){var q=_.NT(window.document.location.href)||"/",Z="";if(q==="/"||q.startsWith("/?"))Z="WEB_PAGE_TYPE_BROWSE";c.endpoint={commandMetadata:{webCommandMetadata:{url:q,webPageType:Z,rootVe:3854}}}}_.Aa_(d,c.endpoint,c,5,{})}else c.endpoint?d.navigate(c.endpoint):d.navigate(_.tu);_.a7.cancelJob(f.zwiebackInitJobId);f.zwiebackInitJobId=_.a7.addLowPriorityJob(H$i)})};
var e2=function(){return _.ql().resolve(_.HP)};
DE.prototype.getDebugString=function(){return e2().getDebugString()};
DE.prototype.getThirdPartyManipulationSuspected=function(){return e2().getThirdPartyManipulationSuspected()};
DE.prototype.replaceState=function(c,f,d){e2().saveAndReplace(c,f,d)};
DE.prototype.saveAndPush=function(c,f,d,q){e2().saveAndPush(c,f,d,q)};
var dPC=function(c){return _.b(c.endpoint,_.pe)||_.b(c.endpoint,_.EO)?!0:!c||isNaN(c.expirationTime)?!1:(0,_.qR)()>c.expirationTime},qw3=function(c,f,d){var q=c.get("response.trackingParams",d),Z=_.V5(),M=_.X2();
if(q&&Z&&M&&(q=c.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",d),!q&&d.rootVe&&(q=d.rootVe),Z=f?"forwardButton":"backButton",f=c.get("playerResponse.topbar.desktopTopbarRenderer."+Z+".buttonRenderer.command.clickTrackingParams",c.data),c=c.get("response.topbar.desktopTopbarRenderer."+Z+".buttonRenderer.command.clickTrackingParams",c.data),f=(c=f||c)?_.Q1(c):void 0,c=_.bP(),Z=[_.sX(d)],_.s8(c,q,f,{dataPromises:Z,csnToClone:d.csn}),d.graftedVes))for(d=
_.C(d.graftedVes),q=d.next();!q.done;q=d.next())_.B_(c,q.value)};
DE.prototype.onStoreGraftedVeAction=function(c){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(c)):_.u6(Error("bl"))};
var r6r=function(c,f){return f.filter(function(d){for(var q in d)if(G9r[q])return c.pendingPlayerOnResponseReceivedActions.push(d),!0;return!1})};
_.ci.Object.defineProperties(DE.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
DE.prototype.onStoreGraftedVeAction=DE.prototype.onStoreGraftedVeAction;DE.prototype.loadData=DE.prototype.loadData;DE.prototype.onYtUpdateUnseenNotificationCount=DE.prototype.onYtUpdateUnseenNotificationCount;DE.prototype.handleClearCookieAction=DE.prototype.handleClearCookieAction;DE.prototype.handleUpdateNotificationsUnseenCountAction=DE.prototype.handleUpdateNotificationsUnseenCountAction;DE.prototype.setUnseenNotificationCount=DE.prototype.setUnseenNotificationCount;
DE.prototype.onYtUpdateTitle=DE.prototype.onYtUpdateTitle;DE.prototype.setPageTitle=DE.prototype.setPageTitle;DE.prototype.onYtEndpointChangeHandler=DE.prototype.onYtEndpointChangeHandler;DE.prototype.onYtPageDataFetched=DE.prototype.onYtPageDataFetched;DE.prototype.handleNavigate=DE.prototype.handleNavigate;DE.prototype.onYtNavigate=DE.prototype.onYtNavigate;DE.prototype.onYtNavigateFinish=DE.prototype.onYtNavigateFinish;DE.prototype.onYtNavigateCache=DE.prototype.onYtNavigateCache;
DE.prototype.onYtNavigateError=DE.prototype.onYtNavigateError;DE.prototype.onYtNavigateStart=DE.prototype.onYtNavigateStart;DE.prototype.cancelPendingTasks=DE.prototype.cancelPendingTasks;DE.prototype.initHistoryManager=DE.prototype.initHistoryManager;DE.prototype.onYtHistoryLoad=DE.prototype.onYtHistoryLoad;DE.prototype.onYtHistoryPop=DE.prototype.onYtHistoryPop;DE.prototype.onYtNavigateSetPageOffset=DE.prototype.onYtNavigateSetPageOffset;DE.prototype.setPageOffset=DE.prototype.setPageOffset;
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],DE.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],DE.prototype,"data",void 0);_.y([_.Ta("yt-navigate-set-page-offset"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],DE.prototype,"onYtNavigateSetPageOffset",null);
_.y([_.Ta("yt-history-pop"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],DE.prototype,"onYtHistoryPop",null);_.y([_.Ta("yt-history-load"),_.D("design:type",Function),_.D("design:paramtypes",[Event,_.wE_]),_.D("design:returntype")],DE.prototype,"onYtHistoryLoad",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],DE.prototype,"onYtNavigate",null);
_.y([_.Ta("yt-update-title"),_.D("design:type",Function),_.D("design:paramtypes",[Event,String]),_.D("design:returntype")],DE.prototype,"onYtUpdateTitle",null);_.y([_.Ta("yt-update-unseen-notification-count"),_.D("design:type",Function),_.D("design:paramtypes",[Event,Number]),_.D("design:returntype")],DE.prototype,"onYtUpdateUnseenNotificationCount",null);_.y([_.tY()],DE);xeJ.YtdAppBehavior=[_.Cy.YtActionHandlerBehavior,DE.prototype];var Nt=function(){var c=_.Fj.apply(this,arguments)||this;c._noAccessors=!0;return c};
_.K(Nt,_.Fj);Nt.prototype.ready=function(){var c=this;_.r1(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){c.onChange_()})};
Nt.prototype.dataChanged_=function(){_.r1(this.hostElement).querySelector("#checkbox").checked=!1};
Nt.prototype.onChange_=function(){var c=_.r1(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.CZ(this.hostElement,"yt-dismissal-reason-"+c,this.data.feedbackToken)};
Nt.prototype.dataChanged_=Nt.prototype.dataChanged_;_.y([_.L(),_.D("design:type",Object)],Nt.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Nt.prototype,"dataChanged_",null);_.y([_.tY()],Nt);var Cci=[Nt.prototype];var I6=function(){var c=_.Fj.apply(this,arguments)||this;c.timeoutJobId=0;c.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return c};
_.K(I6,_.Fj);I6.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
I6.prototype.startTimeout=function(){var c=this,f=this.data&&this.data.displayDurationSeconds;f&&!this.timeoutJobId&&(this.timeoutJobId=_.Em(_.a7,function(){_.gS(c.hostElement,"yt-close-popup-action",[c.is]);c.timeoutJobId=0},f*1E3))};
I6.prototype.cancelTimeout=function(){_.a7.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
I6.prototype.ytdHatsSurveyBehaviorDataChanged=I6.prototype.ytdHatsSurveyBehaviorDataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],I6.prototype,"ytActionHandlerBehavior",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],I6.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.y([_.tY()],I6);var gei=[_.Cy.YtActionHandlerBehavior,I6.prototype];var knJ=function(c,f){var d;return((d=c.prefixMapping)==null?0:d[f])?c.prefixMapping[f]:c.SHARED_RENDERERS_.hasOwnProperty(f)?"yt":c.prefix},P6={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}};P6.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"}};
P6.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};P6.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};P6.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
P6.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)"}};
P6.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};
P6.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};
P6.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};
P6.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};P6.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"}};
P6.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};P6.TOAST={component:null,properties:{}};var Odp=new function(c,f,d){this.supportedPopups=c;this.navigationEndpointPopupMap=f;this.popupTypeMap=d;this.supportedPopups=c;this.navigationEndpointPopupMap=f;this.popupTypeMap=d}({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"}),l3S=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$19730_popupConfig=P6;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 sgr=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.u2.getInstance()},R6=function(c,f){var d=c.pageNameToElement.get(f);
if(!d){switch(f){case "watch":var q=_.F("web_watch_force_learning_journey_for_testing")?_.qj("ytd-watch-learning-journey"):_.F("kevlar_watch_fixie")?_.qj("ytd-watch-fixie"):_.F("kevlar_watch_grid")?_.qj("ytd-watch-grid"):_.qj("ytd-watch-flexy");break;case "learning_journey_watch":q=_.qj("ytd-watch-learning-journey");break;case "shorts":q=_.qj("ytd-shorts");break;case "search":q=_.qj("ytd-search");break;case "channel":q=_.qj("ytd-browse");q.pageSubtype="channels";break;case "trending":q=_.qj("ytd-browse");
q.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":q=
_.qj("ytd-browse");q.pageSubtype=f;break;case "browse":q=_.qj("ytd-browse");break;default:_.u6(new _.KD("Error getting page element for type",f))}d=q;c.pageNameToElement.set(f,d)}return d};
sgr.prototype.preparePage=function(c,f,d){d&&(c=_.Y0(d)||c);if(c!=="watch"&&c!=="learning_journey_watch"){var q=this.elementPoolPopulator,Z=c;Z!=q.targetPage_&&q.pendingPages_.indexOf(Z)>-1&&(q.targetPage_&&(q.pendingPages_.unshift(q.targetPage_),q.abort()),M4c(q,Z),_.XFj(q,Z))}if((q=R6(this,c))||!_.b(d,_.Ib)){q.isAttached||q===f||(q.hidden=!0);if(!q.data&&(c!=="watch"&&c!=="learning_journey_watch"||!_.F("swatcheroo_page_pool_dont_provide_filler_data"))){var M;if(c=(M=_.hk("FILLER_DATA",{})[c])==
null?void 0:M.response)q.data=c}return q}};var BYQ=function(c){this.JSC$31842_clientRoot=c;this.playlistHandlerActionMap={"yt-add-to-playlist-command":$hi,"yt-end-playlist-command":QaC,"yt-recover-playlist-command":L5c,"yt-refresh-playlist-command":a_q,"yt-playlist-remove-videos-action":zB3};_.Rb(_.Pw.getInstance(),this.playlistHandlerActionMap,this.JSC$31842_clientRoot);TBC()},id3;var UL=function(c,f,d){this.apiKey=c;this.endpoint=f;this.confidenceThreshold=d===void 0?.5:d;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=f==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||f==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
f==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||f==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new AR3};
_.r=UL.prototype;
_.r.start=function(c){if(this.state===0)if(this.isOnline()){c.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=c.supportsHttpHeadersOverwriteParam);c.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=c.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.ac("voice_assistant");_.Xt("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=c.languageCode||"en-US";this.supportsCrossDomainXhr=c.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=c.youtubeAssistantRequest||null;this.listeningHandler=c.listeningHandler||this.listeningHandler;this.audioDetectedHandler=c.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=c.stopHandler||this.stopHandler;this.completeHandler=c.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=c.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=c.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
c.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=c.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=c.accessToken;this.additionalHeaders=c.additionalHeaders||{};var f;this.prefetchResponseTimeoutMs=(f=c.prefetchResponseTimeoutMs)!=null?f:this.prefetchResponseTimeoutMs;TYH(this);this.startAudio();mPS(this)}else this.errorHandler("OFFLINE")};
_.r.stop=function(c){var f=c===void 0?{}:c;c=f.logCancel===void 0?!0:f.logCancel;var d=f.logMicClosed===void 0?!0:f.logMicClosed;var q=f.handleError===void 0?!0:f.handleError;f=f.handleStop===void 0?!0:f.handleStop;this.state!==0&&(c&&pc("voz_cx"),x8(this,{logMicClosed:d,handleStop:f}),q&&this.errorHandler("ABORTED"))};
_.r.getState=function(){return this.state};
_.r.isSupported=function(){return!0};
_.r.stopAudio=function(c){(c===void 0||c)&&pc("voz_mf")};
_.r.startAudio=function(){pc("voz_vp");return _.sX(null)};
var HdC=function(c,f){c.channelOpen&&(c.state!==2&&(c.state=2,pc("voz_ss"),c.listeningHandler()),f=new Uint8Array(f),f='{ "audioIn": "'+_.$S(f)+'" }',c.channel.send(f))},x8=function(c,f){var d=f===void 0?{}:f;
f=d.logMicClosed===void 0?!0:d.logMicClosed;d=d.handleStop===void 0?!0:d.handleStop;c.vozEndOfDataTimeout>-1&&(clearTimeout(c.vozEndOfDataTimeout),c.vozEndOfDataTimeout=-1);A6q(c);c.stopAudio(f);c.channel&&(c.channelOpen=!1,c.manuallyClosedChannel=!0,c.channel.close(),c.channel=void 0);c.transcribedSpeechResults=[];c.state=0;d&&c.stopHandler()},TYH=function(c){var f={httpHeadersOverwriteParam:c.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},c.additionalHeaders,c.accessToken&&c.isUsingVoz?{Authorization:"Bearer "+c.accessToken}:{"x-goog-api-key":c.apiKey}),supportsCrossDomainXhr:c.supportsCrossDomainXhr};c.channel=new p7(c.endpoint,f);c.channel.open();_.Lx(c.channel,"w",function(){var d=c.channel,q=d.send,Z=c.isUsingVoz?"PLACEHOLDER":"example";Z={config:{dialogStateIn:{languageCode:c.languageCode},deviceConfig:{deviceId:Z,deviceModelId:Z},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!c.isUsingVoz)Z.config.requestType=4;else if(c.isUsingVoz&&c.youtubeAssistantRequest){var M=JSON.stringify(c.youtubeAssistantRequest);Z.config.internalIn={youtubeAssistantS3InputJson:M}}q.call(d,Z);c.channelOpen=!0;c.manuallyClosedChannel=!1});
_.Lx(c.channel,"x",function(){c.manuallyClosedChannel||(c.channelOpen=!1,c.channel=void 0,x8(c))});
_.Lx(c.channel,"z",function(d){if(d.data){A6q(c);for(var q=0;q<d.data.length;q++){var Z=c,M=d.data[q],g=M.speechResults;if(g)a:{var O=[];M=[];var l=!1;g=_.C(g);for(var m=g.next();!m.done;m=g.next()){m=m.value;if(m.noSpeech){x8(Z);Z.errorHandler("NO_SPEECH");break a}m.transcript!==void 0&&m.stability!==void 0&&(m.stability<Z.confidenceThreshold&&(l=!0),l?M.push(m.transcript):O.push(m.transcript))}if(O.length!==0||M.length!==0)O=O.join(" "),M=M.join(" "),Z.receivedEndOfUtterance&&!Z.isUsingVoz?Z.isUsingVoz||
Z.completeHandler([O,M]):(l=Z,g=O,m=M,pc("voz_sf"),l.transcriptionUpdateHandler(g,m),l.transcribedSpeechResults=[g,m]),Z.receivedEndOfUtterance&&(pc("voz_eou"),Z.transcriptionCompleteHandler([O,M]),Z.isUsingVoz&&(Z.prefetchResponseTimeoutMs===0?x8(Z,{logMicClosed:!1,handleStop:!0}):Z.prefetchResponseTimeoutMs>0&&YwQ(Z)))}else Z.isUsingVoz&&(M==null?0:M.internalOut)?(M=JSON.parse(M.internalOut.youtubeAssistantS3OutputJson),M.userHasOptedInToVaa||M.vaaConsent?Z.vaaConsentUpdateHandler(!!M.userHasOptedInToVaa,
!!M.vaaConsent):(FUq(Z),M&&(O=Z.transcribedSpeechResults,pc("voz_rqf"),Z.completeHandler(O,M)))):M.eventType==="END_OF_UTTERANCE"?Z.receivedEndOfUtterance=!0:(pc("voz_err"),Z.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.u6(Error("cl")))}}});
_.Lx(c.channel,"y",function(d){x8(c);switch(d.status){case 1:d="WEBCHANNEL_NETWORK_ERROR";break;case 2:d="WEBCHANNEL_SERVER_ERROR";break;default:d="WEBCHANNEL_UNKNOWN_ERROR"}c.errorHandler(d);c.logError(Error(d))})};
UL.prototype.logError=function(c){_.VO(c)};
UL.prototype.isOnline=function(){return!0};
var YwQ=function(c){FUq(c);c.prefetchResponseSetTimeoutId=setTimeout(function(){x8(c,{logMicClosed:!1,handleStop:!0})},c.prefetchResponseTimeoutMs)},FUq=function(c){c.prefetchResponseSetTimeoutId>-1&&(clearTimeout(c.prefetchResponseSetTimeoutId),c.prefetchResponseSetTimeoutId=-1)},mPS=function(c){A6q(c);
c.noResponseReceivedTimeout=window.setTimeout(function(){x8(c);c.errorHandler("NO_SPEECH")},11E3)},A6q=function(c){c.noResponseReceivedTimeout>-1&&(window.clearTimeout(c.noResponseReceivedTimeout),c.noResponseReceivedTimeout=-1)},pc=function(c){_.V_(c,void 0,"voice_assistant")};var o6=function(){UL.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.K(o6,UL);o6.prototype.isSupported=function(){return VBq()};
o6.prototype.startAudio=function(){var c=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Je(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(q){tXF(c,q)};
this.processor.connect(this.audioContext.destination);var f=function(q){c.stream=q;if(!c.audioContext)return _.sX(null);q=c.audioContext.createMediaStreamSource(q);c.processor&&q.connect(c.processor);return _.sX(null)},d={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?f(this.stream):(d=navigator.mediaDevices.getUserMedia(d))?d.then(f).catch(function(q){x8(c);q.name&&q.name==="NotAllowedError"?c.errorHandler("NO_MICROPHONE_PERMISSION"):(c.errorHandler("AUDIO_ERROR"),c.logError(q));return _.Je(null)}):(x8(this),this.errorHandler("AUDIO_ERROR"),_.u6(Error("dl")));
return UL.prototype.startAudio.call(this)};
o6.prototype.stopAudio=function(c){c=c===void 0?!0:c;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(f){f.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;UL.prototype.stopAudio.call(this,c)};
o6.prototype.isOnline=function(){return navigator.onLine};
var tXF=function(c,f){if(c.audioContext)if(window.OfflineAudioContext){var d=c.audioContext.sampleRate,q=f.inputBuffer.getChannelData(0);f=new window.OfflineAudioContext(1,q.length,16E3);for(var Z=f.createBuffer(1,q.length,d),M=Z.getChannelData(0),g=0,O=0;O<q.length;O++)M[O]=q[O],g+=M[O]*M[O];!c.audioDetected&&Math.sqrt(g/q.length)>.01&&(c.audioDetected=!0,c.audioDetectedHandler());q=f.createBufferSource();q.buffer=Z;q.connect(f.destination);q.start(0);f.oncomplete=function(l){l=l.renderedBuffer.getChannelData(0);
for(var m=Math.floor(16384E3/d),H=new Int16Array(m),A=0;A<m;++A)H[A]=Math.max(-1,Math.min(1,l[A]))*32767;HdC(c,H.buffer)};
f.startRendering()}else bdq(c,f)},bdq=function(c,f){var d=c.audioContext.sampleRate,q=f.inputBuffer.getChannelData(0),Z=Math.floor((d+8E3)/16E3);
d=q.length/Z;f=new Float32Array(d);for(var M=0;M<d;++M)f[M]=q[M*Z];q=new Int16Array(d);for(Z=0;Z<d;++Z)q[Z]=Math.max(-1,Math.min(1,f[Z]))*32767;HdC(c,q.buffer)};var KUG={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var EeH=function(){this.JSC$19795_audioEnabled=!0;this.audioFeedbackHolder={}};
EeH.prototype.isPlaying=function(c){return c.currentTime>0&&!c.paused&&!c.ended&&c.readyState>2};
var nec=function(c){for(var f=_.C(Object.values(KUG)),d=f.next();!d.done;d=f.next())d=d.value,c.audioFeedbackHolder[d]=new Audio,c.audioFeedbackHolder[d].src="/s/search/audio/"+d+".mp3",c.audioFeedbackHolder[d].load()},GL=function(c,f){if(c.JSC$19795_audioEnabled!==!1&&f in c.audioFeedbackHolder){for(var d=_.C(Object.values(c.audioFeedbackHolder)),q=d.next();!q.done;q=d.next())q=q.value,c.isPlaying(q)&&q.pause();
c.audioFeedbackHolder[f].currentTime=0;c.audioFeedbackHolder[f].play().catch(function(){})}};var $PJ=function(c,f){var d=this;this.store=c;this.service=f;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){d.setState("offline");d.stop()};
this.audioPlayer=new EeH;var q;(q=this.audioPlayer)==null||nec(q)};
_.r=$PJ.prototype;_.r.getService=function(){return this.service};
_.r.isEnabled=function(){return!!this.service};
_.r.isSupported=function(){var c;return(c=this.service)==null?void 0:c.isSupported()};
_.r.start=function(){var c=this,f,d,q,Z,M,g,O,l,m,H,A,Y,t;return _.k(function(E){switch(E.nextAddress){case 1:c.store.dispatch(zJC("",""));if(!navigator.onLine)return c.setState("offline"),E.return();window.addEventListener("offline",c.handleOfflineEvent);c.stream=null;if(!c.permissionsSupported){E.jumpTo(2);break}_.iY(E,3);return E.yield(QgQ(c),5);case 5:f=E.yieldResult;if(!f)return(d=c.audioPlayer)==null||GL(d,"failure"),E.return();c.service.stream=c.stream;c.setState("listening");_.Pq(E,2);break;
case 3:_.Yw(E),c.permissionsSupported=!1;case 2:q={context:_.sVN(_.MR())},q.youtubeAssistantParams={searchParams:{inlineSearchResponse:c.enableInlineSearchResponse}},Z=function(J,X){c.store.dispatch(JKq("transcribing"));c.store.dispatch(zJC(J,X))},M=function(){var J;
(J=c.audioPlayer)==null||GL(J,"open");c.setState("listening")},g=function(){c.setState("transcribing")},O=function(J){c.setErrorState(J)},l=function(J,X){var u;
(u=c.audioPlayer)==null||GL(u,"success");X&&(_.F("kevlar_voice_search_inline_search")&&(c.responseProcessor=_.ql().resolve(_.s3r),c.responseProcessor&&(u=X.navigationAction,J=X.prefetchedSearchResponse,u&&J&&(u=(new _.dHq).JSC$12997_getStoreKey(u),_.No(c.responseProcessor,J,u)))),c.JSC$19813_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",X))},m=function(){window.removeEventListener("offline",c.handleOfflineEvent)},H=_.tvP(!1),A=H.Authorization!=null,Y=c.enableFirstPartyAuth||
c.enableFPAForSignedInUsers&&A?H:{"X-Goog-Visitor-Id":H["X-Goog-Visitor-Id"]},t={completeHandler:l,
errorHandler:O,listeningHandler:M,audioDetectedHandler:g,stopHandler:m,transcriptionUpdateHandler:Z,youtubeAssistantRequest:q,languageCode:Swi(),additionalHeaders:Y,supportsCrossDomainXhr:c.enableFirstPartyAuth||c.enableFPAForSignedInUsers&&A,supportsHttpHeadersOverwriteParam:!c.disableHttpHeadersOverwrite},c.service.start(t),_.Fm(E)}})};
_.r.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.r.reset=function(){this.store.dispatch(_.CC({type:"RESET_VOICE_SEARCH_STATE"}))};
_.r.setState=function(c){this.store.dispatch(JKq(c))};
_.r.setErrorState=function(c){switch(c){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var f;(f=this.audioPlayer)==null||GL(f,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)QgQ(this);else{var d;(d=this.audioPlayer)==null||GL(d,"failure");this.setState("permission-denied")}break;case "ABORTED":var q;(q=this.audioPlayer)==null||GL(q,"no_input");break;default:var Z;(Z=this.audioPlayer)==
null||GL(Z,"no_input");this.setState("timeout")}};
var QgQ=function(c){var f,d;return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(navigator.permissions.query({name:"microphone"}),2);case 2:f=q.yieldResult;if(f.state==="granted")return q.return(!0);if(f.state==="denied")return c.setState("permission-denied"),q.return(!1);c.setState("permission");d={audio:{sampleSize:16,channelCount:1},video:!1};_.iY(q,3);return q.yield(navigator.mediaDevices.getUserMedia(d),5);case 5:return c.stream=q.yieldResult,q.return(!0);case 3:return _.Yw(q),
c.setState("permission-denied"),q.return(!1)}})},Swi=function(){var c=_.hk("INNERTUBE_CONTEXT_HL"),f=_.hk("INNERTUBE_CONTEXT_GL");
return c.indexOf("-")>-1?c:c+"-"+f};var LUJ=function(c,f,d){$PJ.call(this,f,d);this.JSC$19813_actionRouter=c;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")},zuC;
_.K(LUJ,$PJ);
var J6J=function(){if(!zuC){var c="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")?c="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.F("kevlar_voice_search_use_fp_endpoint")&&(c="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");zuC=
new LUJ(_.Pw.getInstance(),_.Gh(),new o6(_.hk("VOZ_API_KEY"),c,.5))}return zuC};var a3r=function(c){this.JSC$19817_clientRoot=c;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$19817_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)]]));c=_.C(this.eventListeners);for(var f=c.next();!f.done;f=c.next()){var d=_.C(f.value);f=d.next().value;d=d.next().value;d=_.C(d);for(var q=d.next();!q.done;q=d.next()){var Z=
_.C(q.value);q=Z.next().value;Z=Z.next().value;f.addEventListener(q,Z)}}_.Rb(_.Pw.getInstance(),this.autonavPauseActionMap,this.JSC$19817_clientRoot)},VXS,XRc=function(c){return _.F("kevlar_autonav_popup_filtering")?(c=_.oV(c))?c.hasAttribute("prevent-autonav"):!0:!0};
_.r=a3r.prototype;_.r.onIronOverlayOpened=function(c){XRc(c)&&(this.autonavPauseReasons.overlayOpen=!0,co(this))};
_.r.onIronOverlayClosed=function(c){XRc(c)&&(this.autonavPauseReasons.overlayOpen=!1,co(this))};
_.r.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;co(this)};
_.r.onYtAutonavPauseBlur=function(){var c=this;_.a7.addJob(function(){c.isInBackground()||(c.autonavPauseReasons.inputBoxFocus=!1,co(c))},8,0)};
_.r.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;co(this)};
_.r.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;co(this)};
_.r.onYtAutonavPauseScroll=function(){var c=_.ql().resolve(_.MY);c.isOnWatch()&&(c=c.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=c.getBoundingClientRect().top<-200,co(this))};
_.r.onYtAutonavPauseUserEngagement=function(c){var f=this;if(_.F("user_engagement_enable_autoplay_pause_feature")){var d=Number(c.lowEngagementThresholdMs);isNaN(d)||d<=0||c.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.lT("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.ql().resolve(_.uS),_.ZZ()<d?_.Em(_.a7,function(){_.lT("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Tup()?(this.userEngagementCsn=_.X2(),_.Em(_.a7,function(){_.lT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
f.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,co(this)):_.lT("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Evk(Error("el`"+JSON.stringify(c)))};
_.r.onYtAutonavPausePlayer=function(c){this.autonavPauseReasons.requestedByPlayer=!!c.detail;co(this)};
_.r.onYtAutonavVisibilityChanged=function(){var c=this,f,d,q;return _.k(function(Z){if(Z.nextAddress==1)return(f=_.Ca())?Z.yield(f.getPlayerPromise(),2):Z.return();d=Z.yieldResult;q=d.isMuted()||d.getVolume()===0;c.autonavPauseReasons.backgroundAndMute=c.isInBackground()&&q;co(c);_.Fm(Z)})};
_.r.onYtAutonavPausePlayerEnded=function(){_.ql().resolve(_.uS);var c=144E5;_.F("user_engagement_enable_autoplay_pause_feature")||_.F("is_part_of_any_user_engagement_experiment")||(c=45E5);this.autonavPauseReasons.longIdle=_.ZZ()>c;uS3(this);co(this)};
_.r.onYtUserActivity=function(){var c=this;this.autonavPauseReasons.userEngagement&&(_.Em(_.a7,function(){_.lT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",c.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,co(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Em(_.a7,function(){_.lT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",c.userEngagementCsn);_.ab()}),this.autonavPauseReasons.youthereLactExperiment=!1,co(this));
this.autonavPauseReasons.longIdle&&!_.F("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,co(this))};
_.r.isInBackground=function(){var c=window.document.visibilityState;return!(!c||c==="visible")};
var co=function(c){for(var f=!1,d=_.C(Object.values(c.autonavPauseReasons)),q=d.next();!q.done;q=d.next())q=q.value,f=f||q;f?_.jY.getInstance().pause(c.autonavPauseReasons):(c=_.jY.getInstance(),c.autonavState_==3?(c.setState(2,!1,!1),c.autonavPauseReason_=void 0):c.autonavState_==1&&(c.disabledAutonavPauseReason_=void 0))},uS3=function(c){var f=!1;
if(_.F("enable_autoplay_pause_by_lact")){_.ql().resolve(_.uS);f=_.rx("autoplay_pause_by_lact_sec")*1E3;var d=_.rx("autoplay_pause_by_lact_sampling_fraction");(f=_.ZZ()>=f&&Math.random()<d)&&!_.Tup()&&(_.Em(_.a7,function(){_.lT("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),f=!1)}f!==c.autonavPauseReasons.youthereLactExperiment&&(c.autonavPauseReasons.youthereLactExperiment=f)&&(c.userEngagementCsn=_.X2(),_.Em(_.a7,function(){_.lT("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",c.userEngagementCsn)}));
c.autonavPauseReasons.userEngagement&&_.Em(_.a7,function(){_.lT("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",c.userEngagementCsn)})};
a3r.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.lT("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.ab(),this.autonavPauseReasons.youthereLactExperiment=!1,co(this));this.autonavPauseReasons.userEngagement&&(_.lT("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,co(this))};
a3r.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var fI=function(){var c=_.z.apply(this,arguments)||this;c.miniGuideVisible=!1;c.guideOpened=_.F("disable_initial_guide_state_fix")?!1:c.canFitPersistentGuide(c.initialBodyClientWidth);c.guideUserStateOpened=c.getInitialGuideUserStateOpened();c.isFullscreenShorts=!1;c.miniGuideWidthThreshold=_.rx("kevlar_mini_guide_width_threshold",791);c.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");c.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");c.persistentGuideBlockedPagePathRegex=new RegExp(c.persistentGuideBlockedPagesPatterns.join("|"));c.animationTransitionDuration=0;c.lateDataResolver=_.c9();c.initialGuideDataFetchFailed=!1;c.initialLoad=!0;c.guideRenderers=new Set;c.isMouseOverGuide=!1;c.sessionUserManuallyExpandedGuideState=!1;c.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return c};
_.K(fI,_.z);_.r=fI.prototype;_.r.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.r.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.r.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.r.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.r.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.r.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.r.ready=function(){_.ql().addProvider({provide:_.Ns,useValue:this.hostElement})};
_.r.attached=function(){var c=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.ia(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.ia(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.ia(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.ia(this,this.onYtGuideShow));_.ol(this,function(){c.animationTransitionDuration=200})};
_.r.detached=function(){document.removeEventListener("yt-navigate-finish",_.ia(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.ia(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.ia(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.ia(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.ia(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.ia(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.ia(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.r.getData=function(){return this.data};
_.r.load=function(){var c=this,f,d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=c.lateDataResolver.resolve.bind(c),M.return(c.lateDataResolver.promise);if(window.ytInitialGuideData)return f=_.c9(),f.resolve(window.ytInitialGuideData),M.return(f.promise);q=!1;_.iY(M,2);return M.yield(c.fetchGuideData(),4);case 4:d=M.yieldResult;_.Pq(M,3);break;case 2:Z=_.Yw(M),Z.message==="Returned error"&&(q=
!0);case 3:if(d)return M.return(d);c.onYtGuideClose();q||(c.initialGuideDataFetchFailed=!0);return M.return(c.lateDataResolver.promise)}})};
_.r.fetchGuideData=function(){var c=this,f,d,q,Z,M,g,O;return _.k(function(l){if(l.nextAddress==1)return f=_.ql(),c.guidePromise||(d=f.resolve(_.uo),c.guidePromise=_.G3(d,zc3)),l.yield(c.guidePromise,2);if(l.nextAddress!=3)return q=l.yieldResult,Z=f.resolve(_.qp),l.yield(Z(),3);(M=l.yieldResult)&&((g=q)==null?void 0:(O=g.responseContext)==null?void 0:O.maxAgeSeconds)!==0&&M.put("service:guide:fallback",new _.BP({innertubeResponse:q}));return l.return(q)})};
_.r.initializeGuideDataIfEmpty=function(){var c=this,f,d;return _.k(function(q){if(q.nextAddress==1){if(!c.initialGuideDataFetchFailed||c.data)return q.return();_.iY(q,2);return q.yield(c.fetchGuideData(),4)}if(q.nextAddress!=2)return(f=q.yieldResult)&&c.lateDataResolver.resolve(f),_.Pq(q,0);d=_.Yw(q);_.u6(d);_.Fm(q)})};
_.r.initializeGuideData=function(){var c=this,f;return _.k(function(d){switch(d.nextAddress){case 1:return _.s_(pW3(),{mainAppWeb:_.PS()}),_.iY(d,2),d.yield(c.load(),4);case 4:c.data=d.yieldResult;_.Pq(d,3);break;case 2:_.Yw(d),_.B5(pW3(),"FAILURE");case 3:f=c.data&&c.data.items&&c.data.items.length>0?"SUCCESS":"FAILURE",_.B5(pW3(),f),_.Fm(d)}})};
_.r.setGuideData=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1)return f.disabled?Z.return():f.data?(c.data=f.data,f.guideRenderers.add(c),Z.return()):Z.yield(f.initializeGuideData(),2);f.graftGuideToPage();d=_.wi("IS_HOMEPAGE_COLD")?"eop":void 0;_.F("disable_element_pool_populator")?f.setGuideDataAfterInit(c):(q=new _.Z$(1,d),_.Mj(q,f.setGuideDataAfterInit.bind(f,c)));_.Fm(Z)})};
_.r.setGuideDataAfterInit=function(c){c.data=this.data;c.markDirty();this.guideRenderers.add(c);_.Nh(function(){_.V_("gle")});
_.ol(this,function(){_.V_("gpe")})};
_.r.graftGuideToPage=function(){if(this.data){var c=this.data&&this.data.trackingParams;c&&(c=_.Q1(c),_.ij(_.bP(),c))}};
_.r.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.ia(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.r.onDrawerOpenedChanged=function(c,f){!f.value&&this.guideOpened&&(this.guideOpened=!1)};
_.r.onYtGuideToggle=function(c){var f=this.guideOpened;this.guideOpened=!f;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var d=_.Ft();_.tQ(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;d.save()}this.updateGuideDrawerElementState();if(this.guideElement){var q;this.guideOpened&&((q=c.detail)==null?0:q.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.ia(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.ia(this,this.onAppDrawerTransitioned))}f||this.initializeGuideDataIfEmpty()};
_.r.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ia(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.xO(this.guideElement)};
_.r.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ia(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(S_D(this.guideOpened))};
_.r.guidePersistentAndVisibleChanged=function(){_.kt(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.r.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.CC({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.r.miniGuideVisibleChanged=function(){_.kt(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.r.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(S_D(this.guideOpened)),this.initialLoad=!1);_.kt(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.r.activeEndpointChanged=function(){_.kt(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.r.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.r.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()};
_.r.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var c=this.canFitPersistentGuide(this.cachedClientWidth);c?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=c}this.updateGuideDrawerElementState()};
_.r.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.r.getGuideOpened=function(){return this.guideOpened};
_.r.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.r.getActiveEndpoint=function(){return this.activeEndpoint};
_.r.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.r.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&&_.CZ(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.r.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.F("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.r.handleGuideMouseLeave=function(){var c=this;!this.sessionUserManuallyExpandedGuideState&&_.F("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Ia(this,"handleGuideMouseLeave",function(){c.isMouseOverGuide||!c.guideOpened||c.miniGuideVisible||(c.guideOpened=!1,c.updateGuideDrawerElementState())},100))};
_.r.computeGuidePersistentAndVisible=function(){var c=this;_.Ia(this,"computeGuidePersistentAndVisible",function(){c.guidePersistentAndVisible=c.guideOpened&&c.guidePersistent;c.guideIsVisibleButNotPersistent=!(!c.guideOpened||c.guidePersistent)})};
_.r.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.r.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.r.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.r.startLoadingWatch=function(){this.closeGuide()};
_.r.startLoadingShorts=function(){_.F("web_hide_guide_on_shorts")&&this.closeGuide()};
_.r.onYtNavigateFinish=function(c,f){if(!_.OJ||f){this.activeEndpoint=f.endpoint;this.pageType=f.pageType;this.pageUrl=f.response.url;var d,q;c=(q=_.b((d=f.endpoint)==null?void 0:d.commandMetadata,_.jO))==null?void 0:q.url;!this.pageUrl&&c&&(this.pageUrl=c);_.F("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.r.getVisibleGuideRenderer=function(){for(var c=_.C(this.guideRenderers),f=c.next();!f.done;f=c.next())if(f=f.value,this.miniGuideVisible&&f.is==="ytd-mini-guide-renderer"||this.guideOpened&&f.is==="ytd-guide-renderer")return f;return null};
_.r.markGuideRendererDirty=function(c){if(c){typeof c.markDirty==="function"&&c.markDirty();c=_.C([].concat(_.LT(_.r1(c).children)));for(var f=c.next();!f.done;f=c.next())this.markGuideRendererDirty(f.value)}};
_.r.persistentGuideEnabled=function(c,f){if(!f||c==="watch"||c==="settings"||c==="shorts"&&this.isFullscreenShorts||_.F("reels_web_disable_persistent_guide_shorts")&&c==="shorts")return!1;var d=_.Bq(f)||"";return _.F("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(q){return d===q}):!this.persistentGuideBlockedPagePathRegex.test(d)};
_.r.canFitPersistentGuide=function(c){var f=_.rx("kevlar_persistent_guide_width_threshold",1312);return f===-1||_.F("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:c>f};
_.r.canFitMiniGuide=function(c){return this.miniGuideWidthThreshold===-1?!1:c>this.miniGuideWidthThreshold};
_.r.onResize=function(){var c=this;_.Ia(this,"calculateGuideState",function(){c.onResizeDebounced()})};
_.r.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.r.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.r.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.r.getInitialGuideUserStateOpened=function(){return _.F("web_force_mini_guide_default")?!1:!_.Ft().getFlag(109)};
_.ci.Object.defineProperties(fI.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.hk("initialBodyClientWidth")||window.innerWidth}}});
fI.prototype.onResize=fI.prototype.onResize;fI.prototype.observeForMiniGuideVisible=fI.prototype.observeForMiniGuideVisible;fI.prototype.computeGuidePersistentAndVisible=fI.prototype.computeGuidePersistentAndVisible;fI.prototype.cachedClientWidthChanged=fI.prototype.cachedClientWidthChanged;fI.prototype.resetGuide=fI.prototype.resetGuide;fI.prototype.activeEndpointChanged=fI.prototype.activeEndpointChanged;fI.prototype.guideOpenedChanged=fI.prototype.guideOpenedChanged;
fI.prototype.miniGuideVisibleChanged=fI.prototype.miniGuideVisibleChanged;fI.prototype.guideIsVisibleButNotPersistentChanged=fI.prototype.guideIsVisibleButNotPersistentChanged;fI.prototype.guidePersistentAndVisibleChanged=fI.prototype.guidePersistentAndVisibleChanged;fI.prototype.onGuideElementChanged=fI.prototype.onGuideElementChanged;fI.prototype.onGuidePersistentChanged=fI.prototype.onGuidePersistentChanged;fI.prototype.onRenderGuideChanged=fI.prototype.onRenderGuideChanged;
fI.prototype.onActiveEndpointChanged=fI.prototype.onActiveEndpointChanged;fI.prototype.onMiniGuideVisibleChanged=fI.prototype.onMiniGuideVisibleChanged;fI.prototype.onGuideIsVisibleButNotPersistentChanged=fI.prototype.onGuideIsVisibleButNotPersistentChanged;fI.prototype.onGuidePersistendAndVisibleChanged=fI.prototype.onGuidePersistendAndVisibleChanged;_.y([_.Q(_.aJ),_.D("design:type",Object)],fI.prototype,"ironResizableBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],fI.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],fI.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],fI.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fI.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],fI.prototype,"disabled",void 0);
_.y([_.L(),_.D("design:type",Boolean)],fI.prototype,"guidePersistentAndVisible",void 0);_.y([_.m5("guidePersistentAndVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"onGuidePersistendAndVisibleChanged",null);_.y([_.L(),_.D("design:type",Boolean)],fI.prototype,"guideIsVisibleButNotPersistent",void 0);
_.y([_.m5("guideIsVisibleButNotPersistent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.y([_.L(),_.D("design:type",Object)],fI.prototype,"miniGuideVisible",void 0);_.y([_.m5("miniGuideVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"onMiniGuideVisibleChanged",null);_.y([_.L(),_.D("design:type",Boolean)],fI.prototype,"forceMiniGuideClose",void 0);
_.y([_.L(),_.D("design:type",Object)],fI.prototype,"activeEndpoint",void 0);_.y([_.m5("activeEndpoint"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"onActiveEndpointChanged",null);_.y([_.L(),_.D("design:type",Boolean)],fI.prototype,"renderGuide",void 0);_.y([_.m5("renderGuide"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"onRenderGuideChanged",null);
_.y([_.L(),_.D("design:type",Object)],fI.prototype,"guideOpened",void 0);_.y([_.L(),_.D("design:type",Boolean)],fI.prototype,"guidePersistent",void 0);_.y([_.m5("guidePersistent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"onGuidePersistentChanged",null);_.y([_.L(),_.D("design:type",Object)],fI.prototype,"guideUserStateOpened",void 0);_.y([_.L(),_.D("design:type",String)],fI.prototype,"pageUrl",void 0);
_.y([_.L(),_.D("design:type",String)],fI.prototype,"pageType",void 0);_.y([_.L(),_.D("design:type",Number)],fI.prototype,"cachedClientWidth",void 0);_.y([_.L(),_.D("design:type",Object)],fI.prototype,"guideElement",void 0);_.y([_.L({selector:_.so}),_.D("design:type",Object)],fI.prototype,"isFullscreenShorts",void 0);_.y([_.m5("guideElement"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"onGuideElementChanged",null);
_.y([_.m5("guidePersistentAndVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"guidePersistentAndVisibleChanged",null);_.y([_.ba("guideIsVisibleButNotPersistent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.y([_.m5("miniGuideVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"miniGuideVisibleChanged",null);_.y([_.ba("guideOpened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"guideOpenedChanged",null);_.y([_.m5("activeEndpoint"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"activeEndpointChanged",null);
_.y([_.ba("pageUrl"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"resetGuide",null);_.y([_.ba("cachedClientWidth"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"cachedClientWidthChanged",null);_.y([_.m5("guideOpened","guidePersistent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"computeGuidePersistentAndVisible",null);
_.y([_.ba("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"observeForMiniGuideVisible",null);_.y([_.Ta("iron-resize"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fI.prototype,"onResize",null);_.y([_.v({disableElementRegistration:!0,is:"yt-guide-manager"})],fI);var veQ=_.h(fI,"yt-guide-manager",void 0,{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var de=function(){var c=_.z.apply(this,arguments)||this;c.JSC$19827_keyboardInUse=!1;c.boundHandleCapturedKeydownEvent=function(f){c.handleCapturedKeydownEvent(f)};
return c};
_.K(de,_.z);_.r=de.prototype;_.r.attached=function(){this.listenToDocument(document)};
_.r.listenToDocument=function(c){c.addEventListener("keydown",_.ia(this,this.onKeyDownEvent));c.addEventListener("keyup",_.ia(this,this.onKeyUpEvent));c.addEventListener("mousedown",_.ia(this,this.onMouseDownEvent));_.F("desktop_keyboard_capture_keydown_killswitch")||c.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);c.addEventListener("yt-page-data-updated",_.ia(this,this.onPageUpdate))};
_.r.detached=function(){this.unlistenFromDocument(document)};
_.r.unlistenFromDocument=function(c){c.removeEventListener("keydown",_.ia(this,this.onKeyDownEvent));c.removeEventListener("keyup",_.ia(this,this.onKeyUpEvent));c.removeEventListener("mousedown",_.ia(this,this.onMouseDownEvent));_.F("desktop_keyboard_capture_keydown_killswitch")||c.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);c.removeEventListener("yt-page-data-updated",_.ia(this,this.onPageUpdate))};
_.r.ready=function(){_.ql().addProvider({provide:_.lw,useValue:this})};
_.r.isKeyBoardInUse=function(){return this.JSC$19827_keyboardInUse};
_.r.handleCapturedKeydownEvent=function(c){if(c.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(c)};
_.r.onMouseDownEvent=function(){this.JSC$19827_keyboardInUse=!1};
_.r.onPageUpdate=function(){if(_.F("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.F("web_shorts_keyboard_shortcut_usage_log")){_.my.clear();for(var c=_.C(_.iT),f=c.next();!f.done;f=c.next()){var d=_.C(f.value);f=d.next().value;d=d.next().value;d=_.m_(d);_.my.set(f,d);_.Dr(_.X2(),_.V5(),d)}_.H7.clear();c=_.C(_.T_);for(f=c.next();!f.done;f=c.next())d=_.C(f.value),f=d.next().value,d=d.next().value,d=_.m_(d),_.H7.set(f,d),_.Dr(_.X2(),_.V5(),d);_.eO(_.X2(),_.V5(),[].concat(_.LT(_.H7.values()),
_.LT(_.my.values())));_.Ic(_.X2(),[].concat(_.LT(_.H7.values()),_.LT(_.my.values())))}};
_.r.onMiniplayerActiveChange=function(){var c;(c=_.ql().resolve(_.yN).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(c.document):this.unlistenFromDocument(c.document))};
_.r.ignoreKeyEvent=function(c){if(c.ctrlKey||c.altKey)if(_.F("kevlar_macro_markers_keyboard_shortcut")){if(c.keyCode!==37&&c.keyCode!==39)return!0}else return!0;var f=_.x0(c)||[];return _.A8F(f)?(_.F("web_button_or_anchor_list_item")&&Etq(f,c)&&(this.JSC$19827_keyboardInUse=!0),!0):c.defaultPrevented?(LV(c.keyCode,c.shiftKey,this.isShortsPage),!0):c.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(c):!1};
_.r.isSpacebarClick=function(c){var f=c||window.event;var d;f.composedPath&&typeof f.composedPath==="function"?d=f.composedPath():d=f.path;d&&d.length?f=d[0]:(f=f||window.event,f=f.target||f.srcElement,f.nodeType==3&&(f=f.parentNode));return f&&c.keyCode===32&&(c=f.tagName==="BUTTON"||f.tagName==="A"||f.tagName==="INPUT",f=(f=f.getAttribute("role"))&&(f==="option"||f==="button"||f.indexOf("menuitem")===0),c||f)?!0:!1};
_.r.onKeyDownEvent=function(c){if(!this.ignoreKeyEvent(c)&&(c.keyCode===191&&(c.shiftKey||c.metaKey?c.repeat!=null&&c.repeat||(this.openHotkeyDialog(),LV(c.keyCode,c.shiftKey,this.isShortsPage)):(this.focusSearchBox(),c.preventDefault())),!c.metaKey)){var f=_.ql().resolve(_.yN);switch(c.keyCode){case 9:this.JSC$19827_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(c);break;case 84:f.pipController.getWindow()&&window.focus();this.toggleTheaterMode(c.keyCode,c.shiftKey);break;case 73:f.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(c.keyCode,c.shiftKey);break;case 70:if(this.isShortsPage&&_.F("web_fullscreen_shorts")){_.Yui();break}this.isMiniplayerActive()?f.pipController.getWindow()&&(f.close(!0),window.focus()):this.passEventToPlayer(c);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(c.keyCode,c.shiftKey):this.closeMiniplayer(c.keyCode,c.shiftKey)||this.passEventToPlayer(c);break;case 13:c.shiftKey&&_.ql().resolve(_.$A).activate(c);break;default:this.passEventToPlayer(c)}}};
_.r.onKeyUpEvent=function(c){if(!this.ignoreKeyEvent(c))if(_.F("web_speedmaster_spacebar_control")&&c.keyCode===32)this.handlePlayerSpaceKey(c,!0);else{var f=this.getPlayerManager();f&&(f=f.getPlayer())&&f.handleGlobalKeyUp(c.keyCode,c.shiftKey,c.ctrlKey,c.altKey,c.metaKey,c.key,c.code)}};
_.r.getPlayerManager=function(){var c=_.Ca(),f=_.ql().resolve(_.dx(_.MY));return c&&f&&f.isOnWatch()?c:null};
_.r.passEventToPlayer=function(c,f){var d=this,q,Z,M,g;return _.k(function(O){if(O.nextAddress==1){if(!_.F("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&d.isMiniplayerActive())q=_.ql().resolve(_.yN).getPlayerElement();else if(d.inlinePreviewIsActive){if(Z=_.kt(d.hostElement,"yt-get-inline-preview-player-action"),(M=Z)==null?0:M[0])q=Z[0]}else q=_.Ca();return q?O.yield(q.getPlayerPromise(),3):O.jumpTo(0)}g=O.yieldResult;f?g.handleGlobalKeyUp(c.keyCode,c.shiftKey,c.ctrlKey,c.altKey,c.metaKey,
c.key,c.code):g.handleGlobalKeyDown(c.keyCode,c.shiftKey,c.ctrlKey,c.altKey,c.metaKey,c.key,c.code,c.repeat);c.keyCode!==38&&c.keyCode!==40&&LV(c.keyCode,c.shiftKey,d.isShortsPage);_.Fm(O)})};
_.r.focusSearchBox=function(){_.CZ(this.hostElement,"yt-focus-searchbox")};
_.r.openHotkeyDialog=function(){_.CZ(this.hostElement,"yt-open-hotkey-dialog")};
_.r.isMiniplayerActive=function(){return _.ql().resolve(_.yN).isMiniplayerActive()};
_.r.closeMiniplayer=function(c,f){return this.isMiniplayerActive()?(_.ql().resolve(_.yN).close(),LV(c,f,this.isShortsPage),!0):!1};
_.r.toggleTheaterMode=function(c,f){var d=_.Wr(_.Gh().getState()),q=this.getPlayerManager(),Z=_.F("disable_theater_mode_keyboard")||_.wi("START_IN_FULL_WINDOW_MODE");q&&!Z&&(d=!d,_.q9()&&_.F("external_fullscreen")&&(d=!0),_.gS(this.hostElement,"yt-toggle-theater-mode",[d]),LV(c,f,this.isShortsPage))};
_.r.toggleMiniplayer=function(c,f){var d=this.getPlayerManager();if(this.isMiniplayerActive()){var q;((q=_.ql().resolve(_.dx(_.MY)))==null?0:q.isOnWatch())?_.ql().resolve(_.yN).close(!0):_.vE(_.ql().resolve(_.yN));LV(c,f,this.isShortsPage)}else d&&(_.gS(this.hostElement,"yt-activate-miniplayer-from-watch-action"),LV(c,f,this.isShortsPage))};
_.r.handlePlayerSpaceKey=function(c,f){var d=!!_.Ca()||this.isMiniplayerActive();d=_.F("disable_space_scroll_fix")||d;_.F("global_spacebar_pause")&&!this.isKeyBoardInUse()&&d&&(c.preventDefault(),this.passEventToPlayer(c,f))};
_.r.isPresentingTheaterMode=function(){return _.F("web_watch_enable_tm_esc_key")?_.Wr(_.Gh().getState())&&!_.q9():!1};
de.prototype.onMiniplayerActiveChange=de.prototype.onMiniplayerActiveChange;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],de.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],de.prototype,"ytdReduxBehavior",void 0);_.y([_.L({selector:_.eek}),_.D("design:type",Boolean)],de.prototype,"inlinePreviewIsActive",void 0);_.y([_.L({selector:_.CEG}),_.D("design:type",Boolean)],de.prototype,"isShortsPage",void 0);
_.y([_.L({selector:_.X5}),_.D("design:type",Boolean)],de.prototype,"miniplayerIsActive",void 0);_.y([_.m5("miniplayerIsActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],de.prototype,"onMiniplayerActiveChange",null);_.y([_.v({disableElementRegistration:!0,is:"yt-hotkey-manager"})],de);_.h(de,"yt-hotkey-manager",void 0,{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var jS=function(){var c=_.z.apply(this,arguments)||this;c.loopStateEntityKey_=null;c.playlistLoopStateEntity_=null;c.isShuffleNextPlaylist=!1;c.PLAYER_EVENTS_=new Map;c.playerListenersSetup_=!1;c.videoSkipJob_=0;c.canAutoAdvance_=!1;c.playerManager_=null;c.TEST_ONLY={};return c};
_.K(jS,_.z);_.r=jS.prototype;_.r.ready=function(){_.ql().addProvider({provide:_.W_,useValue:this.hostElement})};
_.r.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_)};
_.r.attached=function(){document.addEventListener("yt-navigate-start",_.ia(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.ia(this,this.onYtNavigateFinish_))};
_.r.detached=function(){document.removeEventListener("yt-navigate-start",_.ia(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.ia(this,this.onYtNavigateFinish_))};
_.r.updatePlaylistEventListeners=function(c,f){f&&!this.playerListenersSetup_?(this.playerManager_=c,this.registerPlaylistEventListeners_(c)):!f&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(c))};
_.r.setPlayer=function(c){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=c};
_.r.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.r.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.r.registerPlaylistEventListeners_=function(c){var f=this;c.getPlayerPromise().then(function(d){f.playerListenersSetup_||(f.ytPlayerListenerBehavior.listenToPlayerEvents(d,f.PLAYER_EVENTS_),f.playerListenersSetup_=!0)})};
_.r.removePlaylistEventListeners_=function(c){var f=this;c.getPlayerPromise().then(function(d){f.playerListenersSetup_&&(f.ytPlayerListenerBehavior.unlistenFromPlayerEvents(d,f.PLAYER_EVENTS_),f.playerListenersSetup_=!1)})};
_.r.setPlaylistComponent=function(c){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.ia(this,this.onPlaylistYtNavigate_)),c&&(c.data&&this.playlistComponent.data&&c.data.playlistId==this.playlistComponent.data.playlistId?(c.loopOn=this.playlistComponent.loopOn,c.shuffleOn=this.playlistComponent.shuffleOn):(c.loopOn=!1,c.shuffleOn=!1),this.isShuffleNextPlaylist&&(c.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=c;this.playlistComponent.addEventListener("yt-navigate",
_.ia(this,this.onPlaylistYtNavigate_))};
_.r.setAutoplayRenderer=function(c){this.autoplayData=c};
_.r.setPlaylistData=function(c){this.currentPlaylistData_=c;_.CZ(this.hostElement,"yt-playlist-data-updated");_.zV.isEmpty(c)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(c)};
_.r.setPlayerPlaybackControlData=function(c){this.playerManager_&&this.playerManager_.updatePlayerComponents(c.playlistPanelRenderer)};
_.r.getPlaylistData=function(){return this.currentPlaylistData_};
_.r.getTempData_=function(c,f){if(this.playlistComponent==null)return null;c={};this.playlistComponent.shuffleOn&&(c.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(c.loop_on=this.playlistComponent.loopOn);f&&(c.autonav="1",_.ql().resolve(_.uS),f=_.ZZ(),f>0&&(c.lact=f),this.playerManager_&&(f=this.playerManager_.getPlayer())&&f.shouldSendVisibilityState()&&(f=f.getVisibilityState(),f!=0&&(c.vis=f)));_.F("enable_unknown_lact_fix_on_html5")&&(_.ql().resolve(_.uS),c.lact=
_.ZZ());return c};
_.r.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.r.setLoopStateEntityKey_=function(c){var f;this.loopStateEntityKey_=((f=this.getPlaylistLoopData_(c))==null?void 0:f.playlistLoopStateEntityKey)||null};
_.r.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.r.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.r.skipVideo=function(){var c=this,f=_.F("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||f)f=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.QH(_.a7,function(){c.onPlaylistNext();c.videoSkipJob_=0},f)};
_.r.cancelVideoSkip=function(){this.videoSkipJob_&&(_.a7.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.r.isInBackground_=function(){var c=window.document.visibilityState;return!(!c||c=="visible")};
_.r.onPlaylistIndex_=function(c){this.playlistComponent&&(c=this.playlistComponent.data.contents[c].playlistPanelVideoRenderer.navigationEndpoint,_.CZ(this.hostElement,"yt-navigate",{endpoint:c,tempData:this.getTempData_(c)}))};
_.r.onPlayerStateChange_=function(c){if(c=c==0&&this.playlistComponent&&this.canAutoAdvance_)c=_.jY.getInstance(),c=!(c.autonavState_===3?c.autonavPauseReason_&&c.autonavPauseReason_.inputBoxFocus===!0:c.autonavState_===1&&c.disabledAutonavPauseReason_&&c.disabledAutonavPauseReason_.inputBoxFocus===!0);c&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.r.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.r.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.r.navigateToAutoplayWatchEndpoint_=function(c,f,d){var q=this.playlistComponent.data.currentIndex,Z=this.getNumPlayableVideos_();c=="NORMAL"&&f=="autoplayVideo"&&q+1>=Z&&d||!(c=this.getVideoEndpoint_(c,f))||(d=this.getTempData_(c,d),_.CZ(this.hostElement,"yt-navigate",{endpoint:c,tempData:d}))};
_.r.getNumPlayableVideos_=function(){for(var c=0,f=_.C(this.playlistComponent.data.contents||[]),d=f.next();!d.done;d=f.next())d.value.playlistPanelVideoRenderer&&(c+=1);return c};
_.r.getVideoEndpoint_=function(c,f){if(this.autoplayData&&this.autoplayData.sets)for(var d=0,q=this.autoplayData.sets.length;d<q;d++){var Z=this.autoplayData.sets[d];if(Z.mode==c){if(Z[f])return Z[f];break}}else c=new _.KD("AutoplayData is undefined in playlist manager","Mode: "+c+" endpoint: "+f),_.u6(c)};
_.r.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.r.onPlaylistYtNavigate_=function(c){if(c.detail.endpoint){c.stopPropagation();var f=c.detail;f.tempData=this.getTempData_(c.detail.endpoint);_.CZ(this.hostElement,"yt-navigate",f)}};
_.r.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.r.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.r.playlistLoopStateEntityChanged_=function(c){var f=this,d,q,Z;return _.k(function(M){if(M.nextAddress==1){if(!c)return M.return();d=c.state==="PLAYLIST_LOOP_STATE_ONE";return f.playerManager_?M.yield(f.playerManager_.getPlayerPromise(),3):M.jumpTo(2)}M.nextAddress!=2&&(q=M.yieldResult,q.setLoopVideo(d));Z=c.state==="PLAYLIST_LOOP_STATE_ALL";f.playlistComponent&&(f.playlistComponent.loopOn=Z);_.Fm(M)})};
_.r.getPlaylistLoopData_=function(c){var f,d;if(c=c==null?void 0:(f=c.playlistButtons)==null?void 0:(d=f.menuRenderer)==null?void 0:d.topLevelButtons)for(f=_.C(c),d=f.next();!d.done;d=f.next())if(d=d.value,d.playlistLoopButtonRenderer)return d.playlistLoopButtonRenderer};
_.r.getLoopStateCommand_=function(c){var f=this.getPlaylistData(),d;f=((d=this.getPlaylistLoopData_(f))==null?void 0:d.states)||[];var q;c=(q=_.b(f[c?1:2],_.Q5o))==null?void 0:q.button;var Z;return(Z=_.b(c,_.WQ))==null?void 0:Z.command};
_.r.onPlayerLoopChange_=function(c){this.playlistLoopStateEntity_&&(c?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(c=this.getLoopStateCommand_(c))&&this.ytComponentBehavior.resolveCommand(c)};
_.r.onSleepTimerSettingsChanged_=function(c){this.canAutoAdvance_=c!=="End of video"};
jS.prototype.onPlaylistLoopStateEntityChanged=jS.prototype.onPlaylistLoopStateEntityChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],jS.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.xq.YtPlayerListenerBehavior),_.D("design:type",_.o0)],jS.prototype,"ytPlayerListenerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],jS.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],jS.prototype,"loopStateEntityKey_",void 0);
_.y([_.L({selectorArgs:["loopStateEntityKey_"],selector:_.NaY}),_.D("design:type",Object)],jS.prototype,"playlistLoopStateEntity_",void 0);_.y([_.m5("playlistLoopStateEntity_"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jS.prototype,"onPlaylistLoopStateEntityChanged",null);_.y([_.v({disableElementRegistration:!0,is:"yt-playlist-manager"})],jS);_.h(jS,"yt-playlist-manager",void 0,{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var hur,wR3=function(){if(hur!==void 0)return hur;var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return hur=c};var qn=function(){var c=_.z.apply(this,arguments)||this;c.lastCallback=null;c.getAccountLinkPromises={};c.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);c.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return c};
_.K(qn,_.z);_.r=qn.prototype;_.r.getLocation=function(){return window.location.href};
_.r.getCompletionUrl=function(){return _.Gc(this.getLocation())};
_.r.containsRedirectState=function(c){return(c=_.Lp(_.bBe(c)))?(new URLSearchParams(c)).get("redirect_state")!==null:!1};
_.r.createGalConfig=function(c,f){var d=new GK3;c=d=f?this.getPopupOrRedirectSetting(d,_.hk("LINK_API_KEY"),_.hk("LINK_API_KEY_REDIRECT"),c):cqC(d,_.hk("LINK_API_KEY"));c.authUser=_.hk("SESSION_INDEX")||0;c.supportedFlows=new Set([4]);return c.build()};
_.r.getPopupOrRedirectSetting=function(c,f,d,q){this.isGalInteractionPopupMode(q)?(c.interactionMode=0,c=cqC(c,f)):(c.interactionMode=1,f=this.getCompletionUrl(),c.completionUrl=f,c=cqC(c,d));return c};
_.r.isGalInteractionPopupMode=function(c){if(this.redirectModeProviderAllowlist.has(c))switch(c){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.r.getStatusEntityKeyForProviderId=function(c){return _.sx(c+":all","accountLinkStatusEntity")};
_.r.findNestedPropValue=function(c,f){var d=!1,q=null;JSON.stringify(c,function(Z,M){d||Z!==f||(d=!0,q=M);return d?null:M});
return q};
_.r.findAccountLinkButtonViewModel=function(c,f){var d=null,q=!1;JSON.stringify(c,function(Z,M){q||M.accountLinkStatusEntityKey!==f||M.accountLinkStatusSecondaryEntityKey||(q=!0,d=M);return q?null:M});
return d};
_.r.executeLinkingSuccessOrFailureCommands=function(c,f,d){var q=null,Z;(f==null?0:(Z=f.url)==null?0:Z.includes("account_sharing"))?q=f==null?void 0:f.response:q=f==null?void 0:f.response;(f=this.findAccountLinkButtonViewModel(q,c))?(c=d?this.findNestedPropValue(f,"onSuccessCommand"):this.findNestedPropValue(f,"onFailureCommand"))?_.il([c],this.hostElement):_.eZ(Error("fl")):_.eZ(Error("gl`"+c))};
_.r.handleInitializeRequest=function(c,f){var d=this,q=bCQ(this.createGalConfig(c,!0));this.containsRedirectState(this.getLocation())?HCS(c,q.config,q.galService).then(function(Z){var M=d.getStatusEntityKeyForProviderId(c);if(Z.statusCode===1)f&&d.executeLinkingSuccessOrFailureCommands(M,f,!0),Z=d.getLocation().indexOf("#"),Z!==-1&&window.history.pushState(null,"",d.getLocation().substring(0,Z));else return f&&d.executeLinkingSuccessOrFailureCommands(M,f,!1),Promise.reject(Error(Z.statusMessage))}).catch(function(Z){_.u6(Z);
_.JN("gamingAccountLinkStatusChanged",{serviceId:c,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Z)}):this.getAccountLinkPromises[c]=q.startLinkingSession({serviceId:c})};
_.r.handleAccountLinkCommand=function(c){_.b(c,wLF)&&this.handleLinkRequest(_.b(c,wLF))};
_.r.handleLinkRequest=function(c){var f=this,d=c.thirdPartyId;if(d)if(this.isGalInteractionPopupMode(d)){var q=function(){f.closeAndFire("ytd-gaming-account-link-setting-renderer",c.onFailureCommand)},Z=function(){f.closeAndFire("ytd-gaming-account-link-setting-renderer",c.onSuccessCommand)};
this.lastCallback=Z;this.getAccountLinkPromises[d].then(function(M){JqD(M).then(function(g){g.statusCode===1?Z():q()})}).catch(function(){q()})}else this.getAccountLinkPromises[d].then(function(M){JqD(M).then(function(g){if(g.statusCode!==1)return Promise.reject(Error(g.statusMessage))})}).catch(function(M){_.u6(M);
_.JN("gamingAccountLinkStatusChanged",{serviceId:d,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(M)})};
_.r.closeAndFire=function(c,f){_.gS(this.hostElement,"yt-close-popup-action",[c]);f&&_.il([f],this.hostElement)};
_.r.handleAccountUnlinkCommand=function(c){_.b(c,y$q)&&this.handleUnlinkRequest(_.b(c,y$q))};
_.r.handleUnlinkRequest=function(c){var f=this,d=c.thirdPartyId;if(d){var q=function(){f.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",c.onFailureCommand)},Z=function(){f.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",c.onSuccessCommand)};
this.lastCallback=Z;var M=bCQ(this.createGalConfig(d,!1));this.unlinkUserGal(M,d).then(function(g){g.statusCode===1?Z():q()}).catch(function(){q()})}};
_.r.unlinkUserGal=function(c,f){return c.deleteLink(f)};
_.r.handleLogAccountLinkingEventCommand=function(c){_.F("enable_gel_log_commands")&&_.b(c,W1H)&&(c=_.b(c,W1H).event)&&_.JN("gamingAccountLinkStatusChanged",c)};
_.ci.Object.defineProperties(qn,{template:{configurable:!0,enumerable:!0,get:function(){return wR3()}}});
_.y([_.Q(_.Yd.YtOpenPopupBehavior),_.D("design:type",Object)],qn.prototype,"ytOpenPopupBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],qn.prototype,"ytActionHandlerBehavior",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-third-party-manager"})],qn);_.h(qn,"ytd-third-party-manager",function(){return wR3()},{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var y6D,WUD=function(){if(y6D!==void 0)return y6D;var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return y6D=c};var ZQ=function(){var c=_.z.apply(this,arguments)||this;c.currentPage=void 0;c.renderLoadingStateJobId=0;c.updatePageDataJobId=0;c.pageDisposeJobsets=new WeakMap;c.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"};c.shouldApplyLockupToWatchTransition=_.F("web_thumbnail_to_watch_transition");c.shouldApplySlideTransition=_.CD("web_page_transition_type")==="slide"||_.F("enable_plj_landing_page");c.shouldApplyLearningJourneyTransition=_.F("enable_plj_landing_page");c.TEST_ONLY=void 0;return c};
_.K(ZQ,_.z);_.r=ZQ.prototype;_.r.ready=function(){var c=_.ql();c.addProvider({provide:_.MY,useValue:this});c.addProvider({provide:_.OH3,useValue:this})};
_.r.created=function(){this.pagePool=new sgr;this.contextSwitcher=new $eF};
_.r.attached=function(){_.CZ(this.hostElement,"attached");var c=_.ql().resolve(_.dx(_.Xw));c&&(this.contextSwitcher.JSC$19653_networkService_=c);this.viewTransitionManager=_.ql().resolve(_.F0)};
_.r.getPageOffset=function(c){return c.getScrollTop()};
_.r.setPageOffset=function(c,f){try{c.setScrollTop(f)}catch(d){}};
_.r.setPageOffsetForNavigation=function(c,f){_.CZ(this.hostElement,"yt-navigate-set-page-offset",{page:c,offset:f===void 0?0:f})};
_.r.pauseActiveContext=function(){var c=this.contextSwitcher;c.activeContext_&&c.activeContext_.pause()};
_.r.getModuleNameForType=function(c){return c==="watch"?_.F("kevlar_watch_fixie")?"watchFixie":_.F("kevlar_watch_grid")?"watchGrid":"watchFlexy":c==="shorts"||c==="search"?c:"browse"};
_.r.attachPage=function(c){var f,d=!_.F("pc_is_attached_ks")&&(c==null?void 0:(f=c.polymerController)==null?void 0:f.isAttached);if(!c.isAttached&&!d)try{_.r1(this.hostElement).appendChild(c)}catch(Z){var q;_.u6(new _.KD("Error attaching page element for component",{origin:(q=this.currentPage)==null?void 0:q.is,component:c.is}))}};
_.r.setActivePage=function(c){var f=this,d=!1,q=function(){var Z=f.isOnWatch(),M=f.currentPage;if(c)if(c!==f.currentPage){M&&(M.hidden=!0,M.active=!1,M.removeAttribute("role"));f.currentPage=c;var g,O=_.Y0((g=f.data)==null?void 0:g.endpoint);M&&_.CZ(f.hostElement,"yt-page-type-changed",{oldPageType:M.is,newPageType:c.is,newPageSubtype:O});_.xE().dispatch(_.CC({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:c.is}));_.xE().dispatch(_.CC({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:O||""}));c.hidden=
!1;f.attachPage(c);c.active=!0;c.setAttribute("role","main");M&&f.setPageOffsetForNavigation(c,0);_.F("kevlar_remove_page_dom_on_switch")&&!Z&&M&&_.r1(f.hostElement).removeChild(M)}else d=!0;else Z=new _.KD("Unable to set active page",M?M.is:"unknown origin",(O=f.data)==null?void 0:O.endpoint),_.VO(Z)};
this.shouldRunBrowseTransition(this.currentPage,c)?Rac(this.viewTransitionManager,q):this.shouldRunLearningJourneyTransition(this.currentPage,c)?xCC(this.viewTransitionManager,q):q();return d};
_.r.shouldRunBrowseTransition=function(c,f){return this.shouldApplySlideTransition&&(c==null?void 0:c.is)==="ytd-browse"&&(f==null?void 0:f.is)==="ytd-browse"&&c!==f};
_.r.shouldRunLearningJourneyTransition=function(c,f){return this.shouldApplyLearningJourneyTransition&&(c==null?void 0:c.is)==="ytd-browse"&&((f==null?void 0:f.is)==="ytd-watch-learning-journey"||(f==null?void 0:f.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.r.shouldRunWatchNextLoadedTransition=function(c,f){return this.viewTransitionManager&&c.is==="ytd-watch-flexy"&&f};
_.r.updatePageData=function(c){var f=this,d=this.data;this.updatePageDataJobId&&_.a7.cancelJob(this.updatePageDataJobId);this.data=c;return new _.i6(function(q){var Z=function(){c.filler?f.performDataUpdate(c,d):qoS(function(){f.performDataUpdate(c,d)});
var l=_.eY();_.NI(l,"cr")||l.processSignal("cr");q()},M=function(){c&&c.page==="watch"?f.updatePageDataJobId=_.QH(_.a7,Z):Z()};
if(_.F("kevlar_enable_mss_page_modules_client")&&c){var g=_.ql().resolve(_.Dh),O=f.getModuleNameForType(c.page);(g=ILQ(g,[O]))?g.then(M):M()}else M()})};
_.r.isDownloadsPage=function(c){var f,d;return(c==null?void 0:(f=c.endpoint)==null?void 0:(d=f.browseEndpoint)==null?void 0:d.browseId)==="FEdownloads"};
_.r.setPlayerSyncInterval=function(c){var f;return _.k(function(d){if(d.nextAddress==1)return d.yield(_.ql().resolve(_.sR),2);f=d.yieldResult;f.setUpPositionSyncInterval(c);_.Fm(d)})};
_.r.performDataUpdate=function(c,f){_.F("kevlar_early_popup_close")||_.gS(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var d=!c.filler;d&&(_.V_("lps"),_.F("config_age_report_killswitch")||zgS());var q=Af(c),Z,M=!1;if(_.F("kevlar_remove_page_dom_on_switch")){var g=f&&Af(f);q===g&&(Z=this.getCurrentPage())}Z||(Z=R6(this.pagePool,q));d&&r9c(this.pagePool.elementPoolPopulator,q);d&&!this.renderLoadingStateJobId&&(M=this.setActivePage(Z));if(Z){g=q==="watch";var O=
q==="shorts",l=q==="learning_journey_watch";_.F("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Z);if(g||O||l)Z.playerData=c.playerResponse;if(O)if(_.F("web_enable_delay_shorts_sequence_call")){c.reelWatchSequenceResponse&&(Z.reelWatchSequenceResponse=c.reelWatchSequenceResponse);Z.currentEndpoint=c.endpoint;var m;Z.isPreviousPageShorts=!!(f==null?0:(m=f.endpoint)==null?0:m.reelWatchEndpoint);var H,A;c.cachedSequenceParams=((H=c.endpoint)==null?void 0:(A=H.reelWatchEndpoint)==
null?void 0:A.sequenceParams)||c.cachedSequenceParams||(f==null?void 0:f.cachedSequenceParams);var Y,t;c.cachedSequenceProvider=((Y=c.endpoint)==null?void 0:(t=Y.reelWatchEndpoint)==null?void 0:t.sequenceProvider)||c.cachedSequenceProvider||(f==null?void 0:f.cachedSequenceProvider);Z.cachedSequenceParams=c.cachedSequenceParams;Z.cachedSequenceProvider=c.cachedSequenceProvider}else{c.reelWatchSequenceResponse?Z.reelWatchSequenceResponse=c.reelWatchSequenceResponse:c.cachedReelWatchSequenceResponse?
Z.reelWatchSequenceResponse=c.cachedReelWatchSequenceResponse:_.F("web_enable_cached_reel_sequence_fix")&&Z.cachedReelWatchSequenceResponse&&!Z.reelWatchSequenceResponse&&(Z.reelWatchSequenceResponse=Z.cachedReelWatchSequenceResponse);Z.currentEndpoint=c.endpoint;var E;Z.isPreviousPageShorts=!!(f==null?0:(E=f.endpoint)==null?0:E.reelWatchEndpoint);c.cachedReelWatchSequenceResponse=c.reelWatchSequenceResponse||c.cachedReelWatchSequenceResponse||(f==null?void 0:f.cachedReelWatchSequenceResponse);Z.cachedReelWatchSequenceResponse=
c.cachedReelWatchSequenceResponse}m=this.isDownloadsPage(c);H=this.isDownloadsPage(f);m&&!H?this.setPlayerSyncInterval(6E5):!m&&H&&this.setPlayerSyncInterval();_.F("block_all_player_prefetch_requests")||this.preparePrefetchRequest(c,Z,d,g,O,l);osH(_.ql().resolve(_.yN),f,c);_.qe(_.ql().resolve(_.uS));_.F("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Z);d?(d=typeof Z.loadPage,d==="function"?(Z.pageContext=QQH(this.contextSwitcher,Z,Z.data!==c.response),d=function(){Z.loadPage(c.response)},
this.shouldApplySlideTransition&&Z.is==="ytd-browse"&&M&&(q==="learning"||this.isDifferentBrowseId(c==null?void 0:c.endpoint,f==null?void 0:f.endpoint))?Rac(this.viewTransitionManager,d):this.shouldRunWatchNextLoadedTransition(Z,M)?pZr(this.viewTransitionManager,d):d()):_.XX(new _.KD("b/38014653 ",[q,
Z.is,Z.nodeName,d,Z.isAttached,f&&Af(f),this.hostElement.children.length])),_.V_("pdl")):(Z.hidden=!0,c.response.filler=!0,Z.data=c.response,this.attachPage(Z));_.CZ(this.hostElement,"yt-page-data-updated",{pageType:q})}_.Em(_.a7,function(){_.F("logging_avoid_blocking_during_navigation")&&_.oZk().transition("none");var J=emc(),X=Z;if(c){var u=i$c(c),W=T1D(c),p;a:{if(c.playerResponse){var N=c.playerResponse,I;if((p=N.auxiliaryUi)==null?0:(I=p.messageRenderers)==null?0:I.upsellDialogRenderer){p=N.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(c.response&&(p=c.response,(N=p.overlay)==null?0:N.upsellDialogRenderer)){p=p.overlay.upsellDialogRenderer;break a}p=void 0}var R;var qN;I=(R=c.playerResponse)==null?void 0:(qN=R.auxiliaryUi)==null?void 0:qN.messageRenderers;R=(I==null?void 0:I.enforcementMessageViewModel)||(I==null?void 0:I.bkaEnforcementMessageViewModel);R=(R==null?void 0:R.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?R:void 0;var kl;a:{if(c.response&&(qN=c.response,(kl=qN.overlay)==null?0:
kl.commandWrapperPromoRenderer)){kl=qN.overlay.commandWrapperPromoRenderer;break a}kl=void 0}DeC(J,u,W,p,R,kl,X)}})};
_.r.preparePrefetchRequest=function(c,f,d,q,Z,M){var g,O,l,m,H,A,Y,t,E,J,X,u,W,p,N;return _.k(function(I){if(I.nextAddress==1)return!d||!(q||Z||M)||_.F("kevlar_disable_background_prefetch")&&_.WC(_.P0r)()===0?I.return():(g=_.ry(f))?I.yield(g.getPlayerPromise(),2):I.return();O=I.yieldResult;l=_.ql().resolve(_.dx(_.Xw));if(!l)return I.return();if(Z)return m=_.qo(_.nt),BB3(m,(H=c.endpoint)==null?void 0:H.reelWatchEndpoint,f.reelWatchSequenceResponse,O,l),I.return();t=(A=c.response)==null?void 0:(Y=A.responseContext)==
null?void 0:Y.webResponseContextExtensionData;if(!t)return I.return();W=(E=c.response)==null?void 0:(J=E.contents)==null?void 0:(X=J.twoColumnWatchNextResults)==null?void 0:(u=X.autoplay)==null?void 0:u.autoplay;p=_.ql().resolve(_.W_);N=_.qo(_.nt);iOp(N,t,O,l,p,W);_.Fm(I)})};
_.r.movePlayerToWatch=function(c){var f=this,d,q;return _.k(function(Z){d=R6(f.pagePool,"watch");q=d.getPlayerContainer();c.appendTo(q);_.Fm(Z)})};
_.r.movePlayerToShorts=function(c){var f=this,d,q,Z;return _.k(function(M){d=R6(f.pagePool,"shorts");q=d.getPlayerContainer();(Z=c)==null||Z.appendTo(q,void 0,!0);_.Fm(M)})};
_.r.getPlayerFromWatch=function(){var c=R6(this.pagePool,"watch");return _.ry(c)};
_.r.getPlayerFromShorts=function(){var c=R6(this.pagePool,"shorts");return _.ry(c)};
_.r.startLoadingWatch=function(){var c=this,f=R6(this.pagePool,"watch");this.renderLoadingStateJobId?(_.a7.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.F("web_watch_transition_enable_start_loading_watch_callsite")?UC3(this.viewTransitionManager,function(){c.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(f)};
_.r.startLoadingShorts=function(){var c=R6(this.pagePool,"shorts");this.setActivePage(c)};
_.r.startLoadingLearningJourney=function(){var c=R6(this.pagePool,"learning_journey_watch");this.setActivePage(c)};
_.r.getCurrentPage=function(){return this.currentPage};
_.r.getDestinationPageType=function(){return this.destinationPageType};
_.r.getCurrentData=function(){return this.data};
_.r.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.r.isOnShorts=function(){var c;return((c=this.currentPage)==null?void 0:c.is)==="ytd-shorts"};
_.r.isWatchPage=function(c){return!!c&&(c.is==="ytd-watch-flexy"||c.is==="ytd-watch-fixie"||c.is==="ytd-watch-grid")};
_.r.preparePage=function(c,f){var d=this,q=function(){var g=d.pagePool.preparePage(c,d.currentPage,f);g&&d.attachPage(g)},Z=function(g){_.wK(g,f);
_.u6(g)};
if(_.F("kevlar_enable_mss_page_modules_client")){var M=this.getModuleNameForType(c);if(M=ILQ(_.ql().resolve(_.Dh),[M])){M.then(q.bind(this)).catch(Z.bind(this));return}}try{q()}catch(g){Z(g)}};
_.r.lazyPrepareCriticalPages=function(c,f){c=_.Y0(f)||c;_.F("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(c).then(this.maybePrepareWatchPage.bind(this,c)):this.maybePrepareWatchPage(c)};
_.r.maybePrepareWatchPage=function(c){c!=="watch"&&_.Em(_.a7,this.preparePage.bind(this,"watch"))};
_.r.downloadPageModules=function(c){c=this.getModuleNameForType(c);var f=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);f.delete(c);var d=_.ql().resolve(_.Dh);d.JSC$18401_loadModules(c);return d.JSC$18401_loadModules.apply(d,_.LT(f))};
_.r.renderPageLoadingState=function(c,f){this.preparePage(c,f);var d=R6(this.pagePool,c);d.loadingData&&(d.loadingData.endpoint=f);d.loading=!0;this.setActivePage(d);c!=="watch"&&c!=="learning_journey_watch"||_.CZ(this.hostElement,"yt-guide-close")};
_.r.prepareForNavigation=function(c,f){var d=this;if(this.currentPage&&this.data){var q=_.Y0(f)||c;this.destinationPageType=q;Af(this.data)==q&&_.CZ(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((c==="watch"||c==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.a7.cancelJob(this.renderLoadingStateJobId);_.ql().resolve(_.yN).deactivate(f);_.X8(_.a7,function(){var M=d.viewTransitionManager,g=d.currentPage;
if(M.isLockupToWatchTransitionEnabled&&M.isLockupThumbnailRegistrationEnabled&&g)if(M.registeredLockupThumbnail)M.lockupThumbnailRegisteredFromWatchEndpoint&&_.u6(new _.KD("Lockup thumbnail already registered from watch endpoint."));else{a:{var O=_.b(f,_.pe);if(O==null?0:O.videoId){var l="yt-lockup-view-model ."+_.lCM(O.videoId)+" yt-thumbnail-view-model";g=g.querySelectorAll(l);if(g.length===1){O=g[0];break a}g.length>1?_.u6(new _.KD("Multiple LockupViewModel thumbnails found for videoId: "+O.videoId+
". Selector: "+l)):_.F("web_thumbnail_to_watch_transition_debug")&&_.u6(new _.KD("No LockupViewModel thumbnail found for videoId: "+O.videoId+". Selector: "+l))}O=void 0}O&&(M.registeredLockupThumbnail=O,M.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.JDF(M,O))}});
var Z=this.data;this.renderLoadingStateJobId=_.X8(_.a7,function(){UC3(d.viewTransitionManager,function(){if(d.data!=Z){var M=R6(d.pagePool,c);d.setActivePage(M)}else d.renderPageLoadingState(c,f);d.renderLoadingStateJobId=0})},150)}};
_.r.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var c=new _.Z$(1);this.currentPage.pageDisposeJobs.forEach(function(f){_.Mj(c,f)});
this.pageDisposeJobsets.set(this.currentPage,c)}};
_.r.flushPageDisposeJobset=function(c){var f=this.pageDisposeJobsets.get(c);f&&(f.flushJobs(),this.pageDisposeJobsets.delete(c))};
_.r.onYtStopOldPlayer=function(c,f){f=f===void 0?!1:f;var d,q=_.gx("kevlar_new_stop_old_player_logic_pages");if(_.F("kevlar_check_current_page_on_stop_old_player")&&(q.length===0||this.currentPage&&q.includes(this.currentPage.is)))if(this.data&&(d=Af(this.data)),Af(c)===d&&this.currentPage&&Af(this.currentPage.data)!==d)var Z=_.ry(this.currentPage);else d=Af(this.data),Z=R6(this.pagePool,d),Z=_.ry(Z);else this.data&&(d=Af(this.data),Z=R6(this.pagePool,d),Z=_.ry(Z));if(Z)if(c=Af(c),q=R6(this.pagePool,
c),q=_.ry(q),Z==q)f&&!_.F("kevlar_disable_preemptive_player_reset")&&Z.resetForNewPlayback();else if(f=d==="watch"&&c!=="watch",!f||c==="shorts"||_.FUF()&&!nDq(this.data)&&c!=="yts-products"&&c!="mini_app"&&c!="playables")d=_.ql().resolve(_.yN),f&&d.isMiniplayerActive()&&d.pipController.getWindow()||Z.stop()};
_.r.isDifferentBrowseId=function(c,f){c=_.b(c,_.Fw);f=_.b(f,_.Fw);return(c==null?void 0:c.browseId)!==(f==null?void 0:f.browseId)};
_.ci.Object.defineProperties(ZQ,{template:{configurable:!0,enumerable:!0,get:function(){return WUD()}}});
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ZQ.prototype,"ytActionHandlerBehavior",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-page-manager"})],ZQ);_.h(ZQ,"ytd-page-manager",function(){return WUD()},{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var DPp;var Mn=function(){var c=_.z.apply(this,arguments)||this;c.useListItemStyles=_.F("web_list_item_style_for_menu_items");c.systemIcons=_.F("kevlar_system_icons");return c};
_.K(Mn,_.z);_.r=Mn.prototype;_.r.ready=function(){this.hostElement.addEventListener("tap",_.ia(this,this.onEndpointTapExtra))};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.r.onFocus=function(){var c;(c=_.r1(this.hostElement).querySelector("tp-yt-paper-item"))==null||c.focus()};
_.r.onEndpointTapExtra=function(c){_.CZ(this.hostElement,"iron-activate");var f=this.data.navigationEndpoint;f&&_.b(f,_.xJY)&&(c.stopPropagation(),_.ll(this.hostElement,[f],this.hostElement))};
_.r.computeIcon=function(c){return c&&c.iconType?_.Tu(c.iconType):""};
_.r.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.r.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.r.forceUpdateStylesOnLegacyBrowsers=function(){_.F("kevlar_legacy_browsers")&&_.la(this.hostElement)};
Mn.prototype.forceUpdateStylesOnLegacyBrowsers=Mn.prototype.forceUpdateStylesOnLegacyBrowsers;Mn.prototype.onFocus=Mn.prototype.onFocus;_.y([_.Q(_.fg),_.D("design:type",Object)],Mn.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.y73.YtConditionalRendererBehavior),_.D("design:type",Object)],Mn.prototype,"ytConditionalRendererBehavior",void 0);_.y([_.Q(_.F4.YtEndpointBehavior),_.D("design:type",Object)],Mn.prototype,"ytEndpointBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Mn.prototype,"data",void 0);_.y([_.L({computed:"computeIcon(data.icon)",value:""}),_.D("design:type",String)],Mn.prototype,"icon",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Mn.prototype,"useIcons",void 0);_.y([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Mn.prototype,"hasSeparator",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Mn.prototype,"useListItemStyles",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Mn.prototype,"systemIcons",void 0);_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Mn.prototype,"onFocus",null);_.y([_.m5("useIcons","hasSeparator"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Mn.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.h(Mn,"ytd-menu-navigation-item-renderer",function(){if(DPp===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);DPp=c}c=DPp;return c},{mode:1});var euS;var NYS=_.pC(_.HO("DOWNLOAD",{},"Download")),I3J=_.pC(_.HO("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),PcJ=_.pC(_.HO("RETRY",{},"Retry")),Ru3=_.pC(_.HO("PAUSE_DOWNLOADING",{},"Pause downloading")),UPD=_.pC(_.HO("RESUME_DOWNLOAD",{},"Resume download")),re=function(){var c=_.z.apply(this,arguments)||this;c.primaryText=NYS;c.primaryIconType="OFFLINE_DOWNLOAD";c.hasSecondaryContent=!1;c.hasSeparator=!1;c.transferState="TRANSFER_STATE_UNKNOWN";c.isVideoDeletedByUser=!1;c.isHidden=!1;c.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return c};
_.K(re,_.z);_.r=re.prototype;_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.r.onFocus=function(){this.primaryEntry.focus()};
_.r.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.r.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.r.getRemoveAction=function(){return"ACTION_REMOVE"};
_.r.sendOfflineAction=function(c){var f=this.data.serviceEndpoint;if(f){var d=_.b(f,_.tc);d&&c&&(d.action=c);this.ytComponentBehavior.resolveCommand(f)}};
_.r.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=NYS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=NYS;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=PcJ;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=I3J;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=UPD;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=I3J;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Ru3;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=I3J;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=I3J;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=NYS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.r.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.r.isSecondaryEntryHidden=function(c,f){return c?!0:!f};
_.r.computeHasSeparator=function(){var c;return!((c=this.data)==null||!c.hasSeparator)};
re.prototype.showHideButton=re.prototype.showHideButton;re.prototype.onTransferStateChange=re.prototype.onTransferStateChange;re.prototype.onFocus=re.prototype.onFocus;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],re.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],re.prototype,"ytComponentBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],re.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],re.prototype,"primaryText",void 0);_.y([_.L(),_.D("design:type",String)],re.prototype,"primaryIconType",void 0);_.y([_.L(),_.D("design:type",String)],re.prototype,"primaryAction",void 0);_.y([_.L(),_.D("design:type",Object)],re.prototype,"secondaryText",void 0);_.y([_.L(),_.D("design:type",String)],re.prototype,"secondaryIconType",void 0);
_.y([_.L(),_.D("design:type",String)],re.prototype,"secondaryAction",void 0);_.y([_.L(),_.D("design:type",Object)],re.prototype,"hasSecondaryContent",void 0);_.y([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.D("design:type",Object)],re.prototype,"hasSeparator",void 0);_.y([_.L({selector:_.hE,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.D("design:type",String)],re.prototype,"transferState",void 0);
_.y([_.L({selector:_.CKM,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.D("design:type",Object)],re.prototype,"isVideoDeletedByUser",void 0);_.y([_.L(),_.D("design:type",Object)],re.prototype,"isHidden",void 0);_.y([_.L({selector:_.fVG,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.D("design:type",Object)],re.prototype,"offlineabilityState",void 0);_.y([_.AY("#primary-entry"),_.D("design:type",Object)],re.prototype,"primaryEntry",void 0);
_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],re.prototype,"onFocus",null);_.y([_.ba("transferState","isVideoDeletedByUser"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],re.prototype,"onTransferStateChange",null);_.y([_.ba("offlineabilityState"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],re.prototype,"showHideButton",null);
_.h(re,"ytd-menu-service-item-download-renderer",function(){if(euS===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);euS=c}c=euS;return c},{mode:1});var pR3;var CI=function(){var c=_.z.apply(this,arguments)||this;c.useIcons=!1;c.systemIcons=_.F("kevlar_system_icons");c.useListItemStyles=_.F("web_list_item_style_for_menu_items");return c};
_.K(CI,_.z);_.r=CI.prototype;_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.r.onFocus=function(){var c;(c=_.r1(this.hostElement).querySelector("tp-yt-paper-item"))==null||c.focus()};
_.r.onTap=function(){_.kt(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var c=this.data.serviceEndpoint,f=this.data.command;if(c){var d,q=(d=this.data)==null?void 0:d.trackingParams;d=!!_.b(c,_.u$o);q&&d&&_.Gh().dispatch(_.CC({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:q}}));this.ytComponentBehavior.resolveCommand(c)||_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}})}f&&(this.ytComponentBehavior.resolveCommand(f)||_.ll(this.hostElement,
[f],this.hostElement))};
_.r.computeIcon=function(c){return c&&c.iconType?_.Tu(c.iconType):""};
_.r.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.r.computeHasSeparator=function(){var c;return!((c=this.data)==null||!c.hasSeparator)};
_.r.forceUpdateStylesOnLegacyBrowsers=function(){_.F("kevlar_legacy_browsers")&&_.la(this.hostElement)};
_.r.computeIsSelected=function(){var c;return!((c=this.data)==null||!c.isSelected)};
CI.prototype.forceUpdateStylesOnLegacyBrowsers=CI.prototype.forceUpdateStylesOnLegacyBrowsers;CI.prototype.onTap=CI.prototype.onTap;CI.prototype.onFocus=CI.prototype.onFocus;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],CI.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],CI.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.y73.YtConditionalRendererBehavior),_.D("design:type",Object)],CI.prototype,"ytConditionalRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],CI.prototype,"data",void 0);_.y([_.L({computed:"computeIcon(data.icon)",value:""}),_.D("design:type",String)],CI.prototype,"icon",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],CI.prototype,"useIcons",void 0);
_.y([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.D("design:type",Boolean)],CI.prototype,"hasSeparator",void 0);_.y([_.L({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.D("design:type",Boolean)],CI.prototype,"isSelected",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],CI.prototype,"systemIcons",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],CI.prototype,"useListItemStyles",void 0);
_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CI.prototype,"onFocus",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],CI.prototype,"onTap",null);_.y([_.m5("useIcons","hasSeparator"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CI.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.h(CI,"ytd-menu-service-item-renderer",function(){if(pR3===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);pR3=c}c=pR3;return c},{mode:2});var xPS;var ge=function(){return _.z.apply(this,arguments)||this};
_.K(ge,_.z);_.r=ge.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.onDataChanged=function(){var c=this;_.ol(this,function(){c.postbox.openDialog();c.focus();_.CZ(c.hostElement,"yt-refit")})};
_.r.focus=function(){this.postbox.focus()};
_.r.closePopup=function(){_.gS(this.hostElement,"yt-close-popup-action")};
_.r.onYtCommentboxDismiss=function(){this.closePopup()};
ge.prototype.onYtCommentboxDismiss=ge.prototype.onYtCommentboxDismiss;ge.prototype.onDataChanged=ge.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ge.prototype,"data",void 0);_.y([_.L({value:function(){return _.HO("SBOX_INAPPROPRIATE_CANCEL")}}),
_.D("design:type",String)],ge.prototype,"closeButtonAriaLabel",void 0);_.y([_.AY("#postbox"),_.D("design:type",Object)],ge.prototype,"postbox",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ge.prototype,"onDataChanged",null);_.y([_.Ta("yt-commentbox-dismiss"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ge.prototype,"onYtCommentboxDismiss",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],ge);
_.h(ge,"ytd-backstage-post-dialog-popup-renderer",function(){if(xPS!==void 0)return xPS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return xPS=c},{mode:1});var oe3;var kV=function(){return _.z.apply(this,arguments)||this};
_.K(kV,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],kV.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],kV);
_.h(kV,"ytd-sender-id-section-renderer",function(){if(oe3!==void 0)return oe3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return oe3=c},{mode:1});var Gnr;var cdC;var fT3;var Os=function(){return _.z.apply(this,arguments)||this};
_.K(Os,_.z);Os.prototype.closePopup=function(){_.gS(this.hostElement,"yt-close-popup-action")};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Os.prototype,"data",void 0);_.y([_.vj({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Os);
_.h(Os,"yt-community-post-section-renderer",function(){if(fT3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;cdC===void 0&&(cdC=document.createElement("template"));var q=cdC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);fT3=c}c=fT3;return c},{mode:2});var dgr;var jF3;var q7C;var ZQ3;var MzH;var rdJ;var lH=function(){return _.z.apply(this,arguments)||this};
_.K(lH,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],lH.prototype,"data",void 0);_.y([_.vj({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],lH);
_.h(lH,"yt-share-start-time-with-context-renderer",function(){if(rdJ===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;MzH===void 0&&(MzH=document.createElement("template"));var q=MzH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);rdJ=c}c=rdJ;return c},{mode:2});var ss=function(){return _.z.apply(this,arguments)||this};
_.K(ss,_.z);ss.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ss.prototype,"data",void 0);_.y([_.vj({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],ss);
_.h(ss,"yt-share-panel-title-v15-renderer",function(){if(ZQ3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;q7C===void 0&&(q7C=document.createElement("template"));var q=q7C;d.call(f,q.content.cloneNode(!0),c.content.firstChild);ZQ3=c}c=ZQ3;return c},{mode:2});var Bo=function(){return _.z.apply(this,arguments)||this};
_.K(Bo,_.z);Bo.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Bo.prototype,"data",void 0);_.y([_.vj({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Bo);
_.h(Bo,"yt-share-panel-header-renderer",function(){if(jF3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;dgr===void 0&&(dgr=document.createElement("template"));var q=dgr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);jF3=c}c=jF3;return c},{mode:2});var Cg3;var g4q;var iH=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-open-popup-action":"onOpen"};return c};
_.K(iH,_.z);_.r=iH.prototype;_.r.attached=function(){this.onOpen()};
_.r.updateTimeSecs=function(c){this.currentTimeSecs=c};
_.r.computeTimeString=function(c){c=c.toString();var f=Math.floor(Number(c)/3600),d=Math.floor(Number(c)%3600%60);return(f>0?f+":":"")+_.M0(Math.floor(Number(c)%3600/60),f>0?2:1)+":"+_.M0(d,2)};
_.r.computeTimeStringA11y=function(c){c=_.k7z({seconds:c});var f=c.hours===void 0?0:c.hours,d=c.minutes===void 0?0:c.minutes,q=c.seconds===void 0?0:c.seconds;c=[];if(f>0){var Z=lzC().format({hours:f});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.D8)||f>9999)Z=Z.replace(f.toString(),_.OtN(f)),_.D8==="km"&&(Z=Z.replace(".",","));c.push(Z)}d>0&&c.push(lzC().format({minutes:d}));q>0&&c.push(lzC().format({seconds:q}));f="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");d=_.D8==
"am"?"{0}\u1363 ":_.D8=="fa"?"{0}\u060c\u200f ":_.D8=="my"?"{0} - ":_.D8=="ne"?"{0},":_.D8=="th"?"{0} ":_.D8=="ur"?"{0}\u060c ":_.D8=="ar"||_.D8=="ar-XB"?"{0} \u0648":_.D8=="ja"||_.D8=="zh-CN"||_.D8=="zh-HK"||_.D8=="zh-TW"?"{0}\u3001":"{0}, ";q=_.D8=="am"?"\u1363 ":_.D8=="fa"?"\u060c\u200f ":_.D8=="my"?" - ":_.D8=="th"?" ":_.D8=="ur"?"\u060c ":_.D8=="ar"||_.D8=="ar-XB"?" \u0648":_.D8=="ja"||_.D8=="zh-CN"||_.D8=="zh-HK"||_.D8=="zh-TW"?"\u3001":", ";Z=_.D8=="am"?" \u12a5\u1293 {0}":_.D8=="as"?" \u0986\u09f0\u09c1 {0}":
_.D8=="az"?" v\u0259 {0}":_.D8=="bn"?" \u098f\u09ac\u0982 {0}":_.D8=="cs"?" a\u00a0{0}":_.D8=="de"?" und {0}":_.D8=="el"?" \u03ba\u03b1\u03b9 {0}":_.D8=="eu"?" eta {0}":_.D8=="fa"?"\u060c \u0648 {0}":_.D8=="fil"?", at {0}":_.D8=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.D8=="hi"?", \u0914\u0930 {0}":_.D8=="hu"?" \u00e9s {0}":_.D8=="hy"?" \u0587 {0}":_.D8=="id"?", dan {0}":_.D8=="iw"?" \u05d5-{0}":_.D8=="ja"?"\u3001{0}":_.D8=="ka"?" \u10d3\u10d0 {0}":_.D8=="km"?" \u1793\u17b7\u1784 {0}":_.D8=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.D8=="ko"?" \ubc0f {0}":_.D8=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.D8=="lt"?" ir {0}":_.D8=="lv"?" un {0}":_.D8=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.D8=="mr"?" \u0906\u0923\u093f {0}":_.D8=="ms"?" dan {0}":_.D8=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.D8=="ne"?" \u0930 {0}":_.D8=="or"?", \u0b13 {0}":_.D8=="pa"?" \u0a05\u0a24\u0a47 {0}":_.D8=="ro"?" \u0219i {0}":_.D8=="si"?", \u0dc3\u0dc4 {0}":_.D8=="sk"?" a {0}":_.D8=="sl"?" in {0}":_.D8=="sq"?" dhe {0}":_.D8=="sv"?" och {0}":
_.D8=="sw"?" na {0}":_.D8=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.D8=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.D8=="th"?" \u0e41\u0e25\u0e30{0}":_.D8=="tr"?" ve {0}":_.D8=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.D8=="uz"?" va {0}":_.D8=="vi"?" v\u00e0 {0}":_.D8=="zh-HK"?"\u53ca{0}":_.D8=="zu"?", ne-{0}":_.D8=="af"||_.D8=="nl"?" en {0}":_.D8=="ar"||_.D8=="ar-XB"?" \u0648{0}":_.D8=="be"||_.D8=="uk"?" \u0456 {0}":_.D8=="en-GB"||_.D8=="en-IN"?" and {0}":_.D8=="en"||_.D8=="en-XA"?
", and {0}":_.D8=="et"||_.D8=="fi"?" ja {0}":_.D8=="fr"||_.D8=="fr-CA"?" et {0}":_.D8=="zh-CN"||_.D8=="zh-TW"?"\u548c{0}":_.D8=="da"||_.D8=="is"||_.D8=="no"?" og {0}":_.D8=="es"||_.D8=="es-419"||_.D8=="es-US"?" y {0}":_.D8=="kk"||_.D8=="lo"||_.D8=="mn"?", {0}":_.D8=="bg"||_.D8=="mk"||_.D8=="ru"||_.D8=="sr"?" \u0438 {0}":_.D8=="gl"||_.D8=="it"||_.D8=="pt-BR"||_.D8=="pt-PT"?" e {0}":" i {0}";var M=_.D8=="am"?"{0} \u12a5\u1293 {1}":_.D8=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.D8=="az"?"{0} v\u0259 {1}":
_.D8=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.D8=="de"?"{0} und {1}":_.D8=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.D8=="eu"?"{0} eta {1}":_.D8=="fa"?"{0} \u0648 {1}":_.D8=="fil"?"{0} at {1}":_.D8=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.D8=="hi"?"{0} \u0914\u0930 {1}":_.D8=="hu"?"{0} \u00e9s {1}":_.D8=="hy"?"{0} \u0587 {1}":_.D8=="iw"?"{0} \u05d5-{1}":_.D8=="ja"?"{0}\u3001{1}":_.D8=="ka"?"{0} \u10d3\u10d0 {1}":_.D8=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.D8=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.D8=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.D8=="ko"?"{0} \ubc0f {1}":_.D8=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.D8=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.D8=="lt"?"{0} ir {1}":_.D8=="lv"?"{0} un {1}":_.D8=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.D8=="mn"?"{0}, {1}":_.D8=="mr"?"{0} \u0906\u0923\u093f {1}":_.D8=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.D8=="ne"?"{0} \u0930 {1}":_.D8=="or"?"{0} \u0b13 {1}":_.D8=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.D8=="ro"?"{0} \u0219i {1}":_.D8==
"si"?"{0} \u0dc3\u0dc4 {1}":_.D8=="sl"?"{0} in {1}":_.D8=="sq"?"{0} dhe {1}":_.D8=="sv"?"{0} och {1}":_.D8=="sw"?"{0} na {1}":_.D8=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.D8=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.D8=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.D8=="tr"?"{0} ve {1}":_.D8=="ur"?"{0} \u0627\u0648\u0631 {1}":_.D8=="uz"?"{0} va {1}":_.D8=="vi"?"{0} v\u00e0 {1}":_.D8=="zh-HK"?"{0}\u53ca{1}":_.D8=="zu"?"{0} ne-{1}":_.D8=="af"||_.D8=="nl"?"{0} en {1}":_.D8=="ar"||_.D8==
"ar-XB"?"{0} \u0648{1}":_.D8=="be"||_.D8=="uk"?"{0} \u0456 {1}":_.D8=="cs"||_.D8=="sk"?"{0} a\u00a0{1}":_.D8=="et"||_.D8=="fi"?"{0} ja {1}":_.D8=="fr"||_.D8=="fr-CA"?"{0} et {1}":_.D8=="id"||_.D8=="ms"?"{0} dan {1}":_.D8=="zh-CN"||_.D8=="zh-TW"?"{0}\u548c{1}":_.D8=="da"||_.D8=="is"||_.D8=="no"?"{0} og {1}":_.D8=="es"||_.D8=="es-419"||_.D8=="es-US"?"{0} y {1}":_.D8=="bg"||_.D8=="mk"||_.D8=="ru"||_.D8=="sr"?"{0} \u0438 {1}":_.D8=="en"||_.D8=="en-GB"||_.D8=="en-IN"||_.D8=="en-XA"?"{0} and {1}":_.D8==
"gl"||_.D8=="it"||_.D8=="pt-BR"||_.D8=="pt-PT"?"{0} e {1}":"{0} i {1}";_.D8==="sq"?(Z=Z.replace("dhe","e"),M=M.replace("dhe","e")):_.D8==="th"?(q=q.replace("{0}"," {0}"),M=M.replace("{0}","{0} "),M=M.replace("{1}"," {1}")):_.D8==="ne"?q=",":_.D8==="zh-CN"?q="":f.includes(_.D8)&&(q=" ");return c.length<2?c.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(_.D8)?c.length===2?
M.replace("{0}",c[0]).replace("{1}",c[1]):d.replace("{0}",c[0])+c.slice(1,-1).join(q)+Z.replace("{0}",c[c.length-1]):c.join(q)};
_.r.getTimeParam=function(){return XjC(this.timeString)};
_.r.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var c={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},f;_.mZ(_.bP(),(f=this.data)==null?void 0:f.trackingParams,c,7)};
_.r.onChangeStartAtTimestamp=function(){for(var c=this.startAtTimestamp.value.split(":"),f=0,d=1,q=c.length-1;q>=0;q--)f+=Number(c[q])*d,d*=60;this.updateTimeSecs(f);this.setTimestamp()};
_.r.onOpen=function(){var c=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var f=_.Ca();f?f.getPlayerPromise().then(function(d){d=d.getCurrentTime();c.updateTimeSecs(d)}):scq()&&this.updateTimeSecs(scq())};
_.r.setTimestamp=function(){var c=Math.floor(this.currentTimeSecs);_.gS(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!c,timestamp:c||""}])};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],iH.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],iH.prototype,"data",void 0);_.y([_.L({value:!1,notify:!0}),_.D("design:type",Boolean)],iH.prototype,"isStartAtChecked",void 0);_.y([_.L(),_.D("design:type",Number)],iH.prototype,"currentTimeSecs",void 0);
_.y([_.L({computed:"computeTimeString(currentTimeSecs)"}),_.D("design:type",String)],iH.prototype,"timeString",void 0);_.y([_.L({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.D("design:type",String)],iH.prototype,"timeStringA11y",void 0);_.y([_.AY("#start-at-timestamp"),_.D("design:type",Object)],iH.prototype,"startAtTimestamp",void 0);_.y([_.vj({is:"yt-start-at-renderer",disableElementRegistration:!0})],iH);
_.h(iH,"yt-start-at-renderer",function(){if(g4q===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Cg3===void 0&&(Cg3=document.createElement("template"));var q=Cg3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);g4q=c}c=g4q;return c},{mode:2});var kHJ;var OQG;var lTq=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"]]),sF3=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"]]),BAF=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var iQS={};iQS.YtBindingExpressionsBehavior={identity:_.Vn,msg:function(c,f){f=f===void 0?{}:f;return _.HO(c,f,c)},
msgPlural:function(c,f){return _.AQ(c,f)},
getMusicIconFromType:function(c){if(_.F("music_web_enable_icon_wil"))c=_.Tu(c);else if(sF3.has(c))c="yt-sys-icons:"+sF3.get(c);else{var f=lTq.get(c)||_.Tu(c).split(":")[1];f=_.Xnk(f);var d;c=((d=BAF.get(c))!=null?d:"yt-sys-icons:")+f}return c}};var TAp;var mgi;var HQr;var AdF=document.head,Y7Q=AdF.appendChild,FHr;if(HQr===void 0){var tz3=document.createElement("template");_.n(tz3,'\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>');HQr=tz3}FHr=HQr;Y7Q.call(AdF,FHr.content);var Tz=function(){var c=_.z.apply(this,arguments)||this;c.screenLayer=7;return c};
_.K(Tz,_.z);Tz.prototype.getScreenLayer=function(){return this.screenLayer};
Tz.prototype.onTap=function(c){c&&c.detail&&(c.detail.x||c.detail.y)&&_.r1(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.OX(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(c=this.getScreenLayer(),_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:c}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.ci.Object.defineProperties(Tz.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()}}});
Tz.prototype.onTap=Tz.prototype.onTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Tz.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Tz.prototype,"data",void 0);_.y([_.S("data.title"),_.D("design:type",Object),_.D("design:paramtypes",[])],Tz.prototype,"title",null);
_.y([_.S("data.serviceName"),_.D("design:type",String),_.D("design:paramtypes",[])],Tz.prototype,"icon",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Tz.prototype,"onTap",null);_.y([_.vj({is:"yt-share-target-renderer",disableElementRegistration:!0})],Tz);
_.h(Tz,"yt-share-target-renderer",function(){if(mgi===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;TAp===void 0&&(TAp=document.createElement("template"));var q=TAp;d.call(f,q.content.cloneNode(!0),c.content.firstChild);mgi=c}c=mgi;return c},{mode:2});var bQQ;var KHc;var mM=function(){var c=_.z.apply(this,arguments)||this;c.SHARE_TARGET_WIDTH=70;c.SHARE_TARGET_MARGIN_RIGHT=8;c.PAGE_SCROLL_SPEED=9;c.actionMap={"yt-share-panel-reset-action":"onReset_"};return c};
_.K(mM,_.z);_.r=mM.prototype;_.r.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.r.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.r1(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.r1(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.r.onReset_=function(){if(_.r1(this.hostElement).querySelector("#list")){var c=_.r1(this.hostElement).querySelector("#list");var f=_.r1(this.hostElement).querySelector("#list");var d=f.offsetLeft,q=f.offsetParent;q||_.TJv(f)!="fixed"||(q=_.X1(f).documentElement);if(q){if(_.lf&&!_.Bg(58)){var Z=_.Kcy(q);d+=Z.left}else Number(_.DEe)>=8&&!(Number(_.DEe)>=9)&&(Z=_.Kcy(q),d-=Z.left);f=_.tFr(q)?q.clientWidth-(d+f.offsetWidth):d}else f=d;Y_J(c,f);this.updateScrollButtons_()}};
_.r.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.r.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.r.onScrollWheel_=function(c){c.stopPropagation();c.preventDefault();var f=AKJ(_.r1(this.hostElement).querySelector("#list"));c=Math.abs(c.deltaX)>Math.abs(c.deltaY)?c.deltaX:c.deltaY;Y_J(_.r1(this.hostElement).querySelector("#list"),f+c);this.updateScrollButtons_()};
_.r.smoothScrollByOnePage_=function(c){var f=_.r1(this.hostElement).querySelector("#list"),d=(Math.floor(f.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,q=AKJ(f),Z=d*(c?1:-1),M=this.PAGE_SCROLL_SPEED,g=this.updateScrollButtons_.bind(this),O=0,l;(function H(){O+=M;l=O/d*2;Y_J(f,q+Z*(l<1?l*l:-l*l+4*l-2));O<d?window.requestAnimationFrame(H):g()})()};
_.r.updateScrollButtons_=function(){var c=AKJ(_.r1(this.hostElement).querySelector("#list")),f=_.r1(this.hostElement).querySelector("#list").scrollWidth-_.r1(this.hostElement).querySelector("#list").clientWidth;_.r1(this.hostElement).querySelector("#scroll-button-back").hidden=c<=0;_.r1(this.hostElement).querySelector("#scroll-button-forward").hidden=c>=f};
mM.prototype.onScrollWheel_=mM.prototype.onScrollWheel_;mM.prototype.onDataChanged_=mM.prototype.onDataChanged_;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],mM.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(iQS.YtBindingExpressionsBehavior),_.D("design:type",Object)],mM.prototype,"ytBindingExpressionsBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],mM.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mM.prototype,"onDataChanged_",null);_.y([_.Ta("wheel"),_.D("design:type",Function),_.D("design:paramtypes",[WheelEvent]),_.D("design:returntype")],mM.prototype,"onScrollWheel_",null);
_.y([_.vj({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],mM);
_.h(mM,"yt-third-party-share-target-section-renderer",function(){if(KHc===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;bQQ===void 0&&(bQQ=document.createElement("template"));var q=bQQ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);KHc=c}c=KHc;return c},{mode:2});var Ho=function(){return _.z.apply(this,arguments)||this};
_.K(Ho,_.z);Ho.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"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ho.prototype,"data",void 0);_.y([_.vj({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Ho);
_.h(Ho,"yt-third-party-network-section-renderer",function(){if(OQG===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;kHJ===void 0&&(kHJ=document.createElement("template"));var q=kHJ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);OQG=c}c=OQG;return c},{mode:2});_.g_(_.dN(function(c){return _.B("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.B("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.B(_.u7,{data:function(){return c.data().firstPartyItems}},{listItemViewModel:_.hX})))},"Eg"),"first-party-network-section-view-model",{props:{data:_.oM}});var E4C=_.pp(["data:image/svg+xml;charset=UTF-8;base64,",""]),A_=function(){var c=_.z.apply(this,arguments)||this;c.screenLayer=7;c.qrCodeEnabled=_.F("web_enable_sharing_qr_code");c.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return c};
_.K(A_,_.z);_.r=A_.prototype;_.r.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"}}}};
_.r.attached=function(){this.JSC$19892_scroller&&(this.JSC$19892_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19892_scroller.attached&&typeof this.JSC$19892_scroller.attached==="function"&&this.JSC$19892_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.r.onDataChanged=function(){var c=this,f;(f=this.data)!=null&&f.contents&&(this.hostElement.setAttribute("links-only","true"),_.kE(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.ol(this,function(){_.CZ(c.hostElement,"yt-refit");c.focusSharePanelHeader()}))};
_.r.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.r.handleSetTimestamp=function(c){var f=this.shortUrl();c.isSet&&(f=_.I_(f,"t",c.timestamp));this.maybeRenderQrCode(f)};
_.r.shortUrl=function(){var c,f=(c=this.data)==null?void 0:c.contents;if(f)for(c=0;c<f.length;c++){var d=void 0,q=void 0;if((d=f[c])==null?0:(q=d.thirdPartyNetworkSection)==null?0:q.copyLinkContainer){var Z=q=d=void 0;return(Z=_.b((d=f[c])==null?void 0:(q=d.thirdPartyNetworkSection)==null?void 0:q.copyLinkContainer,F1r))==null?void 0:Z.shortUrl}}};
_.r.maybeRenderQrCode=function(c){var f=this,d,q,Z,M,g,O,l,m,H;return _.k(function(A){if(A.nextAddress==1){d=_.r1(f.hostElement).querySelector("#qr-code");if(!f.qrCodeEnabled||!c)return d&&(d.style.display="none"),A.return();q=_.enP(_.ql().resolve(_.mt),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Z=document.createElement("div");return typeof q==="function"?(q(Z),A.jumpTo(2)):A.yield(q,3)}A.nextAddress!=2&&(M=A.yieldResult,M(Z));l=(g=Z)==null?void 0:(O=g.firstChild)==null?void 0:O.firstChild;
m=document.createElement("img");H=_.G8k(E4C,btoa(l.outerHTML));m.onload=function(){var Y={canvas:d,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:m},t=new WdH;R4Q(t,c);U$F(t,!1,pb3(t));var E=t.modules,J=Object.assign({},ln3,Y);E=structuredClone(E);Y=E.length;var X,u=(X=J.canvas)!=null?X:document.createElement("canvas");X=J.cellSize;t=J.logo;var W,p=(W=J.logoSize)!=null?W:Math.floor(Y/4);Y%2!==p%2&&p++;var N=J.logoPadding,I=J.backgroundColor;W=Y*X;var R=
J.width,qN=0;R&&(qN=J.padding,qN=Math.ceil(qN*W/(R-qN*2)),u.style.width=R+"px",u.style.height=R+"px");u.width!==W+qN*2&&(u.width=W+qN*2);u.height!==W+qN*2&&(u.height=W+qN*2);W=u.getContext("2d");J.autoClear&&W.clearRect(0,0,u.width,u.height);W.fillStyle=I;W.beginPath();W.roundRect(0,0,u.width,u.height,J.borderRadius);W.fill();W.save();W.translate(qN,qN);if(t)for(u=Math.floor(Y-p)/2-N,N=Math.floor(Y+p)/2+N,I=u;I<N;I++)for(R=u;R<N;R++)E[I][R]=!1;for(u=0;u<Y;u++)for(N=0;N<Y;N++)(u<7&&N<7||u<7&&N>=Y-
7||u>=Y-7&&N<7)&&(E[u][N]=!1);var kl;u=(kl=J.markerColor)!=null?kl:J.color;oCS(W,0,0,X,u);oCS(W,X*(Y-7),0,X,u);oCS(W,0,X*(Y-7),X,u);switch(J.cellStyle){case 0:kl=E;E=kl.length;u=J.cellSize;W.beginPath();for(N=0;N<E;N++)for(I=0;I<E;I++)kl[N][I]&&W.rect(N*u,I*u,u,u);W.fillStyle=J.color;W.fill();break;case 1:kl=E;E=kl.length;u=J.cellSize;N=u*J.relativeCircleSize;W.fillStyle=J.color;W.beginPath();for(J=0;J<E;J++)for(I=0;I<E;I++)kl[J][I]&&(W.beginPath(),W.ellipse((J+.5)*u,(I+.5)*u,N/2,N/2,0,0,2*Math.PI),
W.fill());W.fill();break;case 2:kl=E;E=kl.length;u=J.cellSize;W.fillStyle=J.color;J=[[1,1],[-1,1],[-1,-1],[1,-1]];W.beginPath();for(N=0;N<E;N++)for(I=0;I<E;I++)if(kl[N][I])W.roundRect(N*u,I*u,u,u,u/2),N+1<E&&kl[N+1][I]&&W.rect(N*u+u/2,I*u,u,u),I+1<E&&kl[N][I+1]&&W.rect(N*u,I*u+u/2,u,u);else{R=N*u+u/2;qN=I*u+u/2;for(var BN=0;BN<4;BN++){var tP=_.C(J[BN]),EC=tP.next().value;tP=tP.next().value;N+EC>=0&&N+EC<E&&I+tP>=0&&I+tP<E&&kl[N+EC][I]&&kl[N][I+tP]&&kl[N+EC][I+tP]&&(EC=BN*Math.PI/2,tP=u/2,W.moveTo(R+
tP*Math.cos(EC),qN+tP*Math.sin(EC)),W.arc(R,qN,u/2,EC,EC+Math.PI/2,!1),W.lineTo(R+tP*(Math.cos(EC)-Math.sin(EC)),qN+tP*(Math.cos(EC)+Math.sin(EC))),W.lineTo(R+tP*Math.cos(EC),qN+tP*Math.sin(EC)))}}W.fill()}t&&W.drawImage(t,(Y-p)*X/2,(Y-p)*X/2,p*X,p*X);W.restore();d.style.removeProperty("display")};
m.src=_.Lq(H);_.Fm(A)})};
_.r.hasCommunityPostRenderer=function(){var c,f,d,q;return!!((c=this.data)==null?0:(f=c.header)==null?0:(d=f.sharePanelHeaderRenderer)==null?0:(q=d.communityPost)==null?0:q.communityPostSectionRenderer)};
_.r.onTapClose=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.r.getScreenLayer=function(){return this.screenLayer};
_.r.logSharePanelPage=function(){if(!_.F("enable_share_panel_navigation_logging_fix_on_web")){var c;if((c=this.data)!=null&&c.trackingParams){c=this.data.trackingParams;var f=this.parentClickTrackingParams;f=f?_.Q1(f):void 0;var d=_.bP();_.s8(d,21760,f,{layer:7,parentLayer:0});d.graftServerVe(c,void 0,7);_.Gh().dispatch(_.CC({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
A_.prototype.onDataChanged=A_.prototype.onDataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],A_.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],A_.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],A_.prototype,"data",void 0);_.y([_.L({value:_.HO("SBOX_INAPPROPRIATE_CANCEL")}),_.D("design:type",String)],A_.prototype,"closeButtonAriaLabel",void 0);_.y([_.AY("yt-share-panel-header-renderer"),_.D("design:type",HTMLElement)],A_.prototype,"header",void 0);_.y([_.L({selector:function(c){return c.share.parentClickTrackingParams}}),
_.D("design:type",String)],A_.prototype,"parentClickTrackingParams",void 0);_.y([_.L(),_.D("design:type",Object)],A_.prototype,"qrCodeEnabled",void 0);_.y([_.AY("#scroller"),_.D("design:type",Object)],A_.prototype,"JSC$19892_scroller",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],A_.prototype,"onDataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],A_);
_.h(A_,"ytd-unified-share-panel-renderer",function(){if(Gnr!==void 0)return Gnr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Gnr=c},{mode:1});var n43;var YV=function(){var c=_.z.apply(this,arguments)||this;c.modernModal=!0;return c};
_.K(YV,_.z);YV.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
YV.prototype.computeShouldHideOldButtons=function(){var c;return!((c=this.data)==null?0:c.button)};
_.ci.Object.defineProperties(YV.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var c,f;return(c=this.data)==null?void 0:(f=c.button)==null?void 0:f.buttonRenderer}}});
_.y([_.L(),_.D("design:type",Object)],YV.prototype,"data",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],YV.prototype,"ytEventForwardingBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],YV.prototype,"modernModal",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],YV.prototype,"buttonRendererData",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],YV);
_.h(YV,"ytd-modal-with-title-and-button-renderer",function(){if(n43!==void 0)return n43;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return n43=c},{mode:1});var $gG;var Fa=function(){return _.z.apply(this,arguments)||this};
_.K(Fa,_.z);Fa.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("page-changed",this.page))};
Fa.prototype.pageChangedForBinding=Fa.prototype.pageChangedForBinding;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Fa.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],Fa.prototype,"page",void 0);_.y([_.m5("page"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Fa.prototype,"pageChangedForBinding",null);
_.y([_.v({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Fa);
_.h(Fa,"ytd-account-item-section-header-renderer",function(){if($gG!==void 0)return $gG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $gG=c},{mode:1});var QFr;var t_=function(){return _.z.apply(this,arguments)||this};
_.K(t_,_.z);t_.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"}}}};
t_.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],t_.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],t_.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!1}),_.D("design:type",Function)],t_.prototype,"onAccountItemTap",void 0);
_.y([_.v({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],t_);
_.h(t_,"ytd-account-item-section-renderer",function(){if(QFr!==void 0)return QFr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return QFr=c},{mode:1});var S7q;var LHJ;var bH=function(){return _.z.apply(this,arguments)||this};
_.K(bH,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bH.prototype,"data",void 0);_.y([_.v({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],bH);
_.h(bH,"ytd-accounts-dialog-header-renderer",function(){if(LHJ!==void 0)return LHJ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return LHJ=c},{mode:1});var z0Q;var KI=function(){return _.z.apply(this,arguments)||this};
_.K(KI,_.z);KI.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],KI.prototype,"data",void 0);_.y([_.v({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],KI);
_.h(KI,"ytd-google-account-header-renderer",function(){if(z0Q!==void 0)return z0Q;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return z0Q=c},{mode:1});var Es=function(){return _.z.apply(this,arguments)||this};
_.K(Es,_.z);Es.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"}}}};
Es.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("page-changed",this.page))};
Es.prototype.pageChangedForBinding=Es.prototype.pageChangedForBinding;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Es.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],Es.prototype,"page",void 0);
_.y([_.m5("page"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Es.prototype,"pageChangedForBinding",null);_.y([_.v({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Es);
_.OD()(Es,"ytd-account-section-list-renderer",function(){if(S7q===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);S7q=c}c=S7q;return c},{allowedProps:["data"],
mode:1});var JdC;var nI=function(){var c=_.z.apply(this,arguments)||this;c.enableHandlesAccountMenuSwitcher=_.F("enable_handles_account_menu_switcher");return c};
_.K(nI,_.z);nI.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
nI.prototype.dataChanged=nI.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nI.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],nI.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.y([_.AY("#avatar"),_.D("design:type",Object)],nI.prototype,"avatar",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nI.prototype,"dataChanged",null);_.y([_.v({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],nI);
_.OD()(nI,"ytd-active-account-header-renderer",function(){if(JdC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);JdC=c}c=JdC;return c},{allowedProps:["data"],
mode:1});var aTS;var Vzc;var $V=function(){return _.z.apply(this,arguments)||this};
_.K($V,_.z);$V.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$V.prototype.onBackTap=function(){_.CZ(this.hostElement,"yt-menu-back-tapped")};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$V.prototype,"data",void 0);_.y([_.v({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],$V);
_.OD()($V,"ytd-simple-menu-header-renderer",function(){if(Vzc===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);Vzc=c}c=Vzc;return c},{allowedProps:["data"],
mode:2});var XXi;var Qw=function(){return _.z.apply(this,arguments)||this};
_.K(Qw,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Qw.prototype,"data",void 0);_.y([_.v({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Qw);
_.h(Qw,"ytd-comment-video-thumbnail-header-renderer",function(){if(XXi!==void 0)return XXi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return XXi=c},{mode:1});var uH3;var SS=function(){return _.z.apply(this,arguments)||this};
_.K(SS,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],SS.prototype,"data",void 0);_.y([_.v({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],SS);
_.h(SS,"ytd-abuse-type-selector-renderer",function(){if(uH3!==void 0)return uH3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return uH3=c},{mode:1});var v4C;var LI=function(){return _.z.apply(this,arguments)||this};
_.K(LI,_.z);LI.prototype.attached=function(){var c=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){c.additionalContextInput.focusTextInput()})};
LI.prototype.handleAdditionalContextChanged=function(){var c=this;_.Ia(this,"ytd-report-channel-additional-context-update",function(){c.ytdReduxBehavior.dispatch(_.CC({type:"ADDITIONAL_CONTEXT_UPDATED",payload:c.additionalContext}))},300)};
LI.prototype.updateAdditionalContextFromBinding=function(c){this.additionalContext=c.detail.value};
LI.prototype.handleAdditionalContextChanged=LI.prototype.handleAdditionalContextChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],LI.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",String)],LI.prototype,"additionalContext",void 0);_.y([_.L({selector:function(c){return c.reportChannelAbuse.additionalContext}}),
_.D("design:type",String)],LI.prototype,"additionalContextRedux",void 0);_.y([_.L(),_.D("design:type",Object)],LI.prototype,"data",void 0);_.y([_.AY("yt-text-input-form-field-renderer"),_.D("design:type",Object)],LI.prototype,"additionalContextInput",void 0);_.y([_.m5("additionalContext"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LI.prototype,"handleAdditionalContextChanged",null);
_.y([_.v({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],LI);
_.h(LI,"ytd-report-channel-modal-additional-context-renderer",function(){if(v4C!==void 0)return v4C;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return v4C=c},{mode:1});var h0D;var zz=function(){var c=_.z.apply(this,arguments)||this;c.nextButtonDisabled=null;c.submitEndpoint=null;c.navigationEndpoint=null;c.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return c};
_.K(zz,_.z);_.r=zz.prototype;_.r.computeNextButtonData=function(c,f,d){var q={};f&&(q.navigationEndpoint=f);d&&(q.serviceEndpoint=d);c&&c.buttonRenderer&&_.zV.extend(q,c.buttonRenderer);return q};
_.r.handleReportChannelModalDisableNextButtonAction=function(c){this.setNextButtonIsDisabled(c)};
_.r.handleReportFormEndpointUpdateAction=function(c){this.setNextButtonIsDisabled(!!c.disableSubmitButton);this.resetEndpointData();c.submitEndpoint?this.submitEndpoint=c.submitEndpoint:c.submitNavigationEndpoint&&(this.navigationEndpoint=c.submitNavigationEndpoint)};
_.r.handleSignalActionSubmitForm=function(){var c,f=Object.keys(((c=this.reportChannelAbuseForm)==null?void 0:c.selectedVideoIds)||{}),d;c=((d=this.reportChannelAbuseForm)==null?void 0:d.additionalContext)||"";var q;d=((q=this.reportChannelAbuseForm)==null?void 0:q.impersonatedChannelUrl)||"";var Z;if((Z=this.data)==null?0:Z.submitEndpoint){f={impersonated_channel_url:d,text:c,video_ids:f};var M;_.ql().resolve(_.ZM).resolveCommand((M=this.data)==null?void 0:M.submitEndpoint,{form:Object.assign({},
f,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.r.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.r.onYtServiceRequestError=function(c){this.setNextButtonIsDisabled(!1);_.fO(this.hostElement,c.detail.error.message)};
_.r.setNextButtonIsDisabled=function(c){this.set("data.nextButton.buttonRenderer.isDisabled",c)};
_.r.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
zz.prototype.onYtServiceRequestError=zz.prototype.onYtServiceRequestError;zz.prototype.onYtServiceRequestCompleted=zz.prototype.onYtServiceRequestCompleted;_.y([_.L(),_.D("design:type",Object)],zz.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],zz.prototype,"nextButtonDisabled",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],zz.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],zz.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zz.prototype,"submitEndpoint",void 0);_.y([_.L(),_.D("design:type",Object)],zz.prototype,"navigationEndpoint",void 0);_.y([_.L({selector:function(c){return c.reportChannelAbuse}}),
_.D("design:type",Object)],zz.prototype,"reportChannelAbuseForm",void 0);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],zz.prototype,"onYtServiceRequestCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],zz.prototype,"onYtServiceRequestError",null);
_.y([_.v({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],zz);
_.h(zz,"ytd-report-channel-modal-footer-renderer",function(){if(h0D!==void 0)return h0D;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return h0D=c},{mode:1});var wX3;var J_=function(){var c=_.z.apply(this,arguments)||this;c.boundOnTapDismissButton=function(){c.closePopup()};
return c};
_.K(J_,_.z);J_.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
J_.prototype.handleDataChanged=function(){_.UN(this.hostElement)};
J_.prototype.closePopup=function(){_.gS(this.hostElement,"yt-close-popup-action")};
J_.prototype.handleDataChanged=J_.prototype.handleDataChanged;_.y([_.L(),_.D("design:type",Object)],J_.prototype,"boundOnTapDismissButton",void 0);_.y([_.L(),_.D("design:type",Object)],J_.prototype,"data",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],J_.prototype,"handleDataChanged",null);_.y([_.v({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],J_);
_.h(J_,"ytd-report-channel-modal-header-renderer",function(){if(wX3!==void 0)return wX3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return wX3=c},{mode:1});var ydC;var a1=function(){var c=_.z.apply(this,arguments)||this;c.autoValidate=!1;c.invalid=!1;c.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return c};
_.K(a1,_.z);_.r=a1.prototype;_.r.attached=function(){var c=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){c.channelUrlInput.focusTextInput()})};
_.r.disableNextButton=function(c){_.gS(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[c])};
_.r.handleImpersonatedChannelUrlChanged=function(){var c=this;this.disableNextButton(!0);this.invalid=!1;_.Ia(this,"ytd-report-channel-impersonated-channel-update",function(){var f=c.impersonatedChannelUrl.trim();c.ytdReduxBehavior.dispatch(_.CC({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:f}));var d;((d=c.data)==null?0:d.submitEndpoint)&&f&&_.ql().resolve(_.ZM).resolveCommand(c.data.submitEndpoint,{form:{impersonated_channel_url:f,element:c.hostElement}})},500)};
_.r.handleModifyReportFormCommand=function(c){this.invalid=this.get("modifyReportFormCommand.action",c)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.r.updateInvalidFromBinding=function(c){this.invalid=c.detail.value};
_.r.updateImpersonatedChannelUrlFromBinding=function(c){this.impersonatedChannelUrl=c.detail.value};
a1.prototype.handleImpersonatedChannelUrlChanged=a1.prototype.handleImpersonatedChannelUrlChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],a1.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],a1.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],a1.prototype,"autoValidate",void 0);_.y([_.L(),_.D("design:type",Object)],a1.prototype,"invalid",void 0);
_.y([_.L(),_.D("design:type",String)],a1.prototype,"impersonatedChannelUrl",void 0);_.y([_.L({selector:function(c){return c.reportChannelAbuse.impersonatedChannelUrl}}),
_.D("design:type",String)],a1.prototype,"impersonatedChannelUrlRedux",void 0);_.y([_.L(),_.D("design:type",Object)],a1.prototype,"data",void 0);_.y([_.AY("#text-input"),_.D("design:type",Object)],a1.prototype,"channelUrlInput",void 0);_.y([_.m5("impersonatedChannelUrl"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],a1.prototype,"handleImpersonatedChannelUrlChanged",null);
_.y([_.v({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],a1);
_.h(a1,"ytd-report-channel-modal-impersonation-renderer",function(){if(ydC!==void 0)return ydC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ydC=c},{mode:1});var WHc;var DgG;var Vw=function(){return _.z.apply(this,arguments)||this};
_.K(Vw,_.z);Vw.prototype.onCheckboxToggled=function(c){var f,d,q=(d=_.b((f=this.data)==null?void 0:f.video,_.ew))==null?void 0:d.videoId;q&&this.ytdReduxBehavior.dispatch(c.target.checked?_.CC({type:"VIDEO_SELECTED",payload:q}):_.CC({type:"VIDEO_UNSELECTED",payload:q}))};
Vw.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.ci.Object.defineProperties(Vw.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var c,f=(c=this.data)==null?void 0:c.video;if(!f)return{};var d;c=(d=_.b(f,_.ew))==null?void 0:d.navigationEndpoint;if(!c)return f;_.b(c==null?void 0:c.commandMetadata,_.jO)&&(_.b(c.commandMetadata,_.jO).ignoreNavigation=!0);return f}}});
_.y([_.L({reflectToAttribute:!0,selector:function(c,f){return f in c.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.D("design:type",Boolean)],Vw.prototype,"checked",void 0);_.y([_.L(),_.D("design:type",Object)],Vw.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Vw.prototype,"video",null);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],Vw.prototype,"ytdReduxBehavior",void 0);_.y([_.v({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Vw);
_.h(Vw,"ytd-selectable-video-renderer",function(){if(DgG!==void 0)return DgG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DgG=c},{mode:1});var Xa=function(){var c=_.z.apply(this,arguments)||this;c.monitorScroll=!0;return c};
_.K(Xa,_.z);Xa.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Xa.prototype,"data",void 0);_.y([_.v({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Xa);
_.h(Xa,"ytd-selectable-video-list-renderer",function(){if(WHc!==void 0)return WHc;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return WHc=c},{mode:1});var e0G;_.w_("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var uH=function(){return _.z.apply(this,arguments)||this};
_.K(uH,_.z);uH.prototype.onChange=function(c){if(c=_.oV(c).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.F("kevlar_command_handler_migration_killswitch"))_.ll(this.hostElement,c,this.hostElement);else{c=_.C(c);for(var f=c.next();!f.done;f=c.next())this.ytComponentBehavior.resolveCommand(f.value)}};
uH.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
uH.prototype.updateDataToggledFromBinding=function(c){this.set("data.toggled",c.detail.value)};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],uH.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],uH.prototype,"data",void 0);_.y([_.L({computed:"isEnabled(data)"}),_.D("design:type",Boolean)],uH.prototype,"enabled",void 0);_.y([_.v({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],uH);
_.h(uH,"ytd-toggle-item-renderer",function(){if(e0G!==void 0)return e0G;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return e0G=c},{mode:1});var NAS;var IT3;var PgC;var vo=function(){var c=_.z.apply(this,arguments)||this;c.setVisible=!1;c.boundOnSubmitButtonClick=function(){c.onSubmitButtonClick()};
c.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return c};
_.K(vo,_.z);vo.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}}}}}};
vo.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
vo.prototype.onSubmitButtonClick=function(){var c;((c=this.data)==null?0:c.submitEndpoint)&&!_.F("enable_ytc_refunds_submit_form_signal_action")&&_.OX(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
vo.prototype.handleSignalActionSubmitForm=function(){var c;((c=this.data)==null?0:c.submitEndpoint)&&_.OX(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.ci.Object.defineProperties(vo.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.hiddenByDefault)&&!this.setVisible}}});
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],vo.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],vo.prototype,"setVisible",void 0);_.y([_.L(),_.D("design:type",Object)],vo.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],vo.prototype,"surveyFeedbackData",void 0);_.y([_.L(),_.D("design:type",Object)],vo.prototype,"boundOnSubmitButtonClick",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data","setVisible"),_.D("design:type",Object),_.D("design:paramtypes",[])],vo.prototype,"visibilityHidden",null);_.y([_.vj({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],vo);
_.h(vo,"yt-flow-footer-renderer",function(){if(PgC===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;IT3===void 0&&(IT3=document.createElement("template"));var q=IT3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);PgC=c}c=PgC;return c},{mode:2});var h_=function(){return _.z.apply(this,arguments)||this};
_.K(h_,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],h_.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],h_.prototype,"data",void 0);_.y([_.L({selector:function(c){return c.ypc.surveyFeedbackData}}),
_.D("design:type",Object)],h_.prototype,"surveyFeedbackData",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],h_);
_.h(h_,"ytd-flow-footer-renderer",function(){if(NAS!==void 0)return NAS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return NAS=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var R0Q;var UgS;var we=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return c};
_.K(we,_.z);_.r=we.prototype;_.r.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.yy("multiPageMenuSectionItems")}}};
_.r.handleHideEnclosingAction_=function(c){if(this.data&&this.data.items)for(var f=0;f<this.data.items.length;f++){var d=this.data.items[f].notificationRenderer;if(d&&d.notificationId==c.hideEnclosingAction.notificationId){this.splice("data.items",f,1);_.gS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.r.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.kE(this.hostElement,"hidden",!0)};
_.r.updateMenu_=function(c){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&c&&!c.doNotRefreshInbox){c=this.data.continuations;for(var f=0;f<c.length;f++)if(c[f].invalidationContinuationData){var d=void 0;var q=(d=c[f].invalidationContinuationData)==null?void 0:d.continuation;break}c=_.zV.clone(this.data.continuationUpdateEndpoint||null);c.continuation=q;c.click_tracking_params=this.data.trackingParams;_.OX(this.hostElement,[c])}};
_.r.onServiceRequestCompleted_=function(c,f){if(this.data&&(c=f.actions)){f=0;for(var d=c.length;f<d;f++){var q=_.b(c[f],_.hqy);if(!q)break;if((q.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||q.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&q.continuationItems&&this.data.items){var Z=this.data.items.length-1;this.data.items[Z].continuationItemRenderer&&(q=["data.items",Z,1].concat(q.continuationItems),this.splice.apply(this,q))}}}};
we.prototype.onServiceRequestCompleted_=we.prototype.onServiceRequestCompleted_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],we.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],we.prototype,"data",void 0);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],we.prototype,"onServiceRequestCompleted_",null);_.y([_.vj({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],we);
_.OD()(we,"yt-multi-page-menu-section-renderer",function(){if(UgS===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;R0Q===void 0&&(R0Q=document.createElement("template"));var q=R0Q;d.call(f,q.content.cloneNode(!0),c.content.firstChild);UgS=c}c=UgS;return c},{allowedProps:["data"],
mode:2});var pXJ;var xgD;var yw=function(){return _.z.apply(this,arguments)||this};
_.K(yw,_.z);yw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.ci.Object.defineProperties(yw.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.progress)==null?0:this.data.progress*100}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yw.prototype,"data",void 0);_.y([_.S("data.progress"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],yw.prototype,"showProgressBar",null);
_.y([_.S("data.progress"),_.D("design:type",Number),_.D("design:paramtypes",[])],yw.prototype,"progress",null);_.y([_.vj({is:"yt-flow-header-renderer",disableElementRegistration:!0})],yw);
_.h(yw,"yt-flow-header-renderer",function(){if(xgD===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;pXJ===void 0&&(pXJ=document.createElement("template"));var q=pXJ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);xgD=c}c=xgD;return c},{mode:2});var o4c;var GH3;var Wo=function(){return _.z.apply(this,arguments)||this};
_.K(Wo,_.z);Wo.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Wo.prototype,"data",void 0);_.y([_.vj({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Wo);
_.h(Wo,"yt-post-confirmation-flow-step-renderer",function(){if(GH3===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;o4c===void 0&&(o4c=document.createElement("template"));var q=o4c;d.call(f,q.content.cloneNode(!0),c.content.firstChild);GH3=c}c=GH3;return c},{mode:2});var cbD;var fvH;var DQ=function(){return _.z.apply(this,arguments)||this};
_.K(DQ,_.z);
DQ.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"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],DQ.prototype,"data",void 0);_.y([_.vj({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],DQ);
_.h(DQ,"yt-refund-confirmation-flow-step-renderer",function(){if(fvH===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;cbD===void 0&&(cbD=document.createElement("template"));var q=cbD;d.call(f,q.content.cloneNode(!0),c.content.firstChild);fvH=c}c=fvH;return c},{mode:2});_.ZB(ujC);_.ZB(vEi);var hBc=_.La({avatarViewModel:_.ag});_.ZB(wj3);var B3=_.La({commentInteractionViewModel:vEi,sharedSubscriptionViewModel:wj3,buttonViewModel:_.mN,horizontalShelfViewModel:_.yo}),dvQ=_.bS(I_r);_.ZB(W5p);_.ZB(DhC);_.ZB(eB3);_.ZB(N1C);_.ZB(I_r);var PaC=_.La({profileIdentityInfoViewModel:_.PmF,profileInfoViewModel:I_r});_.ZB(RBC);var jAc=_.dN(function(c){var f=c.data;var d=function(){return f().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.B("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},_.B(_.u7,{data:function(){return f().profileIdentityInfo}},{profileIdentityInfoViewModel:function(q){return _.B(_.feC,{data:q.data,
hideDivider:d,isChannelInfoCard:d})},
profileInfoViewModel:dvQ}),_.B(_.u7,{data:function(){return f().profileInfo}},{profileIdentityInfoViewModel:_.feC,
profileInfoViewModel:dvQ}))},"Fg"),qQq=_.F("web_enable_sink_profile_card_view_model")?jAc:RBC,ZlH=_.F("web_enable_sink_profile_card_view_model")?jAc:_.bS(RBC);
jAc.idomCompat=!0;_.F("web_enable_sink_profile_card_view_model")?_.g_(ZlH,"yt-profile-card-view-model",{props:{data:_.oM}}):_.m$(qQq,"yt-profile-card-view-model",{propNames:["data"]});var eS=function(){var c=_.z.apply(this,arguments)||this;c.enableFocusFix=_.F("music_web_enable_focus_on_setting_menu_fix")&&_.wi("IS_MOBILE_WEB",!1);c.covered=!1;c.hideMenu=!1;c.isCommentNotificationOnProfileCard=!1;c.scrolledByTouch=!1;c.disableBackdropFilter=_.F("web_disable_backdrop_filter");c.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return c};
_.K(eS,_.z);_.r=eS.prototype;
_.r.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"}}}};
_.r.ready=function(){var c=this;this.JSC$20004_containerElement.addEventListener("scroll",function(){c.ytRendererBehavior.markDirty()})};
_.r.attributeChanged=function(c,f){c==="menu-style"&&_.gS(this.hostElement,"yt-multi-page-menu-closed-action",[f])};
_.r.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ia(this,this.focusOnStampFinished))};
_.r.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.ia(this,this.focusOnStampFinished))};
_.r.reset=function(){this.closeJobId&&(_.a7.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.r.focusOnStampFinished=function(c){c.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ia(this,this.focusOnStampFinished)),this.doFocus())};
_.r.doFocus=function(){var c=_.DCy(this.sectionsElement);c.length&&c[0].focus()};
_.r.computeMenuStyle=function(c){return c?c.toLowerCase().replace(/_/g,"-"):""};
_.r.computeIsCommentNotificationOnProfileCard=function(c){return _.F("enable_profile_cards_on_comments")&&c.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.r.computeHideMenu=function(c,f){return c||!(!f||!f.showLoadingSpinner)};
_.r.onPopupClosed=function(){this.isPopUpOpen=!1;_.gS(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.r.onPopupOpened=function(c,f){this.isPopUpOpen=!0;f.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.CZ(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.CC({type:"CHANNEL_REPORT_RESET"})))};
_.r.onYtNavigate=function(c,f){this.shouldCloseOnNavigateEvent(f.endpoint)&&_.gS(this.hostElement,"yt-close-all-popups-action")};
_.r.handleEndpoint=function(c){c=_.b(c,_.vQ);!this.isCommentNotificationOnProfileCard&&c&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20004_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.r.handleActions=function(c){for(var f=0,d=c.length;f<d;f++){var q=_.b(c[f],K1F);q&&this.handleGetMultiPageMenuAction(q);(q=_.b(c[f],_.hqy))&&this.handleAppendContinuationItemsAction(q)}};
_.r.onServiceRequestSentOrCompleted=function(c,f){c.detail&&c.detail.endpoint&&this.handleEndpoint(c.detail.endpoint);f.actions&&this.handleActions(f.actions)};
_.r.handleGetMultiPageMenuAction=function(c){var f=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.r1(this.submenuElement).appendChild(f);(c=c.menu.multiPageMenuRenderer)&&this.logSubmenu(c);f.data=c;f.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.r.handleAppendContinuationItemsAction=function(c){if(this.data&&c.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&c.continuationItems&&this.data.sections){var f=this.data.sections.length-1;this.data.sections[f].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),f--);if(this.data.sections[f].multiPageMenuNotificationSectionRenderer&&c.continuationItems){c=_.C(c==null?void 0:c.continuationItems);for(var d=c.next();!d.done;d=c.next())if(d=d.value,_.b(d,x2r)){var q=
void 0,Z=void 0,M=void 0,g=void 0,O=void 0;((q=this)==null?0:(Z=q.data)==null?0:(M=Z.sections)==null?0:(g=M[f])==null?0:(O=g.multiPageMenuNotificationSectionRenderer)==null?0:O.items)&&this.push("data.sections."+f+".multiPageMenuNotificationSectionRenderer.items",d)}else if(_.b(d,_.$K_)||_.b(d,_.jJ))this.push("data.sections",d),f++}}};
_.r.logSubmenu=function(c){if(!_.F("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var f=this.ytRendererBehavior.getScreenLayer(),d=_.X2(f),q=_.V5(f);if((c=c.trackingParams)&&d&&q){var Z=_.Q1(c);_.F("combine_ve_grafts")?_.bP().graftServerVe(c,q,f):_.Dr(d,q,Z)}}};
_.r.emptySubmenuContainer=function(){for(var c=_.r1(this.submenuElement);c.firstChild;)c.removeChild(c.firstChild)};
_.r.onMenuBackTap=function(c){_.CZ(this.hostElement,"yt-submenu-closed");c.stopPropagation()};
_.r.onSubmenuClosed=function(c){_.oV(c)!==this.hostElement&&(this.covered=!1,_.CZ(this.hostElement,"yt-refit"),c.stopPropagation())};
_.r.onRetrieveLocation=function(c,f){f.hasComments&&(f.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),c.stopPropagation())};
_.r.shouldCloseOnNavigateEvent=function(c){if(!c)return!0;if(_.b(c,_.SUK)||_.b(c,_.L3r)||_.b(c,_.QJ3)||_.b(c,_.Ib))return!1;var f;return((f=_.b(c==null?void 0:c.commandMetadata,_.jO))==null?0:f.ignoreNavigation)?!1:!0};
_.r.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.r.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.r.refitAfterRender=function(){var c=this;_.ol(this,function(){_.CZ(c.hostElement,"yt-refit")})};
eS.prototype.refitAfterRender=eS.prototype.refitAfterRender;eS.prototype.onRetrieveLocation=eS.prototype.onRetrieveLocation;eS.prototype.onSubmenuClosed=eS.prototype.onSubmenuClosed;eS.prototype.onMenuBackTap=eS.prototype.onMenuBackTap;eS.prototype.onServiceRequestSentOrCompleted=eS.prototype.onServiceRequestSentOrCompleted;eS.prototype.onYtNavigate=eS.prototype.onYtNavigate;eS.prototype.onPopupOpened=eS.prototype.onPopupOpened;eS.prototype.onPopupClosed=eS.prototype.onPopupClosed;
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],eS.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],eS.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],eS.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],eS.prototype,"enableFocusFix",void 0);_.y([_.L(),_.D("design:type",Object)],eS.prototype,"covered",void 0);_.y([_.L({computed:"computeHideMenu(covered, data)"}),_.D("design:type",Object)],eS.prototype,"hideMenu",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.D("design:type",String)],eS.prototype,"menuStyle",void 0);
_.y([_.L({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.D("design:type",Object)],eS.prototype,"isCommentNotificationOnProfileCard",void 0);_.y([_.L(),_.D("design:type",Boolean)],eS.prototype,"isPopUpOpen",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],eS.prototype,"scrolledByTouch",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],eS.prototype,"disableBackdropFilter",void 0);
_.y([_.AY("#sections"),_.D("design:type",HTMLElement)],eS.prototype,"sectionsElement",void 0);_.y([_.AY("#spinner"),_.D("design:type",HTMLElement)],eS.prototype,"spinnerElement",void 0);_.y([_.AY("#header"),_.D("design:type",HTMLElement)],eS.prototype,"headerElement",void 0);_.y([_.AY("#container"),_.D("design:type",HTMLElement)],eS.prototype,"JSC$20004_containerElement",void 0);_.y([_.AY("#submenu"),_.D("design:type",HTMLElement)],eS.prototype,"submenuElement",void 0);
_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],eS.prototype,"onPopupClosed",null);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],eS.prototype,"onPopupOpened",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],eS.prototype,"onYtNavigate",null);
_.y([_.Ta("yt-service-request-completed"),_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],eS.prototype,"onServiceRequestSentOrCompleted",null);_.y([_.Ta("yt-menu-back-tapped"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],eS.prototype,"onMenuBackTap",null);
_.y([_.Ta("yt-submenu-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],eS.prototype,"onSubmenuClosed",null);_.y([_.Ta("yt-retrieve-location"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],eS.prototype,"onRetrieveLocation",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],eS.prototype,"refitAfterRender",null);
_.y([_.v({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],eS);
_.h(eS,"ytd-multi-page-menu-renderer",function(){if(aTS!==void 0)return aTS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return aTS=c},{mode:1});var MyC;var Nn=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return c};
_.K(Nn,_.z);_.r=Nn.prototype;_.r.created=function(){this.showTooltips=!0};
_.r.computeAccessibility_=function(c){return this.get("accessibility.accessibilityData",c)||null};
_.r.onTap=function(){var c=_.kt(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(c&&c.length===1&&c[0])_.gS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var f;if((f=this.data)==null?0:f.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var d;((d=this.data)==null?0:d.menuRequest)&&_.OX(this.hostElement,[this.data.menuRequest])}}};
_.r.handleTopbarMenuClosedAction=function(c){var f,d;(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(c)===((f=this.data)==null?void 0:(d=f.icon)==null?void 0:d.iconType)&&this.toggleIconState(!1)};
_.r.toggleIconState=function(c){_.F("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=c)};
_.r.handleUpdateTopbarAvatarAction=function(c){var f;c=(f=_.b(c,m2Q))==null?void 0:f.avatarUrl;var d,q;f=(d=this.data)==null?void 0:(q=d.avatar)==null?void 0:q.thumbnails;c&&f&&(d={thumbnails:[Object.assign({},f[0],{url:c})]},this.set("data.avatar",d))};
_.ci.Object.defineProperties(Nn.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.r1(this.hostElement).querySelector("#button")}}});
Nn.prototype.onTap=Nn.prototype.onTap;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Nn.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],Nn.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.Bpj.YtButtonBehavior),_.D("design:type",Object)],Nn.prototype,"ytButtonBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Nn.prototype,"data",void 0);
_.y([_.AY("yt-icon-button#button"),_.D("design:type",Object)],Nn.prototype,"iconButton",void 0);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Nn.prototype,"onTap",null);_.y([_.v({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Nn);
_.h(Nn,"ytd-topbar-menu-button-renderer",function(){if(MyC!==void 0)return MyC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return MyC=c},{mode:1});var rbQ;var I1=function(){return _.z.apply(this,arguments)||this};
_.K(I1,_.z);I1.prototype.getSelected=function(){return this.reasons.selected};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],I1.prototype,"data",void 0);_.y([_.AY("#reasons"),_.D("design:type",Object)],I1.prototype,"reasons",void 0);_.y([_.v({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],I1);
_.h(I1,"ytd-ad-feedback-content",function(){if(rbQ!==void 0)return rbQ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return rbQ=c},{mode:1});var CMC;var Po=function(){return _.z.apply(this,arguments)||this};
_.K(Po,_.z);_.r=Po.prototype;_.r.onPopupOpened=function(){_.gS(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.r.computeConfirmButton=function(c){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:c.confirmLabel}};
_.r.computeCancelButton=function(c){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:c.cancelLabel}};
_.r.onConfirmTap=function(){var c=this.content.getSelected();c!==void 0&&(c=this.data.reasons[c].endpoint)&&(_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}}),_.gS(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.r.sendFeedbackSubmitToastAction=function(){var c;(c=this.data)!=null&&c.completionMessage&&_.gS(this.hostElement,"yt-open-popup-action",[_.fX(this.data.completionMessage),this])};
_.r.onCancelTap=function(){_.gS(this.hostElement,"yt-close-popup-action")};
Po.prototype.onPopupOpened=Po.prototype.onPopupOpened;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Po.prototype,"data",void 0);_.y([_.AY("#content"),_.D("design:type",Object)],Po.prototype,"content",void 0);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Po.prototype,"onPopupOpened",null);
_.y([_.v({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Po);
_.h(Po,"ytd-ad-feedback-renderer",function(){if(CMC!==void 0)return CMC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return CMC=c},{mode:1});var guG;var R1=function(){return _.z.apply(this,arguments)||this};
_.K(R1,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],R1.prototype,"data",void 0);_.y([_.v({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],R1);
_.h(R1,"ytd-ad-info-dialog-content",function(){if(guG!==void 0)return guG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return guG=c},{mode:1});var kRc;var Us=function(){return _.z.apply(this,arguments)||this};
_.K(Us,_.z);Us.prototype.computeConfirmButton=function(c){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:c.confirmLabel}};
Us.prototype.onConfirmTap=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Us.prototype.computeShouldShowTitle=function(){var c;return!((c=this.data)==null||!c.title)};
Us.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Us.prototype.onPopupClosed=Us.prototype.onPopupClosed;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Us.prototype,"data",void 0);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Us.prototype,"onPopupClosed",null);_.y([_.v({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Us);
_.h(Us,"ytd-ad-info-dialog-renderer",function(){if(kRc!==void 0)return kRc;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return kRc=c},{mode:1});var Ol3;var pI=function(){var c=_.z.apply(this,arguments)||this;c.actionButtonClass="action-button";c.dismissButtonId="dismiss-button";c.dialogDismiss=!0;return c};
_.K(pI,_.z);_.r=pI.prototype;_.r.computeInPlayer=function(c){return(c==null?void 0:c.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.r.computedLogo=function(){var c,f;return this.isDarkTheme()?(c=this.data)==null?void 0:c.logoDark:(f=this.data)==null?void 0:f.logo};
_.r.computedHeaderImage=function(){var c,f;return this.isDarkTheme()?(c=this.data)==null?void 0:c.headerImageDark:(f=this.data)==null?void 0:f.headerImage};
_.r.computeLogoIconId=function(){var c,f,d,q=(c=this.computedLogo())==null?void 0:(f=c.sources)==null?void 0:(d=f[0])==null?void 0:d.height;return q&&q%31===0?"logo-icon-with-padding":"logo-icon"};
_.r.computeLogoIconHeight=function(){var c,f,d,q=(c=this.computedLogo())==null?void 0:(f=c.sources)==null?void 0:(d=f[0])==null?void 0:d.height;return q&&q%31===0?"31":"24"};
_.r.onPopupClosed=function(){_.ql().resolve(_.mr).dispose()};
_.r.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.r.onShow=function(){this.inPlayer&&_.HS(6)};
_.r.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var c=0;c<this.data.impressionEndpoints.length;c++){var f=_.b(this.data.impressionEndpoints[c],_.Wh);f&&this.ytComponentBehavior.resolveCommand(f)}};
_.r.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.gS(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.ci.Object.defineProperties(pI.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var c,f;return!((c=this.data)==null||!c.headerImageDark)&&!((f=this.data)==null||!f.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.secondaryButton)}}});
pI.prototype.onPopupClosed=pI.prototype.onPopupClosed;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],pI.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.RM.YtVisibilityBehavior),_.D("design:type",Object)],pI.prototype,"ytVisibilityBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pI.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],pI.prototype,"actionButtonClass",void 0);_.y([_.L(),_.D("design:type",Object)],pI.prototype,"dismissButtonId",void 0);_.y([_.L(),_.D("design:type",Object)],pI.prototype,"dialogDismiss",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],pI.prototype,"hasHeaderImage",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],pI.prototype,"hasPremiumButton",null);
_.y([_.L({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.D("design:type",Boolean)],pI.prototype,"inPlayer",void 0);_.y([_.AY("#dismiss-button"),_.D("design:type",HTMLElement)],pI.prototype,"dismissButton",void 0);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],pI.prototype,"onPopupClosed",null);_.y([_.v({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],pI);
_.h(pI,"ytd-enforcement-message-view-model",function(){if(Ol3!==void 0)return Ol3;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Ol3=c},{mode:1});var lvr;var sAp;var xV=function(){var c=_.z.apply(this,arguments)||this;c.TEST_ONLY={immediateValidation:function(){c.immediateValidation()},
onValidationResponse:function(f){c.onValidationResponse(f)},
onGenerateHandleFromNameResponse:function(f){c.onGenerateHandleFromNameResponse(f)}};
return c};
_.K(xV,_.z);_.r=xV.prototype;_.r.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.r.validate=function(){this.immediateValidation()};
_.r.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.r.setHandleInputValue=function(c){this.handleDir=this.getHandleDir(c);this.handleInput.value=c;this.validationState={status:"PENDING"};this.immediateValidation()};
_.r.getHandleDir=function(c){var f=c===""&&!1;return(f=_.JNr.test.call(_.JNr,c))?"rtl":"ltr"};
_.r.onDataChanged=function(){var c,f;this.handleDir=this.getHandleDir((f=(c=this.data)==null?void 0:c.handle)!=null?f:"");var d;this.validationState=((d=this.data)==null?0:d.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var q;((q=this.data)==null?0:q.validateOnInit)&&this.immediateValidation()};
_.r.stopPropagation=function(c){c.stopPropagation()};
_.r.onInput=function(){var c;this.handleDir=this.getHandleDir((c=this.handleInput.value)!=null?c:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.r.onFocusout=function(c){this.handleInput.contains(c.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.r.delayedValidation=function(){var c,f;this.debouncedValidation((f=(c=this.data)==null?void 0:c.validationDelayMs)!=null?f:1E3)};
_.r.immediateValidation=function(){this.debouncedValidation(0)};
_.r.debouncedValidation=function(c){var f=this;_.Ia(this,"debouncedValidation",function(){var d,q=f.staticValidation((d=f.handleInput.value)!=null?d:"");if(q!==void 0)f.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:q};else{var Z;if((Z=f.data)!=null&&Z.validateChannelHandleCommand){f.validationState={status:"LOADING"};var M;f.ytComponentBehavior.resolveCommand(f.data.validateChannelHandleCommand,{form:{handle:(M=f.handleInput.value)!=null?M:""},commandController:{onSuccess:function(g,
O){f.onValidationResponse(O)},
onServerError:function(g,O){f.onValidationServerError(O)}}})}else f.handleUnexpectedValidationError(new _.KD("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",f.data))}},c)};
_.r.staticValidation=function(c){var f;if(((f=this.data)==null?void 0:f.channelHandleStaticValidationParams)!==void 0){f=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(c)&&f.validValueRegexpErrorMessage!==void 0)return f.validValueRegexpErrorMessage;if(f.minLength!==void 0&&c.length<f.minLength&&f.minLengthErrorMessage!==void 0)return f.minLengthErrorMessage;if(f.maxLength!==void 0&&c.length>f.maxLength&&f.maxLengthErrorMessage!==void 0)return f.maxLengthErrorMessage}};
_.r.onValidationResponse=function(c){var f=_.b(c.result,HtF);f===void 0?this.handleUnexpectedValidationError(new _.KD("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",c)):this.handleValidationResultRenderer(f)};
_.r.onValidationServerError=function(c){this.handleUnexpectedValidationError(new _.KD("ValidateChannelHandle request failed.",c))};
_.r.handleValidationResultRenderer=function(c){if(c.handle===void 0)this.handleUnexpectedValidationError(new _.KD("ChannelHandleValidationResultRenderer does not contain handle.",c));else if(c.handle===this.handleInput.value)switch(c.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:c.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:c.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.KD("Unrecognized ChannelHandleValidationResult",c));break;default:_.WH(c.result)}};
_.r.handleUnexpectedValidationError=function(c){var f;this.validationState={status:"UNKNOWN",handle:(f=this.handleInput.value)!=null?f:""};_.u6(c)};
_.r.stopEventPropagation=function(c){c.stopPropagation()};
_.r.updateHandleOnChannelNameInputChange=function(c){if(!this.wasEdited){var f,d;this.debouncedGenerateHandleFromName(c,(d=(f=this.data)==null?void 0:f.validationDelayMs)!=null?d:1E3)}};
_.r.debouncedGenerateHandleFromName=function(c,f){var d=this;_.Ia(this,"debouncedGenerateHandleFromName",function(){var q;(q=d.data)!=null&&q.validateChannelHandleCommand?d.ytComponentBehavior.resolveCommand(d.data.validateChannelHandleCommand,{form:{name:c},commandController:{onSuccess:function(Z,M){d.onGenerateHandleFromNameResponse(M)},
onServerError:function(Z,M){_.u6(new _.KD("Error calling GenerateHandleFromName",M))}}}):_.u6(new _.KD("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",d.data))},f)};
_.r.onGenerateHandleFromNameResponse=function(c){this.wasEdited||((c=_.b(c.result,A$Q))?this.setHandleInputValue(c.handle):_.u6(new _.KD("Invalid results when generate handle from name")))};
_.ci.Object.defineProperties(xV.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var c;if(c=this.validationState)c=this.validationState,c=c.status==="OK"||c.status==="UNKNOWN";if(c)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var c;if(((c=this.validationState)==null?void 0:c.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 c,f=(c=this.channelHandleEntity)==null?void 0:c.handleEdit;this.handleDir=this.getHandleDir(f!=null?f:"");return f}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var c,f;if(((c=this.data)==null?void 0:(f=c.channelHandleStaticValidationParams)==null?void 0:f.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
xV.prototype.stopEventPropagation=xV.prototype.stopEventPropagation;xV.prototype.onDataChanged=xV.prototype.onDataChanged;xV.prototype.applyHandleEdit=xV.prototype.applyHandleEdit;xV.prototype.onValueChanged=xV.prototype.onValueChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],xV.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],xV.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xV.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Boolean)],xV.prototype,"wasEdited",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],xV.prototype,"handleDir",void 0);_.y([_.AY("#handle-input"),_.D("design:type",Object)],xV.prototype,"handleInput",void 0);_.y([_.L(),_.S("validationState"),_.D("design:type",Object),_.D("design:paramtypes",[])],xV.prototype,"value",null);
_.y([_.m5("value"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xV.prototype,"onValueChanged",null);_.y([_.S("validationState"),_.D("design:type",Object),_.D("design:paramtypes",[])],xV.prototype,"errorIndicator",null);_.y([_.L({reflectToAttribute:!0}),_.S("errorIndicator"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],xV.prototype,"borderErrorIndicator",null);
_.y([_.L({selectorArgs:["data.channelHandleEntityKey"],selector:function(c,f){return _.Bb(c.entities,"channelHandle",f)}}),
_.D("design:type",Object)],xV.prototype,"channelHandleEntity",void 0);_.y([_.S("channelHandleEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],xV.prototype,"handleEdit",null);_.y([_.m5("handleEdit"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xV.prototype,"applyHandleEdit",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xV.prototype,"onDataChanged",null);
_.y([_.S("data.channelHandleStaticValidationParams.validValueRegexp"),_.D("design:type",Object),_.D("design:paramtypes",[])],xV.prototype,"validValueRegexp",null);_.y([_.Ta("yt-service-request-sent"),_.Ta("yt-service-request-completed"),_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],xV.prototype,"stopEventPropagation",null);_.y([_.v({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],xV);
_.h(xV,"ytd-channel-handle-input-renderer",function(){if(sAp!==void 0)return sAp;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return sAp=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var o1=function(){var c=_.z.apply(this,arguments)||this;c.data=null;c.errorMessage=null;c.isLoading=!0;c.hideContainer=!1;c.enableNewChannelCreationOnIdForAll=_.F("enable_new_channel_creation_for_id4all");c.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"};c.testOnly={setErrorMessage:function(f){c.resetErrorState();
c.setErrorState(f)}};
return c};
_.K(o1,_.z);_.r=o1.prototype;_.r.created=function(){this.logScreenVe()};
_.r.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")};
_.r.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var c;((c=this.zeroStepErrorMessageEntity)==null?0:c.value)&&this.set("errorMessage",_.pC(this.zeroStepErrorMessageEntity.value))};
_.r.onCreateTap=function(){var c=this;if(this.data&&this.data.channelCreationEndpoint){var f,d;if(!((f=this.data.createChannelButton)==null?0:(d=f.buttonRenderer)==null?0:d.isDisabled)){var q;if((q=this.nameInput)!=null&&q.value){this.setLoadingState();var Z,M;f=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Z=this.handleInput)==null?void 0:Z.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((M=this.handleInput)==null?void 0:M.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:f,commandController:{onSuccess:function(g,O){c.onChannelCreationEndpointSuccess(O);c.obakeImageSource&&_.JN("channelCreatedWithObakeImage",{imageSourceType:c.obakeImageSource})},
onServerError:function(){c.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.r.endpointRequiresServiceRequestAction=function(c){return!!_.b(c,_.VN)||!!_.b(c,m2Q)};
_.r.isNavigateAction=function(c){var f;return!!_.b(c,_.Mf)||!!_.b((f=_.b(c,t3G))==null?void 0:f.command,_.Mf)};
_.r.isPlaylistAction=function(c){return!!_.b(c,_.hB)||!!_.b(c,_.NB)};
_.r.onChannelCreationEndpointSuccess=function(c){if(c.createChannelError){var f;this.setErrorState((f=c.createChannelError)==null?void 0:f.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.F("enable_secondary_channel_creation_form")&&c.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(c.navigationEndpoint);if(c.actions){f=_.C(c.actions);for(var d=f.next();!d.done;d=f.next())if(d=d.value,this.endpointRequiresServiceRequestAction(d)&&this.ytComponentBehavior.resolveCommand(d),
this.isNavigateAction(d)){var q=void 0;d=_.b((q=_.b(d,t3G))==null?void 0:q.command,_.Mf);q=void 0;this.isPlaylistAction((q=d)==null?void 0:q.endpoint)&&(_.gS(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),q=void 0,this.ytComponentBehavior.resolveCommand((q=d)==null?void 0:q.endpoint))}}c.actions&&c.actions.some(function(Z){var M;return _.b(Z,_.Mf)||_.b((M=_.b(Z,t3G))==null?void 0:M.command,_.Mf)})||_.gS(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.r.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.r.onCancelTap=function(){var c,f,d;if(!((c=this.data)==null?0:(f=c.cancelButton)==null?0:(d=f.buttonRenderer)==null?0:d.isDisabled)){var q,Z,M;c=(q=this.data)==null?void 0:(Z=q.cancelButton)==null?void 0:(M=Z.buttonRenderer)==null?void 0:M.command;if(!c||!_.b(c,_.JyN)){var g;this.nameInput&&((g=this.data)==null?0:g.name)&&(this.nameInput.value=this.data.name);var O;this.handleInput&&((O=this.data)==null?0:O.channelHandleInput)&&(this.handleInput.data=_.b(this.data.channelHandleInput,Y2c));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.r.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.r.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.r.onClearProfilePhotoTap=function(){var c,f,d;((c=this.data)==null?0:(f=c.clearProfilePhotoButton)==null?0:(d=f.buttonRenderer)==null?0:d.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.r.onEditAvatarTap=function(){var c,f,d;((c=this.data)==null?0:(f=c.editAvatarButton)==null?0:(d=f.buttonRenderer)==null?0:d.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.r.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)};
_.r.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var c;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((c=this.data)==null?0:c.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.r.setErrorState=function(c){this.resetErrorState();if(c)this.set("errorMessage",c);else{var f;if((f=this.zeroStepErrorMessageEntity)==null?0:f.value)this.set("errorMessage",_.pC(this.zeroStepErrorMessageEntity.value));else{var d;((d=this.data)==null?0:d.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.r.fetchImageBlobWithAlr=function(c,f){f=f===void 0?5:f;var d=this,q,Z,M,g,O;return _.k(function(l){switch(l.nextAddress){case 1:return l.yield(fetch(c,{method:"GET",mode:"cors"}),2);case 2:q=l.yieldResult;if(q.ok){l.jumpTo(3);break}if(f===0)throw Error();Z=d.addJitter(Math.pow(2,5-f));return l.yield(new Promise(function(m){setTimeout(m,Z*1E3)}),4);
case 4:return l.return(d.fetchImageBlobWithAlr(c,f-1));case 3:if(!q.headers.get("content-type").split(";").some(function(m){return m.trim()==="text/plain"})){l.jumpTo(5);
break}M=d;g=M.fetchImageBlobWithAlr;return l.yield(q.text(),6);case 6:return l.return(g.call(M,l.yieldResult,f-1));case 5:return l.yield(q.blob(),7);case 7:return O=l.yieldResult,l.return(O)}})};
_.r.addJitter=function(c){var f=c*.3*Math.random();Math.random()>.5&&(f*=-1);return c+f};
_.r.openProfilePicturePicker=function(){var c=this,f,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1){f=c.data.scottyUploadUrl;if(!f)return g.return();d=document.documentElement.hasAttribute("dark");q=document.body.style.colorScheme;d&&(document.body.style.colorScheme="dark");Z=EGG(nGc(K6i(mK3(d?"dark":"light")),function(O){var l,m,H,A,Y;return _.k(function(t){if(t.nextAddress==1)return l=_.I_(DKq(new W7(O.photoUrl,!1)).build(),"alr","yes"),c.obakeImageSource=c.pictureChangeSourceToObakeImageSourceType(O.photoSource),
_.iY(t,2),c.setLoadingState(),t.yield(c.fetchImageBlobWithAlr(l),4);if(t.nextAddress!=2)return m=t.yieldResult,H=new FileReader,H.addEventListener("load",function(){var E,J,X,u,W,p;return _.k(function(N){if(N.nextAddress==1){if(m.size>15728640)return c.setErrorState((E=c.data)==null?void 0:E.imageSizeErrorMessage),_.u6(Error("kl")),N.return();if(!H.result)return c.setErrorState((J=c.data)==null?void 0:J.genericImageLoadErrorMessage),_.u6(Error("ll")),N.return();X=H.result;_.iY(N,2);return N.yield(Uhq(m,
f),4)}if(N.nextAddress!=2)return u=N.yieldResult,c.handleImageUpdatedAction(X,u),c.resetErrorState(),_.Pq(N,0);W=_.Yw(N);c.setErrorState((p=c.data)==null?void 0:p.uploadErrorMessage);if(W instanceof Error)_.VO(W);else{var I=new _.KD(JSON.stringify(W));_.VO(I)}_.Fm(N)})}),H.readAsDataURL(m),_.Pq(t,0);
A=_.Yw(t);c.setErrorState((Y=c.data)==null?void 0:Y.genericImageLoadErrorMessage);A instanceof Error?_.VO(A):_.XX(new _.KD(JSON.stringify(A)));_.Fm(t)})}),function(){c.hideContainer=!1;
document.body.style.colorScheme=q});
_.iY(g,2);return g.yield(Z.openPicker(),4)}if(g.nextAddress!=2)return _.Pq(g,0);_.Yw(g);c.setErrorState((M=c.data)==null?void 0:M.selectImageErrorMessage);_.Fm(g)})};
_.r.pictureChangeSourceToObakeImageSourceType=function(c){switch(c){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.r.logScreenVe=function(){_.s8(_.bP(),124448)};
_.r.graftServerVe=function(){var c=_.V5(),f,d,q=(f=this.data)==null?void 0:(d=f.loggingDirectives)==null?void 0:d.trackingParams;q&&c&&(this.channelCreationFormVe=_.bP().graftServerVe(q,c),c={visualElement:this.channelCreationFormVe},_.FN().reportShown(c))};
_.r.isNameChanged=function(c){var f;return((f=this.data)==null?void 0:f.name)!==c};
_.r.isHandleChanged=function(c){var f,d=_.b((f=this.data)==null?void 0:f.channelHandleInput,Y2c);return d&&c?d.handle!==c:!1};
_.r.handleImageUpdatedAction=function(c,f){this.hideContainer=!1;this.previewDataUrl=c;this.encryptedBlobId=f};
_.r.handleImageSelectionErrorAction=function(c){this.hideContainer=!1;this.setErrorState(c)};
_.r.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.r.showContainer=function(){this.hideContainer=!1};
_.r.maybeWipeZeroStepErrorMessage=function(){var c,f=(c=this.data)==null?void 0:c.zeroStepErrorMessageEntityKey,d;f&&((d=this.zeroStepErrorMessageEntity)==null?0:d.value)&&this.ytdReduxBehavior.dispatch(_.ER("stringEntity",f,{key:f,value:""}))};
_.ci.Object.defineProperties(o1.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 c;return((c=this.photoThumbnail)==null?0:c.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 c;return!((c=this.data)==null||!c.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.descriptionInfo}}});
o1.prototype.dataChanged=o1.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],o1.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],o1.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],o1.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],o1.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],o1.prototype,"errorMessage",void 0);
_.y([_.L(),_.D("design:type",Object)],o1.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",String)],o1.prototype,"previewDataUrl",void 0);_.y([_.L(),_.D("design:type",Number)],o1.prototype,"obakeImageSource",void 0);_.y([_.L(),_.D("design:type",Object)],o1.prototype,"hideContainer",void 0);_.y([_.AY("#title-input"),_.D("design:type",Object)],o1.prototype,"nameInput",void 0);_.y([_.AY("#handle-input"),_.D("design:type",Object)],o1.prototype,"handleInput",void 0);
_.y([_.L(),_.D("design:type",Boolean)],o1.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.y([_.L({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Tmz}),_.D("design:type",Object)],o1.prototype,"zeroStepErrorMessageEntity",void 0);_.y([_.S("data","data.isDefaultProfilePhoto","previewDataUrl"),_.D("design:type",Object),_.D("design:paramtypes",[])],o1.prototype,"photoThumbnail",null);
_.y([_.S("data","data.isDefaultProfilePhoto","photoThumbnail"),_.D("design:type",Object),_.D("design:paramtypes",[])],o1.prototype,"userSetPhotoThumbnailUrl",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],o1.prototype,"hideProfilePhotoButtonLayer",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],o1.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.y([_.ba("data","zeroStepErrorMessageEntity"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],o1.prototype,"dataChanged",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.descriptionInfo","zeroStepErrorMessageEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],o1.prototype,"description",null);_.y([_.v({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],o1);
_.h(o1,"ytd-channel-creation-dialog-renderer",function(){if(lvr!==void 0)return lvr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return lvr=c},{mode:1});var BG3;var Gz=function(){var c=_.z.apply(this,arguments)||this;c.isLoading=!1;c.isDisabled=!1;return c};
_.K(Gz,_.z);Gz.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Gz.prototype.updateDisabled=function(){var c;this.isDisabled=this.isLoading||((c=this.handleInput)==null?void 0:c.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Gz.prototype.onSaveClick=function(){var c=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var f;((f=this.data)==null?void 0:f.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 d;if((d=c.data)==null?0:d.nextEndpoint){var q;c.ytComponentBehavior.resolveCommand((q=c.data)==null?void 0:q.nextEndpoint)}else c.isLoading=
!1,c.closeDialog()},
onServerError:function(){c.isLoading=!1;c.handleInput.validate();var d;c.errorMessage=(d=c.data)==null?void 0:d.errorMessage}}}))}};
Gz.prototype.closeDialog=function(){_.gS(this.hostElement,"yt-close-popup-action",[this.is])};
Gz.prototype.updateDisabled=Gz.prototype.updateDisabled;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Gz.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Gz.prototype,"data",void 0);_.y([_.AY("#handle-input"),_.D("design:type",Object)],Gz.prototype,"handleInput",void 0);_.y([_.m5("isLoading"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Gz.prototype,"updateDisabled",null);
_.y([_.v({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Gz);
_.h(Gz,"ytd-channel-handle-edit-dialog-renderer",function(){if(BG3!==void 0)return BG3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return BG3=c},{mode:1});var ilH;var cz=function(){return _.z.apply(this,arguments)||this};
_.K(cz,_.z);cz.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],cz.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],cz.prototype,"data",void 0);_.y([_.v({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],cz);
_.h(cz,"ytd-channel-switcher-footer-renderer",function(){if(ilH!==void 0)return ilH;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ilH=c},{mode:1});var TGi;var mvq;var fU=function(){return _.z.apply(this,arguments)||this};
_.K(fU,_.z);fU.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
fU.prototype.onIronChange=fU.prototype.onIronChange;_.y([_.L(),_.D("design:type",Object)],fU.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!1}),_.D("design:type",Function)],fU.prototype,"onDontAskAgainChanged",void 0);_.y([_.AY("#checkbox"),_.D("design:type",Object)],fU.prototype,"checkbox",void 0);_.y([_.Ta("iron-change"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],fU.prototype,"onIronChange",null);
_.y([_.v({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],fU);
_.h(fU,"ytd-identity-prompt-footer-renderer",function(){if(mvq!==void 0)return mvq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return mvq=c},{mode:1});var Zy=function(){var c=_.z.apply(this,arguments)||this;c.dontAskAgain=!1;c.showPopup=!1;c.boundDontAskAgainChanged=function(f){c.dontAskAgainChanged(f)};
c.boundOnAccountItemTap=function(f){c.onAccountItemTap(f)};
return c};
_.K(Zy,_.z);_.r=Zy.prototype;
_.r.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]]"}}}}}};
_.r.ready=function(){var c=this;_.r1(this.hostElement).querySelector("#container").addEventListener("scroll",function(){c.ytRendererBehavior.markDirty()})};
_.r.dontAskAgainChanged=function(c){this.dontAskAgain=c};
_.r.onAccountItemTap=function(c){if(c){var f={};this.dontAskAgain&&(f={dont_ask_again:this.dontAskAgain});_.IV(c,f)}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.r.redirectOnlyAccount=function(c){c.sections&&c.sections.length>0&&(c=_.b(c.sections[0],_.$0v),(c==null?0:c.contents)&&(c==null?void 0:c.contents.length)<=1?(c=_.Rw(window.location.href),(c==null?0:c.next)&&_.AQP(c.next)?_.IV(c.next):_.IV("/")):this.showPopup=!0)};
Zy.prototype.dataChanged=Zy.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Zy.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!1}),_.D("design:type",Object)],Zy.prototype,"dontAskAgain",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Zy.prototype,"showPopup",void 0);_.y([_.L({reflectToAttribute:!1}),_.D("design:type",Object)],Zy.prototype,"boundDontAskAgainChanged",void 0);_.y([_.L({reflectToAttribute:!1}),_.D("design:type",Object)],Zy.prototype,"boundOnAccountItemTap",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Zy.prototype,"dataChanged",null);
_.y([_.v({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Zy);
_.h(Zy,"ytd-channel-switcher-renderer",function(){if(TGi!==void 0)return TGi;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return TGi=c},{mode:1});var HlG;var Mq=function(){return _.z.apply(this,arguments)||this};
_.K(Mq,_.z);_.ci.Object.defineProperties(Mq.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.y([_.L(),_.D("design:type",Object)],Mq.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Array),_.D("design:paramtypes",[])],Mq.prototype,"steps",null);_.y([_.v({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Mq);
_.h(Mq,"ytd-channel-transfer-stepper-renderer",function(){if(HlG!==void 0)return HlG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return HlG=c},{mode:1});var Abc;var rI=function(){var c=_.z.apply(this,arguments)||this;c.data=null;c.isError=!1;c.isLoading=!1;return c};
_.K(rI,_.z);_.r=rI.prototype;_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.r.computeProfileName=function(c){return c?c.givenNameValue+" "+c.familyNameValue:""};
_.r.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)};
_.r.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)};
rI.prototype.onYtServiceRequestError=rI.prototype.onYtServiceRequestError;rI.prototype.onYtServiceRequestSent=rI.prototype.onYtServiceRequestSent;rI.prototype.dataChanged=rI.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rI.prototype,"data",void 0);
_.y([_.L({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.D("design:type",String)],rI.prototype,"profileName",void 0);_.y([_.L(),_.D("design:type",Object)],rI.prototype,"isError",void 0);_.y([_.L(),_.D("design:type",Object)],rI.prototype,"isLoading",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rI.prototype,"dataChanged",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],rI.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],rI.prototype,"onYtServiceRequestError",null);_.y([_.v({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],rI);
_.h(rI,"ytd-channel-warm-welcome-cont-renderer",function(){if(Abc!==void 0)return Abc;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Abc=c},{mode:1});var YQq;var CU=function(){var c=_.z.apply(this,arguments)||this;c.data=null;return c};
_.K(CU,_.z);CU.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
CU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],CU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],CU.prototype,"data",void 0);_.y([_.v({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],CU);
_.h(CU,"ytd-channel-warm-welcome-renderer",function(){if(YQq!==void 0)return YQq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return YQq=c},{mode:1});var FgC;var gI=function(){return _.z.apply(this,arguments)||this};
_.K(gI,_.z);_.ci.Object.defineProperties(gI.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.authorThumbnail)||{}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gI.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],gI.prototype,"thumbnailDetails",null);_.y([_.v({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],gI);
_.h(gI,"ytd-comment-preview-renderer",function(){if(FgC!==void 0)return FgC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return FgC=c},{mode:1});var tyS;var kM=function(){return _.z.apply(this,arguments)||this};
_.K(kM,_.z);kM.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ci.Object.defineProperties(kM.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.submitButton}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],kM.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],kM.prototype,"submitButton",null);_.y([_.v({is:"ytd-notice-renderer",disableElementRegistration:!0})],kM);
_.h(kM,"ytd-notice-renderer",function(){if(tyS!==void 0)return tyS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return tyS=c},{mode:1});var blD;var Ot=function(){return _.z.apply(this,arguments)||this};
_.K(Ot,_.z);Ot.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ot.prototype,"data",void 0);_.y([_.v({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Ot);
_.h(Ot,"ytd-preview-comment-dialog-content",function(){if(blD!==void 0)return blD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return blD=c},{mode:1});var KgC;var lZ=function(){return _.z.apply(this,arguments)||this};
_.K(lZ,_.z);lZ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
lZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],lZ.prototype,"data",void 0);_.y([_.v({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],lZ);
_.h(lZ,"ytd-preview-comment-dialog-renderer",function(){if(KgC!==void 0)return KgC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return KgC=c},{mode:1});var Eu3;var nup=_.F("web_button_rework")&&_.wi("BUTTON_REWORK")||_.F("web_button_rework_with_live"),st=function(){var c=_.z.apply(this,arguments)||this;c.closeLabel=_.HO("CLOSE");c.selectedAmountIndex=1;c.privacyCheckboxValue=!1;c.useAmsterdamStyle=nup;c.amountPlaceholderIndex=-1;return c};
_.K(st,_.z);_.r=st.prototype;_.r.onAmountClick=function(c){this.selectedAmountIndex=_.r1(this.hostElement).querySelector("#amounts").indexForElement(c.currentTarget)};
_.r.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.gS(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.r.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.gS(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.gS(this.hostElement,"yt-close-popup-action",[this.is]);var c;(c=_.Ca())==null||c.getPlayerPromise().then(function(f){f.pauseVideo()})}};
_.r.donationCallback=function(c){c.success?(this.hostElement.hasAttribute("live-chat")&&c.response&&c.response.data&&c.response.data.actions&&_.gS(this.hostElement,"yt-live-chat-open-popup",[c.response.data.actions[0]]),_.gS(this.hostElement,"yt-close-popup-action",[this.is]),_.gS(this.hostElement,"yt-live-chat-close-buy-flow")):c.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(c.errorMessageRenderer)};
_.r.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.r1(this.hostElement).querySelector("#custom-amount-input").focus()};
_.r.updateConfirmationDialogTextWithAmount=function(c){var f=this.getConfirmDialogRuns();f&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(f),"text"],this.getFormattedAmount(c))};
_.r.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.r.getAmountPlaceholderIndex=function(c){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=c.findIndex(function(f){return f.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.r.getFormattedAmount=function(c){var f;return(new _.eU(4,((f=this.data)==null?void 0:f.currencyCode)||"")).format(c)};
_.r.isAmountValid=function(c){if(c==="")return!1;c=Number(c)*1E6;var f=this.get("minAmountMicros",this.data),d=this.get("maxAmountMicros",this.data);return f&&c<f||d&&c>d?!1:!0};
_.r.setInputError=function(){this.shouldShowValidationError?_.r1(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.r1(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.r.setInitialCheckboxValue=function(){var c;this.privacyCheckboxValue=!((c=this.data)==null||!c.privacyCheckboxInitialState)};
_.r.updateCustomAmountInputFromBinding=function(c){this.customAmountInput=c.detail.value};
_.r.updatePrivacyCheckboxValueFromBinding=function(c){this.privacyCheckboxValue=c.detail.value};
_.ci.Object.defineProperties(st.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var c=this,f,d;return((f=this.data)==null?void 0:(d=f.suggestedAmounts)==null?void 0:d.map(function(q,Z){return{buttonRenderer:{style:c.selectedAmountIndex===Z?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:q.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 c;return!((c=this.data)==null||!c.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 c=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(c&&this.amountMicros!==null)return Object.assign({},c,{ypcGetCartEndpoint:Object.assign({},c.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 c=this.get("confirmLargeAmount",this.data);if(c&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),c}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var c=this.get("donateButton.buttonRenderer",this.data);if(c)return Object.assign({},c,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
st.prototype.setInitialCheckboxValue=st.prototype.setInitialCheckboxValue;st.prototype.setInputError=st.prototype.setInputError;st.prototype.setFocusOnCustomAmountInput=st.prototype.setFocusOnCustomAmountInput;_.y([_.Q(N9G),_.D("design:type",Object)],st.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],st.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],st.prototype,"closeLabel",void 0);_.y([_.L(),_.D("design:type",Object)],st.prototype,"selectedAmountIndex",void 0);_.y([_.L(),_.D("design:type",String)],st.prototype,"customAmountInput",void 0);_.y([_.L(),_.D("design:type",Object)],st.prototype,"privacyCheckboxValue",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],st.prototype,"useAmsterdamStyle",void 0);_.y([_.m5("customAmount"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],st.prototype,"setFocusOnCustomAmountInput",null);_.y([_.S("data","selectedAmountIndex"),_.D("design:type",Array),_.D("design:paramtypes",[])],st.prototype,"suggestedAmountButtons",null);
_.y([_.S("data","selectedAmountIndex"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],st.prototype,"isCustomAmountSelected",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],st.prototype,"showPrivacyCheckbox",null);_.y([_.S("data","selectedAmountIndex","customAmount"),_.D("design:type",Object),_.D("design:paramtypes",[])],st.prototype,"amountMicros",null);
_.y([_.S("isCustomAmountSelected","customAmountInput"),_.D("design:type",Object),_.D("design:paramtypes",[])],st.prototype,"customAmount",null);_.y([_.S("customAmount"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],st.prototype,"shouldShowValidationError",null);_.y([_.S("customAmount"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],st.prototype,"isDonateButtonEnabled",null);
_.y([_.S("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.D("design:type",Object),_.D("design:paramtypes",[])],st.prototype,"donateCommand",null);_.y([_.S("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.D("design:type",Object),_.D("design:paramtypes",[])],st.prototype,"donateCommandWithConfirmation",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],st.prototype,"largeDonationThreshold",null);
_.y([_.S("customAmount","donateCommand","amountMicros"),_.D("design:type",Object),_.D("design:paramtypes",[])],st.prototype,"confirmLargeAmountCommand",null);_.y([_.S("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.D("design:type",Object),_.D("design:paramtypes",[])],st.prototype,"donateButtonRenderer",null);_.y([_.m5("shouldShowValidationError"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],st.prototype,"setInputError",null);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],st.prototype,"setInitialCheckboxValue",null);_.y([_.v({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],st);
_.h(st,"ytd-donation-amount-picker-renderer",function(){if(Eu3!==void 0)return Eu3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Eu3=c},{mode:1});var $vp;var Bz=function(){return _.z.apply(this,arguments)||this};
_.K(Bz,_.z);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Bz.prototype,"ytComponentBehavior",void 0);_.y([_.L({}),_.D("design:type",Object)],Bz.prototype,"data",void 0);_.y([_.v({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Bz);
_.h(Bz,"ytd-donation-post-transaction-content",function(){if($vp!==void 0)return $vp;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return $vp=c},{mode:1});var QAF;var iZ=function(){return _.z.apply(this,arguments)||this};
_.K(iZ,_.z);iZ.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.y([_.L({}),_.D("design:type",Object)],iZ.prototype,"data",void 0);_.y([_.v({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],iZ);
_.h(iZ,"ytd-donation-post-transaction-renderer",function(){if(QAF!==void 0)return QAF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return QAF=c},{mode:1});var SQ3;var Lgr;var Tg=function(){return _.z.apply(this,arguments)||this};
_.K(Tg,_.z);Tg.prototype.computeIsStreamingProvider=function(c){return!!c.isStreamingShelf};
Tg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Tg.prototype,"data",void 0);_.y([_.L({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Tg.prototype,"isStreamingProvider",void 0);
_.y([_.v({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Tg);
_.h(Tg,"ytd-media-provider-renderer",function(){if(Lgr!==void 0)return Lgr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Lgr=c},{mode:1});var zjp;var mS=function(){return _.z.apply(this,arguments)||this};
_.K(mS,_.z);mS.prototype.observeLightsourcePalette=function(){var c,f=(c=this.data)==null?void 0:c.vibrantsourceColorPaletteData;f&&_.vr(this.hostElement,f)};
mS.prototype.observeLightsourcePalette=mS.prototype.observeLightsourcePalette;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],mS.prototype,"data",void 0);
_.y([_.m5("data.vibrantsourceColorPaletteData"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mS.prototype,"observeLightsourcePalette",null);_.y([_.v({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],mS);
_.h(mS,"ytd-streaming-pop-up-dialog",function(){if(zjp!==void 0)return zjp;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return zjp=c},{mode:1});var Hz=function(){return _.z.apply(this,arguments)||this};
_.K(Hz,_.z);Hz.prototype.onPopupOpened_=function(){var c;((c=this.data)==null?0:c.serviceEndpoint)&&_.ql().resolve(_.ZM).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Hz.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Hz.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"}}}}};
Hz.prototype.onPopupOpened_=Hz.prototype.onPopupOpened_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Hz.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.PX),_.D("design:type",Object)],Hz.prototype,"ytContinuationHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Hz.prototype,"data",void 0);
_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Hz.prototype,"onPopupOpened_",null);_.y([_.v({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Hz);
_.h(Hz,"ytd-brandconnect-popup-renderer",function(){if(SQ3!==void 0)return SQ3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return SQ3=c},{mode:1});var JbC;var Al=function(){return _.z.apply(this,arguments)||this};
_.K(Al,_.z);_.r=Al.prototype;_.r.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){for(var c=0;c<this.getOptionRenderers().length;c++)this.notifyPath("data.options."+c+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+c+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.r.updateSubmitButton=function(c){this.set("data.submitButton.buttonRenderer.isDisabled",!c)};
_.r.computeAlt=function(c){return _.xC(c)};
_.r.onDismissTap=function(){_.gS(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.r.getOptionRenderers=function(c){return(c=c||this.data)&&c.options?c.options.reduce(function(f,d){d.checkboxSurveyOptionRenderer&&f.push(d.checkboxSurveyOptionRenderer);return f},[]):[]};
_.r.onOptionChange=function(c){var f=this,d=!1;if(c.detail.checked)for(var q=this.getOptionRenderers().find(function(O){return O.value===c.detail.value}),Z=this.getOptionRenderers(),M=0;M<Z.length;M++){var g=Z[M];
this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked");g.checked&&((q==null?0:q.isExclusiveOption)?!g.isExclusiveOption:g.isExclusiveOption)?this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1):g.checked&&(d=!0)}else d=this.getOptionRenderers().some(function(O,l){f.notifyPath("data.options."+l+".checkboxSurveyOptionRenderer.checked");return O.checked});
this.updateSubmitButton(d)};
_.r.onSubmitTap=function(){var c=this.getOptionRenderers().filter(function(M){return M.checked});
if(c.length!==0){var f=c.map(function(M){return M.responseEndpoint});
c=[];for(var d=1;d<f.length;d++){var q=void 0,Z=(q=_.b(f[d],_.Xb))==null?void 0:q.feedbackToken;Z&&c.push(Z)}f=[f[0]];c.length&&f.push({extra_feedback_tokens:c});_.OX(this.hostElement,f);_.gS(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);c=this.data&&this.data.submitActions||[];if(_.F("kevlar_command_handler_migration_killswitch"))_.ll(this.hostElement,c,this.hostElement);else for(c=_.C(c),f=c.next();!f.done;f=c.next())this.ytComponentBehavior.resolveCommand(f.value)}};
Al.prototype.onOptionChange=Al.prototype.onOptionChange;Al.prototype.dataChanged=Al.prototype.dataChanged;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],Al.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Al.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.y([_.Q(gei),_.D("design:type",Object)],Al.prototype,"ytdHatsSurveyBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Al.prototype,"data",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Al.prototype,"dataChanged",null);
_.y([_.Ta("ytd-checkbox-survey-option-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Al.prototype,"onOptionChange",null);_.y([_.v({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Al);
_.h(Al,"ytd-checkbox-survey-renderer",function(){if(JbC!==void 0)return JbC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return JbC=c},{mode:1});var avD;var VyF;var YM=function(){return _.z.apply(this,arguments)||this};
_.K(YM,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.y([_.Q(Cci),_.D("design:type",Object)],YM.prototype,"ytdDismissalReasonBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],YM.prototype,"data",void 0);_.y([_.v({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],YM);
_.h(YM,"ytd-dismissal-reason-text-renderer",function(){if(VyF!==void 0)return VyF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return VyF=c},{mode:1});var XBr;var F_=function(){return _.z.apply(this,arguments)||this};
_.K(F_,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.y([_.Q(Cci),_.D("design:type",Object)],F_.prototype,"ytdDismissalReasonBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],F_.prototype,"data",void 0);_.y([_.v({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],F_);
_.h(F_,"ytd-dismissal-reason-video-renderer",function(){if(XBr!==void 0)return XBr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return XBr=c},{mode:1});var tl=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(tl,_.z);_.r=tl.prototype;_.r.created=function(){this.selectedFeedbackTokens=new ZE};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.r.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.r.onDismissalReasonSelected=function(c,f){_.CZ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(f);this.hasReasonsSelected=!0};
_.r.onDismissalReasonDeselected=function(c,f){_.CZ(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(f);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.r.onCancelTap=function(){_.gS(this.hostElement,"yt-close-popup-action")};
_.r.onSubmitTap=function(){var c=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(c={feedback_tokens:c},_.ql().resolve(_.ZM).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},c,{element:this.hostElement})}));_.gS(this.hostElement,"yt-close-popup-action")};
tl.prototype.onDismissalReasonDeselected=tl.prototype.onDismissalReasonDeselected;tl.prototype.onDismissalReasonSelected=tl.prototype.onDismissalReasonSelected;tl.prototype.dataChanged=tl.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tl.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Boolean)],tl.prototype,"hasReasonsSelected",void 0);_.y([_.L(),_.D("design:type",ZE)],tl.prototype,"selectedFeedbackTokens",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tl.prototype,"darkerDarkTheme",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tl.prototype,"dataChanged",null);
_.y([_.Ta("yt-dismissal-reason-selected"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,String]),_.D("design:returntype")],tl.prototype,"onDismissalReasonSelected",null);_.y([_.Ta("yt-dismissal-reason-deselected"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,String]),_.D("design:returntype")],tl.prototype,"onDismissalReasonDeselected",null);_.y([_.v({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],tl);
_.h(tl,"ytd-dismissal-follow-up-renderer",function(){if(avD!==void 0)return avD;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return avD=c},{mode:1});var uoD;var bZ=function(){return _.z.apply(this,arguments)||this};
_.K(bZ,_.z);_.r=bZ.prototype;_.r.onCheckedChange=function(){this.multiselect||_.CZ(this.hostElement,"yt-feedback-single-select-changed");_.r1(this.hostElement).querySelector("#freeform").focus();_.CZ(this.hostElement,"yt-refit")};
_.r.showTextBox=function(c,f){return c&&f};
_.r.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))};
_.r.updateDataCheckedFromBinding=function(c){this.set("data.checked",c.detail.value)};
_.r.updateDataResultTextFromBinding=function(c){this.set("data.resultText",c.detail.value)};
bZ.prototype.dataChanged=bZ.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bZ.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],bZ.prototype,"multiselect",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],bZ.prototype,"dataChanged",null);
_.y([_.v({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],bZ);
_.h(bZ,"ytd-feedback-option-renderer",function(){if(uoD!==void 0)return uoD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return uoD=c},{mode:1});var vu3;var KU=function(){return _.z.apply(this,arguments)||this};
_.K(KU,_.z);KU.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
KU.prototype.onSingleSelectCheckedChanged=function(c){c=_.oV(c);for(var f=0;f<this.data.options.length;f++)if(c.data!==_.b(this.data.options[f],MIC)){var d="data.options."+f+".feedbackOptionRenderer.checked";this.notifyPath(d);this.set(d,!1)}};
KU.prototype.onSingleSelectCheckedChanged=KU.prototype.onSingleSelectCheckedChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],KU.prototype,"data",void 0);
_.y([_.Ta("yt-feedback-single-select-changed"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],KU.prototype,"onSingleSelectCheckedChanged",null);_.y([_.v({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],KU);
_.h(KU,"ytd-feedback-question-renderer",function(){if(vu3!==void 0)return vu3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return vu3=c},{mode:1});var hj3;var Et=function(){return _.z.apply(this,arguments)||this};
_.K(Et,_.z);Et.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Et.prototype.getSelectedFeedbackResults=function(){for(var c={},f=0;f<this.data.questions.length;f++)for(var d=_.b(this.data.questions[f],Zyc),q=0;q<d.options.length;q++){var Z=_.b(d.options[q],MIC);Z&&Z.checked&&(c[Z.optionKey]=Z.resultText)}return c};
Et.prototype.onKeyUp=function(){var c=this;_.Br(_.a7,function(){_.CZ(c.hostElement,"yt-refit")});
_.a7.start()};
Et.prototype.submitSurvey=function(){var c=this.getSelectedFeedbackResults();Object.keys(c).length>0&&this.data.submitFeedbackEndpoint&&(c={survey_results:c,is_feedback_token_unencrypted:!0},_.ql().resolve(_.ZM).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},c,{element:this.hostElement})}))};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Et.prototype,"data",void 0);_.y([_.v({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Et);
_.h(Et,"ytd-feedback-survey-renderer",function(){if(hj3!==void 0)return hj3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return hj3=c},{mode:1});var wBC;var ybr;var nU=function(){return _.z.apply(this,arguments)||this};
_.K(nU,_.z);nU.prototype.computeAlt=function(c){return _.xC(c)};
nU.prototype.submitResponse=function(){var c,f;(c=this.data)!=null&&c.feedbackToken&&((f=this.data)==null?void 0:f.nextStageIndex)!==void 0&&(_.kt(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.kt(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
nU.prototype.onClick=function(){this.submitResponse()};
nU.prototype.onClick=nU.prototype.onClick;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nU.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],nU.prototype,"vertical",void 0);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nU.prototype,"onClick",null);
_.y([_.v({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],nU);
_.h(nU,"ytd-single-select-answer-option-renderer",function(){if(ybr!==void 0)return ybr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ybr=c},{mode:1});var WgS;var $M=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return c};
_.K($M,_.z);$M.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
$M.prototype.dataChanged=function(){var c,f;this.vertical=((f=(c=this.data)==null?void 0:c.answerOrientation)!=null?f:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
$M.prototype.submitFeedback=function(c){var f;((f=this.data)==null?0:f.responseEndpoint)&&c&&_.OX(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[c]}])};
$M.prototype.dataChanged=$M.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],$M.prototype,"eventForwardingBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],$M.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],$M.prototype,"vertical",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],$M.prototype,"darkerDarkTheme",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$M.prototype,"dataChanged",null);_.y([_.v({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],$M);
_.h($M,"ytd-single-select-question-renderer",function(){if(WgS!==void 0)return WgS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return WgS=c},{mode:1});var QU=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return c};
_.K(QU,_.z);_.r=QU.prototype;_.r.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"}}}};
_.r.dataChanged=function(){this.jumpToStage(0)};
_.r.jumpToStage=function(c){var f,d;if((f=this.data)==null?0:(d=f.stages)==null?0:d[c])this.currentStage=this.data.stages[c],this.refitAfterRender()};
_.r.computeAlt=function(c){return _.xC(c)};
_.r.computeSimpleMessage=function(c){var f;return(f=_.b(c,gd3))==null?void 0:f.messageText};
_.r.computeHideDismiss=function(c){var f;return(f=_.b(c,XLc))==null?void 0:f.hideParentDismissButton};
_.r.onDismissTap=function(){_.gS(this.hostElement,"yt-close-popup-action");_.b(this.currentStage,gd3)||this.data.dismissalEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.r.refitAfterRender=function(){var c=this;_.ol(this,function(){_.CZ(c.hostElement,"yt-refit")})};
QU.prototype.dataChanged=QU.prototype.dataChanged;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],QU.prototype,"eventForwardingBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],QU.prototype,"ytActionHandlerBehavior",void 0);
_.y([_.Q(gei),_.D("design:type",Object)],QU.prototype,"ytdHatsSurveyBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],QU.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],QU.prototype,"currentStage",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],QU.prototype,"dataChanged",null);_.y([_.v({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],QU);
_.h(QU,"ytd-multi-stage-survey-renderer",function(){if(wBC!==void 0)return wBC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return wBC=c},{mode:1});var DvH;var Sm=function(){return _.z.apply(this,arguments)||this};
_.K(Sm,_.z);Sm.prototype.computeAlt=function(c){return _.xC(c)};
Sm.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.ql().resolve(_.ZM).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.gS(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.MR3(!1)))};
Sm.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Sm.prototype.onTap=Sm.prototype.onTap;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],Sm.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Sm.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Sm.prototype,"vertical",void 0);
_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Sm.prototype,"onTap",null);_.y([_.v({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Sm);
_.h(Sm,"ytd-single-option-survey-option-renderer",function(){if(DvH!==void 0)return DvH;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DvH=c},{mode:1});var ejr;var LU=function(){return _.z.apply(this,arguments)||this};
_.K(LU,_.z);_.r=LU.prototype;_.r.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){var c,f;this.vertical=(((c=this.data)==null?void 0:(f=c.surveyOrientation)==null?void 0:f.type)||"HORIZONTAL")==="VERTICAL"};
_.r.computeAlt=function(c){return _.xC(c)};
_.r.onDismissTap=function(){_.gS(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ql().resolve(_.ZM).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.MR3(!1))};
LU.prototype.dataChanged=LU.prototype.dataChanged;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],LU.prototype,"eventForwardingBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(gei),_.D("design:type",Object)],LU.prototype,"ytdHatsSurveyBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],LU.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],LU.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],LU.prototype,"vertical",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LU.prototype,"dataChanged",null);_.y([_.v({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],LU);
_.h(LU,"ytd-single-option-survey-renderer",function(){if(ejr!==void 0)return ejr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ejr=c},{mode:1});var NGr;var zg=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(zg,_.z);zg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zg.prototype.onDismissTap=function(){_.gS(this.hostElement,"yt-close-popup-action")};
zg.prototype.onNavigate=function(){_.gS(this.hostElement,"yt-close-popup-action")};
zg.prototype.onNavigate=zg.prototype.onNavigate;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],zg.prototype,"ytEventForwardingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zg.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zg.prototype,"darkerDarkTheme",void 0);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],zg.prototype,"onNavigate",null);_.y([_.v({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],zg);
_.h(zg,"ytd-survey-follow-up-renderer",function(){if(NGr!==void 0)return NGr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return NGr=c},{mode:1});var Ivi;var PMq;var RjF;var Jl=function(){var c=_.z.apply(this,arguments)||this;c.polymer2="Element"in Polymer;return c};
_.K(Jl,_.z);_.r=Jl.prototype;_.r.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.r.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.r.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.r.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("minutes-changed",this.minutes))};
_.r.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("seconds-changed",this.seconds))};
_.r.updateMinutesFromBinding=function(c){this.minutes=c.detail.value};
_.r.updateSecondsFromBinding=function(c){this.seconds=c.detail.value};
Jl.prototype.secondsChangedForBinding=Jl.prototype.secondsChangedForBinding;Jl.prototype.minutesChangedForBinding=Jl.prototype.minutesChangedForBinding;Jl.prototype.secondsChanged=Jl.prototype.secondsChanged;_.y([_.L(),_.D("design:type",String)],Jl.prototype,"minutes",void 0);_.y([_.L(),_.D("design:type",String)],Jl.prototype,"seconds",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],Jl.prototype,"polymer2",void 0);
_.y([_.AY("#seconds"),_.D("design:type",Object)],Jl.prototype,"secondsEl",void 0);_.y([_.m5("seconds"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Jl.prototype,"secondsChanged",null);_.y([_.m5("minutes"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Jl.prototype,"minutesChangedForBinding",null);
_.y([_.m5("seconds"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Jl.prototype,"secondsChangedForBinding",null);_.y([_.vj({is:"yt-timestamp-input",disableElementRegistration:!0})],Jl);
_.h(Jl,"yt-timestamp-input",function(){if(RjF===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;PMq===void 0&&(PMq=document.createElement("template"));var q=PMq;d.call(f,q.content.cloneNode(!0),c.content.firstChild);RjF=c}c=RjF;return c},{mode:2});var at=function(){return _.z.apply(this,arguments)||this};
_.K(at,_.z);_.r=at.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20176_scroller.dialogElement=this.hostElement.parentNode};
_.r.dataChanged=function(){var c=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.gy().getPlayerPromise().then(function(f){f=f.getCurrentTime();c.minutes=Math.floor(f/60).toString();c.seconds=(Math.floor(f)%60).toString()})};
_.r.onTapSubmit=function(c){c.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(c={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(c.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(c.minutes=this.minutes,c.seconds=this.seconds),_.ql().resolve(_.ZM).resolveCommand(this.serviceEndpoint,{form:Object.assign({},c,{element:this.hostElement})}))};
_.r.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.r.onYtServiceRequestCompleted=function(c,f){f=f.actions;if(Array.isArray(f))for(var d=0,q=f.length;d<q;d++)_.b(f[d],_.Lz)&&(c.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(f[d]))};
_.r.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.r.toggleSubmitButton=function(c){this.set("submitButton.isDisabled",!c)};
_.r.handleInput=function(){var c=this.issueType,f=this.affiliation,d=this.minutes,q=this.seconds;d=!this.showTimestamp||!!d&&!!q;this.toggleSubmitButton(!!this.descriptionText&&!!c&&!!f&&d)};
_.r.computeServiceEndpoint=function(c){return this.get("submitButton.buttonRenderer.serviceEndpoint",c)};
_.r.computeSubmitButton=function(c){(c=this.get("submitButton.buttonRenderer",c))&&(c=Object.assign({},c,{serviceEndpoint:void 0}));return c};
_.r.computeShowTimestamp=function(c){return!!c};
_.r.onValueChangedForIssueType=function(c){this.issueType=c.detail.value};
_.r.onValueChangedForAffiliation=function(c){this.affiliation=c.detail.value};
_.r.updateDescriptionTextFromBinding=function(c){this.descriptionText=c.detail.value};
_.r.updateFullNameTextFromBinding=function(c){this.fullNameText=c.detail.value};
_.r.updateMinutesFromBinding=function(c){this.minutes=c.detail.value};
_.r.updateSecondsFromBinding=function(c){this.seconds=c.detail.value};
at.prototype.handleInput=at.prototype.handleInput;at.prototype.onYtServiceRequestError=at.prototype.onYtServiceRequestError;at.prototype.onYtServiceRequestCompleted=at.prototype.onYtServiceRequestCompleted;at.prototype.onYtServiceRequestSent=at.prototype.onYtServiceRequestSent;at.prototype.dataChanged=at.prototype.dataChanged;_.y([_.Q(_.Yd.YtOpenPopupBehavior),_.D("design:type",Object)],at.prototype,"ytOpenPopupBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.y([_.AY("#scroller"),_.D("design:type",Object)],at.prototype,"JSC$20176_scroller",void 0);_.y([_.AY("#description"),_.D("design:type",HTMLInputElement)],at.prototype,"description",void 0);_.y([_.AY("#full-name"),_.D("design:type",Object)],at.prototype,"fullName",void 0);_.y([_.L(),_.D("design:type",Object)],at.prototype,"data",void 0);
_.y([_.L({computed:"computeShowTimestamp(data.timestampLabel)"}),_.D("design:type",Boolean)],at.prototype,"showTimestamp",void 0);_.y([_.L({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.D("design:type",Object)],at.prototype,"serviceEndpoint",void 0);_.y([_.L({computed:"computeSubmitButton(data)"}),_.D("design:type",Object)],at.prototype,"submitButton",void 0);_.y([_.L(),_.D("design:type",String)],at.prototype,"descriptionText",void 0);
_.y([_.L(),_.D("design:type",Number)],at.prototype,"issueType",void 0);_.y([_.L(),_.D("design:type",Number)],at.prototype,"affiliation",void 0);_.y([_.L(),_.D("design:type",String)],at.prototype,"fullNameText",void 0);_.y([_.L(),_.D("design:type",String)],at.prototype,"minutes",void 0);_.y([_.L(),_.D("design:type",String)],at.prototype,"seconds",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],at.prototype,"dataChanged",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],at.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],at.prototype,"onYtServiceRequestCompleted",null);
_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],at.prototype,"onYtServiceRequestError",null);_.y([_.m5("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],at.prototype,"handleInput",null);_.y([_.v({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],at);
_.h(at,"ytd-legal-report-details-form-renderer",function(){if(Ivi!==void 0)return Ivi;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Ivi=c},{mode:1});var UvS;var VU=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return c};
_.K(VU,_.z);VU.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
VU.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var c=this.formRenderer.getForm();c&&this.data.submitEndpoint&&(_.ql().resolve(_.ZM).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},c,{element:this.hostElement})}),_.gS(this.hostElement,"yt-close-popup-action"))}};
VU.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.gS(this.hostElement,"yt-close-popup-action"))};
VU.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
VU.prototype.onPopupClosed=VU.prototype.onPopupClosed;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],VU.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],VU.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);
_.y([_.AY("yt-form-renderer"),_.D("design:type",Object)],VU.prototype,"formRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],VU.prototype,"data",void 0);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],VU.prototype,"onPopupClosed",null);_.y([_.v({is:"ytd-form-popup-content",disableElementRegistration:!0})],VU);
_.h(VU,"ytd-form-popup-content",function(){if(UvS!==void 0)return UvS;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return UvS=c},{mode:1});var pBC;var X_=function(){return _.z.apply(this,arguments)||this};
_.K(X_,_.z);X_.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
X_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
X_.prototype.onPopupOpened=function(){_.CZ(this.hostElement,"yt-invalidate-popup-tabbables")};
X_.prototype.onYtServiceRequestCompleted=function(c,f){f.data&&f.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.CZ(this.hostElement,"yt-invalidate-popup-tabbables"))};
X_.prototype.onYtServiceRequestCompleted=X_.prototype.onYtServiceRequestCompleted;X_.prototype.onPopupOpened=X_.prototype.onPopupOpened;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],X_.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],X_.prototype,"data",void 0);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],X_.prototype,"onPopupOpened",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],X_.prototype,"onYtServiceRequestCompleted",null);_.y([_.v({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],X_);
_.h(X_,"ytd-form-popup-renderer",function(){if(pBC!==void 0)return pBC;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return pBC=c},{mode:1});var xvF;var uZ=function(){var c=_.z.apply(this,arguments)||this;c.isLoading=!1;return c};
_.K(uZ,_.z);_.r=uZ.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Zer(this.hostElement)};
_.r.onYtServiceRequestSent=function(){this.isLoading=!0};
_.r.onYtServiceRequestCompleted=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.r.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.ll(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.r.closePopupHandler=function(){this.fireOnCloseActions()};
_.r.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var c=this.get("data.headerImage.thumbnails");c&&(c=_.kZ(c,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+c+")")}};
_.r.onYtNavigate=function(c){(c=_.oV(c))&&c.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
uZ.prototype.onYtNavigate=uZ.prototype.onYtNavigate;uZ.prototype.onHeaderImageChanged=uZ.prototype.onHeaderImageChanged;uZ.prototype.closePopupHandler=uZ.prototype.closePopupHandler;uZ.prototype.onYtServiceRequestCompleted=uZ.prototype.onYtServiceRequestCompleted;uZ.prototype.onYtServiceRequestSent=uZ.prototype.onYtServiceRequestSent;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],uZ.prototype,"ytEventForwardingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],uZ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],uZ.prototype,"isLoading",void 0);_.y([_.AY("#header"),_.D("design:type",HTMLDivElement)],uZ.prototype,"header",void 0);_.y([_.AY("#confirm-button"),_.D("design:type",_.ny)],uZ.prototype,"confirmButton",void 0);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],uZ.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],uZ.prototype,"onYtServiceRequestCompleted",null);
_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],uZ.prototype,"closePopupHandler",null);_.y([_.m5("data.headerImage"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],uZ.prototype,"onHeaderImageChanged",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],uZ.prototype,"onYtNavigate",null);
_.y([_.v({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],uZ);
_.h(uZ,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(xvF!==void 0)return xvF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return xvF=c},{mode:1});var ouS;var vz=function(){var c=_.z.apply(this,arguments)||this;c.isLoading=!1;return c};
_.K(vz,_.z);_.r=vz.prototype;_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Zer(this.hostElement)};
_.r.onYtServiceRequestCompleted=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.r.onYtServiceRequestError=function(c){_.fO(this.hostElement,c.detail.error.message)};
_.r.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.r.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.gS(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.r.onDataChanged=function(){this.isLoading=!1;var c=this.get("data.headerImage.thumbnails");c&&(c=_.kZ(c,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+c+")");c=_.X2();var f=_.V5(),d=this.get("data.trackingParams");d&&f&&c&&_.Dr(c,f,_.Q1(d))};
_.ci.Object.defineProperties(vz.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
vz.prototype.onDataChanged=vz.prototype.onDataChanged;vz.prototype.onDomChange=vz.prototype.onDomChange;vz.prototype.onYtServiceRequestError=vz.prototype.onYtServiceRequestError;vz.prototype.onYtServiceRequestCompleted=vz.prototype.onYtServiceRequestCompleted;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],vz.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],vz.prototype,"isLoading",void 0);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],vz.prototype,"hasDescription",null);_.y([_.AY("tp-yt-paper-dialog-scrollable"),_.D("design:type",Object)],vz.prototype,"scrollable",void 0);_.y([_.AY("#header"),_.D("design:type",HTMLElement)],vz.prototype,"header",void 0);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],vz.prototype,"onYtServiceRequestCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],vz.prototype,"onYtServiceRequestError",null);
_.y([_.Ta("dom-change"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],vz.prototype,"onDomChange",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vz.prototype,"onDataChanged",null);_.y([_.v({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],vz);
_.h(vz,"ytd-gaming-account-link-setting-renderer",function(){if(ouS!==void 0)return ouS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return ouS=c},{mode:1});var GRG;var cUC;var hl=function(){var c=_.z.apply(this,arguments)||this;c.isHeader=!1;c.getEndpointForm=function(){return f9H(c.data)};
return c};
_.K(hl,_.z);_.r=hl.prototype;_.r.triggerHintActions=function(){var c=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var f=_.kt(c.hostElement,"yt-get-opened-popups-action");!(f&&f.length===1?f[0]:[]).some(function(d){d=d.openPopupAction.popupType;return d==="SURVEY"||d==="MEALBAR"||d==="HINT"})&&c.data.hintActions&&c.guideOpened&&(_.ll(c.hostElement,c.data.hintActions,c.hostElement),c.data.hintActions=void 0)})};
_.r.getBadgeIconType=function(c){return c&&c.liveBroadcasting?"live":null};
_.r.onDown=function(){this.interaction.triggerDown()};
_.r.onUp=function(){this.interaction.triggerUp()};
_.r.onTap=function(c){if(this.data.serviceEndpoint){var f;_.F("shorts_controller_retrieve_seedless_sequence_v2")&&((f=_.b(this.data.serviceEndpoint,_.EO))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):ceC(this.data.serviceEndpoint,this);c.preventDefault()}else this.data.navigationEndpoint&&!_.qY(_.x0(c),this.hostElement,["A".toString()])&&_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.r.computeActive=function(c,f){if(!c)return!1;var d=c.navigationEndpoint;c=c.serviceEndpoint;if(!d&&!c||!f)return!1;if(d){c=(c=_.Y0(f))&&["subscriptions","filteredsubscriptions"].includes(c);if(_.b(d,_.Fw)&&_.b(f,_.Fw)&&!c){var q=_.b(d,_.Fw).browseId;f=_.b(f,_.Fw).browseId;return q!==void 0&&f!==void 0&&(q===f||q==="VLWL"&&f==="FEwatch_later"||q==="FEwatch_later"&&f==="VLWL")}var Z;d=(Z=_.b(d.commandMetadata,_.jO))==null?void 0:Z.url;f=(q=_.b(f.commandMetadata,_.jO))==null?void 0:q.url;return!(!d||
!f||d!==f&&d!==_.Bq(f))}return this.isActiveShortsTab(c,f)};
_.r.isActiveShortsTab=function(c,f){f=!!_.b(f,_.EO)||!!_.b(f,_.wF);return(!!_.b(c,_.EO)||!!_.b(c,_.wF))&&f};
_.r.computeIsPrimary=function(c){return!!c};
_.ci.Object.defineProperties(hl.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 c=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&c)return c}}});
hl.prototype.onTap=hl.prototype.onTap;hl.prototype.onUp=hl.prototype.onUp;hl.prototype.onDown=hl.prototype.onDown;hl.prototype.triggerHintActions=hl.prototype.triggerHintActions;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],hl.prototype,"componentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],hl.prototype,"rendererBehavior",void 0);_.y([_.Q(_.jI.YtTaskEmitterBehavior),_.D("design:type",Object)],hl.prototype,"taskEmitterBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],hl.prototype,"activeEndpoint",void 0);_.y([_.L(),_.D("design:type",Object)],hl.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],hl.prototype,"guideOpened",void 0);_.y([_.L(),_.D("design:type",String)],hl.prototype,"type",void 0);_.y([_.AY("yt-interaction"),_.D("design:type",Object)],hl.prototype,"interaction",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],hl.prototype,"isHeader",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data","activeEndpoint"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],hl.prototype,"active",null);_.y([_.L({reflectToAttribute:!0}),_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],hl.prototype,"isPrimary",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.count","data.presentationStyle","data.badges.*"),_.D("design:type",String),_.D("design:paramtypes",[])],hl.prototype,"lineEndStyle",null);
_.y([_.S("lineEndStyle"),_.D("design:type",Object),_.D("design:paramtypes",[])],hl.prototype,"ariaLabel",null);_.y([_.m5("data.hintActions","guideOpened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],hl.prototype,"triggerHintActions",null);_.y([_.Ta("down"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],hl.prototype,"onDown",null);
_.y([_.Ta("up"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],hl.prototype,"onUp",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],hl.prototype,"onTap",null);_.y([_.v({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],hl);
_.h(hl,"ytd-guide-entry-renderer",function(){if(cUC!==void 0)return cUC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return cUC=c},{mode:1});var wI=function(){var c=_.z.apply(this,arguments)||this;c.userToggled=!1;return c};
_.K(wI,_.z);_.r=wI.prototype;_.r.getItemsPath=function(){return"data.expandableItems"};
_.r.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.r.onExpanderItemTapped=function(c){var f=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.F("kevlar_guide_expandable_items_killswitch")&&_.ol(this,function(){_.xO(f.expandableItems)});
c.preventDefault()};
_.r.onCollapserItemTapped=function(c){var f=this;this._setExpanded(!1);this.userToggled=!0;c.preventDefault();this.expandableItems&&!_.F("kevlar_guide_collapsible_items_killswitch")&&_.ol(this,function(){_.UN(f.hostElement)})};
_.r.observeActiveEndpoint=function(){for(var c=this.activeEndpoint,f=this.data,d=this.expandableItems.children,q=0,Z=d.length;q<Z;q++)d[q].activeEndpoint=c;f&&f.autoExpandCommand&&c&&!this.userToggled&&(d=this.data.autoExpandCommand,f=!(!_.b(d,_.Fw)||!_.b(c,_.Fw)||_.b(d,_.Fw).browseId!==_.b(c,_.Fw).browseId),c=this.get("commandMetadata.webCommandMetadata.url",c),d=this.get("commandMetadata.webCommandMetadata.url",d),f=f||!!(c&&d&&c.includes(d)),this._setExpanded(f),f&&this.ytLazyListBehavior.fillRemainingListItems())};
wI.prototype.observeActiveEndpoint=wI.prototype.observeActiveEndpoint;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],wI.prototype,"ytLazyListBehavior",void 0);_.y([_.AY("#expandable-items"),_.D("design:type",HTMLElement)],wI.prototype,"expandableItems",void 0);
_.y([_.L(),_.D("design:type",Object)],wI.prototype,"data",void 0);_.y([_.L({readOnly:!0,reflectToAttribute:!0}),_.D("design:type",Boolean)],wI.prototype,"expanded",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],wI.prototype,"initialCount",void 0);_.y([_.L(),_.D("design:type",Object)],wI.prototype,"activeEndpoint",void 0);_.y([_.m5("data","activeEndpoint","canShowMore"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wI.prototype,"observeActiveEndpoint",null);
_.y([_.v({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],wI);
_.h(wI,"ytd-guide-collapsible-entry-renderer",function(){if(GRG!==void 0)return GRG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return GRG=c},{mode:_.lP("kevlar_poly_si_batch_j079")?1:2});var flq;var dk3;var yU=function(){var c=_.z.apply(this,arguments)||this;c.allVideosCount=0;c.renderGuideEntry=!1;return c};
_.K(yU,_.z);yU.prototype.observeRenderEntry=function(){var c;this.renderGuideEntry=!((c=this.data)==null||!c.alwaysShow)||!!this.allVideosCount};
yU.prototype.observeRenderEntry=yU.prototype.observeRenderEntry;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],yU.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],yU.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],yU.prototype,"activeEndpoint",void 0);_.y([_.L({selector:_.p_z}),_.D("design:type",Object)],yU.prototype,"allVideosCount",void 0);
_.y([_.L(),_.D("design:type",Object)],yU.prototype,"renderGuideEntry",void 0);_.y([_.ba("allVideosCount","data.alwaysShow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],yU.prototype,"observeRenderEntry",null);_.y([_.v({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],yU);
_.h(yU,"ytd-guide-downloads-entry-renderer",function(){if(dk3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);dk3=c}c=dk3;return c},{mode:1});var Wz=function(){var c=_.z.apply(this,arguments)||this;c.youtab=_.F("web_enable_youtab");c.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return c};
_.K(Wz,_.z);_.r=Wz.prototype;_.r.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]]"}}}}}};
_.r.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var c=this.sectionItems.children,f=0,d=c.length;f<d;f++)c[f].activeEndpoint=this.activeEndpoint}};
_.r.handleAddToGuideSectionAction=function(c){var f=_.b(c,EHi);if(f&&this.data&&(c=f.items,f=f.handlerData,c&&f&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(f)>-1)){f=0;for(var d=c.length;f<d;f++)c[f].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,c[f])}};
_.r.handleRemoveFromGuideSectionAction=function(c){var f=_.b(c,nHC);f&&this.data&&(c=f.guideEntryId,f=f.handlerData,c&&f&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(f)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(c,this.data.sectionItems),this.removeFromCollapsedSection(c,this.data.sectionItems)))};
_.r.removeFromExpandedSection=function(c,f){c=this.getEntryIndexMatchingId(c,f);c!==-1&&this.splice("data.sectionItems",c,1)};
_.r.removeFromCollapsedSection=function(c,f){var d=f.findIndex(function(q){return!!_.b(q,D2D)});
d&&d!==-1&&f[d]&&_.b(f[d],D2D)&&(f=_.b(f[d],D2D).expandableItems)&&(c=this.getEntryIndexMatchingId(c,f),c!==-1&&this.splice("data.sectionItems."+d+".guideCollapsibleEntryRenderer.expandableItems",c,1))};
_.r.getEntryIndexMatchingId=function(c,f){var d=this;return f.findIndex(function(q){return d.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",q)===c})};
Wz.prototype.activeEndpointChanged=Wz.prototype.activeEndpointChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Wz.prototype,"actionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("#section-items"),_.D("design:type",HTMLDivElement)],Wz.prototype,"sectionItems",void 0);
_.y([_.AY("#header-entry"),_.D("design:type",Object)],Wz.prototype,"headerEntry",void 0);_.y([_.L(),_.D("design:type",Object)],Wz.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Wz.prototype,"activeEndpoint",void 0);_.y([_.L(),_.D("design:type",Object)],Wz.prototype,"youtab",void 0);_.y([_.m5("activeEndpoint"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Wz.prototype,"activeEndpointChanged",null);
_.y([_.v({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Wz);
_.h(Wz,"ytd-guide-collapsible-section-entry-renderer",function(){if(flq===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);flq=c}c=flq;return c},{mode:1});var j2D;var qIr;var Dy=function(){var c=_.z.apply(this,arguments)||this;c.modernTypography=_.F("web_modern_typography");c.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 c};
_.K(Dy,_.z);_.r=Dy.prototype;
_.r.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}}}}};
_.r.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var c=_.kt(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);c&&c.length===1&&c[0]&&_.kt(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.r.handleResetChannelUnreadCountCommand=function(c){var f;(c=(f=_.b(c,QMF))==null?void 0:f.channelId)&&this.data&&this.data.items&&(f=this.getPathToEntryMatchingId(c))&&(this.set(f+".guideEntryRenderer.count",0),this.set(f+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.r.handleResetSubscriptionsUnreadDotCommand=function(c){var f,d=(f=_.b(c,S2C))==null?void 0:f.targetId,q;d&&(q=this.data)!=null&&q.items&&(c=this.data.items.findIndex(function(Z){var M;return((M=Z.guideEntryRenderer)==null?void 0:M.targetId)===d}),c<0||this.set("data.items."+c+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.r.getPathToEntryMatchingId=function(c){if(this.data&&this.data.items){var f=this.getEntryIndexMatchingId(c,this.data.items);if(f>-1)return"data.items."+f;for(var d=0;d<this.data.items.length;d++)if(f=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[d]))if(f=this.getEntryIndexMatchingId(c,f),f>-1)return"data.items."+d+".guideCollapsibleEntryRenderer.expandableItems."+f}};
_.r.handleAddToGuideSectionAction=function(c){var f=this;if(_.b(c,EHi)){var d=_.b(c,EHi).items;c=_.b(c,EHi).handlerData;var q,Z;if(d&&c&&((q=this.data)==null?void 0:(Z=q.handlerDatas)==null?void 0:Z.indexOf(c))>-1){d=d.filter(function(g){return(g=f.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",g))&&!f.isGuideItemPresent(g)});
var M;if(c==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((M=this.data)==null?0:M.items)&&(q=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),q>-1)){this.splice.apply(this,["data.items",q+1,0].concat(_.LT(d)));return}this.unshift.apply(this,["data.items"].concat(_.LT(d)))}}};
_.r.isGuideItemPresent=function(c){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(c,this.data.items)!==-1)return!0;var f=this.data.items.find(function(d){return!!d.guideCollapsibleEntryRenderer});
if((f==null?0:f.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(c,f.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.r.getEntryIndexMatchingId=function(c,f){var d=this;return f.findIndex(function(q){return d.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",q)===c})};
_.r.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(c,f){var d=this;return f.findIndex(function(q){return d.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",q)===c})};
_.r.handleRemoveFromGuideSectionAction=function(c){if(_.b(c,nHC)){var f=_.b(c,nHC).guideEntryId;c=_.b(c,nHC).handlerData;var d,q;f&&c&&((d=this.data)==null?void 0:(q=d.handlerDatas)==null?void 0:q.indexOf(c))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(f,this.data.items),this.removeFromCollapsedSection(f,this.data.items))}};
_.r.removeFromExpandedSection=function(c,f){c=this.getEntryIndexMatchingId(c,f);c!==-1&&this.splice("data.items",c,1)};
_.r.removeFromCollapsedSection=function(c,f){var d=f.findIndex(function(q){return!!q.guideCollapsibleEntryRenderer});
d!==-1&&(f=f[d].guideCollapsibleEntryRenderer.expandableItems)&&(c=this.getEntryIndexMatchingId(c,f),c!==-1&&this.splice("data.items."+d+".guideCollapsibleEntryRenderer.expandableItems",c,1))};
_.r.activeEndpointChanged=function(){for(var c=_.r1(this.hostElement).querySelector("#items").children,f=0,d=c.length;f<d;f++)c[f].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.r.guideOpenedChanged=function(){for(var c=_.r1(this.hostElement).querySelector("#items").children,f=0,d=c.length;f<d;f++)c[f].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Dy.prototype.guideOpenedChanged=Dy.prototype.guideOpenedChanged;Dy.prototype.activeEndpointChanged=Dy.prototype.activeEndpointChanged;Dy.prototype.persistentGuideChanged=Dy.prototype.persistentGuideChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Dy.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],Dy.prototype,"ytLazyListBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],Dy.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Dy.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Dy.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Dy.prototype,"modernTypography",void 0);_.y([_.L(),_.D("design:type",String)],Dy.prototype,"type",void 0);_.y([_.L({value:20}),_.D("design:type",Number)],Dy.prototype,"initialCount",void 0);_.y([_.L({value:10}),_.D("design:type",Number)],Dy.prototype,"targetFramerate",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],Dy.prototype,"autoFill",void 0);_.y([_.L({value:50}),_.D("design:type",Number)],Dy.prototype,"renderDelay",void 0);
_.y([_.m5("guidePersistentAndVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Dy.prototype,"persistentGuideChanged",null);_.y([_.ba("activeEndpoint"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Dy.prototype,"activeEndpointChanged",null);_.y([_.ba("guideOpened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Dy.prototype,"guideOpenedChanged",null);
_.y([_.v({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Dy);
_.h(Dy,"ytd-guide-section-renderer",function(){if(qIr!==void 0)return qIr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return qIr=c},{mode:_.lP("kevlar_poly_si_batch_j073")?1:2});var Z2r;var em=function(){return _.z.apply(this,arguments)||this};
_.K(em,_.z);_.ci.Object.defineProperties(em.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],em.prototype,"rendererBehaviors",void 0);_.y([_.L(),_.D("design:type",Object)],em.prototype,"data",void 0);_.y([_.L(),_.S("data.signInButton.buttonRenderer.style"),_.D("design:type",Object),_.D("design:paramtypes",[])],em.prototype,"alignByText",null);_.y([_.v({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],em);
_.h(em,"ytd-guide-signin-promo-renderer",function(){if(Z2r===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);Z2r=c}c=Z2r;return c},{mode:1});var Nq=function(){var c=_.z.apply(this,arguments)||this;c.showFooter=!1;return c};
_.K(Nq,_.z);Nq.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}}}}};
Nq.prototype.attached=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1){f=_.ql().resolve(_.dx(_.Ns));if(!f)return d.jumpTo(0);f.setGuideData(c.hostElement);return d.yield(0,3)}c.ytLazyListBehavior.initialCount=2;return d.return()})};
Nq.prototype.onMouseExit=function(){_.F("web_guide_hover_expansion")&&_.kt(this.hostElement,"yt-guide-mouseleaved",[])};
Nq.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Nq.prototype.dataChanged=Nq.prototype.dataChanged;Nq.prototype.onMouseExit=Nq.prototype.onMouseExit;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Nq.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.r9.YtLazyListBehavior),_.D("design:type",Object)],Nq.prototype,"ytLazyListBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Nq.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Nq.prototype,"showFooter",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],Nq.prototype,"autoFill",void 0);_.y([_.Ta("mouseleave"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Nq.prototype,"onMouseExit",null);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Nq.prototype,"dataChanged",null);_.y([_.v({is:"ytd-guide-renderer",disableElementRegistration:!0})],Nq);
_.h(Nq,"ytd-guide-renderer",function(){if(j2D!==void 0)return j2D;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return j2D=c},{mode:_.lP("kevlar_poly_si_batch_j073")?1:2});var MrQ;var It=function(){var c=_.z.apply(this,arguments)||this;c.systemIcons=_.F("kevlar_system_icons");c.frostedGlass=_.F("web_frosted_glass");c.getEndpointForm=function(){return f9H(c.data)};
return c};
_.K(It,_.z);_.r=It.prototype;_.r.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.r.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.xC(this.data.formattedTitle))};
_.r.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.r.onDown=function(){this.interaction.triggerDown()};
_.r.onUp=function(){this.interaction.triggerUp()};
_.r.onTap=function(c){if(this.data.serviceEndpoint){var f;_.F("shorts_controller_retrieve_seedless_sequence_v2")&&((f=_.b(this.data.serviceEndpoint,_.EO))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):ceC(this.data.serviceEndpoint,this);c.preventDefault()}else{var d;((d=this.data)==null?0:d.navigationEndpoint)&&!_.qY(_.x0(c),this.hostElement,["A".toString()])&&_.CZ(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.r.computeActive=function(c,f){if(!c)return!1;var d=c.navigationEndpoint;c=c.serviceEndpoint;if(!d&&!c||!f)return!1;if(d){c=_.b(d,_.Fw);var q=_.b(f,_.Fw);if(c&&q)return c.browseId===q.browseId&&c.params===q.params;var Z;d=(Z=_.b(d.commandMetadata,_.jO))==null?void 0:Z.url;var M;f=(M=_.b(f.commandMetadata,_.jO))==null?void 0:M.url;return!(!d||!f||d!==f&&d!==_.Bq(f))}return this.isActiveShortsTab(c,f)};
_.r.isActiveShortsTab=function(c,f){f=!!_.b(f,_.EO)||!!_.b(f,_.wF);return(!!_.b(c,_.EO)||!!_.b(c,_.wF))&&f};
_.r.computeTitle=function(c,f){return f?"":_.xC(c)};
_.ci.Object.defineProperties(It.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
It.prototype.onTap=It.prototype.onTap;It.prototype.onUp=It.prototype.onUp;It.prototype.onDown=It.prototype.onDown;It.prototype.onActiveStateChange=It.prototype.onActiveStateChange;It.prototype.dataChanged=It.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],It.prototype,"ytComponentBehavior",void 0);
_.y([_.Q(_.X$),_.D("design:type",Object)],It.prototype,"ironButtonState",void 0);_.y([_.L(),_.D("design:type",Object)],It.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],It.prototype,"activeEndpoint",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],It.prototype,"noLabels",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.D("design:type",Boolean)],It.prototype,"isActive",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],It.prototype,"systemIcons",void 0);_.y([_.AY("yt-interaction"),_.D("design:type",Object)],It.prototype,"interaction",void 0);_.y([_.S("isActive"),_.D("design:type",Object),_.D("design:paramtypes",[])],It.prototype,"ariaSelected",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],It.prototype,"frostedGlass",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],It.prototype,"dataChanged",null);_.y([_.m5("isActive"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],It.prototype,"onActiveStateChange",null);_.y([_.Ta("down"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],It.prototype,"onDown",null);
_.y([_.Ta("up"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],It.prototype,"onUp",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],It.prototype,"onTap",null);_.y([_.v({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],It);
_.h(It,"ytd-mini-guide-entry-renderer",function(){if(MrQ!==void 0)return MrQ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return MrQ=c},{mode:_.lP("kevlar_poly_si_batch_j063")?1:2});var rUC;var Pz=function(){var c=_.z.apply(this,arguments)||this;c.allVideosCount=0;c.noLabels=_.F("kevlar_mini_guide_no_labels");c.frostedGlass=_.F("web_frosted_glass");return c};
_.K(Pz,_.z);_.r=Pz.prototype;_.r.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.r.onMouseEnter=function(){_.F("web_guide_hover_expansion")&&_.kt(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.r.visibleChanged=function(){if(this.visible&&!this.data){var c=_.ql().resolve(_.dx(_.Ns));c&&c.setGuideData(this.hostElement)}};
_.r.dataChanged=function(){var c=[],f;if((f=this.data)!=null&&f.items){f=_.C(this.data.items);for(var d=f.next();!d.done;d=f.next()){d=d.value;var q=void 0;if((q=d.guideSectionRenderer)==null?0:q.items)for(q=void 0,d=_.C((q=d.guideSectionRenderer)==null?void 0:q.items),q=d.next();!q.done;q=d.next())if(q=q.value,q.guideEntryRenderer)q=q.guideEntryRenderer,q.isPrimary&&c.push({guideEntryRenderer:q});else if(q.guideCollapsibleSectionEntryRenderer){var Z=void 0;((Z=_.b(q.guideCollapsibleSectionEntryRenderer.headerEntry,
rC))==null?0:Z.isPrimary)&&c.push({guideEntryRenderer:_.b(q.guideCollapsibleSectionEntryRenderer.headerEntry,rC)});if(q=q.guideCollapsibleSectionEntryRenderer.sectionItems)for(q=_.C(q),Z=q.next();!Z.done;Z=q.next()){var M=Z.value;Z=_.b(M,ezr);var g=void 0;((g=_.b(M,rC))==null?0:g.isPrimary)?c.push({guideEntryRenderer:_.b(M,rC)}):Z&&(M=void 0,_.b((M=Z)==null?void 0:M.entryRenderer,rC)&&(Z.alwaysShow||this.allVideosCount)&&c.push({guideEntryRenderer:_.b(Z.entryRenderer,rC)}))}}}}this.miniGuideItems=
c};
_.r.activeEndpointChanged=function(){for(var c=this.items.children,f=0;f<c.length;f++)c[f].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.r.registerWithViewTransitionManager=function(){var c=this;_.Em(_.a7,function(){var f=_.ql().resolve(_.dx(_.F0));if(f&&f.isAnyTransitionEnabled){var d={};f.viewTransitionCoordinator.registerElement(c.hostElement,(d.slide="mini-guide-page-transition",d))}})};
Pz.prototype.activeEndpointChanged=Pz.prototype.activeEndpointChanged;Pz.prototype.dataChanged=Pz.prototype.dataChanged;Pz.prototype.visibleChanged=Pz.prototype.visibleChanged;Pz.prototype.onMouseEnter=Pz.prototype.onMouseEnter;_.y([_.Q(_.wt),_.D("design:type",Object)],Pz.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],Pz.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Pz.prototype,"ytComponentBehavior",void 0);_.y([_.AY("#items"),_.D("design:type",Object)],Pz.prototype,"items",void 0);_.y([_.L(),_.D("design:type",Object)],Pz.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Boolean)],Pz.prototype,"visible",void 0);_.y([_.L(),_.D("design:type",Object)],Pz.prototype,"miniGuideItems",void 0);_.y([_.L({selector:_.p_z}),_.D("design:type",Object)],Pz.prototype,"allVideosCount",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Pz.prototype,"noLabels",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Pz.prototype,"frostedGlass",void 0);
_.y([_.Ta("mouseenter"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Pz.prototype,"onMouseEnter",null);_.y([_.ba("visible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Pz.prototype,"visibleChanged",null);_.y([_.ba("data","allVideosCount"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Pz.prototype,"dataChanged",null);
_.y([_.ba("activeEndpoint"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Pz.prototype,"activeEndpointChanged",null);_.y([_.v({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Pz);
_.h(Pz,"ytd-mini-guide-renderer",function(){if(rUC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);rUC=c}c=rUC;return c},{mode:1});var C1D;var gIS=/^[\x00-\x7F]+$/,Rt=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(Rt,_.z);_.ci.Object.defineProperties(Rt.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var c,f=_.xC((c=this.data)==null?void 0:c.handle);if(f)return _.pC("@"+f)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var c=_.xC(this.displayHandle),f,d=_.xC((f=this.data)==null?void 0:f.handleUrl);if(c&&d)return _.pC(d+c)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var c=_.xC(this.displayHandle);if(c&&!gIS.test(c)){var f;return(f=this.data)==null?void 0:f.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var c=_.xC(this.displayHandleUrl),f,d=_.xC((f=this.data)==null?void 0:f.urlInfoText);if(c&&d)return _.pC(d+" "+c)}}});
_.y([_.L(),_.D("design:type",Object)],Rt.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Rt.prototype,"displayHandle",null);_.y([_.S("displayHandle"),_.D("design:type",Object),_.D("design:paramtypes",[])],Rt.prototype,"displayHandleUrl",null);_.y([_.S("displayHandle"),_.D("design:type",Object),_.D("design:paramtypes",[])],Rt.prototype,"warningText",null);
_.y([_.S("displayHandleUrl"),_.D("design:type",Object),_.D("design:paramtypes",[])],Rt.prototype,"urlInfoTextWithUrl",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Rt.prototype,"darkerDarkTheme",void 0);_.y([_.v({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Rt);
_.h(Rt,"ytd-handles-claiming-confirm-dialog-content",function(){if(C1D!==void 0)return C1D;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return C1D=c},{mode:1});var kFr;var Ut=function(){var c=_.z.apply(this,arguments)||this;c.okButtonOverride={style:"mono",type:"outline",size:"M"};return c};
_.K(Ut,_.z);Ut.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ut.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ut.prototype,"okButtonOverride",void 0);_.y([_.L(),_.D("design:type",Object)],Ut.prototype,"data",void 0);_.y([_.v({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Ut);
_.h(Ut,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(kFr!==void 0)return kFr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return kFr=c},{mode:1});var O23;var llJ=/^[\x00-\x7F]+$/,pU=function(){var c=_.z.apply(this,arguments)||this;c.isLoading=!1;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(pU,_.z);pU.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var c;this.selectedHandle=(c=this.handleInput)==null?void 0:c.value;this.onSelectedHandleChanged(this.selectedHandle);_.kt(this.hostElement,"yt-refit-popups-action")}};
_.ci.Object.defineProperties(pU.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var c;return(c=this.data)==null?void 0:c.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.pC("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.pC(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!llJ.test(this.selectedHandle)){var c;return(c=this.data)==null?void 0:c.warningText}}}});
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],pU.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pU.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],pU.prototype,"selectedHandle",void 0);_.y([_.L(),_.D("design:type",Object)],pU.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Function)],pU.prototype,"onSelectedHandleChanged",void 0);_.y([_.AY("#channel-handle-input"),_.D("design:type",Object)],pU.prototype,"handleInput",void 0);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],pU.prototype,"handleUrlPrefix",null);_.y([_.S("selectedHandle"),_.D("design:type",Object),_.D("design:paramtypes",[])],pU.prototype,"displayHandle",null);_.y([_.S("selectedHandle"),_.D("design:type",Object),_.D("design:paramtypes",[])],pU.prototype,"displayHandleUrl",null);_.y([_.S("selectedHandle"),_.D("design:type",Object),_.D("design:paramtypes",[])],pU.prototype,"warningText",null);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],pU.prototype,"darkerDarkTheme",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.y([_.v({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],pU);
_.h(pU,"ytd-handles-claiming-edit-dialog-content",function(){if(O23!==void 0)return O23;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return O23=c},{mode:1});var s2r;var xM=function(){var c=_.z.apply(this,arguments)||this;c.actionButtonOverride={style:"mono",type:"filled",size:"M"};c.cancelButtonOverride={style:"mono",type:"text",size:"M"};c.selectButtonDisabled=!1;c.isLoading=!1;c.hasSelectedHandleEventListener=!1;c.selectedHandleChanged=function(f){c.selectedHandle=f};
return c};
_.K(xM,_.z);_.r=xM.prototype;_.r.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.r.onDataChanged=function(){var c,f;this.selectedHandle=(f=_.b((c=this.data)==null?void 0:c.inputField,Y2c))==null?void 0:f.handle};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.onCancel=function(){this.selectedHandle="";_.gS(this.hostElement,"yt-close-popup-action",[this.is])};
_.r.onSelectHandle=function(){var c=this;if(this.selectedHandle!==void 0){var f;((f=this.data)==null?void 0:f.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(d,q){if(q.newHandleUpdateStatus!==void 0&&q.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&q.newHandleUpdateStatus.errorMessage)_.fO(c.hostElement,_.xC(q.newHandleUpdateStatus.errorMessage)),
c.isLoading=!1;else{var Z;if((Z=c.data)==null?0:Z.onChannelUpdateSuccess){d=c.data.onChannelUpdateSuccess;var M,g;if(q=(M=_.b(d,_.Lz))==null?void 0:(g=M.popup)==null?void 0:g.handlesClaimingConfirmDialogRenderer)q.handle=_.pC(c.selectedHandle);c.ytComponentBehavior.resolveCommand(d);_.gS(c.hostElement,"yt-close-popup-action",[c.is])}else c.isLoading=!1}},
onServerError:function(){var d;c.content&&((d=c.content)==null?0:d.handleInput)&&c.content.handleInput.validate();c.isLoading=!1;_.fO(c.hostElement,_.HO("TRY_AGAIN_LATER"))}}}))}};
_.r.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
xM.prototype.onDataChanged=xM.prototype.onDataChanged;xM.prototype.onSelectedHandleChanged=xM.prototype.onSelectedHandleChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],xM.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xM.prototype,"actionButtonOverride",void 0);_.y([_.L(),_.D("design:type",Object)],xM.prototype,"cancelButtonOverride",void 0);_.y([_.L(),_.D("design:type",Object)],xM.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",String)],xM.prototype,"selectedHandle",void 0);_.y([_.L(),_.D("design:type",Object)],xM.prototype,"selectButtonDisabled",void 0);_.y([_.L(),_.D("design:type",Object)],xM.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Object)],xM.prototype,"hasSelectedHandleEventListener",void 0);_.y([_.L(),_.D("design:type",Object)],xM.prototype,"handleInput",void 0);
_.y([_.m5("selectedHandle"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xM.prototype,"onSelectedHandleChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xM.prototype,"onDataChanged",null);_.y([_.AY("ytd-handles-claiming-edit-dialog-content"),_.D("design:type",Object)],xM.prototype,"content",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.y([_.v({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],xM);
_.h(xM,"ytd-handles-claiming-edit-dialog-renderer",function(){if(s2r!==void 0)return s2r;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return s2r=c},{mode:1});var BgJ;var ot=function(){return _.z.apply(this,arguments)||this};
_.K(ot,_.z);_.ci.Object.defineProperties(ot.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null?0:c.handle){var f;return _.pC("@"+_.xC((f=this.data)==null?void 0:f.handle))}}}});
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],ot.prototype,"formattedHandle",null);_.y([_.L(),_.D("design:type",Object)],ot.prototype,"data",void 0);_.y([_.v({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],ot);
_.h(ot,"ytd-handles-claiming-radio-option-renderer",function(){if(BgJ!==void 0)return BgJ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return BgJ=c},{mode:1});var i2i;var TgH=/^[\x00-\x7F]+$/,Gg=function(){var c=_.z.apply(this,arguments)||this;c.initialRadioIndex="-1";c.isLoading=!1;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.maybeSubmitFeedback=function(){c.feedbackSurveyRenderer.submitSurvey()};
return c};
_.K(Gg,_.z);Gg.prototype.updateSelectedHandleIndexFromBinding=function(c){this.selectedRadioIndex=+c.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(c)};
Gg.prototype.selectedHandleChanged=function(c){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var f;this.selectedHandle=(f=this.handleInput)==null?void 0:f.value;this.onSelectedHandleChanged(c)}};
_.ci.Object.defineProperties(Gg.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var c;return(((c=this.data)==null?void 0:c.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var c;return this.ytRendererBehavior.getSimpleString((c=this.data)==null?void 0:c.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.pC("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.pC(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!TgH.test(this.selectedHandle)){var c;return(c=this.data)==null?void 0:c.warningText}}}});
_.y([_.L(),_.D("design:type",Object)],Gg.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Gg.prototype,"initialRadioIndex",void 0);_.y([_.L(),_.D("design:type",Number)],Gg.prototype,"selectedRadioIndex",void 0);_.y([_.L(),_.D("design:type",String)],Gg.prototype,"selectedHandle",void 0);_.y([_.L(),_.D("design:type",Object)],Gg.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Function)],Gg.prototype,"onSelectedHandleChanged",void 0);
_.y([_.L(),_.D("design:type",Function)],Gg.prototype,"onSelectedRadioIndexChanged",void 0);_.y([_.AY("#channel-handle-input"),_.D("design:type",Object)],Gg.prototype,"handleInput",void 0);_.y([_.AY("ytd-feedback-survey-renderer"),_.D("design:type",Object)],Gg.prototype,"feedbackSurveyRenderer",void 0);_.y([_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],Gg.prototype,"radioButtonLength",null);
_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Gg.prototype,"handleUrlPrefix",null);_.y([_.S("selectedHandle"),_.D("design:type",Object),_.D("design:paramtypes",[])],Gg.prototype,"displayHandle",null);_.y([_.S("selectedHandle"),_.D("design:type",Object),_.D("design:paramtypes",[])],Gg.prototype,"displayHandleUrl",null);_.y([_.S("selectedHandle"),_.D("design:type",Object),_.D("design:paramtypes",[])],Gg.prototype,"warningText",null);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Gg.prototype,"darkerDarkTheme",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.y([_.v({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Gg);
_.h(Gg,"ytd-handles-claiming-select-dialog-content",function(){if(i2i!==void 0)return i2i;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return i2i=c},{mode:1});var mki;var cY=function(){var c=_.z.apply(this,arguments)||this;c.actionButtonOverride={style:"mono",type:"filled",size:"M"};c.cancelButtonOverride={style:"mono",type:"text",size:"M"};c.initialRadioIndex="-1";c.selectButtonDisabled=!1;c.isLoading=!1;c.selectedRadioIndexChanged=function(f){c.selectedRadioIndex=Number(f.detail.value)};
c.selectedHandleChanged=function(f){c.selectedHandle=f.detail.value};
c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(cY,_.z);_.r=cY.prototype;_.r.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.r.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.r.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.kt(this.hostElement,"yt-refit-popups-action")};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.gS(this.hostElement,"yt-close-popup-action",[this.is])};
_.r.onSelectHandle=function(){var c=this;if(this.selectedHandle!==void 0){var f;((f=this.data)==null?void 0:f.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(d,q){if(q.newHandleUpdateStatus!==void 0&&q.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&q.newHandleUpdateStatus.errorMessage)_.fO(c.hostElement,_.xC(q.newHandleUpdateStatus.errorMessage)),
c.isLoading=!1;else{var Z;if((Z=c.data)==null?0:Z.onChannelUpdateSuccess){d=c.data.onChannelUpdateSuccess;q=_.b(d,_.Lz);var M;if(q==null?0:(M=q.popup)==null?0:M.handlesClaimingConfirmDialogRenderer)q.popup.handlesClaimingConfirmDialogRenderer.handle=_.pC(c.selectedHandle);c.ytComponentBehavior.resolveCommand(d);_.gS(c.hostElement,"yt-close-popup-action",[c.is])}else c.isLoading=!1}},
onServerError:function(){if(c.selectedRadioIndex===c.radioButtonLength){var d;c.content&&((d=c.content)==null?0:d.handleInput)&&c.content.handleInput.validate()}c.isLoading=!1;_.fO(c.hostElement,_.HO("TRY_AGAIN_LATER"))}}}))}};
_.r.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var c,f;this.selectedHandle=(c=this.content)==null?void 0:(f=c.handleInput)==null?void 0:f.value}else this.selectedRadioIndex>=0&&((c=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(c==null?void 0:c.handle):this.selectedHandle=void 0)};
_.r.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.r.getRadioItem=function(c){if(this.radioButtonLength>c&&c>=0)return _.b(this.data.radioButton[c],uQi)};
_.ci.Object.defineProperties(cY.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var c;return(((c=this.data)==null?void 0:c.radioButton)||[]).length}}});
cY.prototype.onSelectedHandleChanged=cY.prototype.onSelectedHandleChanged;cY.prototype.onSelectedHandleIndexChanged=cY.prototype.onSelectedHandleIndexChanged;cY.prototype.onDataChanged=cY.prototype.onDataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],cY.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],cY.prototype,"actionButtonOverride",void 0);_.y([_.L(),_.D("design:type",Object)],cY.prototype,"cancelButtonOverride",void 0);
_.y([_.L(),_.D("design:type",Object)],cY.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],cY.prototype,"initialRadioIndex",void 0);_.y([_.L(),_.D("design:type",Number)],cY.prototype,"selectedRadioIndex",void 0);_.y([_.L(),_.D("design:type",String)],cY.prototype,"selectedHandle",void 0);_.y([_.L(),_.D("design:type",Object)],cY.prototype,"selectButtonDisabled",void 0);_.y([_.L(),_.D("design:type",Object)],cY.prototype,"isLoading",void 0);
_.y([_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],cY.prototype,"radioButtonLength",null);_.y([_.AY("ytd-handles-claiming-select-dialog-content"),_.D("design:type",Object)],cY.prototype,"content",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],cY.prototype,"onDataChanged",null);
_.y([_.m5("selectedRadioIndex"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],cY.prototype,"onSelectedHandleIndexChanged",null);_.y([_.m5("selectedHandle"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],cY.prototype,"onSelectedHandleChanged",null);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],cY.prototype,"darkerDarkTheme",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);_.y([_.v({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],cY);
_.h(cY,"ytd-handles-claiming-select-dialog-renderer",function(){if(mki!==void 0)return mki;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return mki=c},{mode:1});var H2J;var AUS;var fR=function(){return _.z.apply(this,arguments)||this};
_.K(fR,_.z);fR.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],fR.prototype,"data",void 0);_.y([_.v({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],fR);
_.h(fR,"ytd-hotkey-dialog-section-option-renderer",function(){if(AUS!==void 0)return AUS;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return AUS=c},{mode:1});var YIp;var dL=function(){return _.z.apply(this,arguments)||this};
_.K(dL,_.z);dL.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dL.prototype,"data",void 0);_.y([_.v({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],dL);
_.h(dL,"ytd-hotkey-dialog-section-renderer",function(){if(YIp!==void 0)return YIp;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return YIp=c},{mode:1});var ji=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(ji,_.z);ji.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ji.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],ji.prototype,"darkerDarkTheme",void 0);_.y([_.v({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],ji);
_.h(ji,"ytd-hotkey-dialog-content",function(){if(H2J!==void 0)return H2J;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return H2J=c},{mode:1});var FLF;var qc=function(){return _.z.apply(this,arguments)||this};
_.K(qc,_.z);qc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var c=document.querySelector("ytd-hotkey-dialog-content #scrollable");c&&(c.dialogElement=this.hostElement.parentElement)};
qc.prototype.onCloseTap=function(){_.gS(this.hostElement,"yt-close-popup-action")};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],qc.prototype,"data",void 0);_.y([_.v({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],qc);
_.h(qc,"ytd-hotkey-dialog-renderer",function(){if(FLF!==void 0)return FLF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return FLF=c},{mode:1});var trG;var ZP=function(){return _.z.apply(this,arguments)||this};
_.K(ZP,_.z);ZP.prototype.onYtServiceRequestError=function(){if(this.blocked){var c;var f=(c=this.data)==null?void 0:c.defaultServiceEndpoint}else{var d;f=(d=this.data)==null?void 0:d.toggledServiceEndpoint}var q;(f=(q=_.b(f,_.S4K))==null?void 0:q.onFailureAction)&&this.ytComponentBehavior.resolveCommand(f);this.updateBlockState(!this.blocked)};
ZP.prototype.onYtToggleButton=function(c){this.updateBlockState(c.detail.toggled)};
ZP.prototype.updateBlockState=function(c){if(c!==this.blocked){var f=this.blockedEntityKey;f&&this.ytdReduxBehavior.dispatch(_.ER("blockStateEntity",f,{key:f,blocked:c}));this.set("data.isToggled",c)}};
_.ci.Object.defineProperties(ZP.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)}}});
ZP.prototype.onYtToggleButton=ZP.prototype.onYtToggleButton;ZP.prototype.onYtServiceRequestError=ZP.prototype.onYtServiceRequestError;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ZP.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],ZP.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ZP.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],ZP.prototype,"blockedEntityKey",void 0);
_.y([_.L({selectorArgs:["blockedEntityKey"],selector:function(c,f){return _.Bb(c.entities,"blockStateEntity",f)}}),
_.D("design:type",Object)],ZP.prototype,"blockStateEntity",void 0);_.y([_.S("data","blockStateEntity"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],ZP.prototype,"blocked",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],ZP.prototype,"onYtServiceRequestError",null);
_.y([_.Ta("yt-toggle-button"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],ZP.prototype,"onYtToggleButton",null);_.y([_.v({is:"ytd-block-button",disableElementRegistration:!0})],ZP);
_.h(ZP,"ytd-block-button",function(){if(trG!==void 0)return trG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return trG=c},
{mode:1});var b2H;var KLD;var Mc=function(){return _.z.apply(this,arguments)||this};
_.K(Mc,_.z);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Mc.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Mc.prototype,"data",void 0);_.y([_.v({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Mc);
_.h(Mc,"ytd-kids-blocklist-picker-item-renderer",function(){if(KLD!==void 0)return KLD;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return KLD=c},{mode:1});var rL=function(){return _.z.apply(this,arguments)||this};
_.K(rL,_.z);rL.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rL.prototype,"data",void 0);_.y([_.v({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],rL);
_.h(rL,"ytd-kids-blocklist-picker-content",function(){if(b2H!==void 0)return b2H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return b2H=
c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var EIr;var CR=function(){var c=_.z.apply(this,arguments)||this;c.hasAnyRequestSucceeded=!1;c.hasAnyRequestFailed=!1;c.numPendingRequests=0;return c};
_.K(CR,_.z);_.r=CR.prototype;_.r.attached=function(){this.hostElement.setAttribute("dialog","")};
_.r.onDoneButtonTap=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.r.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.r.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.r.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.r.onPopupClosed=function(c){var f,d;if(((f=c.detail)==null?void 0:(d=f.popup)==null?void 0:d.is)==="tp-yt-paper-dialog"){var q;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((q=this.data)==null?0:q.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.fX(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
CR.prototype.onPopupClosed=CR.prototype.onPopupClosed;CR.prototype.onYtServiceRequestError=CR.prototype.onYtServiceRequestError;CR.prototype.onYtServiceRequestCompleted=CR.prototype.onYtServiceRequestCompleted;CR.prototype.onYtServiceRequestSent=CR.prototype.onYtServiceRequestSent;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],CR.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],CR.prototype,"data",void 0);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CR.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CR.prototype,"onYtServiceRequestCompleted",null);
_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],CR.prototype,"onYtServiceRequestError",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],CR.prototype,"onPopupClosed",null);_.y([_.v({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],CR);
_.h(CR,"ytd-kids-blocklist-picker-renderer",function(){if(EIr!==void 0)return EIr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return EIr=c},{mode:1});var nIF;var $kC;var gL=function(){return _.z.apply(this,arguments)||this};
_.K(gL,_.z);gL.prototype.setTip=function(c){var f=this;this.data&&(this.tip=nQr(KDp.getInstance(),c,this.data),_.ol(this,function(){_.CZ(f.hostElement,"yt-refit")}))};
gL.prototype.clearTip=function(){this.tip=void 0};
gL.prototype.computeHidden=function(c){return!c};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],gL.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.D("design:type",Boolean)],gL.prototype,"hidden",void 0);_.y([_.L(),_.D("design:type",Object)],gL.prototype,"tip",void 0);_.y([_.v({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],gL);
_.h(gL,"ytd-menu-popup-tip-renderer",function(){if($kC!==void 0)return $kC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);
return $kC=c},{mode:1});var Q2H;var kT=function(){var c=_.z.apply(this,arguments)||this;c.useIcons=!1;c.systemIcons=_.F("kevlar_system_icons");c.useListItemStyles=_.F("web_list_item_style_for_menu_items");return c};
_.K(kT,_.z);_.r=kT.prototype;_.r.onFocus=function(){var c;(c=_.r1(this.hostElement).querySelector("tp-yt-paper-item"))==null||c.focus()};
_.r.onTap=function(){var c=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(c&&_.b(c,_.BO))this.componentBehavior.resolveCommand(c),this.updateToggledStateInEntity();else if(c){this.componentBehavior.resolveCommand(c)||_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}});var f;((f=_.b(c,_.Ti))==null?void 0:f.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.r.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.r.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.r.updateToggledStateInEntity=function(){var c=this.data.toggleMenuServiceItemEntityKey,f=!this.data.isToggled;c&&this.ytdReduxBehavior.dispatch(_.ER("toggleMenuServiceItemEntity",c,{key:c,isToggled:f}))};
_.r.computeIcon=function(c,f,d){return(c=c?d:f)&&c.iconType?_.Tu(c.iconType):""};
_.r.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.r.isIconActive=function(c){return!_.F("toggle_menu_active_icon_killswitch")&&c};
_.ci.Object.defineProperties(kT.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.data)==null?0:c.isToggled)?(f=this.data)==null?void 0:f.toggledText:(d=this.data)==null?void 0:d.defaultText}}});
kT.prototype.toggledStateEntityChanged=kT.prototype.toggledStateEntityChanged;kT.prototype.onYtServiceRequestCompleted=kT.prototype.onYtServiceRequestCompleted;kT.prototype.onTap=kT.prototype.onTap;kT.prototype.onFocus=kT.prototype.onFocus;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],kT.prototype,"componentBehavior",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],kT.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],kT.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kT.prototype,"useIcons",void 0);_.y([_.L({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.D("design:type",String)],kT.prototype,"icon",void 0);
_.y([_.L({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(c,f){return _.Bb(c.entities,"toggleMenuServiceItemEntity",f)}}),
_.D("design:type",Object)],kT.prototype,"toggleMenuServiceItemEntity",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kT.prototype,"systemIcons",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],kT.prototype,"useListItemStyles",void 0);_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kT.prototype,"onFocus",null);
_.y([_.S("data.isToggled"),_.D("design:type",Object),_.D("design:paramtypes",[])],kT.prototype,"toggleButtonText",null);_.y([_.Ta("tap"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kT.prototype,"onTap",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kT.prototype,"onYtServiceRequestCompleted",null);
_.y([_.m5("toggleMenuServiceItemEntity.isToggled","data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kT.prototype,"toggledStateEntityChanged",null);_.y([_.v({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],kT);
_.h(kT,"ytd-toggle-menu-service-item-renderer",function(){if(Q2H!==void 0)return Q2H;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Q2H=c},{mode:1});var SID;var On=function(){return _.z.apply(this,arguments)||this};
_.K(On,_.z);On.prototype.onFocus=function(){var c;(c=_.r1(this.hostElement).querySelector("tp-yt-paper-item"))==null||c.focus()};
_.ci.Object.defineProperties(On.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.XD(this.data.iconUrl)}}});
On.prototype.onFocus=On.prototype.onFocus;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],On.prototype,"rendererBehavior",void 0);_.y([_.Q(_.F4.YtEndpointBehavior),_.D("design:type",Object)],On.prototype,"ytEndpointBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],On.prototype,"data",void 0);_.y([_.Ta("focus"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],On.prototype,"onFocus",null);
_.y([_.S("data.iconUrl"),_.D("design:type",Object),_.D("design:paramtypes",[])],On.prototype,"imageSource",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],On);
_.h(On,"ytd-menu-custom-icon-item-renderer",function(){if(SID!==void 0)return SID;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return SID=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});_.g_(_.hX,"yt-list-item-view-model",{props:{data:_.oM,isMenuItem:_.oM,isCompact:_.oM,onTap:_.Cs,trailingAccessory:_.Cs,hideSelectionTextChevron:_.oM,disabled:_.oM,inPopup:_.oM,disableHorizontalPadding:_.oM,isOverlay:_.oM,isToggled:_.oM,ariaLabel:_.oM,ariaPressed:_.oM}});var lO=function(){var c=_.z.apply(this,arguments)||this;c.disableBackdropFilter=_.F("web_disable_backdrop_filter");return c};
_.K(lO,_.z);_.r=lO.prototype;
_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.r.computeAriaLabel=function(c){return c};
_.r.onPopupOpened=function(){this.items.selected=0;for(var c=_.C(_.r1(this.items).children),f=c.next();!f.done;f=c.next())f.value.popupPositionTarget=this.positionTarget;if(c=this.popupTip||void 0)c.setTip(this.source||""),this.source=void 0;this.veData&&(c=_.X2())&&_.Ic(c,[this.veData])};
_.r.onPopupClosed=function(){var c=this.popupTip||void 0;c&&c.clearTip()};
_.r.onIronActivate=function(c){this.shouldPersist(c)||_.gS(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(c=_.X2())&&_.Rc(c,this.veData)};
_.r.shouldPersist=function(c){var f,d;if(((f=c.detail)==null?void 0:f.selected)===void 0||(d=this.data)==null||!d.items)return!1;var q,Z;return!((Z=(q=this.data.items[c.detail.selected])==null?void 0:q.toggleMenuServiceItemRenderer)==null||!Z.persistentOnMenuPopup)};
_.r.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(c){return c.menuNavigationItemRenderer?!!c.menuNavigationItemRenderer.icon:c.menuServiceItemRenderer?!!c.menuServiceItemRenderer.icon:c.menuConditionalServiceItemRenderer?!!c.menuConditionalServiceItemRenderer.icon:c.menuConditionalNavigationItemRenderer?!!c.menuConditionalNavigationItemRenderer.icon:c.toggleMenuServiceItemRenderer?!!c.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
lO.prototype.onPopupClosed=lO.prototype.onPopupClosed;lO.prototype.onPopupOpened=lO.prototype.onPopupOpened;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],lO.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],lO.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],lO.prototype,"veData",void 0);_.y([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.D("design:type",String)],lO.prototype,"ariaLabel",void 0);_.y([_.L({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],lO.prototype,"useIcons",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],lO.prototype,"disableBackdropFilter",void 0);_.y([_.AY("#items"),_.D("design:type",Object)],lO.prototype,"items",void 0);_.y([_.AY("ytd-menu-popup-tip-renderer"),_.D("design:type",Object)],lO.prototype,"popupTip",void 0);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lO.prototype,"onPopupOpened",null);
_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],lO.prototype,"onPopupClosed",null);_.y([_.v({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],lO);
_.h(lO,"ytd-menu-popup-renderer",function(){if(nIF!==void 0)return nIF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return nIF=c},{mode:1});var LLS;var zVQ=_.dN(function(c){c=_.ch(c,{icon:void 0});var f=c.data;c=c.icon;var d=function(){return f().iconBadgeText},q={},Z=_.FY("yt-spec-icon-badge-shape",function(){a:switch(f().iconBadgeType){case "notification":var M="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":M="yt-spec-icon-badge-shape--type-cart";break a;default:M=""}return M},function(){a:switch(f().iconBadgeStyle){case "overlay":var M="yt-spec-icon-badge-shape--style-overlay";
break a;default:M=""}return M},(q["yt-spec-icon-badge-shape--text-size-small"]=function(){var M=d();
return!!((M==null?0:M.length)&&M.length>2)},q));
return _.B("yt-icon-badge-shape",null,_.B(_.T,{cond:c,then:function(M){return _.B("div",{class:Z},_.B("div",{class:"yt-spec-icon-badge-shape__icon"},_.B(_.Qy,{icon:M})),_.B(_.T,{cond:d,then:function(g){return _.B("div",{class:"yt-spec-icon-badge-shape__badge"},g)}}))}}))},"Gg");
zVQ.idomCompat=!0;_.g_(zVQ,"yt-icon-badge-shape",{props:{data:_.oM,icon:_.oM}});var sn=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};c.unseenCount=0;c.isOverlay=!1;return c};
_.K(sn,_.z);_.r=sn.prototype;_.r.attached=function(){var c=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(f){c.onServiceWorkerMessage(f)})};
_.r.onDataChanged=function(){this.isAttached&&!this.JSC$20307_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20307_lastData=this.data};
_.r.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.r.computeIcon=function(){var c,f;return(c=this.data)==null?void 0:(f=c.icon)==null?void 0:f.iconType};
_.r.onServiceWorkerMessage=function(c){c.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.r.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.b(this.data.updateUnseenCountEndpoint,_.Ti)&&_.b(this.data.updateUnseenCountEndpoint,_.Ti).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.r.handleUpdateNotificationsUnseenCountAction=function(c){var f=this;c=_.b(c,$2H);c!=null&&c.unseenCount&&c.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(c.unseenCount),_.a7.addLowPriorityJob(function(){f.data.updateUnseenCountEndpoint&&f.ytComponentBehavior.resolveCommand(f.data.updateUnseenCountEndpoint)},c.timeoutMs))};
_.r.onClick=function(){_.CZ(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var c=_.kt(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),f=this.data.menuRequest;c&&c.length===1&&c[0]?_.gS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):f&&this.ytComponentBehavior.resolveCommand(f)};
_.r.handleTopbarMenuClosedAction=function(c){c==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.r.toggleIconState=function(c){this.iconButton&&(this.iconButton.pressed=c)};
_.r.sendUnseenCountRequest=function(c){var f=this;_.Em(_.a7,function(){f.ytComponentBehavior.resolveCommand(c)})};
_.r.updateCountUI=function(c){this.set("unseenCount",c<9?c:"9+")};
_.ci.Object.defineProperties(sn.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
sn.prototype.handleUpdateNotificationsUnseenCountAction=sn.prototype.handleUpdateNotificationsUnseenCountAction;sn.prototype.onDataChanged=sn.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],sn.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.fg),_.D("design:type",Object)],sn.prototype,"ytdOpenPopupBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],sn.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],sn.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],sn.prototype,"unseenCount",void 0);_.y([_.L(),_.D("design:type",Object)],sn.prototype,"isOverlay",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],sn.prototype,"showTooltips",void 0);_.y([_.AY("yt-icon-button"),_.D("design:type",Object)],sn.prototype,"iconButton",void 0);
_.y([_.S("unseenCount"),_.D("design:type",Object),_.D("design:paramtypes",[])],sn.prototype,"showNotificationCount",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],sn.prototype,"onDataChanged",null);_.y([_.Ta("yt-update-notifications-unseen-count-action"),_.D("design:type",Function),_.D("design:paramtypes",[Object]),_.D("design:returntype")],sn.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.y([_.v({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],sn);
_.h(sn,"ytd-notification-topbar-button-renderer",function(){if(LLS!==void 0)return LLS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return LLS=c},{mode:_.lP("kevlar_poly_si_batch_j025")?1:2});var JU3;var BY=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return c};
_.K(BY,_.z);BY.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}}}}}};
BY.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
BY.prototype.onDarkModeToggled=function(c){this.dark=c};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],BY.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],BY.prototype,"data",void 0);_.y([_.L({value:!0,reflectToAttribute:!0}),_.D("design:type",Boolean)],BY.prototype,"dark",void 0);
_.y([_.v({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],BY);
_.h(BY,"yt-pdg-buy-flow-header-renderer",function(){if(JU3!==void 0)return JU3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return JU3=c},{mode:1});var alC;var Vrc;var iO=function(){var c=_.z.apply(this,arguments)||this;c.immediateValue=0;c.isDarkTheme=!1;c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(iO,_.z);_.r=iO.prototype;_.r.created=function(){_.DG.requestAvailability()};
_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.dataChanged=function(){var c=_.r1(this.hostElement).querySelector("#color-slider");c.immediateValue&&this.updateSliderKnobAndGradientStyles(c.immediateValue);this.data.notches[0].knobColorArgb&&_.la(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.WS(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.hk("HTML_DIR")==="rtl"&&_.r1(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.r.onSliderImmediateChange=function(){var c=_.r1(this.hostElement).querySelector("#color-slider");c.dragging&&(c.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(c.immediateValue),this.updateSliderKnobAndGradientStyles(c.immediateValue)),this.updateSliderAria())};
_.r.onSliderChange=function(){var c=_.r1(this.hostElement).querySelector("#color-slider");c.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(c.immediateValue),this.updateSliderKnobAndGradientStyles(c.immediateValue));this.updateSliderAria()};
_.r.updateSliderAria=function(){var c=_.r1(this.hostElement).querySelector("#color-slider"),f=_.r1(this.hostElement).querySelector("#color-slider");f=_.xC(this.data.notches[f.immediateValue].tierValue);_.kYn()&&_.CZ(this.hostElement,"iron-announce",{text:f});c.setAttribute("aria-valuetext",f)};
_.r.updateSuperThanksSelectedTierEntity=function(c){if(c!==this.immediateValue){var f,d,q=this==null?void 0:(f=this.data)==null?void 0:(d=f.superThanksSelectedTierEntity)==null?void 0:d.key;q&&q.length>0&&this.ytdReduxBehavior.dispatch(_.ER("superThanksSelectedTierEntity",q,{key:q,index:c}))}};
_.r.onDarkModeToggledAction=function(c){this.isDarkTheme=c};
_.r.updateSliderKnobAndGradientStyles=function(c){this.immediateValue=c;c=this.data.notches[c];if(c==null?0:c.knobColorArgb)var f={"--ytd-pdg-color-slider-knob-color":_.WS(c.knobColorArgb)};(c==null?0:c.linearGradientCssStyle)&&f!==null&&(f=Object.assign({},f,{"--ytd-pdg-color-slider-active-color":c==null?void 0:c.linearGradientCssStyle}));f!==null&&_.la(this.hostElement,f)};
iO.prototype.onSliderChange=iO.prototype.onSliderChange;iO.prototype.onSliderImmediateChange=iO.prototype.onSliderImmediateChange;iO.prototype.dataChanged=iO.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],iO.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],iO.prototype,"immediateValue",void 0);_.y([_.L(),_.D("design:type",Number)],iO.prototype,"maxMarkers",void 0);
_.y([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:TSr}),_.D("design:type",Object)],iO.prototype,"superThanksSelectedTierEntity",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],iO.prototype,"isDarkTheme",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],iO.prototype,"ytdReduxBehavior",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],iO.prototype,"dataChanged",null);
_.y([_.Ta("immediate-value-change"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],iO.prototype,"onSliderImmediateChange",null);_.y([_.Ta("change"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],iO.prototype,"onSliderChange",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],iO);
_.h(iO,"ytd-pdg-color-slider-renderer",function(){if(Vrc!==void 0)return Vrc;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Vrc=c},{mode:1});var Xeq;var ucG;var Tq=null;
_.JY({is:"ytd-comment-input",_template:function(){if(ucG!==void 0)return ucG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ucG=c},
behaviors:[_.CMe.YtHostElementBehavior,_.Kn,_.N2.YtComponentBehavior,_.rT.YtRendererstamperBehavior,_.PNu.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 _.Nj}},
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",_.ia(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;_.Ty();this.focus()},
detached:function(){document.removeEventListener("tap",_.ia(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(c){c=c.detail;c=c.isCustomEmoji?c.shortcuts[0]:c.emojiId;var f=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(f,c);this.maybeUpdateTextDirection_();_.CZ(this.hostElement,"input")},
getInputRange_:function(){var c=_.HZ();if(c){c=c.getBrowserRangeObject();for(var f=c.commonAncestorContainer;f;){if(f===this.getEditableTextArea_())return c;f=f.parentNode}}c=this.getEditableTextArea_();c=_.wh(c,c.childNodes.length);c.select();return c.getBrowserRangeObject()},
insertTextWithEmojis_:function(c,f,d){(f=this.emojiManager.createDocumentFragment(f,!0,!1,d===void 0?!0:d))&&f.childNodes.length!==0&&(c.collapsed||c.deleteContents(),d=f.lastChild,c.insertNode(f),_.eNj(d).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var c=_.HZ();if(c){var f=c.JSC$11236_getStartNode(),d=c.JSC$11236_getEndNode();if(dVc(f)&&dVc(d)){var q=c.JSC$11236_getStartOffset(),Z;if(_.TK&&f.nodeType===Node.ELEMENT_NODE&&(Z=_.e_3(f)))_.wh(Z,0).select();else{Z=iR(f)?f:_.vv(f,iR);var M=iR(d)?d:_.vv(d,iR);if(Z||M)if(c.isCollapsed()){if(f.nodeType===Node.TEXT_NODE){c=!0;q===f.length&&(c=!1);if(Tq==="end"||Tq==="right")c=!1;f=f.parentNode;c=[].concat(_.LT(f.parentNode.childNodes)).indexOf(f)+(c?0:1);_.wh(f.parentNode,
c).select()}}else Z?Z.previousSibling&&Z.previousSibling.length>0?_.yI(d,c.JSC$11236_getEndOffset(),Z.previousSibling,Z.previousSibling.length-1).select():(f=document.createTextNode("\u200b"),Z.parentNode.insertBefore(f,Z),_.yI(d,c.JSC$11236_getEndOffset(),f,0).select()):M&&(M.nextSibling&&M.nextSibling.length>0?_.yI(f,c.JSC$11236_getStartOffset(),M.nextSibling,1).select():(d=document.createTextNode("\u200b"),M.parentNode.insertBefore(d,M.nextSibling),_.yI(f,c.JSC$11236_getStartOffset(),d,d.length).select()));
Tq=null}}else Tq=null}else Tq=null},
leftKeyPressed_:function(){Tq="left"},
rightKeyPressed_:function(){Tq="right"},
endKeyPressed_:function(){Tq="end"},
maybeDeleteChip_:function(){var c=CPr(!0);if(c){var f=_.HZ(),d=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();_.VI(d,f,c,c.childNodes.length).select()}},
maybeBackspaceChip_:function(){var c=CPr(!1);if(c){var f=_.HZ(),d=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();_.VI(d,f,c,0).select()}},
maybeBackspaceChipWordMode_:function(c){var f=_.HZ();if(f.isCollapsed()){var d=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();var q=gpr(d,f,!0);q&&(_.VI(d,f,q,0).select(),document.execCommand("delete"),c.preventDefault(),c.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(c){var f=_.HZ();if(f.isCollapsed()){var d=f.JSC$11236_getStartNode();f=f.JSC$11236_getStartOffset();var q=gpr(d,f,!1);q&&(_.VI(d,f,q,q.childNodes.length).select(),document.execCommand("delete"),c.preventDefault(),c.stopImmediatePropagation())}},
onContentClick:function(c){c.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(c){c.defaultPrevented||c.currentTarget.tagName==="YTD-COMMENT-INPUT"&&iR(c.target)&&c.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.r1(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.r1(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(c,f){c=qDc(c,this.emojiManager,f).cloneNode(!0);for(f=c.firstChild;f;)if(f.nodeType!==1)f=f.nextSibling;else switch(f.tagName){case "BR":var d=_.zU();_.o_y(d,f);f=d.nextSibling;break;case "DIV":(d=f.lastChild)&&f.nextSibling&&_.XB(_.zU(),d);f.previousSibling&&(f.previousSibling.nodeType===1||f.previousSibling.nodeType===3&&!f.previousSibling.textContent.endsWith("\n"))&&_.Vv(_.zU(),f);d&&d.nodeName==="BR"&&_.Y6(d);d=f;f.hasChildNodes()?(f=f.firstChild,
_.Gvu(d)):(f=f.nextSibling,_.Y6(d));break;default:f=f.nextSibling}return kuC(c)},
setTextAreaValue:function(c){c||(c="");var f=this.getEditableFormattedString_();f.text="";this.getEditableTextArea_().innerText="";typeof c==="string"&&(c={runs:[{text:c}]});f.text=c},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Tq=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var c=this.getEditableTextArea_();c&&(_.wh(c,c.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.hk("HTML_DIR")==="rtl"){var c=this.getEditableTextArea_(),f=this.getTextAreaValue()!==""?"auto":"rtl";c.setAttribute("dir",f)}},
handleInputEvent_:function(){var c=null;if(this.isEmojiButtonDisplayed){var f=this.getInputRange_();f&&(c=this.emojiInput.retrieveTextBeforeRange(f))}this.insertText_(c,!0);this.updateCharCount_();c=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=c.scrollHeight>c.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var c=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:c})},
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(c){this.isEmojiButtonDisplayed&&(c.preventDefault(),c.stopImmediatePropagation(),c=c.clipboardData.getData("text/plain"),this.insertText_(c,!1,!1),_.CZ(this.hostElement,"input"))},
insertText_:function(c,f,d){f=f===void 0?!1:f;d=d===void 0?!0:d;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&c){var q=this.getInputRange_().cloneRange();this.emojiManager&&q&&(f&&this.emojiInput.offsetStartOfRangeBy(q,c.length),this.insertTextWithEmojis_(q,c,d),jfr(this.getEditableTextArea_().lastChild)||(q=this.getInputRange_().cloneRange()),q&&(this.emojiInput.updateSuggestions(q,c),this.updateSuggestionOffset_(q)))}},
getSimpleString:_.xC,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(c){return c?"focused":"not-focused"},
computePlaceholderText_:function(c){return this.getSimpleString(c)},
computeEditableText_:function(c){return this.getSimpleString(c)},
onPrefilledContentDismissed_:function(c){c.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(c,f){c?this.fire("yt-autonav-pause-focus"):f!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(c){var f=this.getEditableTextArea_();[].concat(_.LT(c.dataTransfer.items)).forEach(function(d){d.kind==="string"&&d.type.match("^text/plain")&&d.getAsString(function(q){f.appendChild(document.createTextNode(q))})});
c.preventDefault()},
preventDefault_:function(c){c.preventDefault()},
onSuggestionInsert_:function(c){this.insertTextWithEmojis_(c.detail.range,c.detail.text)},
onEmojiSuggestionClick_:function(c){this.emojiInput.insertSuggestion(c.detail)},
updateSuggestionOffset_:function(c){if(this.emojiInput&&_.r1(this.emojiInput).querySelector("#dropdown")){var f=this.getEditableTextArea_().getBoundingClientRect().bottom,d=c.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(f-d)+5;f=this.getEditableTextArea_().getBoundingClientRect().left;c=c.getBoundingClientRect().left-f;_.r1(this.emojiInput).querySelector("#dropdown").style.marginLeft=c+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.hw("yt-post"));return this.localStorage}});var mX=function(){var c=_.z.apply(this,arguments)||this;c.currentCommentOptionIndex=0;c.isEmojiPickerDisplayed=!1;c.emojiManager=_.Nj;c.isUgcEmpty=!1;c.userGeneratedCommentChangedHandler=function(){_.CZ(c.hostElement,"ytd-pdg-user-generated-comment-changed");c.isEmojiYtdCommentInputEnabled&&(c.isUgcEmpty=!c.ytdCommentInputEl.getTextAreaValue())};
c.pasteHandler=function(f){f.preventDefault();f.stopImmediatePropagation();var d;if(f=(d=f.clipboardData)==null?void 0:d.getData("text/plain"))d=document.getSelection().getRangeAt(0),d.collapsed||d.deleteContents(),f=document.createTextNode(f),d.insertNode(f),d.selectNodeContents(f),d.collapse(!1),f=window.getSelection(),f.removeAllRanges(),f.addRange(d)};
c.onDocumentClick=function(f){if(c.isEmojiPickerDisplayed){var d,q,Z;!(f.target instanceof Node)||(d=f.composedPath())!=null&&d.includes(c.editableTextEl)||(q=f.composedPath())!=null&&q.includes(c.emojiButtonEl)||(Z=f.composedPath())!=null&&Z.includes(c.emojiPickerEl)||(c.isEmojiPickerDisplayed=!1)}};
return c};
_.K(mX,_.z);_.r=mX.prototype;_.r.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.r.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.r.detached=function(){var c;(c=this.contentEl)==null||c.removeEventListener("input",this.userGeneratedCommentChangedHandler);var f;(f=this.contentEl)==null||f.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.r.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.r.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var c;this.contentEl.textContent=this.rendererBehavior.getSimpleString((c=this.data)==null?void 0:c.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.r.reloadEmojis=function(){this.emojiPickerEl&&_.b(this.emojiPicker,_.Wpr)&&this.emojiPickerEl.updateEmojiCategories()};
_.r.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.la(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.r.handleBackgroundColorStyling=function(){var c;if((c=this.currentCommentOption)==null?0:c.commentBackgroundColorArgb){var f;_.la(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.WS((f=this.currentCommentOption)==null?void 0:f.commentBackgroundColorArgb)})}else _.la(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.r.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var c;(c=this.contentEl)==null||c.focus()}};
_.r.onEditButtonClick=function(c){var f=document.getSelection();f&&this.contentEl&&(c.stopPropagation(),c.preventDefault(),f.selectAllChildren(this.contentEl),f.collapseToEnd())};
_.r.onContentDrop=function(c){var f=this;if(c.dataTransfer){c=_.C(c.dataTransfer.items);for(var d=c.next();!d.done;d=c.next())d=d.value,d.kind==="string"&&d.type.match("^text/plain")&&d.getAsString(function(q){var Z;(Z=f.contentEl)==null||Z.appendChild(document.createTextNode(q))})}};
_.r.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.r.getUserGeneratedCommentText=function(){var c,f=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(c=this.contentEl)==null?void 0:c.textContent;return f?f.trim():""};
_.r.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.r.onEmojiSelect=function(c){this.ytdCommentInputEl.onEmojiSelect(c)};
_.ci.Object.defineProperties(mX.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.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 c;return!((c=this.currentCommentOption)==null||!c.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var c;if(_.b((c=this.currentCommentOption)==null?void 0:c.chipRenderer,_.ZzH)){var f;return _.b((f=this.currentCommentOption)==null?void 0:f.chipRenderer,_.ZzH)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var c,f;return((c=this.data)==null?0:c.commentOptionRenderers)?_.b((f=this.data)==null?void 0:f.commentOptionRenderers[this.superThanksSelectedTierEntity.index],cLQ):void 0}var d,q;return((d=this.data)==null?0:d.commentOptionRenderers)?_.b((q=this.data)==null?void 0:q.commentOptionRenderers[this.currentCommentOptionIndex],cLQ):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var c;return this.rendererBehavior.getSimpleString((c=this.data)==null?void 0:c.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var c;return this.rendererBehavior.getSimpleString((c=this.data)==null?void 0:c.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=_.b((c=this.data)==null?void 0:c.commentDialog,_.zq3))==null?void 0:f.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=_.b((c=this.data)==null?void 0:c.commentDialog,_.zq3))==null?void 0:f.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=_.b((c=this.data)==null?void 0:c.commentDialog,_.zq3))==null?void 0:f.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(f=_.b((c=this.data)==null?void 0:c.commentDialog,_.zq3))==null?void 0:f.emojiPicker;if(!_.b(d,_.Wpr)||!_.b(d,_.Wpr).categories)return!1;c=function(M){return M.emojiPickerCategoryRenderer?M.emojiPickerCategoryRenderer.emojiIds&&M.emojiPickerCategoryRenderer.emojiIds.length>0:M.emojiPickerUpsellCategoryRenderer?M.emojiPickerUpsellCategoryRenderer.emojis&&M.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var q,Z;return((q=_.b(d,_.Wpr))==null?0:(Z=q.categories)==null?0:Z.find(c))?!0:!1}}});
mX.prototype.onEmojiSelect=mX.prototype.onEmojiSelect;mX.prototype.dataChanged=mX.prototype.dataChanged;mX.prototype.currentCommentOptionChanged=mX.prototype.currentCommentOptionChanged;_.y([_.Q(_.wt),_.D("design:type",Object)],mX.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mX.prototype,"rendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.AY("#content-dom-if"),_.D("design:type",_.Vr)],mX.prototype,"contentDomIfEl",void 0);_.y([_.AY("#content-no-emojis"),_.D("design:type",HTMLElement)],mX.prototype,"contentEl",void 0);_.y([_.AY("#container"),_.D("design:type",HTMLElement)],mX.prototype,"containerEl",void 0);_.y([_.AY("#comment-chip-container"),_.D("design:type",HTMLElement)],mX.prototype,"paidCommentChipContainerEl",void 0);_.y([_.AY("#text-input"),_.D("design:type",HTMLElement)],mX.prototype,"editableTextEl",void 0);
_.y([_.AY("#emoji-button"),_.D("design:type",HTMLElement)],mX.prototype,"emojiButtonEl",void 0);_.y([_.AY("#emoji-picker > yt-emoji-picker-renderer"),_.D("design:type",Object)],mX.prototype,"emojiPickerEl",void 0);_.y([_.AY("#text-input > ytd-comment-input"),_.D("design:type",Object)],mX.prototype,"ytdCommentInputEl",void 0);_.y([_.L(),_.D("design:type",Object)],mX.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],mX.prototype,"currentCommentOptionIndex",void 0);
_.y([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:TSr}),_.D("design:type",Object)],mX.prototype,"superThanksSelectedTierEntity",void 0);_.y([_.L(),_.D("design:type",Object)],mX.prototype,"isEmojiPickerDisplayed",void 0);_.y([_.L(),_.D("design:type",Object)],mX.prototype,"emojiManager",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],mX.prototype,"isUgcEmpty",void 0);
_.y([_.m5("currentCommentOption"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mX.prototype,"currentCommentOptionChanged",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mX.prototype,"dataChanged",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mX.prototype,"isEmojiYtdCommentInputEnabled",null);
_.y([_.S("data.title"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"title",null);_.y([_.S("data.authorText"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"channelName",null);_.y([_.S("data.commentOptionRenderers","currentCommentOption"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mX.prototype,"shouldShowPaidCommentChipRenderer",null);
_.y([_.S("data.commentOptionRenderers","currentCommentOption"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"paidCommentChipRenderer",null);_.y([_.S("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"currentCommentOption",null);
_.y([_.S("data.defaultCommentText","superThanksSelectedTierEntity"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"commentText",null);_.y([_.S("data.placeholderText"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"placeholderText",null);_.y([_.S("data.commentDialog.commentDialogRenderer.editableText"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"editableText",null);
_.y([_.S("data.commentDialog.commentDialogRenderer.emojiButton"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"emojiButton",null);_.y([_.S("data.commentDialog.commentDialogRenderer.emojiPicker"),_.D("design:type",Object),_.D("design:paramtypes",[])],mX.prototype,"emojiPicker",null);
_.y([_.S("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],mX.prototype,"isEmojiButtonDisplayed",null);_.y([_.Ta("yt-emoji-select"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],mX.prototype,"onEmojiSelect",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],mX);
_.h(mX,"ytd-pdg-comment-preview-renderer",function(){if(Xeq!==void 0)return Xeq;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Xeq=c},{mode:2});var vIC;var HY=function(){var c=_.z.apply(this,arguments)||this;c.selected=!1;return c};
_.K(HY,_.z);_.r=HY.prototype;_.r.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.r.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.r.dataChanged=function(){this.data&&(_.C$(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.la(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.WS(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.WS(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.r.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.r.onClick=function(){this.logClick()};
_.r.onKeyboardSelect=function(){_.CZ(this.hostElement,"tap");this.onClick()};
_.r.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
HY.prototype.onClick=HY.prototype.onClick;HY.prototype.selectedChanged=HY.prototype.selectedChanged;HY.prototype.dataChanged=HY.prototype.dataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],HY.prototype,"componentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Kn),_.D("design:type",Object)],HY.prototype,"ironA11yKeysBehavior",void 0);
_.y([_.Q(_.Ra),_.D("design:type",Object)],HY.prototype,"ironSelectableBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],HY.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],HY.prototype,"shownThumbnail",void 0);_.y([_.L(),_.D("design:type",Object)],HY.prototype,"basePriceText",void 0);_.y([_.L(),_.D("design:type",Object)],HY.prototype,"purchaseCommand",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],HY.prototype,"selected",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],HY.prototype,"dataChanged",null);_.y([_.m5("selected"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],HY.prototype,"selectedChanged",null);_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],HY.prototype,"onClick",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],HY);
_.h(HY,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(vIC!==void 0)return vIC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return vIC=c},{mode:1});var A1=function(){var c=_.z.apply(this,arguments)||this;c.selectedItemIndex=0;c.buyButtonDisabled=!1;return c};
_.K(A1,_.z);_.r=A1.prototype;
_.r.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]]"}}}}}};
_.r.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var c;var f=(c=_.b(this.data.colorSlider,G7F))==null?void 0:c.notches[this.selectedItemIndex].purchaseCommand}else{var d;f=(d=_.b(this.data.selectableItemButtons[this.selectedItemIndex],djJ))==null?void 0:d.purchaseCommand}if(f){c=_.b(f,_.wxH);c.productData||(c.productData={});var q;c.productData={pdgData:{commentMessageText:(q=this.commentPreviewRenderer)==null?void 0:q.getUserGeneratedCommentText()}};
_.CZ(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(f)}}};
_.r.dataChanged=function(){if(this.data){_.Nj.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.tNF(_.Nj,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Nj.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var c;this.buyButtonDisabled=!((c=_.b(this.data.commentPreview,f$J))==null||!c.placeholderText);this.updatePriceSelectorStatus();var f;if((f=this.data)==null?0:f.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;c=[];this.data.preloadImages&&(c=this.data.preloadImages);
c=c.map(function(d){return _.kZ(d.thumbnails,1920)});
c=_.C(c);for(f=c.next();!f.done;f=c.next())(f=f.value)&&_.ebz(f).thenCatch(function(){_.u6(Error("ml"))})}};
_.r.superThanksSelectedTierEntityChanged=function(){var c;(this==null?void 0:(c=this.superThanksSelectedTierEntity)==null?void 0:c.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.r.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.r.updatePriceSelectorStatus=function(){this.isColorSlider?(_.r1(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.r1(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.r1(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.r1(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.r.closeBuyFlow=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.r.onUserGeneratedContentChanged=function(){var c;this.buyButtonDisabled=!((c=this.commentPreviewRenderer)==null?0:c.getUserGeneratedCommentText())};
_.r.updateSelectedItemIndexFromBinding=function(c){this.selectedItemIndex=c.detail.value};
_.ci.Object.defineProperties(A1.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var c;return!((c=this.data)==null||!c.disclaimerText)}}});
A1.prototype.onUserGeneratedContentChanged=A1.prototype.onUserGeneratedContentChanged;A1.prototype.closeBuyFlow=A1.prototype.closeBuyFlow;A1.prototype.selectedItemIndexChanged=A1.prototype.selectedItemIndexChanged;A1.prototype.superThanksSelectedTierEntityChanged=A1.prototype.superThanksSelectedTierEntityChanged;A1.prototype.dataChanged=A1.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],A1.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],A1.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],A1.prototype,"selectedItemIndex",void 0);_.y([_.L(),_.D("design:type",Boolean)],A1.prototype,"isColorSlider",void 0);
_.y([_.L(),_.D("design:type",Object)],A1.prototype,"buyButtonDisabled",void 0);_.y([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:TSr}),_.D("design:type",Object)],A1.prototype,"superThanksSelectedTierEntity",void 0);_.y([_.AY("ytd-pdg-comment-preview-renderer"),_.D("design:type",Object)],A1.prototype,"commentPreviewRenderer",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],A1.prototype,"ytdReduxBehavior",void 0);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],A1.prototype,"dataChanged",null);_.y([_.m5("superThanksSelectedTierEntity"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],A1.prototype,"superThanksSelectedTierEntityChanged",null);_.y([_.m5("selectedItemIndex"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],A1.prototype,"selectedItemIndexChanged",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],A1.prototype,"closeBuyFlow",null);_.y([_.Ta("ytd-pdg-user-generated-comment-changed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],A1.prototype,"onUserGeneratedContentChanged",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],A1.prototype,"isDisclaimerTextShown",null);
_.y([_.v({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],A1);
_.h(A1,"yt-super-vod-buy-flow-content-renderer",function(){if(alC!==void 0)return alC;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return alC=c},{mode:1});var hVG;var Fq=function(){var c=_.z.apply(this,arguments)||this;c.lottieAnimationRef={};return c};
_.K(Fq,_.z);_.r=Fq.prototype;_.r.created=function(){_.DG.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.ia(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.r.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.CZ(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.r.detached=function(){this.autoCloseJobId&&_.a7.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.ia(this,this.onPopupIronOverlayOpened))};
_.r.dataChanged=function(){var c=this;this.data&&this.data.autoCloseDelay&&(_.gS(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Br(_.a7,function(){c.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.la(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.r.onDOMLoadedLottie=function(){var c=this,f,d,q=Number((f=this.data)==null?void 0:(d=f.autoCloseDelay)==null?void 0:d.seconds)||0;this.fadeOutJobId=_.Br(_.a7,function(){c.lottiePlayerEl.classList.add("fadeout")},(q-.25)*1E3);
this.autoCloseJobId=_.Br(_.a7,function(){c.closePopup()},q*1E3)};
_.r.openPopup=function(){this.ironOverlayBehavior.open()};
_.r.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.gS(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.ll(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.ql().resolve(_.ZM).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.a7.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.a7.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.r.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var c,f;(c=this.lottieAnimationRef)==null||(f=c.lottieEl)==null||f.destroy();c=this.data.lottie;var d,q;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:c.url+"_"+Math.random(),path:c.url,autoplay:!0,loop:(q=(d=c.settings)==null?void 0:d.loop)!=null?q:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.ci.Object.defineProperties(Fq.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var c,f;return!!((c=this.data)==null?0:(f=c.lottie)==null?0:f.url)}}});
Fq.prototype.maybeInitializeLottie=Fq.prototype.maybeInitializeLottie;Fq.prototype.dataChanged=Fq.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Fq.prototype,"rendererBehavior",void 0);_.y([_.Q(_.RJ),_.D("design:type",Object)],Fq.prototype,"ironOverlayBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Fq.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Fq.prototype,"lottiePlayerProps",void 0);
_.y([_.L(),_.D("design:type",Object)],Fq.prototype,"lottieAnimationRef",void 0);_.y([_.AY("ytd-lottie-player"),_.D("design:type",HTMLElement)],Fq.prototype,"lottiePlayerEl",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Fq.prototype,"dataChanged",null);_.y([_.S("data"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Fq.prototype,"hasLottieAnimation",null);
_.y([_.m5("data.lottie.url"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Fq.prototype,"maybeInitializeLottie",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Fq);
_.h(Fq,"ytd-desktop-image-overlay-renderer",function(){if(hVG!==void 0)return hVG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return hVG=c},{mode:1});var weF;var t1=function(){return _.z.apply(this,arguments)||this};
_.K(t1,_.z);_.r=t1.prototype;_.r.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"}}}}};
_.r.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",_.ia(this,this.closePopup))};
_.r.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ia(this,this.closePopup))};
_.r.dataChanged=function(){_.kt(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.b(this.data.header,oHD)&&(this.hasBackgroundBanner=!!_.b(this.data.header,oHD).backgroundBanner)};
_.r.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ia(this,this.closePopup))};
_.r.closePopup=function(){this.data&&this.data.onCloseCommand&&_.OX(this.hostElement,[this.data.onCloseCommand])};
t1.prototype.handleBuyflowSelectionSubmitted=t1.prototype.handleBuyflowSelectionSubmitted;t1.prototype.dataChanged=t1.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],t1.prototype,"data",void 0);
_.y([_.L({value:!0,reflectToAttribute:!0}),_.D("design:type",Boolean)],t1.prototype,"hasBackgroundBanner",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],t1.prototype,"dataChanged",null);_.y([_.Ta("yt-pdg-buy-flow-selection-submitted"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],t1.prototype,"handleBuyflowSelectionSubmitted",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],t1);
_.h(t1,"ytd-pdg-buy-flow-renderer",function(){if(weF!==void 0)return weF;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return weF=c},{mode:1});var yUC;var bO=function(){var c=_.z.apply(this,arguments)||this;c.isOpen=!1;c.isPlaylistCreated=!1;return c};
_.K(bO,_.z);_.r=bO.prototype;_.r.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.r.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.CZ(this.hostElement,"yt-refit")};
_.r.onCreateTap=function(){var c=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.OX(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(f,d){if(!_.F("killswitch_ep_in_create_playlist_response")&&(d==null?0:d.actions))for(f=_.C(d.actions),d=f.next();!d.done;d=f.next())d=d.value,_.b(d,_.VN)&&c.ytComponentBehavior.resolveCommand(d)}}]),this.isPlaylistCreated=!0)};
_.r.onKeydown=function(c){if(c.keyCode===13)this.onCreateTap()};
_.r.onServiceRequestCompleted=function(c){c.stopPropagation();_.gS(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.r.computePrivacyBadge=function(c){return c?[{metadataBadgeRenderer:c}]:[]};
bO.prototype.onServiceRequestCompleted=bO.prototype.onServiceRequestCompleted;bO.prototype.onKeydown=bO.prototype.onKeydown;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],bO.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],bO.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],bO.prototype,"isOpen",void 0);
_.y([_.L(),_.D("design:type",Object)],bO.prototype,"isPlaylistCreated",void 0);_.y([_.L({value:{REQUIRED_LABEL:_.HO("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.HO("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.D("design:type",Object)],bO.prototype,"addToStrings",void 0);_.y([_.L({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.D("design:type",Array)],bO.prototype,"privacyBadge",void 0);
_.y([_.AY("#privacy-input"),_.D("design:type",Object)],bO.prototype,"privacyInput",void 0);_.y([_.AY("#name-input"),_.D("design:type",Object)],bO.prototype,"nameInput",void 0);_.y([_.Ta("keydown"),_.D("design:type",Function),_.D("design:paramtypes",[KeyboardEvent]),_.D("design:returntype")],bO.prototype,"onKeydown",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],bO.prototype,"onServiceRequestCompleted",null);
_.y([_.v({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],bO);
_.h(bO,"ytd-add-to-playlist-create-renderer",function(){if(yUC!==void 0)return yUC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return yUC=c},{mode:1});var WLJ;var DkD;var KR=function(){var c=_.z.apply(this,arguments)||this;c.transferState="TRANSFER_STATE_UNKNOWN";return c};
_.K(KR,_.z);KR.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
KR.prototype.onCheckboxChange=function(c){var f=this;this.data&&_.Ia(this,"yt-playlist-checkbox-changed",function(){var d=_.oV(c).checked?f.data.addToPlaylistServiceEndpoint:f.data.removeFromPlaylistServiceEndpoint;d&&_.ql().resolve(_.ZM).resolveCommand(d,{form:{element:f.hostElement}});_.F("dl_playlist_killswitch")||f.transferState!=="TRANSFER_STATE_UNKNOWN"&&f.transferState!=="TRANSFER_STATE_FAILED"&&f.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:f.data.playlistId,action:"ACTION_SYNC"}})},
100)};
KR.prototype.computeIconType=function(c){return c?"yt-icons:"+c.toLowerCase():null};
KR.prototype.dataChanged=KR.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],KR.prototype,"data",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],KR.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],KR.prototype,"ytComponentBehavior",void 0);_.y([_.AY("#checkbox"),_.D("design:type",HTMLInputElement)],KR.prototype,"checkbox",void 0);
_.y([_.L({selector:_.wW,selectorArgs:["data.playlistId"]}),_.D("design:type",String)],KR.prototype,"transferState",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],KR.prototype,"dataChanged",null);_.y([_.v({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],KR);
_.h(KR,"ytd-playlist-add-to-option-renderer",function(){if(DkD!==void 0)return DkD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DkD=c},{mode:1});_.ZB(OxC);var eVF=_.dN(function(c){var f=c.data;return _.B("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.B("div",null,_.B(_.J9,{text:function(){return f().title}})),_.B(_.T,{cond:function(){return f().subtitle},
then:function(d){return _.B("div",{class:"ytd-menu-title-renderer__subtitle"},_.B(_.J9,{text:d}))}}))},"Hg"),Ngr=_.F("web_enable_sink_ytd_menu_title_renderer")?eVF:OxC,Ilq=_.F("web_enable_sink_ytd_menu_title_renderer")?eVF:_.bS(OxC);
eVF.idomCompat=!0;_.F("web_enable_sink_ytd_menu_title_renderer")?_.g_(Ilq,"ytd-menu-title-renderer",{props:{data:_.oM}}):_.m$(Ngr,"ytd-menu-title-renderer",{propNames:["data"]});var En=function(){var c=_.z.apply(this,arguments)||this;c.addToStrings={ADD_TO_DROPDOWN_LABEL:_.HO("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};c.closeButtonAriaLabel=_.HO("SBOX_INAPPROPRIATE_CANCEL");c.dialog=_.F("desktop_add_to_playlist_renderer_dialog_popup");return c};
_.K(En,_.z);_.r=En.prototype;_.r.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"}}}};
_.r.onPopupOpened=function(){_.g1(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.r.onPopupClosed=function(){_.g1(this.playlists,"scrollable",!1)};
_.r.computeAriaLabel=function(){var c;if(this==null?0:(c=this.data)==null?0:c.actions){c=_.C(this.data.actions);for(var f=c.next();!f.done;f=c.next())if(f=f.value,f.menuTitleRenderer)return _.xC(f.menuTitleRenderer.title)}};
_.r.onTapClose=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.ci.Object.defineProperties(En.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var c;if(this==null?0:(c=this.data)==null?0:c.actions){c=_.C(this.data.actions);for(var f=c.next();!f.done;f=c.next())if(f=f.value,f.menuTitleRenderer)return f.menuTitleRenderer}return!1}}});
En.prototype.onPopupClosed=En.prototype.onPopupClosed;En.prototype.onPopupOpened=En.prototype.onPopupOpened;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],En.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],En.prototype,"ytRendererStamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],En.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],En.prototype,"addToStrings",void 0);_.y([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.D("design:type",String)],En.prototype,"ariaLabel",void 0);_.y([_.L(),_.D("design:type",String)],En.prototype,"closeButtonAriaLabel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],En.prototype,"dialog",void 0);
_.y([_.AY("#playlists"),_.D("design:type",HTMLElement)],En.prototype,"playlists",void 0);_.y([_.AY("ytd-add-to-playlist-create-renderer"),_.D("design:type",Object)],En.prototype,"createRenderer",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],En.prototype,"menuTitleRenderer",null);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],En.prototype,"onPopupOpened",null);
_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],En.prototype,"onPopupClosed",null);_.y([_.v({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],En);
_.h(En,"ytd-add-to-playlist-renderer",function(){if(WLJ!==void 0)return WLJ;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return WLJ=c},{mode:1});var P1C;var nR=function(){var c=_.z.apply(this,arguments)||this;c.isPlaylistEditComplete=!1;c.isCollabEngagementDisabled=!1;c.closeButtonAriaLabel=_.HO("SBOX_INAPPROPRIATE_CANCEL");c.saveButton={title:_.HO("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"};c.onValueChanged=function(){c.updateSaveButtonState();c.computeCollabEngagementDisabled()};
return c};
_.K(nR,_.z);_.r=nR.prototype;_.r.attached=function(){this.JSC$20363_scroller&&(this.JSC$20363_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20363_scroller.attached&&typeof this.JSC$20363_scroller.attached==="function"&&this.JSC$20363_scroller.attached())};
_.r.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.r.onPopupClosed=function(){this.reset()};
_.r.close=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.r.onClickSave=function(){var c=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var f=[];this.nameInput.value!==null&&f.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&f.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var d=Number(this.privacyInput.value);isNaN(d)||f.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:d})}this.votingInput.value!==null&&(d=this.votingInput.value)&&f.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:d});if(f.length>0){var q;_.b((q=this.data)==null?void 0:q.updateSettingsEndpoint,_.hB).actions=f;var Z;if((Z=this.data)==null?0:Z.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){c.close()}}}),this.isPlaylistEditComplete=!0}}};
_.r.computePrivacyBadge=function(c){return c?[{metadataBadgeRenderer:c}]:[]};
_.r.computeEditorData=function(c){var f,d;return c==null?void 0:(f=c.sections)==null?void 0:(d=f[0])==null?void 0:d.playlistSettingsEditorCasualSectionRenderer};
_.r.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.r.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}}}}}};
_.r.computeAriaLabel=function(){var c,f,d,q=(c=this.data)==null?void 0:(f=c.sections)==null?void 0:(d=f[0])==null?void 0:d.playlistSettingsEditorCasualSectionRenderer;return _.xC(q==null?void 0:q.title)};
_.r.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"}))};
_.r.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.r.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.r.isNameChanged=function(){var c,f,d;return(((c=this.editorData)==null?void 0:(f=c.name)==null?void 0:(d=f.textInputFormFieldRenderer)==null?void 0:d.value)||"")!==(this.nameInput.value||"")};
_.r.isDescriptionChanged=function(){var c,f,d;return(((c=this.editorData)==null?void 0:(f=c.description)==null?void 0:(d=f.textInputFormFieldRenderer)==null?void 0:d.value)||"")!==(this.descriptionInput.value||"")};
_.r.isPrivacyChanged=function(){var c,f,d,q,Z,M,g,O;return((g=(c=this.editorData)==null?void 0:(f=c.privacy)==null?void 0:(d=f.dropdownFormFieldRenderer)==null?void 0:(q=d.dropdown)==null?void 0:(Z=q.dropdownRenderer)==null?void 0:(M=Z.entries)==null?void 0:M.find(function(l){var m;return l==null?void 0:(m=l.privacyDropdownItemRenderer)==null?void 0:m.isSelected}))==null?void 0:(O=g.privacyDropdownItemRenderer)==null?void 0:O.int32Value)!==this.privacyInput.value};
_.r.isVotingChanged=function(){var c,f,d,q,Z,M,g,O;return((g=(c=this.editorData)==null?void 0:(f=c.voting)==null?void 0:(d=f.dropdownFormFieldRenderer)==null?void 0:(q=d.dropdown)==null?void 0:(Z=q.dropdownRenderer)==null?void 0:(M=Z.entries)==null?void 0:M.find(function(l){var m;return l==null?void 0:(m=l.privacyDropdownItemRenderer)==null?void 0:m.isSelected}))==null?void 0:(O=g.privacyDropdownItemRenderer)==null?void 0:O.int32Value)!==this.votingInput.value};
nR.prototype.onPopupClosed=nR.prototype.onPopupClosed;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],nR.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],nR.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],nR.prototype,"ytRendererStamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],nR.prototype,"data",void 0);_.y([_.L({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.D("design:type",Array)],nR.prototype,"privacyBadge",void 0);_.y([_.L({computed:"computeEditorData(data)"}),_.D("design:type",Object)],nR.prototype,"editorData",void 0);_.y([_.L(),_.D("design:type",Object)],nR.prototype,"isPlaylistEditComplete",void 0);_.y([_.L(),_.D("design:type",Object)],nR.prototype,"isCollabEngagementDisabled",void 0);
_.y([_.L({value:{REQUIRED_LABEL:_.HO("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.HO("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.D("design:type",Object)],nR.prototype,"addToStrings",void 0);_.y([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.D("design:type",String)],nR.prototype,"ariaLabel",void 0);_.y([_.L(),_.D("design:type",String)],nR.prototype,"closeButtonAriaLabel",void 0);
_.y([_.L(),_.D("design:type",Object)],nR.prototype,"saveButton",void 0);_.y([_.AY("#name-input"),_.D("design:type",Object)],nR.prototype,"nameInput",void 0);_.y([_.AY("#description-input"),_.D("design:type",Object)],nR.prototype,"descriptionInput",void 0);_.y([_.AY("#privacy-input"),_.D("design:type",Object)],nR.prototype,"privacyInput",void 0);_.y([_.AY("#voting-input"),_.D("design:type",Object)],nR.prototype,"votingInput",void 0);
_.y([_.AY("#scroller"),_.D("design:type",Object)],nR.prototype,"JSC$20363_scroller",void 0);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nR.prototype,"onPopupClosed",null);_.y([_.L(),_.D("design:type",Object)],nR.prototype,"onValueChanged",void 0);_.y([_.v({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],nR);
_.h(nR,"ytd-playlist-settings-editor-renderer",function(){if(P1C===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);P1C=c}c=P1C;return c},{mode:1});var RVc;_.w_("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var $T=function(){return _.z.apply(this,arguments)||this};
_.K($T,_.z);_.r=$T.prototype;_.r.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}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.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 c=this.get("data.nextButton.buttonRenderer.navigationEndpoint");c&&(this.nextNavigationEndpoint=c,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.r.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 c={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",c)}}};
_.r.onPopupOpened=function(c){c.detail!==this&&c.detail!==this.hostElement||!_.F("enable_premium_voluntary_pause")||_.gS(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.r.onNextButtonTap=function(){var c=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);c&&this.ytdOpenPopupBehavior.openPopup(c)};
_.r.updateSelectedResponseIndexFromBinding=function(c){this.selectedResponseIndex=c.detail.value};
$T.prototype.onPopupOpened=$T.prototype.onPopupOpened;$T.prototype.onSelectedResponseIndexChange=$T.prototype.onSelectedResponseIndexChange;$T.prototype.dataChanged=$T.prototype.dataChanged;_.y([_.Q(_.fg),_.D("design:type",Object)],$T.prototype,"ytdOpenPopupBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],$T.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],$T.prototype,"selectedResponseIndex",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$T.prototype,"dataChanged",null);_.y([_.m5("selectedResponseIndex"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],$T.prototype,"onSelectedResponseIndexChange",null);
_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],$T.prototype,"onPopupOpened",null);_.y([_.v({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],$T);
_.h($T,"ytd-red-cancel-survey-renderer",function(){if(RVc!==void 0)return RVc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return RVc=c},{mode:1});var UkJ;var Q6=function(){var c=_.z.apply(this,arguments)||this;c.closeButtonAriaLabel=_.HO("SBOX_INAPPROPRIATE_CANCEL");return c};
_.K(Q6,_.z);Q6.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Q6.prototype.onClickClose=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Q6.prototype,"rendererStamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Q6.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],Q6.prototype,"closeButtonAriaLabel",void 0);_.y([_.v({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Q6);
_.h(Q6,"ytd-search-filter-options-dialog-renderer",function(){if(UkJ!==void 0)return UkJ;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return UkJ=c},{mode:1});var peF;var BNC=function(){return function(c){c=c.availabilityType;return c===void 0||c==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||c==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Si=function(){var c=_.z.apply(this,arguments)||this;c.qualityOptions=[];c.upsellOptions=[];c.showUpsellSection=!1;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.rememberSettingsChecked=!1;return c};
_.K(Si,_.z);_.r=Si.prototype;_.r.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}}}}};
_.r.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.r.updateQualityOptions=function(){if(this.formats===void 0)_.gS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var c=[],f=[];this.showUpsellSection=!1;for(var d=_.C(this.formats),q=d.next();!q.done;q=d.next())(q=q.value)&&(q.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?f.push(q):c.push(q));c.length&&(this.qualityOptions=sfS(c));f.length&&(this.showUpsellSection=!0,this.upsellOptions=sfS(f))}};
_.r.updateRememberString=function(){if(this.downloadQualityPickerEntity)var c=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var f;c=(f=this.data)==null?void 0:f.premiumRememberSettingString}else{var d;c=(d=this.data)==null?void 0:d.rememberSettingString}c=c===void 0?_.HO("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):c;this.rememberSettingsCheckboxRenderer={title:_.jU(c),disabled:!1}};
_.r.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.ci.Object.defineProperties(Si.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var c;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(c=this.data)==null?void 0:c.qualityFormats}}});
Si.prototype.updateRememberString=Si.prototype.updateRememberString;Si.prototype.updateQualityOptions=Si.prototype.updateQualityOptions;Si.prototype.dataChanged=Si.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Si.prototype,"data",void 0);
_.y([_.Q(_.wt),_.D("design:type",Object)],Si.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Boolean)],Si.prototype,"selectedUpsellQuality",void 0);_.y([_.L({computed:"computeIcon_(data.premiumIcon)",value:""}),_.D("design:type",String)],Si.prototype,"premiumIcon",void 0);_.y([_.L({selector:gnD,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.D("design:type",Object)],Si.prototype,"downloadQualityPickerEntity",void 0);
_.y([_.L(),_.D("design:type",Array)],Si.prototype,"qualityOptions",void 0);_.y([_.L(),_.D("design:type",Array)],Si.prototype,"upsellOptions",void 0);_.y([_.L(),_.D("design:type",Object)],Si.prototype,"showUpsellSection",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Si.prototype,"darkerDarkTheme",void 0);_.y([_.L(),_.D("design:type",Object)],Si.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.y([_.AY("#remember-settings"),_.D("design:type",HTMLInputElement)],Si.prototype,"rememberSettingsCheckbox",void 0);_.y([_.L(),_.D("design:type",Object)],Si.prototype,"rememberSettingsChecked",void 0);_.y([_.L(),_.D("design:type",Function)],Si.prototype,"onRememberSettingsCheckedChanged",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Si.prototype,"dataChanged",null);
_.y([_.m5("downloadQualityPickerEntity"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Si.prototype,"updateQualityOptions",null);_.y([_.m5("selectedUpsellQuality"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Si.prototype,"updateRememberString",null);_.y([_.v({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Si);
_.h(Si,"ytd-download-quality-selector-content",function(){if(peF!==void 0)return peF;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return peF=c},{mode:1});var xk3;var LR=function(){var c=_.z.apply(this,arguments)||this;c.selectedUpsellQuality=!1;c.qualityOptions=[];c.darkerDarkTheme=_.F("web_darker_dark_theme");c.useUpsellDismissAlternate=_.F("use_not_now_dl_upsell_dismiss_cta");c.shouldShowAlternateUpsellDimiss=!1;c.rememberSettings=!1;c.rememberSettingsChecked=!1;c.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};c.rememberSettingsCheckedChanged=function(f){c.rememberSettingsChecked=f};
return c};
_.K(LR,_.z);_.r=LR.prototype;
_.r.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jU(_.HO("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.jU(_.HO("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.jU(_.HO("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.jU(_.HO("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.r.updateQualityOptions=function(){this.formats===void 0?_.gS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=sfS(this.formats)};
_.r.onQualityOptionsSelect=function(c){if(this.qualityOptions&&c){c!==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 f=_.C(this.qualityOptions.entries()),d=f.next();!d.done;d=
f.next()){d=_.C(d.value);var q=d.next().value;d=d.next().value;var Z=void 0,M=void 0;if(((Z=d)==null?void 0:(M=Z.settingsRadioOptionRenderer)==null?void 0:M.id)===c){this.selectedQualityIndex=q;c=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((c=this.formats[q])==null?void 0:c.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.r.onClickSubmit=function(){var c;if((c=this.downloadButtonRenderer)==null||!c.isDisabled){var f,d;c=(d=(f=this.data)==null?void 0:f.onSubmitEndpoint)!=null?d:{};var q,Z;if(this.formats&&(((q=_.b(c,_.tc))==null?0:q.videoId)||((Z=_.b(c,_.b7))==null?0:Z.playlistId))){var M,g,O,l,m,H;f={formatType:(l=(M=this.formats)==null?void 0:(g=M[(O=this.selectedQualityIndex)!=null?O:0])==null?void 0:g.format)!=null?l:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(m=this.getOfflineEndpoint(c))==null?void 0:(H=m.actionParams)==null?void 0:H.settingsAction)};this.getOfflineEndpoint(c).actionParams=f;this.ytComponentBehavior.resolveCommand(c)}_.gS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.r.onClickUpsell=function(){var c;if((c=this.upsellButtonRenderer)==null||!c.isDisabled){var f,d;c=(d=(f=this.data)==null?void 0:f.upsellEndpoint)!=null?d:{};this.ytComponentBehavior.resolveCommand(c);_.gS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);f="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var q,Z,M,g;f=(g=(q=this.formats)==null?void 0:(Z=q[(M=this.selectedQualityIndex)!=null?M:0])==null?void 0:Z.format)!=null?g:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:f}})}};
_.r.onClickClose=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.r.getOfflineSettingsAction=function(c,f){return c?f===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":f:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.r.getOfflineEndpoint=function(c){return _.b(c,_.tc)?_.b(c,_.tc):_.b(c,_.b7)};
_.ci.Object.defineProperties(LR.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.jU(_.HO("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var c;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(c=this.data)==null?void 0:c.qualityFormats}}});
LR.prototype.updateQualityOptions=LR.prototype.updateQualityOptions;LR.prototype.dataChanged=LR.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],LR.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],LR.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],LR.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Number)],LR.prototype,"selectedQualityIndex",void 0);_.y([_.L(),_.D("design:type",Object)],LR.prototype,"selectedUpsellQuality",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],LR.prototype,"ytdReduxBehavior",void 0);
_.y([_.L({selector:gnD,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.D("design:type",Object)],LR.prototype,"downloadQualityPickerEntity",void 0);_.y([_.L(),_.D("design:type",Array)],LR.prototype,"qualityOptions",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],LR.prototype,"darkerDarkTheme",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],LR.prototype,"useUpsellDismissAlternate",void 0);
_.y([_.L(),_.D("design:type",Object)],LR.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.y([_.L(),_.D("design:type",Object)],LR.prototype,"downloadButtonRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],LR.prototype,"upsellButtonRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],LR.prototype,"cancelButtonRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],LR.prototype,"upsellCancelButtonRenderer",void 0);_.y([_.L(),_.D("design:type",Object)],LR.prototype,"rememberSettings",void 0);
_.y([_.L(),_.D("design:type",Object)],LR.prototype,"rememberSettingsChecked",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LR.prototype,"dataChanged",null);_.y([_.m5("downloadQualityPickerEntity"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],LR.prototype,"updateQualityOptions",null);_.y([_.v({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],LR);
_.h(LR,"ytd-download-quality-selector-renderer",function(){if(xk3!==void 0)return xk3;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return xk3=c},{mode:1});var oIC;var zq=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(zq,_.z);zq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zq.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"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],zq.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],zq.prototype,"darkerDarkTheme",void 0);_.y([_.L({computed:"computeIcon_(data.infoIcon)"}),_.D("design:type",Object)],zq.prototype,"infoIcon",void 0);
_.y([_.L({computed:"computeIcon_(data.warningIcon)"}),_.D("design:type",Object)],zq.prototype,"warningIcon",void 0);_.y([_.v({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],zq);
_.h(zq,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(oIC!==void 0)return oIC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return oIC=c},{mode:1});var GFG;var J1=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(J1,_.z);J1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
J1.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"}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],J1.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],J1.prototype,"darkerDarkTheme",void 0);_.y([_.v({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],J1);
_.h(J1,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(GFG!==void 0)return GFG;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return GFG=c},{mode:1});var cAF;var aj=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(aj,_.z);aj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
aj.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"}}}}};
aj.prototype.onServiceRequestSentOrCompleted=function(c,f){f&&f.actions&&f.actions.length>0&&_.gS(this.hostElement,"yt-close-popup-action",[this.is])};
aj.prototype.onServiceRequestSentOrCompleted=aj.prototype.onServiceRequestSentOrCompleted;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],aj.prototype,"darkerDarkTheme",void 0);_.y([_.L(),_.D("design:type",Object)],aj.prototype,"data",void 0);
_.y([_.Ta("yt-service-request-completed"),_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],aj.prototype,"onServiceRequestSentOrCompleted",null);_.y([_.v({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],aj);
_.h(aj,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(cAF!==void 0)return cAF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return cAF=c},{mode:1});var f03;var V6=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.submitButtonDisabled=!0;return c};
_.K(V6,_.z);_.r=V6.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.r.onDataChanged=function(){var c,f,d;if(((c=this.data)==null?void 0:(f=c.confirmButton)==null?void 0:(d=f.buttonRenderer)==null?void 0:d.isDisabled)!==void 0){var q,Z,M;this.submitButtonDisabled=(q=this.data)==null?void 0:(Z=q.confirmButton)==null?void 0:(M=Z.buttonRenderer)==null?void 0:M.isDisabled}};
_.r.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.r.updateSubmitButtonDisabledFromBinding=function(c){this.submitButtonDisabled=c.detail.value};
_.r.updateSubmitButtonDisabledFromConfirmCheckbox=function(c){this.submitButtonDisabled=!c.detail.value};
V6.prototype.onDataChanged=V6.prototype.onDataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],V6.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],V6.prototype,"darkerDarkTheme",void 0);
_.y([_.L(),_.D("design:type",Object)],V6.prototype,"submitButtonDisabled",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],V6.prototype,"onDataChanged",null);_.y([_.v({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],V6);
_.h(V6,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(f03!==void 0)return f03;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return f03=c},{mode:1});var dG3;var Xq=function(){return _.z.apply(this,arguments)||this};
_.K(Xq,_.z);_.ci.Object.defineProperties(Xq.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var c,f,d;return((c=this.data)==null?void 0:c.title)+" "+((f=this.data)==null?void 0:f.metadataPrimary)+" "+((d=this.data)==null?void 0:d.metadataSecondary)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Xq.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Xq.prototype,"data",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],Xq.prototype,"ariaLabel",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Xq);
_.h(Xq,"ytd-compact-product-list-item-renderer",function(){if(dG3!==void 0)return dG3;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return dG3=c},{mode:1});var jHH;var uO=function(){return _.z.apply(this,arguments)||this};
_.K(uO,_.z);uO.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]]"}}}}}};
_.ci.Object.defineProperties(uO.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],uO.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],uO.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],uO);
_.h(uO,"ytd-compact-product-list-renderer",function(){if(jHH!==void 0)return jHH;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return jHH=c},{mode:1});var qeQ;var vY=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(vY,_.z);_.r=vY.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.r.getBackgroundUrl=function(){var c=this.get("data.headerImage.thumbnails");return c?"url("+_.kZ(c,this.hostElement.clientWidth)+")":""};
_.r.onDataChanged=function(){var c=this.getBackgroundUrl();c&&(this.header.style.backgroundImage=c);c=_.X2();var f=_.V5(),d=this.get("data.trackingParams");d&&f&&c&&_.Dr(c,f,_.Q1(d));c=_.C(this.hostElement.querySelectorAll("yt-img-shadow"));for(f=c.next();!f.done;f=c.next())f.value.onShow()};
_.r.onPopupClosed=function(c){_.oV(c).localName==="ytd-membership-post-cancel-renderer"&&_.gS(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
vY.prototype.onPopupClosed=vY.prototype.onPopupClosed;vY.prototype.onDataChanged=vY.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],vY.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],vY.prototype,"darkerDarkTheme",void 0);
_.y([_.AY("#header"),_.D("design:type",HTMLDivElement)],vY.prototype,"header",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vY.prototype,"onDataChanged",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],vY.prototype,"onPopupClosed",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],vY);
_.h(vY,"ytd-membership-post-cancel-renderer",function(){if(qeQ!==void 0)return qeQ;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return qeQ=c},{mode:1});var Zfr;var h1=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(h1,_.z);h1.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
h1.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],h1.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],h1.prototype,"darkerDarkTheme",void 0);_.y([_.AY("ytd-feedback-survey-renderer"),_.D("design:type",Object)],h1.prototype,"feedbackSurveyRenderer",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],h1);
_.h(h1,"ytd-sponsorship-confirm-cancel-content",function(){if(Zfr!==void 0)return Zfr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return Zfr=c},{mode:1});var MEr;var wL=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.maybeSubmitFeedback=function(){c.content&&c.content.maybeSubmitFeedback()};
return c};
_.K(wL,_.z);_.r=wL.prototype;_.r.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.r.onYtPopupOpened=function(c,f){f===this&&this.data&&this.data.onOpenCommands&&_.ll(this.hostElement,this.data.onOpenCommands,this.hostElement);_.gS(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.r.onYtPopupClosed=function(c,f){(f&&f.canceled===!0||f&&f.canceled===!1&&f.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.ll(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.r.onYtServiceRequestCompleted=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.r.onYtServiceRequestError=function(c){_.fO(this.hostElement,c.detail.error.message)};
_.r.onDataChanged=function(){if(this.isAttached){var c=this.backgroundUrl;c&&(_.r1(this.hostElement).querySelector("#header").style.backgroundImage=c)}};
_.ci.Object.defineProperties(wL.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var c=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return c?"url("+_.kZ(c,this.hostElement.clientWidth)+")":""}}});
wL.prototype.onDataChanged=wL.prototype.onDataChanged;wL.prototype.onYtServiceRequestError=wL.prototype.onYtServiceRequestError;wL.prototype.onYtServiceRequestCompleted=wL.prototype.onYtServiceRequestCompleted;wL.prototype.onYtPopupClosed=wL.prototype.onYtPopupClosed;wL.prototype.onYtPopupOpened=wL.prototype.onYtPopupOpened;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wL.prototype,"data",void 0);_.y([_.L({value:function(){return _.HO("SBOX_INAPPROPRIATE_CANCEL")}}),
_.D("design:type",String)],wL.prototype,"closeButtonAriaLabel",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],wL.prototype,"darkerDarkTheme",void 0);_.y([_.AY("#scrollable"),_.D("design:type",Object)],wL.prototype,"scrollable",void 0);_.y([_.AY("ytd-sponsorship-confirm-cancel-content"),_.D("design:type",Object)],wL.prototype,"content",void 0);
_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],wL.prototype,"onYtPopupOpened",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],wL.prototype,"onYtPopupClosed",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],wL.prototype,"onYtServiceRequestCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],wL.prototype,"onYtServiceRequestError",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],wL.prototype,"onDataChanged",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],wL);
_.h(wL,"ytd-sponsorship-confirm-cancel-renderer",function(){if(MEr!==void 0)return MEr;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return MEr=c},{mode:_.lP("kevlar_poly_si_batch_j081")?1:2});var rAC;var y6=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(y6,_.z);y6.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],y6.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],y6.prototype,"darkerDarkTheme",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],y6);
_.h(y6,"ytd-sponsorships-celebration-content",function(){if(rAC!==void 0)return rAC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return rAC=
c},{mode:1});var CyD;var gi3=_.pp(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),WY=function(){var c=_.z.apply(this,arguments)||this;c.scriptsAppended=!1;c.buttonOverrides={type:"tonal",style:"overlay-dark"};return c};
_.K(WY,_.z);_.r=WY.prototype;_.r.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}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.onDataChanged=function(){var c;(c=this.header)==null||c.style.setProperty("background-color",this.backgroundColor);if(c=this.headerImageUrl){var f;(f=this.header)==null||f.style.setProperty("background-image",c)}f=_.X2(4);c=_.V5(4);var d=this.get("data.trackingParams");if(d&&c&&f){var q=_.Q1(d);_.Dr(f,c,q);_.F("combine_ve_grafts")?_.bP().graftServerVe(d,c,4):_.Dr(f,c,q)}f=_.C(this.hostElement.querySelectorAll("yt-img-shadow"));for(c=f.next();!c.done;c=f.next())c.value.onShow();if(f=this.get("data.gtmId"))_.J$(f,
_.hk("GL","")),this.setupConversionTracking()};
_.r.setupConversionTracking=function(){if(!this.scriptsAppended){var c=document.createElement("script");var f=_.pq(gi3.join(""));_.xh(c,f);document.head.appendChild(c);c=document.createElement("noscript");c.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(c);this.scriptsAppended=!0}};
_.r.onPopupClosed=function(c){if(_.oV(c).localName==="ytd-sponsorships-celebration-renderer"){_.gS(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var f;this.data&&((f=this.data)==null?0:f.dismissCommand)&&_.Hh.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.ci.Object.defineProperties(WY.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var c=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.WS(c)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var c=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return c?"url("+_.kZ(c,this.hostElement.getBoundingClientRect().width)+")":""}}});
WY.prototype.onPopupClosed=WY.prototype.onPopupClosed;WY.prototype.onDataChanged=WY.prototype.onDataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],WY.prototype,"data",void 0);_.y([_.AY("#header"),_.D("design:type",HTMLElement)],WY.prototype,"header",void 0);
_.y([_.L(),_.D("design:type",Object)],WY.prototype,"scriptsAppended",void 0);_.y([_.L(),_.D("design:type",Object)],WY.prototype,"buttonOverrides",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],WY.prototype,"onDataChanged",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],WY.prototype,"onPopupClosed",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],WY);
_.h(WY,"ytd-sponsorships-celebration-renderer",function(){if(CyD!==void 0)return CyD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return CyD=c},{mode:1});var kSq;var DP=function(){var c=_.z.apply(this,arguments)||this;c.isToggleChecked=!1;return c};
_.K(DP,_.z);DP.prototype.onDataChanged=function(){var c;this.isToggleChecked=((c=this.data)==null?void 0:c.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
DP.prototype.close=function(){var c;((c=this.data)==null?0:c.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
DP.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var c,f=_.b((c=this.data)==null?void 0:c.switchButton,jNq);f&&(this.isToggleChecked&&f.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(f.switchOnInnertubeCommand),!this.isToggleChecked&&f.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(f.switchOffInnertubeCommand))};
DP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
DP.prototype.onDataChanged=DP.prototype.onDataChanged;_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],DP.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],DP.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],DP.prototype,"isToggleChecked",void 0);_.y([_.L({value:_.HO("CLOSE")}),_.D("design:type",String)],DP.prototype,"closeButtonAriaLabel",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DP.prototype,"onDataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],DP);
_.h(DP,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(kSq!==void 0)return kSq;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return kSq=c},{mode:1});var Of3;var ei=function(){return _.z.apply(this,arguments)||this};
_.K(ei,_.z);_.r=ei.prototype;_.r.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"}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.detached=function(){this.playerElement.stop()};
_.r.onYtServiceRequestCompleted=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.r.onYtServiceRequestError=function(c){_.fO(this.hostElement,c.detail.error.message)};
_.r.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.r.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.r.getTier=function(c,f){return!c||!c.tiers||f<0?null:_.b(c.tiers[f],rLr)};
_.r.moreThanOne=function(c){return!!(c&&c.length>1)};
_.r.tierOverviewTap=function(c){var f=this;this.selectedTier=c.model.index;_.ol(this,function(){_.CZ(f.hostElement,"yt-refit")})};
_.r.computeSelectedClass=function(c,f){return this.isSelected(c,f)?"selected":""};
_.r.computeButtonAriaPressed=function(c,f){return this.isSelected(c,f)?"true":"false"};
_.r.isSelected=function(c,f){return c===f};
_.r.onDataChanged=function(){_.r1(this.hostElement).querySelector("#header-overlay").style.visibility="";_.r1(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 c=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),
f=c.next();!f.done;f=c.next())f.value.onShow();var d;this.set("selectedTier",(d=this.get("data.targetTierIndex"))!=null?d:0);var q;(c=(q=this.data)==null?void 0:q.onVisible)&&this.ytComponentBehavior.resolveCommand(c)};
_.r.initializeVe=function(c){var f=_.X2(),d=_.V5(),q=this.get("data.trackingParams");d&&f&&(this.screenLayer=4,f=_.WC(_.mAh)(void 0,69877,{clientScreenNonce:f,visualElement:d},void 0,void 0,void 0),_.vi(f,69877,4),d=_.V5(4),q&&d&&(q=_.Q1(q),_.Dr(f,d,q),c&&(this.offerVideoVe=_.m_(74659),_.Dr(f,q,this.offerVideoVe))))};
_.r.setHeaderBackground=function(){var c=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.r1(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.WS(c);if(c=this.getHeaderImage())c=_.kZ(c,screen.width),_.r1(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+c+")"};
_.r.getHeaderImage=function(){var c=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&c?c:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.r.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.r.setupVideoPlayer=function(c){var f=this,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1)return d=f.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),q=f.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.F("kevlar_player_update_killswitch")?f.playerElement.update({args:{autoplay:d,video_id:c,player_params:q}}):f.playerElement.loadVideoWithPlayerVars({autoplay:d,video_id:c,player_params:q}),
g.yield(f.playerElement.getPlayerPromise(),2);Z=g.yieldResult;Z.addEventListener("onStateChange",function(O){f.onPlayerStateChange(O)});
Z.setScreenLayer(f.screenLayer);(M=_.X2(4))&&f.offerVideoVe&&_.N9(M,f.offerVideoVe);d&&(f.pauseOtherPlayers(),f.playerElement.focusOnPlayer(),f.playerElement.getPlayer().hideControls(),_.Em(_.a7,function(){f.fadeOutHeaderOverlay()},4E3));
_.Fm(g)})};
_.r.onPlayerStateChange=function(c){c===1?this.backgroundPlayerElement&&(c=this.backgroundPlayerElement.player_.getPlayerState(),c!==1&&c!==3||this.backgroundPlayerElement.pause()):c===0&&(_.r1(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.r1(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.r.fadeOutHeaderOverlay=function(){_.r1(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.r.onHeaderTap=function(){if(this.offerVideo){_.r1(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var c;((c=this.playerElement.player_)==null?void 0:c.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(c=_.X2(4))&&this.offerVideoVe&&_.Rc(c,this.offerVideoVe)}};
_.r.getBackgroundImageLayerClass=function(c){return c?"background-image-layer-with-video":""};
_.r.getHeaderClass=function(c){return c?"header-with-video":""};
_.r.getHeaderOverlayClass=function(c){return c?"header-overlay-with-video":""};
_.r.getTitleContainerClass=function(c,f){return c?"title-container-with-video":f?"title-container-without-video-flexible":"title-container-without-video"};
_.r.tierTitleDisplayStatus=function(c){return this.moreThanOne(c)?"hide":"show"};
_.r.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.ql().resolve(_.yN).getPlayerElement():this.backgroundPlayerElement=_.Ca();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var c=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=c===1||c===3;this.backgroundPlayerElement.pause()}};
_.r.isMiniplayerActive=function(){return _.ql().resolve(_.yN).isMiniplayerActive()};
_.r.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("selected-tier-changed",this.selectedTier))};
ei.prototype.selectedTierChangedForBinding=ei.prototype.selectedTierChangedForBinding;ei.prototype.onDataChanged=ei.prototype.onDataChanged;ei.prototype.onYtPopupClosed=ei.prototype.onYtPopupClosed;ei.prototype.onYtPopupOpened=ei.prototype.onYtPopupOpened;ei.prototype.onYtServiceRequestError=ei.prototype.onYtServiceRequestError;ei.prototype.onYtServiceRequestCompleted=ei.prototype.onYtServiceRequestCompleted;
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],ei.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ei.prototype,"data",void 0);_.y([_.L({value:0}),_.D("design:type",Number)],ei.prototype,"selectedTier",void 0);
_.y([_.L({value:""}),_.D("design:type",String)],ei.prototype,"offerVideo",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],ei.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.y([_.L({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Rk(this)}}),
_.D("design:type",String)],ei.prototype,"playerId",void 0);_.y([_.AY("tp-yt-paper-dialog-scrollable"),_.D("design:type",Object)],ei.prototype,"scrollable",void 0);_.y([_.AY("ytd-sponsorships-tier-renderer"),_.D("design:type",Object)],ei.prototype,"tierRenderer",void 0);_.y([_.AY("#player"),_.D("design:type",Object)],ei.prototype,"playerElement",void 0);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],ei.prototype,"onYtServiceRequestCompleted",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],ei.prototype,"onYtServiceRequestError",null);
_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ei.prototype,"onYtPopupOpened",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ei.prototype,"onYtPopupClosed",null);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ei.prototype,"onDataChanged",null);
_.y([_.m5("selectedTier"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ei.prototype,"selectedTierChangedForBinding",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],ei);
_.h(ei,"ytd-sponsorships-offer-renderer",function(){if(Of3!==void 0)return Of3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return Of3=c},{mode:_.lP("kevlar_poly_si_batch_j077")?1:2});var l0i;var Nc=function(){var c=_.z.apply(this,arguments)||this;c.buttonOverrides={type:"filled",style:"mono"};return c};
_.K(Nc,_.z);Nc.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}}}}}};
Nc.prototype.backgroundColorChanged=function(){var c,f,d,q=(f=_.b((c=this.data)==null?void 0:c.content,CwF))==null?void 0:(d=f.backgroundColor)==null?void 0:d.backgroundColor;q&&(c=_.ya(q),_.r1(this.hostElement).querySelector("#banner").style.backgroundColor=c,_.r1(this.hostElement).querySelector("#abstract-art").style.backgroundColor=c)};
Nc.prototype.attached=function(){this.JSC$20449_scroller&&(this.JSC$20449_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20449_scroller.attached&&typeof this.JSC$20449_scroller.attached==="function"&&this.JSC$20449_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Nc.prototype.backgroundColorChanged=Nc.prototype.backgroundColorChanged;_.y([_.L(),_.D("design:type",Object)],Nc.prototype,"data",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("#scroller"),_.D("design:type",Object)],Nc.prototype,"JSC$20449_scroller",void 0);_.y([_.L(),_.D("design:type",Object)],Nc.prototype,"buttonOverrides",void 0);
_.y([_.m5("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Nc.prototype,"backgroundColorChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Nc);
_.h(Nc,"ytd-sponsorships-promotion-celebration-renderer",function(){if(l0i!==void 0)return l0i;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return l0i=c},{mode:_.lP("kevlar_poly_si_batch_j077")?1:2});var sHi;var BPc;var Ij=function(){return _.z.apply(this,arguments)||this};
_.K(Ij,_.z);Ij.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Ij.prototype.computeIsInitiallyChecked=function(c){return c===1};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ij.prototype,"data",void 0);_.y([_.AY("#checkbox"),_.D("design:type",Object)],Ij.prototype,"checkbox",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Ij);
_.h(Ij,"ytd-subscription-toggle-option-renderer",function(){if(BPc!==void 0)return BPc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return BPc=c},{mode:1});var PY=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return c};
_.K(PY,_.z);PY.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"}}}};
PY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
PY.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var c=_.r1(this.hostElement).querySelector("#options").selected;c=this.data.options[c].subscriptionRadioOptionRenderer.serviceEndpoint;var f=_.r1(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");f&&c&&c.modifyChannelNotificationPreferenceEndpoint&&(f=f.getValue())&&(c.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[f]);_.ql().resolve(_.ZM).resolveCommand(c,{form:{element:this.hostElement}});
_.gS(this.hostElement,"yt-close-popup-action")};
_.ci.Object.defineProperties(PY.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var c=this.data.options,f=0;f<c.length;f++){var d=c[f].subscriptionRadioOptionRenderer;if(d&&d.selected)return f}return null}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],PY.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],PY.prototype,"eventForwardingBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],PY.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],PY.prototype,"darkerDarkTheme",void 0);_.y([_.S("data.options"),_.D("design:type",Object),_.D("design:paramtypes",[])],PY.prototype,"initialIndex",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],PY);
_.h(PY,"ytd-subscription-notification-options-renderer",function(){if(sHi!==void 0)return sHi;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return sHi=c},{mode:1});var ifG;var Rj=function(){return _.z.apply(this,arguments)||this};
_.K(Rj,_.z);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Rj.prototype,"data",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Rj);
_.h(Rj,"ytd-tvfilm-offer-groups-renderer",function(){if(ifG!==void 0)return ifG;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return ifG=c},{mode:1});var TPF;var Un=function(){var c=_.z.apply(this,arguments)||this;c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(Un,_.z);_.r=Un.prototype;_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.r.computeThumbnailClass=function(c){return c.thumbnailOverlays?c.isShow?"thumbnail-show":"thumbnail-movie":c.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.r.computeCommerceSectionClass=function(c){return c.offers&&c.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.r.computeTitleClass=function(c){return c.offers&&c.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.r.onDataChanged=function(){[].concat(_.LT(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(c){c.onShow()})};
Un.prototype.onDataChanged=Un.prototype.onDataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Un.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],Un.prototype,"darkerDarkTheme",void 0);
_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Un.prototype,"onDataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Un);
_.h(Un,"ytd-ypc-offers-overlay-renderer",function(){if(TPF!==void 0)return TPF;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return TPF=c},{mode:_.lP("kevlar_poly_si_batch_j028")?1:2});var mGD;var HfC=function(){this.usedMethods=new Set};
HfC.prototype.add=function(c){this.usedMethods.add(c)};
HfC.prototype.reset=function(){this.usedMethods.clear()};var FYG=function(c,f){this.query=c;this.previousSearchQuery=f;this.id=AAc++;if(!YeH){f=_.hk("SBOX_SETTINGS");c="https://"+((f==null?void 0:f.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var d=f==null?void 0:f.REQUEST_LANGUAGE;d&&(c+="&hl="+d);(d=f==null?void 0:f.REQUEST_DOMAIN)&&(c+="&gl="+d);c+="&client=youtube&gs_ri=youtube";(d=f==null?void 0:f.SUGG_EXP_ID)&&(c+="&sugexp="+encodeURIComponent(d));(d=f==null?void 0:f.PSUGGEST_TOKEN)&&(c+="&tok="+d);(f=
f==null?void 0:f.SESSION_INDEX)&&(c+="&authuser="+f);_.F("desktop_enable_visual_suggest")&&(c+="&h=180&w=320&ytvs=1");YeH=c}},tEC=function(c){var f="q="+encodeURIComponent(c.query);
c.previousSearchQuery&&(f+="&pq="+encodeURIComponent(c.previousSearchQuery));return f},bfC=function(){var c=_.hk("SBOX_SETTINGS"),f={};
if(c==null?0:c.SEND_VISITOR_DATA)f["X-Goog-Visitor-Id"]=c==null?void 0:c.VISITOR_DATA;return f},KYC=function(c){var f=YeH;
f+="&gs_id="+c.id.toString(36);f+="&q="+encodeURIComponent(c.query);f+="&cp="+c.query.length;c.previousSearchQuery&&(f+="&pq="+encodeURIComponent(c.previousSearchQuery));(c=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(f+="&video_id="+c);return f},AAc=0,YeH="";var EiD=_.CV.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,ni3=_.CV.SEARCH_ENTITY_SUGGESTION_MOVIE,$Gp=_.CV.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,QHi=_.CV.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Sep=function(c,f){this.text=c;this.bold=f},LYS=function(c,f,d){this.input=f;
this.index=d;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=c[0];this.type=c[1];this.subtypes=c[2];var q;this.displayText=m9((q=c[3])==null?void 0:q.b);var Z;this.ignoredPrefix=m9((Z=c[3])==null?void 0:Z.a);var M,g;this.hasNewVideo=((M=c[3])==null?void 0:(g=M.zam)==null?void 0:g.toString())==="true"?!0:!1;var O;this.visualSuggestUrl=(O=c[3])==null?void 0:O.zai;var l;this.entityType=m9((l=c[3])==null?void 0:l.zap);var m;this.entityName=m9((m=c[3])==null?void 0:m.zao);var H;f=m9((H=
c[3])==null?void 0:H.zaf);var A;this.entityMid=(A=c[3])==null?void 0:A.zae;H=TNG(this.subtypes,this.entityMid);if(f&&H){if(f){A="";switch(H){case "YOUTUBE_ENTITY_TYPE_SONG":A=$Gp;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":A=EiD;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":A=QHi;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":A=ni3}H=H==="YOUTUBE_ENTITY_TYPE_SONG"||H==="YOUTUBE_ENTITY_TYPE_ALBUM"?A+" \u2022  \u2022 "+f:f}else H="";this.entitySubtitle=H}var Y;this.externalChannelId=(Y=c[3])==null?void 0:Y.zav;var t;
this.entityThumbnailAttributionUrl=(t=c[3])==null?void 0:t.zaq},JAr=function(c,f){var d=[],q,Z=(q=c.displayText)!=null?q:c.text;
(f==null?0:f.useEntityName)&&zKC(c)&&c.entityName&&(Z=c.entityName);if(c.type===33)return d.push(new Sep(Z,!1)),d;if(Z.length>=c.input.length&&Z.substring(0,c.input.length)===c.input)d.push(new Sep(c.input,!1)),d.push(new Sep(Z.substring(c.input.length),!0));else{var M=new Set(c.input.split(/\s/)),g=Z.split(/\s/);d=g.map(function(O,l){return new Sep(O.trim()+(l===g.length-1?"":" "),!M.has(O))})}return d},zKC=function(c){var f=!!TNG(c.subtypes);
c=!!c.entityMid;return f||c};var a0r=function(c){this.rawResponse=["",[],{}];this.suggestions=[];try{var f=JSON.parse(mVc(c));if(typeof f==="object"&&f!==null)this.rawResponse=f;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(q){console.log("Suggest: Failed to parse SuggestResponse!");return}var d=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(q,Z){return new LYS(q,d,Z)})};var VES=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new HfC;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20486_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},XyF,u03=function(){XyF||(XyF=new VES);
return XyF};
VES.prototype.updateSuggestions=function(c){var f=this;this.availableSuggestions.forEach(function(d){f.previousSuggestions[d]=!0});
this.availableSuggestions=c.map(function(d){var q=d.type.toString();d.subtypes.length>0&&(q+="i"+d.subtypes.join("i"),q+="k"+d.suggestionSources.COMPLETE_SERVER.toString());return q})};
var viJ=function(c,f){var d=Date.now();c.firstEditTime<0&&(c.firstEditTime=d);f&&(c.lastQueryBuildTime=d);c.lastEditTime=d};
VES.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20486_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var hKJ=function(c){var f="";c.availableSuggestions.forEach(function(Z){delete c.previousSuggestions[Z]});
for(var d=_.C(Object.keys(c.previousSuggestions)),q=d.next();!q.done;q=d.next())q=q.value,c.previousSuggestions[q]&&(f+=(f?"j":"")+q);return f},wyi=function(c,f){var d=[];
f&&(d[1]=f.toString());d[0]="youtube";d[7]=Date.now()-c.startTime;d[6]=c.sessionNumber;c.zeroPrefixSuggestionCount>=0&&(d[33]=c.zeroPrefixSuggestionCount);d[13]=c.outOfSyncResponseCount;if(c.availableSuggestions.length>0){for(var q=f="",Z=0,M=_.C(c.availableSuggestions),g=M.next();!g.done;g=M.next())g=g.value,g!==q&&(Z>1&&(f+="l"+Z),f+=(q?"j":"")+g,Z=0,q=g),Z+=1;Z>1&&(f+="l"+Z);d[3]=f}d[35]=hKJ(c);c.selectedSuggestionIndex>=0&&(d[2]=c.selectedSuggestionIndex);var O;if(f=(O=_.hk("SBOX_SETTINGS"))==
null?void 0:O.SUGG_EXP_ID)d[19]=c.normalize(f),O=0,c.experimentTriggeredBeforeFinal&&(O|=1),c.experimentTriggeredFinal&&(O|=2),d[20]=O;d[26]=Array.from(c.inputMethodsTracker.usedMethods).join("j");if(c.JSC$20486_totalRoundTripTime>0){d[15]=c.JSC$20486_totalRoundTripTime;d[14]=c.maxRoundTripTime;O=[];for(Z=f=0;Z<10;Z++)q=c.roundTripTimeHistogram[Z],q===0?f++:(f>1?O.push(Z+"-"+q):f===1?O.push("0j"+q):O.push(q.toString()),f=0);O=O.join("j");d[16]=O}c.zeroPrefixRoundTripTime>0&&(d[36]=c.zeroPrefixRoundTripTime);
c.lastQueryBuildTime>0&&(d[18]=c.lastQueryBuildTime-c.startTime);c.firstEditTime>0&&(d[4]=c.firstEditTime-c.startTime);c.lastEditTime>0&&(d[5]=c.lastEditTime-c.startTime);return d.join(".")};
VES.prototype.normalize=function(c){return c.replaceAll(".","-")};
var yAp=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var pR=function(){var c=_.z.apply(this,arguments)||this;c.microphoneSpinnerActive=!1;c.noAnimations=!1;c.boundExitClick=function(){c.onExitButtonClick()};
c.speechOverlayClassName="";c.isLevelAnimating=!1;c.playCloseDialogAudioFeedback=!0;c.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return c};
_.K(pR,_.z);_.r=pR.prototype;_.r.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.r.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=J6J()};
_.r.dataChanged=function(){this.logDialog()};
_.r.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var c;(c=this.manager.audioPlayer)!=null&&(c.JSC$19795_audioEnabled=!1)}this.manager.stop();(c=this.manager.audioPlayer)!=null&&(c.JSC$19795_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.r.handleSpeechQueryCompleteAction=function(c){var f=c.navigationAction;f&&(c.trackingParams&&_.bP().graftServerVe(c.trackingParams,this.dialogVe,5),_.CZ(this.hostElement,"yt-navigate",{endpoint:f,tempData:this.getNavigationParams(f),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.r.onExitButtonClick=function(){this.closeDialog()};
_.r.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var c;if((c=this.manager)!=null){var f;(f=c.audioPlayer)==null||GL(f,"failure");c.setState("microphone-off");c.stop()}}else(c=this.manager)==null||c.start()};
_.r.transcriptionChanged=function(){var c,f;(((c=this.transcription)==null?0:c.low)||((f=this.transcription)==null?0:f.high))&&this.setState("transcribing",this.transcription)};
_.r.stateChanged=function(){this.setState(this.state,this.transcription)};
_.r.logDialog=function(){var c;(c=this.data)!=null&&c.trackingParams&&(c=_.bP(),_.s8(c,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=c.graftServerVe(this.data.trackingParams,void 0,5))};
_.r.getNavigationParams=function(c){var f={};if(_.F("web_yt_searchbox")){var d=u03();d.inputMethodsTracker.add(6);d=wyi(d,15);f.gs_l=d;var q;f.oq=((q=_.b(c,_.th))==null?void 0:q.query)||""}else if(c=window.ytvoicesearchloggingparams){if(c=c())f.oq=c.oq,f.gs_l=c.gs_l}else _.eZ(Error("nl"));return f};
_.r.closeDialog=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.r.setState=function(c,f){if(this.data){var d=this.data,q={};switch(c){case "listening":q={headerText:d.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:d.microphoneButtonAriaLabel};break;case "timeout":q={headerText:d.promptHeader,microphoneState:"try-again",microphoneLabel:d.promptMicrophoneLabel,microphoneAriaLabel:d.promptMicrophoneLabel};break;case "microphone-off":q={headerText:d.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:d.promptMicrophoneLabel,
microphoneAriaLabel:d.promptMicrophoneLabel};break;case "transcribing":(f==null?0:f.low)||(f==null?0:f.high)?q={transcriptionLow:f==null?void 0:f.low,transcriptionHigh:f==null?void 0:f.high,microphoneState:"speaking",microphoneAriaLabel:d.microphoneButtonAriaLabel}:q={headerText:d.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:d.microphoneButtonAriaLabel};break;case "processing":q={headerText:d.loadingHeader,microphoneState:"processing",microphoneAriaLabel:d.microphoneButtonAriaLabel};
break;case "offline":q={headerText:d.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:d.connectionErrorMicrophoneLabel,microphoneAriaLabel:d.connectionErrorMicrophoneLabel};break;case "permission":q={headerText:d.permissionsHeader,bodyLine1:d.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:d.permissionsSubtext};break;case "permission-denied":q={headerText:d.disabledHeader,bodyLine1:d.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:d.disabledSubtext}}q.className=
c;this.speechOverlayState=q;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.r.setMicrophoneState=function(c){var f=this.isLevelAnimating;this.isLevelAnimating=c==="speaking";!f&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=c==="processing"&&!this.noAnimations};
_.r.setClass=function(c){this.speechOverlayClassName&&_.g1(this.hostElement,this.speechOverlayClassName,!1);c&&(this.speechOverlayClassName=c,_.g1(this.hostElement,c,!0))};
_.r.runLevelAnimation=function(){var c=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var f=1+Math.random()*.75,d=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+d/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+f+")");_.a7.addJob(function(){c.runLevelAnimation()},3,d)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
pR.prototype.stateChanged=pR.prototype.stateChanged;pR.prototype.transcriptionChanged=pR.prototype.transcriptionChanged;pR.prototype.onPopupClosed=pR.prototype.onPopupClosed;pR.prototype.dataChanged=pR.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],pR.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],pR.prototype,"rendererStamperBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],pR.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],pR.prototype,"eventForwardingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],pR.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],pR.prototype,"speechOverlayState",void 0);
_.y([_.L(),_.D("design:type",Object)],pR.prototype,"microphoneSpinnerActive",void 0);_.y([_.L({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.D("design:type",Object)],pR.prototype,"noAnimations",void 0);_.y([_.L({selector:function(c){var f;return(f=c.voiceSearch)==null?void 0:f.transcription}}),
_.D("design:type",Object)],pR.prototype,"transcription",void 0);_.y([_.L({selector:function(c){var f;return(f=c.voiceSearch)==null?void 0:f.overlay}}),
_.D("design:type",String)],pR.prototype,"state",void 0);_.y([_.L(),_.D("design:type",Object)],pR.prototype,"boundExitClick",void 0);_.y([_.AY("#microphone-levels"),_.D("design:type",HTMLElement)],pR.prototype,"level",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pR.prototype,"dataChanged",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pR.prototype,"onPopupClosed",null);
_.y([_.ba("transcription"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pR.prototype,"transcriptionChanged",null);_.y([_.ba("state"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],pR.prototype,"stateChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],pR);
_.h(pR,"ytd-voice-search-dialog-renderer",function(){if(mGD!==void 0)return mGD;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return mGD=c},{mode:1});var WYi;var xT=function(){var c=_.z.apply(this,arguments)||this;c.isOverlay=!1;c.hidden=!1;return c};
_.K(xT,_.z);_.r=xT.prototype;_.r.onPopupClosed=function(){this.toggleIconState(!1)};
_.r.computeIcon=function(){var c,f,d;return(f=_.b((c=this.data)==null?void 0:c.icon,sND))==null?void 0:(d=f.icon)==null?void 0:d.iconType};
_.r.computeIconBadgeShape=function(){var c;return{iconBadgeType:"cart",iconBadgeText:(c=this.iconBadgeEntity)==null?void 0:c.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.r.onClick=function(){var c;(c=this.data)!=null&&c.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.r.computeHidden=function(c){return!c};
_.r.toggleIconState=function(c){this.iconButton&&(this.iconButton.pressed=c)};
xT.prototype.onPopupClosed=xT.prototype.onPopupClosed;_.y([_.Q(_.wt),_.D("design:type",Object)],xT.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],xT.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],xT.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],xT.prototype,"isOverlay",void 0);
_.y([_.L({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.D("design:type",Object)],xT.prototype,"hidden",void 0);_.y([_.L({selectorArgs:["data.iconBadgeEntityKey"],selector:function(c,f){return _.Bb(c.entities,"iconBadgeEntity",f)}}),
_.D("design:type",Object)],xT.prototype,"iconBadgeEntity",void 0);_.y([_.AY("yt-icon-button"),_.D("design:type",HTMLButtonElement)],xT.prototype,"iconButton",void 0);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],xT.prototype,"onPopupClosed",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],xT);
_.h(xT,"ytd-icon-badge-topbar-button-renderer",function(){if(WYi!==void 0)return WYi;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return WYi=c},{mode:1});var DGc;var oj=function(){var c=_.z.apply(this,arguments)||this;c.premiumOptions=[];c.darkerDarkTheme=_.F("web_darker_dark_theme");return c};
_.K(oj,_.z);oj.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.ci.Object.defineProperties(oj.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],oj.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Array)],oj.prototype,"premiumOptions",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],oj.prototype,"darkerDarkTheme",void 0);_.y([_.S("premiumOptions"),_.D("design:type",Object),_.D("design:paramtypes",[])],oj.prototype,"hasPremiumOptions",null);
_.y([_.v({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],oj);
_.h(oj,"ytd-offline-promo-content",function(){if(DGc!==void 0)return DGc;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return DGc=c},{mode:1});var eK3;var Gq=function(){var c=_.z.apply(this,arguments)||this;c.premiumOptions=[];return c};
_.K(Gq,_.z);Gq.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var c;this.premiumOptions=ixJ((c=this.data)==null?void 0:c.formats)};
Gq.prototype.onClickSubmit=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var c;(c=_.Ca())==null||c.pause()};
Gq.prototype.attached=function(){this.JSC$20506_scroller&&(this.JSC$20506_scroller.dialogElement=this.hostElement.parentNode)};
_.ci.Object.defineProperties(Gq.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Gq.prototype.dataChanged=Gq.prototype.dataChanged;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Gq.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Gq.prototype,"data",void 0);
_.y([_.L({computed:"computeIcon_(data.headersIcon)",value:""}),_.D("design:type",String)],Gq.prototype,"headersIcon",void 0);_.y([_.L(),_.D("design:type",Array)],Gq.prototype,"premiumOptions",void 0);_.y([_.AY("#scroller"),_.D("design:type",Object)],Gq.prototype,"JSC$20506_scroller",void 0);_.y([_.S("headersIcon"),_.D("design:type",Object),_.D("design:paramtypes",[])],Gq.prototype,"showIcon",null);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Gq.prototype,"dataChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Gq);
_.h(Gq,"ytd-offline-promo-renderer",function(){if(eK3!==void 0)return eK3;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return eK3=c},{mode:1});var NPS;var cc=function(){var c=_.z.apply(this,arguments)||this;c.playbackPauseInterval=NaN;c.isLoading=!1;c.hasError=!1;c.dialogClass="";c.youtubeLabel=_.HO("LOGO_ALT_LABEL",{},"YouTube Home");c.logoName="yt-logos-ext:yt-logo-updated";c.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return c};
_.K(cc,_.z);_.r=cc.prototype;_.r.onDataChange=function(){var c;if(this.showEOMV1Text=!((c=this.data)==null||!c.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.r.attached=function(){this.pausePlayer()};
_.r.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.r.handleLangSelect=function(c){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[c.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.r.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.r.handleSaveConsent=function(c){var f=this;this.showLoadingSpinner();this.showLoadingSpinner();oDC(_.b(c,BUJ)).catch(function(d){_.u6(new _.KD("Something went wrong when save consent "+(d.message?d.message:d)+"."));f.hideLoadingSpinner();f.showErrorMessage()})};
_.r.handleDisablePersonalization=function(c){var f=this;this.showLoadingSpinner();GAc(_.b(c,sMS)).then(function(){f.dialog.close();f.resumePlayer()}).catch(function(d){_.u6(new _.KD("Something went wrong when disable personalization "+(d.message?d.message:d)+"."));
f.hideLoadingSpinner();f.showErrorMessage()})};
_.r.showLoadingSpinner=function(){var c=this;this.showSpinnerJobId=_.a7.addLowPriorityJob(function(){c.isLoading=!0},500)};
_.r.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.a7.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.r.showErrorMessage=function(){var c=this;this.hasError=!0;_.a7.addLowPriorityJob(function(){c.hasError=!1},2E3)};
_.r.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.lF(function(){try{var c=_.Ca();c&&c.pause()}catch(f){}},100))};
_.r.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var c=_.Ca();c&&c.play()}catch(f){}};
_.ci.Object.defineProperties(cc.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null||!c.eomV1Text)return[];c=[];for(var f=["SHIELD","WARNING","BAR_CHART"],d=this.data.eomV1Text.essentialCookieMsg.items,q=0;q<f.length&&q<d.length;q++)c.push({icon:f[q],text:d[q]});return c}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var c;if((c=this.data)==null||!c.eomV1Text)return[];c=[];for(var f=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],d=this.data.eomV1Text.nonEssentialCookieMsg.items,q=0;q<f.length&&q<d.length;q++)c.push({icon:f[q],text:d[q]});return c}}});
cc.prototype.onDataChange=cc.prototype.onDataChange;_.y([_.L(),_.D("design:type",Object)],cc.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],cc.prototype,"showEOMV1Text",void 0);_.y([_.L(),_.D("design:type",Object)],cc.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Object)],cc.prototype,"hasError",void 0);_.y([_.L(),_.D("design:type",Number)],cc.prototype,"showSpinnerJobId",void 0);_.y([_.L(),_.D("design:type",Object)],cc.prototype,"dialogClass",void 0);
_.y([_.AY("#dialog"),_.D("design:type",Object)],cc.prototype,"dialog",void 0);_.y([_.AY("#cb-header"),_.D("design:type",HTMLElement)],cc.prototype,"header",void 0);_.y([_.AY("#lang-select"),_.D("design:type",HTMLElement)],cc.prototype,"langSelect",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],cc.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],cc.prototype,"ytComponentBehavior",void 0);
_.y([_.L(),_.D("design:type",String)],cc.prototype,"youtubeLabel",void 0);_.y([_.L(),_.D("design:type",Object)],cc.prototype,"logoName",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],cc.prototype,"onDataChange",null);_.y([_.S("data"),_.D("design:type",Array),_.D("design:paramtypes",[])],cc.prototype,"eomEssentialCookieMsgItems",null);
_.y([_.S("data"),_.D("design:type",Array),_.D("design:paramtypes",[])],cc.prototype,"eomNonEssentialCookieMsgItems",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],cc);
_.h(cc,"ytd-consent-bump-v2-lightbox",function(){if(NPS!==void 0)return NPS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return NPS=c},{mode:1});var I0F;var fb=function(){return _.z.apply(this,arguments)||this};
_.K(fb,_.z);fb.prototype.ready=function(){if(!_.FJ()||$o3)var c=!0;else $o3=!0,c=!1;c||(c=document.querySelector("ytd-app"),c||(c=document.body),this.internalLightBox=_.r1(c).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.y([_.L(),_.D("design:type",Object)],fb.prototype,"data",void 0);_.y([_.AY("#lightbox"),_.D("design:type",Object)],fb.prototype,"lightBox",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],fb);
_.h(fb,"ytd-consent-bump-v2-renderer",function(){if(I0F!==void 0)return I0F;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return I0F=c},{mode:1});var PyG;var RKr;var UGG;var dQ=function(){return _.z.apply(this,arguments)||this};
_.K(dQ,_.z);_.r=dQ.prototype;_.r.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&V4Q(this.toastManager,this.toastType)};
_.r.open=function(c){this.toast&&(this.ephemeralAction&&_.ql().resolve(_.$A).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=c!=null?c:0,this.toastManager.enqueue(this.toast,c)):this.toast.open())};
_.r.close=function(c){var f;(f=this.toast)==null||f.close();this.toastManager&&c===1&&V4Q(this.toastManager,c)};
_.r.refit=function(){var c;(c=this.toast)==null||c.refit()};
_.r.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var c;(c=this.toast)==null||c.close()}};
_.r.setVerticalOffset=function(c){this.toast&&(this.toast.verticalOffset=c,this.toast.fit())};
_.r.computeButtonClass_=function(c){return c?"toast-button":""};
_.r.computeText_=function(c){return _.xC(c)};
_.r.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ua("toast-opened-changed",this.toastOpened))};
_.r.updateToastOpenedFromBinding=function(c){this.toastOpened=c.detail.value};
_.ci.Object.defineProperties(dQ.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var c,f,d=(c=this.data)==null?void 0:(f=c.actionButton)==null?void 0:f.buttonRenderer;return(d==null?void 0:d.command)||(d==null?void 0:d.serviceEndpoint)||(d==null?void 0:d.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 c=[],f;((f=this.data)==null?0:f.responseText)&&c.push(_.xC(this.data.responseText));var d;((d=this.data)==null?0:d.subText)&&c.push(_.xC(this.data.subText));var q,Z;if((q=this.data)==null?0:(Z=q.actionButton)==null?0:Z.buttonRenderer){var M,g;c.push(((M=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(g=M.accessibilityData)==null?void 0:g.label)||_.xC(this.data.actionButton.buttonRenderer.text))}return c.filter(function(O){return O}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var c,f;return(f=(c=this.toast)==null?void 0:c.opened)!=null?f:!1}}});
dQ.prototype.toastOpenedChangedForBinding=dQ.prototype.toastOpenedChangedForBinding;dQ.prototype.toastOpenedChanged=dQ.prototype.toastOpenedChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],dQ.prototype,"ytEventForwardingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],dQ.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],dQ.prototype,"duration",void 0);
_.y([_.L(),_.D("design:type",Number)],dQ.prototype,"toastType",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],dQ.prototype,"useCloseButton",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],dQ.prototype,"closeToastOnActionButtonClick",void 0);_.y([_.L({value:function(){return _.HO("SBOX_INAPPROPRIATE_CANCEL")}}),
_.D("design:type",String)],dQ.prototype,"closeButtonAriaLabel",void 0);_.y([_.L(),_.D("design:type",Boolean)],dQ.prototype,"toastOpened",void 0);_.y([_.L(),_.D("design:type",Boolean)],dQ.prototype,"hasOpened",void 0);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],dQ.prototype,"command",null);_.y([_.S("labelText","command","duration"),_.D("design:type",Object),_.D("design:paramtypes",[])],dQ.prototype,"ephemeralAction",null);
_.y([_.S("ephemeralAction"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],dQ.prototype,"hasEphemeralAction",null);_.y([_.AY("#toast"),_.D("design:type",Object)],dQ.prototype,"toast",void 0);_.y([_.L({value:function(){return{style:"call-to-action-inverse"}}}),
_.D("design:type",Object)],dQ.prototype,"buttonOverrides",void 0);_.y([_.L({value:{style:"mono-inverse"}}),_.D("design:type",Object)],dQ.prototype,"closeButtonOverrides",void 0);_.y([_.L({value:function(){return _.ql().resolve(_.dx(_.tO))}}),
_.D("design:type",Object)],dQ.prototype,"toastManager",void 0);_.y([_.S("data.responseText","data.subText","data.actionButton"),_.D("design:type",Object),_.D("design:paramtypes",[])],dQ.prototype,"labelText",null);_.y([_.m5("toastOpened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],dQ.prototype,"toastOpenedChanged",null);
_.y([_.m5("toastOpened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],dQ.prototype,"toastOpenedChangedForBinding",null);_.y([_.vj({is:"yt-notification-action-renderer",disableElementRegistration:!0})],dQ);
_.h(dQ,"yt-notification-action-renderer",function(){if(UGG===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;RKr===void 0&&(RKr=document.createElement("template"));var q=RKr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);UGG=c}c=UGG;return c},{mode:2});var jo=function(){var c=_.z.apply(this,arguments)||this;c.duration=4E3;c.downloadingCount=0;c.downloadedCount=0;c.downloadingOnlySmartDownloads=!1;c.sessionTotalDownloads=0;c.sessionDownloaded=0;c.previousSessionsDownloaded=0;c.totalDownloadPercentage=0;c.currentDownloadProgress=0;c.currentDownloadPercentage=0;c.isLeaderTab=!0;c.isFullScreen=!1;c.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};c.boundBeforeUnload=function(f){c.isLeaderTab&&c.downloadingCount>0&&(f.preventDefault(),
f.returnValue=!0)};
return c};
_.K(jo,_.z);_.r=jo.prototype;
_.r.open=function(){this.updateDownloadState();if(this.data){var c=this.sessionDownloaded+1,f=this.sessionTotalDownloads>1?_.HO("VIDEOS_DOWNLOADING_RATIO",{downloaded:c.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+c+"/"+this.sessionTotalDownloads):_.HO("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(f=this.sessionTotalDownloads>1?_.HO("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:c.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
c+"/"+this.sessionTotalDownloads):_.HO("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));c=this.isLeaderTab?_.HO("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.xC(this.data.responseText)!==f||_.xC(this.data.subText)!==c)this.set("data.responseText",_.pC(f)),this.set("data.subText",_.pC(c)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.r.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.r.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.r.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.r.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var c=this.downloadedCount-this.previousSessionsDownloaded;c<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-c);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.r.handleFullscreenChange=function(c){(this.isFullScreen=c)||this.updatePopup()};
jo.prototype.updateCurrentDownloadProgress=jo.prototype.updateCurrentDownloadProgress;jo.prototype.updatePopup=jo.prototype.updatePopup;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],jo.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],jo.prototype,"ytEventForwardingBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],jo.prototype,"actionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],jo.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],jo.prototype,"duration",void 0);_.y([_.L({selector:function(c){return _.UBY(c.entities).length}}),
_.D("design:type",Object)],jo.prototype,"downloadingCount",void 0);_.y([_.L({selector:CVD}),_.D("design:type",Object)],jo.prototype,"downloadedCount",void 0);_.y([_.L({selector:function(c){var f=_.UBY(c.entities);return riC(c.entities,f)}}),
_.D("design:type",Object)],jo.prototype,"downloadingOnlySmartDownloads",void 0);_.y([_.L(),_.D("design:type",Object)],jo.prototype,"sessionTotalDownloads",void 0);_.y([_.L(),_.D("design:type",Object)],jo.prototype,"sessionDownloaded",void 0);_.y([_.L(),_.D("design:type",Object)],jo.prototype,"previousSessionsDownloaded",void 0);_.y([_.L(),_.D("design:type",Object)],jo.prototype,"totalDownloadPercentage",void 0);
_.y([_.L({selector:function(c){var f;c=(f=_.UBY(c.entities))!=null?f:[];return c.length>0?_.vfr(c.slice(-1)):0}}),
_.D("design:type",Object)],jo.prototype,"currentDownloadProgress",void 0);_.y([_.L(),_.D("design:type",Object)],jo.prototype,"currentDownloadPercentage",void 0);_.y([_.L({selector:_.c$r}),_.D("design:type",Object)],jo.prototype,"isLeaderTab",void 0);_.y([_.AY("yt-notification-action-renderer"),_.D("design:type",Object)],jo.prototype,"notificationActionRenderer",void 0);
_.y([_.ba("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jo.prototype,"updatePopup",null);_.y([_.ba("currentDownloadProgress"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],jo.prototype,"updateCurrentDownloadProgress",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],jo);
_.h(jo,"ytd-video-download-toast-renderer",function(){if(PyG!==void 0)return PyG;var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return PyG=c},{mode:1});var py3;var xGq;var q1=function(){return _.z.apply(this,arguments)||this};
_.K(q1,_.z);q1.prototype.computeIsRedLogo=function(c,f){!c&&f&&(c=f);return c==="YOUTUBE_RED_LOGO"||c==="YOUTUBE_PREMIUM_LOGO"};
q1.prototype.computeLogoName=function(c){c=this.componentBehavior.computeIcon_(c);return c===""?"yt-logos-ext:yt-logo-updated":c};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],q1.prototype,"componentBehavior",void 0);_.y([_.L({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.D("design:type",Boolean)],q1.prototype,"isRedLogo",void 0);_.y([_.L({computed:"computeLogoName(data)"}),_.D("design:type",String)],q1.prototype,"logoName",void 0);_.y([_.L({value:{}}),_.D("design:type",Object)],q1.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],q1.prototype,"logoType",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-logo"})],q1);
_.h(q1,"ytd-logo",function(){if(xGq!==void 0)return xGq;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return xGq=c},{mode:_.lP("kevlar_poly_si_batch_j074")?1:2});var ZR=function(){var c=_.z.apply(this,arguments)||this;c.animationRef={};return c};
_.K(ZR,_.z);_.r=ZR.prototype;_.r.attached=function(){document.addEventListener("yt-navigate-finish",_.ia(this,this.logYoodle))};
_.r.detached=function(){document.removeEventListener("yt-navigate-finish",_.ia(this,this.logYoodle))};
_.r.logYoodle=function(){var c,f;if((c=this.data)==null?0:(f=c.loggingDirectives)==null?0:f.trackingParams)this.ytRendererBehavior.markDirty(),_.bP().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.r.computeHideImg=function(c,f){return!!c||!!f};
_.r.computeHideYtdLogo=function(c,f){return!c||!!f};
_.r.computeHideLottie=function(c){return!c};
_.r.computeIsRedLogo=function(c){return c==="YOUTUBE_RED_LOGO"||c==="YOUTUBE_PREMIUM_LOGO"};
_.r.renderLogoEntity=function(){var c=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),f=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),d=this.getLogoTitleText(this.data),q=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==c&&(this.url=c);this.animatedUrl!==f&&(this.animatedUrl=f);this.logoTitleText!==d&&(this.logoTitleText=d);this.lottieUrl!==q&&(this.lottieUrl=q,this.lottiePlayerProps=this.computeLottiePlayerProps(q))};
_.r.getSanitizedThumbnail=function(c){return c&&c.thumbnails?_.cze(c.thumbnails,122)||"":""};
_.r.getThumbnailUrl=function(c,f){if(!f)return"";var d,q;c=c?(d=f.darkThemeLogo)==null?void 0:d.thumbnail:(q=f.lightThemeLogo)==null?void 0:q.thumbnail;return this.getSanitizedThumbnail(c)};
_.r.getAnimatedThumbnailUrl=function(c,f){return f?this.getSanitizedThumbnail(c?f.darkThemeAnimatedLogo:f.lightThemeAnimatedLogo):""};
_.r.getLogoTitleText=function(c){if(c)return _.xC(c.tooltipText)};
_.r.computeLogoIcon=function(c,f){if(f){var d,q;return c?(d=f.darkThemeLogo)==null?void 0:d.icon:(q=f.lightThemeLogo)==null?void 0:q.icon}};
_.r.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.r.getLottieUrl=function(c,f){var d,q,Z,M;return c?f==null?void 0:(d=f.darkThemeLogo)==null?void 0:(q=d.lottieAnimation)==null?void 0:q.url:f==null?void 0:(Z=f.lightThemeLogo)==null?void 0:(M=Z.lottieAnimation)==null?void 0:M.url};
_.r.computeLottiePlayerProps=function(c){if(c){var f;if((f=this.animationRef)==null?0:f.lottieEl){var d;(d=this.animationRef)==null||d.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:c,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.r.onLottieError=function(){this.data&&this.lottieUrl&&_.CZ(this.hostElement,"yoodle-error")};
_.r.onImgError=function(){this.data&&!this.lottieUrl&&_.CZ(this.hostElement,"yoodle-error")};
ZR.prototype.playAnimation=ZR.prototype.playAnimation;ZR.prototype.renderLogoEntity=ZR.prototype.renderLogoEntity;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],ZR.prototype,"data",void 0);_.y([_.L({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.D("design:type",Boolean)],ZR.prototype,"hideImg",void 0);
_.y([_.L({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.D("design:type",Boolean)],ZR.prototype,"hideYtdLogo",void 0);_.y([_.L({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.D("design:type",Boolean)],ZR.prototype,"hideLottie",void 0);_.y([_.L({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.D("design:type",Boolean)],ZR.prototype,"isRedLogo",void 0);
_.y([_.L(),_.D("design:type",Boolean)],ZR.prototype,"useDarkThemeYoodle",void 0);_.y([_.L(),_.D("design:type",String)],ZR.prototype,"url",void 0);_.y([_.L(),_.D("design:type",String)],ZR.prototype,"animatedUrl",void 0);_.y([_.L(),_.D("design:type",String)],ZR.prototype,"logoTitleText",void 0);_.y([_.L({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.D("design:type",Object)],ZR.prototype,"logoIcon",void 0);_.y([_.L(),_.D("design:type",Object)],ZR.prototype,"logoType",void 0);
_.y([_.L(),_.D("design:type",String)],ZR.prototype,"lottieUrl",void 0);_.y([_.L(),_.D("design:type",Object)],ZR.prototype,"lottiePlayerProps",void 0);_.y([_.L(),_.D("design:type",Object)],ZR.prototype,"animationRef",void 0);_.y([_.m5("data"),_.m5("useDarkThemeYoodle"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],ZR.prototype,"renderLogoEntity",null);
_.y([_.Ta("click"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],ZR.prototype,"playAnimation",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],ZR);
_.h(ZR,"ytd-yoodle-renderer",function(){if(py3!==void 0)return py3;var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return py3=c},{mode:_.lP("kevlar_poly_si_batch_j074")?1:2});var oiC;var GSr;var M1=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return c};
_.K(M1,_.z);_.r=M1.prototype;_.r.onYoodleError=function(){_.F("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.r.computeLogoName=function(c){c=this.componentBehavior.computeIcon_(c);return c===""?"yt-logos-ext:yt-logo-updated":c};
_.r.computeTitle=function(c,f,d){return d&&(f==null?0:f.tooltipText)?_.xC(f.tooltipText):_.xC(c)};
_.r.computeAriaLabel=function(c,f,d){return d&&(f==null?0:f.tooltipText)?_.xC(c):""};
_.r.computeShowYoodle=function(c,f,d){return!c||!f&&!!d&&!_.zV.isEmpty(d)};
_.r.onNavigateHomeAction=function(){if(_.F("kevlar_miniplayer_navigate_home_from_app_killswitch")){var c;(c=_.r1(this.hostElement).querySelector(".yt-simple-endpoint"))==null||c.click()}};
_.r.computeLogoHref=function(c,f,d){var q;(d==null?0:d.onTapCommand)?q=this.componentBehavior.computeHref_(d.onTapCommand):c&&(q=this.componentBehavior.computeHref_(c));return q?q:f};
_.r.computeCommand=function(c,f){return(f==null?void 0:f.onTapCommand)||c};
_.r.getEndpointForm=function(){if(_.F("kevlar_topbar_disable_cache_only_home")){var c=_.ql().resolve(_.WL),f=HZi(c.getState())||"";c=_.Vpk(c.getState())||"";return{disableCache:f==="ytd-browse"&&c==="home"}}return{disableCache:!0}};
M1.prototype.onYoodleError=M1.prototype.onYoodleError;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],M1.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],M1.prototype,"componentBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],M1.prototype,"ytdReduxBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],M1.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],M1.prototype,"countryCode",void 0);_.y([_.L({selectorArgs:["data.overrideEntityKey"],selector:function(c,f){return _.Bb(c.entities,"logoEntity",f)}}),
_.D("design:type",Object)],M1.prototype,"logoEntity",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.D("design:type",Boolean)],M1.prototype,"showYoodle",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],M1.prototype,"yoodleError",void 0);_.y([_.L({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.D("design:type",String)],M1.prototype,"titleText",void 0);
_.y([_.L({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.D("design:type",String)],M1.prototype,"ariaLabelText",void 0);_.y([_.L({value:"/"}),_.D("design:type",String)],M1.prototype,"defaultEndpointUrl",void 0);_.y([_.L({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.D("design:type",String)],M1.prototype,"endpointUrl",void 0);
_.y([_.L({computed:"computeCommand(data.endpoint, logoEntity)"}),_.D("design:type",String)],M1.prototype,"command",void 0);_.y([_.L(),_.D("design:type",Object)],M1.prototype,"logoType",void 0);_.y([_.L({}),_.D("design:type",Boolean)],M1.prototype,"useDarkThemeYoodle",void 0);_.y([_.Ta("yoodle-error"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],M1.prototype,"onYoodleError",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],M1);
_.h(M1,"ytd-topbar-logo-renderer",function(){if(GSr!==void 0)return GSr;var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return GSr=c},{mode:_.lP("kevlar_poly_si_batch_j027")?1:2});var cXG=0;var fc3=_.CV.SEARCH_APPEND_LABEL,dbc=_.CV.SUGGESTION_NEW_VIDEOS_TEXT,jPG=_.CV.SUGGESTION_THUMBNAIL_LABEL,qyq=_.CV.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,ZAi=_.dN(function(c){function f(Lj){var tH,Ol;return _.k(function(sr){if(sr.nextAddress==1)return tH=new Request(Lj),_.iY(sr,2),sr.yield(fetch(tH,{credentials:"include"}),4);if(sr.nextAddress!=2)return AH(!0),_.Pq(sr,0);Ol=_.Yw(sr);_.u6(Ol);_.Fm(sr)})}
var d=c.isHighlighted;var q=c.suggestion;var Z=c.onClickCallback;var M=c.onHoverUpdateCallback;var g=c.labels;var O=c.queryBuilderFunction;var l=c.onRemoveCallback;var m=c.suggestionIndex;var H=c.generateUniqueId;var A=c.highlightedId;var Y=c.useScrollMargin;var t=c.isKeyboardMode;var E=null,J=null,X=_.xz("div"),u=_.xz("span");c=_.C(_.OT(!1,void 0,"CgAMgc"));var W=c.next().value,p=c.next().value,N=_.ob("a",function(Lj){Lj&&_.LO(237477,Lj,J,function(tH){J=tH})}),I=_.ob("button",function(Lj){Lj&&_.LO(237477,
Lj,J,function(tH){J=tH})}),R=_.Ks(function(Lj){if((Lj==null?void 0:Lj.button)===2)return Lj.preventDefault(),!1;
var tH=_.X2();tH&&E&&_.UX(tH,E,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Ol;Z(Lj,q().text,q().index,q().entityMid,Lj==null?void 0:(Ol=Lj.detail)==null?void 0:Ol.wasSelectedByKeyboard);return!1}),qN=function(){return q().type===35},kl=function(){return _.F("desktop_enable_single_suggestion_highlight")},BN=function(){return _.rx("desktop_suggestions_panel_row_height")||0},tP=function(){var Lj;
return _.F("desktop_enable_new_video_metadata")&&((Lj=q())==null?void 0:Lj.hasNewVideo)===!0},EC=function(){return _.F("desktop_enable_visual_suggest")},AP=function(){return _.F("desktop_enable_entity_suggest")&&zKC(q())},eM=function(){return q().entitySubtitle},ue=function(){return kl()?(d==null?void 0:d())||qH()&&!(t==null?0:t()):(d==null?void 0:d())||qH()},BH=function(){var Lj=_.hk("SBOX_SETTINGS");
return qN()&&!(Lj==null?0:Lj.HIDE_REMOVE_LINK)},J3=function(){return JAr(q(),{useEntityName:AP()})},lr,xl=!((lr=_.ql().resolve(_.dx(_.of)))==null||!lr()),Tv=function(){return qN()?_.F("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},ir=function(){return g==null?void 0:g().SUGGESTION_DISMISS_LABEL},$_=function(){return g==null?void 0:g().SUGGESTION_DISMISSED_LABEL};
c=_.C(_.OT(!1,void 0,"RcUcKd"));lr=c.next().value;var AH=c.next().value;c=_.C(_.OT(!1,void 0,"yGR7je"));var U3=c.next().value,MN=c.next().value,qH=U3,br=_.Ks(function(){O(u.value.innerText);return!1}),YS=_.Ks(function(Lj){Lj.preventDefault();
return!1}),Y_=_.Ks(function(Lj){var tH=q().text,Ol=_.hk("SBOX_SETTINGS"),sr="https://"+(Ol.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
sr+="&delq="+encodeURIComponent(tH);(tH=Ol==null?void 0:Ol.PSUGGEST_TOKEN)&&(sr+="&tok="+tH);(Ol=Ol==null?void 0:Ol.SESSION_INDEX)&&(sr+="&authuser="+Ol);f(sr);Lj.preventDefault();(Lj=_.X2())&&J&&_.UX(Lj,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");l(m==null?void 0:m());return!1}),eu=_.Ks(function(){if(kl()&&(t==null?0:t()))return!1;
MN(!0);M(!0);return!1}),fT=_.Ks(function(){MN(!1);
M(!1);return!1}),Gv=_.Ks(function(){p(!0);
return!1}),Cj=_.Ks(function(){p(!1);
return!1}),dJ=_.Ks(function(Lj){Lj.preventDefault();
var tH;(Lj=(tH=q().entityThumbnailAttributionUrl)!=null?tH:"")&&_.tXM(Lj);return!1});
c=_.C(_.OT("",void 0,"k9uVge"));var BD=c.next().value,E3=c.next().value;_.QJ(function(){BH()&&E3(H==null?void 0:H(m==null?void 0:m()));X.value&&_.LO(12453,X.value,E,function(Lj){E=Lj})});
return _.B(_.T,{cond:lr,then:function(){var Lj={};return _.B("div",{class:_.FY("ytSuggestionComponentRemovedText",(Lj.ytSuggestionComponentLargerRemovedText=function(){return EC()},Lj)),
style:function(){return BN()>0?"height: "+BN()+"px;":""},
role:"button"},$_)},
else:function(){var Lj={},tH={};return _.B("div",{class:_.FY("ytSuggestionComponentSuggestion",(Lj.ytSuggestionComponentSuggestionHover=function(){return!kl()},Lj.ytSuggestionComponentHighlighted=ue,Lj.ytSuggestionComponentPersonalizedSuggestion=qN,Lj.ytSuggestionComponentMweb=!1,Lj.ytSuggestionComponentLargerSuggestion=function(){return tP()||EC()},Lj.ytSuggestionComponentThumbnailSuggestion=function(){return EC()},Lj.ytSuggestionComponentRoundedSuggestion=function(){return _.F("desktop_enable_scrollable_suggestions_panel")&&
_.F("desktop_enable_suggestions_panel_padding")},Lj.ytSuggestionComponentThumbnailPadding=function(){return EC()&&!qN()},Lj)),
style:function(){return BN()>0?"height: "+BN()+"px;":""},
role:"presentation","on:mousedown":R,"on:mouseover":eu,"on:mouseout":fT,el:X},_.B("div",{class:_.FY("ytSuggestionComponentText",(tH.ytSuggestionComponentScrollMargin=Y,tH)),"aria-label":function(){return tP()?q().text+" "+dbc:q().text},
id:function(){return H==null?void 0:H(m==null?void 0:m())},
"on:mousedown":R,role:"option"},_.B(_.T,{cond:function(){return q().type!==33},
then:function(){return _.B(_.Qy,{icon:Tv,className:"ytSuggestionComponentIcon"})}}),_.B("div",{class:"ytSuggestionComponentLeftContainer"},_.B("span",{el:u,
role:"button",tabindex:0},_.B(_.bd,{each:J3},function(Ol){return Ol.bold?_.B("span",{class:"ytSuggestionComponentBold"},Ol.text):_.B("span",null,Ol.text)})),_.B(_.T,{cond:function(){return AP()&&!!q().entitySubtitle||tP()},
then:function(){return _.B("div",{class:"ytSuggestionComponentMetadataContainer"},_.B(_.T,{cond:function(){return AP()&&!!q().entitySubtitle},
then:function(){return _.B("div",{class:"ytSuggestionComponentEntitySubtitle"},eM)}}),_.B(_.T,{cond:function(){return tP()},
then:function(){return _.B("div",{class:"ytSuggestionComponentNewVideoContainer"},_.B("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.B("div",{class:"ytSuggestionComponentNewVideoText"},dbc))}}))}}))),_.B("div",{class:"ytSuggestionComponentRightContainer"},_.B(_.T,{cond:function(){return EC()&&q().visualSuggestUrl!==void 0},
then:function(){var Ol={};return _.B("div",{class:"ytSuggestionComponentThumbnailContainer"},_.B("img",{"aria-label":jPG,class:_.FY("ytSuggestionComponentVisualSuggestThumbnail",(Ol.ytSuggestionComponentCircularFrame=function(){return AP()&&q().subtypes.includes(790)},Ol.ytSuggestionComponentEntitySuggestThumbnail=function(){return AP()},Ol)),
src:function(){return q().visualSuggestUrl}}),_.B(_.T,{cond:function(){return AP()&&!!q().entityThumbnailAttributionUrl},
then:function(){var sr={};return _.B("span",{title:qyq,role:"tooltip"},_.B("div",{"on:mouseover":Gv,"on:mouseout":Cj,"on:mousedown":dJ,class:_.FY("ytSuggestionComponentThumbnailOverlay",(sr.ytSuggestionComponentThumbnailOverlayHidden=function(){return!W()},sr))},_.B(_.Qy,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.B(_.n9,null,_.B(_.K9,{when:function(){return EC()&&BH()}},function(){var Ol={};
return _.B("button",{class:_.FY("ytSuggestionComponentRemoveLinkClearButton",(Ol.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return BD()&&BD()===(A==null?void 0:A())},Ol.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!ue()},Ol)),
el:I,"on:mousedown":Y_,"aria-label":ir,id:function(){return BD()}},_.B(_.Qy,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.B(_.K9,{when:function(){return!(EC()&&q().visualSuggestUrl!==void 0)&&BH()}},function(){var Ol={};
return _.B("a",{class:_.FY("ytSuggestionComponentRemoveLink",(Ol.ytSuggestionComponentRemoveLinkDark=xl,Ol.ytSuggestionComponentRemoveLinkSelected=function(){return BD()&&BD()===(A==null?void 0:A())},Ol)),
el:N,"on:mousedown":Y_,"aria-label":ir,tabindex:0,role:"button",id:function(){return BD()}},ir)}),_.B(_.K9,{when:function(){return!1}},function(){return _.B("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":br,"on:mousedown":YS,role:"button","aria-label":fc3},_.B(_.Qy,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Ig");var M$D=_.pp(["//www.google.com/textinputassistant/","/","_tia.js"]),rXG=_.dN(function(){return _.B("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.B("button",{class:"ytdTextInputAssistantButton","on:click":_.Ks(function(){u03().inputMethodsTracker.add(3);var c,f=(c=_.hk("SBOX_SETTINGS"))==null?void 0:c.REQUEST_LANGUAGE;if(f)return _.Dz(_.CG(M$D,14,f)),!1})},_.B("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Jg");var CzD=function(){this.cache=new Map},gFp=function(c){for(var f=_.C(c.cache.entries()),d=f.next();!d.done;d=f.next()){var q=_.C(d.value);
d=q.next().value;q=q.next().value;q.suggestions.some(function(Z){return Z.type===35})&&c.cache.delete(d)}};var kpQ=_.CV.SEARCH,OAq=_.CV.SEARCH_CLEAR_LABEL,lcJ=new _.jk("FAKE_SUGGEST_RESPONSE");_.g_(_.dN(function(c){function f(){Gv||(Gv=setTimeout(function(){dJ()},1E3))}
function d(Kj,A3,Vq){if(Kj.trim()){fT=Kj;_.Xr("REFINEMENTS_TUPLE",void 0);Y_=!0;var QM;A3=wyi(U3,A3);var HH=(QM=c.searchEndpoint)==null?void 0:QM.call(c);_.Ae3(Kj,A3,HH,Tv.value.value,Vq);dJ();Tv.value.value=Kj;Tv.value.blur();U3.reset()}}
function q(Kj){return _.k(function(A3){return A3.return(new Promise(function(Vq){var QM=new XMLHttpRequest;QM.open("GET",KYC(Kj),!0);QM.withCredentials=!0;var HH=_.hk("SBOX_SETTINGS");(HH==null?0:HH.SEND_VISITOR_DATA)&&QM.setRequestHeader("X-Goog-Visitor-Id",HH==null?void 0:HH.VISITOR_DATA);QM.onload=function(){Vq(QM.responseText)};
QM.onerror=function(){_.u6(Error("pl"));Vq(null)};
setTimeout(function(){QM.abort()},1E4);
QM.send(null)}))})}
function Z(Kj){var A3,Vq,QM,HH;return _.k(function(I8){switch(I8.nextAddress){case 1:return A3={credentials:"include",headers:bfC()},window.AbortController&&(Vq=new AbortController,setTimeout(function(){Vq.abort("ytsbox-suggest-timeout")},1E4),A3.signal=Vq.signal),_.iY(I8,2),I8.yield(fetch(KYC(Kj),A3),4);
case 4:QM=I8.yieldResult.text();_.Pq(I8,3);break;case 2:return HH=_.Yw(I8),HH!=="ytsbox-abort-last"&&HH!=="ytsbox-suggest-timeout"&&_.u6(HH),I8.return(null);case 3:return I8.return(QM)}})}
function M(Kj){var A3,Vq,QM;return _.k(function(HH){switch(HH.nextAddress){case 1:if(A3=_.ql().resolve(_.dx(lcJ)))return HH.return(A3);Vq=Date.now();f();return _.F("yt_searchbox_xhr")?HH.yield(q(Kj),5):HH.yield(Z(Kj),4);case 4:QM=HH.yieldResult;HH.jumpTo(3);break;case 5:QM=HH.yieldResult;case 3:if(QM){Gv&&(clearTimeout(Gv),Gv=null);var I8=U3,zf=Vq,uX=Kj.query.length===0;zf=Date.now()-zf;uX?I8.zeroPrefixRoundTripTime=zf:(I8.JSC$20486_totalRoundTripTime+=zf,I8.maxRoundTripTime=Math.max(I8.maxRoundTripTime,
zf),uX=Math.floor(zf/100),uX>=yAp.length?++I8.roundTripTimeHistogram[9]:++I8.roundTripTimeHistogram[yAp[uX]])}return HH.return(QM)}})}
function g(Kj){var A3,Vq,QM;return _.k(function(HH){if(HH.nextAddress==1)return(A3=AH.cache.get(tEC(Kj)))?HH.return(A3):HH.yield(M(Kj),2);Vq=HH.yieldResult;if(Vq===null)return HH.return(null);QM=new a0r(Vq);Kj.query.length===0&&QM.suggestions.length===0||AH.cache.set(tEC(Kj),QM);return HH.return(QM)})}
function O(Kj){var A3,Vq;return _.k(function(QM){if(QM.nextAddress==1){eu=!1;var HH=fT;HH=_.hAN()==="search"?(_.y2(location.href,"search_query")||_.y2(location.href,"q"))===HH:!1;A3=new FYG(Kj,HH?fT:null);return QM.yield(g(A3),2)}Vq=QM.yieldResult;if(Vq===null)return QM.return();A3.query.length===0&&(U3.zeroPrefixSuggestionCount=Vq.suggestions.length);if(A3.id<=Cj)return U3.outOfSyncResponseCount++,QM.return();if(document.activeElement!==Tv.value)return QM.return();Cj=A3.id;var I8=U3,zf=Vq.rawResponse[2]||
{};I8.experimentTriggeredBeforeFinal||(I8.experimentTriggeredBeforeFinal=I8.experimentTriggeredFinal);I8.experimentTriggeredFinal=!!zf.e;U3.updateSuggestions(Vq.suggestions);X(-1);BH([]);Vq.suggestions!==t()&&LD(Vq.suggestions.length);E(Vq.suggestions);kl(Vq.suggestions.length>0&&Vq.suggestions[0].type===33);$_&&($_.hidden=Vq.suggestions.length===0,qN()?($_.style.minWidth="",I8=$_.style,zf=(HH=t()[0])==null?void 0:HH.ignoredPrefix,I8.marginLeft=(zf?Math.min(zf.length*6,ir.value.offsetWidth):0).toString()+
"px"):($_.style.minWidth=ir.value.offsetWidth+"px",$_.style.marginLeft="0"),Mz());_.Fm(QM)})}
function l(){if(!Y_)return!1;var Kj=_.hk("REFINEMENTS_TUPLE");return Kj?(Kj=Kj[1].map(function(A3,Vq){return new LYS([A3,0,[71]],Tv.value.value,Vq)}),t()!==Kj&&LD(Kj.length),BH([]),E(Kj),U3.updateSuggestions(Kj),Y_=!1,$_.hidden=Kj.length===0,eu=Kj.length>0,!0):!1}
function m(){var Kj=Tv.value.value;(typeof Kj==="string"||Kj instanceof String)&&Kj!==""?N(!0):N(!1)}
function H(){if(_.hAN()==="search"){var Kj=window.location.href;try{var A3=_.y2(Kj,"search_query")||_.y2(Kj,"q")||""}catch(Vq){A3=""}A3&&(Tv.value.value=A3,N(!0))}}
var A=_.C(_.OT([],void 0,"kGFAjf")),Y=A.next().value;A=A.next().value;var t=Y,E=A;Y=_.C(_.OT(-1,void 0,"mLGL9e"));var J=Y.next().value,X=Y.next().value;Y=_.C(_.OT(-1,void 0,"u2rYdc"));var u=Y.next().value,W=Y.next().value;Y=_.C(_.OT(!1,void 0,"W9DFC"));var p=Y.next().value,N=Y.next().value;Y=_.C(_.OT(!1,void 0,"Ip4dNc"));var I=Y.next().value,R=Y.next().value;A=_.C(_.OT(!1,void 0,"ZNKSQb"));Y=A.next().value;A=A.next().value;var qN=Y,kl=A;A=_.C(_.OT(!1,void 0,"JBrGLd"));Y=A.next().value;var BN=A.next().value;
A=_.C(_.OT(!1,void 0,"P2pD6e"));var tP=A.next().value,EC=A.next().value;A=_.C(_.OT(1,void 0,"SjP20c"));var AP=A.next().value,eM=A.next().value;A=_.C(_.OT([],void 0,"h4dRaf"));var ue=A.next().value,BH=A.next().value;A=_.C(_.OT(!1,void 0,"TUTzaf"));var J3=A.next().value,lr=A.next().value;A=_.F("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var xl=_.xz("yt-searchbox"),Tv=_.xz("input"),ir=_.xz("div"),$_,AH=
new CzD,U3=u03(),MN=_.ql().resolve(_.dx(_.of)),qH=function(){var Kj;return((Kj=c.forceDarkMode)==null?void 0:Kj.call(c))||!(MN==null||!MN())},br=function(){return _.F("desktop_enable_scrollable_suggestions_panel")},YS="i"+cXG++,Y_=!1,eu=!1,fT="",Gv=null,Cj=-1,dJ=function(){BH([]);
E([]);kl(!1);$_&&($_.hidden=!0);Gv&&(clearTimeout(Gv),Gv=null);X(-1)},BD=function(Kj,A3){Kj.preventDefault();
lr(!0);$_&&($_.hidden=!1);var Vq=J();Kj=t();var QM=ue();A3=YDD(A3);Vq+=A3;for(Vq>=Kj.length?Vq=-1:Vq<-1&&(Vq=Kj.length-1);Vq!==-1&&(QM.includes(Vq)||Vq>=Kj.length||Vq<0);)Vq+=A3,Vq>=Kj.length&&(Vq=-1);X(Vq);J()>=0&&(Tv.value.value=t()[J()].text,W(0),m(),Kj=J(),QM=u(),(QM=document.getElementById(Zg[Kj][QM]))&&br()&&(Kj===t().length-1?$_.scrollTop=$_.scrollHeight:QM.scrollIntoView({block:"nearest",inline:"start"})))},E3=_.Ks(function(Kj){if(!(Kj.relatedTarget instanceof Element&&Kj.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){R(!0);
var A3;(A3=c.focusCallback)==null||A3.call(c,!0);l()||(eu?$_.hidden=!1:(_.CZ(xl.value,"yt-autonav-pause-focus",{}),O(Kj.target.value)))}}),Lj=_.Ks(function(Kj){if(!(Kj.relatedTarget instanceof Element&&Kj.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){R(!1);
var A3;(A3=c.focusCallback)==null||A3.call(c,!1);$_.scrollTop=0;$_.hidden=!0;_.CZ(xl.value,"yt-autonav-pause-blur",{})}}),tH=function(Kj){Kj=YDD(Kj);
var A3;((A3=Zg[J()])==null?0:A3[u()+Kj])&&W(u()+Kj)},Ol=_.Ks(function(Kj){var A3=Kj.target;
switch(Kj.keyCode){case 13:Kj.preventDefault();var Vq;if((Vq=Zg[J()])==null?0:Vq[u()]){var QM;(QM=document.getElementById(Zg[J()][u()]))==null||QM.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Kj=Kj.shiftKey?4:3;Vq=U3;QM=J();Vq.selectedSuggestionIndex=QM;d(A3.value,Kj);break;case 27:$_&&($_.hidden=!0);break;case 40:BD(Kj,40);break;case 38:BD(Kj,38);break;case 39:tH(39);break;case 37:tH(37);break;case 229:U3.inputMethodsTracker.add(4);break;default:U3.inputMethodsTracker.add(1),
viJ(U3)}return!1}),sr=_.Ks(function(Kj){O(Kj.target.value);
m();br()&&$_&&($_.scrollTop=0);return!1}),KG=_.Ks(function(){U3.inputMethodsTracker.add(2);
viJ(U3);return!1});
_.QJ(function(){if($_){U3.reset();if(window.ResizeObserver){var Kj=new ResizeObserver(function(){qN()||($_.style.minWidth=ir.value.offsetWidth+"px")});
Kj.observe(ir.value);(new ResizeObserver(function(){Mz()})).observe($_);
_.Q4(function(){Kj.disconnect()})}H();
window.addEventListener("yt-navigate-finish",H);window.addEventListener("yt-focus-searchbox",function(){Tv.value.focus()});
var A3;BN((A3=_.hk("SBOX_SETTINGS"))==null?void 0:A3.HAS_ON_SCREEN_KEYBOARD)}else _.VO(new _.KD("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var pZ=_.Ks(function(Kj){Kj.preventDefault();d(Tv.value.value,12);return!1}),NH=_.Ks(function(Kj){Kj.preventDefault();
var A3,Vq;(A3=Tv)==null||(Vq=A3.value)==null||Vq.focus();var QM,HH;((QM=Tv)==null?void 0:(HH=QM.value)==null?void 0:HH.value)!==""&&(Tv.value.value="",Tv.value.dispatchEvent(new Event("input")));return!1}),aG=_.Ks(function(){var Kj=AQH(Tv.value.value,t().filter(function(A3){return A3.type!==35}).map(function(A3){return{label:A3.text}}));
_.gS(xl.value,"yt-open-popup-action",[{openPopupAction:Kj},document.body]);return!1}),eF=_.Ks(function(){Tv.value.focus();
return!1}),T8=function(Kj,A3,Vq,QM,HH){U3.selectedSuggestionIndex=Vq;
d(A3,HH?3:1,QM)},jZ=function(Kj){Tv.value.value=Kj;
Tv.value.dispatchEvent(new Event("input"));U3.inputMethodsTracker.add(5);viJ(U3,!0)},Zg=[[]],tw=function(Kj){var A3="searchbox-suggestion"+_.Xl(_.aP);
Zg[Kj].push(A3);return A3},LD=function(Kj){if(t()){Zg=[[]];
for(var A3=0;A3<Kj;A3++)Zg.push([])}},Mz=function(){if(br()){var Kj=$_,A3=Kj.scrollTop;
Kj=Kj.scrollHeight-Kj.clientHeight;EC(A3>=Kj);A3=Math.abs(Kj-A3);A3<=40?eM(1-(40-A3)/40):eM(1)}},zP=function(){return"opacity: "+AP()*100+"%"},nr=_.Ks(function(){Mz();
return!1}),vN=_.Ks(function(){lr(!1);
return!1}),NN,Fy={},Or={},z8={},bC={};
return _.B("yt-searchbox",{class:_.FY("ytSearchboxComponentHost",(Fy.ytSearchboxComponentMweb=!1,Fy.ytSearchboxComponentDesktop=!0,Fy["yt-searchbox-filled-query"]=function(){return p()},Fy["ytd-masthead"]=function(){return!I()},Fy.ytSearchboxComponentHostDark=qH,Fy)),
role:"search",el:xl,"client-ve-type":10349},_.B("div",{el:ir,"on:click":eF,class:_.FY("ytSearchboxComponentInputBox",(Or.ytSearchboxComponentInputBoxDark=qH,Or.ytSearchboxComponentInputBoxHasFocus=I,Or))},_.B("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":pZ},_.B(_.T,{cond:I,then:function(){return _.B("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.B(_.Qy,{icon:"SEARCH"}))}}),_.B("input",{el:Tv,
class:_.FY("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":YS,"aria-expanded":!((NN=$_)==null?0:NN.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":Lj,"on:focus":E3,"on:input":sr,"on:keydown":Ol,"on:paste":KG,placeholder:c.placeholderText,"aria-activedescendant":function(){var Kj;return(Kj=Zg[J()])==null?void 0:Kj[u()]},
"aria-autocomplete":"list",role:"combobox"})),_.B(_.T,{cond:Y,then:function(){return _.B("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.B(rXG,null))}}),_.B(_.T,{cond:p,
then:function(){return _.B("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.B("button",{class:"ytSearchboxComponentClearButton","on:click":NH,"aria-label":c.clearButtonAriaLabel||OAq},_.B(_.Qy,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.B(_.z3,{model:{}})))}})),_.B("button",{class:_.FY("ytSearchboxComponentSearchButton",(z8.ytSearchboxComponentSearchButtonDark=qH,z8)),
"on:click":pZ,"aria-label":kpQ,title:c.placeholderText},_.B(_.Qy,{icon:"SEARCH"})),_.B(_.T,{cond:function(){if(VBq()&&_.F("mweb_voice_search")&&c.voiceSearchButton)return c.voiceSearchButton()},
then:function(Kj){var A3={};return _.B("div",{class:_.FY("ytSearchboxComponentVoiceSearchWrapper",(A3.ytSearchboxComponentHideVoiceSearchButton=function(){return p()},A3))},_.B(_.u7,{data:Kj},{buttonRenderer:function(Vq){return _.B(_.pd,{data:Vq.data,
onButtonClickCallback:function(){}})}}))}}),_.B("div",{el:_.Z7(function(Kj){return void($_=Kj)}),
id:YS,class:_.FY("ytSearchboxComponentSuggestionsContainer",(bC.ytSearchboxComponentSuggestionsContainerDark=qH,bC["yt-searchbox-suggestions-container"]=!1,bC.ytSearchboxComponentSuggestionsContainerScrollable=br(),bC.ytSearchboxComponentSuggestionsContainerAnimated=A,bC)),"on:scroll":nr,"on:mousemove":vN,role:"listbox",hidden:!0},_.B(_.bd,{each:t},function(Kj,A3){return _.B(ZAi,{suggestion:Kj,isHighlighted:function(){return A3()===J()},
onClickCallback:T8,onHoverUpdateCallback:function(Vq){if(_.F("desktop_enable_single_suggestion_highlight")){var QM=A3();Vq&&(W(0),X(QM))}},
onRemoveCallback:function(Vq){gFp(AH);Vq===void 0||Vq<0||ue().includes(Vq)||BH([].concat(_.LT(ue()),[Vq]))},
labels:c.labels,queryBuilderFunction:jZ,suggestionIndex:A3,generateUniqueId:tw,highlightedId:function(){var Vq;return(Vq=Zg[J()])==null?void 0:Vq[u()]},
useScrollMargin:br(),isKeyboardMode:J3})}),_.B(_.T,{cond:function(){return!qN()&&t().find(function(Kj){return Kj.type!==35})&&_.F("searchbox_reporting")},
then:function(){return _.B("button",{class:"ytSearchboxComponentReportButton","on:mousedown":aG},_.HO("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.B(_.T,{cond:function(){return!tP()&&br()},
then:function(){return _.B("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.B("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:zP}))}})))},"Kg"),"yt-searchbox",{props:{searchEndpoint:_.oM,
placeholderText:_.oM,labels:_.oM,voiceSearchButton:_.oM,focusCallback:_.Cs,clearButtonAriaLabel:_.oM,forceDarkMode:_.oM}});var rQ=function(){var c=_.z.apply(this,arguments)||this;c.menuButtonTargetId="topbar-guide-menu";c.narrow=!1;c.menuStrings={BACK_ALT_LABEL:_.HO("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.HO("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.HO("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.HO("SBOX_PLACEHOLDER",void 0,"Search")};c.pageDarkTheme=document.documentElement.hasAttribute("dark");c.watchPageScrollTop=0;c.theater=!1;c.fullscreen=!1;c.disableFrostedGlassDuringViewTransition=
!1;c.desktopUnifiedSearchPanelMode=_.F("desktop_enable_unified_search_panel");c.cinematicTheaterMode=_.F("web_cinematic_theater_mode");c.ytSearchboxFocused=!1;c.searchboxLabels=_.hk("SBOX_LABELS");c.topbarIsAboveChipbar=!1;c.isDarkThemeForced=!1;c.areGhostCardsHidden=!1;c.guideKeyboardToggle=!1;c.voiceSearchManager=J6J();c.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};c.setYtSearchboxFocused=function(f){c.ytSearchboxFocused=
f};
c.toggleFrostedGlassDuringViewTransition=function(f){c.disableFrostedGlassDuringViewTransition=f};
return c};
_.K(rQ,_.z);_.r=rQ.prototype;_.r.computeSimpleText=function(c){return _.xC(c)};
_.r.onDarkChanged=function(){for(var c=_.C(this.buttons||[]),f=c.next();!f.done;f=c.next())f.value.isOverlay=!!this.dark;c=_.C(this.buttonRenderers||[]);for(f=c.next();!f.done;f=c.next())f.value.overrides=this.computeButtonOverride()};
_.r.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var c=_.NI(_.eY(),"aa");_.g1(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||c||(this.isDarkThemeForced=this.dark=!0);this.logoType?(c=this.hostElement.querySelector("#masthead-logo"))&&(_.F("polymer_on_demand_shady_dom")?c.setAttribute("slot","masthead-logo-old"):_.Y6(c)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.ia(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.ia(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.r.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.ia(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.ia(this,this.onSetTheaterModeEnabled))};
_.r.dataChanged=function(){var c=this.data;c&&(this.voiceEnabled=c.voiceSearchButton?J6J().isSupported():!1,_.YIO(_.Qd(),this.menuButtonTargetId,this.guideButton),c.onReceivedActions&&c.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.ll(this.hostElement,c.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&c&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.g1(this.hostElement,"dark",!1),_.g1(this.hostElement,"theater",!1),
(c=this.hostElement.querySelector("#masthead-logo"))&&(_.F("polymer_on_demand_shady_dom")?c.setAttribute("slot","masthead-logo-old"):_.Y6(c))))};
_.r.computeCenterHidden=function(){var c;return this.data&&!((c=this.data.searchbox)==null?0:c.fusionSearchboxRenderer)};
_.r.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.g1(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.r.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.r.onWatchScroll=function(c){this.watchPageScrollTop=c.detail||0;this.updateMastheadBackgroundOpacity()};
_.r.onFullscreenChangeAction=function(c){c||(this.watchPageScrollTop=0);this.fullscreen=c;this.updateMastheadBackgroundOpacity()};
_.r.onSetTheaterModeEnabled=function(c){this.theater=c.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.r.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.r.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.r.setBackgroundOpacity=function(c){c=this.calculateBackgroundOpacity(c);this.background.style.opacity=""+c};
_.r.calculateBackgroundOpacity=function(c){var f=this.theater&&this.cinematicTheaterMode?.6:0,d=this.hostElement.clientHeight/2;return Math.min(Math.max(c,0),d)/d*(1-f)+f};
_.r.shouldShowCinematicMastHead=function(){var c=_.F("kevlar_watch_grid")&&!_.F("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(c||this.pageDarkTheme)};
_.r.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.r.focusGuide=function(){this.guideButton.focus()};
_.r.onGuideToggleTap=function(){_.CZ(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.r.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.r.onGuideToggleHover=function(){_.CZ(this.hostElement,"yt-guide-hover")};
_.r.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.r.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.r.closeOnOutsideClickCondition=function(c){for(c=_.x0(c);c[0];){var f=c.shift();if(f instanceof Element&&f.id==="kbd")return!1}return!0};
_.r.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.r.pausePlayer=function(){var c;(c=_.Ca())==null||c.pause();this.pauseMiniplayer()};
_.r.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var c;(c=_.ql().resolve(_.yN).getPlayerElement())==null||c.pause()}};
_.r.isMiniplayerActive=function(){return _.ql().resolve(_.yN).isMiniplayerActive()};
_.r.updateNarrowFromBinding=function(c){this.narrow=c.detail.value};
_.r.onYtSendFeedbackAction=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.r.registerWithViewTransitionManager=function(){Phq(_.ql().resolve(_.F0),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.ci.Object.defineProperties(rQ.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 c;return(c=this.data)==null?void 0:c.voiceSearchButton}}}});
rQ.prototype.narrowChanged=rQ.prototype.narrowChanged;rQ.prototype.onWatchPageChange=rQ.prototype.onWatchPageChange;rQ.prototype.onRendererStamperFinished=rQ.prototype.onRendererStamperFinished;rQ.prototype.dataChanged=rQ.prototype.dataChanged;rQ.prototype.onDarkChanged=rQ.prototype.onDarkChanged;_.y([_.Q(_.aJ),_.D("design:type",Object)],rQ.prototype,"ironResizableBehavior",void 0);_.y([_.Q(_.FKG),_.D("design:type",Object)],rQ.prototype,"ytdExpandableInputBehavior",void 0);
_.y([_.Q(_.I0.YtdGuideStateAwareBehavior),_.D("design:type",Object)],rQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],rQ.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],rQ.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.wt),_.D("design:type",Object)],rQ.prototype,"ytdReduxBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],rQ.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],rQ.prototype,"narrow",void 0);_.y([_.L(),_.D("design:type",Object)],rQ.prototype,"logoType",void 0);_.y([_.L(),_.D("design:type",Boolean)],rQ.prototype,"voiceEnabled",void 0);
_.y([_.L(),_.D("design:type",Object)],rQ.prototype,"menuStrings",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],rQ.prototype,"dark",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rQ.prototype,"pageDarkTheme",void 0);_.y([_.L(),_.D("design:type",Object)],rQ.prototype,"watchPageScrollTop",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.WZG}),_.D("design:type",Boolean)],rQ.prototype,"isWatchPage",void 0);
_.y([_.L({reflectToAttribute:!0,selector:_.DI4}),_.D("design:type",Boolean)],rQ.prototype,"isShortsPage",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rQ.prototype,"theater",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rQ.prototype,"fullscreen",void 0);_.y([_.L({reflectToAttribute:!0,selector:_.PjM}),_.D("design:type",String)],rQ.prototype,"frostedGlassMode",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],rQ.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.y([_.L(),_.D("design:type",Object)],rQ.prototype,"ytSearchboxFocused",void 0);_.y([_.YE("#buttons > *"),_.D("design:type",Array)],rQ.prototype,"buttons",void 0);_.y([_.YE("ytd-button-renderer"),_.D("design:type",Array)],rQ.prototype,"buttonRenderers",void 0);_.y([_.AY("#background"),_.D("design:type",HTMLDivElement)],rQ.prototype,"background",void 0);
_.y([_.AY("#guide-button"),_.D("design:type",Object)],rQ.prototype,"guideButton",void 0);_.y([_.AY("#logo"),_.D("design:type",Object)],rQ.prototype,"logo",void 0);_.y([_.L({computed:"computeButtonOverride(dark)"}),_.D("design:type",Object)],rQ.prototype,"buttonOverrides",void 0);_.y([_.ba("dark"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rQ.prototype,"onDarkChanged",null);_.y([_.L({value:function(){return this.onVoiceTap.bind(this)}}),
_.D("design:type",Function)],rQ.prototype,"boundOnTapVoiceButton",void 0);_.y([_.L(),_.D("design:type",Object)],rQ.prototype,"topbarIsAboveChipbar",void 0);_.y([_.L(),_.D("design:type",String),_.D("design:paramtypes",[])],rQ.prototype,"guideIcon",null);_.y([_.S("voiceEnabled"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],rQ.prototype,"shouldShowVoiceSearchButton",null);_.y([_.S("data"),_.D("design:type",Object),_.D("design:paramtypes",[])],rQ.prototype,"voiceSearchButton",null);
_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rQ.prototype,"dataChanged",null);_.y([_.Ta("yt-rendererstamper-finished"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rQ.prototype,"onRendererStamperFinished",null);_.y([_.ba("isWatchPage"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rQ.prototype,"onWatchPageChange",null);
_.y([_.ba("narrow"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],rQ.prototype,"narrowChanged",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-masthead"})],rQ);
_.h(rQ,"ytd-masthead",function(){if(oiC!==void 0)return oiC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return oiC=c},{mode:_.lP("kevlar_poly_si_batch_j036")?1:2});var sPS;var Bv3={},iAr={},TvC={},mb3={},HA3=(mb3.OFFLINE=(Bv3["publicytnetworkstatus-online"]="BACK_ONLINE",Bv3),mb3.ONLINE=(iAr["publicytnetworkstatus-offline"]="OFFLINE",iAr),mb3.BACK_ONLINE=(TvC["publicytnetworkstatus-offline"]="OFFLINE",TvC.TIMER_TRIGGER="ONLINE",TvC),mb3),Cb=function(){var c=_.z.apply(this,arguments)||this;c.currentState="ONLINE";c.scheduledJobId=0;c.bannerString="";c.bannerVe=null;c.networkStatusManagerInstance=new _.I7;return c};
_.K(Cb,_.z);_.r=Cb.prototype;_.r.attached=function(){var c=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){c.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){c.stateChangeHandler("publicytnetworkstatus-offline")})};
_.r.detached=function(){var c=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){c.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){c.stateChangeHandler("publicytnetworkstatus-offline")})};
_.r.enterState=function(c){var f=this;this.scheduledJobId&&_.a7.cancelJob(this.scheduledJobId);c==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):c==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.HO("NO_INTERNET_CONNECTION",void 0,"No internet connection")):c==="BACK_ONLINE"&&(this.bannerString=_.HO("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Em(_.a7,function(){f.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=c};
_.r.stateChangeHandler=function(c){(c=HA3[this.currentState][c])&&this.enterState(c)};
_.r.logVisibility=function(c){var f=_.X2();this.createBannerVe(c);f&&this.bannerVe&&(c?_.Ic(f,[this.bannerVe]):_.PO(f,[this.bannerVe]))};
_.r.createBannerVe=function(c){!this.bannerVe&&c&&(this.bannerVe=_.m_(37929),_.ij(_.bP(),this.bannerVe))};
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",String)],Cb.prototype,"currentState",void 0);_.y([_.L(),_.D("design:type",Object)],Cb.prototype,"scheduledJobId",void 0);_.y([_.L(),_.D("design:type",Object)],Cb.prototype,"bannerString",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Cb);
_.h(Cb,"ytd-network-status-banner",function(){if(sPS!==void 0)return sPS;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return sPS=
c},{mode:1});var AXC;var gQ=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};c.hidden=!0;c.frostedGlass=_.F("web_frosted_glass");return c};
_.K(gQ,_.z);gQ.prototype.computeHidden=function(c){return c&&c.status?!1:!0};
gQ.prototype.handleUpdatePermissionRoleCommand=function(c){if(c=_.b(c,_.rBo))if(c=_.b(c.renderer,_.Mwy))this.data=c};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],gQ.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],gQ.prototype,"componentBehavior",void 0);_.y([_.L({value:!0,computed:"computeHidden(data)"}),_.D("design:type",Object)],gQ.prototype,"hidden",void 0);_.y([_.L(),_.D("design:type",Object)],gQ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],gQ.prototype,"frostedGlass",void 0);
_.y([_.v({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],gQ);
_.h(gQ,"ytd-permission-role-bottom-bar-renderer",function(){if(AXC!==void 0)return AXC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return AXC=c},{mode:1});var YyQ;var FQC;var Fti={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var kU=function(){return _.z.apply(this,arguments)||this};
_.K(kU,_.z);_.r=kU.prototype;_.r.attached=function(){this.JSC$20589_scroller&&(this.JSC$20589_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20589_scroller.attached&&typeof this.JSC$20589_scroller.attached==="function"&&this.JSC$20589_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(d){d.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var c=_.r1(this.hostElement);c.querySelector("tp-yt-paper-radio-group").selected="";var f=c.querySelector("#reason-text");f&&(f.value="");c.querySelector("#description-text").value=""}};
_.r.canSubmit=function(c,f){_.CZ(this.hostElement,"yt-invalidate-popup-tabbables");return!(c&&f)};
_.r.onCancel=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.r.onSubmit=function(){var c=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(M){return M.active}).map(function(M){return M.innerText.trim()}),f=this.hostElement.querySelector("tp-yt-paper-radio-group"),d=f.selectedItem,q=d.name;
d=d.innerText.trim();var Z=f.querySelector("#reason-text");f=void 0;Z&&(f=Z.value);(Z=this.descriptionText.value)&&(Z=Z.trim());tq3(this.data.searchQuery,c,q,d,Z,f);_.gS(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.r.sendFormSubmitToast=function(){var c=_.dD(_.HO("SBOX_INAPPROPRIATE_TOAST"));_.gS(this.hostElement,"yt-open-popup-action",[c,this])};
_.r.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(c){return c.active})};
_.r.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
kU.prototype.onIronSelect=kU.prototype.onIronSelect;kU.prototype.onIronChange=kU.prototype.onIronChange;kU.prototype.dataChanged=kU.prototype.dataChanged;_.y([_.L(),_.D("design:type",Object)],kU.prototype,"data",void 0);_.y([_.L({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.D("design:type",Boolean)],kU.prototype,"submitDisabled",void 0);_.y([_.L(),_.D("design:type",Boolean)],kU.prototype,"suggestionSelected",void 0);
_.y([_.L(),_.D("design:type",Boolean)],kU.prototype,"catagorySelected",void 0);_.y([_.AY("#scroller"),_.D("design:type",Object)],kU.prototype,"JSC$20589_scroller",void 0);_.y([_.AY("#description-text"),_.D("design:type",Object)],kU.prototype,"descriptionText",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kU.prototype,"dataChanged",null);
_.y([_.Ta("iron-change"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kU.prototype,"onIronChange",null);_.y([_.Ta("iron-select"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],kU.prototype,"onIronSelect",null);_.y([_.v({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],kU);
_.h(kU,"ytd-search-suggestion-report-dialog",function(){if(FQC!==void 0)return FQC;var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);return FQC=c},{mode:1});var OE=function(c){var f=c.openPopupAction;var d=c.target;var q=c.container;var Z=c.popupContainerConfig;var M=c.getElement;c=c.removeWhenClosed===void 0?!1:c.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=f;this.target=d;this.container=q;this.popupContainerConfig=Z;this.getElement=M;this.JSC$20595_popupConfig=this.popupContainerConfig.JSC$19730_popupConfig[this.openPopupAction.popupType];this.rendererName=(f=this.getName())?_.zcG(f,knJ(this.popupContainerConfig,
f)):"";_.F("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=c);this.createPopup()};
OE.prototype.updatePopup=function(c){this.openPopupAction=c;this.JSC$20595_popupConfig=this.popupContainerConfig.JSC$19730_popupConfig[this.openPopupAction.popupType];t$C(this);_.F("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
OE.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var EFC=function(c,f,d){(f=f&&c.JSC$20595_popupConfig.narrowProperties?c.JSC$20595_popupConfig.narrowProperties:c.JSC$20595_popupConfig.properties)&&d!==void 0&&(f.isAriaModal=d);bAG(c,f);c.isRtl()&&bAG(c,c.JSC$20595_popupConfig.rtlProperties);KQS(c)};
OE.prototype.createPopup=function(){var c=this.JSC$20595_popupConfig.component;if(this.popupContent=nFc(this,this.rendererName)){if(c){this.popup=nFc(this,c);var f=this.popupContent;_.F("web_enable_wrapper_for_cow_component_in_popup")&&(f=document.createElement("div"),f.appendChild(this.popupContent));_.F("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20595_popupConfig.slotName&&f.setAttribute("slot",this.JSC$20595_popupConfig.slotName);c=this.popup;var d=this.container.tagName.toLowerCase(),
q=_.GX(f);_.kHz(_.f$(c),_.qh(f,d,q));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.F("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.r1(this.container).appendChild(this.popup)}};
var t$C=function(c){var f,d,q=(f=c.openPopupAction.accessibilityData)==null?void 0:(d=f.accessibilityData)==null?void 0:d.label;q&&(c.popup.ariaLabel=q);var Z;((Z=c.popupContent.polymerController)!=null?Z:c.popupContent).data=(0,_.zV.unsafeClone)(c.openPopupAction.popup[c.getName()]);c.popupContent.duration=$bD(c);c.popupContent.positionType=c.openPopupAction.position;var M=c.openPopupAction.properties;M&&Object.keys(M).forEach(function(g){c.popupContent[g]=M[g]})},bAG=function(c,f){if(f)for(var d=
_.C(Object.keys(f)),q=d.next();!q.done;q=d.next())q=q.value,c.popup[q]=f[q]},KQS=function(c){if(c.openPopupAction.position){var f=c.JSC$20595_popupConfig.positionalProperties&&c.JSC$20595_popupConfig.positionalProperties[c.openPopupAction.position],d=c.JSC$20595_popupConfig.rtlPositionalProperties&&c.JSC$20595_popupConfig.rtlPositionalProperties[c.openPopupAction.position];
f=c.isRtl()&&d?d:f;f.shiftedHorizontalOffset&&(d=c.popup.style.display,c.popup.style.display="block",c.popupContent&&c.popup.positionTarget&&c.popupContent.clientWidth>c.popup.positionTarget.clientWidth&&(f.horizontalOffset=c.popup.positionTarget.clientWidth/2-f.shiftedHorizontalOffset),c.popup.style.display=d);bAG(c,f)}},QPc=function(c,f){if(f)for(var d=_.C(Object.keys(f)),q=d.next();!q.done;q=d.next())q=q.value,c.popup.style[q]=f[q]};
OE.prototype.getName=function(){return _.aw(this.openPopupAction.popup,"renderer")||_.aw(this.openPopupAction.popup,"dialog")||_.aw(this.openPopupAction.popup,"model")||void 0};
var $bD=function(c){c=c.openPopupAction.durationHintMs;return c===0?c:Math.max(4E3,c||4E3)};
OE.prototype.isRtl=function(){return _.hk("HTML_DIR")==="rtl"};
var nFc=function(c,f){c=c.getElement(f,c.target);c==null&&_.u6(new _.KD("popup getElement returned null",f));return c};var SyJ={};
SyJ.YtPopupContainerBehavior=[_.N2.YtComponentBehavior,_.Cy.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_);_.M9(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.rS(this.hostElement)},
closePopup:function(c){var f=this.createCacheKey(void 0,c);this.popups_[f]&&this.handleClosePopupAction_(void 0,c)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.a7.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.a7.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(c){c.opened&&c.keepBelowPlayer&&this.ensurePopupBelowPlayer(c)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var c in this.popups_){var f=this.popups_[c];if(f.popup.scrollAction==="refit"){var d=f.popup.positionTarget.getBoundingClientRect(),q=f.popup;d=d.top;var Z=f;if(!Z.naturalHeight){Z.popup.hidden=!1;Z.popup.style.position="fixed";Z.popup.style.top="0px";Z.popup.style.left="0px";var M=Z.popup.getBoundingClientRect();Z.naturalHeight=M.bottom-M.top;Z.popup.refit()}q.hidden=!(d>=Z.naturalHeight+60);f.popupContent.clientHeight===0&&f.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(c){this.popupContainerConfig=c},
handleOpenPopupAction:function(c,f){var d=c.openPopupAction,q=_.ql().resolve(_.dx(_.tO))&&d.popupType==="TOAST";q&&!d.uniqueId&&(d.uniqueId=_.Ix());if(!_.F("popup_container_parent_target_killswitch")){var Z;f=(Z=this.getParentTarget(f))!=null?Z:f}var M=this.ensurePopup_(d,f);return new _.i6(function(g){M.then(function(O){if(!O)return g();this.maybeCreateNarrowMediaQuery_();var l=this.createCacheKey(O.rendererName,O.openPopupAction.uniqueId);if(d.showOncePerUniqueId){if(this.shownPopupKeys_.has(l))return g();
this.shownPopupKeys_.add(l)}l=this.popups_[l];var m=!(!l||!l.openPopupAction.beReused);m=!!d.reusePopup||m;if(O.popup.opened&&!m){q&&!O.openPopupAction.replacePopup||this.handleClosePopupAction_(O.rendererName,O.openPopupAction.uniqueId);m=d.popupType==="DIALOG"&&!_.F("popup_container_dialog_reopen_killswitch");if(!q&&!m&&l&&l.target==f&&!O.openPopupAction.replacePopup)return g();_.ol(O.popup,function(){this.completeOpenPopupAction_(d,f,O);g()}.bind(this))}else O.popup.opened?O.updatePopup(d):this.completeOpenPopupAction_(d,
f,O),g()}.bind(this))}.bind(this))},
getParentTarget:function(c){if(c&&c instanceof HTMLElement)for(var f=_.C(Object.entries(this.popups_)),d=f.next();!d.done;d=f.next())if(d=_.C(d.value),d.next(),d=d.next().value,d.popup.tagName==="TP-YT-IRON-DROPDOWN"&&c.closest(d.rendererName))return d.target},
completeOpenPopupAction_:function(c,f,d){d.updatePopup(c);c=this.narrowMediaQuery_.queryMatches;var q=this.isAriaModal;d.target=f;var Z;f=((Z=d.target.polymerController)!=null?Z:d.target).popupPositionTarget||d.target;d.JSC$20595_popupConfig.targetContainer&&(f=d.container);d.popup.positionTarget=f;d.popupContent.positionTarget=f;KQS(d);d.JSC$20595_popupConfig.forceFocus&&(d.popupContent.style.outline="none");d.popupContent.tabIndex=-1;d.JSC$20595_popupConfig.narrowProperties&&(d.popup.style.position=
"static");d.JSC$20595_popupConfig.preventAutonav&&d.popup.setAttribute("prevent-autonav",!0);d.JSC$20595_popupConfig.forceCloseOnOutsideClick&&d.popup.setAttribute("force-close-on-outside-click",!0);EFC(d,c,q);QPc(d,d.JSC$20595_popupConfig.styles);d.isRtl()&&QPc(d,d.JSC$20595_popupConfig.rtlStyles);if(!d.openPopupAction.shouldStopParentSignal){var M;Z=(M=d.target.polymerController)!=null?M:d.target;(d.popupContent.startForwardingEvents||d.popupContainerConfig.forwardingEnabledPopups.has(d.rendererName))&&
Z.parentComponent!==d.popupContent&&d.popupContent!==d.target&&d.target!==document.body&&(d.popupContent.startForwardingEvents?d.popupContent.startForwardingEvents(d.popupContainerConfig.forwardedEvents,d.target):(d.JSC$20595_eventForwarder||(d.JSC$20595_eventForwarder=new _.kR(d.popupContent)),d.JSC$20595_eventForwarder.start(d.popupContainerConfig.forwardedEvents,d.target)))}d=d.popup;d.addEventListener("iron-overlay-opened",_.ia(this,this.onPopupIronOverlayOpened_));d.addEventListener("iron-overlay-closed",
_.ia(this,this.onPopupIronOverlayClosed_));d.addEventListener("iron-overlay-canceled",_.ia(this,this.onPopupIronOverlayCanceled_));d.addEventListener("yt-refit",_.ia(this,this.refitPopup_));d.addEventListener("yt-invalidate-popup-tabbables",_.ia(this,this.handleInvalidatePopupTabbables_));d.open()},
getPopupDurationMs_:function(c){return c.durationHintMs===0?c.durationHintMs:Math.max(4E3,c.durationHintMs||4E3)},
handleClosePopupAction_:function(c,f){var d=_.F("web_popup_cache_key_killswitch")||!!f;if(c||d){var q=this.createCacheKey(c,f);c=(c=this.popups_[q])&&c.popup}else c=_.ILH(_.IJ);if(c&&c.close){if(f=_.ql().resolve(_.dx(_.lw)))c.restoreFocusOnClose=f.isKeyBoardInUse();c.close();this.removePopup_(c,q)}},
handleClosePopupCommand_:function(c){c.closePopupCommand&&c.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,c.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(c){var f={},d;for(d in this.popups_)if(f={key$jscomp$1184:f.key$jscomp$1184},f.key$jscomp$1184=d,!c||!c.some(function(M){return function(g){return g==M.key$jscomp$1184}}(f))){var q=this.popups_[f.key$jscomp$1184],Z=q.popup;
_.ql().resolve(_.dx(_.tO))&&q.openPopupAction.popupType==="TOAST"||(Z&&Z.close&&Z.close(),this.removePopup_(Z,f.key$jscomp$1184))}},
handleClosePopupsAction_:function(c){c.forEach(function(f){var d=this.popups_[f];d&&((d=d.popup)&&d.close&&d.close(),this.removePopup_(d,f))}.bind(this))},
handleGetPopupOpenedAction_:function(c,f){return(f=this.createCacheKey(c,f))&&this.popups_[f]?this.popups_[c].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var c=[],f;for(f in this.popups_){var d=this.popups_[f];d.popup.opened&&c.push(d)}return c},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(c,f){_.F("ytpopup_disable_default_html_caching")&&c&&c.removeWhenClosed&&(_.r1(this.hostElement).removeChild(c),f&&this.popups_[f]&&delete this.popups_[f])},
shouldReusePopup_:function(c){return!(!c||!c.reusePopup)||!(!c||!c.beReused)},
ensurePopup_:function(c,f){this.maybeCreateNarrowMediaQuery_();var d=_.aw(c.popup,"renderer")||_.aw(c.popup,"dialog")||_.aw(c.popup,"model");if(!d)return _.sX();d=_.zcG(d,knJ(this.popupContainerConfig,d));return _.sX(this.getAndMaybeCreatePopup_(c,d,f))},
getAndMaybeCreatePopup_:function(c,f,d){var q=this.createCacheKey(f,c.uniqueId);if(this.popups_[q])return this.popups_[q];c=new OE({openPopupAction:c,target:d,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(f)});return this.popups_[q]=c},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(c){return _.F("ytpopup_disable_default_html_caching")?c&&c.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",_.ia(this,this.openPopupQueryMatchesChanged_)),_.r1(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(c){c=c.detail.value;for(var f in this.popups_)EFC(this.popups_[f],c)},
onPopupIronOverlayClosed_:function(c){var f=c.currentTarget,d=_.LHz(f);d=d.length>0?d[0]:f;if(d.is!=="ytd-reel-watch-while-dialog-renderer"||c.target.is!=="tp-yt-iron-dropdown"){c.detail.popup=f;c.detail.popupRenderer=d;var q,Z={context:{openingElement:((q=this.popups_[(d==null?void 0:d.is)||""])==null?void 0:q.target)||void 0}};Object.assign(Z,c.detail);var M;_.CZ((M=d.hostElement)!=null?M:d,"yt-popup-closed",Z);f.removeEventListener("yt-refit",_.ia(this,this.refitPopup_));f.removeEventListener("yt-invalidate-popup-tabbables",
_.ia(this,this.handleInvalidatePopupTabbables_));f.removeEventListener("iron-overlay-canceled",_.ia(this,this.onPopupIronOverlayCanceled_));f.removeEventListener("iron-overlay-closed",_.ia(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(f)}},
onPopupIronOverlayCanceled_:function(c,f){var d=c.currentTarget,q=_.LHz(d);q=q.length>0?q[0]:d;if(q.is!=="ytd-reel-watch-while-dialog-renderer"||c.target.is!=="tp-yt-iron-dropdown"){var Z;_.CZ((Z=q.hostElement)!=null?Z:q,"yt-popup-canceled",c.detail);Z=f?_.x0(f):null;(!f||["click","tap"].includes(f.type))&&!d.hasAttribute("force-close-on-outside-click")&&d.positionTarget&&Z&&Z.includes(d.positionTarget)&&c.preventDefault();d.restoreFocusOnClose=_.Kn.keyboardEventMatchesKeys(f,"esc")}},
onPopupIronOverlayOpened_:function(c){c=c.currentTarget;var f=_.LHz(c);f=f.length>0?f[0]:c;var d,q;_.CZ((d=f.hostElement)!=null?d:f,"yt-popup-opened",(q=f.hostElement)!=null?q:f);c.keepBelowPlayer&&(this.ensurePopupBelowPlayer(c,!0),this.dynamicallyPositionedElements_.add(c));d=_.ql().resolve(_.dx(_.lw));q=!!f.querySelector("#toast");d&&d.isKeyBoardInUse()&&!q&&(typeof f.focusFirstItem==="function"?f.focusFirstItem():(f=_.DCy(c),f.length&&f[0].focus()));c.removeEventListener("iron-overlay-opened",
_.ia(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(c){c=c.currentTarget;c.refit&&c.refit()},
refitPopups_:function(){for(var c in this.popups_)this.popups_[c].refit()},
handleInvalidatePopupTabbables_:function(c){c=c.currentTarget;c.invalidateTabbables&&c.invalidateTabbables()},
createCacheKey:function(c,f){return _.F("web_popup_cache_key_killswitch")?f?c+"#"+f:c:f?"#"+f:c},
openSheet:function(c,f){var d=c==null?void 0:c.openPopupActionCommand;!d&&(c==null?0:c.viewModel)&&(d={openPopupAction:{popup:{sheetViewModel:c.viewModel},popupType:"CONTEXTUAL_SHEET"}});d&&this.handleOpenPopupAction(d,f)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var c=this;return _.k(function(f){return f.return(c.handleGetOpenedPopupsAction_().filter(function(d){var q;return((q=d.openPopupAction)==null?void 0:q.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(c,f,d){if(_.F("web_dialog_utils_killswitch")){var q=c==null?void 0:c.openPopupActionCommand,Z=(d==null?0:d.ariaLabel)?{accessibilityData:{accessibilityData:{label:d.ariaLabel}}}:void 0;!q&&(c==null?0:c.viewModel)&&(q={openPopupAction:Object.assign({},{popup:{dialogViewModel:c.viewModel},popupType:(d==null?0:d.isModal)?"MODAL":"DIALOG"},Z&&Z)});q&&this.handleOpenPopupAction(q,f)}else{if(Z=c==null?void 0:c.viewModel){var M=d=d===void 0?{}:d;d=M.ariaLabel;Z={popup:{dialogViewModel:Z},
popupType:M.isModal?"MODAL":"DIALOG"};M={accessibilityData:{label:d}};d&&(Z.accessibilityData=M);Z={openPopupAction:Z}}else Z=void 0;if(Z=(q=Z)!=null?q:c==null?void 0:c.openPopupActionCommand)this.isAriaModal=_.F("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Z,f)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var c=this;return _.k(function(f){return f.return(c.handleGetOpenedPopupsAction_().filter(function(d){var q;return((q=d.openPopupAction)==null?void 0:q.popupType)==="DIALOG"}).length>0)})}}];var LQS;var zdF;var JXc=_.pp(["about:blank"]),l8=function(){var c=_.z.apply(this,arguments)||this;c.isMuted=!1;c.pageLoadTimeoutId=void 0;return c};
_.K(l8,_.z);_.r=l8.prototype;_.r.dataChanged=function(){var c=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var f=this.data.url,d=_.Vm(f);_.F("enable_yt_ata_iframe_authuser")?(d=_.Vm(f),_.NS(this.iframe,bxc(d))):_.NS(this.iframe,d);this.pageLoadTimeoutId=_.Em(_.zd(),function(){return void c.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.jj({destination:window,iframe:this.iframe,origin:_.vSj(d.toString()),channelName:"ataiframe",onMessage:_.DFe(itC,function(q){TUF(q.data)?(q=_.Dp(q.data,1,_.oK,_.jQ()),q.length!==1?_.u6(Error("ql")):(q=q[0],q===3?(c.isMuted=!0,c.logStateChanged({adMuteRequested:!0})):q===1&&c.close())):_.u6(Error("rl"))}),
onEstablished:function(){c.cancelPageLoadTimeout();c.logStateChanged({pageLoadSucceeded:!0})}})}};
_.r.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.zd().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.r.logStateChanged=function(c){var f;if((f=this.data)==null?0:f.trackingParams)c={adsClientData:{aboutThisAdData:c}},_.bP().stateChanged(this.data.trackingParams,c)};
_.r.close=function(){_.gS(this.hostElement,"yt-close-popup-action",[this.is])};
_.r.handlesPopupClosed=function(c,f){var d=this,q,Z;return _.k(function(M){if(M.nextAddress==1)return _.hk("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.gS(d.hostElement,"on-about-this-ad-popup-closed",[d.isMuted,f]),M.jumpTo(0)):c&&KtC(c)?M.yield(Ep3(c),4):(d.isMuted&&_.gS(d.hostElement,"yt-mute-ad-action",[d.is,d]),M.jumpTo(0));if(q=M.yieldResult){var g=Z=new _.Sz(q),O=d.isMuted;g.getOptions().includes("onAboutThisAdPopupClosed")?_.oNH(g,"onAboutThisAdPopupClosed",{isMuted:O,layoutId:f}):_.cZ("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Fm(M)})};
_.r.onPopupClosed=function(c){var f=this,d,q;return _.k(function(Z){d=_.CG(JXc);_.NS(f.iframe,d);f.cancelPageLoadTimeout();if(!f.data)return Z.jumpTo(0);f.ytRendererBehavior.markDirty();q=c.detail.context.openingElement;return Z.yield(f.handlesPopupClosed(q,f.data.layoutId),0)})};
_.r.detached=function(){this.cancelPageLoadTimeout()};
_.r.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
l8.prototype.onPopupClosed=l8.prototype.onPopupClosed;l8.prototype.dataChanged=l8.prototype.dataChanged;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.y([_.AY("#iframe"),_.D("design:type",HTMLIFrameElement)],l8.prototype,"iframe",void 0);_.y([_.L(),_.D("design:type",Object)],l8.prototype,"data",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],l8.prototype,"dataChanged",null);
_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype",Promise)],l8.prototype,"onPopupClosed",null);_.y([_.vj({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],l8);
_.h(l8,"yt-about-this-ad-renderer",function(){if(zdF===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;LQS===void 0&&(LQS=document.createElement("template"));var q=LQS;d.call(f,q.content.cloneNode(!0),c.content.firstChild);zdF=c}c=zdF;return c},{mode:2});var acG;var V$q;var sE=function(c){var f=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=f.message;"stack"in f&&(this.stack=f.stack);this.maxFileSizeMB=c;Object.setPrototypeOf(this,sE.prototype)};
_.K(sE,Error);var XnG=function(c,f){var d=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=d.message;"stack"in d&&(this.stack=d.stack);this.minWidth=c;this.minHeight=f;Object.setPrototypeOf(this,XnG.prototype)};
_.K(XnG,Error);var unF=function(c){this.requirements=c;this.JSC$20623_maxFileSize=c.maxFileSizeMB*1024*1024},vF3=function(c,f){if(f.size>c.JSC$20623_maxFileSize)throw new sE(c.requirements.maxFileSizeMB);
};var hdp=function(c,f){this.canvas=c;this.imageEditorBuilder=f};
hdp.prototype.addEventListeners=function(c){var f=function(Z){wnS(c,Z)};
this.JSC$20629_mouseDownEvent=f;var d=function(Z){yX3(c,Z)};
this.JSC$20629_mouseMoveEvent=d;var q=function(){WQp(c)};
this.JSC$20629_mouseUpEvent=q;this.canvas.addEventListener("mousedown",f);this.canvas.addEventListener("mousemove",d);document.addEventListener("mouseup",q)};
hdp.prototype.removeEventListeners=function(){this.JSC$20629_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20629_mouseDownEvent);this.JSC$20629_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20629_mouseMoveEvent);this.JSC$20629_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20629_mouseUpEvent)};
var Dbq=function(c,f){c.removeEventListeners();return new Promise(function(d){var q=new Image;q.crossOrigin="anonymous";q.onload=function(){var Z=c.imageEditorBuilder(c.canvas,q);c.addEventListeners(Z);d(Z)};
q.src=f})},Bc=function(c,f,d,q,Z,M,g,O){this.canvas=c;
this.image=f;this.requiredRatio=d;this.minImageCropDimension=q;this.minOutputImageResolution=Z;this.component=M;this.styleFocusedCorner=O===void 0?!0:O;this.action=2;this.focusedCorner=this.resizeCorner=0;c=this.canvas.getContext("2d");if(!c)throw Error("sl");this.ctx=c;this.canvasMargin=g!=null?g:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;g=this.image;c=this.canvasInnerWidth/g.width;g.height*c>912&&(c=g.width/g.height*912/g.width);g=c;this.scaledImageWidth=this.canvas.width%2?
$V3(this.image.width*g):npS(this.image.width*g);this.scaledImageHeight=Math.round(this.image.height*g);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20632_overlayMarginBottom=this.JSC$20632_overlayMarginTop=this.canvasMargin;this.JSC$20632_overlayMarginRight=this.JSC$20632_overlayMarginLeft=this.horizontalMargin;this.JSC$20632_overlayWidth=this.scaledImageWidth;this.JSC$20632_overlayHeight=this.scaledImageHeight;
c=this.image.width/this.image.height;c>this.requiredRatio?(this.JSC$20632_overlayWidth=this.canvas.width%2?$V3(this.scaledImageHeight*this.requiredRatio):npS(this.scaledImageHeight*this.requiredRatio),this.JSC$20632_overlayMarginRight=this.JSC$20632_overlayMarginLeft=(this.canvas.width-this.JSC$20632_overlayWidth)/2):c<this.requiredRatio&&(this.JSC$20632_overlayHeight=this.canvas.height%2?$V3(this.scaledImageWidth/this.requiredRatio):npS(this.scaledImageWidth/this.requiredRatio),this.JSC$20632_overlayMarginBottom=
this.JSC$20632_overlayMarginTop=(this.canvas.height-this.JSC$20632_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*g,this.scaledImageWidth);edc(this)};
Bc.prototype.getContext=function(){return this.ctx};
var wnS=function(c,f){f={x:Math.round(f.pageX-c.canvas.getBoundingClientRect().left),y:Math.round(f.pageY-c.canvas.getBoundingClientRect().top)};c.dragStart=f;Nvp(c,f)!==0?(c.action=1,IcH(c,f),c.resizeCorner=Nvp(c,f)):f.x>c.JSC$20632_overlayMarginLeft&&f.x<c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth&&f.y>c.JSC$20632_overlayMarginTop&&f.y<c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight&&(c.action=0)},Pzc=function(c,f){switch(f){case 1:return{x:c.JSC$20632_overlayMarginLeft,
y:c.JSC$20632_overlayMarginTop};case 2:return{x:c.JSC$20632_overlayMarginLeft,y:c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight};case 3:return{x:c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth,y:c.JSC$20632_overlayMarginTop};case 4:return{x:c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth,y:c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight};default:throw Error("tl");}},Ubc=function(c,f){if(c.focusedCorner!==0){c.dragStart=Pzc(c,c.focusedCorner);
c.action=1;c.resizeCorner=c.focusedCorner;var d=c.dragStart.x,q=c.dragStart.y;switch(f){case 0:c.focusedCorner===1||c.focusedCorner===4?(d-=10,q-=10):(d-=10,q+=10);break;case 1:c.focusedCorner===1||c.focusedCorner===4?(d+=10,q+=10):(d+=10,q-=10);break;case 2:d=c.focusedCorner===1||c.focusedCorner===4?d-10:d+10;q-=10;break;case 3:d=c.focusedCorner===1||c.focusedCorner===4?d+10:d-10;q+=10;break;default:throw Error("ul");}RdC(c,{x:d,y:q});edc(c);c.action=2;c.dragStart=void 0}},yX3=function(c,f){f={x:Math.round(f.pageX-
c.canvas.getBoundingClientRect().left),
y:Math.round(f.pageY-c.canvas.getBoundingClientRect().top)};IcH(c,f);switch(c.action){case 1:RdC(c,f);break;case 0:c.dragStart&&(c.JSC$20632_overlayMarginLeft=Math.max(c.horizontalMargin,Math.min(c.JSC$20632_overlayMarginLeft-(c.dragStart.x-f.x),c.horizontalMargin+c.scaledImageWidth-c.JSC$20632_overlayWidth)),c.JSC$20632_overlayMarginRight=c.canvas.width-c.JSC$20632_overlayMarginLeft-c.JSC$20632_overlayWidth,c.JSC$20632_overlayMarginTop=Math.max(c.canvasMargin,Math.min(c.JSC$20632_overlayMarginTop-
(c.dragStart.y-f.y),c.scaledImageHeight-c.JSC$20632_overlayHeight+c.canvasMargin)),c.JSC$20632_overlayMarginBottom=c.canvas.height-(c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight));break;default:return}edc(c);c.dragStart=f},WQp=function(c){c.action=2;
c.dragStart=void 0;document.body.style.cursor="auto"},IcH=function(c,f){switch(Nvp(c,f)){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:c.action!==1&&(document.body.style.cursor="auto")}},Nvp=function(c,f){var d=c.JSC$20632_overlayMarginLeft-5,q=c.JSC$20632_overlayMarginTop-5,Z=c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth-5;
c=c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight-5;return pnC(f,{x:d,y:q})?1:pnC(f,{x:Z,y:q})?3:pnC(f,{x:d,y:c})?2:pnC(f,{x:Z,y:c})?4:0},pnC=function(c,f){return c.x>=f.x&&c.x<=f.x+10&&c.y>=f.y&&c.y<=f.y+10},RdC=function(c,f){if(c.dragStart)switch(c.resizeCorner){case 2:Math.abs((c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth-f.x)/(f.y-c.JSC$20632_overlayMarginTop))>=c.requiredRatio?xbq(c,f.x):oFD(c,f.y);
break;case 1:Math.abs((c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth-f.x)/(c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight-f.y))>=c.requiredRatio?GpC(c,f.x):oFD(c,f.y);break;case 4:Math.abs((f.x-c.JSC$20632_overlayMarginLeft)/(f.y-c.JSC$20632_overlayMarginTop))>=c.requiredRatio?xbq(c,f.x):cZc(c,f.y);break;case 3:Math.abs((f.x-c.JSC$20632_overlayMarginLeft)/(c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight-f.y))>=c.requiredRatio?GpC(c,f.x):cZc(c,f.y);break;default:throw Error("vl");
}},xbq=function(c,f){var d=c.JSC$20632_overlayMarginTop;
c.JSC$20632_overlayMarginBottom=fFQ(c,f);c.JSC$20632_overlayHeight=c.canvas.height-c.JSC$20632_overlayMarginBottom-d;c.JSC$20632_overlayWidth=Math.round(c.JSC$20632_overlayHeight*c.requiredRatio);dX3(c)},GpC=function(c,f){var d=c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight;
c.JSC$20632_overlayMarginTop=fFQ(c,f);c.JSC$20632_overlayHeight=d-c.JSC$20632_overlayMarginTop;c.JSC$20632_overlayWidth=Math.round(c.JSC$20632_overlayHeight*c.requiredRatio);dX3(c)},dX3=function(c){switch(c.resizeCorner){case 2:case 1:c.JSC$20632_overlayMarginLeft=c.canvas.width-c.JSC$20632_overlayMarginRight-c.JSC$20632_overlayWidth;
break;case 4:case 3:c.JSC$20632_overlayMarginRight=c.canvas.width-c.JSC$20632_overlayMarginLeft-c.JSC$20632_overlayWidth;break;default:throw Error("vl");}},oFD=function(c,f){var d=c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth;
c.JSC$20632_overlayMarginLeft=jDS(c,f);c.JSC$20632_overlayWidth=d-c.JSC$20632_overlayMarginLeft;c.JSC$20632_overlayHeight=Math.round(c.JSC$20632_overlayWidth/c.requiredRatio);qFQ(c)},cZc=function(c,f){var d=c.JSC$20632_overlayMarginLeft;
c.JSC$20632_overlayMarginRight=jDS(c,f);c.JSC$20632_overlayWidth=c.canvas.width-c.JSC$20632_overlayMarginRight-d;c.JSC$20632_overlayHeight=Math.round(c.JSC$20632_overlayWidth/c.requiredRatio);qFQ(c)},qFQ=function(c){switch(c.resizeCorner){case 2:case 4:c.JSC$20632_overlayMarginBottom=c.canvas.height-c.JSC$20632_overlayMarginTop-c.JSC$20632_overlayHeight;
break;case 1:case 3:c.JSC$20632_overlayMarginTop=c.canvas.height-c.JSC$20632_overlayMarginBottom-c.JSC$20632_overlayHeight;break;default:throw Error("vl");}},fFQ=function(c,f){switch(c.resizeCorner){case 2:f=c.canvas.height-(c.JSC$20632_overlayMarginTop+ZMq(c,f));
break;case 4:f=c.canvas.height-(c.JSC$20632_overlayMarginTop+Mxc(c,f));break;case 1:f=c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight-ZMq(c,f);break;case 3:f=c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight-Mxc(c,f);break;default:throw Error("vl");}return Math.max(f,c.canvasMargin)},ZMq=function(c,f){f=c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth-Math.max(f,c.horizontalMargin);
f=f<0?c.JSC$20632_overlayWidth:Math.max(f,c.minOverlayWidth);return Math.round(f/c.requiredRatio)},Mxc=function(c,f){f=c.canvas.width-Math.max(c.canvas.width-f,c.horizontalMargin)-c.JSC$20632_overlayMarginLeft;
f=f<0?c.JSC$20632_overlayWidth:Math.max(f,c.minOverlayWidth);return Math.round(f/c.requiredRatio)},jDS=function(c,f){switch(c.resizeCorner){case 2:f=c.canvas.width-c.JSC$20632_overlayMarginRight-rZi(c,f);
break;case 4:f=c.canvas.width-c.JSC$20632_overlayMarginLeft-rZi(c,f);break;case 1:f=c.canvas.width-c.JSC$20632_overlayMarginRight-C3J(c,f);break;case 3:f=c.canvas.width-c.JSC$20632_overlayMarginLeft-C3J(c,f);break;default:throw Error("vl");}return Math.max(f,c.horizontalMargin)},rZi=function(c,f){f=c.canvas.height-Math.max(c.canvas.height-f,c.canvasMargin)-c.JSC$20632_overlayMarginTop;
return f<0?c.JSC$20632_overlayWidth:Math.max(Math.round(f*c.requiredRatio),c.minOverlayWidth)},C3J=function(c,f){f=c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight-Math.max(f,c.canvasMargin);
return f<0?c.JSC$20632_overlayWidth:Math.max(Math.round(f*c.requiredRatio),c.minOverlayWidth)},edc=function(c){c.ctx.clearRect(0,0,c.canvas.width,c.canvas.height);
c.ctx.drawImage(c.image,0,0,c.image.width,c.image.height,c.horizontalMargin,c.canvasMargin,c.canvas.width-2*c.horizontalMargin,c.scaledImageHeight);c.ctx.fillStyle="rgba(0, 0, 0, 0.7)";c.ctx.fillRect(c.horizontalMargin,c.JSC$20632_overlayMarginTop,c.JSC$20632_overlayMarginLeft-c.horizontalMargin,c.JSC$20632_overlayHeight);c.ctx.fillRect(c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth,c.JSC$20632_overlayMarginTop,c.JSC$20632_overlayMarginRight-c.horizontalMargin,c.JSC$20632_overlayHeight);c.ctx.fillRect(c.horizontalMargin,
c.canvasMargin,c.scaledImageWidth,c.JSC$20632_overlayMarginTop-c.canvasMargin);c.ctx.fillRect(c.horizontalMargin,c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight,c.scaledImageWidth,c.JSC$20632_overlayMarginBottom-c.canvasMargin);c.drawOverlay();c.component&&_.CZ(c.component,"image-updated")};
Bc.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20632_overlayMarginLeft,this.JSC$20632_overlayMarginTop,this.JSC$20632_overlayWidth,this.JSC$20632_overlayHeight);gaS(this)};
var gaS=function(c){var f=c.JSC$20632_overlayMarginLeft-5,d=c.JSC$20632_overlayMarginTop-5,q=c.JSC$20632_overlayMarginLeft+c.JSC$20632_overlayWidth-5,Z=c.JSC$20632_overlayMarginTop+c.JSC$20632_overlayHeight-5;c.ctx.fillStyle="#FFF";c.ctx.fillRect(f,d,10,10);c.ctx.strokeRect(f,d,10,10);c.ctx.fillRect(q,d,10,10);c.ctx.strokeRect(q,d,10,10);c.ctx.fillRect(f,Z,10,10);c.ctx.strokeRect(f,Z,10,10);c.ctx.fillRect(q,Z,10,10);c.ctx.strokeRect(q,Z,10,10);if(c.focusedCorner!==0&&c.styleFocusedCorner){c.ctx.lineWidth=
4;c.ctx.strokeStyle="#3EA6FF";switch(c.focusedCorner){case 1:--f;--d;break;case 2:--f;d=Z-1;break;case 3:f=q-1;--d;break;case 4:f=q-1;d=Z-1;break;default:return}c.ctx.strokeRect(f,d,12,12)}};
Bc.prototype.crop=function(c,f){f=f===void 0?!0:f;var d=this.image.width/this.scaledImageWidth,q=document.createElement("canvas"),Z=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],M=this.JSC$20632_overlayWidth*d,g=this.JSC$20632_overlayHeight*d;q.width=Math.max(M,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);q.height=Math.max(g,Z);c&&(q.width=Math.min(q.width,q.height),q.height=Math.min(q.width,q.height));
c=q.getContext("2d");if(!c)throw Error("jl");Z=(this.JSC$20632_overlayMarginLeft-this.horizontalMargin)*d;d*=this.JSC$20632_overlayMarginTop-this.canvasMargin;f||(c.fillStyle="white",c.fillRect(0,0,q.width,q.height));c.drawImage(this.image,Z,d,M,g,0,0,q.width,q.height);return q};var kwr=function(c,f,d,q,Z){Bc.call(this,c,f,d,q,void 0,Z,8,!1)};
_.K(kwr,Bc);kwr.prototype.drawOverlay=function(){var c=this.getContext(),f=this.JSC$20632_overlayWidth,d=this.JSC$20632_overlayHeight,q=this.JSC$20632_overlayMarginTop,Z=this.JSC$20632_overlayMarginLeft;c.lineWidth=2;c.strokeStyle="#3EA6FF";c.beginPath();c.arc(Z+f/2,q+d/2,f/2,0,2*Math.PI);c.stroke();c.strokeRect(Z,q,f,d);gaS(this)};
var OMq={maxFileSizeMB:15,minWidth:98,minHeight:98},lFq=["image/png","image/jpeg","image/gif"],i8=function(){var c=_.z.apply(this,arguments)||this;c.fileSelectorFocusListener=null;c.errorMessage=null;c.isLoading=!0;c.hideContainer=!0;c.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return c};
_.K(i8,_.z);_.r=i8.prototype;_.r.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.r.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.r.computePlaylistThumbnail=function(c){return c==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.r.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.gS(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.r.setErrorState=function(c){this.resetErrorState();c&&(this.errorMessage=c)};
_.r.showPopup=function(){var c=this;this.hideContainer=!1;_.Em(_.a7,function(){_.CZ(c.hostElement,"yt-refit")});
this.isLoading=!1};
_.r.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.r.closePopup=function(){this.resetFileSelector();_.gS(this.hostElement,"yt-close-popup-action",[this.is])};
_.r.onCancelTap=function(){this.isPlaylistThumbnail||_.gS(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.r.openFileSelector=function(){var c=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Em(_.a7,function(){setTimeout(function(){if(!c.fileSelector.files||c.fileSelector.files.length===0)c.onCancelTap();c.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(f){f instanceof Error?_.VO(f):_.XX(new _.KD(JSON.stringify(f)))}};
_.r.handleFileSelection=function(){var c=this,f,d,q,Z,M,g;return _.k(function(O){switch(O.nextAddress){case 1:_.iY(O,2);if(!c.fileSelector.files||!c.imageEditorCanvas)return c.onCancelTap(),O.return();f=c.fileSelector.files[0];vF3(c.imageChecker,f);_.iY(O,4);return O.yield(xhC(f),6);case 6:c.mimeType=O.yieldResult;_.Pq(O,5,2);break;case 4:_.Yw(O,2),_.gS(c.hostElement,"yt-image-selection-error-action",[(d=c.data)==null?void 0:d.genericImageLoadErrorMessage]),c.onCancelTap();case 5:q=new FileReader;
q.addEventListener("load",function(){var l,m;return _.k(function(H){if(H.nextAddress==1){if(!q.result)return _.u6(Error("ll")),H.return();l=q.result;m=new Image;m.src=l;m.onload=function(){try{var A=c.imageChecker;if(m.width<A.requirements.minWidth||m.height<A.requirements.minHeight)throw new XnG(A.requirements.minWidth,A.requirements.minHeight);}catch(t){if(t instanceof XnG){var Y;_.gS(c.hostElement,"yt-image-selection-error-action",[(Y=c.data)==null?void 0:Y.imageDimensionErrorMessage]);c.logImageDimensionErrorVe()}else t instanceof
Error?_.VO(t):(A=new _.KD(JSON.stringify(t)),_.VO(A));c.onCancelTap()}c.showPopup()};
m.onerror=function(){var A;_.gS(c.hostElement,"yt-image-selection-error-action",[(A=c.data)==null?void 0:A.genericImageLoadErrorMessage]);c.onCancelTap()};
return H.yield(Dbq(c.imageEditorCanvas,l),2)}c.imageEditor=H.yieldResult;c.updatePositionOfAllCorners();c.addEventListeners(c.imageEditor);_.Fm(H)})},!1);
q.readAsDataURL(f);_.Pq(O,0);break;case 2:Z=_.Yw(O),Z instanceof sE?_.gS(c.hostElement,"yt-image-selection-error-action",[(M=c.data)==null?void 0:M.imageSizeErrorMessage]):(Z instanceof Error?_.VO(Z):_.XX(new _.KD(JSON.stringify(Z))),_.gS(c.hostElement,"yt-image-selection-error-action",[(g=c.data)==null?void 0:g.genericImageLoadErrorMessage])),c.onCancelTap(),_.Fm(O)}})};
_.r.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var c=_.te(_.bP(),{veType:232707,visualElement:_.m_(232707)});c&&(c={visualElement:c},_.FN().reportShown(c))}};
_.r.handleImageSelectionErrorAction=function(c){this.isPlaylistThumbnail&&_.zAl(this.hostElement,c)};
_.r.convertToImageFormatBundle=function(c){var f=this,d,q,Z;return _.k(function(M){switch(M.nextAddress){case 1:return d=c.toDataURL(f.outputMimeType,1),M.yield(oEH(d),2);case 2:q=M.yieldResult;_.iY(M,3);vF3(f.imageChecker,q);_.Pq(M,4);break;case 3:Z=_.Yw(M);if(!(Z instanceof sE))throw Z;_.u6(new _.KD("Output size is bigger than input size for image",f.mimeType,f.outputMimeType,q.size));d=c.toDataURL("image/jpeg",.95);return M.yield(oEH(d),6);case 6:q=M.yieldResult;case 4:return M.return({dataUrl:d,
imageFile:q})}})};
_.r.handleUploadImageToScottyCommand=function(c){var f=this,d,q,Z,M,g,O,l,m,H,A;return _.k(function(Y){switch(Y.nextAddress){case 1:if(!f.imageEditor||!_.b(c,zzH))return Y.return();d=_.b(c,zzH).scottyUploadUrl;if(!d){var t=new _.KD("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.VO(t);return Y.return()}_.iY(Y,2);f.setLoadingState();q=f.imageEditor.crop(!1,!1);return Y.yield(f.convertToImageFormatBundle(q),4);case 4:return Z=Y.yieldResult,Y.yield(Uhq(Z.imageFile,d),5);
case 5:M=Y.yieldResult;((g=f.data)==null?0:g.onUploadEndpoint)?(O=f.buildUploadServiceEndpoint(M),f.ytComponentBehavior.resolveCommand(O),l=_.b(O,_.hB),((m=l)==null?0:m.params)?f.closePopup():f.resetFileSelector()):(_.gS(f.hostElement,"yt-image-updated-action",[Z.dataUrl,M]),f.closePopup());_.Pq(Y,0);break;case 2:H=_.Yw(Y),f.setErrorState((A=f.data)==null?void 0:A.uploadErrorMessage),H instanceof Error?_.VO(H):(t=new _.KD(JSON.stringify(H)),_.VO(t)),_.Fm(Y)}})};
_.r.buildUploadServiceEndpoint=function(c){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",c),this.data.onUploadEndpoint):null};
_.r.dataChanged=function(){var c=this,f;return _.k(function(d){if(d.nextAddress==1){if(!c.data||!c.canvasElement)return d.return();c.data.imageRatio&&c.data.minImageCropWidth||_.XX(new _.KD("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));f=function(q,Z){return c.data.imageType==="IMAGE_TYPE_AVATAR"?new kwr(q,Z,c.data.imageRatio,[c.data.minImageCropWidth,c.data.minImageCropWidth/c.data.imageRatio],c.hostElement):new Bc(q,Z,c.data.imageRatio,[c.data.minImageCropWidth,
c.data.minImageCropWidth/c.data.imageRatio],void 0,c.hostElement,8,!1)};
c.imageEditorCanvas=new hdp(c.canvasElement,f);return c.data.url?d.yield(Dbq(c.imageEditorCanvas,c.data.url),3):(c.hideContainer=!0,c.openFileSelector(),d.jumpTo(0))}c.imageEditor=d.yieldResult;c.showPopup();c.addEventListeners(c.imageEditor);_.Fm(d)})};
_.r.addEventListeners=function(c){this.removeEventListeners();var f=function(Z){wnS(c,Z)};
this.JSC$20640_mouseDownEvent=f;var d=function(Z){yX3(c,Z)};
this.JSC$20640_mouseMoveEvent=d;var q=function(){WQp(c)};
this.JSC$20640_mouseUpEvent=q;this.topLeftCorner.addEventListener("mousedown",f);this.topLeftCorner.addEventListener("mousemove",d);this.topLeftCorner.addEventListener("mouseup",q);this.topRightCorner.addEventListener("mousedown",f);this.topRightCorner.addEventListener("mousemove",d);this.topRightCorner.addEventListener("mouseup",q);this.bottomLeftCorner.addEventListener("mousedown",f);this.bottomLeftCorner.addEventListener("mousemove",d);this.bottomLeftCorner.addEventListener("mouseup",q);this.bottomRightCorner.addEventListener("mousedown",
f);this.bottomRightCorner.addEventListener("mousemove",d);this.bottomRightCorner.addEventListener("mouseup",q)};
_.r.removeEventListeners=function(){this.JSC$20640_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20640_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20640_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20640_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20640_mouseDownEvent));this.JSC$20640_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20640_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20640_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20640_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20640_mouseMoveEvent));this.JSC$20640_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20640_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20640_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20640_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20640_mouseUpEvent))};
_.r.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var c=document.activeElement;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;switch(c){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};
_.r.updatePositionOfCorner=function(c,f){var d=c.y-f.offsetHeight/2+4;f.style.left=c.x-f.offsetWidth/2+16+"px";f.style.top=d+"px"};
_.r.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var c=_.C([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),f=c.next();!f.done;f=c.next()){f=f.value;var d=Pzc(this.imageEditor,f.corner);this.updatePositionOfCorner(d,f.div)}};
_.r.onLeft=function(c){this.imageEditor&&this.setFocusInImageEditor()&&(Ubc(this.imageEditor,0),this.updatePositionOfAllCorners(),c.preventDefault())};
_.r.onRight=function(c){this.imageEditor&&this.setFocusInImageEditor()&&(Ubc(this.imageEditor,1),this.updatePositionOfAllCorners(),c.preventDefault())};
_.r.onUp=function(c){this.imageEditor&&this.setFocusInImageEditor()&&(Ubc(this.imageEditor,2),this.updatePositionOfAllCorners(),c.preventDefault())};
_.r.onDown=function(c){this.imageEditor&&this.setFocusInImageEditor()&&(Ubc(this.imageEditor,3),this.updatePositionOfAllCorners(),c.preventDefault())};
_.r.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.ci.Object.defineProperties(i8.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&lFq.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var c,f,d;((f=this.data)==null?0:f.imageRatio)&&((d=this.data)==null?0:d.minImageCropWidth)?c={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:c=OMq;return new unF(c)}}});
i8.prototype.updatePositionOfAllCorners=i8.prototype.updatePositionOfAllCorners;i8.prototype.dataChanged=i8.prototype.dataChanged;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],i8.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],i8.prototype,"ytComponentBehavior",void 0);_.y([_.Q(_.Kn),_.D("design:type",Object)],i8.prototype,"ironA11yKeysBehavior",void 0);
_.y([_.AY("#canvas"),_.D("design:type",HTMLCanvasElement)],i8.prototype,"canvasElement",void 0);_.y([_.AY("#file-selector"),_.D("design:type",HTMLInputElement)],i8.prototype,"fileSelector",void 0);_.y([_.AY("#top-left-corner"),_.D("design:type",HTMLDivElement)],i8.prototype,"topLeftCorner",void 0);_.y([_.AY("#top-right-corner"),_.D("design:type",HTMLDivElement)],i8.prototype,"topRightCorner",void 0);
_.y([_.AY("#bottom-left-corner"),_.D("design:type",HTMLDivElement)],i8.prototype,"bottomLeftCorner",void 0);_.y([_.AY("#bottom-right-corner"),_.D("design:type",HTMLDivElement)],i8.prototype,"bottomRightCorner",void 0);_.y([_.L(),_.D("design:type",Object)],i8.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],i8.prototype,"errorMessage",void 0);_.y([_.L(),_.D("design:type",Object)],i8.prototype,"isLoading",void 0);_.y([_.L(),_.D("design:type",Object)],i8.prototype,"hideContainer",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.D("design:type",Boolean)],i8.prototype,"isPlaylistThumbnail",void 0);_.y([_.ba("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],i8.prototype,"dataChanged",null);_.y([_.Ta("image-updated"),_.Ta("yt-refit"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],i8.prototype,"updatePositionOfAllCorners",null);
_.y([_.vj({is:"yt-image-editor-renderer",disableElementRegistration:!0})],i8);
_.h(i8,"yt-image-editor-renderer",function(){if(V$q===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;acG===void 0&&(acG=document.createElement("template"));var q=acG;d.call(f,q.content.cloneNode(!0),c.content.firstChild);V$q=c}c=V$q;return c},{mode:2});var sDH;var BHi;var TQ=function(){return _.z.apply(this,arguments)||this};
_.K(TQ,_.z);TQ.prototype.updateMinutesFromBinding=function(c){this.handleMinutesChanged&&this.handleMinutesChanged(c)};
TQ.prototype.updateSecondsFromBinding=function(c){this.handleSecondsChanged&&this.handleSecondsChanged(c)};
TQ.prototype.updateDescriptionFromBinding=function(c){this.handleDescriptionChanged&&this.handleDescriptionChanged(c)};
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],TQ.prototype,"ytComponentBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],TQ.prototype,"data",void 0);_.y([_.L(),_.D("design:type",String)],TQ.prototype,"minutes",void 0);_.y([_.L(),_.D("design:type",String)],TQ.prototype,"seconds",void 0);_.y([_.L(),_.D("design:type",String)],TQ.prototype,"description",void 0);_.y([_.L(),_.D("design:type",Function)],TQ.prototype,"handleMinutesChanged",void 0);
_.y([_.L(),_.D("design:type",Function)],TQ.prototype,"handleSecondsChanged",void 0);_.y([_.L(),_.D("design:type",Function)],TQ.prototype,"handleDescriptionChanged",void 0);_.y([_.L(),_.D("design:type",Number)],TQ.prototype,"characterLimit",void 0);_.y([_.L(),_.D("design:type",Number)],TQ.prototype,"textNumRows",void 0);_.y([_.vj({is:"yt-report-details-form-content",disableElementRegistration:!0})],TQ);
_.h(TQ,"yt-report-details-form-content",function(){if(BHi===void 0){var c=document.createElement("template");_.n(c,'\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>');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;sDH===void 0&&(sDH=document.createElement("template"));var q=sDH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);BHi=c}c=BHi;return c},{mode:2});var iMC;var THp;var mm=function(){var c=_.z.apply(this,arguments)||this;c.updateMinutesFromBinding=function(f){c.minutes=f.detail.value};
c.updateSecondsFromBinding=function(f){c.seconds=f.detail.value};
c.updateDescriptionFromBinding=function(f){c.description=f.detail.value};
return c};
_.K(mm,_.z);_.r=mm.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.r.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"}}}};
_.r.ready=function(){_.r1(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.r.onSubmitYtAction=function(c){var f=c.detail;f.actionName==="yt-service-request"&&(f=f.args[1],f.flagEndpoint&&(c.stopPropagation(),this.refireAction(f)))};
_.r.refireAction=function(c){var f={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(f.vss_id=this.vssId);_.OX(this.hostElement,[c,f]);this.submitDisabled=!0};
_.r.dataChanged=function(){var c=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var f=_.Ca();f&&f.getPlayerPromise().then(function(d){var q=d.getOption("cc","track")||d.getOption("captions","track");q&&(c.vssId=q.vss_id);d=d.getCurrentTime();c.minutes=Math.floor(d/60).toString();c.seconds=(Math.floor(d)%60).toString()})};
_.r.updateSubmitButtonState=function(){var c;((c=this.data)==null?0:c.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==="")};
_.r.onYtServiceRequestCompleted=function(){_.gS(this.hostElement,"yt-close-popup-action")};
_.r.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.ci.Object.defineProperties(mm.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var c;return((c=this.data)==null?void 0:c.textNumRows)||4}}});
mm.prototype.onYtServiceRequestError=mm.prototype.onYtServiceRequestError;mm.prototype.onYtServiceRequestCompleted=mm.prototype.onYtServiceRequestCompleted;mm.prototype.updateSubmitButtonState=mm.prototype.updateSubmitButtonState;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],mm.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);
_.y([_.L({observer:"dataChanged"}),_.D("design:type",Object)],mm.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Boolean)],mm.prototype,"submitDisabled",void 0);_.y([_.L(),_.D("design:type",String)],mm.prototype,"minutes",void 0);_.y([_.L(),_.D("design:type",String)],mm.prototype,"seconds",void 0);_.y([_.L(),_.D("design:type",String)],mm.prototype,"description",void 0);_.y([_.L(),_.D("design:type",String)],mm.prototype,"vssId",void 0);
_.y([_.L({value:_.hk("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.D("design:type",Boolean)],mm.prototype,"isMusic",void 0);_.y([_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],mm.prototype,"characterLimit",null);_.y([_.S("data"),_.D("design:type",Number),_.D("design:paramtypes",[])],mm.prototype,"textNumRows",null);
_.y([_.ba("minutes","seconds","description","submitDisabled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mm.prototype,"updateSubmitButtonState",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mm.prototype,"onYtServiceRequestCompleted",null);
_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],mm.prototype,"onYtServiceRequestError",null);_.y([_.vj({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],mm);
_.h(mm,"yt-report-details-form-renderer",function(){if(THp===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;iMC===void 0&&(iMC=document.createElement("template"));var q=iMC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);THp=c}c=THp;return c});var mXC;var HM3;var AZD;var YFF;var Hc=function(){return _.z.apply(this,arguments)||this};
_.K(Hc,_.z);
Hc.prototype.onCheckedChanged_=function(){if(this.data){var c=_.r1(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.gS(this.hostElement,"yt-additional-detail-checkbox-update",[c]):this.data.identifier==="yt-hide-user-checkbox"?_.gS(this.hostElement,"yt-hide-user-checkbox-update",[c]):c&&this.data.enableCommand?_.gS(this.hostElement,"yt-modify-report-form-command",[_.b(this.data.enableCommand,hzq)]):!c&&this.data.disableCommand&&_.gS(this.hostElement,
"yt-modify-report-form-command",[_.b(this.data.enableCommand,hzq)])}};
Hc.prototype.onLabelTap_=function(c){c.target.tagName!="A"&&(_.r1(this.hostElement).querySelector("#checkbox").checked=!_.r1(this.hostElement).querySelector("#checkbox").checked)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Hc.prototype,"data",void 0);_.y([_.vj({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Hc);
_.h(Hc,"yt-boolean-form-field-v2-renderer",function(){if(YFF===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;AZD===void 0&&(AZD=document.createElement("template"));var q=AZD;d.call(f,q.content.cloneNode(!0),c.content.firstChild);YFF=c}c=YFF;return c});var Aj=function(){var c=_.z.apply(this,arguments)||this;c.canShowAdditionalDetailCheckbox=!1;c.canShowCheckbox=!1;c.keepDropdownFocusedAfterSelection=!0;return c};
_.K(Aj,_.z);Aj.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}}}}};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Aj.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],Aj.prototype,"canShowAdditionalDetailCheckbox",void 0);_.y([_.L(),_.D("design:type",Object)],Aj.prototype,"canShowCheckbox",void 0);_.y([_.L(),_.D("design:type",Object)],Aj.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.y([_.vj({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Aj);
_.h(Aj,"yt-report-form-modal-content",function(){if(HM3===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;mXC===void 0&&(mXC=document.createElement("template"));var q=mXC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);HM3=c}c=HM3;return c},{mode:2});var FzJ;var txq;var YU=function(){var c=_.z.apply(this,arguments)||this;c.submitting=!1;c.submitButtonDisabled=!0;c.command=null;c.canShowCheckbox=!1;c.canShowAdditionalDetailCheckbox=!1;c.canShowNextButton=!1;c.additionalDetailCheckboxChecked=!1;c.refitJob=0;c.keepDropdownFocusedAfterSelection=!0;c.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 c};
_.K(YU,_.z);_.r=YU.prototype;_.r.created=function(){this.refitJob=0};
_.r.attached=function(){this.JSC$20663_scroller&&(this.JSC$20663_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20663_scroller.attached&&typeof this.JSC$20663_scroller.attached==="function"&&this.JSC$20663_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(c){c&&(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,c.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),c.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.r.onYtPopupOpened=function(){var c=_.Ca();c&&c.getPlayerPromise().then(function(f){f.pauseVideo()})};
_.r.onYtNavigate=function(c){_.b(c.detail.endpoint,_.MW3)&&(c.stopPropagation(),this.hideReportForm=!0)};
_.r.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.r.onYtServiceRequestCompleted=function(c,f){var d=f.actions;if(d){if(d.length===1&&_.b(d[0],_.BO)){var q;d=((q=_.b(d[0],_.BO))==null?void 0:q.commands)||[]}q=0;for(var Z=d.length;q<Z;q++)_.b(d[q],_.Lz)&&(c.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(d[q]))}if(f.data&&(c=this.get("feedbackResponses",f.data)))for(f=0;f<c.length;f++)if(c[f].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.r.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.r._onDescendantIronResize=function(c){c.stopPropagation();return!1};
_.r.handleReportFormEndpointUpdateAction=function(c){if(c.submitEndpoint){var f=this.command=c.submitEndpoint;f=_.b(f,_.j$r);if(f==null?0:f.additionalDetailCheckboxChecked)f.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else c.submitNavigationEndpoint?(this.command=c.submitNavigationEndpoint,this.toggleSubmitButton(!1)):c.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:c.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;c.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",c));this.refit()};
_.r.handleConfirmDialogCloseAction=function(c){c.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.r.submitButtonDisabledChanged=function(){var c=this.hostElement.parentElement;c&&c.invalidateTabbables&&c.invalidateTabbables()};
_.r.handleModifyReportFormCommand=function(c){c=this.get("action",c);c==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:c==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:c==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:c==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:c==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:c==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.r.updateDialogStyling=function(){var c,f,d,q,Z,M=((Z=(c=this.data)==null?void 0:(f=c.optionsSupportedRenderers)==null?void 0:(d=f.optionsRenderer)==null?void 0:(q=d.items)==null?void 0:q.length)!=null?Z:0)<=2?0:240;_.la(this.hostElement,{"--yt-report-form-modal-renderer-min-width":M+"px"})};
_.r.toggleSubmitButton=function(c){this.submitButtonDisabled=!c;this.submitButtonDisabled=c};
_.r.computeSubmitButtonData=function(c,f){var d={};_.b(f,_.MW3)?d.navigationEndpoint=f:d.command=f||void 0;c&&c.buttonRenderer&&_.zV.extend(d,c.buttonRenderer);return d};
_.r.computeNextButtonData=function(c,f){var d={};if(!c||!c.buttonRenderer)return d;_.zV.extend(d,c.buttonRenderer);if(!f)return d;if(_.b(f,_.MW3))d.navigationEndpoint=cK3(f);else if(d.command=cK3(f),c=_.b(d.command,_.j$r))c.legalCheckboxChecked=!0;return d};
_.r.computeShowNextButton=function(c,f,d){return!!c&&f&&d};
_.r.refit=function(){var c=this;this.refitJob||(this.refitJob=_.a7.addLowPriorityJob(function(){_.CZ(c.hostElement,"yt-refit");c.refitJob=0}))};
_.r.handleAdditionalDetailCheckboxUpdateAction=function(c){this.additionalDetailCheckboxChecked=c;_.b(this.command,_.j$r).additionalDetailCheckboxChecked=c};
_.ci.Object.defineProperties(YU,{template:{configurable:!0,enumerable:!0,get:function(){if(txq===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;FzJ===void 0&&(FzJ=document.createElement("template"));var q=FzJ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);txq=c}c=txq;return c}}});
YU.prototype.onYtServiceRequestError=YU.prototype.onYtServiceRequestError;YU.prototype.onYtServiceRequestCompleted=YU.prototype.onYtServiceRequestCompleted;YU.prototype.onYtServiceRequestSent=YU.prototype.onYtServiceRequestSent;YU.prototype.onYtNavigate=YU.prototype.onYtNavigate;YU.prototype.onYtPopupOpened=YU.prototype.onYtPopupOpened;_.y([_.Q(_.Yd.YtOpenPopupBehavior),_.D("design:type",Object)],YU.prototype,"openPopupBehavior",void 0);
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],YU.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],YU.prototype,"eventForwardingBehavior",void 0);_.y([_.Q(_.aJ),_.D("design:type",Object)],YU.prototype,"ironResizableBehavior",void 0);_.y([_.L({observer:"dataChanged"}),_.D("design:type",Object)],YU.prototype,"data",void 0);
_.y([_.L(),_.D("design:type",Object)],YU.prototype,"submitting",void 0);_.y([_.L({observer:"submitButtonDisabledChanged"}),_.D("design:type",Object)],YU.prototype,"submitButtonDisabled",void 0);_.y([_.L(),_.D("design:type",Object)],YU.prototype,"command",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],YU.prototype,"hideReportForm",void 0);_.y([_.L(),_.D("design:type",Object)],YU.prototype,"canShowCheckbox",void 0);
_.y([_.L(),_.D("design:type",Object)],YU.prototype,"canShowAdditionalDetailCheckbox",void 0);_.y([_.L(),_.D("design:type",Object)],YU.prototype,"canShowNextButton",void 0);_.y([_.L(),_.D("design:type",Object)],YU.prototype,"additionalDetailCheckboxChecked",void 0);_.y([_.L(),_.D("design:type",Object)],YU.prototype,"refitJob",void 0);_.y([_.L(),_.D("design:type",Object)],YU.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.y([_.AY("#scroller"),_.D("design:type",Object)],YU.prototype,"JSC$20663_scroller",void 0);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],YU.prototype,"onYtPopupOpened",null);_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],YU.prototype,"onYtNavigate",null);
_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],YU.prototype,"onYtServiceRequestSent",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],YU.prototype,"onYtServiceRequestCompleted",null);
_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],YU.prototype,"onYtServiceRequestError",null);_.y([_.vj({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],YU);var bMJ;var KzG;var FZ=function(){return _.z.apply(this,arguments)||this};
_.K(FZ,_.z);_.r=FZ.prototype;_.r.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.r.onVisible=function(){var c,f;(f=_.ql().resolve(_.dx(_.$A)))==null||f.enqueue({label:_.xC((c=this.data)==null?void 0:c.messageTitle),elementToFocus:this.hostElement})};
_.r.onThumbnailLoaded=function(){_.CZ(this.hostElement,"yt-refit")};
_.r.onDismissTap=function(){_.gS(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.r.computeAlternateIcon=function(c){return c?c==="BACKSTAGE_ARTWORK"?"backstage:artwork":c:null};
_.r.computeFontFamily=function(c){return c==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.r.computeBackgroundStyle=function(c,f){if(c=this.computeBackgroundImage(c,f))if(c=_.OV(c.thumbnails))return'background-image: url("'+c+'");'};
_.r.computeHasFullHeightImage=function(c){return!(!(c&&c.thumbnails&&c.thumbnails.length>0)||this.modern)};
_.r.isModernStyle=function(c){return c.style==="STYLE_MODERN"};
_.r.computeIcon=function(c,f){if(c&&c.icon)return f?c.iconDark:c.icon};
_.r.computeBackgroundImage=function(c,f){if(c&&c.backgroundImage)return f?c.backgroundImageDark:c.backgroundImage};
_.r.computeLogo=function(c,f){if(c&&c.logo)return f?c.logoDark:c.logo};
_.r.computeShouldShowModernIcon=function(c,f){return c&&!!f};
_.r.getLogoContainerClassName=function(c){return this.logoWithPadding(c)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.r.getLogoImageId=function(c){return this.logoWithPadding(c)?"mealbar-logo-with-padding":"mealbar-logo"};
_.r.logoWithPadding=function(c){var f,d,q;return(c=(f=this.computeLogo(c,this.isDarkTheme))==null?void 0:(d=f.thumbnails)==null?void 0:(q=d[0])==null?void 0:q.height)&&c%31===0?!0:!1};
FZ.prototype.onThumbnailLoaded=FZ.prototype.onThumbnailLoaded;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.y([_.L({}),_.D("design:type",Object)],FZ.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.D("design:type",Boolean)],FZ.prototype,"modern",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],FZ.prototype,"isDarkTheme",void 0);
_.y([_.L({computed:"computeIcon(data, isDarkTheme)"}),_.D("design:type",Object)],FZ.prototype,"icon",void 0);_.y([_.L({computed:"computeLogo(data, isDarkTheme)"}),_.D("design:type",Object)],FZ.prototype,"logo",void 0);_.y([_.L({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.D("design:type",Object)],FZ.prototype,"backgroundStyle",void 0);_.y([_.L({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.D("design:type",Object)],FZ.prototype,"alternateIcon",void 0);
_.y([_.L({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.D("design:type",Boolean)],FZ.prototype,"hasFullHeightImage",void 0);_.y([_.L({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.D("design:type",Boolean)],FZ.prototype,"useYoutubeSans",void 0);_.y([_.L({computed:"computeShouldShowModernIcon(modern, icon)"}),_.D("design:type",Boolean)],FZ.prototype,"shouldShowModernIcon",void 0);
_.y([_.Ta("yt-img-shadow-loaded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],FZ.prototype,"onThumbnailLoaded",null);_.y([_.vj({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],FZ);
_.h(FZ,"yt-mealbar-promo-renderer",function(){if(KzG===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;bMJ===void 0&&(bMJ=document.createElement("template"));var q=bMJ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);KzG=c}c=KzG;return c},{mode:2});var Ea3;var naq;var tj=function(){return _.z.apply(this,arguments)||this};
_.K(tj,_.z);_.r=tj.prototype;_.r.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]]"}}}}}};
_.r.computeHasButtons_=function(c){return!(!c.dismissButton&&!c.acceptButton)};
_.r.computeStyle_=function(c){return c||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.r.observeImpressionEndpoints_=function(){var c=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(f){f.clickTrackingParams&&delete f.clickTrackingParams;_.OX(c.hostElement,[f])})};
_.r.onTap_=function(){_.gS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
tj.prototype.observeImpressionEndpoints_=tj.prototype.observeImpressionEndpoints_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],tj.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],tj.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],tj.prototype,"positionType",void 0);_.y([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.D("design:type",Boolean)],tj.prototype,"hasButtons_",void 0);_.y([_.L({value:function(){return this.onTap_.bind(this)}}),
_.D("design:type",Function)],tj.prototype,"boundOnTap_",void 0);_.y([_.L({value:{style:"mono-inverse"}}),_.D("design:type",Object)],tj.prototype,"buttonOverride",void 0);_.y([_.m5("data.promoConfig.impressionEndpoints"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],tj.prototype,"observeImpressionEndpoints_",null);_.y([_.vj({is:"yt-tooltip-renderer",disableElementRegistration:!0})],tj);
_.h(tj,"yt-tooltip-renderer",function(){if(naq===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;Ea3===void 0&&(Ea3=document.createElement("template"));var q=Ea3;d.call(f,q.content.cloneNode(!0),c.content.firstChild);naq=c}c=naq;return c},{mode:2});var $Xp;var QDc;var SFp={},LzQ=(SFp.WEB_REMIX="music.youtube.com",SFp),b8=function(){var c=_.z.apply(this,arguments)||this;c.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return c};
_.K(b8,_.z);_.r=b8.prototype;_.r.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.created=function(){this.embedHost_=LzQ[_.hk("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.r.ready=function(){_.r1(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.r.computeEmbedCode_=function(c,f,d,q,Z){if(!c)return"";var M=c.videoId,g=c.fullListId,O=[];c.attributionId&&O.push("si="+c.attributionId);q||O.push("controls=0");d&&Number(f)>0&&O.push("start="+f);g&&(M="videoseries",O.push("list="+g));d="https://"+(Z?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+M;c.clipId&&(O.push("clip="+c.clipId),O.push("clipt="+c.clipTiming));f=O.length>0?d+"?"+O.join("&amp;"):d;c.encryptedEmbedConfig&&O.push("embed_config="+JSON.stringify({enc:c.encryptedEmbedConfig}));
O=O.length>0?d+"?"+O.join("&amp;"):d;_.F("web_sharing_embed_preview_killswitch")?_.r1(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(O,c.previewWidth||854,c.previewHeight||480):(_.a_(this.videoPreviewContainer),_.r1(this.videoPreviewContainer).appendChild(this.buildIframeElement(O)));return this.getEmbedCode_(f,c.width||560,c.height||315)};
_.r.buildIframeElement=function(c){var f=document.createElement("iframe"),d,q;f.width=""+((q=(d=this.data)==null?void 0:d.previewWidth)!=null?q:854);var Z,M;f.height=""+((M=(Z=this.data)==null?void 0:Z.previewHeight)!=null?M:480);_.ZTM(f,2,c);f.title="YouTube video player";f.frameBorder="0";f.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";f.referrerPolicy="strict-origin-when-cross-origin";f.allowFullscreen=!0;return f};
_.r.computeIsSquareAspectRatio_=function(c){return c.previewHeight&&c.previewWidth?c.previewHeight==c.previewWidth:!1};
_.r.computeShowEmbedOptions_=function(c){return!!c.enablePrivacyModeOptionLabel||!!c.showPlayerControlsOptionLabel};
_.r.getEmbedCode_=function(c,f,d){return'<iframe width="'+f+'" height="'+d+'" src="'+c+'" 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>'};
_.r.handleSignalActionCopyShareEmbedUrl_=function(){_.r1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.r.handleSetTimestamp_=function(c){this.startAtTimeStamp_=(this.startAtChecked_=c.isSet)?c.timestamp:0};
_.r.closePanel_=function(){_.gS(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.r.onEmbedCode_=function(){_.r1(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.r.onYtPopupClosed_=function(){_.a_(_.r1(this.hostElement).querySelector("#video-preview"))};
_.r.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.b(this.data.actionButtons[0],_.WQ)&&this.ytRendererBehavior.logExplicitClick(_.b(this.data.actionButtons[0],_.WQ))};
b8.prototype.onYtPopupClosed_=b8.prototype.onYtPopupClosed_;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],b8.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],b8.prototype,"data",void 0);
_.y([_.L({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.D("design:type",String)],b8.prototype,"embedCode_",void 0);_.y([_.L({value:!0}),_.D("design:type",Boolean)],b8.prototype,"isPlayerControlsOptionChecked_",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],b8.prototype,"isPrivacyModeOptionChecked_",void 0);_.y([_.L({value:!1,notify:!0}),_.D("design:type",Boolean)],b8.prototype,"startAtChecked_",void 0);
_.y([_.L({value:0}),_.D("design:type",Number)],b8.prototype,"startAtTimeStamp_",void 0);_.y([_.L({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],b8.prototype,"isSquareAspectRatio_",void 0);_.y([_.AY("#video-preview"),_.D("design:type",HTMLElement)],b8.prototype,"videoPreviewContainer",void 0);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],b8.prototype,"onYtPopupClosed_",null);
_.y([_.vj({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],b8);
_.h(b8,"yt-sharing-embed-renderer",function(){if(QDc===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;$Xp===void 0&&($Xp=document.createElement("template"));var q=$Xp;d.call(f,q.content.cloneNode(!0),c.content.firstChild);QDc=c}c=QDc;return c},{mode:2});var zsp={};
zsp.YtUnlimitedFamilyInterstitialBehavior=[_.Yd.YtOpenPopupBehavior,_.Cy.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(c){c=_.sG3(_.oV(c),"yt-button-renderer");return c?c.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(c){this.dialogHistory_.push(c)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var c=this.popFromHistory();if(c){var f={openPopupAction:{popupType:"DIALOG",popup:{}}};f.openPopupAction.popup[c.renderer]=c.data;this.showingPreviousDialog_=!0;this.openPopup(f)}},
handleOpenPopupAction_:function(c){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var f=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(q){return!!c.openPopupAction.popup[q]}),d=this.getElementName_();
f&&this.data&&(this.pushToHistory({renderer:d,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(c){if(c=_.b(c,l$F))this.loading=!0,_.gS(this.hostElement,"yt-open-create-family-dialog",[c,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var c=this.hostElement.nodeName.split("-").slice(1).map(function(f){return""+f[0].toUpperCase()+f.slice(1).toLowerCase()}).join("");
return c[0].toLowerCase()+c.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var JZJ;var aFC;var Kb=function(){return _.z.apply(this,arguments)||this};
_.K(Kb,_.z);_.r=Kb.prototype;_.r.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}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.gS(this.hostElement,"yt-register-create-family-dialog");_.r1(this.hostElement).querySelector("#thumbnail").onShow()};
_.r.fireOnCloseCommand_=function(){var c;((c=this.data)==null?0:c.onCloseCommand)&&_.ll(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.r.onYtServiceRequestSent_=function(c,f){f&&f.endpoint&&_.b(f.endpoint,_.Ti)||(this.loading=!0)};
_.r.onYtServiceRequestCompleted_=function(){var c=this.hostElement.parentElement;c.close&&c.close();this.loading=!1};
_.r.openPopupHandler_=function(c){if(c.detail==this){var f;((f=this.data)==null?0:f.onOpenCommands)&&_.ll(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.r.closePopupHandler_=function(c,f){this.fireOnCloseCommand_();if(f&&f.canceled===!0||f&&f.canceled===!1&&f.confirmed===!1){var d;((d=this.data)==null?0:d.onDismissCommands)&&_.ll(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.r.dataChanged_=function(){this.loading=!1};
Kb.prototype.dataChanged_=Kb.prototype.dataChanged_;Kb.prototype.closePopupHandler_=Kb.prototype.closePopupHandler_;Kb.prototype.openPopupHandler_=Kb.prototype.openPopupHandler_;Kb.prototype.onYtServiceRequestCompleted_=Kb.prototype.onYtServiceRequestCompleted_;Kb.prototype.onYtServiceRequestSent_=Kb.prototype.onYtServiceRequestSent_;_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],Kb.prototype,"ytEventForwardingBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(zsp.YtUnlimitedFamilyInterstitialBehavior),_.D("design:type",Object)],Kb.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Kb.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],Kb.prototype,"loading",void 0);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],Kb.prototype,"onYtServiceRequestSent_",null);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],Kb.prototype,"onYtServiceRequestCompleted_",null);
_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],Kb.prototype,"openPopupHandler_",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],Kb.prototype,"closePopupHandler_",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Kb.prototype,"dataChanged_",null);
_.y([_.vj({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Kb);
_.h(Kb,"yt-unlimited-family-message-interstitial-renderer",function(){if(aFC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;JZJ===void 0&&(JZJ=document.createElement("template"));var q=JZJ;d.call(f,q.content.cloneNode(!0),c.content.firstChild);aFC=c}c=aFC;return c},{mode:2});var VxC;var XTS;var EE=function(){return _.z.apply(this,arguments)||this};
_.K(EE,_.z);EE.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"}}}};
EE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.r1(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(c){c.onShow()});
_.r1(this.hostElement).querySelector("#main-thumbnail").onShow()};
EE.prototype.onButtonTap_=function(c){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(c)};
EE.prototype.computeMainThumbnailWidth_=function(c){return c&&c.length!==0?72:96};
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.y([_.Q(zsp.YtUnlimitedFamilyInterstitialBehavior),_.D("design:type",Object)],EE.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],EE.prototype,"data",void 0);
_.y([_.L({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.D("design:type",Number)],EE.prototype,"mainThumbnailWidth_",void 0);_.y([_.L({value:function(){return this.onButtonTap_.bind(this)}}),
_.D("design:type",Function)],EE.prototype,"boundButtonTap_",void 0);_.y([_.vj({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],EE);
_.h(EE,"yt-unlimited-family-profile-interstitial-renderer",function(){if(XTS===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;VxC===void 0&&(VxC=document.createElement("template"));var q=VxC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);XTS=c}c=XTS;return c},{mode:2});var uxG;var vaS;var nb=function(){var c=_.z.apply(this,arguments)||this;c.sliderAriaValueText_=null;c.selectedIndex_=0;c.messages={PAUSE_SLIDER:_.HO("PAUSE_SLIDER",void 0,"Pause Duration")};return c};
_.K(nb,_.z);_.r=nb.prototype;_.r.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_]]"}}}}}};
_.r.onPopupOpened_=function(c){c.detail==this&&_.F("enable_premium_voluntary_pause")&&(_.gS(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.setDialogData=function(c){this.data=c;this.resetSlider_()};
_.r.dataChanged_=function(){this.data&&this.resetSlider_()};
_.r.onSubmitTap_=function(){if(this.data.confirmCommand){var c=this.data.confirmCommand;_.b(c,_.KNj)&&_.OX(this.hostElement,[c,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.r.onExitButtonTap_=function(){_.gS(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.r.closePopupHandler_=function(c,f){(f&&f.canceled===!0||f.canceled===!1&&f.confirmed===!1)&&this.handleOnDismissCommands_()};
_.r.onSliderChange_=function(){this.selectedIndex_=_.r1(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.r.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.r.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.r.resetSlider_=function(){if(this.data){var c=this.data.defaultEndOptionIndex||0,f=_.r1(this.hostElement).querySelector("#id-pause-slider");if(f.immediateValue<c)for(;f.immediateValue!=c;)f.increment();else if(c<f.immediateValue)for(;f.immediateValue!=c;)f.decrement();this.selectedIndex_=c;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.r.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.ll(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.r.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.ll(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.r.onYtServiceRequestSent=function(){this.loading=!0};
_.r.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
nb.prototype.onYtServiceRequestCompleted=nb.prototype.onYtServiceRequestCompleted;nb.prototype.onYtServiceRequestSent=nb.prototype.onYtServiceRequestSent;nb.prototype.closePopupHandler_=nb.prototype.closePopupHandler_;nb.prototype.dataChanged_=nb.prototype.dataChanged_;nb.prototype.onPopupOpened_=nb.prototype.onPopupOpened_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],nb.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],nb.prototype,"loading",void 0);_.y([_.L(),_.D("design:type",Number)],nb.prototype,"selectIndexMax_",void 0);_.y([_.L(),_.D("design:type",Object)],nb.prototype,"selectedData_",void 0);
_.y([_.L(),_.D("design:type",Object)],nb.prototype,"sliderAriaValueText_",void 0);_.y([_.L({value:function(){return this.onSubmitTap_.bind(this)}}),
_.D("design:type",Function)],nb.prototype,"onButtonTap_",void 0);_.y([_.L({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.D("design:type",Function)],nb.prototype,"onSecondaryTap_",void 0);_.y([_.L(),_.D("design:type",Object)],nb.prototype,"messages",void 0);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],nb.prototype,"onPopupOpened_",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],nb.prototype,"dataChanged_",null);
_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],nb.prototype,"closePopupHandler_",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],nb.prototype,"onYtServiceRequestSent",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],nb.prototype,"onYtServiceRequestCompleted",null);_.y([_.vj({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],nb);
_.h(nb,"yt-unplugged-pause-membership-dialog-renderer",function(){if(vaS===void 0){var c=document.createElement("template");_.n(c,'\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>');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;uxG===void 0&&(uxG=document.createElement("template"));var q=uxG;d.call(f,q.content.cloneNode(!0),c.content.firstChild);vaS=c}c=vaS;return c},{mode:2});var hsr;var wTC;var $U=function(){return _.z.apply(this,arguments)||this};
_.K($U,_.z);$U.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.yy("vcBalanceRenderer")}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],$U.prototype,"data",void 0);_.y([_.vj({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],$U);
_.h($U,"yt-vc-offer-layout-header-renderer",function(){if(wTC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;hsr===void 0&&(hsr=document.createElement("template"));var q=hsr;d.call(f,q.content.cloneNode(!0),c.content.firstChild);wTC=c}c=wTC;return c},{mode:2});var yZi;var WzC;var DXS;var esq;var Qe=function(){return _.z.apply(this,arguments)||this};
_.K(Qe,_.z);Qe.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ci.Object.defineProperties(Qe.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)}}});
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.vrT.YtTappableItemBehavior),_.D("design:type",Object)],Qe.prototype,"ytTappableItemBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Qe.prototype,"data",void 0);
_.y([_.L({reflectToAttribute:!0}),_.S("data.accessibilityText"),_.D("design:type",String),_.D("design:paramtypes",[])],Qe.prototype,"ariaLabel",null);_.y([_.L({reflectToAttribute:!0}),_.S("data.style"),_.D("design:type",String),_.D("design:paramtypes",[])],Qe.prototype,"vcOfferStyle",null);_.y([_.S("data.style","data.titleText"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],Qe.prototype,"showTitleText",null);_.y([_.vj({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Qe);
_.h(Qe,"yt-vc-offer-renderer",function(){if(esq===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;DXS===void 0&&(DXS=document.createElement("template"));var q=DXS;d.call(f,q.content.cloneNode(!0),c.content.firstChild);esq=c}c=esq;return c},{mode:2});var So=function(){return _.z.apply(this,arguments)||this};
_.K(So,_.z);So.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}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],So.prototype,"data",void 0);_.y([_.vj({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],So);
_.h(So,"yt-vc-offer-layout-renderer",function(){if(WzC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;yZi===void 0&&(yZi=document.createElement("template"));var q=yZi;d.call(f,q.content.cloneNode(!0),c.content.firstChild);WzC=c}c=WzC;return c},{mode:2});var NHG;var IFr;var P3p;var RsC;var Lb=function(){return _.z.apply(this,arguments)||this};
_.K(Lb,_.z);Lb.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}}}}}};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Lb.prototype,"data",void 0);_.y([_.vj({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Lb);
_.h(Lb,"yt-ypc-offers-modal-top-bar-renderer",function(){if(RsC===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;P3p===void 0&&(P3p=document.createElement("template"));var q=P3p;d.call(f,q.content.cloneNode(!0),c.content.firstChild);RsC=c}c=RsC;return c},{mode:2});var zQ=function(){return _.z.apply(this,arguments)||this};
_.K(zQ,_.z);zQ.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"}}}}};
zQ.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
zQ.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var c=this.scrollable;c.attached&&typeof c.attached==="function"&&c.attached()};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.y([_.AY("#scrollable"),_.D("design:type",Object)],zQ.prototype,"scrollable",void 0);_.y([_.L(),_.D("design:type",Object)],zQ.prototype,"data",void 0);_.y([_.vj({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],zQ);
_.h(zQ,"yt-ypc-offers-modal-renderer",function(){if(IFr===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;NHG===void 0&&(NHG=document.createElement("template"));var q=NHG;d.call(f,q.content.cloneNode(!0),c.content.firstChild);IFr=c}c=IFr;return c},{mode:2});var UXD;var pTi;var Jj=function(){return _.z.apply(this,arguments)||this};
_.K(Jj,_.z);_.r=Jj.prototype;_.r.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}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.r1(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.r.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.gS(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.r.onYtPopupOpened_=function(c,f){(f==null?void 0:f.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.ll(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.r.onYtPopupClosed_=function(c,f){this.continueButtonTapped||f&&(f.canceled===!0||f.canceled===!1&&f.confirmed===!1)&&this.data.onDismissCommands&&_.ll(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.r.onYtServiceRequestError_=function(c){this.set("showSpinner",!1);_.fO(this.hostElement,c.detail.error.message)};
_.r.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.F("enable_ypc_spinners")?_.gS(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Jj.prototype.onYtServiceRequestError_=Jj.prototype.onYtServiceRequestError_;Jj.prototype.onYtPopupClosed_=Jj.prototype.onYtPopupClosed_;Jj.prototype.onYtPopupOpened_=Jj.prototype.onYtPopupOpened_;Jj.prototype.onYtServiceRequestCompleted_=Jj.prototype.onYtServiceRequestCompleted_;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Jj.prototype,"ytRendererstamperBehavior",void 0);
_.y([_.L(),_.D("design:type",Object)],Jj.prototype,"data",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Jj.prototype,"showSpinner",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Jj.prototype,"continueButtonTapped",void 0);_.y([_.L({value:function(){return this.onContinueTapped_.bind(this)}}),
_.D("design:type",Function)],Jj.prototype,"bindOnContinueTapped_",void 0);_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Jj.prototype,"onYtServiceRequestCompleted_",null);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],Jj.prototype,"onYtPopupOpened_",null);
_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],Jj.prototype,"onYtPopupClosed_",null);_.y([_.Ta("yt-service-request-error"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Jj.prototype,"onYtServiceRequestError_",null);_.y([_.vj({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Jj);
_.h(Jj,"yt-ypc-upgrade-dialog-renderer",function(){if(pTi===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;UXD===void 0&&(UXD=document.createElement("template"));var q=UXD;d.call(f,q.content.cloneNode(!0),c.content.firstChild);pTi=c}c=pTi;return c},{mode:2});var xXG;var oa3;var az=function(){return _.z.apply(this,arguments)||this};
_.K(az,_.z);az.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
az.prototype.computeHasButtons_=function(c){return!(!c.dismissButton&&!c.confirmButton)};
az.prototype.computeStyle_=function(c){return c||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],az.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],az.prototype,"data",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],az.prototype,"positionType",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.D("design:type",Boolean)],az.prototype,"hasButtons_",void 0);_.y([_.L({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.D("design:type",Boolean)],az.prototype,"style_",void 0);_.y([_.vj({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],az);
_.h(az,"yt-bubble-hint-renderer",function(){if(oa3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;xXG===void 0&&(xXG=document.createElement("template"));var q=xXG;d.call(f,q.content.cloneNode(!0),c.content.firstChild);oa3=c}c=oa3;return c},{mode:2});var GwF;var cJD;var Ve=function(){var c=_.fe.apply(this,arguments)||this;c.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return c};
_.K(Ve,_.fe);_.r=Ve.prototype;_.r.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.r.attached=function(){var c=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){c.$.thumbnail.onShow();c.$["header-image"].onShow()})};
_.r.handleCheckBoxUpdateAction_=function(c){this.canShowCheckboxEnabledConfirmButton=c};
_.r.computeUseOverlayForSpinner_=function(c,f){return!!c&&f};
_.r.computeShowSpinner_=function(c,f){return c||!!f};
_.r.fireOnCloseActions_=function(){var c,f=_.C(((c=this.data)==null?void 0:c.onClosedActions)||[]);for(c=f.next();!c.done;c=f.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.r.fireOnOpenCommands_=function(c){var f,d=(f=this.data)==null?void 0:f.onOpenCommands;if(d)for(c.stopImmediatePropagation(),c=_.C(d),f=c.next();!f.done;f=c.next())this.ytRendererBehavior.resolveCommand(f.value)};
_.r.fireOnDismissCommands_=function(c){var f,d=(f=this.data)==null?void 0:f.onDismissCommands;if(d)for(c.stopImmediatePropagation(),c=_.C(d),f=c.next();!f.done;f=c.next())this.ytRendererBehavior.resolveCommand(f.value)};
_.r.openPopupHandler_=function(c){c.detail==this&&this.fireOnOpenCommands_(c)};
_.r.closePopupHandler_=function(c,f){_.kt(this,"yt-confirm-dialog-close-action",[f]);this.fireOnCloseActions_();(f&&f.canceled===!0||f&&f.canceled===!1&&f.confirmed===!1)&&this.fireOnDismissCommands_(c)};
_.r.onHeaderImageChanged_=function(){var c;((c=this.data)==null?0:c.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.r.computeHasHeaderImageWidth_=function(c){return c!=void 0};
_.r.computeHasLoadingMessage=function(c){return!!c};
_.r.onHeaderImageWidthChanged_=function(){var c,f=(c=this.data)==null?void 0:c.headerImageWidth;if(f){if(c=1.25*f*2+f,this.$.main.style.width=c+"px",f=this.$.scroller.firstElementChild)f.style.minWidth=c+"px"}else this.$.main.style.width="100%"};
_.r.onThumbnailChanged_=function(){var c;((c=this.data)==null?0:c.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")};
_.r.onYtNavigate_=function(c){c=_.oV(c);c instanceof Node&&_.C$(this.$["confirm-button"]).contains(c)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.r.computePrimaryIsCancel_=function(c){return c};
_.r.computeIsCancelButtonHidden_=function(c){return c.skipCancelButton||!c.cancelButton};
_.r.computeIsCheckboxHidden_=function(c){return!c.checkbox};
_.r.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.r.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.r.onYtServiceRequestCompleted_=function(){var c;((c=this.data)==null?0:c.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.ci.Object.defineProperties(Ve,{template:{configurable:!0,enumerable:!0,get:function(){if(cJD===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;GwF===void 0&&(GwF=document.createElement("template"));var q=GwF;d.call(f,q.content.cloneNode(!0),c.content.firstChild);cJD=c}c=cJD;return c}}});
Ve.prototype.onYtServiceRequestCompleted_=Ve.prototype.onYtServiceRequestCompleted_;Ve.prototype.onYtServiceRequestSent_=Ve.prototype.onYtServiceRequestSent_;Ve.prototype.onThumbnailLoaded_=Ve.prototype.onThumbnailLoaded_;Ve.prototype.onYtNavigate_=Ve.prototype.onYtNavigate_;Ve.prototype.onThumbnailChanged_=Ve.prototype.onThumbnailChanged_;Ve.prototype.onHeaderImageWidthChanged_=Ve.prototype.onHeaderImageWidthChanged_;Ve.prototype.onHeaderImageChanged_=Ve.prototype.onHeaderImageChanged_;
Ve.prototype.closePopupHandler_=Ve.prototype.closePopupHandler_;Ve.prototype.openPopupHandler_=Ve.prototype.openPopupHandler_;_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],Ve.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);
_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],Ve.prototype,"ytEventForwardingBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],Ve.prototype,"data",void 0);_.y([_.L({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.D("design:type",Boolean)],Ve.prototype,"primaryIsCancel",void 0);_.y([_.L({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.D("design:type",Boolean)],Ve.prototype,"isCancelButtonHidden",void 0);
_.y([_.L({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.D("design:type",Boolean)],Ve.prototype,"isCheckboxHidden",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],Ve.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.y([_.L({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.D("design:type",Boolean)],Ve.prototype,"useOverlayForSpinner_",void 0);
_.y([_.L({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.D("design:type",Boolean)],Ve.prototype,"showSpinner_",void 0);_.y([_.L({value:!1}),_.D("design:type",Boolean)],Ve.prototype,"isActionInProgress_",void 0);_.y([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.D("design:type",Boolean)],Ve.prototype,"hasHeaderImageWidth_",void 0);
_.y([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.D("design:type",Boolean)],Ve.prototype,"hasLoadingMessage",void 0);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],Ve.prototype,"openPopupHandler_",null);_.y([_.Ta("yt-popup-closed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],Ve.prototype,"closePopupHandler_",null);
_.y([_.m5("data.headerImage"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ve.prototype,"onHeaderImageChanged_",null);_.y([_.m5("data.headerImageWidth"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ve.prototype,"onHeaderImageWidthChanged_",null);_.y([_.m5("data.thumbnail"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ve.prototype,"onThumbnailChanged_",null);
_.y([_.Ta("yt-navigate"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],Ve.prototype,"onYtNavigate_",null);_.y([_.Ta("yt-img-shadow-loaded"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],Ve.prototype,"onThumbnailLoaded_",null);_.y([_.Ta("yt-service-request-sent"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.UV]),_.D("design:returntype")],Ve.prototype,"onYtServiceRequestSent_",null);
_.y([_.Ta("yt-service-request-completed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,_.jc]),_.D("design:returntype")],Ve.prototype,"onYtServiceRequestCompleted_",null);_.y([_.vj({is:"yt-confirm-dialog-renderer",noInjection:!0})],Ve);var foH;var dW3;var XZ=function(){return _.z.apply(this,arguments)||this};
_.K(XZ,_.z);XZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.r1(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
XZ.prototype.computeConfirmButton_=function(c){var f={text:c.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};c.confirmNavigationEndpoint?f.navigationEndpoint=c.confirmNavigationEndpoint:c.confirmServiceEndpoint&&(f.serviceEndpoint=c.confirmServiceEndpoint);return f};
XZ.prototype.computeShowTitle_=function(c){return!(c==null||!c.title)};
_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],XZ.prototype,"data",void 0);_.y([_.L({computed:"computeShowTitle_(data)"}),_.D("design:type",Boolean)],XZ.prototype,"showTitle",void 0);_.y([_.vj({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],XZ);
_.h(XZ,"yt-fancy-dismissible-dialog-renderer",function(){if(dW3===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;foH===void 0&&(foH=document.createElement("template"));var q=foH;d.call(f,q.content.cloneNode(!0),c.content.firstChild);dW3=c}c=dW3;return c});var jCi;var qqD;var u8=function(){var c=_.z.apply(this,arguments)||this;c.spinnerActive=!1;return c};
_.K(u8,_.z);u8.prototype.created=function(){tcH(2201)};
u8.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
u8.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
u8.prototype.onIronOverlayClosed=u8.prototype.onIronOverlayClosed;u8.prototype.onIronOverlayOpened=u8.prototype.onIronOverlayOpened;_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.RJ),_.D("design:type",Object)],u8.prototype,"tpYtIronOverlayBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],u8.prototype,"data",void 0);_.y([_.L(),_.D("design:type",Object)],u8.prototype,"spinnerActive",void 0);
_.y([_.Ta("iron-overlay-opened"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],u8.prototype,"onIronOverlayOpened",null);_.y([_.Ta("iron-overlay-closed"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],u8.prototype,"onIronOverlayClosed",null);_.y([_.vj({is:"yt-loading-renderer",disableElementRegistration:!0})],u8);
_.h(u8,"yt-loading-renderer",function(){if(qqD===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;jCi===void 0&&(jCi=document.createElement("template"));var q=jCi;d.call(f,q.content.cloneNode(!0),c.content.firstChild);qqD=c}c=qqD;return c},{mode:2});var ZKD;var M1C;var vc=function(){var c=_.z.apply(this,arguments)||this;c.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);c.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);c.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";c.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return c};
_.K(vc,_.z);_.r=vc.prototype;_.r.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.r.onDarkModeToggledAction=function(c){this.isDarkTheme=c};
_.r.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.r.openPopupHandler_=function(c){c.detail===this.hostElement&&this.hostElement.hidden&&_.gS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.r.onDismissButtonTap_=function(){var c;this.closeOnDismissButton_.has(((c=this.data)==null?void 0:c.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.gS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.r.onAcceptButtonTap_=function(){var c;this.closeOnAcceptButton_.has(((c=this.data)==null?void 0:c.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.gS(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.r.computeHasHeader_=function(c){return!!c.headerBackgroundImage};
_.r.computeLayoutStyle_=function(c){return c};
_.r.computePopupSize_=function(c){return c};
_.r.computeIconType_=function(c){return c.dialogIcon&&c.dialogIcon.iconType?c.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":c.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":c.dialogIcon.iconType:""};
_.r.computeIsLogo_=function(c){return!!c.dialogIcon&&!!c.dialogIcon.iconType&&(c.dialogIcon.iconType==="YOUTUBE_LOGO"||c.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||c.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.r.computeHasCustomLogo=function(c){return!(c==null||!c.headerForegroundImage)};
_.r.computeCustomLogo=function(c,f){if(c!=null&&c.headerForegroundImage)return c.headerForegroundImageDark?f?c.headerForegroundImageDark:c.headerForegroundImage:c.headerForegroundImage};
_.r.computeHeaderBackgroundImage=function(c,f){if(c!=null&&c.headerBackgroundImage)return f&&(c==null?0:c.headerBackgroundImageDark)?c.headerBackgroundImageDark:c.headerBackgroundImage};
_.r.shouldShowIconContainer=function(c,f){return c&&!f};
_.r.shouldShowNonYouTubeIcon=function(c,f){return!c&&!f};
_.r.getLogoImageId=function(c){var f,d,q;return(c=(f=this.computeCustomLogo(c,this.isDarkTheme))==null?void 0:(d=f.thumbnails)==null?void 0:(q=d[0])==null?void 0:q.height)&&c%31===0?"custom-logo-with-padding":"custom-logo"};
vc.prototype.openPopupHandler_=vc.prototype.openPopupHandler_;vc.prototype.dataChanged_=vc.prototype.dataChanged_;_.y([_.Q(_.rT.YtRendererstamperBehavior),_.D("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.y([_.L(),_.D("design:type",Boolean)],vc.prototype,"isDarkTheme",void 0);
_.y([_.L({computed:"computeCustomLogo(data, isDarkTheme)"}),_.D("design:type",Object)],vc.prototype,"customLogo",void 0);_.y([_.L({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.D("design:type",Object)],vc.prototype,"headerBackgroundImage",void 0);_.y([_.L(),_.D("design:type",Object)],vc.prototype,"data",void 0);_.y([_.L({computed:"computeHasHeader_(data)"}),_.D("design:type",Boolean)],vc.prototype,"hasHeader",void 0);
_.y([_.L({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.D("design:type",Object)],vc.prototype,"layoutStyle",void 0);_.y([_.L({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.D("design:type",Object)],vc.prototype,"popupSize",void 0);_.y([_.L({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],vc.prototype,"hasLogo",void 0);
_.y([_.L({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.D("design:type",Boolean)],vc.prototype,"hasCustomLogo",void 0);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],vc.prototype,"dataChanged_",null);_.y([_.Ta("yt-popup-opened"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],vc.prototype,"openPopupHandler_",null);
_.y([_.vj({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],vc);
_.h(vc,"yt-upsell-dialog-renderer",function(){if(M1C===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;ZKD===void 0&&(ZKD=document.createElement("template"));var q=ZKD;d.call(f,q.content.cloneNode(!0),c.content.firstChild);M1C=c}c=M1C;return c},{mode:2});var rJC=_.dN(function(c){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.B(_.T,{cond:c.title,then:function(f){return _.B("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},f)}}))},"Lg"),CvC=_.dN(function(c){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.B(_.u7,{data:c.closeButton},{buttonViewModel:function(f){return _.B("div",null,_.B(_.mN,{data:f.data}))}}))},"Mg"),gyp=_.dN(function(c){var f=
c.data;
return _.B(_.qD,null,_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.B(_.T,{cond:function(){return!!f().image&&!!f().title},
then:function(){return _.B(_.jC,{data:function(){return f().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.B(_.T,{cond:function(){return f().title},
then:function(d){return _.B("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},d)}}),_.B(_.T,{cond:function(){return f().primaryGenre},
then:function(d){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},d)}}))),_.B(_.T,{cond:function(){var d=f().description;
return d&&d.length<=150},
then:function(){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return f().description}))}}))},"Ng"),kOQ=_.dN(function(c){c=c.infoRows;
var f=_.ql().resolve(_.PT),d=_.F("enable_displaying_ppn");return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.B(_.bd,{each:c},function(q){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.B(_.T,{cond:function(){return q.label},
then:function(Z){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},Z)}}),_.B(_.T,{cond:function(){return q.attributedLabel},
then:function(Z){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.B(_.J9,{text:Z,noPreWrap:!0}))}}),_.B(_.T,{cond:function(){return q.value},
then:function(Z){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},Z)}}),_.B(_.T,{cond:function(){return q.attributedValue},
then:function(Z){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.B(_.J9,{text:Z,noPreWrap:!0}))}}))}),_.B(_.T,{cond:function(){return d&&f.clientData.has("post_play_nonce")},
then:function(){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},f.getData("post_play_nonce")))}}))},"Og"),OK3=_.dN(function(c){var f=c.data;
return _.B("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.B(rJC,{title:function(){return f().dialogTitle}}),_.B(gyp,{data:f}),_.B(_.T,{cond:function(){return f().infoRow},
then:function(d){return _.B(kOQ,{infoRows:d})}}),_.B(CvC,{closeButton:function(){return f().closeButton}}))},"Pg");
OK3.idomCompat=!0;_.g_(OK3,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;return _.B("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.B(_.jC,{data:function(){return f().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.B("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.B("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.B(_.T,{cond:function(){var d=f().ytLogo;return d?d.iconType:null},
then:function(d){return _.B(_.Qy,{icon:d,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.B("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.B("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.B(_.J9,{text:function(){return f().title}})),_.B("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.B(_.J9,{text:function(){return f().body}})),_.B("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.B(_.J9,{text:function(){return f().verifyStateText}}))),
_.B("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.B("div",null,_.B(_.u7,{data:function(){return f().dismissButton}},{buttonViewModel:_.mN})),_.B("div",null,_.B(_.u7,{data:function(){return f().linkParentButton}},{buttonViewModel:_.mN})))))},"Qg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.oM}});var loq=_.dN(function(c){var f=c.data;c=_.Ga(function(){return f().agreements},[]);
return _.B("installment-agreements-view-model",{class:_.FY("ytInstallmentAgreementsViewModelHost")},_.B(_.bd,{each:c},function(d){return _.B("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.B("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.B(_.J9,{text:d.label})),_.B("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.B(_.u7,{data:function(){return d.openButton}},{buttonViewModel:_.mN})))}))},"Rg");
loq.idomCompat=!0;var sCi=_.dN(function(c){return _.B("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.B(_.J9,{text:function(){return c.data().inviteMessage}})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.B(_.J9,{text:function(){return c.data().attributedAccountSectionHeaderText}})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.B(_.u7,{data:function(){return c.data().accountAvatar}},{avatarViewModel:_.ag}),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.B(_.J9,{text:function(){return c.data().accountName}}),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.B(_.J9,{text:function(){return c.data().handle}}))),_.B(_.u7,{data:function(){return c.data().trailingButton}},{buttonViewModel:_.mN})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.B(_.J9,{text:function(){return c.data().termsOfService}})))},"Sg");var Bp3=_.dN(function(c){var f=_.C(_.ns(function(){var R,qN;return((R=c.data().createPlaylistDialogFormSchema)==null?0:(qN=R.initialValues)==null?0:qN.title)?c.data().createPlaylistDialogFormSchema.initialValues.title:""})),d=f.next().value,q=f.next().value;
f=_.C(_.ns(function(){c.data();return!1}));
var Z=f.next().value,M=f.next().value;f=_.C(_.ns(function(){c.data();return!1}));
var g=f.next().value,O=f.next().value;f=_.C(_.ns(function(){var R,qN;return(R=c.data().createPlaylistDialogFormSchema)==null?void 0:(qN=R.initialValues)==null?void 0:qN.visibility}));
var l=f.next().value,m=f.next().value;f=_.C(_.ns(function(){c.data();return!1}));
var H=f.next().value,A=f.next().value;f=_.C(_.ns(function(){var R,qN;return(R=c.data().createPlaylistDialogFormSchema)==null?void 0:(qN=R.initialValues)==null?void 0:qN.isCollaborative}));
var Y=f.next().value,t=f.next().value,E=_.xz("div");_.$k(function(){var R=E.value.querySelector("textarea");R&&(R.value=d())},"OCauEe");
_.L9(function(){var R;_.tZ3((R=c.data().createPlaylistDialogFormSchema)==null?void 0:R.id,{onSubmit:function(){var qN=d();var kl=l(),BN=Y(),tP=c.data();qN={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:qN,privacyStatus:kl,videoIds:tP.videoIds,sourcePlaylistId:tP.sourcePlaylistId,params:BN?tP.createPlaylistParamsCollaborationEnabled:tP.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.ql().resolve(_.ZM).resolveCommand(qN)},
isValid:function(){return Z()&&!g()&&!H()}})});
var J=function(R){if(R!==void 0&&(q(R),!Z()&&R.length>0&&M(!0),Z())){var qN=Qfp(c.data());if(qN){var kl=qN.minLength;qN=qN.maxLength;kl&&R.length<kl?O(!0):qN&&R.length>qN?O(!0):O(!1)}}},X=function(){var R=!(!Y()||l()!=="PRIVATE");
A(R)},u=function(R){R!==void 0&&(m(R),X())},W=function(){if(H())return Ltr(c.data())},p=function(){t(!Y());
X()},N=function(){return{validate:function(R){if(Z()){var qN=Qfp(c.data());
if(qN){var kl=qN.minLength;qN=qN.translations;if(kl&&R.length<kl)return qN==null?void 0:qN.minLengthErrorMessage}}}}},I=function(){var R=Qfp(c.data()),qN=R==null?void 0:R.maxLength,kl;
R=R==null?void 0:(kl=R.translations)==null?void 0:kl.maxLengthErrorMessage;if(qN&&R)return{maxChars:qN,errorMessage:R}};
return _.B("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.B("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:E},_.B(_.u7,{data:function(){return c.data().playlistTitle}},{textFormFieldViewModel:function(R){return _.B(_.iWc,{data:R.data,
text:d,onInput:J,validation:N,characterLimit:I})},
textFieldViewModel:function(R){return _.B(_.BKG,{data:R.data,text:d,onInput:J,validation:N,characterLimit:I})}})),_.B("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.B(_.u7,{data:function(){return c.data().playlistVisibility}},{dropdownViewModel:function(R){return _.B(_.$ui,{data:R.data,
onSelected:u,error:W})}})),_.B(_.T,{cond:function(){return!!c.data().playlistCollaborate},
then:function(){return _.B("div",null,_.B(_.u7,{data:function(){return c.data().playlistCollaborate}},{switchListItemViewModel:function(R){return _.B(_.D7H,{data:R.data,
onTap:p})}}))}}))},"Tg");var iKF=_.dN(function(c){var f=c.data;return _.B("upsell-offer-table-cell-content-view-model",null,_.B("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.B(_.n9,null,_.B(_.K9,{when:function(){return f().iconType}},function(){return _.B("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.B(_.Qy,{icon:function(){return f().iconType.toString()}}))}),_.B(_.K9,{when:function(){return f().title}},function(){return _.B(_.J9,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return f().title}})}),_.B(_.K9,{when:function(){return f().subtitle}},function(){return _.B(_.J9,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return f().subtitle}})}),_.B(_.K9,{when:function(){return f().infoText}},function(){return _.B(_.J9,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return f().infoText}})}),_.B(_.K9,{when:function(){return f().featureDescription}},function(){return _.B(_.J9,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return f().featureDescription}})}),_.B(_.K9,{when:function(){return f().note}},function(){return _.B(_.J9,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return f().note}})}))))},"Ug");
iKF.idomCompat=!0;var TpC=_.dN(function(c){var f=c.data;return _.B("upsell-offer-table-cell-view-model",null,_.B("div",{class:_.FY("ytUpsellOfferTableCellViewModelCellWrapper",function(){return f().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.B(_.u7,{data:function(){return f().contents}},{upsellOfferTableCellContentViewModel:iKF})))},"Vg");
TpC.idomCompat=!0;var mWq=_.dN(function(c){var f=c.data;var d=c.upsellTableIsFirstRow;var q=function(){return(d==null?0:d())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},Z=function(){return(d==null?0:d())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.B("ytm-upsell-offer-table-row-view-model",null,_.B("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.B(_.u7,{data:function(){return f().rowHeaderCell}},{upsellOfferTableCellViewModel:function(M){return _.B("div",{class:q},_.B(TpC,{data:M.data}))}}),_.B(_.u7,{data:function(){return f().contentCells}},{upsellOfferTableCellViewModel:function(M){return _.B("div",{class:Z},_.B(TpC,{data:M.data}))}})))},"Wg");
mWq.idomCompat=!0;var HKH=_.dN(function(c){var f=c.data;return _.B("ytm-upsell-offer-table-view-model",null,_.B("div",{class:"ytUpsellOfferTableViewModelHost"},_.B("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.B(_.u7,{data:function(){return f().rows}},{upsellOfferTableRowViewModel:function(d,q){return _.B(mWq,{data:d.data,
upsellTableIsFirstRow:function(){return q()===0}})}}))))},"Xg");
HKH.idomCompat=!0;var AJH=_.dN(function(c){var f=_.Ga(c.noPadding,!1),d=function(){var M,g;return(g=(M=c.data().logo.accessibilityData)==null?void 0:M.label)!=null?g:""},q=function(){return c.data().offerTable},Z={};
return _.B("upsell-view-model",{class:_.FY("ytUpsellViewModelHost",(Z.ytUpsellViewModelHostNoPadding=function(){return f()},Z.ytUpsellViewModelHostWide=function(){return q()!==void 0},Z))},_.B("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.B(_.T,{cond:function(){return _.oe(c.data().logo)},
then:function(M){return _.B(_.jC,{data:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:d})}})),_.B("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.B(_.J9,{text:function(){return c.data().title}})),_.B("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.B(_.bd,{each:function(){var M;
return(M=c.data().subtitles)!=null?M:[]},
keyBy:"INDEX"},function(M){var g={};return _.B("div",{class:_.FY("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(g.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return q()!==void 0},g))},_.B(_.J9,{text:M}))})),_.B("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.B(_.bd,{each:function(){var M;
return(M=c.data().benefitInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){return _.B(_.T,{cond:function(){return M().info},
then:function(g){return _.B("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.B(_.Qy,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.B(_.J9,{text:g}))}})})),_.B(_.T,{cond:function(){return q()!==void 0},
then:function(){return _.B("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.B(HKH,{data:q}))}}),_.B("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.B(_.bd,{each:function(){var M;
return(M=c.data().legalInfos)!=null?M:[]},
keyBy:"INDEX"},function(M){var g={};return _.B("div",{class:_.FY("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(g.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return q()!==void 0},g))},_.B(_.J9,{text:M}))})))},"Yg");var Yqq=_.dN(function(c){var f=c.data;c={};c=(c.ytMiniAppScoreChallengeViewModelScoreRadial=!0,c.ytMiniAppScoreChallengeViewModelDarkScoreRadial=zDD(),c);return _.B("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.B("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return f().title}),_.B("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return f().subtitle}),_.B("div",{class:_.tp(c)},_.B("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return f().score})),_.B("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return f().prompt}))},"Zg");var Fr3=function(){this.store=_.xE();this.formId=""};
Fr3.prototype.onInit=function(c){c.formId&&(this.formId=c.formId,this.store.dispatch(_.CC({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var t1F=_.dN(function(c){function f(O){if(O&&(O=_.b(O,_.$v)))return Object.assign({},O,{isSelected:M()})}
var d=_.C(_.ns(function(){var O,l;return(l=(O=_.b(c.data().option,_.$v))==null?void 0:O.isSelected)!=null?l:!1})),q=d.next().value,Z=d.next().value,M=q;
_.L9(function(){var O;_.tZ3((O=c.data().formSchema)==null?void 0:O.id,{onSubmit:function(){var l=_.ql().resolve(_.ZM),m=!!c.data().selectedCommand,H=!!c.data().unselectedCommand;if(M()){if(m)var A=c.data().selectedCommand}else H&&(A=c.data().unselectedCommand);A=_.D9(A);f(c.data().option)&&!A?(l="",!m&&H?l="selected ":m&&!H&&(l="unselected "),m=new _.KD("No "+l+"command found for SelectionListItemFormViewModel"),_.VO(m)):A&&l.resolveCommand(A)},
isValid:function(){return!0}})});
var g=function(){Z(!M())};
_.Q4(function(){var O,l,m=(O=c.data())==null?void 0:(l=O.formSchema)==null?void 0:l.id;m&&_.Y6S()().delete(m)});
return _.B("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.B("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.B(_.J9,{text:function(){return c.data().paragraph}})),_.B(_.T,{cond:function(){return f(c.data().option)},
then:function(O){return _.B(_.hX,{data:O,isCompact:!0,hideSelectionTextChevron:!0,onTap:g,disableHorizontalPadding:!0})}}))},"$g");var bKD=_.dN(function(c){var f=c.data;var d=c.disablePadding;var q=c.className;var Z=_.xz("yt-dialog-header-view-model"),M=function(){var O=f().imageBanner;a:switch(f().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var l="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:l="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:O,style:l,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},g=function(){return f().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.L9(function(){var O=function(){_.gS(Z.value,"yt-refit-popups-action")},l;
(l=Z.value)==null||l.addEventListener("image-loaded",O);_.Q4(function(){var m;(m=Z.value)==null||m.removeEventListener("image-loaded",O)})});
c={};return _.B("yt-dialog-header-view-model",{el:Z,class:_.FY(q,(c.ytDialogHeaderViewModelHost=!0,c.ytDialogHeaderViewModelHostDisablePadding=d,c))},_.B(_.T,{cond:function(){return f().imageBanner},
then:function(){var O={};return _.B("div",{class:_.FY(q,(O.ytDialogHeaderViewModelBanner=!0,O.ytDialogHeaderViewModelBannerFullBleed=g,O)),style:_.$Z({"max-height":function(){return f().assetContainerMaxHeight!==void 0?f().assetContainerMaxHeight+"px":void 0}})},_.B(_.CQ,{data:M,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.B(_.T,{cond:function(){return f().headerBlock},
then:function(){return _.B("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.B(_.u7,{data:function(){return f().headerBlock}},{contentPreviewImageViewModel:function(O){return _.B(_.CQ,{data:O.data,
notifyOnLoaded:!0})}}))}}),_.B(_.T,{cond:function(){return f().customBanner},
then:function(O){return _.B("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.B(_.u7,{data:O},{avatarStackViewModel:_.XS}))}}),_.B(_.T,{cond:function(){return f().headline},
then:function(O){return _.B("h2",null,_.B(_.J9,{text:O,className:"ytDialogHeaderViewModelText"}))}}))},"ah");
bKD.idomCompat=!0;var KrC=_.dN(function(c){var f=_.b9S(function(){return c.data().formId}),d=f.onSubmit,q=f.isValid;
return _.B("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.B(_.u7,{data:function(){return c.data().panelFooter}},{panelFooterViewModel:function(Z){return _.B(_.qZ,{data:Z.data,
disablePadding:!0,disablePrimaryButton:function(){return!q()},
onClickPrimaryButton:function(){d()}})}}))},"bh");var EyS=_.dN(function(c){var f=function(){var d,q;return(q=(d=_.b(c.data().rendererContext,_.Kz))==null?void 0:d.label)!=null?q:""};
return _.B("yt-dialog-image-content-view-model",{class:_.FY("ytDialogImageContentViewModelHost",c.className)},_.B(_.T,{cond:function(){return _.oe(c.data().image)},
then:function(d){return _.B(_.jC,{data:d,alt:f,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.B(_.J9,{text:function(){return c.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"ch");var QCQ=_.dN(function(c){var f=_.ch(c,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),d=f.elRefCallback;c=f.iconWiz;var q=f.assetWiz,Z=f.assetType,M=f.titleWiz,g=f.leadingActionHeaderWiz,O=f.trailingActionHeaderWiz,l=f.headerPosition,m=f.contentWiz,H=f.buttonLayout,A=f.buttonStyle,Y=f.primaryButtonWiz,t=f.secondaryButtonWiz,E=f.contentAlignment,J=f.isFullscreen,X=f.width,u=f.maxHeight,W=f.isHeaderWizDefined,
p=f.headerWiz,N=f.isFooterWizDefined,I=f.footerWiz;f=_.xz("dialog-layout",function(ue){d==null||d(ue)});
var R=q?function(){return q({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,qN=Y?function(){var ue={};
return Y({buttonOverrides:function(){return{style:(A==null?void 0:A())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.FY((ue["yt-spec-dialog-layout__dialog-layout-button"]=!0,ue["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(H==null?void 0:H())===0||(H==null?void 0:H())===2},ue))})}:void 0,kl=t?function(){var ue={};
return t({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.FY((ue["yt-spec-dialog-layout__dialog-layout-button"]=!0,ue["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(H==null?void 0:H())===0||(H==null?void 0:H())===2},ue))})}:void 0,BN=function(){return(!!M||!!g||!!O)&&l()===0},tP={},EC={},AP={},eM={};
return _.B("dialog-layout",{el:f,class:_.FY((tP["yt-spec-dialog-layout"]=!0,tP["yt-spec-dialog-layout--dialog-layout-fullscreen"]=J,tP["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!J()},tP["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return u()===1},tP["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Z==null?void 0:Z())===1},tP)),
style:function(){return(X==null?void 0:X())!==void 0?"width: "+X+"px;":""}},c?_.B("div",{class:_.FY((EC["yt-spec-dialog-layout__dialog-layout-icon"]=!0,EC["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!q&&l()===1},EC["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return E()===1},EC))},_.B(c,null)):null,_.B(_.T,{cond:W,
then:function(){return p?_.B("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.B(p,null)):null},
else:function(){return _.B(_.qD,null,_.B(_.T,{cond:BN,then:function(){return _.B(nyr,{contentAlignment:E,LeadingActionHeader:g,TrailingActionHeader:O,Title:M,isAboveAsset:!!R})}}),R?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.B(R,null)):null)}}),_.B("div",{class:_.FY((AP["yt-spec-dialog-layout__dialog-layout-container"]=!0,AP["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(E==null?void 0:E())===1},AP["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!M&&!p||!!R&&(l==null?void 0:l())===0},AP))},_.B(_.T,{cond:function(){return M&&!p&&(l==null?void 0:l())===1},
then:function(){return _.B(nyr,{contentAlignment:E,LeadingActionHeader:g,TrailingActionHeader:O,Title:M,isAboveAsset:!1})}}),m?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.B(m,null))):null,_.B(_.T,{cond:N,
then:function(){return I?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.B(I,null)):null}}),qN||kl?_.B($Wp,{footerClasses:_.FY((eM["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,eM["yt-spec-dialog-layout__dialog-layout-footer"]=!0,eM["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(H==null?void 0:H())===2},eM["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(H==null?void 0:H())===1},eM)),
PrimaryButton:qN,SecondaryButton:kl}):null))},"dh"),nyr=_.dN(function(c){var f=_.ch(c,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),d=f.contentAlignment,q=f.LeadingActionHeader;c=f.Title;var Z=f.TrailingActionHeader,M=f.isAboveAsset,g=f.enableLeadingActionHeader;f={};return _.B("div",{class:_.FY((f["yt-spec-dialog-layout__dialog-header-container"]=!0,f["yt-spec-dialog-layout__dialog-header"]=!0,f["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=M,f["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(d==null?void 0:d())===1&&g()},f))},_.B(_.T,{cond:function(){return g()},
then:function(){return q?_.B("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.B(q,null)):null}}),c?_.B("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.B(c,null)):null,Z?_.B("div",null,_.B(Z,null)):null)},"eh"),$Wp=_.dN(function(c){var f=c.footerClasses;
var d=c.PrimaryButton;c=c.SecondaryButton;return _.B("div",{class:f},c?_.B(c,null):null,d?_.B(d,null):null)},"fh");var Sq3=_.dN(function(c){var f=c.data;return _.B("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.B("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.B(_.u7,{data:function(){return f().avatar}},{avatarViewModel:_.ag})),_.B("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.B(_.J9,{text:function(){return f().title}})),_.B(_.J9,{text:function(){return f().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"gh");var Lrp=_.dN(function(c){var f=c.data;return _.B("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.B("div",{class:"ytAccessConfirmationViewModelContent"},_.B(_.u7,{data:function(){var d;return(d=f().avatar)!=null?d:f().dualAvatar}},{dualAvatarViewModel:function(d){return _.B(_.tfH,{data:d.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(d){return _.B(_.VV,{data:d.data})}}),_.B("h2",{class:"ytAccessConfirmationViewModelTitle"},_.B(_.J9,{text:function(){return f().title}})),_.B(_.J9,{text:function(){return f().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"hh");var zZq=_.dN(function(c){var f=c.data;var d=void 0;c=_.C(_.ns(function(){var m;return((m=_.b(f().content,_.y4S))==null?void 0:m.defaultSelectedKey)||""}));
var q=c.next().value,Z=c.next().value,M,g=function(){Z("");var m;(m=d)!=null&&m.store.dispatch(_.CC({type:"RESET_COMMAND_MAP"}))};
_.L9(function(){d=new Fr3;window.addEventListener("yt-popup-closed",g)});
_.$k(function(){if(d&&M!==f().formId&&(d.onInit(f()),(M=f().formId)&&q())){var m=d,H={key:q()};H.command&&m.store.dispatch(QvH(M,H.command))}},"k6b6Qe");
_.Q4(function(){window.removeEventListener("yt-popup-closed",g)});
var O=function(m,H,A){H.key&&A&&H.key!==q()&&(Z(H.key),d&&H.command&&d.store.dispatch(QvH(A,H.command)))},l=function(){if(_.b(f().content,_.y4S))return!(q==null?0:q())};
return _.B("yt-dialog-view-model",{class:_.FY("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.B(QCQ,{headerWiz:function(){return _.B("span",{skip:!0},_.B(_.u7,{data:function(){return f().header}},{dialogHeaderViewModel:function(m){return _.B(bKD,{data:m.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!f().header},
contentWiz:function(){return _.B("span",{skip:!0},_.B(_.u7,{data:function(){return f().customContent?f().customContent:f().content}},{basicContentViewModel:_.tFC,
createPlaylistDialogFormViewModel:Bp3,collaborativePlaylistInviteMessageViewModel:sCi,miniAppScoreChallengeViewModel:Yqq,radioButtonGroupViewModel:function(m){var H=m.data;return _.B(_.KjQ,{data:H,selectedKey:q,onSelected:O,groupName:function(){return H().formId}})},
selectionListItemFormViewModel:t1F,upsellViewModel:function(m){return _.B(AJH,{data:m.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Sq3,installmentAgreementsViewModel:loq,accessConfirmationViewModel:Lrp,listViewModel:function(m){return _.B(_.x7j,{data:m.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:EyS}))},
footerWiz:function(){return _.B("span",{skip:!0},_.B(_.u7,{data:function(){return f().footer}},{panelFooterViewModel:function(m){return _.B(_.qZ,{data:m.data,
disablePadding:!0,disablePrimaryButton:l})},
formPanelFooterViewModel:KrC,formFooterViewModel:function(m){return _.B(_.gz3,{data:m.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!f().footer}}))},"ih");
zZq.idomCompat=!0;_.g_(zZq,"yt-dialog-view-model",{props:{data:_.oM},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var JJp=_.dN(function(c){var f=c.data;c={};return _.B("yt-panel-header-view-model",{class:_.FY("yt-panel-header-view-model-wiz",(c["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!f().shouldHideDivider},c["yt-panel-header-view-model-wiz--compact"]=function(){return!!f().subtitle},c))},_.B("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.B(_.T,{cond:function(){return f().title},
then:function(d){return _.B(_.J9,{text:d,className:"yt-panel-header-view-model-wiz__title"})}}),_.B(_.T,{cond:function(){return f().subtitle},
then:function(d){return _.B(_.J9,{text:d,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.B("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.B(_.u7,{data:function(){return f().trailingButtons}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"jh");
JJp.idomCompat=!0;var aoF=_.dN(function(c){var f=_.Ks(function(M){var g;if((g=c.skipContentClick)==null?0:g.call(c))return!1;c.onContentWrapperClick(M);return!0}),d,q,Z;
return _.B("div",{class:_.FY("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return c.isAnimating()?"transform: translateY("+c.currentY()+"px);transition: 0.2s":""}},(d=c.header)==null?void 0:d.call(c),_.B("div",{id:c.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.$Z({"max-height":(0,_.Xn)(c.maxHeightForContentWrapper)}),"on:scroll":Xhc(c.onScroll),"on:touchmove":Xhc(function(M){return void M.stopPropagation()})},_.B("div",{el:{onRender:c.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":f},(q=c.body)==null?void 0:q.call(c))),(Z=c.footer)==null?void 0:Z.call(c))},"kh");
aoF.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var V1F=_.dN(function(c){var f=_.Ga(c.leadingLabel),d=_.Ga(c.trailingLabel),q=_.Ga(c.footerButtonType),Z=function(){return f()||d()||c.hasPrimaryButton()||c.hasSecondaryButton()},M={},g=_.FY("yt-spec-bottom-sheet-layout__primary-button",(M["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return q()===0&&c.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return q()===1&&c.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return q()===2&&c.hasPrimaryButton()},M["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return q()===3&&c.hasPrimaryButton()},M));
M={};var O=_.FY("yt-spec-bottom-sheet-layout__secondary-button",(M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return q()===1&&c.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return q()===2&&c.hasSecondaryButton()},M["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return q()===3&&c.hasPrimaryButton()},M));
return _.B(_.T,{cond:c.hasFooterOverride,then:function(){var l;return _.B(_.qD,null,(l=c.footerOverride)==null?void 0:l.call(c))},
else:function(){return _.B(_.T,{cond:Z,then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.B(_.T,{cond:function(){return f()||d()},
then:function(){var l={};return _.B("div",{class:_.FY("yt-spec-bottom-sheet-layout__footer-label-wrapper",(l["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!c.hasPrimaryButton()},l))},_.B(_.T,{cond:f,
then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},f)}}),_.B(_.T,{cond:d,
then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},d)}}))}}),_.B(_.T,{cond:function(){return c.hasPrimaryButton()||c.hasSecondaryButton()},
then:function(){var l={};return _.B("div",{class:_.FY("yt-spec-bottom-sheet-layout__footer-button-wrapper",(l["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Ic3,l))},_.B(_.T,{cond:function(){return c.hasSecondaryButton()&&q()!==0},
then:function(){var m;return _.B("div",{class:O},(m=c.secondaryButton)==null?void 0:m.call(c))}}),_.B(_.T,{cond:c.hasPrimaryButton,
then:function(){var m;return _.B("div",{class:g},(m=c.primaryButton)==null?void 0:m.call(c))}}))}}))}})}})},"lh");
V1F.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var XMH=_.dN(function(c){var f=_.Ga(c.title),d=_.Ga(c.subtitle);return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:c.headerId,"on:touchstart":_.Ks(function(q){var Z;(Z=c.touchstart)==null||Z.call(c,q);return!1}),
"on:touchmove":_.Ks(function(q){var Z;(Z=c.touchmove)==null||Z.call(c,q);return!1}),
"on:touchend":_.Ks(function(q){var Z;(Z=c.touchend)==null||Z.call(c,q);return!1})},_.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.B(_.T,{cond:c.hasHeaderOverride,
then:function(){var q;return _.B(_.qD,null,(q=c.headerOverride)==null?void 0:q.call(c))},
else:function(){var q={};return _.B("div",{class:_.FY((q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=f,q))},_.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.B(_.T,{cond:f,then:function(){return _.B(_.qD,null,_.B("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},f),_.B(_.T,{cond:d,then:function(){return _.B("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
d)}}))}})),_.B(_.T,{cond:function(){return f()&&c.hasActionHeader()},
then:function(){var Z;return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Z=c.actionHeader)==null?void 0:Z.call(c))}}))}}))},"mh");
XMH.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.dN(function(c){function f(R){if(!u&&typeof MutationObserver!=="undefined"){var qN={childList:!0};"MutationObserver"in window&&(u=new MutationObserver(d.bind(void 0,R)),u.observe(R,qN))}}
function d(R){typeof u!=="undefined"&&(W["content-wrapper"]===void 0&&(W["content-wrapper"]=R.children[0].clientHeight),t(W["content-wrapper"]),Y()>E()||J(Y()))}
function q(){A(window.innerHeight);Y()>E()||J(Y());p.isFullScreen[0]()&&Y()>E()?N().dispatch("Snap To Full Screen",{maxHeight:X()}):N().dispatch("Snap To Neutral Position",{maxHeight:E()})}
function Z(R){document.body.style.overscrollBehavior="none";R.preventDefault();N().dispatch("Touch Start",{event:R})}
function M(R){R.preventDefault();N().dispatch("Touch Move",{event:R,contentScrollable:Y()>E(),fullContentWrapperHeight:X(),contentWrapperHeight:E(),contentHeightMap:W,contentWrapperId:"content-wrapper",header:vpq(c),footer:vpq(c)})}
function g(){document.body.style.overscrollBehavior="";p.isFullScreen[0]()?p.currentY[0]()>=60?N().dispatch("Snap To Neutral Position",{maxHeight:E()}):N().dispatch("Snap To Full Screen",{maxHeight:X()}):p.currentY[0]()>=60?O():p.currentY[0]()<=-60&&Y()>E()?N().dispatch("Snap To Full Screen",{maxHeight:X()}):N().dispatch("Snap To Neutral Position",{maxHeight:E()})}
function O(){N().dispatch("Close Sheet",{clientHeight:H(),maxHeight:0});setTimeout(function(){uNC()},250)}
var l=_.C(_.OT(window.innerHeight,void 0,"NWeFS")),m=l.next().value;l=l.next().value;var H=m,A=l;l=_.C(_.OT(0,void 0,"oxfm4"));m=l.next().value;l=l.next().value;var Y=m,t=l;l=_.C(_.ns(function(){var R=vpq(c);return.6*H()-Jep(R)-a9J(R)}));
m=l.next().value;l=l.next().value;var E=m,J=l,X=function(){var R=vpq(c);return H()-Jep(R)-a9J(R)-24-24},u=null,W={},p={initialY:_.OT(0,void 0,"cYBE5c"),
currentY:_.OT(0,void 0,"RndqHc"),isAnimating:_.OT(!1,void 0,"vO9DVd"),isFullScreen:_.OT(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.ns(E)},N=function(){var R=null;return function(){if(!R){var qN={initialY:p.initialY[0](),currentY:p.currentY[0](),isAnimating:p.isAnimating[0](),isFullScreen:p.isFullScreen[0](),maxHeightForContentWrapper:p.maxHeightForContentWrapper[0]()};R=Vq3(qN)}return R}}();
_.L9(function(){window.addEventListener("resize",q);N().subscribe(function(R){p.initialY[1](R.initialY);p.currentY[1](R.currentY);p.isAnimating[1](R.isAnimating);p.isFullScreen[1](R.isFullScreen);p.maxHeightForContentWrapper[1](R.maxHeightForContentWrapper)})});
_.Q4(function(){window.removeEventListener("resize",q);u&&(u.disconnect(),u=null)});
var I=_.FY({"bottom-sheet-content-without-icon":function(){var R;return!((R=c.shouldShowIcons)==null?0:R.call(c))}});
return _.B("bottom-sheet-layout",null,_.B(aoF,{contentWrapperId:"content-wrapper",isAnimating:function(){return p.isAnimating[0]()},
currentY:function(){return p.currentY[0]()},
maxHeightForContentWrapper:function(){return p.maxHeightForContentWrapper[0]()},
shouldShowIcons:c.shouldShowIcons,skipContentClick:c.skipContentClick,onScroll:function(){var R=document.getElementById("header-wrapper"),qN=document.getElementById("content-wrapper");if(R&&qN){var kl={};kl=(kl["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,kl["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,kl);R.className=qN.scrollTop>1?_.tp(kl):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:uNC,contentWrapperEl:function(R){f(R);requestAnimationFrame(function(){d(R)})},
header:function(){return _.B(XMH,{touchstart:Z,touchmove:M,touchend:g,title:c.headerTitle,subtitle:c.headerSubtitle,headerId:"header-wrapper",headerOverride:c.headerFn,hasHeaderOverride:c.hasHeaderFn,actionHeader:c.headerActionHeader,hasActionHeader:c.hasHeaderActionHeader})},
footer:function(){return _.B(V1F,{footerButtonType:c.footerButtonType,leadingLabel:c.footerLeadingLabel,trailingLabel:c.footerTrailingLabel,primaryButton:c.footerPrimaryButton,hasPrimaryButton:c.hasFooterPrimaryButton,secondaryButton:c.footerSecondaryButton,hasSecondaryButton:c.hasFooterSecondaryButton,footerOverride:c.footerFn,hasFooterOverride:c.hasFooterFn})},
body:function(){return _.B(_.T,{cond:c.hasContentFn,then:function(){var R;return _.B("div",{class:I},(R=c.contentFn)==null?void 0:R.call(c))}})}}))},"nh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var uGC=_.dN(function(c){var f=_.ql().resolve(_.Lm);return _.B("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.Ks(function(){return void f.closeSheet()})},_.B(_.T,{cond:function(){return!!c.header},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},c.header())}}),_.B(_.T,{cond:function(){return!!c.content},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},c.content())}}),_.B(_.T,{cond:function(){return!!c.footer},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},c.footer())}}))},"oh");
uGC.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var vy3=_.dN(function(c){c=c.data;var f=_.xz("yt-sheet-view-model",function(q){if(_.F("web_focus_first_element_sheet")||!_.F("sheet_focus_first_killswitch"))return q.addEventListener("focus",function(){VOJ(q)}),function(){q.removeEventListener("focus",function(){VOJ(q)})}}),d={};
return _.B("yt-sheet-view-model",{"on:mousedown":_.Ks(function(q){_.F("sheet_focus_first_killswitch")||q.currentTarget!==q.target&&q.preventDefault()}),
"on:focus":_.Ks(function(){_.F("sheet_focus_first_killswitch")||VOJ(f.value)}),
class:_.FY("yt-sheet-view-model-wiz",(d["yt-sheet-view-model-wiz--contextual"]=!0,d["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.F("web_disable_backdrop_filter"),d)),el:f,tabindex:-1},_.B(_.T,{cond:c,then:function(q){return _.B(uGC,{header:function(){return _.B(_.u7,{data:function(){return q().header}},{panelHeaderViewModel:JJp})},
content:function(){return _.B(_.u7,{data:function(){return q().content}},{listViewModel:function(Z){return _.B(_.x7j,{data:Z.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:AJH,miniAppScoreChallengeViewModel:Yqq})},
footer:function(){return _.B(_.u7,{data:function(){return q().footer}},{panelFooterViewModel:_.qZ})}})}}))},"ph");
vy3.idomCompat=!0;_.g_(vy3,"yt-sheet-view-model",{props:{data:_.oM}});var wMc=_.dN(function(c){var f=function(){var d;return(d=c.data().enableDebuggingFeatures)!=null?d:!1};
return _.B("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.B(_.bd,{each:function(){var d;return(d=c.data().stickers)!=null?d:[]}},function(d){return _.B(hZJ,{data:function(){return d},
debugMode:f})}))},"qh"),hZJ=_.dN(function(c){var f=_.ch(c,{debugMode:!1}).debugMode,d=_.Ga(function(){var l;
return(l=c.data().region)==null?void 0:l.w},0),q=_.Ga(function(){var l;
return(l=c.data().region)==null?void 0:l.h},0),Z=_.Ga(function(){var l;
return(l=c.data().region)==null?void 0:l.x},0),M=_.Ga(function(){var l;
return(l=c.data().region)==null?void 0:l.y},0),g=_.Ks(function(){var l=c.data().onTap;
l&&_.Ph(l)}),O={};
return _.B("div",{class:_.FY("ytStoriesStickerLayerViewModelSticker",(O.ytStoriesStickerLayerViewModelDebugMode=f,O)),style:_.$Z({width:function(){return 100*d()+"%"},
height:function(){return 100*q()+"%"},
left:function(){return 100*Z()+"%"},
top:function(){return 100*M()+"%"},
"flex-direction":function(){return hDp(c.data().flexDirection)},
"justify-content":function(){return whF(c.data().justifyContent)},
"align-items":function(){return yeH(c.data().alignItems)}}),
"on:click":g},_.B(_.u7,{data:function(){return c.data().button||c.data().toggleButton}},{buttonViewModel:function(l){return _.B(_.mN,{data:l.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(l){return _.B(_.JL,{data:l.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"rh");var Wri=_.dN(function(c){var f=function(){return c.data()},d={},q=_.Ga(function(){return f().backgroundColor},0),Z=_.Ga(function(){return f().actionButtons},[]),M=_.Ga(function(){return f().stickerLayer},{}),g=function(){var l,m;
return{animationRef:d,animationConfig:{autoplay:!1,loop:!1,path:(m=(l=f().foregroundAnimation)==null?void 0:l.url)!=null?m:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){c.navigateToNextItemOnLottieComplete()}}}},O=function(){var l,m,H,A,Y,t,E,J;
return{animationConfig:{autoplay:(t=(l=f().backgroundAnimation)==null?void 0:(m=l.settings)==null?void 0:m.autoplay)!=null?t:!1,loop:(E=(H=f().backgroundAnimation)==null?void 0:(A=H.settings)==null?void 0:A.loop)!=null?E:!1,path:(J=(Y=f().backgroundAnimation)==null?void 0:Y.url)!=null?J:"",name:"stories_item_background_animation"}}};
_.$k(function(){if(c.isVisible()){var l;(l=d.lottieEl)==null||l.play();c.animationRef()&&(c.animationRef().lottieEl=d.lottieEl)}else{var m;(m=d.lottieEl)==null||m.stop()}},"Cbnkwd");
return _.B("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.$Z({"background-color":function(){return _.WS(q())+";"}})},_.B("div",{class:"ytStoriesItemViewModelAssetContent"},_.B(_.T,{cond:function(){return!!f().backgroundAnimation},
then:function(){return _.B(_.gT,{data:O,animationName:function(){return O().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.B(_.T,{cond:function(){return!!f().backgroundImage},
then:function(){return _.B(_.jC,{data:function(){return f().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.B(_.T,{cond:function(){return!!f().foregroundAnimation},
then:function(){return _.B(_.gT,{data:g,animationName:function(){return g().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.B(_.T,{cond:function(){return!!f().foregroundImage},
then:function(){return _.B(_.jC,{data:function(){return f().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.B("div",{class:"ytStoriesItemViewModelTopShadow"}),_.B(_.u7,{data:function(){return M()}},{storiesStickerLayerViewModel:wMc})),_.B("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.$Z({"background-color":function(){return _.WS(q())}})},_.B("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.B(_.bd,{each:Z},function(l){return _.B(yJc,{data:function(){return l},
pauseAutoNavigation:c.pauseAutoNavigation})}))))},"sh"),DWC={style:"overlay",
type:"outline"},yJc=_.dN(function(c){var f={};return _.B("div",{class:_.FY("ytStoriesItemViewModelActionButton",(f.ytStoriesItemViewModelStretchedActionButton=function(){return c.data().size==="STORIES_BUTTON_SIZE_STRETCH"},f)),
"on:click":_.Ks(c.pauseAutoNavigation)},_.B(_.u7,{data:function(){return c.data().button}},{buttonViewModel:function(d){return _.B(_.mN,{data:d.data,
buttonOverrides:DWC})}}))},"th");_.g_(_.dN(function(c){var f=function(){var kl;return(kl=c.data().startIndex)!=null?kl:0},d=_.C(_.ns(f)),q=d.next().value,Z=d.next().value;
d=_.C(_.OT(!1,void 0,"O8yPf"));var M=d.next().value,g=d.next().value,O=function(){var kl;return(kl=c.data().storyItems)!=null?kl:[]},l={},m=function(){return c.data().dismissButton},H=function(){var kl;
return _.D9((kl=_.b(m(),_.zx))==null?void 0:kl.onTap)},A=_.xz("div"),Y,t,E=!1,J=function(){var kl;
(kl=Y)==null||kl.cancel();Y=X(q()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});Y.onfinish=function(){X(q()).style.width="100%";var BN=_.b(O()[q()],PKS),tP,EC;BN!=null&&BN.foregroundAnimation&&((BN==null?0:(tP=BN.foregroundAnimation)==null?0:tP.url)||(BN==null?0:(EC=BN.foregroundAnimation)==null?0:EC.payload))||(q()!==O().length-1?(Z(q()+1),J()):H()&&_.eq(H()))}},X=function(kl){return A.value.children[kl].children[0]},u=function(){for(var kl=0;kl<q();kl++)X(kl).style.width=
"100%"};
d=_.Ks(function(){E||(M()?g(!1):(q()===O().length-1&&H()&&_.eq(H()),X(q()).style.width="100%",q()!==O().length-1&&(Z(q()+1),J())))});
var W=_.Ks(function(){E||(M()?g(!1):(X(q()).style.width="0%",q()!==0?Z(q()-1):Z(q()),J()))}),p=function(){g(!0)},N=function(){X(q()).style.width="100%";
q()!==O().length-1?(Z(q()+1),J()):H()&&_.eq(H())},I=_.Ks(function(){E=!1;
t=setTimeout(function(){g(!0);E=!0},300)}),R=_.Ks(function(){clearTimeout(t);
E&&M()&&g(!1)});
_.$k(function(){if(M()){var kl;(kl=Y)==null||kl.pause();var BN;(BN=l.lottieEl)==null||BN.pause()}else{var tP;(tP=Y)==null||tP.play();var EC;(EC=l.lottieEl)==null||EC.play()}},"DIHTEd");
_.$k(function(){u();q()===f()&&J()},"ze5F8b");
var qN=function(){var kl=H();kl&&_.eq(kl)};
_.L9(function(){u();J();window.addEventListener("yt-popup-closed",qN)});
_.Q4(function(){clearTimeout(t);window.removeEventListener("yt-popup-closed",qN)});
return _.B("yt-stories-viewer-view-model",{class:_.FY("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.B("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.B("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":W,"on:mousedown":I,"on:mouseup":R,"on:mouseleave":R}),_.B("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":d,"on:mousedown":I,"on:mouseup":R,"on:mouseleave":R})),_.B("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.B(_.u7,{data:O},{storiesItemViewModel:function(kl,BN){var tP=kl.data;return _.B(_.T,{cond:function(){return Math.abs(BN()-q())<=1},
then:function(){var EC={};return _.B("div",{class:_.FY("ytStoriesViewerViewModelStoryItem",(EC.ytStoriesViewerViewModelActiveStoryItem=function(){return BN()===q()},EC))},_.B(Wri,{data:tP,
pauseAutoNavigation:p,navigateToNextItemOnLottieComplete:N,isVisible:function(){return BN()===q()},
animationRef:l}))}})}})),_.B("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:A},_.B(_.bd,{each:O},function(){return _.B("div",{class:"ytStoriesViewerViewModelProgressBar"},_.B("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.B("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.B(_.u7,{data:m},{buttonViewModel:_.mN})))},"uh"),"yt-stories-viewer-view-model",{props:{data:_.oM}});_.g_(_.dN(function(c){var f=c.data;var d=_.xz("yt-gen-ai-feedback-form-view-model"),q=[];return _.B("yt-gen-ai-feedback-form-view-model",{el:d,class:"ytGenAiFeedbackFormViewModelHost"},_.B(_.J9,{text:function(){return f().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.B("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.B(_.u7,{data:function(){return f().feedbackChips}},{toggleButtonViewModel:function(Z){var M=Z.data;
return _.B(_.JL,{data:M,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(g){var O=M();O=_.b(O,_.Jc);O=_.b(O==null?void 0:O.defaultButtonViewModel,_.zx).trackingParams;g?q.push(O):(g=q.indexOf(O),g>-1&&q.splice(g,1))}})}})),_.B(_.J9,{text:function(){return f().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.B("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.B(_.u7,{data:function(){return f().submitButton}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){WtJ(d.value,q,f().uniqueId)}})}}),_.B(_.u7,{data:function(){return f().moreFeedbackButton}},{buttonViewModel:function(Z){return _.B(_.mN,{data:Z.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"vh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.oM},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var hj=function(){return _.z.apply(this,arguments)||this};
_.K(hj,_.z);hj.prototype.created=function(){tcH(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(l3S);var c=_.ql().resolve(_.cHq);c&&(c.container=this.ytPopupContainerBehavior);if(c=_.ql().resolve(_.Lm))c.container=this.ytPopupContainerBehavior;if(c=_.ql().resolve(_.z9)){var f=this.ytPopupContainerBehavior;c.containerWasInjected?_.u6(Error("dj")):c.container=f}};
hj.prototype.ensurePopupBelowPlayer=function(c,f){var d=_.ql().resolve(_.dx(_.MY));if(!d||!d.isOnWatch()||!_.Ca())return!1;d=d.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.KX().height>d+this.getPopupHeight(c,f)?(c.style.top="auto",c.style.bottom="0px"):(c.style.top=d+"px",c.style.bottom="auto");return!0};
hj.prototype.getPopupHeight=function(c,f){f&&(c.cachedPopupHeight=0);if(!c.cachedPopupHeight){f=0;var d=c.clientHeight,q=window.getComputedStyle(c);f+=parseInt(q.marginTop,10);f+=parseInt(q.marginBottom,10);c.cachedPopupHeight=d+f}return c.cachedPopupHeight};
hj.prototype.getElement=function(c){return document.createElement(c)};
_.y([_.Q(SyJ.YtPopupContainerBehavior),_.D("design:type",Object)],hj.prototype,"ytPopupContainerBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],hj.prototype,"ytComponentBehavior",void 0);_.y([_.v({disableElementRegistration:!0,is:"ytd-popup-container"})],hj);
_.h(hj,"ytd-popup-container",function(){if(YyQ!==void 0)return YyQ;var c=document.createElement("template");_.n(c,"\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");c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);return YyQ=c},{mode:1});var eZ3;var Npq={};Npq.YtLogYpcFlowCommandsBehavior=[_.Cy.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(c){_.b(c,OyD)&&(c=_.b(c,OyD))&&(c.serializedTransactionFlowLoggingParams?_.LUz(c.serializedTransactionFlowLoggingParams):c.serializedYpcCancelFlowLoggingParams?(c=c.serializedYpcCancelFlowLoggingParams)&&_.UZ("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",c):c.serializedYpcResumeFlowLoggingParams?(c=c.serializedYpcResumeFlowLoggingParams)&&_.UZ("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",c):c.serializedYpcPauseFlowLoggingParams?(c=c.serializedYpcPauseFlowLoggingParams)&&
_.UZ("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",c):c.serializedYpcRefundFlowLoggingParams?(c=c.serializedYpcRefundFlowLoggingParams)&&ZZJ("YPC_EVENT_TYPE_START",c):c.serializedYpcDeactivateFlowLoggingParams?(c=c.serializedYpcDeactivateFlowLoggingParams)&&_.UZ("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",c):c.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(c=c.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.UZ("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",c))},
handleLogYpcFlowDismiss_:function(c){_.b(c,k1H)&&(c=_.b(c,k1H),c.serializedTransactionFlowLoggingParams?_.zue(c.serializedTransactionFlowLoggingParams):c.serializedYpcCancelFlowLoggingParams?(c=c.serializedYpcCancelFlowLoggingParams)&&_.UZ("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",c):c.serializedYpcResumeFlowLoggingParams?(c=c.serializedYpcResumeFlowLoggingParams)&&_.UZ("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",c):c.serializedYpcPauseFlowLoggingParams?(c=
c.serializedYpcPauseFlowLoggingParams)&&_.UZ("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",c):c.serializedYpcRefundFlowLoggingParams&&(c=c.serializedYpcRefundFlowLoggingParams)&&ZZJ("YPC_EVENT_TYPE_CANCEL",c))}}];var IoC={};IoC.YtCancelRecurrenceBehavior=[_.N2.YtComponentBehavior,_.en3,{attached:function(){var c=this;ZOp(this,function(f,d){return c.ypcCancelRecurrenceHandler(f,d)})},
ypcCancelRecurrenceHandler:function(c,f){var d=this;if(!f||!f.ypcCancelRecurrenceEndpoint)return!1;if(!f.ypcCancelRecurrenceEndpoint.params)return _.yJ(Error("wl")),!0;_.I9(this.hostElement);var q=_.xZ.instance,Z=_.ql().resolve(_.dx(_.Xw));q&&_.oT(q,f)?_.G3(q,f).then(function(M){d.ypcCancelRecurrenceSuccess_(c,f,{data:M})},function(M){d.ypcCancelRecurrenceFailure_(c,f,M)}).thenCatch(function(){_.yJ(Error("xl"))}):Z?Z.requestDataForServiceEndpoint(f).then(function(M){d.ypcCancelRecurrenceSuccess_(c,
f,M)},function(M){d.ypcCancelRecurrenceFailure_(c,f,M)}).thenCatch(function(){_.yJ(Error("xl"))}):_.yJ(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(c,f,d){_.PZ(this.hostElement);d.data||(d={data:d});d.data&&d.data.actions&&_.ll(this.hostElement,d.data.actions,this.hostElement);d.data.messageRenderer?rQF(f.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(f=f.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.UZ("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",f);_.CZ(c,"yt-service-request-completed",d)},
ypcCancelRecurrenceFailure_:function(c,f,d){_.PZ(this.hostElement);rQF(f.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.CZ(c,"yt-service-request-error",{error:d,params:[c,f]})}}];var Pv3=function(c,f){_.cN.call(this,f)};
_.K(Pv3,War);var RZi={};RZi.YtCompleteTransactionBehavior=[_.N2.YtComponentBehavior,_.en3,{attached:function(){var c=this;ZOp(this,function(f,d){return c.ypcCompleteTransactionHandler(f,d)})},
completeTransaction:function(c,f){var d=this;f={payments_payload:window.btoa(f.integratorData),buybucket_params:c.data.buybucketParams,offer_params:c.data.offerParams};var q=_.ql().resolve(_.Xw),Z=c.data.completeTransactionEndpoint,M=this.get("ypcCompleteTransactionEndpoint.actions",Z);M&&_.ll(this.hostElement,M,this.hostElement);return(M=_.xZ.instance)&&_.oT(M,Z)?_.G3(M,Z,f).then(function(g){return!g||(g==null?0:g.error)?(g=d.get("data.serializedTransactionFlowLoggingParams",c),_.Je(new H3("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
g))):{data:g}}).then(function(g){return d.handleCompleteTransactionSuccess_(g,c)},function(){return d.handleCompleteTransactionFailure_(c)}):q.requestDataForServiceEndpoint(Z,f).then(function(g){return d.handleCompleteTransactionSuccess_(g,c)},function(){return d.handleCompleteTransactionFailure_(c)})},
handleCompleteTransactionSuccess_:function(c,f){c.data||(c={data:c});if(c.data.messageRenderer)return _.Je(new Pv3(c.data.messageRenderer));if(c.data.trackingParams){var d=_.X2(),q=_.V5();d&&q&&_.Dr(d,q,_.Q1(c.data.trackingParams))}f=this.get("data.serializedTransactionFlowLoggingParams",f);MOQ(f);return _.sX(c)},
handleCompleteTransactionFailure_:function(c){c=this.get("data.serializedTransactionFlowLoggingParams",c);_.UO("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",c);return _.Je(new H3("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",c))},
ypcCompleteTransactionHandler:function(c,f){var d=this;if(!f.ypcCompleteTransactionEndpoint)return!1;if(!f.ypcCompleteTransactionEndpoint.transactionParams)return _.yJ(Error("zl")),!0;f.ypcCompleteTransactionEndpoint&&f.ypcCompleteTransactionEndpoint.gtmData&&_.aM(f.ypcCompleteTransactionEndpoint.gtmData);var q=_.ql().resolve(_.dx(_.Xw));if(q){_.I9(this.hostElement);var Z=_.xZ.instance;Z&&_.oT(Z,f)?_.G3(Z,f).then(function(M){return!M||(M==null?0:M.error)?(M=d.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
f),_.Je(new H3("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))):{data:M}}).then(function(M){_.CZ(c,"yt-service-request-completed");
d.ypcCompleteTransactionSuccess_(f,M)},function(){return d.ypcCompleteTransactionFailure_(f)}):q.requestDataForServiceEndpoint(f).then(function(M){_.CZ(c,"yt-service-request-completed");
d.ypcCompleteTransactionSuccess_(f,M)},function(){return d.ypcCompleteTransactionFailure_(f)})}return!0},
ypcCompleteTransactionSuccess_:function(c,f){_.PZ(this.hostElement);f.data||(f={data:f});_.gS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);f.data.messageRenderer||f.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(c):(_.aM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",c));f.data.actions&&(c=tBJ(f.data.actions),f=b$G(f.data.actions),c.length&&_.OX(this.hostElement,
c),f.length&&_.ll(this.hostElement,f,this.hostElement))},
ypcCompleteTransactionFailure_:function(c){_.PZ(this.hostElement);_.gS(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",c,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(c,f,d){if(f=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",f))f={serializedTransactionFlowLoggingParams:f},d&&(f.errorType=d),_.JN(c,f),_.ab()}}];var UWi={};UWi.YtEndpointHandlerWithYpcBehavior=[_.en3,_.Cy.YtActionHandlerBehavior,[{openWalletDialog:function(c,f,d,q,Z,M,g){var O=this,l=_.c9();f=f.replace(/-/g,"+").replace(/_/g,"/");var m=_.Ft().get("hl");_.IR4(_.qo(_.pX),f,l.resolve,Z,function(H){M&&M();l.reject(H)},m,function(H){return O.onServerBackendAnalyticEvent_(c,d,H)},this.onDialogClose_.bind(this),q,g);
return l.promise},
openFixFlowDialog:function(c,f,d,q){c=c.replace(/-/g,"+").replace(/_/g,"/");_.qo(_.pX).openFixFlowDialog(c,f,d,q)},
onDialogClose_:function(){_.gS(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(c,f,d){_.CZ(c,"yt-commerce-action-init-done");f&&_.OX(this.hostElement,[f,{backend_analytics:d}])}}],
_.Yd.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(c,f){c=this.get("data.nativeFlowEndpoint",f);f=this.get("data.fallbackEndpoint",f);c?_.OX(this.hostElement,[c]):f&&_.CZ(this.hostElement,"yt-navigate",{endpoint:f})}}],
IoC.YtCancelRecurrenceBehavior,RZi.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 c=this;ZOp(this,function(f,d,q){return c.handleYPCEndpoint(f,d,q)});
this.ypcRegisterActionMapJobId_=_.Em(_.a7,function(){c.registerActionMap(c.buyFlowActionMap_)})},
detached:function(){var c=this;_.a7.cancelJob(this.ypcRegisterActionMapJobId_);_.Em(_.a7,function(){c.unregisterActionMap(c.buyFlowActionMap_)})},
handleYPCEndpoint:function(c,f,d){var q=f.ypcGetCartEndpoint;if(q){_.ac("commerce_transaction");var Z=q.gtmId;Z&&_.J$(Z);(q=q.gtmData)&&_.aM(q)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",f)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(c,f),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",f)!=null?(this.handleYPCFixInstrumentEndpoint_(c,f),!0):f.ypcPauseSubscriptionCommand?(xVH(this.hostElement,c,f,d),
!0):f.ypcResumeSubscriptionCommand?(cp3(this.hostElement,c,f),!0):f.getPaymentInstrumentsParamsCommand?(RDq(this.hostElement,c,f),!0):f.ypcHandleTransactionEndpoint?(I9S(this.hostElement,c,f,d),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(c,f){var d=this;_.V_("ttcr",void 0,"commerce_transaction");f=f.ypcGetCartEndpoint;var q=f.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Z=q.encryptedPurchaseParams,M=q.serializedTransactionFlowLoggingParams,g=q.serializedPaymentsClientParams,O=this.createGetCartResponseFromParams_(q,f.offerParams,M);this.changeButtonState(c,!0);_.QS(this.openWalletDialog(c,Z,q.ypcLogWalletAnalyticDataEndpoint,M,function(){d.changeButtonState(c,!1)},function(){d.changeButtonState(c,
!1)},g).then(function(l){return d.handleBuyFlowCompleteCallback_(c,O,l)},function(){return d.handleOnLoadError(O)}).then(function(l){return void d.handlePostPurchaseSuccess_(c,O,l)},function(l){return void d.handlePostPurchaseError_(l)}),function(){d.changeButtonState(c,!1);
c instanceof Element&&_.CZ(c,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(c,f,d){var q=c.completeTransactionEndpoint,Z=c.handleTransactionEndpoint;f={data:{offerParams:window.btoa(f),serializedTransactionFlowLoggingParams:d}};Z?f.data.handleTransactionEndpoint=Z:f.data.completeTransactionEndpoint=q;c.onCartDismissCommand&&(f.data.onCartDismissCommand=c.onCartDismissCommand);return f},
onGetCartServiceRequestCompleted_:function(c,f){var d=this,q=c.target;if(f&&f.data&&f.data.messageRenderer)_.PZ(this.hostElement),this.handleMessageRenderer_(f.data.messageRenderer),this.changeButtonState(q,!1);else{var Z=this.get("data.encryptedPurchaseParams",f),M=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",f),g=this.get("data.ypcLogWalletAnalyticDataEndpoint",f),O=this.get("data.serializedPaymentsClientParams",f),l=this.getLoggingParams_(f);if(l||Z||M)c.stopPropagation(),_.V_("ttcr",
void 0,"commerce_transaction"),Z||_.PZ(this.hostElement),this.changeButtonState(q,!1),M?_.gS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.hk("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:M}}},this]):Z&&(this.changeButtonState(q,!0),c=null,c=this.openWalletDialog(q,Z,g,l,function(){_.PZ(d.hostElement);d.changeButtonState(q,!1)},function(){_.PZ(d.hostElement);
d.changeButtonState(q,!1)},O),_.QS(c.then(function(m){return d.handleBuyFlowCompleteCallback_(q,f,m)},function(){return d.handleOnLoadError(f)}).then(function(m){return d.handlePostPurchaseSuccess_(q,f,m)},function(m){return d.handlePostPurchaseError_(m)}),function(){d.changeButtonState(q,!1);
_.CZ(q,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(c,f){f&&f.endpoint&&f.endpoint.ypcGetCartEndpoint&&!f.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",f.endpoint.ypcGetCartEndpoint)&&_.ll(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",f.endpoint.ypcGetCartEndpoint)],c.target),_.I9(this.hostElement),this.changeButtonState(c.target,!0))},
onServiceRequestError_:function(c,f){if(f&&f.params&&f.params.length){f=_.C(f.params);for(var d=f.next();!d.done;d=f.next())if((d=d.value)&&d.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",d.ypcGetCartEndpoint)&&_.ll(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",d.ypcGetCartEndpoint)],c.target);_.PZ(this.hostElement);this.changeButtonState(c.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(c,f,d){var q=d.integratorData;return q==null||q===""||d.error!=null?(q=this.getLoggingParams_(f),String(d.error)==="-1"?(f.data.onCartDismissCommand&&_.ll(this.hostElement,[f.data.onCartDismissCommand],c),_.Je(new H3("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",q,!0))):_.Je(new H3("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",q))):f.data.handleTransactionEndpoint?PPp(this.hostElement,f.data.handleTransactionEndpoint,{payments_payload:q,funds_guarantee_callback_client_data:d.integratorClientCallbackData}):
this.completeTransaction(f,d)},
handlePostPurchaseSuccess_:function(c,f,d){f=d.data;var q=!1,Z,M;if(f&&((Z=f.command)==null?0:(M=Z.commandExecutorCommand)==null?0:M.commands)){var g,O;Z=(g=f.command)==null?void 0:(O=g.commandExecutorCommand)==null?void 0:O.commands;for(g=0;g<Z.length;g++)if(_.b(Z[g],_.tIj)){q=!0;break}}q||(f&&f.gtmDatas&&f.gtmDatas.length?_.aM(f.gtmDatas[0]):_.aM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));d.data&&d.data.actions&&(f=tBJ(d.data.actions),d=b$G(d.data.actions),f.length&&
_.OX(this.hostElement,f),d.length&&_.ll(this.hostElement,d,c))},
handlePostPurchaseError_:function(c){c&&c.payload&&c.payload.isUserDismiss||_.VO(Error("Bl"))},
handleOnLoadError:function(c){c=this.getLoggingParams_(c);return _.Je(new H3("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",c))},
getLoggingParams_:function(c){return this.get("data.serializedTransactionFlowLoggingParams",c)},
handleMessageRenderer_:function(c){var f=_.aw(c,"renderer"),d=_.hk("openPopupConfig");f==="confirmDialogRenderer"&&d&&_.gS(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:d.popupTypeMap[f],popup:c}},this])},
handleYPCFixInstrumentEndpoint_:function(c,f){var d=this,q=f.ypcFixInstrumentEndpoint;f=q.encryptedFixInstrumentParameters;this.logFixFopEvent_(q,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(c,!0);this.openFixFlowDialog(f,function(Z,M){d.onFixFlowCompleteCallback_(q,Z,M)},function(){return d.changeButtonState(c,!1)},function(){d.changeButtonState(c,!1);
d.logFixFopEvent_(q,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(c,f,d){var q=_.D5("payments.business.integration.scenario.FixInstrument");if(f==q.IntegratorCallbackType.ON_COMPLETE){f="FIX_FOP_EVENT_TYPE_CANCEL";var Z=null;d.error!=null?d.error!=q.OnCompleteCallbackError.USER_CANCELLED&&(_.ll(this.hostElement,[c.errorAction],this.hostElement),f="FIX_FOP_EVENT_TYPE_FAILURE",Z="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.ll(this.hostElement,[c.successAction],this.hostElement),f="FIX_FOP_EVENT_TYPE_SUCCESS");_.ll(this.hostElement,[c.onFinishAction],
this.hostElement);this.logFixFopEvent_(c,f,Z)}},
logFixFopEvent_:function(c,f,d){(c=c.serializedFixFopLoggingParams)?(f={eventType:f,serializedFixFopLoggingParams:c},d!=null&&(f.errorType=d),_.JN("fixFopFlow",f),_.ab()):_.VO(Error("Cl"))},
changeButtonState:function(c,f){_.F("enable_ypc_spinners")&&c&&(c.is==="yt-button-renderer"||c.is==="ytd-button-renderer")&&(c.disabled=f)}}];var pMC=function(c){this.JSC$32141_clientRoot=c;this.feedbackCollectorActionMap={"yt-help-dialog-requested":d5r,"yt-feedback-dialog-requested":f7C,"yt-signal-action-help":jTc,"yt-signal-action-send-feedback":qVD,"yt-send-feedback-action":MCC,"yt-user-feedback-endpoint":rp3};_.Rb(_.Pw.getInstance(),this.feedbackCollectorActionMap,this.JSC$32141_clientRoot)},xWQ;var oyi=function(c){this.JSC$32146_clientRoot=c;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":CSq.bind(null,this.JSC$32146_clientRoot),"yt-signal-action-delete-all-downloads":k3J,"yt-signal-action-delete-download":OsH,"yt-signal-action-delete-playlist-download":sTC,"yt-signal-action-install-pwa":Apq,"yt-signal-action-refresh-downloads":m5q,"yt-offline-video-endpoint":F$C,"yt-offline-playlist-endpoint":bs3,"yt-update-local-app-setting-command":EZq,"yt-offline-orchestration-action-command":$5J,
"yt-signal-action-undo-delete-download":isD,"yt-local-watch-history-command":L$S};_.Rb(_.Pw.getInstance(),this.downloadManagerActionMap,this.JSC$32146_clientRoot);_.Jh.instance=new _.Jh},GOC;var wQ=function(){var c=_.z.apply(this,arguments)||this;c.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_"};c.remoteApi_=null;return c};
_.K(wQ,_.z);_.r=wQ.prototype;
_.r.ready=function(){_.F("polymer_enable_mdx")&&(sQ3({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")}),_.gK("yt-remote-connection-change",this.handleConnectionChange_,this),_.gK("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=YjD())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.r.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.r.handleConnectionChange_=function(c){(this.mdxConnected=c)?(c=T9r(),!c&&rYJ()&&CaF()&&(c={key:"cast-selector-receiver",name:CaF()}),c=c.name):c=null;this.receiverName=c;_.GV(this.remoteApi_);(this.remoteApi_=YjD())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.r.handleReceiverAvailabilityChange_=function(){var c=imJ();rYJ()&&_.T7("yt-remote-cast-available")&&c.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=c.length>0};
_.r.handleRemoteQueueChange_=function(){var c=this.currentVideoId_,f=this.currentListId_,d=tt(this.remoteApi_);this.currentVideoId_=d.videoId;this.currentListId_=d.listId;this.currentVideoId_&&_.gS(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.F("polymer_enable_mdx_queue")?this.currentListId_:null,c,f])};
_.r.handleAddToQueueAction_=function(c){c=_.b(c,Rzr);this.remoteApi_&&(c.videoId?this.remoteApi_.addVideo(c.videoId):c.playlistId&&this.remoteApi_.addPlaylist(c.playlistId))};
_.r.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.r.handleInsertInQueueAction_=function(c){c=_.b(c,U2Q);this.remoteApi_&&c.videoId&&this.remoteApi_.JSC$19634_insertVideo(c.videoId)};
_.r.handleRemoveFromQueueAction_=function(c){c=_.b(c,pLq);this.remoteApi_&&c.videoId&&this.remoteApi_.JSC$19634_removeVideo(c.videoId)};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],wQ.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L(),_.D("design:type",Object)],wQ.prototype,"appId",void 0);_.y([_.L(),_.D("design:type",Boolean)],wQ.prototype,"mdxConnected",void 0);_.y([_.L(),_.D("design:type",Boolean)],wQ.prototype,"receiverAvailable",void 0);_.y([_.L(),_.D("design:type",Object)],wQ.prototype,"receiverName",void 0);_.y([_.L(),_.D("design:type",Object)],wQ.prototype,"currentVideoId_",void 0);
_.y([_.L(),_.D("design:type",Object)],wQ.prototype,"currentListId_",void 0);_.y([_.vj({is:"yt-mdx-manager",disableElementRegistration:!0})],wQ);_.h(wQ,"yt-mdx-manager",void 0,{mode:2});var czC;var fYi;var ye=function(){var c=_.z.apply(this,arguments)||this;c.APP_IDS={ytr:3,ytm:5};c.JSC$20855_timeoutId_=0;c.actionMap={"yt-open-create-family-dialog":"open"};return c};
_.K(ye,_.z);_.r=ye.prototype;_.r.created=function(){tcH(2200)};
_.r.detached=function(){this.observer_&&this.observer_.disconnect()};
_.r.open=function(c,f){var d=this,q=c.serializedYpcFamilyCreateLoggingParams;this.JSC$20855_timeoutId_=setTimeout(this.abort_.bind(this,c.postFlowErrorEndpoint,q),3E4);f&&(this.onReadyCallback_=f);var Z=_.r1(this.hostElement).querySelector("#unicorn-iframe");q&&q&&qXc("ypcFamilyCreateFlowStarted",q);_.ThP("family_creation",function(){var M=_.D5("gapi.family_creation.render");_.D5("gapi.config.update")("iframes/family_creation/url",d.getFamilyCreationUrlWithUnicornParams_());var g=3;c.appId&&c.appId in
d.APP_IDS&&(g=d.APP_IDS[c.appId]);g={authUser:_.hk("SESSION_INDEX")||0,clientId:g,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.hk("HL"),initialflow:[4,5,6,7],m:d.isMobile?1:0,onFlowComplete:d.onUnicornFlowComplete_.bind(d,c.postFlowSuccessEndpoint,q),onError:d.onUnicornFlowError_.bind(d,c.postFlowErrorEndpoint,q),onReady:d.onUnicornFlowReady_.bind(d,c.referencePcidParams)};M(Z,g)})};
_.r.close=function(){_.r1(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.r.onUnicornFlowComplete_=function(c,f){this.close();f&&f&&qXc("ypcFamilyCreateFlowSucceeded",f);_.CZ(this.hostElement,"yt-navigate",{endpoint:c})};
_.r.onUnicornFlowError_=function(c,f){this.close();f&&qXc("ypcFamilyCreateFlowCancelled",f);_.CZ(this.hostElement,"yt-navigate",{endpoint:c})};
_.r.onUnicornFlowReady_=function(c){var f=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();c&&_.D5("gapi.family_creation.setConfig")(0,c);this.observer_=new MutationObserver(function(){_.r1(f.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.r1(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.r1(this.hostElement).querySelector("#dialog").open()};
_.r.getFamilyCreationUrlWithUnicornParams_=function(){return _.hk("YTR_FAMILY_CREATION_URL")};
_.r.getCurrentUrl_=function(){return document.location.href};
_.r.abort_=function(c,f){this.clearTimeout_();this.onUnicornFlowError_(c,f)};
_.r.clearTimeout_=function(){clearTimeout(this.JSC$20855_timeoutId_)};
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],ye.prototype,"ytActionHandlerBehavior",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],ye.prototype,"isMobile",void 0);_.y([_.L(),_.D("design:type",Object)],ye.prototype,"onReadyCallback_",void 0);_.y([_.L(),_.D("design:type",Object)],ye.prototype,"observer_",void 0);_.y([_.vj({is:"yt-create-family-dialog",disableElementRegistration:!0})],ye);
_.h(ye,"yt-create-family-dialog",function(){if(fYi===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);var f=c.content,d=f.insertBefore;czC===void 0&&(czC=document.createElement("template"));var q=czC;d.call(f,q.content.cloneNode(!0),c.content.firstChild);fYi=c}c=fYi;return c},{mode:2});var d4i;var jqD;var Wc=function(){var c=_.z.apply(this,arguments)||this;c.STEP=1;c.BLOCK_ON=80;c.MIN_PROGESS=0;c.MAX_PROGESS=100;return c};
_.K(Wc,_.z);_.r=Wc.prototype;_.r.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.r.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));_.ql().addProvider({provide:pPq,useValue:this})};
_.r.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.r.finish=function(){var c=this;this.progress=this.MAX_PROGESS;zYH(function(){c.progress==c.MAX_PROGESS&&(c.hostElement.hidden=!0)})};
_.r.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.ci.Object.defineProperties(Wc.prototype,{progress:{configurable:!0,enumerable:!0,set:function(c){this.progress_=c;var f="scaleX("+c/this.MAX_PROGESS+")",d=_.r1(this.hostElement).querySelector("#progress").style;d.transform=f;d.webkitTransform=f;this.hostElement.setAttribute("aria-valuenow",String(c))},
get:function(){return this.progress_}}});
_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],Wc.prototype,"ytComponentBehavior",void 0);_.y([_.vj({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Wc);
_.h(Wc,"yt-page-navigation-progress",function(){if(jqD===void 0){var c=document.createElement("template");_.n(c,'\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');c.content.insertBefore(_.e().content.cloneNode(!0),
c.content.firstChild);var f=c.content,d=f.insertBefore;d4i===void 0&&(d4i=document.createElement("template"));var q=d4i;d.call(f,q.content.cloneNode(!0),c.content.firstChild);jqD=c}c=jqD;return c},{mode:2});var qvG={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"},ZJQ={"font-size":"12px","font-style":"italic"},MNQ={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.XrG=function(){return _.k(function(c){_.Fm(c)})};var rzr=_.dN(function(c){var f=function(){return c.data().subtext},d={};
return _.B("snackbar-view-model",{class:_.FY("snackbarViewModelHost",c.className)},_.B("div",{class:_.FY("snackbarViewModelEngagementBarWrapper",c.className)},_.B(_.T,{cond:function(){return c.data().image},
then:function(q){return _.B(_.jC,{data:q,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.B(_.T,{cond:function(){return c.data().imageContent},
then:function(){return _.B("div",{class:"snackbarViewModelAvatarContainer"},_.B(_.u7,{data:function(){return c.data().imageContent}},{decoratedAvatarViewModel:_.VV}))}}),_.B("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.B("div",{class:_.FY((d.snackbarViewModelTitle=!0,d.snackbarViewModelTitleWithSubtext=f,d))},_.B(_.J9,{text:function(){return c.data().text}})),_.B(_.T,{cond:f,
then:function(){return _.B("div",{class:"snackbarViewModelSubtext"},_.B(_.J9,{text:function(){return f()}}))}})),_.B(_.T,{cond:function(){return c.data().buttons},
then:function(){return _.B("div",{class:"snackbarViewModelButtonClassWrapper"},_.B(_.u7,{data:function(){return c.data().buttons}},{buttonViewModel:function(q){return _.B(_.mN,{data:q.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:c.target})}}))}})))},"wh");_.g_(_.dN(function(){function c(W,p,N){E(W);X(N);Y("in");H(!0);f(W,p);g=setTimeout(function(){d()},p)}
function f(W,p){var N,I=(N=W.text)==null?void 0:N.content;W=_.DW(W.rendererContext);I&&(p={label:I,command:W,durationMs:p},_.ql().resolve(_.$A).enqueue(p))}
function d(W){Y("out");W&&clearTimeout(g)}
function q(){d(!0)}
function Z(W){if(W){var p=W.snackbarViewModel,N=W.durationMs,I=W.target;N||(N=3E3);p&&(W=_.ql().resolve(_.dx(_.tO)))&&W.enqueue({isOpened:m,open:function(){c(p,N,I)},
close:d},0)}}
var M=_.ob("snackbar-container"),g=void 0,O=_.C(_.OT(!1,void 0,"jJ4tBf")),l=O.next().value;O=O.next().value;var m=l,H=O;l=_.C(_.OT("out",void 0,"M6Rbpb"));var A=l.next().value,Y=l.next().value;l=_.C(_.OT(void 0,void 0,"aFswib"));var t=l.next().value,E=l.next().value;l=_.C(_.OT(void 0,void 0,"mlWWhb"));var J=l.next().value,X=l.next().value,u=_.Ks(function(){if(A()==="out"){H(!1);E(void 0);X(void 0);var W=_.ql().resolve(_.dx(_.tO));W&&V4Q(W,0)}});
_.L9(function(){var W=_.ql().resolve(_.dx(_.ElH));W&&(W.showSnackbarFn=Z,W.closeSnackbarFn=q)});
return _.B("snackbar-container",{class:"ytSnackbarContainerHost",el:M},_.B(_.T,{cond:function(){return m()&&!!t()},
then:function(){var W={};return _.B("div",{class:_.FY("ytSnackbarContainerSnackbarContainer",(W.ytSnackbarContainerMobile=!1,W.ytSnackbarContainerPivotBar=function(){var p;return!((p=_.ql().resolve(_.dx(_.nlp)))==null||!p())},W.ytSnackbarContainerOpened=function(){return m()&&A()==="in"},W.ytSnackbarContainerClosed=function(){return m()&&A()==="out"},W)),
"on:animationend":u},_.B(rzr,{data:function(){return t()},
target:function(){return J()}}))}}))},"xh"),"snackbar-container");_.g_(_.cJH,"yt-tooltip");_.g_(_.dN(function(){var c=_.N5(_.iEk);return _.B("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var f;return(f=c())==null?void 0:f.announcement})},"yh"),"yt-ephemeral-actions");var ccD=new Map;var vDp=function(c,f){var d=this;this.handleError=c;this.logEventInternal=f;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){d.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
vDp.prototype.logError=function(c){this.handleError(c)};
vDp.prototype.logEvent=function(c,f){switch(c){case "IDB_DATA_CORRUPTED":_.F("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",f);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",f);break;case "IS_SUPPORTED_COMPLETED":_.F("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",f);break;case "QUOTA_EXCEEDED":CQG(this,f);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",f);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":c=Object.assign({},f,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",c)}};
var CQG=function(c,f){_.LB.getInstance().estimate().then(function(d){d=Object.assign({},f,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:dY3(d==null?void 0:d.usage),deviceStorageQuotaMbytes:dY3(d==null?void 0:d.quota)});c.logEventInternal("idbQuotaExceeded",d)})};var gjp=_.dN(function(c){var f=_.xz("yt-draggable"),d=c.onDrag,q=c.onDragStart,Z=c.onDragEnd,M=_.ch(c,{allowClicks:!1,dragThreshold:5}),g=M.dragThreshold,O=M.allowClicks;c=M.children;M=M.className;var l=void 0,m=void 0,H=new _.a8(0,0),A=!1;_.L9(function(){l=new _.w3(f.value);m=new _.js(t);Y(l,m);if(O()){_.leT(l,g());var J;(J=f.value)==null||J.addEventListener("click",E,{capture:!0})}_.Q4(function(){var X;(X=l)==null||X.dispose();if(O()){var u;(u=f.value)==null||u.removeEventListener("click",E,{capture:!0})}})});
var Y=function(J,X){_.Lx(J,"earlycancel",function(){O()&&(A=!1)});
_.Lx(J,"start",function(u){q==null||q(u);u.defaultPrevented||O()&&(A=!0)});
_.Lx(J,"beforedrag",function(u){l&&m&&(u.preventDefault(),H=new _.a8(u.clientX-l.startX,u.clientY-l.startY),m.start())});
_.Lx(J,"end",function(){X.stop();Z==null||Z();H=new _.a8(0,0)})},t=function(){H&&d(H)},E=function(J){A&&(A=!1,J.stopPropagation(),J.preventDefault())};
return _.B("yt-draggable",{el:f,class:_.FY("ytDraggableComponentHost",M)},c)},"zh");var kj3=_.dN(function(c){var f=_.C(_.OT(0,void 0,"CvAwBd")),d=f.next().value,q=f.next().value;f=function(Z){var M={},g={};return _.B(gjp,{className:_.FY("ytdMiniplayerComponentResizer",(M.ytdMiniplayerComponentResizerDisabled=function(){return Z===c.horizontalAlignment()||Z===c.verticalAlignment()},M.ytdMiniplayerComponentResizerNorth=Z==="north",M.ytdMiniplayerComponentResizerEast=Z==="east",M.ytdMiniplayerComponentResizerSouth=Z==="south",M.ytdMiniplayerComponentResizerWest=Z==="west",M)),
onDragStart:function(){q(c.currentMiniplayerSize());if(c.onResizeStart)c.onResizeStart()},
onDrag:function(O){Z!=="north"&&Z!=="west"||O.scale(-1);var l;O=(l=Z==="north"||Z==="south")?O.y:O.x;var m=c.currentAspectRatio();l&&m>=1?O*=m:!l&&m<1&&(O/=m);l=O;c.onResize(d()+l)}},_.B("div",{class:_.FY("ytdMiniplayerComponentResizerCorner",(g.ytdMiniplayerComponentResizerNorthCorner=Z==="north",g.ytdMiniplayerComponentResizerEastCorner=Z==="east",g.ytdMiniplayerComponentResizerSouthCorner=Z==="south",g.ytdMiniplayerComponentResizerWestCorner=Z==="west",g))}))};
return _.B("div",{class:"ytdMiniplayerComponentResizers"},f("north"),f("east"),f("south"),f("west"))},"Ah");var OJS=16/9;_.g_(_.dN(function(){var c=_.xz("ytd-miniplayer"),f=_.C(_.OT(new _.AT(NaN,NaN),void 0,"GNXZTe")),d=f.next().value,q=f.next().value;f=_.C(_.OT(!1,void 0,"XqI9xc"));var Z=f.next().value,M=f.next().value;f=_.C(_.OT(!1,void 0,"k3iLGe"));var g=f.next().value,O=f.next().value;f=_.C(_.OT(!1,void 0,"ApjQ9b"));var l=f.next().value,m=f.next().value;f=_.C(_.OT(!1,void 0,"PzlhGe"));var H=f.next().value,A=f.next().value;f=_.C(_.OT(!1,void 0,"pm6fl"));var Y=f.next().value,t=f.next().value;f=_.C(_.OT(!1,void 0,
"xQrL1e"));var E=f.next().value,J=f.next().value;f=_.C(_.OT(OJS,void 0,"NcrWZb"));var X=f.next().value,u=f.next().value,W=_.C(_.OT(!1,void 0,"e5rxBc"));f=W.next().value;var p=W.next().value;W=_.C(_.OT(!1,void 0,"uZtCde"));var N=W.next().value,I=W.next().value;W=_.C(_.OT(void 0,void 0,"wKFvEe"));var R=W.next().value,qN=W.next().value;W=_.C(_.OT(_.hk("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var kl=W.next().value,BN=W.next().value;W=_.C(_.OT("south",void 0,"QXcssb"));var tP=W.next().value,
EC=W.next().value;W=_.C(_.OT(400,void 0,"Fr8gSb"));var AP=W.next().value,eM=W.next().value,ue=_.ql().resolve(_.yN).miniplayerPropSignalMap[0],BH=ue.data,J3=ue.externalPlaylistData;W=ue.toastData;var lr=ue.playabilityStatus,xl=ue.isReadyToResume,Tv=ue.isDisabled,ir=ue.watchWhile,$_=ue.playerVe,AH=ue.expandVe,U3=ue.closeVe,MN=ue.readyToResumeVe,qH=ue.readyToResumeCloseVe,br=ue.repositionVe,YS=ue.resizeVe;ue=_.C(_.ns(xl));var Y_=ue.next().value,eu=ue.next().value,fT=!1,Gv=!1,Cj;_.L9(function(){q(_.KX());
c.value.addEventListener("animationend",function(NH){NH.target===c.value&&(t(!1),J(!1))});
C73(c.value)});
_.pW("yt-window-resized",function(NH){NH&&q(NH)});
var dJ=function(){Cj&&u(Cj.getVideoAspectRatio())},BD=function(){if(Cj){var NH=Cj.getPlayerState()===1;
Y_()&&NH&&eu(!1)}},E3=function(){var NH=AH();
if(NH){var aG=_.X2(3);aG&&_.Rc(aG,NH)}},Lj=function(){var NH=U3(),aG=qH();
NH&&_.Rc(_.X2(3),NH);xl()&&aG&&_.Rc(_.X2(3),aG)};
_.pW("yt-activate-miniplayer",function(NH){var aG;return _.k(function(eF){if(eF.nextAddress==1)return Z()?eF.return():eF.yield((aG=_.ql().resolve(_.yN).getPlayerElement())==null?void 0:aG.getPlayerPromise(),2);Cj=eF.yieldResult;if(!Cj)return eF.return();!N()&&_.F("kevlar_watch_while_v2")&&(EC(NH&&!_.F("kevlar_watch_while_bottom_align")?"north":"south"),BN(_.hk("HTML_DIR")==="rtl"?"west":"east"));var T8=Cj;T8.addEventListener("onVideoDataChange",dJ);T8.addEventListener("onStateChange",BD);T8.addEventListener("onExpandMiniplayer",
E3);T8.addEventListener("onCloseMiniplayer",Lj);u(Cj.getVideoAspectRatio());M(!0);rcS()||t(!0);_.Fm(eF)})});
_.pW("yt-deactivate-miniplayer",function(NH){return _.k(function(aG){if(!Z())return aG.return();M(!1);eu(!1);J(NH);A(!1);O(!1);if(Cj){var eF=Cj;eF.removeEventListener("onVideoDataChange",dJ);eF.removeEventListener("onStateChange",BD);eF.removeEventListener("onExpandMiniplayer",E3);eF.removeEventListener("onCloseMiniplayer",Lj)}rcS()||t(!0);_.Fm(aG)})});
var tH=function(){return!(ir()&&_.F("kevlar_watch_while_modern"))},Ol=function(){var NH;
return!((NH=J3())==null||!NH.contents)},sr=function(){var NH=AP();
var aG=d();aG=Math.min(Math.min(aG.width,aG.height)-32,720);var eF=X(),T8=tH(),jZ=Ol()&&g(),Zg=Math.min(NH,aG);NH=new _.AT(192,T8?116:192);eF=new _.AT(jZ?OJS:eF,1);Zg=new _.AT(Zg,T8?Zg-76:Zg);Zg=eF.aspectRatio()>Zg.aspectRatio()?Zg.width/eF.width:Zg.height/eF.height;eF=eF.scale(Zg);NH.width<=eF.width&&NH.height<=eF.height||(NH=eF.aspectRatio()<=NH.aspectRatio()?NH.width/eF.width:NH.height/eF.height,eF.scale(NH),eF.width=Math.min(eF.width,aG),eF.height=Math.min(eF.height,aG));return new _.AT(eF.width,
_.uk(192,eF.height+lW3(T8,jZ),720))},KG=function(){var NH=sr(),aG=tH(),eF=Ol()&&g();
return new _.AT(NH.width,NH.height-lW3(aG,eF))},pZ=function(){var NH=function(aG){aG.target===c.value&&H()&&(A(!1),c.value.removeEventListener("transitionend",NH))};
rcS()||(c.value.addEventListener("transitionend",NH),A(!0));O(!g())};
_.$k(function(){var NH=$_(),aG=_.X2(3),eF=_.V5(3);if(aG&&eF&&NH){_.Dr(aG,eF,NH);eF=br();var T8=YS(),jZ=AH(),Zg=U3(),tw=qH();jZ&&Zg&&tw&&(_.eO(aG,NH,[jZ,Zg,tw]),_.Ic(aG,[jZ,Zg]));eF&&T8&&_.eO(aG,NH,[eF,T8])}},"Snz6Ld");
_.$k(function(){var NH=MN();if(NH){var aG=_.X2(0),eF=_.V5(0);aG&&eF&&(_.Dr(aG,eF,NH),_.Ic(aG,[NH]))}},"X1FpHd");
ue={};return _.B("ytd-miniplayer",{el:c,class:_.FY("ytdMiniplayerComponentHost",(ue.ytdMiniplayerComponentVisible=function(){return Z()||Y()},ue.ytdMiniplayerComponentAnimatingSnap=l,ue.ytdMiniplayerComponentAnimatingPlaylistExpand=H,ue.ytdMiniplayerComponentAnimatingFade=Y,ue),function(){if(Y()){var NH=tP();
var aG=Z(),eF=E();NH=aG?NH==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":eF?NH==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":NH==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else NH="";return NH}),
style:_.$Z({top:function(){return tP()==="north"?"16px":""},
right:function(){return kl()==="east"?"16px":""},
bottom:function(){return tP()==="south"?"16px":""},
left:function(){return kl()==="west"?"16px":""},
width:function(){return sr().width+"px"},
height:function(){return sr().height+"px"},
transform:function(){var NH=R();return NH?"translate("+NH.x+"px, "+NH.y+"px)":""}})},_.B("div",{class:"ytdMiniplayerComponentContent"},_.B(gjp,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(NH){var aG=Oa3(kl(),tP(),d(),sr(),R()),eF=KG();Math.abs(NH.clientY-(aG.y+eF.height))>15?(p(!0),NH=_.X2(3),aG=br(),fT||(fT=!0,NH&&aG&&_.Ic(NH,[aG])),NH&&aG&&_.Rc(NH,aG)):NH.preventDefault()},
onDrag:function(NH){qN(NH)},
onDragEnd:function(){var NH=gvr(Oa3(kl(),tP(),d(),sr(),R()),d(),sr()),aG=kxi(kl(),tP(),d(),sr()),eF=kxi(NH.horizontalAlignment,NH.verticalAlignment,d(),sr());eF=new _.a8(eF.x-aG.x,eF.y-aG.y);var T8;aG=aG.y+(((T8=R())==null?void 0:T8.y)||0)+sr().height/2;var jZ=function(){kl()===NH.horizontalAlignment&&tP()===NH.verticalAlignment||I(!0);BN(NH.horizontalAlignment);EC(NH.verticalAlignment);qN(void 0)},Zg=function(tw){tw.target===c.value&&l()&&(m(!1),jZ(),c.value.removeEventListener("transitionend",Zg))};
p(!1);tP()==="south"&&aG>d().height?(jZ(),_.ql().resolve(_.yN).close()):(c.value.addEventListener("transitionend",Zg),m(!0),qN(eF))}},_.B(_.T,{cond:Z,
then:function(){return _.B(_.um3,{isDisabled:Tv,playabilityStatus:lr,size:KG})}}),_.B(_.T,{cond:tH,
then:function(){return _.B(_.V8c,{isReadyToResume:Y_,data:BH,expanded:g,onExpandClick:pZ,playlistData:J3})}}),_.B(_.T,{cond:f,
then:function(){return _.B("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.B(_.T,{cond:function(){return Ol()&&g()||H()},
then:function(){return _.B(_.vPF,{className:"ytdMiniplayerComponentPlaylistPanel",data:J3,hideHeaderText:!0,withinMiniplayer:!0})}}),_.B("div",{class:"ytdMiniplayerComponentToast"},_.B(_.vw3,{toastData:W}))),_.B(kj3,{onResize:function(NH){eM(_.uk(192,NH,720))},
onResizeStart:function(){var NH=_.X2(3),aG=YS();Gv||(Gv=!0,NH&&aG&&_.Ic(NH,[aG]));NH&&aG&&_.Rc(NH,aG)},
currentAspectRatio:X,currentMiniplayerSize:AP,horizontalAlignment:kl,verticalAlignment:tP}))},"Bh"),"ytd-miniplayer",{});var DR=function(){var c=_.z.apply(this,arguments)||this;c.tabGesturesIsActive=!1;c.deprecateFullerscreenUi=_.F("web_watch_fullerscreen_deprecation_ui");c.hasDelegation=!1;c.darkerDarkTheme=_.F("web_darker_dark_theme");c.isFrostedGlassInitialized=!1;c.frostedGlassExp=_.F("web_frosted_glass");c.mastheadHiddenFocusWithinKillswitch=_.F("web_masthead_hidden_focus_within_killswitch");c.clientOnlyWizTooltipsEnabled=_.F("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");c.scrollAtTop=
!0;c.guideScrollTop=0;c.isTheaterModeSession=_.wi("START_IN_THEATER_MODE");c.iMaxTheaterMode=_.F("web_watch_imax_theater_mode");c.isFullWindowSession=_.wi("START_IN_FULL_WINDOW_MODE");c.hasCreateFamilyDialog=!1;c.mastheadHeight=56;c.networkStatusManager=new _.I7;c.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"};c.dynamicActionMap={"yt-run-attestation-command":function(f){var d=_.bvF.instance,q=_.b(f,_.boy);return q?_.F("use_rta_manager_for_async")&&
bhp()?OO3(d,q,f.clickTrackingParams):k6r(d,q,f.clickTrackingParams):_.Je(Error("li"))}};
c.isFrostedGlassDisabled=!1;c.isChannelOrPlaylistPage=!1;return c};
_.K(DR,_.z);_.r=DR.prototype;_.r.created=function(){var c=_.ql();_.F("kevlar_clear_duplicate_pref_cookie")&&_.Em(_.a7,function(){var f=_.A4.get("PREF");f&&!/f\d=/.test(f)&&(f=_.CD("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=f?"PREF=null;domain="+f+";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")&&_.Qae();_.F("jspb_serialize_with_worker")&&RwQ();_.F("web_worker_availability_check")&&fW3();_.F("nwl_init_killswitch")||IBQ().then(function(){_.a7.addLowPriorityJob(B1S)});
this.pageManagerAttachedPromise=_.c9();this.ytdAppBehavior.loadDepsPromise=_.$o([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Gx(this.onThrottledScroll,200,this);_.F("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);hwr();w5c=!!_.D5("ytappsettings.initialized");$7=_.D5("ytappsettings.previousValue");FFQ=_.D5("ytappsettings.previousSnapshotTime");w5c||(w5c=!0,ts3());Ykc();F5H();_.Xr("DEFERRED_DETACH",
_.F("kevlar_tuner_should_defer_detach"));_.Xr("REUSE_COMPONENTS",!0);_.Xr("STAMPER_STABLE_LIST",!0);_.Xr("SCHEDULED_LAZY_LIST",!0);_.Xr("openPopupConfig",Odp);_.Xr("useClickHandler",!0);_.F("kevlar_shell_cleanup")&&_.a7.addLowPriorityJob(Sc3.bind(this,_.dz.caches));_.wi("IS_SHELL_LOAD")&&_.JQ({shellStartupDurationMs:Math.round((0,_.qR)()-_.$t())});wrc(this.networkStatusManager);_.F("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",JpF(qvG)),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!",
JpF(ZJQ)),console.log("%cVisit http://go/join-youtube-web to apply today.",JpF(MNQ)));_.Lup(c.resolve(_.EZ),1E3)};
_.r.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var c=qcF();c&&!_.F("external_fullscreen_killswitch")&&document.addEventListener(c,this.setFullscreen.bind(this));(c=window.matchMedia("(prefers-color-scheme: dark)"))&&c.addEventListener&&c.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.r.attached=function(){var c=this;_.eY().processSignal("ci");_.F("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.ugG?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.B5(_.VkC(),"SUCCESS");this.updateIconSet();_.M9(this.guideInnerContent,!1);_.Qd().initVisibilityObserver();this.guideService.guideElement=this.guide;var f=document.createElement("ytd-miniplayer"),d=_.r1(this.hostElement).querySelector("#content");
_.r1(this.hostElement).insertBefore(f,d);_.eY().processSignal("ma");_.ql().resolve(_.yN).init(f);_.wi("IS_SHELL_LOAD")&&(d=document.createElement("ytd-network-status-banner"),_.r1(this.hostElement).insertBefore(d,f));_.F("kevlar_right_click_on_lockups")&&_.IJ._onCaptureClick&&document.addEventListener("contextmenu",_.IJ._onCaptureClick.bind(_.IJ),!0);var q=function(){var Z=_.qj("yt-page-navigation-progress");_.r1(c.hostElement).appendChild(Z)};
setTimeout(function(){_.eY().parkOrScheduleJob(q,0,"eocs",16)},0);
_.F("service_worker_push_enabled")&&_.Em(_.a7,jcH);_.Rb(_.Pw.getInstance(),this.dynamicActionMap,this.hostElement);_.CZ(this.hostElement,"ytd-app-attached");_.eY().processSignal("aa");Ycp(this.hostElement);_.fu("gapi.load",_.ThP);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Em(_.a7,
function(){var Z=document.createElement("ytd-video-preview");_.r1(_.r1(c.hostElement).querySelector("#video-preview")).appendChild(Z)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Em(_.a7,function(){uYC();c.registerWithViewTransitionManager()});
if(_.zX()&&this.isAppDarkTheme()!==_.Sv())this.onDarkModeToggledAction();else f=_.LX()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==f&&(_.F("enable_dark_theme_only_on_shorts")?_.IV(_.F("enable_dark_theme_only_on_shorts_control")?window.location.href:_.U6(window.location.href,{theme:"dark"})):_.u6(new _.KD("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(id3=new BYQ(this.hostElement)),GOC=new oyi(this.hostElement),xWQ=new pMC(this.hostElement),VXS=new a3r(this.hostElement)};
_.r.getThemeSettingsToLog=function(){var c=_.LX()==="USER_INTERFACE_THEME_DARK";c=_.zX()?_.Sv()?"os-dark":"os-light":c?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:c,cookiesEnabled:_.FJ()}};
_.r.detached=function(){_.rS(this.guideInnerContent);_.a7.cancelJob(KV);KV=0;_.a7.cancelJob(nV);nV=0;_.Wtz(AiJ);AiJ.length=0;T2J=_.k9P=null;_.Qd().dispose();_.F("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Um(_.Pw.getInstance(),id3.playlistHandlerActionMap,id3.JSC$31842_clientRoot);_.Um(_.Pw.getInstance(),GOC.downloadManagerActionMap,GOC.JSC$32146_clientRoot);_.Um(_.Pw.getInstance(),xWQ.feedbackCollectorActionMap,xWQ.JSC$32141_clientRoot);
for(var c=_.C(VXS.eventListeners),f=c.next();!f.done;f=c.next()){var d=_.C(f.value);f=d.next().value;d=d.next().value;d=_.C(d);for(var q=d.next();!q.done;q=d.next()){var Z=_.C(q.value);q=Z.next().value;Z=Z.next().value;f.removeEventListener(q,Z)}}_.Um(_.Pw.getInstance(),VXS.autonavPauseActionMap,VXS.JSC$19817_clientRoot)};
_.r.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Ft().getFlag(186)};
_.r.computeIsInlinePreviewEnabled=function(c,f,d){return!d&&_.nKQ({miniplayerIsActive:c,miniplayerPlaybackState:f})};
_.r.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.CC({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"}))};
_.r.computeIsFrostedGlassDisabled=function(c,f,d,q){return c||f||d||q&&_.F("web_frosted_glass_disable_watch")};
_.r.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()))};
_.r.computeIsHomePage=function(c,f){if(!c||f==null||!f.endpoint)return!1;var d;return((d=_.b(f.endpoint,_.Fw))==null?void 0:d.browseId)==="FEwhat_to_watch"};
_.r.updateIsChannelOrPlaylistPage=function(){if(_.F("web_frosted_glass")){var c,f,d=(f=(c=_.ql().resolve(_.dx(_.MY)))==null?void 0:c.getCurrentPage())==null?void 0:f.pageSubtype;this.isChannelOrPlaylistPage=d?["channel","channels","playlist"].includes(d):!1}};
_.r.scheduleFrostedGlassInitialization=function(){var c=this;_.F("web_frosted_glass")&&_.eY().parkOrScheduleJob(function(){c.isFrostedGlassInitialized=!0},0,_.pB(["eocs",
"cr"]),300)};
_.r.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.iQ_(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.CC({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.CC({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.r.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(LaC(!0))};
_.r.onYtSignalActionRequestPersistentStorage=function(){if(!_.F("request_persistent_storage_killswitch")){var c=_.ql().resolve(_.i3D);c.cachedPersistStatePromise||(c.cachedPersistStatePromise=NBi())}};
_.r.handleYtChannelCreationFormEndpoints=function(c){c&&this.ytComponentBehavior.resolveCommand(c)};
_.r.handleShowEngagementPanelEndpoint=function(c){c&&this.ytComponentBehavior.resolveCommand(c)};
_.r.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(LaC(!1))};
_.r.initIconDefs=function(c,f){var d=document.createElement("iron-iconset-svg");d.name=c;c=document.createElementNS("http://www.w3.org/2000/svg","svg");d.appendChild(c);c.appendChild(f);document.body.appendChild(d);return d};
_.r.onWindowResized=function(){_.gS(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var c=_.nuO.getInstance();c.documentWidth_=document.body.clientWidth;vvH(c)};
_.r.onWindowScrolled=function(){var c=_.ql().resolve(_.MY).getCurrentPage();if(c!=null&&c.getScrollTop){var f=this.ytdReduxBehavior,d=f.dispatch;c=c.getScrollTop()<=0;d.call(f,_.CC({type:"SET_SCROLL_AT_TOP",payload:c}))}};
_.r.guideIsVisibleButNotPersistentSelectorChanged=function(){var c=_.ql().resolve(_.MY).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=c.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"),
c.setScrollTop(this.guideScrollTop));_.kt(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.r.getCurrentPageScrollableElementType=function(){var c=_.ql().resolve(_.MY).getCurrentPage();if(c&&c.getPageScrollingElement())return c.getPageScrollingElement().nodeName};
_.r.observeGuideVisibility=function(){var c=_.nuO.getInstance(),f=this.miniGuideVisible;c.guidePersistentAndVisible_=this.guidePersistentAndVisible;c.miniGuideVisible_=f;vvH(c)};
_.r.handleEduDismissAction=function(c){c&&c.eduDismissAction&&(_.gS(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Fgv.getInstance(),_.j3.set(c.eduDismissAction.key+"-dismissed",!0))};
_.r.handleEduImpressionAction=function(c){if(c&&c.eduImpressionAction){var f=_.Fgv.getInstance();c=c.eduImpressionAction.key;f.JSC$12898_eduDisplayedThisLoad_[_.YQF[c].setKey||c]=!0;_.j3.set(c+"-impression",parseInt(_.j3.get(c+"-impression")||0,10)+1)}};
_.r.onYtSignalActionConfirmMentionsEdu=function(){_.gS(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.M2.getInstance();_.ZV.set("edu-dismissed",!0)};
_.r.onYtSignalActionRecordMentionsEduImpression=function(){_.M2.getInstance();var c=_.ZV.set,f=parseInt(_.ZV.get("edu-impressions"),10);c.call(_.ZV,"edu-impressions",(isFinite(f)?f:0)+1)};
_.r.onYtPageManagerAttached=function(c){var f;((f=_.oV(c))==null?void 0:f.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.r.onInvokeInstrumentManagerAction=function(c,f){McG(f,c)};
_.r.updateIconSet=function(){var c=this.hostElement.querySelector("#masthead");if(c){var f=_.C$(c),d=f.querySelector("g#yt-logo-updated");d&&(c=document.createElementNS("http://www.w3.org/2000/svg","defs"),c.appendChild(d.cloneNode(!0)),(f=f.querySelector("g#yt-logo-red-updated"))&&c.appendChild(f.cloneNode(!0)),this.initIconDefs("yt-logos-ext",c))}};
_.r.updateMastheadData=function(){var c=this,f,d,q,Z,M;return _.k(function(g){if(g.nextAddress==1){f=c.data;d=c.hostElement.querySelector("#masthead");if(!d)return g.return();_.ol(c,function(){d.data=c.topbarData});
if(!c.get("response.topbar",f)||c.get("response.topbar.responseContext.maxAgeSeconds",f)===0)return g.jumpTo(0);if(q=_.ql().resolve(_.qp))return g.yield(q(),6);Z=_.ql().resolve(_.sj);return g.yield(Z.put("service:topbar:fallback",new _.BP({innertubeResponse:c.get("response.topbar",f)})),0)}return(M=g.yieldResult)?g.yield(M.put("service:topbar:fallback",new _.BP({innertubeResponse:c.get("response.topbar",f)})),0):g.jumpTo(0)})};
_.r.computeTopbarData=function(c){if(!c)return null;var f;return this.isShortsPage&&this.topbarData&&!_.b((f=c.response)==null?void 0:f.topbar,V3q)?this.topbarData:c.response&&"topbar"in c.response?_.b(c.response.topbar,V3q)||null:null};
_.r.onSetTheaterModeEnabled=function(c,f){this.isTheaterModeSession=f.enabled;this.setTheaterModeStyles(f.enabled)};
_.r.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.r.onDarkModeToggledAction=function(){var c=_.Bq(window.location.href);if(!_.FDY(c)){(c=!!_.Rw(window.location.href).themeRefresh)&&_.u6(new _.KD("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!c){ts3();c={themeRefresh:1};var f=_.ql().resolve(_.MY);if(f.isOnWatch()){var d,q;f=((d=f.getPlayerFromWatch())==null?void 0:(q=d.getPlayer())==null?void 0:q.getCurrentTime())||0;f>=1&&(c.time_continue=Math.floor(f))}_.FJ()||_.LX()!=="USER_INTERFACE_THEME_DARK"||(c.theme="dark");_.IV(_.U6(window.location.href,
c))}_.F("web_appshell_refresh_trigger")&&_.dz.caches&&this.refreshAppShellResponse();d=_.NT(window.location.href);_.mD(_.ql().resolve(_.HP),_.fZ(d,"theme"))}};
_.r.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.r.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.r.onPlayerFullscreen=function(c){_.q9();this.playerFullscreen=c};
_.r.setRestrictedMode=function(c){var f=_.Ft();_.tQ(0,58,c);f.save();_.ql().resolve(_.$H).reload()};
_.r.onPageChanged=function(c){c.detail.newPageType==="ytd-watch-flexy"||c.detail.newPageType==="ytd-watch-fixie"||c.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.JK("WEB_PAGE_TYPE_WATCH")):c.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.JK("WEB_PAGE_TYPE_SHORTS")):c.detail.newPageType==="ytd-browse"&&c.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.JK("WEB_PAGE_TYPE_MINI_APP")):_.F("web_frosted_glass")&&c.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.JK("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.JK("WEB_PAGE_TYPE_UNKNOWN"));c.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.r.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.r.onGuideToggleTap=function(){_.CZ(this.hostElement,"yt-guide-toggle")};
_.r.onGuideToggleHover=function(){_.CZ(this.hostElement,"yt-guide-hover")};
_.r.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.r.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.r.setMastheadTheme=function(){var c=_.C$(this.hostElement).querySelector("#masthead");c&&(c.dark=c.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),c.isDarkThemeForced=!1)};
_.r.onRequestPanelModeChange=function(c,f){this.hideHeaderShadow=f.mode!=="seamed"};
_.r.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.r.onDrawerIronSelect=function(c){_.oV(c).id==="guide"&&this.processDrawerIronSelect()};
_.r.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var c="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(c="opened"));_.CZ(this.hostElement,"yt-autonav-pause-guide-"+c)};
_.r.onAddElementToApp=function(c){_.r1(this.hostElement).appendChild(c.detail)};
_.r.onThrottledScroll=function(){var c=_.ql().resolve(_.MY).getCurrentPage();c&&(this.scrollAtTop=c.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.r.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.r.setFullscreen=function(){if(_.F("external_fullscreen")||!this.isWatchPage){var c=_.F("kevlar_fullerscreen_root_only_killswitch")?!!_.q9():!!_.q9()&&_.q9()===document.documentElement;c=(this.isWatchPage||_.F("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(c||this.isFullWindowSession);this.fullscreen!==c&&((this.fullscreen=c)&&_.kt(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Gh().dispatch(_.ZQj(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.gS(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.r.setFullscreenLoggingForShorts=function(c){var f,d,q;return _.k(function(Z){if(Z.nextAddress==1)return Z.yield((f=_.Ca())==null?void 0:f.getPlayerPromise(),2);d=Z.yieldResult;(q=d)==null||q.setAppFullscreen(c);_.Fm(Z)})};
_.r.updateMastheadCssHeight=function(){var c=this.mastheadHeight;this.fullscreen&&(c=0);_.la(this.hostElement,{"--ytd-masthead-height":c+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.r.updateNetworkStatusBannerDisplayStatus=function(){var c="unset";this.fullscreen&&(c="none");_.la(this.hostElement,{"--ytd-network-status-banner-display":c})};
_.r.updateNetworkStatusBannerCssHeight=function(){var c="unset";this.fullscreen&&(c="0px");_.la(this.hostElement,{"--ytd-network-status-banner-max-height":c})};
_.r.updateScrollAndMasthead=function(c,f,d,q){this.iMaxTheaterMode||(q=!1);var Z=_.ql().resolve(_.MY).getCurrentPage();c||f||q?(document.body.classList.add("no-scroll"),Z.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.ia(this,this.onScroll)),Z.setScrollTop(0),_.la(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.PE()+"px"})):d?_.CZ(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.CZ(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Z.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.ia(this,this.onScroll)));this.mastheadHidden=c||f||d;this.updateMastheadCssHeight();_.F("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.r.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.r.onYtNavigateAction=function(c){c=this.get("navigateAction.endpoint",c);_.CZ(this.hostElement,"yt-navigate",{endpoint:c})};
_.r.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var c=document.createElement("yt-create-family-dialog");_.r1(this.hostElement).appendChild(c);this.hasCreateFamilyDialog=!0}};
_.r.onSetPushNotificationsEnabledCommand=function(c){var f=this,d=_.b(c,aV3);d&&typeof d.enabled==="boolean"&&(Notification.permission!=="granted"?onJ().then(function(){Notification.permission==="granted"?(u2D(!d.enabled).then(wiS),d.successAction&&_.OX(f.hostElement,[d.successAction])):d.failureAction&&_.OX(f.hostElement,[d.failureAction])}):(u2D(!d.enabled).then(wiS),d.successAction&&_.OX(this.hostElement,[d.successAction])))};
_.r.onYtSignalActionEnableChromeNotifications=function(){GcG(!0)};
_.r.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.b(this.topbarData.hotkeyDialog,vHC)}}})};
_.r.onYtSignalActionShowKeyboardShortcutDialog=function(){_.gS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.r.onYtEndpointChangeHandler=function(c,f){var d=_.qo(_.nt);d.pendingPrefetchJob_&&(f=!(!f||f.autonav!="1"),d.pendingPrefetchJob_.resolve(c&&_.Oml(c)?_.lbh(c,f):""),d.pendingPrefetchJob_=null);_.gS(this.hostElement,"yt-pause-active-page-context");_.gS(this.hostElement,"ytd-log-youthere-nav");_.gS(this.hostElement,"yt-prepare-page-dispose")};
_.r.handleCommandWithCommandHandler=function(c,f){_.Hh.instance.resolveCommand(c,{form:{element:f}})};
_.r.onYtTimedCommand=function(c){var f=this;c=_.b(c,t3G);var d=c.command;d&&_.X8(_.a7,function(){var q=_.b(d,_.e1K);q?(_.Hh.instance.resolveCommand(d),f.maybeLogGetAnswerRequestTick(q)):_.ll(f.hostElement,[d],f.hostElement)},c.timeoutMs||0)};
_.r.maybeLogGetAnswerRequestTick=function(c){c&&c.isFirstRequest&&(_.ac("search_overview_answer"),_.V_("so_rq",void 0,"search_overview_answer"))};
_.r.onYtSignalActionSkipNavigation=function(){var c=_.ql().resolve(_.MY).getCurrentPage();_.xO(c)};
_.r.onYtSignalActionCopyDebugData=function(){iZC()};
_.r.handleEntityUpdateCommand=function(c){_.AE(_.b(c,_.DKF).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.r.logFlowLoggingEventCommand=function(c){if(c=_.b(c,_.cZh))if(c.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var f=c.flowEventNamespace,d=c.flowEventType,q=c.flowType;q&&f&&d&&_.qjk(_.io(f,d,c.flowEventMetadata),q)}else{f=_.mq();d=c.flowEventNamespace;q=c.flowEventType;var Z=c.flowType;Z&&d&&q&&_.TX(f,_.io(d,q,c.flowEventMetadata),Z,c.flowNonce)}};
_.r.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.r.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.r.onTouchStart=function(){var c=_.S3();_.X2()&&_.ps(c.JSC$13125_screenManager,{visualElement:c.ve})};
_.r.handleSelectLanguageCommand=function(c){if(c=_.b(c,L1C).hl){var f=_.Ft();f.set("hl",c);f.save();_.ql().resolve(_.$H).reload()}};
_.r.handleConfirmDialogEndpoint=function(c){(c=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(c))&&this.ytOpenPopupBehavior.openPopup(c)};
_.r.handleOpenPopupNavigationEndpoints=function(c,f){_.F("web_button_rework")&&(c=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(c))&&this.ytOpenPopupBehavior.openPopup(c,f)};
_.r.handleSaveCommandToSessionStorage=function(c){if(c=_.b(c,_.S5_)){var f=c.key;f&&c.command&&window.sessionStorage.setItem(f,JSON.stringify(c.command))}};
_.r.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(c){c&&c.active&&c.active.postMessage({type:"refresh_shell"})}).catch(function(c){c.name!=="SecurityError"&&_.VO(c)})};
_.r.onDeviceThemeChanged=function(){var c=_.Sv();_.tQ(_.Ft(),185,c);_.Ft().save()};
_.r.handleYtRegisterPromoCommand=function(c){if(_.b(c,J$F)){var f=_.ql().resolve(_.MY).getCurrentPage()||this.hostElement;emc().registerPromoCommand(_.b(c,J$F),f)}};
_.r.onYtNavigateHomeAction=function(){if(!_.F("kevlar_miniplayer_navigate_home_from_app_killswitch")){var c,f,d,q,Z=(q=(c=this.topbarData)==null?void 0:(f=c.logo)==null?void 0:(d=f.topbarLogoRenderer)==null?void 0:d.endpoint)!=null?q:_.tu;this.ytComponentBehavior.resolveCommand(Z)}};
_.r.onYtLocationCollectionCommand=function(c){VCS(_.b(c,IVr))};
_.r.onYtGetLocationCommand=function(c){EED(_.b(c,NUF),this)};
_.r.updateRenderGuideFromBinding=function(c){this.renderGuide=c.detail.value};
_.r.updateGuidePersistentAndVisibleFromBinding=function(c){this.guidePersistentAndVisible=c.detail.value};
_.r.updateMiniGuideVisibleFromBinding=function(c){this.miniGuideVisible=c.detail.value};
_.r.onThemeSelected=function(c,f){var d=_.Ft(),q=c||f?c:_.Sv(),Z=(q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.FDY(_.Bq(window.location.href));_.tQ(0,165,c);_.tQ(0,174,f);d.save();Z&&_.gS(this.hostElement,"yt-dark-mode-toggled-action",[q]);_.gS(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.r.getCurrentTheme=function(){return _.zX()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.LX()};
_.r.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.r.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.r.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.r.handleShowConsentPrimitive=function(c){var f=this,d,q;return _.k(function(Z){if(Z.nextAddress==1){try{d=(q=_.Ca())==null?void 0:q.getPlayerPromise()}catch(M){}return Z.yield(G3G(c,d),2)}_.gS(f.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Fm(Z)})};
_.r.handleSelectActiveIdentityEndpointInternal=function(c){_.ev();c=_.b(c,_.Z5K);if(c!=null&&c.supportedTokens){c=_.C(c.supportedTokens);for(var f=c.next();!f.done;f=c.next())f=f.value,f.accountSigninToken&&_.IV(f.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.r.handleUpdatePermissionRoleCommand=function(c){if(c=_.b(c,_.rBo)){var f;this.hasDelegation=!((f=_.b(c.renderer,_.Mwy))==null||!f.status)}};
_.r.registerWithViewTransitionManager=function(){var c=_.ql().resolve(_.dx(_.F0));if(c){var f,d=(f=this.guide)==null?void 0:f.querySelector("#scrim"),q;f=(q=this.guide)==null?void 0:q.querySelector("#contentContainer");d&&f&&c.isAnyTransitionEnabled&&(q={},c.viewTransitionCoordinator.registerElement(d,(q.slide="app-drawer-scrim-page-transition",q["lockup-to-watch"]="app-drawer-scrim-page-transition",q["learning-journey"]="app-drawer-scrim-page-transition",q)),d={},c.viewTransitionCoordinator.registerElement(f,
(d.slide="app-drawer-container-page-transition",d["lockup-to-watch"]="app-drawer-container-page-transition",d["learning-journey"]="app-drawer-container-page-transition",d)))}};
_.ci.Object.defineProperties(DR.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}}});
_.ci.Object.defineProperties(DR,{template:{configurable:!0,enumerable:!0,get:function(){if(eZ3===void 0){var c=document.createElement("template");_.n(c,'\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');
c.content.insertBefore(_.e().content.cloneNode(!0),c.content.firstChild);eZ3=c}c=eZ3;return c}}});
DR.prototype.onOpenHotkeyDialog=DR.prototype.onOpenHotkeyDialog;DR.prototype.setFullscreen=DR.prototype.setFullscreen;DR.prototype.onAddElementToApp=DR.prototype.onAddElementToApp;DR.prototype.onDrawerIronSelect=DR.prototype.onDrawerIronSelect;DR.prototype.onGuideOpenButtonHover=DR.prototype.onGuideOpenButtonHover;DR.prototype.onRequestPanelModeChange=DR.prototype.onRequestPanelModeChange;DR.prototype.onPageDataUpdated=DR.prototype.onPageDataUpdated;DR.prototype.onPageChanged=DR.prototype.onPageChanged;
DR.prototype.onSetTheaterModeEnabled=DR.prototype.onSetTheaterModeEnabled;DR.prototype.updateMastheadData=DR.prototype.updateMastheadData;DR.prototype.onYtPageManagerAttached=DR.prototype.onYtPageManagerAttached;DR.prototype.observeGuideVisibility=DR.prototype.observeGuideVisibility;DR.prototype.guideIsVisibleButNotPersistentSelectorChanged=DR.prototype.guideIsVisibleButNotPersistentSelectorChanged;DR.prototype.isInlinePreviewEnabledChanged=DR.prototype.isInlinePreviewEnabledChanged;
DR.prototype.isWatchPageChanged=DR.prototype.isWatchPageChanged;DR.prototype.dispatchFrostedGlassMode=DR.prototype.dispatchFrostedGlassMode;_.y([_.Q(_.wt),_.D("design:type",Object)],DR.prototype,"ytdReduxBehavior",void 0);_.y([_.Q(_.Kd.YtEventForwardingBehavior),_.D("design:type",Object)],DR.prototype,"ytEventForwardingBehavior",void 0);_.y([_.Q(_.Yd.YtOpenPopupBehavior),_.D("design:type",Object)],DR.prototype,"ytOpenPopupBehavior",void 0);
_.y([_.Q(_.Cy.YtActionHandlerBehavior),_.D("design:type",Object)],DR.prototype,"ytActionHandlerBehavior",void 0);_.y([_.Q({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Pw.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 c;((c=this.actionRouterNode.hostElement)!=null?c:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var c;((c=this.actionRouterNode.hostElement)!=null?c:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(c){this.actionRouter_.handleAction(c.detail)}}),
_.D("design:type",Object)],DR.prototype,"ytActionRouterBehavior",void 0);_.y([_.Q(xeJ.YtdAppBehavior),_.D("design:type",Object)],DR.prototype,"ytdAppBehavior",void 0);_.y([_.Q(_.F4.YtEndpointBehavior),_.D("design:type",Object)],DR.prototype,"ytEndpointBehavior",void 0);_.y([_.Q(UWi.YtEndpointHandlerWithYpcBehavior),_.D("design:type",Object)],DR.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.y([_.Q(Npq.YtLogYpcFlowCommandsBehavior),_.D("design:type",Object)],DR.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.y([_.Q(_.P.YtRendererBehavior),_.D("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.y([_.Q(_.N2.YtComponentBehavior),_.D("design:type",Object)],DR.prototype,"ytComponentBehavior",void 0);_.y([_.L({selector:_.CmQ}),_.D("design:type",Object)],DR.prototype,"tabGesturesIsActive",void 0);_.y([_.L(),_.D("design:type",Boolean)],DR.prototype,"renderGuide",void 0);
_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"guidePersistentAndVisible",void 0);_.y([_.L({selector:_.roJ}),_.D("design:type",Boolean)],DR.prototype,"guideIsVisibleButNotPersistent",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"standalone",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"miniGuideVisible",void 0);
_.y([_.L({selector:_.IKl}),_.D("design:type",Number)],DR.prototype,"miniplayerPlaybackState",void 0);_.y([_.L({selector:_.X5,reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"miniplayerIsActive",void 0);_.y([_.L({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.D("design:type",Boolean)],DR.prototype,"isInlinePreviewEnabled",void 0);_.y([_.L(),_.D("design:type",Boolean)],DR.prototype,"isInlinePreviewDisabled",void 0);
_.y([_.L({reflectToAttribute:!0,value:function(){return _.wi("START_IN_FULL_WINDOW_MODE")}}),
_.D("design:type",Boolean)],DR.prototype,"mastheadHidden",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"playerFullscreen",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],DR.prototype,"deprecateFullerscreenUi",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"fullscreen",void 0);_.y([_.L({value:!1,reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"hideHeaderShadow",void 0);
_.y([_.L({value:{GUIDE_ALT_LABEL:_.HO("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.D("design:type",Object)],DR.prototype,"menuStrings",void 0);_.y([_.L({computed:"computeTopbarData(data)"}),_.D("design:type",Object)],DR.prototype,"topbarData",void 0);_.y([_.L({selector:_.WZG}),_.D("design:type",Boolean)],DR.prototype,"isWatchPage",void 0);_.y([_.L({selector:_.DI4,reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"isShortsPage",void 0);_.y([_.L({selector:function(c){return _.uI(c)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.D("design:type",Boolean)],DR.prototype,"isMiniAppPage",void 0);_.y([_.L({selector:function(c){return _.uI(c)==="WEB_PAGE_TYPE_BROWSE"}}),
_.D("design:type",Boolean)],DR.prototype,"isBrowsePage",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Boolean)],DR.prototype,"scrolling",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],DR.prototype,"hasDelegation",void 0);_.y([_.L({reflectToAttribute:!0,value:!1}),_.D("design:type",Boolean)],DR.prototype,"guideScrolledByTouch",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],DR.prototype,"darkerDarkTheme",void 0);
_.y([_.L(),_.D("design:type",Object)],DR.prototype,"isFrostedGlassInitialized",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],DR.prototype,"frostedGlassExp",void 0);_.y([_.L({selector:function(c){return c.ui.chipBarIsSticky}}),
_.D("design:type",Boolean)],DR.prototype,"chipBarIsSticky",void 0);_.y([_.L({computed:"computeIsHomePage(isBrowsePage, data)"}),_.D("design:type",Boolean)],DR.prototype,"isHomePage",void 0);_.y([_.L({reflectToAttribute:!0}),_.D("design:type",Object)],DR.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.y([_.L(),_.D("design:type",Object)],DR.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.y([_.sf("guide"),_.D("design:type",Object)],DR.prototype,"guide",void 0);
_.y([_.sf("guide-service"),_.D("design:type",veQ)],DR.prototype,"guideService",void 0);_.y([_.sf("guide-inner-content"),_.D("design:type",HTMLDivElement)],DR.prototype,"guideInnerContent",void 0);_.y([_.L({selector:_.PjM}),_.D("design:type",String)],DR.prototype,"frostedGlassMode",void 0);
_.y([_.m5("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"dispatchFrostedGlassMode",null);_.y([_.L({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.D("design:type",Object)],DR.prototype,"isFrostedGlassDisabled",void 0);
_.y([_.m5("isWatchPage"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"isWatchPageChanged",null);_.y([_.S("isHomePage","chipBarIsSticky"),_.D("design:type",Boolean),_.D("design:paramtypes",[])],DR.prototype,"applyFrostedGlassToChipBar",null);_.y([_.L(),_.D("design:type",Object)],DR.prototype,"isChannelOrPlaylistPage",void 0);
_.y([_.ba("isInlinePreviewEnabled"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"isInlinePreviewEnabledChanged",null);_.y([_.m5("guideIsVisibleButNotPersistent"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.y([_.m5("guidePersistentAndVisible","miniGuideVisible"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"observeGuideVisibility",null);_.y([_.Ta("attached"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],DR.prototype,"onYtPageManagerAttached",null);_.y([_.m5("data"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype",Promise)],DR.prototype,"updateMastheadData",null);
_.y([_.Ta("yt-set-theater-mode-enabled"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent,Object]),_.D("design:returntype")],DR.prototype,"onSetTheaterModeEnabled",null);_.y([_.Ta("yt-page-type-changed"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],DR.prototype,"onPageChanged",null);_.y([_.Ta("yt-page-data-updated"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"onPageDataUpdated",null);
_.y([_.Ta("yt-request-panel-mode-change"),_.D("design:type",Function),_.D("design:paramtypes",[Event,Object]),_.D("design:returntype")],DR.prototype,"onRequestPanelModeChange",null);_.y([_.Ta("yt-guide-hover"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"onGuideOpenButtonHover",null);_.y([_.Ta("app-drawer-transitioned"),_.D("design:type",Function),_.D("design:paramtypes",[Event]),_.D("design:returntype")],DR.prototype,"onDrawerIronSelect",null);
_.y([_.Ta("yt-add-element-to-app"),_.D("design:type",Function),_.D("design:paramtypes",[CustomEvent]),_.D("design:returntype")],DR.prototype,"onAddElementToApp",null);_.y([_.Ta("yt-set-fullerscreen-styles"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"setFullscreen",null);_.y([_.Ta("yt-open-hotkey-dialog"),_.D("design:type",Function),_.D("design:paramtypes",[]),_.D("design:returntype")],DR.prototype,"onOpenHotkeyDialog",null);
_.y([_.v({is:"ytd-app"})],DR);_.eY().processSignal("eor");
_.aO();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
